Fix bug #7840 with default terminal and keyboard encodings.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d6de49a1
EZ
12011-02-18 Eli Zaretskii <eliz@gnu.org>
2
3 * terminal.c (create_terminal): Use default-keyboard-coding-system
4 and default-terminal-coding-system to initialize coding systems of
5 the new terminal. (Bug#7840)
6
b286858c
SM
72011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8
9 * lisp.h (BYTE_MARK_STACK): New macro.
10 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
11
12 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
13 (struct byte_stack): Only define `top' and `bottom' if used.
14 (mark_byte_stack): Only define if used.
15 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
16 is not set.
17 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
18
19 * term.c (OUTPUT_IF): Use OUTPUT.
20
21 * alloc.c (Fgarbage_collect): When using stack scanning, don't
22 redundantly scan byte-code stacks, catchlist, and handlerlist.
23
124c9ff0
JD
242011-02-17 Jan Djärv <jan.h.d@swipnet.se>
25
26 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
27 (Fns_read_file_name): Replace B_ with BVAR.
28
29 * nsterm.m (ns_term_init): Use KVAR.
30
05c65251
EZ
312011-02-16 Eli Zaretskii <eliz@gnu.org>
32
026d69ec
EZ
33 * msdos.c (internal_terminal_init): Use KVAR.
34
05c65251
EZ
35 * w32fns.c (Fx_create_frame): Use KVAR.
36
37 * w32term.c (w32_create_terminal): Use KVAR.
38
39 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 40 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
41
42 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
43
b286858c
SM
44 * fileio.c (Finsert_file_contents, Fwrite_region):
45 Remove references to buffer_file_type.
05c65251
EZ
46 (syms_of_fileio): Don't intern and staticpro
47 find-buffer-file-type.
48
49 * callproc.c (syms_of_callproc): Remove references to
50 buffer_file_type.
51
52 * buffer.c (reset_buffer_local_variables): Don't set
53 buffer_file_type.
54 (init_buffer_once): Likewise.
55 (syms_of_buffer): Don't define buffer-file-type.
56
57 * buffer.h (struct buffer): Remove buffer_file_type.
58
1344aad4
TT
592011-02-16 Tom Tromey <tromey@parfait>
60
15f58304
EZ
61 * callint.c (Fcall_interactively): Update for change to field names.
62 * doc.c (Fsubstitute_command_keys): Update for change to field names.
63 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 64 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 65 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
66 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
67 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 68 Update for change to field names.
1344aad4
TT
69 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
70 (echo_length, echo_truncate, cmd_error, command_loop_1)
71 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
72 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
73 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
74 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
75 Update for change to field names.
76 * xfns.c (Fx_create_frame): Update for change to field names.
77 * xterm.c (x_connection_closed, x_term_init): Update for change to
78 field names.
1344aad4 79 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 80 Update for change to field names.
1344aad4 81 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 82 Update for change to field names.
1344aad4 83 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 84 (delete_frame): Update for change to field names.
1344aad4
TT
85 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
86 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
87 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
88
eb4916d7
TT
892011-02-16 Tom Tromey <tromey@redhat.com>
90
91 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
92
4b4deea2
TT
932011-02-16 Tom Tromey <tromey@parfait>
94
95 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
96 * xfaces.c (compute_char_face): Replace B_ with BVAR.
97 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
98 (message_dolog, update_echo_area, ensure_echo_area_buffers)
99 (with_echo_area_buffer, setup_echo_area_for_printing)
100 (set_message_1, update_menu_bar, update_tool_bar)
101 (text_outside_line_unchanged_p, redisplay_internal)
102 (try_scrolling, try_cursor_movement, redisplay_window)
103 (try_window_reusing_current_matrix, row_containing_pos)
104 (try_window_id, get_overlay_arrow_glyph_row, display_line)
105 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
106 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
107 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
108 BVAR.
109 * window.c (window_display_table, unshow_buffer, window_loop)
110 (window_min_size_2, set_window_buffer, Fset_window_buffer)
111 (select_window, Fforce_window_update, temp_output_buffer_show)
112 (Fset_window_configuration, save_window_save): Replace B_ with
113 BVAR.
114 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
115 Replace B_ with BVAR.
116 * undo.c (record_point, record_insert, record_delete)
117 (record_marker_adjustment, record_first_change)
118 (record_property_change, Fundo_boundary, truncate_undo_list)
119 (Fprimitive_undo): Replace B_ with BVAR.
120 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
121 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
122 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
123 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
124 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
125 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
126 (string_match_1, fast_looking_at, newline_cache_on_off)
127 (search_command, search_buffer, simple_search, boyer_moore)
128 (Freplace_match): Replace B_ with BVAR.
129 * process.c (get_process, list_processes_1, Fstart_process)
130 (Fmake_serial_process, Fmake_network_process)
131 (read_process_output, send_process, exec_sentinel)
132 (status_notify, setup_process_coding_systems): Replace B_ with
133 BVAR.
134 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
135 (strout, print_string, temp_output_buffer_setup, print_object):
136 Replace B_ with BVAR.
137 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
138 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
139 Replace B_ with BVAR.
4b4deea2
TT
140 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
141 (set_marker_both, set_marker_restricted_both, unchain_marker):
142 Replace B_ with BVAR.
143 * lread.c (readchar, unreadchar, openp, readevalloop)
144 (Feval_buffer, Feval_region): Replace B_ with BVAR.
145 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
146 * keymap.c (Flocal_key_binding, Fuse_local_map)
147 (Fcurrent_local_map, push_key_description)
148 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
149 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
150 (read_key_sequence): Replace B_ with BVAR.
151 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
152 * intervals.c (set_point_both, get_local_map): Replace B_ with
153 BVAR.
154 * insdel.c (check_markers, insert_char, insert_1_both)
155 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
156 (adjust_after_replace, replace_range, del_range_2)
157 (modify_region, prepare_to_modify_buffer)
158 (Fcombine_after_change_execute): Replace B_ with BVAR.
159 * indent.c (buffer_display_table, recompute_width_table)
160 (width_run_cache_on_off, current_column, scan_for_column)
161 (Findent_to, position_indentation, compute_motion, vmotion):
162 Replace B_ with BVAR.
163 * fringe.c (get_logical_cursor_bitmap)
164 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
165 with BVAR.
166 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
167 * font.c (font_at): Replace B_ with BVAR.
168 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
169 Replace B_ with BVAR.
170 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
171 (unlock_buffer): Replace B_ with BVAR.
172 * fileio.c (Fexpand_file_name, Ffile_directory_p)
173 (Ffile_regular_p, Ffile_selinux_context)
174 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
175 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
176 (Finsert_file_contents, choose_write_coding_system)
177 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
178 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
179 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
180 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
181 (save_excursion_restore, Fprevious_char, Fchar_before)
182 (general_insert_function, Finsert_char, Finsert_byte)
183 (make_buffer_string_both, Finsert_buffer_substring)
184 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
185 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
186 (Ftranslate_region_internal, save_restriction_restore)
187 (Fchar_equal): Replace B_ with BVAR.
188 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
189 * dispextern.h (WINDOW_WANTS_MODELINE_P)
190 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
191 * dired.c (directory_files_internal): Replace B_ with BVAR.
192 * data.c (swap_in_symval_forwarding, set_internal)
193 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
194 Replace B_ with BVAR.
195 * composite.c (fill_gstring_header)
196 (composition_compute_stop_pos, composition_adjust_point)
197 (Ffind_composition_internal): Replace B_ with BVAR.
198 * coding.c (decode_coding, encode_coding)
199 (make_conversion_work_buffer, decode_coding_gap)
200 (decode_coding_object, encode_coding_object)
201 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
202 (Funencodable_char_position, Fcheck_coding_systems_region):
203 Replace B_ with BVAR.
204 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
205 with BVAR.
206 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
207 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
208 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
209 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
210 * category.h (Vstandard_category_table): Replace B_ with BVAR.
211 * category.c (check_category_table, Fcategory_table)
212 (Fset_category_table, char_category_set): Replace B_ with BVAR.
213 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
214 BVAR.
215 * casefiddle.c (casify_object, casify_region): Replace B_ with
216 BVAR.
217 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
218 with BVAR.
219 * callint.c (check_mark, Fcall_interactively): Replace B_ with
220 BVAR.
221 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
222 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
223 with BVAR.
224 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
225 (get_truename_buffer, Fget_buffer_create)
226 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
227 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
228 (Fbuffer_local_value, buffer_lisp_local_variables)
229 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
230 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
231 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
232 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
233 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
234 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
235 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
236 (record_overlay_string, overlay_strings, init_buffer_once)
237 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
238
8678d9e4 2392011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
240
241 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
242 window is changed inside calls to do_pending_window_change.
243 (Bug#8020)
244
1f5d53eb
PE
2452011-02-16 Paul Eggert <eggert@cs.ucla.edu>
246
247 Remove no-longer needed getloadavg symbols.
248 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
249 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
250 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
251 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
252 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
253 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
254 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
255 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
256 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
257 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
258 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
259 (LDAV_SYMBOL): Remove.
260 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
261 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
262
263 Import getloadavg module from gnulib.
264 * deps.mk (getloadavg.o): Remove; gnulib now does this.
265 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
266 now does this.
267 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
268 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
269 * config.in: Regenerate.
270
8017fd6b
EZ
2712011-02-15 Eli Zaretskii <eliz@gnu.org>
272
273 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
274
75b43359
MWD
2752011-02-14 Michael Welsh Duggan <md5i@md5i.com>
276
277 * print.c (float_to_string): Ensure that a decimal point is
278 printed if using dtoastr (Bug#8033).
279
fc3ca113
EZ
2802011-02-14 Eli Zaretskii <eliz@gnu.org>
281
1f5d53eb 282 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
283 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
284
fc3ca113
EZ
285 * dired.c (directory_files_internal):
286 * fileio.c (Finsert_file_contents):
287 * insdel.c (prepare_to_modify_buffer):
288 * xdisp.c (pos_visible_p):
289 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
290 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
291 Use B_ for the MS-Windows build.
292
3928f2b6
JD
2932011-02-14 Jan Djärv <jan.h.d@swipnet.se>
294
295 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
296 resource that specifies helvetica for menus and dialogs.
297
298 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
299 (apply_systemfont_to_menu): Set resources *menubar*font and
300 *popup*font. Remove defflt.
b286858c
SM
301 (set_frame_menubar, create_and_show_popup_menu):
302 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 303
4bb81cc2
TT
3042011-02-14 Tom Tromey <tromey@redhat.com>
305
fc3ca113
EZ
306 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
307
4bb81cc2
TT
308 * keyboard.h: Remove obsolete comment.
309
5d8ea120
TT
3102011-02-14 Tom Tromey <tromey@parfait>
311
312 * composite.c (fill_gstring_header)
313 (composition_compute_stop_pos, composition_adjust_point)
314 (Ffind_composition_internal): Use B_.
315 * intervals.c (set_point_both, get_local_map): Use B_.
316 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
317 * process.c (get_process, list_processes_1, Fstart_process)
318 (Fmake_serial_process, Fmake_network_process)
319 (read_process_output, send_process, exec_sentinel)
320 (status_notify, setup_process_coding_systems): Use B_.
321 * bytecode.c (Fbyte_code): Use B_.
322 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
323 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
324 (skip_syntaxes, scan_lists): Use B_.
325 * lread.c (readchar, unreadchar, openp, readevalloop)
326 (Feval_buffer, Feval_region): Use B_.
327 * print.c (printchar, strout, print_string, PRINTDECLARE)
328 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
329 (print_object): Use B_.
330 * font.c (font_at): Use B_.
b286858c
SM
331 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
332 Use B_.
5d8ea120
TT
333 * callint.c (check_mark, Fcall_interactively): Use B_.
334 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
335 (save_excursion_restore, Fprevious_char, Fchar_before)
336 (general_insert_function, Finsert_char, Finsert_byte)
337 (make_buffer_string_both, Finsert_buffer_substring)
338 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
339 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
340 (Ftranslate_region_internal, save_restriction_restore)
341 (Fchar_equal): Use B_.
342 * data.c (swap_in_symval_forwarding, set_internal)
343 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
344 Use B_.
345 * undo.c (record_point, record_insert, record_delete)
346 (record_marker_adjustment, record_first_change)
347 (record_property_change, Fundo_boundary, truncate_undo_list)
348 (Fprimitive_undo): Use B_.
349 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
350 (string_match_1, fast_looking_at, newline_cache_on_off)
351 (search_command, search_buffer, simple_search, boyer_moore)
352 (Freplace_match): Use B_.
353 * indent.c (buffer_display_table, recompute_width_table)
354 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
355 (Findent_to, position_indentation, compute_motion, vmotion):
356 Use B_.
5d8ea120
TT
357 * casefiddle.c (casify_object, casify_region): Use B_.
358 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
359 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
360 * fileio.c (Fexpand_file_name, Ffile_directory_p)
361 (Ffile_regular_p, Ffile_selinux_context)
362 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
363 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
364 (Finsert_file_contents, choose_write_coding_system)
365 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
366 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
367 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
368 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
369 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
370 (set_marker_both, set_marker_restricted_both, unchain_marker):
371 Use B_.
5d8ea120
TT
372 * insdel.c (check_markers, insert_char, insert_1_both)
373 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
374 (adjust_after_replace, replace_range, del_range_2)
375 (modify_region, prepare_to_modify_buffer)
376 (Fcombine_after_change_execute): Use B_.
377 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
378 (unlock_buffer): Use B_.
379 * keymap.c (Flocal_key_binding, Fuse_local_map)
380 (Fcurrent_local_map, push_key_description)
381 (Fdescribe_buffer_bindings): Use B_.
382 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
383 (read_key_sequence): Use B_.
384 * fringe.c (get_logical_cursor_bitmap)
385 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
386 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
387 * xfaces.c (compute_char_face): Use B_.
388 * character.c (chars_in_text, Fget_byte): Use B_.
389 * category.c (check_category_table, Fcategory_table)
390 (Fset_category_table, char_category_set): Use B_.
391 * coding.c (decode_coding, encode_coding)
392 (make_conversion_work_buffer, decode_coding_gap)
393 (decode_coding_object, encode_coding_object)
394 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
395 (Funencodable_char_position, Fcheck_coding_systems_region):
396 Use B_.
5d8ea120
TT
397 * charset.c (Ffind_charset_region): Use B_.
398 * window.c (window_display_table, unshow_buffer, window_loop)
399 (window_min_size_2, set_window_buffer, Fset_window_buffer)
400 (select_window, Fforce_window_update, temp_output_buffer_show)
401 (Fset_window_configuration, save_window_save): Use B_.
402 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
403 (message_dolog, update_echo_area, ensure_echo_area_buffers)
404 (with_echo_area_buffer, setup_echo_area_for_printing)
405 (set_message_1, update_menu_bar, update_tool_bar)
406 (text_outside_line_unchanged_p, redisplay_internal)
407 (try_scrolling, try_cursor_movement, redisplay_window)
408 (try_window_reusing_current_matrix, row_containing_pos)
409 (try_window_id, get_overlay_arrow_glyph_row, display_line)
410 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
411 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
412 (get_window_cursor_type, note_mouse_highlight): Use B_.
413 * frame.c (make_frame_visible_1): Use B_.
414 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
415 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
416 (WINDOW_WANTS_MODELINE_P): Use B_.
417 * syntax.h (Vstandard_syntax_table): Update.
418 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
419 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
420 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
421 * character.h (FETCH_CHAR_ADVANCE): Update.
422 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
423 * category.h (Vstandard_category_table): Update.
424 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
425 names.
426 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
427 * buffer.c (swapfield_): New macro.
428 (Fbuffer_swap_text): Use swapfield_ where appropriate.
429 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
430 (Fget_buffer_create, clone_per_buffer_values)
431 (Fmake_indirect_buffer, reset_buffer)
432 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
433 (Fbuffer_local_value, buffer_lisp_local_variables)
434 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
435 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
436 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
437 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
438 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
439 (Fbuffer_swap_text, Fset_buffer_multibyte)
440 (swap_out_buffer_local_variables, record_overlay_string)
441 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
442 Use B_.
443 * buffer.h (struct buffer): Rename all Lisp_Object fields.
444 (BUFFER_INTERNAL_FIELD, B_): New macro.
445 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
446
42f60557
JD
4472011-02-14 Jan Djärv <jan.h.d@swipnet.se>
448
449 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
450 is null.
451
2f9a22e2
J
4522011-02-13 Jan Djärv <jan.h.d@swipnet.se>
453
454 * callproc.c (Fcall_process):
455 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
456 comment.
457
84eb0351 4582011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
459
460 * window.c (select_window): Check inhibit_point_swap argument when
461 deciding whether to return immediately.
462
84eb0351 4632011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
464
465 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
466 zero (Bug#7348).
467
84eb0351
CY
4682011-02-12 Chong Yidong <cyd@stupidchicken.com>
469
470 * config.in (TERMINFO): New definition.
471
472 * s/netbsd.h: Use it to choose between terminfo and termcap
473 (Bug#7642).
474
33d605d0
PE
4752011-02-12 Paul Eggert <eggert@cs.ucla.edu>
476
477 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
478 The difference doesn't matter here, in practice, and sizeof is
479 more portable to non-GCC compilers. Also, this makes the code
480 match the already-existing comment.
481
c0ad4ea5
AS
4822011-02-12 Andreas Schwab <schwab@linux-m68k.org>
483
484 * process.c (create_process): Reset SIGPIPE handler in the child.
485 * callproc.c (Fcall_process): Likewise. (Bug#5238)
486
50fd938f
EZ
4872011-02-12 Eli Zaretskii <eliz@gnu.org>
488
489 * xdisp.c <this_line_min_pos>: New variable.
490 (move_it_in_display_line_to): Record in this_line_min_pos the
491 smallest position iterated across.
492 (display_line): Use this_line_min_pos to record the smallest
493 position in the line even if it is not displayed due to
494 hscrolling. (Bug#7939)
495
af59aa6e
PE
4962011-02-12 Paul Eggert <eggert@cs.ucla.edu>
497
cec81b22
PE
498 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
499 * md5.h (ATTRIBUTE_ALIGNED): New macro.
500 (struct md5_ctx): Use it.
501
af59aa6e
PE
502 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
503 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
504 defined.
505 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
506 FC_HINT_STYLE is supported.
507
02c3706c
JD
5082011-02-11 Jan Djärv <jan.h.d@swipnet.se>
509
510 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
511 Make sure we don't do x_catch_errors twice.
512
5ac75e8f
GM
5132011-02-10 Glenn Morris <rgm@gnu.org>
514
515 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
516
d37f40ed
EZ
5172011-02-09 Eli Zaretskii <eliz@gnu.org>
518
5ac75e8f
GM
519 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
520 New macros.
d37f40ed
EZ
521 (globals.h, gl-stamp): New targets.
522 (clean): Clean gl-stamp and globals.h.
523
33cd3ee4
AS
5242011-02-09 Andreas Schwab <schwab@linux-m68k.org>
525
526 * Makefile.in (gl-stamp): Create globals.h here.
527 (globals.h): Don't do it here.
528 (mostlyclean): Clean globals.h and gl-stamp.
529
f9f2e7f5
PE
5302011-02-09 Paul Eggert <eggert@cs.ucla.edu>
531
532 * Makefile.in ($(otherobj)): Depend on globals.h.
533 Otherwise 'make -j10' failed on my host, because the build lacked
534 necessary dependencies, e.g., vm-limit.o depends on globals.h.
535
00b3c7ac
TT
5362011-02-08 Tom Tromey <tromey@redhat.com>
537
538 * Makefile.in (NS_OBJC_OBJ): New variable.
539 (base_obj): Rename from 'obj'.
540 (obj): New variable.
541 (globals.h, gl-stamp, $(obj)): New targets.
542 (GLOBAL_SOURCES): New variable.
543 * globals.h: Remove.
544 * nsselect.m (Vselection_alist): Define. Reverts part of
545 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
546 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
547 variable.
548 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
549
8f3b2e12
KH
5502011-02-08 Kenichi Handa <handa@m17n.org>
551
552 * font.c (Ffont_get): Do not cache :otf value.
553
4f043d0f
PE
5542011-02-07 Paul Eggert <eggert@cs.ucla.edu>
555
556 conform to C89 pointer rules
557
558 * dired.c (scmp, file_name_completion):
559 Change types between char * and unsigned char *, to satisfy C89
560 rules about pointer type compatibility.
47ce90e4 561 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 562 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
563 * alloc.c (make_string, make_specified_string, make_pure_string):
564 Likewise.
57ace6d0 565 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
566 * print.c (float_to_string, PRINTFINISH, printchar, strout):
567 (print_object): Likewise.
e7f8264d
PE
568 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
569 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
570 (Fformat): Likewise.
a2db9982 571 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
572 * fns.c (string_make_multibyte, string_to_multibyte):
573 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
574 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
575 Likewise.
4a25e32a 576 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
577 * process.c (read_process_output, send_process, Fprocess_send_region):
578 Likewise.
0ca76b1e 579 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
580 * doprnt.c (doprnt): Likewise.
581 * indent.c (compute_motion): Likewise.
efe0234f 582 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 583 * ralloc.c (resize_bloc): Likewise.
b19beacc 584 * image.c (tiff_load): Likewise.
c45e5276 585 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
586 * character.c (strwidth): Make its argument const char *, not const
587 unsigned char *, since more callers prefer it that way. All callers
588 changed.
4f043d0f 589
9eee99eb
PE
5902011-02-06 Paul Eggert <eggert@cs.ucla.edu>
591
4c83cffc
PE
592 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
593 Emacs assumes two's complement elsewhere, but the assumption is
594 easy to remove here, and this suppresses a warning with Sun C 5.8.
595
82470039
PE
596 conform to C89 pointer rules
597
598 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
599 (same_x_server, x_term_init):
9eee99eb
PE
600 Change types between char * and unsigned char *, to satisfy C89
601 rules about pointer type compatibility.
82470039
PE
602 * doc.c (get_doc_string, Fsnarf_documentation):
603 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
604 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
605 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 606 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
607 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
608 Likewise.
01c9aa3a 609 * keymap.c (Ftext_char_description): Likewise.
637de37e 610 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
611 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
612 (DRIVE_LETTER) [defined DOS_NT]:
613 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
614 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
615 (search_embedded_absfilename, Fsubstitute_in_file_name):
616 (barf_or_query_if_file_exists, Fmake_directory_internal):
617 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
618 (Finsert_file_contents, Fwrite_region):
619 Likewise.
b68864e5
PE
620 * insdel.c (insert, insert_and_inherit, insert_before_markers):
621 (insert_before_markers_and_inherit, insert_1, insert_1_both):
622 Likewise. This changes these functions' signatures, which is
623 more convenient since most callers use char *. All remaining
624 callers changed.
625 * editfns.c (general_insert_function): Change signature to
626 match changes to insert functions' signatures.
b286858c
SM
627 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
628 Use explicit cast when converting between void * and function pointer
01c9aa3a 629 types, as C89 requires this.
9eee99eb 630
32299e33
PE
6312011-02-05 Paul Eggert <eggert@cs.ucla.edu>
632
633 don't ignore chdir failure
634 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
635 failure and exit.
636 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
637 remaining unchecked chdir calls in this function; some DOS/NT
638 expert needs to fix them.
639 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
640 in this function; some NextStep expert needs to fix them.
641
233ba4d9 6422011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
643
644 * xfaces.c (Finternal_set_lisp_face_attribute):
645 Try to clarify some error messages. (Bug#2659)
646
233ba4d9 6472011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
648
649 * editfns.c (save_restriction_restore): Don't forget to invalidate the
650 current_column cache (bug#7946).
651
233ba4d9 6522011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
653
654 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
655
656 * xftfont.c (xftfont_open): Likewise.
657
233ba4d9 6582011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
659
660 * window.c (Fselect_window): Add missing return value.
661
d67985d3
PE
6622011-02-05 Paul Eggert <eggert@cs.ucla.edu>
663
25a48bd0
PE
664 xstrcasecmp: conform to C89 pointer rules
665 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
666 to const char *, since they're usually low-level C strings, and
667 this stays compatible with C89 pointer rules. All callers changed.
668
dfb6afda
PE
669 * charset.c: conform to C89 pointer rules
670 (define_charset_internal): Switch between char * and unsigned char *.
671
cc618f4e
PE
672 * xmenu.c: conform to C89 const rules
673 (xmenu_show, xdialog_show): Declare local var as char *, not
674 const char *, to stay compatible with C89 const rules.
675
9bcaafce
PE
676 * xdisp.c: conform to C89 pointer rules
677 (store_mode_line_noprop, display_string, reseat_to_string):
678 (c_string_pos, number_of_chars, message_dolog):
679 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
680 (display_mode_element, display_string):
681 Switch between char * and unsigned char * to stay compatible wth
682 C89 pointer rules.
683
5b0534c8
PE
684 * regex.c: conform to C89 pointer rules
685 (re_wctype): Add cast, as C89 does not allow assigning between
686 char * and unsigned char *.
687 (regex_compile): Likewise.
688
d67985d3
PE
689 sync from gnulib to remove HAVE_STDBOOL_H
690 * config.in: Regenerate.
691
a5d733f5
EZ
6922011-02-04 Eli Zaretskii <eliz@gnu.org>
693
f90e08f5
EZ
694 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
695 Replace all uses of lisp.h with $(LISP_H), and all uses of
696 process.h with $(PROCESS_H).
697 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
698 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
699
be50df37
EZ
700 * deps.mk: Update for recent changes: gnutls support, gnulib
701 imports, addition of globals.h.
702
f90e08f5
EZ
703 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
704 ../lib/ignore-value.h.
a5d733f5 705
67342916
PE
7062011-02-03 Paul Eggert <eggert@cs.ucla.edu>
707
708 allow C code to suppress warnings about ignored return values
709
710 We need to go through the code and for each such warning, either
711 fix the code to pay attention to the returned value, or tell GCC
712 that we really do want to ignore the returned value. Here is one
713 example of how to do the latter.
714 * sysdep.c: Include <ignore-value.h>.
715 (sys_subshell): Suppress an undesirable warning about not checking
716 the returned value of 'write', as there's nothing useful one can
717 do with that returned value.
718
36941b32
JD
7192011-02-03 Jan Djärv <jan.h.d@swipnet.se>
720
721 * xterm.c (x_connection_closed): Remove all calls that calls
722 XSync (Bug#7949).
723
3082f617
EZ
7242011-02-01 Eli Zaretskii <eliz@gnu.org>
725
726 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
727 TIFFClientOpen.
728
4df0af9b
JD
7292011-02-01 Jan Djärv <jan.h.d@swipnet.se>
730
731 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
732 (x_session_check_input): Change args and return type so it can be used
733 as argument to add_read_fd. Make static. Remove call to select.
734 Call kbd_buffer_store_event for emacs_event.
735 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
736 (ice_conn_watch_CB): Call add_read_fd.
737
738 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
739 x_session_check_input.
740 (x_session_initialized): Remove definition.
741 (x_initialize): Remove setting of x_session_initialized.
742
743 * xterm.h (x_session_check_input): Remove declaration.
744
a4180391
PE
7452011-02-01 Paul Eggert <eggert@cs.ucla.edu>
746
747 format-time-string now supports subsecond time stamp resolution
b286858c 748 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
749 for consistency with its new argument and with gnulib nstrftime.
750 All callers changed. New argument NS.
751 (Fformat_time_string): Check that the time argument's microseconds
752 component, if any, is in range; this avoids integer overflow and
753 also nstrftime needs this. Document %N.
754
14beddf4 7552011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
756
757 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
758 of int. All uses adjusted.
759 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
760 (svg_load_image): Remove casts.
761
14beddf4 7622011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
763
764 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
765 function definitions for compiling with libpng-1.5.
766 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
767 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
768 (Bug#7908).
769
70b0d280
EZ
7702011-01-31 Eli Zaretskii <eliz@gnu.org>
771
8b3c625b
EZ
772 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
773
70b0d280
EZ
774 * makefile.w32-in (OBJ2): Remove strftime.$(O).
775 ($(BLD)/strftime.$(O)): Remove prerequisites.
776
16fab143
PE
7772011-01-31 Paul Eggert <eggert@cs.ucla.edu>
778
779 src/emacs.c now gets version number from configure.in
780 * emacs.c (emacs_version): Set to VERSION so that it
781 is determined automatically from ../configure.in.
782
546961a9
JM
7832011-01-31 Jim Meyering <meyering@redhat.com>
784
785 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
786 Use xmalloc rather than malloc.
787
42a5b22f
PE
7882011-01-30 Paul Eggert <eggert@cs.ucla.edu>
789
16c3e636
PE
790 strftime: import from gnulib
791 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
792 * deps.mk (strftime.o): Remove.
793 * editfns.c: Include <strftime.h>, supplied by gnulib.
794 (emacs_strftimeu): Remove decl.
795 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
796 emacs_strftimeu.
797 * config.in: Regenerate.
798 * strftime.c: Remove; we now use strftime from gnulib.
799
42a5b22f
PE
800 Use SSDATA when the context wants char *.
801 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
802 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
803 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
804 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
805 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
806 Use SSDATA (not SDATA) when the context of the expression wants
807 char * (not unsigned char *).
808
2787bba3
JD
8092011-01-30 Jan Djärv <jan.h.d@swipnet.se>
810
811 * .gdbinit: Read global lisp variables as globals.f_V*.
812
4ec88040
AS
8132011-01-30 Andreas Schwab <schwab@linux-m68k.org>
814
815 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
816 All uses changed.
817 (PROP_SAVE): Likewise.
818
b6bcd048
CY
8192011-01-29 Chong Yidong <cyd@stupidchicken.com>
820
821 * keyboard.c (make_lispy_position): Fix typo in last change
822 (Bug#7935).
823
f915f0f7
EZ
8242011-01-29 Eli Zaretskii <eliz@gnu.org>
825
826 * s/ms-w32.h (HAVE_MKTIME): Remove.
827
828 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
829 (GNULIB): New variable.
830 (LIBS): Add $(GNULIB).
831 $(TEMACS): Depend on $(GNULIB).
832 <top-level>: Fix font-lock disrupted by a lone `"'.
833
497a1925
JD
8342011-01-29 Jan Djärv <jan.h.d@swipnet.se>
835
836 * nsselect.m (ns_string_from_pasteboard): Get length of string
837 and use make_string instead of build_string (Bug#7934).
838 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
839 instead of stringWithUTF8String (Bug#7934).
840
481ae085
JD
8412011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
842
843 * nsfont.m (nsfont_open): Ensure that fonts with inexact
844 descenders would not become one pixel too tall (Bug#7887).
845
6b918613
CY
8462011-01-28 Chong Yidong <cyd@stupidchicken.com>
847
848 * keyboard.c (make_lispy_position): For clicks on right fringe or
849 margin, compute text position using the X coordinate relative to
850 the left of the text area (Bug#7839).
851
9e269017
KH
8522011-01-28 Kenichi Handa <handa@m17n.org>
853
854 * ftfont.c (ftfont_spec_pattern): Check each extra property
855 value.
856
17dd1fc8
SM
8572011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
858
859 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
860
372fb76b
CY
8612011-01-27 Chong Yidong <cyd@stupidchicken.com>
862
863 * font.c (font_parse_fcname): Undefine a temporary macro.
864
e7f7fbaa
SM
8652011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
866
867 Let the debugger continue to the normal handler (bug#7825).
868 * eval.c (maybe_call_debugger): Declare before new use.
869 (find_handler_clause): Don't call debugger any more.
870 Ignore Vstack_trace_on_error.
871 Use XCAR/XCDR.
872 (syms_of_eval): Remove Vstack_trace_on_error.
873 (Fsignal): Only modify handlerlist when we know we need to do it.
874 Call the debugger when necessary.
875 * globals.h (Vstack_trace_on_error): Remove.
876
6608a7d8
CY
8772011-01-26 Chong Yidong <cyd@stupidchicken.com>
878
879 * font.c (font_parse_fcname): Rewrite GTK font name parser.
880
06d8ace5 8812011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
882
883 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
884 the buffer's point-max (bug#7876).
885
06d8ace5 8862011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
887
888 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 889 Remove unused case (Bug#6811).
19634648 890
8ab70320
JD
8912011-01-23 Jan Djärv <jan.h.d@swipnet.se>
892
893 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
894 setFrameTopLeftPoint is constrained.
895
51b59d79
PE
8962011-01-23 Paul Eggert <eggert@cs.ucla.edu>
897
9055082e
PE
898 Check return values of some library calls.
899 * emacs.c (main): Check dup result.
900 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
901 (frame_name_fnn_p): Check strtol result.
902
5c7d01a5 903 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
904 when calling XpmCreatePixmapFromData.
905
51b59d79
PE
906 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
907 * lisp.h (SSDATA): New macro.
908 All uses of (char *) SDATA (x) replaced with SSDATA (x),
909 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
910 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
911 * xsmfns.c (SSDATA): Likewise.
912
e6b84b30
MR
9132011-01-22 Martin Rudalics <rudalics@gmx.at>
914
915 * window.c (select_window): New function.
916 (Fselect_window): Call it.
917 (inhibit_point_swap): Variable deleted.
918 (Fset_window_configuration): Call select_window directly.
919
3fb69558
JD
9202011-01-22 Jan Djärv <jan.h.d@swipnet.se>
921
922 * nsterm.m (constrainFrameRect): Only constrain the first time called.
923
449ab399
JD
9242011-01-21 Jan Djärv <jan.h.d@swipnet.se>
925
e2f79c8d
JD
926 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
927 screen, not the window screen.
928 (x_set_window_size): Remove constraints.
929 Calculate origin.y only if zooming is 0 and without referring to a
930 screen.
931 (windowWillResize): Don't modify frameSize.
932 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
933 (initFrameFromEmacs): Initialize ns_userRect.
934 (windowShouldZoom): Set zooming to one. Remove all other code.
935 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
936 Zero it after restore.
937 (constrainFrameRect): New method for EmacsWindow.
938 (mouseDragged): Always post NSWindowDidResizeNotification after call to
939 windowWillResize.
940
941 * nsterm.h (ns_output): Add dont_constrain and zooming.
942 (EmacsView): Add ns_userRect.
943
449ab399
JD
944 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
945 if ns_alternate_modifier is none.
946
e885315d
JD
9472011-01-20 Jan Djärv <jan.h.d@swipnet.se>
948
949 * unexmacosx.c: Add comment about include order.
950
bb1c6663
GM
9512011-01-20 Glenn Morris <rgm@gnu.org>
952
c11136ec
GM
953 * minibuf.c (syms_of_minibuf) <read-expression-history>:
954 Give it a doc string.
955 * globals.h: Add Vread_expression_history.
956
bb1c6663
GM
957 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
958 Give it a doc string.
959 * globals.h: Add Vkbd_macro_termination_hook.
960
9aea757b
CY
9612011-01-20 Chong Yidong <cyd@stupidchicken.com>
962
963 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
964
e1ef0dac
PE
9652011-01-19 Paul Eggert <eggert@cs.ucla.edu>
966
967 Fix X11 compilation failure.
968 * globals.h (struct emacs_globals): Document f_Vselection_alist.
969 * xselect.c (Vselection_alist): Remove declaration, moving its
970 documentation to globals.h. This fixes a compilation failure
971 induced by the earlier change to globals.h today.
972
fb9d0f5a
JD
9732011-01-19 Jan Djärv <jan.h.d@swipnet.se>
974
8beb828a
JD
975 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
976
fb9d0f5a
JD
977 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
978 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
979 (ns_input_spi_name, ns_input_spi_arg)
980 (ns_alternate_modifier, ns_right_alternate_modifier)
981 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
982 (ns_right_control_modifier, ns_function_modifier)
983 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
984 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
985 (x_underline_at_descent_line): Remove declaration.
986 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
987
988 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
989 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
990 (syms_of_nsselect): Remove & from DEFVAR_LISP.
991
992 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
993 Remove declaration.
994
995 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
996 globals.h.
997 (syms_of_nsfont): Remove & from DEFVAR_LISP.
998
999 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1000 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1001 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1002
1003 * globals.h (struct emacs_globals): Add f_ns_input_file,
1004 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1005 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1006 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1007 f_ns_right_alternate_modifier, f_ns_command_modifier,
1008 f_ns_right_command_modifier, f_ns_control_modifier,
1009 f_ns_right_control_modifier, f_ns_function_modifier,
1010 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1011 f_Vns_version_string, f_Vns_sent_selection_hooks,
1012 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1013 and corresponding defines.
1014
1015
4e55715e
SS
10162011-01-19 Sam Steingold <sds@gnu.org>
1017
1018 * w32.c (check_windows_init_file): Remove declarations of
1019 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 1020 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 1021
ef79d2fa
TT
10222011-01-19 Tom Tromey <tromey@redhat.com>
1023
1024 * window.c: Fix error introduced by previous patch.
1025
29208e82
TT
10262011-01-18 Tom Tromey <tromey@parfait>
1027
1028 * globals.h: New file.
1029 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1030 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1031 (Vwindow_system_version): Remove declaration.
1032 * w32term.h (Vw32_enable_palette)
1033 (Vx_pixel_size_width_font_regexp): Remove declaration.
1034 * w32menu.c (Voverriding_local_map)
1035 (Voverriding_local_map_menu_flag): Remove declaration.
1036 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1037 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1038 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1039 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1040 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1041 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1042 (w32_use_full_screen_buffer): Remove declaration.
1043 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1044 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1045 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1046 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1047 (no_redraw_on_reenter, visible_bell): Remove declaration.
1048 * sysdep.c (Vsystem_name): Remove declaration.
1049 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1050 * menu.h (Vmenu_updating_frame): Remove declaration.
1051 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1052 Remove declaration.
1053 * lisp.h (Vafter_init_time, Vafter_load_alist)
1054 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1055 (Vcompletion_regexp_list, Vcurrent_load_list)
1056 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1057 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1058 (Vexec_directory, Vexec_path, Vexec_suffixes)
1059 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1060 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1061 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1062 (Vinstallation_directory, Vinvocation_directory)
1063 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1064 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1065 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1066 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1067 (Vscalable_fonts_allowed, Vselect_active_regions)
1068 (Vshell_file_name, Vstandard_input, Vstandard_output)
1069 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1070 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1071 (Vuser_login_name, Vwindow_scroll_functions)
1072 (Vwindow_system_version, Vx_no_window_manager)
1073 (Vx_resource_class, Vx_resource_name, baud_rate)
1074 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1075 (history_delete_duplicates, inhibit_x_resources)
1076 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1077 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
1078 (use_dialog_box, use_file_dialog): Remove declaration.
1079 Include globals.h.
29208e82 1080 * keymap.h (Voverriding_local_map)
b286858c
SM
1081 (Voverriding_local_map_menu_flag, meta_prefix_char):
1082 Remove declaration.
29208e82
TT
1083 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1084 (Vinput_method_function, Vkey_translation_map)
1085 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1086 (do_mouse_tracking, extra_keyboard_modifiers)
1087 (num_nonmacro_input_events): Remove declaration.
1088 * intervals.h (Vchar_property_alias_alist)
1089 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1090 (Vtext_property_default_nonsticky): Remove declaration.
1091 * gtkutil.h (x_gtk_file_dialog_help_text)
1092 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1093 (x_gtk_whole_detached_tool_bar): Remove declaration.
1094 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1095 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1096 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1097 (focus_follows_mouse): Remove declaration.
1098 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1099 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
1100 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1101 Remove declaration.
29208e82
TT
1102 * font.h (Vfont_log): Remove declaration.
1103 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1104 (Vdos_windows_version, dos_codepage, dos_country_code)
1105 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
1106 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1107 Remove declaration.
1108 * disptab.h (Vglyph_table, Vstandard_display_table):
1109 Remove declaration.
29208e82
TT
1110 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1111 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1112 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1113 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1114 (inverse_video, mode_line_in_non_selected_windows)
1115 (tool_bar_button_relief, tool_bar_max_label_size)
1116 (underline_minimum_offset)
1117 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1118 Remove declaration.
1119 * composite.h (Vauto_composition_function)
1120 (Vcomposition_function_table): Remove declaration.
1121 * commands.h (Vexecuting_kbd_macro)
1122 (Vminibuffer_local_completion_map)
1123 (Vminibuffer_local_filename_completion_map)
1124 (Vminibuffer_local_filename_must_match_map)
1125 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1126 (Vminibuffer_local_ns_map, Vthis_command)
1127 (Vunread_command_events, cursor_in_echo_area)
1128 (last_command_event, last_nonmenu_event, unread_command_char):
1129 Remove declaration.
1130 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1131 (Vdefault_file_name_coding_system)
1132 (Vdefault_process_coding_system, Vfile_name_coding_system)
1133 (Vlast_coding_system_used, Vlocale_coding_system)
1134 (Vselect_safe_coding_system_function)
1135 (Vtranslation_table_for_input, coding_system_require_warning)
1136 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
1137 (eol_mnemonic_unix, inherit_process_coding_system):
1138 Remove declaration.
1139 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1140 Remove declaration.
29208e82
TT
1141 * character.h (Vauto_fill_chars, Vchar_direction_table)
1142 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1143 (Vscript_representative_chars, Vtranslation_table_vector)
1144 (Vunicode_category_table): Remove declaration.
1145 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1146 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1147 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1148 (inhibit_modification_hooks): Remove declaration.
1149 * xterm.c (syms_of_xterm): Update.
1150 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1151 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1152 (x_mouse_click_focus_ignore_position)
1153 (x_underline_at_descent_line)
1154 (x_use_underline_position_properties): Remove.
1155 * xsmfns.c (syms_of_xsmfns): Update.
1156 (Vx_session_id, Vx_session_previous_id): Remove.
1157 * xsettings.c (syms_of_xsettings): Update.
1158 (Vxft_settings, use_system_font): Remove.
1159 * xselect.c (syms_of_xselect): Update.
1160 (Vselection_converter_alist, Vx_lost_selection_functions)
1161 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1162 * xfns.c (syms_of_xfns): Update.
1163 (Vgtk_version_string, Vmotif_version_string)
1164 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1165 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1166 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1167 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1168 (Vx_sensitive_text_pointer_shape)
1169 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1170 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1171 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1172 Remove.
1173 * xfaces.c (syms_of_xfaces): Update.
1174 (Vface_default_stipple, Vface_font_rescale_alist)
1175 (Vface_ignored_fonts, Vface_new_frame_defaults)
1176 (Vface_remapping_alist, Vfont_list_limit)
1177 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1178 * xdisp.c (syms_of_xdisp): Update.
1179 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1180 (Vdisplay_pixels_per_inch, Vfontification_functions)
1181 (Vframe_title_format, Vglobal_mode_string)
1182 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1183 (Vicon_title_format, Vinhibit_redisplay)
1184 (Vline_number_display_limit, Vline_prefix)
1185 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1186 (Vmenu_updating_frame, Vmessage_log_max)
1187 (Vmouse_autoselect_window, Vnobreak_char_display)
1188 (Voverlay_arrow_position, Voverlay_arrow_string)
1189 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1190 (Vresize_mini_windows, Vshow_trailing_whitespace)
1191 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1192 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1193 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1194 (Vwindow_text_change_functions, Vwrap_prefix)
1195 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1196 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1197 (highlight_nonselected_windows, hscroll_margin)
1198 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1199 (inhibit_menubar_update, inhibit_try_cursor_movement)
1200 (inhibit_try_window_id, inhibit_try_window_reusing)
1201 (line_number_display_limit_width)
1202 (make_cursor_line_fully_visible_p, message_truncate_lines)
1203 (mode_line_inverse_video, multiple_frames, overline_margin)
1204 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1205 (tool_bar_max_label_size, underline_minimum_offset)
1206 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1207 Remove.
1208 * window.c (syms_of_window): Update.
1209 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1210 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1211 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1212 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1213 (mode_line_in_non_selected_windows, next_screen_context_lines)
1214 (window_min_height, window_min_width): Remove.
1215 (scroll_margin): Remove declaration.
1216 * w32term.c (syms_of_w32term): Update.
1217 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1218 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1219 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1220 (w32_use_visible_system_caret, x_underline_at_descent_line)
1221 (x_use_underline_position_properties): Remove.
1222 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1223 Remove declaration.
1224 * w32select.c (syms_of_w32select): Update.
1225 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1226 * w32proc.c (syms_of_ntproc): Update.
1227 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1228 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1229 (Vw32_start_process_inherit_error_mode)
1230 (Vw32_start_process_share_console)
1231 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1232 (Vsystem_name): Remove declaration.
1233 * w32font.c (syms_of_w32font): Update.
1234 (Vw32_charset_info_alist): Remove.
1235 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1236 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1237 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1238 (Vw32_enable_palette, Vw32_lwindow_modifier)
1239 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1240 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1241 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1242 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1243 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1244 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1245 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1246 (Vx_sensitive_text_pointer_shape)
1247 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1248 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1249 (w32_mouse_move_interval)
1250 (w32_pass_extra_mouse_buttons_to_system)
1251 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1252 (w32_strict_fontnames, w32_strict_painting): Remove.
1253 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1254 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
1255 (w32_num_mouse_buttons, w32_use_visible_system_caret):
1256 Remove declaration.
29208e82
TT
1257 * w32console.c (syms_of_ntterm): Update.
1258 (w32_use_full_screen_buffer): Remove.
1259 (Vtty_defined_color_alist): Remove declaration.
1260 * w16select.c (syms_of_win16select): Update.
1261 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1262 * undo.c (syms_of_undo): Update.
1263 (Vundo_outer_limit, Vundo_outer_limit_function)
1264 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1265 Remove.
1266 * textprop.c (syms_of_textprop): Update.
1267 (Vchar_property_alias_alist, Vdefault_text_properties)
1268 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1269 Remove.
1270 * terminal.c (syms_of_terminal): Update.
1271 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1272 * term.c (syms_of_term): Update.
1273 (Vresume_tty_functions, Vsuspend_tty_functions)
1274 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
1275 Remove.
1276 * syntax.c (syms_of_syntax): Update.
1277 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
1278 (open_paren_in_column_0_is_defun_start)
1279 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
1280 (words_include_escapes): Remove.
1281 * search.c (syms_of_search): Update.
1282 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
1283 * process.c (syms_of_process): Update.
1284 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
1285 (delete_exited_processes): Remove.
1286 * print.c (syms_of_print): Update.
1287 (Vfloat_output_format, Vprint_charset_text_property)
1288 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
1289 (Vprint_length, Vprint_level, Vprint_number_table)
1290 (Vstandard_output, print_escape_multibyte)
1291 (print_escape_newlines, print_escape_nonascii, print_quoted):
1292 Remove.
1293 * msdos.c (syms_of_msdos): Update.
1294 (Vdos_unsupported_char_glyph): Remove.
1295 (unibyte_display_via_language_environment): Remove declaration.
1296 * minibuf.c (syms_of_minibuf): Update.
1297 (Vcompletion_regexp_list, Vhistory_add_new_input)
1298 (Vhistory_length, Vminibuffer_completing_file_name)
1299 (Vminibuffer_completion_confirm)
1300 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
1301 (Vminibuffer_exit_hook, Vminibuffer_help_form)
1302 (Vminibuffer_history_position, Vminibuffer_history_variable)
1303 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
1304 (Vread_buffer_function, Vread_expression_map)
1305 (completion_ignore_case, enable_recursive_minibuffers)
1306 (history_delete_duplicates, minibuffer_allow_text_properties)
1307 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
1308 Remove.
1309 * marker.c (syms_of_marker): Update.
1310 (byte_debug_flag): Remove.
1311 * macros.c (syms_of_macros): Update.
1312 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
1313 * lread.c (syms_of_lread): Update.
1314 (Vafter_load_alist, Vbyte_boolean_vars)
1315 (Vbytecomp_version_regexp, Vcurrent_load_list)
1316 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
1317 (Vload_history, Vload_path, Vload_read_function)
1318 (Vload_source_file_function, Vload_suffixes, Vobarray)
1319 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
1320 (Vread_symbol_positions_list, Vread_with_symbol_positions)
1321 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
1322 (force_load_messages, load_convert_to_unibyte)
1323 (load_dangerous_libraries, load_force_doc_strings)
1324 (load_in_progress): Remove.
1325 * keymap.c (syms_of_keymap): Update.
1326 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
1327 (Vminibuffer_local_completion_map)
1328 (Vminibuffer_local_filename_completion_map)
1329 (Vminibuffer_local_filename_must_match_map)
1330 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1331 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
1332 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
1333 Remove.
1334 * keyboard.c (syms_of_keyboard): Update.
1335 (Vauto_save_timeout, Vcommand_error_function)
1336 (Vcommand_hook_internal, Vdeactivate_mark)
1337 (Vdeferred_action_function, Vdeferred_action_list)
1338 (Vdisable_point_adjustment, Vdouble_click_time)
1339 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
1340 (Vfunction_key_map, Vglobal_disable_point_adjustment)
1341 (Vhelp_char, Vhelp_event_list, Vhelp_form)
1342 (Vinput_method_function, Vinput_method_previous_message)
1343 (Vkey_translation_map, Vlast_event_frame)
1344 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
1345 (Vminibuffer_message_timeout, Voverriding_local_map)
1346 (Voverriding_local_map_menu_flag, Vpost_command_hook)
1347 (Vpre_command_hook, Vprefix_help_command)
1348 (Vsaved_region_selection, Vselect_active_regions)
1349 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
1350 (Vthis_command, Vthis_command_keys_shift_translated)
1351 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
1352 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
1353 (Vtty_erase_char, Vunread_command_events)
1354 (Vunread_input_method_events, Vunread_post_input_method_events)
1355 (auto_save_interval, cannot_suspend, do_mouse_tracking)
1356 (double_click_fuzz, extra_keyboard_modifiers)
1357 (inhibit_local_menu_bar_menus, last_command_event)
1358 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
1359 (menu_prompting, meta_prefix_char, num_input_keys)
1360 (num_nonmacro_input_events, polling_period, unread_command_char):
1361 Remove.
1362 * insdel.c (syms_of_insdel): Update.
1363 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
1364 * indent.c (syms_of_indent): Update.
1365 (indent_tabs_mode): Remove.
1366 * image.c (syms_of_image): Update.
1367 (Vimage_cache_eviction_delay, Vimage_types)
1368 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
1369 (cross_disabled_images): Remove.
1370 * fringe.c (syms_of_fringe): Update.
1371 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
1372 * frame.c (syms_of_frame): Update.
1373 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
1374 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
1375 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
1376 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
1377 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
1378 Remove.
1379 * fontset.c (syms_of_fontset): Update.
1380 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
1381 (Vfontset_alias_alist, Vignore_relative_composition)
1382 (Votf_script_alist, Vuse_default_ascent)
1383 (Vvertical_centering_font_regexp): Remove.
1384 * font.c (syms_of_font): Update.
1385 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
1386 (Vfont_weight_table, Vfont_width_table): Remove.
1387 * fns.c (syms_of_fns): Update.
1388 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
1389 * filelock.c (syms_of_filelock): Update.
1390 (Vtemporary_file_directory): Remove.
1391 * fileio.c (syms_of_fileio): Update.
1392 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
1393 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
1394 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
1395 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
1396 (Vinhibit_file_name_operation, Vset_auto_coding_function)
1397 (Vwrite_region_annotate_functions)
1398 (Vwrite_region_annotations_so_far)
1399 (Vwrite_region_post_annotation_function)
1400 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
1401 (Vw32_get_true_file_attributes): Remove declaration.
1402 * eval.c (syms_of_eval): Update.
1403 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
1404 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
1405 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
1406 (debug_on_next_call, debug_on_quit, debugger_may_continue)
1407 (max_lisp_eval_depth, max_specpdl_size): Remove.
1408 * emacs.c (syms_of_emacs): Update.
1409 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
1410 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
1411 (Vinstallation_directory, Vinvocation_directory)
1412 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
1413 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
1414 (Vsystem_configuration, Vsystem_configuration_options)
1415 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
1416 (inhibit_x_resources, noninteractive1): Remove.
1417 * editfns.c (syms_of_editfns): Update.
1418 (Vbuffer_access_fontified_property)
1419 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
1420 (Voperating_system_release, Vsystem_name, Vuser_full_name)
1421 (Vuser_login_name, Vuser_real_login_name): Remove.
1422 * dosfns.c (syms_of_dosfns): Update.
1423 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
1424 (dos_codepage, dos_country_code, dos_decimal_point)
1425 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
1426 (dos_super_key, dos_timezone_offset): Remove.
1427 * doc.c (syms_of_doc): Update.
1428 (Vbuild_files, Vdoc_file_name): Remove.
1429 * dispnew.c (syms_of_display): Update.
1430 (Vglyph_table, Vinitial_window_system)
1431 (Vredisplay_preemption_period, Vstandard_display_table)
1432 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
1433 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
1434 * dired.c (syms_of_dired): Update.
1435 (Vcompletion_ignored_extensions): Remove.
1436 (Vw32_get_true_file_attributes): Remove declaration.
1437 * dbusbind.c (syms_of_dbusbind): Update.
1438 (Vdbus_debug, Vdbus_registered_buses)
1439 (Vdbus_registered_objects_table): Remove.
1440 * data.c (syms_of_data): Update.
1441 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
1442 * composite.c (syms_of_composite): Update.
1443 (Vauto_composition_function, Vauto_composition_mode)
1444 (Vcompose_chars_after_function, Vcomposition_function_table):
1445 Remove.
1446 * coding.c (syms_of_coding): Update.
1447 (Vcharset_revision_table, Vcoding_category_list)
1448 (Vcoding_system_alist, Vcoding_system_for_read)
1449 (Vcoding_system_for_write, Vcoding_system_list)
1450 (Vdefault_process_coding_system, Venable_character_translation)
1451 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1452 (Vlast_coding_system_used, Vlatin_extra_code_table)
1453 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1454 (Vprocess_coding_system_alist)
1455 (Vselect_safe_coding_system_function)
1456 (Vstandard_translation_table_for_decode)
1457 (Vstandard_translation_table_for_encode)
1458 (Vtranslation_table_for_input, coding_system_require_warning)
1459 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1460 (eol_mnemonic_unix, inherit_process_coding_system)
1461 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1462 (inhibit_null_byte_detection): Remove.
1463 * cmds.c (syms_of_cmds): Update.
1464 (Vpost_self_insert_hook): Remove.
1465 * charset.c (syms_of_charset): Update.
1466 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1467 (inhibit_load_charset_map): Remove.
1468 * character.c (syms_of_character): Update.
1469 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1470 (Vchar_width_table, Vprintable_chars)
1471 (Vscript_representative_chars, Vtranslation_table_vector)
1472 (Vunicode_category_table): Remove.
1473 * ccl.c (syms_of_ccl): Update.
1474 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1475 (Vtranslation_hash_table_vector): Remove.
1476 * category.c (syms_of_category): Update.
1477 (Vword_combining_categories, Vword_separating_categories): Remove.
1478 * callproc.c (syms_of_callproc): Update.
1479 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1480 (Vexec_directory, Vexec_path, Vexec_suffixes)
1481 (Vinitial_environment, Vprocess_environment)
1482 (Vshared_game_score_directory, Vshell_file_name): Remove.
1483 * callint.c (syms_of_callint): Update.
1484 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1485 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1486 * bytecode.c (syms_of_bytecode): Update.
1487 (Vbyte_code_meter, byte_metering_on): Remove.
1488 * buffer.c (syms_of_buffer): Update.
1489 (Vafter_change_functions, Vbefore_change_functions)
1490 (Vchange_major_mode_hook, Vfirst_change_hook)
1491 (Vinhibit_read_only, Vkill_buffer_query_functions)
1492 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1493 * alloc.c (syms_of_alloc): Update.
1494 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1495 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1496 (cons_cells_consed, floats_consed, garbage_collection_messages)
1497 (gc_cons_threshold, gcs_done, intervals_consed)
1498 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1499 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1500
1501 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1502 (DEFVAR_INT): Assume global is in `globals'.
1503 * alloc.c (globals): Define.
1504
448c0820
TT
15052011-01-18 Tom Tromey <tromey@redhat.com>
1506
1507 * image.c (Vimagemagick_render_type): Remove redundant
1508 definition.
1509
8442d95d
TT
15102011-01-18 Tom Tromey <tromey@redhat.com>
1511
1512 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1513 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1514 (redisplay_window): Update.
1515 (syms_of_xdisp): Update.
1516
cab0ba98
TT
15172011-01-18 Tom Tromey <tromey@redhat.com>
1518
1519 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1520 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1521 Declare.
1522 * gtkutil.c (xg_uses_old_file_dialog):
1523 (xg_get_file_with_chooser):
1524 (xg_tool_bar_detach_callback): Don't redeclare globals.
1525
422745d0
TT
15262011-01-18 Tom Tromey <tromey@redhat.com>
1527
1528 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1529 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1530
7cae64b4
PE
15312011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1532
1533 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1534 defined __GNUC__. ../configure now checks for this GCC feature,
1535 which is now also supported by IBM and Oracle compilers.
1536 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1537 since Solaris malloc returns mult-of-8.
1538
a9faac5c 15392011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1540
1541 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1542
a3e44e79 15432011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1544
6e8e6bf2
PE
1545 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1546 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1547 * data.c (Fnumber_to_string): Use it.
1548 * print.c (float_to_string, print_object): Likewise.
1549
4004364e
PE
1550 Include <unistd.h> unilaterally.
1551 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1552 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1553 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1554 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1555 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1556 * xterm.c:
1557 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1558 unistd.h is always present now, possibly supplied by gnulib.
1559
e84aba69
PE
1560 * mktime.c: Remove; moving to ../lib.
1561
1e11dbe3
PE
1562 Use gnulib's mktime module.
1563 * deps.mk (mktime.o): Remove rule.
1564
fa2c4f56
PE
1565 Use gnulib's ftoastr module.
1566 * print.c: Include ftoastr.h.
1567 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1568 Remove; no longer needed.
1569 (float_to_string): Use dtoastr rather than rolling our own code,
1570 which had an off-by-one bug on non-IEEE hosts.
1571
9a514d4a
PE
1572 Automate syncing from gnulib.
1573 * Makefile.in (lib): New macro.
1574 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1575 ($(lib)/libgnu.a): New rule.
1576 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1577
717c30e0
PE
1578 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1579 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1580 so change the type of 'ign' to unsigned int from int.
1581
8865d794
PE
1582 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1583
4ef36a7b
PE
1584 * xterm.h (struct x_display_info): Remove stray semicolon.
1585 The extra semicolon didn't conform to the C standard.
1586 Problem reported by Sun cc.
1587
6df4097e
PE
1588 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1589 These changes make compilation easier to follow with Sun cc.
1590 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1591 EMACS_INT values without provoking overflow diagnostics.
1592 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1593 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1594 diagnostic with signed left shift.
9fba3563 1595
410ed5c3
PE
1596 * fileio.c (make_temp_name): Remove unreachable code.
1597
97be3ce3
PE
1598 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1599 Previously it was marked by preceding it with "return;", but
1600 Sun cc complains about this.
1601
9fba3563
PE
1602 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1603 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1604 which fixed Bug#2370. Caught by Sun cc.
1605
6dc1d2d3
MR
16062011-01-15 Martin Rudalics <rudalics@gmx.at>
1607
1608 * window.c (inhibit_point_swap): New variable.
1609 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1610 point this time.
1611 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1612 of setting selected_window to nil (Bug#7728).
1613
f853f599
TH
16142011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1615
8dabbfd6
SM
1616 * image.c (imagemagick_load_image, Finit_image_library):
1617 Free intermediate image after creating a MagickWand from it.
1618 Terminate MagickWand environment after image loading.
f853f599 1619
2bc92a93
MA
16202011-01-10 Michael Albinus <michael.albinus@gmx.de>
1621
1622 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1623 unexpected return values.
1624 (Fdbus_register_method): Remove connection initialization.
1625
16262011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1627
1628 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1629 used by Fdbus_register_service.
1630 (QCdbus_request_name_replace_existing): Likewise.
1631 (QCdbus_request_name_do_not_queue): Likewise.
1632 (QCdbus_request_name_reply_primary_owner): Likewise.
1633 (QCdbus_request_name_reply_in_queue): Likewise.
1634 (QCdbus_request_name_reply_exists): Likewise.
1635 (QCdbus_request_name_reply_already_owner): Likewise.
1636 (Fdbus_register_service): New function.
1637 (Fdbus_register_method): Use Fdbus_register_service to do the name
1638 registration.
1639 (syms_of_dbusbind): Add symbols dbus-register-service,
1640 :allow-replacement, :replace-existing, :do-not-queue,
1641 :primary-owner, :existing, :in-queue and :already-owner.
1642
21a76236
CY
16432011-01-09 Chong Yidong <cyd@stupidchicken.com>
1644
1645 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1646 when removing extra buttons.
1647
3d91e302
CY
16482011-01-08 Chong Yidong <cyd@stupidchicken.com>
1649
1650 * fns.c (Fyes_or_no_p): Doc fix.
1651
0d23ffb5
AS
16522011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1653
1654 * fns.c (Fyes_or_no_p): Add usage.
1655
9dc3366b
GM
16562011-01-08 Glenn Morris <rgm@gnu.org>
1657
d0981f82
GM
1658 * makefile.w32-in ($(EMACS)):
1659 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1660
9dc3366b
GM
1661 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1662 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1663
466cbae9
AS
16642011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1665
1666 * image.c (imagemagick_load_image): Fix some resource leaks and
1667 error handling.
1668
8c51d2a2
CY
16692011-01-07 Chong Yidong <cyd@stupidchicken.com>
1670
1671 * fns.c (Fyes_or_no_p): Accept format string args.
1672
66b7b0fe
GM
16732011-01-07 Glenn Morris <rgm@gnu.org>
1674
1675 * emacs.c (no_site_lisp): New int.
1676 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1677 (main): Set no_site_lisp.
1678 (standard_args): Add --no-site-lisp.
1679 * lisp.h (no_site_lisp): New int.
1680 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1681 directories to Vload_path.
1682
2018939f
AS
16832011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1684
1685 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1686
6ed843e5
MA
16872011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1688
8dabbfd6 1689 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1690 dont_register_service. Updated docstring accordingly.
1691
3f9b7090
GM
16922011-01-04 Glenn Morris <rgm@gnu.org>
1693
1694 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1695
d82bce4a
EZ
16962011-01-03 Eli Zaretskii <eliz@gnu.org>
1697
1698 * image.c (png_jmpbuf): Remove definition.
1699 (my_png_error, png_load): Don't use png_jmpbuf.
1700
7c420169
CY
17012011-01-02 Eli Zaretskii <eliz@gnu.org>
1702
1703 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1704
17052011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1706
1707 * image.c <Qlibpng_version>: New variable.
1708 (syms_of_image): Intern and staticpro it. Set its value to the
1709 version of PNG library we were compiled with.
1710 (my_png_error, png_load): Avoid GCC warnings about direct access
1711 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1712 (png_jmpbuf): New macro.
1713 (my_png_error, png_load): Use it instead of #ifdef'ing according
1714 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1715
7c420169 17162011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1717
1718 * .gdbinit (xgetptr): Fix the union+lsb case.
1719 (xbacktrace): Fix the union case.
1720
7c420169 17212011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1722
1723 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1724 different from selected-window's.
1725
7c420169 17262011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1727
71fe378d
EZ
1728 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1729 equivalent of a menu item when the key sequence is given by the
1730 `:keys' attribute. (Bug#7662)
1731
2e4ab211
EZ
1732 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1733 the basic faces are supported.
1734
7c420169 17352011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1736
1737 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1738
7c420169 17392011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1740
1741 * xdisp.c (Fformat_mode_line): Fix last change.
1742
7c420169 17432011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1744
1745 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1746 faces (Bug#7587).
1747
7c420169 17482011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1749
1750 * fileio.c (Fexpand_file_name): One more doc fix.
1751
3afff00e
CY
17522011-01-01 Chong Yidong <cyd@stupidchicken.com>
1753
1754 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1755 image or label in the container.
1756 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1757 (xg_show_toolbar_item): Function deleted.
1758 (xg_tool_item_stale_p): New function.
1759 (update_frame_tool_bar): Calculate tool-bar style once per call.
1760 Instead of hiding text labels, omit them. Don't use
1761 xg_show_toolbar_item; create new GtkToolItems from scratch if
1762 necessary, instead of trying to re-use them. This avoids an
1763 annoying animation when changing tool-bars.
1764
aeb7e951
JD
17652010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1766
1767 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1768 title and buffer filename only for RepresentedFilename.
1769 Handle bad UTF-8 in buffer name (Bug#7517).
1770
5bbb4727
JD
17712010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1772
1773 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1774
1775 * nsfns.m (ns_set_name_iconic): Remove.
1776 (ns_set_name_internal): New function (Bug#7517).
1777 (Vicon_title_format): Extern declare.
1778 (ns_set_name): Call ns_set_name_internal.
1779 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1780 (x_implicitly_set_name): Ditto.
1781 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1782 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1783
f1aab3ff
ŠN
17842010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1785
1786 * window.c (syms_of_window): Add missing defsubr for
1787 window-use-time.
1788
365525b3
AS
17892010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1790
1791 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1792 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1793
59fc5cf9
AS
17942010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1795
2f7c71a1
AS
1796 * buffer.c: Remove unused declarations.
1797 * buffer.h: Likewise.
1798 * charset.h: Likewise.
1799 * composite.h: Likewise.
1800 * dispextern.h: Likewise.
1801 * dispnew.c: Likewise.
1802 * font.h: Likewise.
1803 * fontset.c: Likewise.
1804 * fontset.h: Likewise.
1805 * intervals.h: Likewise.
1806 * keymap.h: Likewise.
1807 * lisp.h: Likewise.
1808 * syntax.c: Likewise.
1809 * syntax.h: Likewise.
1810 * termhooks.h: Likewise.
1811 * window.h: Likewise.
1812 * xsettings.h: Likewise.
1813 * xterm.c: Likewise.
1814 * xterm.h: Likewise.
1815
1816 * chartab.c (sub_char_table_ref): Make static.
1817 * dispnew.c (line_hash_code, required_matrix_height)
1818 (required_matrix_width): Likewise.
1819 * eval.c (interactive_p, apply_lambda): Likewise.
1820 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1821 Likewise.
1822 * font.c (QCadstyle, QCregistry, font_make_spec)
1823 (font_parse_fcname, font_encode_char, font_at): Likewise.
1824 * frame.c (x_frame_get_arg): Likewise.
1825 * keymap.c (get_keyelt): Likewise.
1826 * lread.c (read_filtered_event): Likewise.
1827 * print.c (write_string_1): Likewise.
1828 * window.c (delete_window, window_height, window_width)
1829 (foreach_window): Likewise.
1830 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1831 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1832 (xembed_send_message): Likewise.
1833
1834 * eval.c (run_hook_list_with_args): Delete.
1835 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1836 * terminal.c (get_terminal_param): Likewise.
1837 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1838
c4b607ed
AS
1839 * scroll.c: Fix comment.
1840
59fc5cf9
AS
1841 * dispnew.c (add_window_display_history)
1842 (add_frame_display_history, glyph_row_slice_p)
1843 (find_glyph_row_slice, flush_stdout)
1844 (check_matrix_pointer_lossage, matrix_row)
1845 (check_matrix_invariants, check_window_matrix_pointers)
1846 (check_matrix_pointers, window_to_frame_vpos)
1847 (window_to_frame_hpos): Prototize.
1848 * textprop.c (erase_properties): Likewise.
1849
a65b85b5
SM
18502010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1851
17870c01
SM
1852 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1853 (print_preprocess): Fix handling of uninterned symbols in last change.
1854
a65b85b5
SM
1855 * print.c (print, print_preprocess, print_object): Use a hash table
1856 rather than a linear table for Vprint_number_table.
1857
f13183cf
CY
18582010-12-20 Chong Yidong <cyd@stupidchicken.com>
1859
1860 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1861
94975270
CY
18622010-12-20 Chong Yidong <cyd@stupidchicken.com>
1863
1864 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1865 (parse_tool_bar_item): Use it to obtain image separators for
1866 displays not using native tool-bar separators.
1867
1868 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1869 specially, since this is now done in parse_tool_bar_item.
1870
ef1b0ba7
SM
18712010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1872
1873 Minor clean up to silence some gcc warnings.
1874 * window.c (Fset_window_buffer):
1875 * xterm.c (x_set_frame_alpha): Restructure code to silence
1876 compiler warning.
1877 (handle_one_xevent): Remove unused var `p'.
1878 (do_ewmh_fullscreen): Remove unused var `lval'.
1879 (xembed_set_info): Remove unused var `atom'.
1880 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1881 compiler warning.
1882 * fontset.c (fontset_id_valid_p, dump_fontset):
1883 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1884 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1885 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1886 label only when it's used.
1887 * image.c (x_create_bitmap_from_xpm_data):
1888 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1889 its callers.
1890 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1891 `consumed_chars'.
1892 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1893 (decode_coding_emacs_mule): Remove unused label `retry'.
1894 (detect_eol): Add parens to silence compiler warning.
1895 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1896 it's used to silence the compiler.
1897 (make_number): Modernize k&r declaration.
1898 (mark_char_table): Add parens to silence compiler warning.
1899
4039c786
CY
19002010-12-17 Chong Yidong <cyd@stupidchicken.com>
1901
1902 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1903 tool-bar maps.
1904 (menu_separator_name_p): New function, from gtkutil.c.
1905 (separator_names): Move from gtkutil.c.
1906
1907 * keyboard.h (menu_separator_name_p): Add prototype.
1908
1909 * gtkutil.c (XG_BIN_CHILD): New macro.
1910 (xg_get_menu_item_label, xg_update_menubar)
1911 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1912 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1913 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1914 (create_menus, xg_update_submenu, update_frame_tool_bar):
1915 Use menu_separator_name_p.
4039c786
CY
1916
1917 * nsmenu.m (name_is_separator): Function deleted.
1918 (addItemWithWidgetValue): Use menu_separator_name_p.
1919
1920 * w32menu.c (name_is_separator): Function deleted.
1921 (add_menu_item): Use menu_separator_name_p.
1922
aa936e8e
JD
19232010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1924
1925 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1926 same as the background, use the face forground as cursor.
1927
f49d1f52 19282010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1929
1930 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1931
f49d1f52 19322010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1933
f0559026
EZ
1934 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1935 (face_before_or_after_it_pos, next_element_from_string)
1936 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1937 calculations of maximum string length before calling
1938 string_char_and_length and STRING_CHAR_AND_LENGTH.
1939 (string_char_and_length): Update commentary: MAXLEN is no longer
1940 needed.
1941
f49d1f52 19422010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1943
1944 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1945 as (Qsave_session arg).
1946
1947 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1948 (smc_die_CB): Make an event with arg Qt.
1949 (Fhandle_save_session): If event has Qt as argument,
1950 call Fkill_emacs (Bug#7552).
1951
f49d1f52
SM
19522010-12-13 Chong Yidong <cyd@stupidchicken.com>
1953
1954 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1955
19562010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1957
1958 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1959
f49d1f52 19602010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1961
1962 * dispextern.h (struct it): New member overlay_strings_charpos.
1963
1964 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1965 charpos where we computed n_overlay_strings.
1966 (next_overlay_string): Load overlay strings at recorded position,
1967 which may not be the same as the iterator's charpos (Bug#7016).
1968
f49d1f52 19692010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1970
1971 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1972 obscured due to a vscroll (Bug#7537).
1973
f49d1f52 19742010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1975
1976 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1977
1978 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1979 Use FRAME_TOOLBAR_HEIGHT.
1980 (x_set_offset): Handle XNegative and YNegative in
1981 f->size_hint_flags (Bug#7510).
1982
39321b94
EZ
19832010-12-11 Eli Zaretskii <eliz@gnu.org>
1984
1985 * w32fns.c (Fx_show_tip): Call try_window with last argument
1986 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1987 solved. Round up the tip height to an integral multiple of the
1988 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1989 (Bug#7398)
1990
ec1b9b17
GM
19912010-12-08 Glenn Morris <rgm@gnu.org>
1992
1993 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1994
3c2317e8
LMI
19952010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1996
1997 * xml.c (parse_region): Ignore blank HTML nodes.
1998 (make_dom): Return CDATA sections (like <style>foo</style>) as
1999 text nodes.
2000
bba3e508
SM
20012010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2002
2003 * lread.c (read1): Allow newstyle unquote outside of backquote.
2004 Disallow old-style backquotes inside new-style backquotes.
2005 Don't count unquotes to figure out when we're "syntactically inside
2006 but semantically outside of a backquote" any more.
2007 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2008 to all contexts.
2009
d23d8608
CY
20102010-12-05 Chong Yidong <cyd@stupidchicken.com>
2011
2012 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2013
d6a003a8
AS
20142010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2015
2016 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2017 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2018 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2019
201ef780
AS
20202010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2021
2022 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2023 bit-field.
2024 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2025 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2026 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2027 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2028 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2029 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2030 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2031 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2032 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2033 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2034 * m/hp800.h: Remove file.
2035 * m/mips.h: Remove file.
2036
146490c3
JD
20372010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2038
2039 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2040 with cursor color and draw a rectangle around the image (Bug#7412).
2041
babc8f0d
AS
20422010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2043
2044 * frame.c (x_set_font): Remove unused variable.
2045
9583e9a0
JD
20462010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2047
dd723bbd
JD
2048 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2049
9583e9a0
JD
2050 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2051 drawing text under filled box cursor (Bug#7479).
2052
07976ae3 20532010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2054
2055 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2056 i.e. integer.
bba3e508 2057 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2058 (init_charset_once): Likewise.
2059
bba3e508
SM
2060 * charset.h (emacs_mule_charset): Adjust the prototype.
2061 Delete duplicated extern.
b84ae584
KH
2062
2063 * coding.c (emacs_mule_char): Adjust for the change of
2064 emacs_mule_charset.
2065
2066 * lread.c (read_emacs_mule_char): Adjust for the change of
2067 emacs_mule_charset.
2068
07976ae3 20692010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2070
2071 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2072 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2073
07976ae3 20742010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2075
2076 * alloc.c (mark_terminals): Ensure that the image cache is marked
2077 even if the terminal object was marked earlier (Bug#6301).
2078
35f1de62
CY
20792010-11-21 Chong Yidong <cyd@stupidchicken.com>
2080
2081 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2082
07976ae3 20832010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2084
2085 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2086 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2087 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2088
8547874a
EZ
20892010-11-26 Eli Zaretskii <eliz@gnu.org>
2090
228482b2
EZ
2091 * xdisp.c (set_message_1): Force paragraph direction in echo area
2092 be left-to-right.
2093
8547874a
EZ
2094 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2095 when the click is on the header or mode line.
2096
1e2dddbe
EZ
20972010-11-25 Eli Zaretskii <eliz@gnu.org>
2098
2099 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2100 `cursor' property of the first character in overlay strings.
12365240 2101 (Bug#7474) (Bug#7481)
1e2dddbe 2102
50795d1f
JD
21032010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2104
2105 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2106 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2107 (keyDown): Parse left and right keys separately (Bug#7458).
2108 Compare Left key masks exactly (Bug#7458).
50795d1f 2109
f8ab8c1f
EZ
21102010-11-23 Eli Zaretskii <eliz@gnu.org>
2111
2112 * intervals.c (temp_set_point_both): Define before calling, to
2113 avoid GCC warnings.
2114
2e8a4797
DN
21152010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2116
b29116ef
DN
2117 * nsmenu.m: Use #include <config.h> instead of "config.h".
2118
b932f8b1
DN
2119 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2120 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2121 Move declarations ...
2122 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2123 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2124 ... here.
2125
42c8bc9b
DN
2126 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2127 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2128 (gdb_pvec_type):
2129 * print.c (print_output_debug_flag):
2130 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2131 (safe_debug_print): New declaration.
2132
2e8a4797
DN
2133 * xterm.c:
2134 * systty.h:
2135 * sound.c: Include <sys/ioctl.h> unconditionally.
2136
b609f591
YM
21372010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2138
2139 * alloc.c (mark_maybe_object): Return early if given a Lisp
2140 integer (Bug#6301).
2141
731e263a
KB
21422010-11-21 Ken Brown <kbrown@cornell.edu>
2143
2144 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2145
b7d1e144
JD
21462010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2147
2148 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2149 Define (Bug#7458).
2150 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2151 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2152 NSRightControlKeyMask also (Bug#7458).
2153 (keyDown): Ditto (Bug#7458).
2154 (syms_of_nsterm): Defvar ns-right-command-modifier and
2155 ns-right-control-modifier (Bug#7458).
2156
b7982059
DN
21572010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2158
bee3419f
DN
2159 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2160 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2161
b7982059
DN
2162 * intervals.h (temp_set_point, temp_set_point_both):
2163 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2164
01664ed1
KB
21652010-11-20 Ken Brown <kbrown@cornell.edu>
2166
2167 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2168
7c2d713b
EZ
21692010-11-20 Eli Zaretskii <eliz@gnu.org>
2170
2171 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2172 \xNNNNNN for hex-code display of glyphless characters.
2173
d2bd5189
JD
21742010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2175
2176 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2177 Set important to ! vert_only.
2178 (xg_show_toolbar_item): Don't show label horizontally if
2179 tool item isn't important.
2180 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2181 xg_make_tool_item, or update important on existing tool item.
2182
2183 * keyboard.c (QCvert_only): New variable.
2184 (parse_tool_bar_item): Check for QCvert_only.
2185 (syms_of_keyboard): Initialize QCvert_only.
2186
2187 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2188
d9a95e67
EZ
21892010-11-20 Eli Zaretskii <eliz@gnu.org>
2190
2191 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2192 same in-line.
2193
b6557553
AS
21942010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2195
2196 * xfaces.c (lookup_face): Make static.
2197 * dispnew.c (copy_row_except_pointers): Likewise.
2198 * syntax.c (dec_bytepos): Likewise.
2199 (inc_bytepos): Remove.
2200 * dispextern.h (lookup_face): Remove declaration.
2201
f48fe1f0
EZ
22022010-11-19 Eli Zaretskii <eliz@gnu.org>
2203
2204 * xdisp.c (set_cursor_from_row): Display cursor after all the
2205 glyphs that come from an overlay. Don't overstep the last glyph
2206 when skipping glyphs from an overlay. (Bug#6687)
2207
654ef137
DN
22082010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2209
84dfc8a7
DN
2210 * alloc.c (refill_memory_reserve): Move declaration ...
2211 * lisp.h (refill_memory_reserve): ... here.
2212
94fa3833
DN
2213 * strftime.c (_strftime_copytm): Add declaration.
2214
dde990a0
DN
2215 * callproc.c (syms_of_callproc): Use intern_c_string.
2216
50c77428
DN
2217 Move declarations from .c files to .h files.
2218 * process.c (timers_run):
2219 * minibuf.c (quit_char):
2220 * lread.c (read_emacs_mule_char):
2221 * keyboard.c (minibuf_level, message_enable_multibyte)
2222 (pending_malloc_warning):
2223 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2224 (Qonly): Remove declarations.
2225 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2226 (Vselect_active_regions):
2227 * keyboard.h (timers_run): Add declarations.
2228
654ef137
DN
2229 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2230 (tm_diff): Convert definitions to standard C.
2231 (extra_args_spec_iso): Remove, unused.
2232
4a47c275 22332010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
2234
2235 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2236
2237 * config.in (HAVE_G_TYPE_INIT): New symbol.
2238
4a47c275 22392010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
2240
2241 * lread.c (Fload): Mention `load-in-progress' and
2242 `load-file-name'. (Bug#7346)
2243
86520d8c
EZ
2244 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2245 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2246 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2247 subprocesses. Use buffer_free only ifdef subprocesses.
2248
2249 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2250 the subprocesses version, not in the non-subprocesses one.
2251
794a4b6d
EZ
2252 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2253
146d267b
EZ
22542010-11-17 Eli Zaretskii <eliz@gnu.org>
2255
2256 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2257 lines on text-mode terminals. (bug#7417)
2258
fad0d565
SM
22592010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2260
2261 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2262 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2263
6b4bb703
KH
22642010-11-17 Kenichi Handa <handa@m17n.org>
2265
2266 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2267 change (set charset-ID list instead of charset-symbol list).
2268
9173a8fb
CY
22692010-11-16 Chong Yidong <cyd@stupidchicken.com>
2270
2271 * keyboard.c (make_lispy_position): For text area clicks, record Y
2272 pixel position relative to the text area, excluding header line.
2273 Also change X and Y to Lisp_Objects, not pointers; don't return
2274 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
2275 buffer_posn_from_coords counting from the start of the text area.
2276 (Fposn_at_x_y, make_lispy_event): Callers changed.
2277
2278 * window.c (coordinates_in_window): Change X and Y to ints rather
2279 than pointers; don't return coordinates via pointers.
2280 (struct check_window_data): Change X and Y from pointers to ints.
2281 (window_from_coordinates): Remove args WX and WY; don't return
2282 coordinates via pointers.
2283 (Fcoordinates_in_window_p, window_from_coordinates):
2284 (check_window_containing, Fwindow_at): Callers changed.
2285 (window_relative_x_coord): New function.
2286
2287 * window.h (window_from_coordinates, window_relative_x_coord):
2288 Update prototypes.
2289
2290 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
2291 the start of the text area.
2292
2293 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
2294 call. Use window_relative_x_coord.
2295 (note_mouse_highlight): Change window_from_coordinates call.
2296
2297 * w32term.c (w32_read_socket):
2298 * msdos.c (dos_rawgetc):
2299 * xterm.c (handle_one_xevent): Likewise.
2300
d2762c86
DN
23012010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2302
2303 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
2304 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
2305 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
2306 Convert definitions to standard C.
2307 * regex.c: Do not include <stdlib.h>, config.h does it.
2308 Include unistd.h.
2309 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
2310 (regerror, regfree): Convert definitions to standard C.
2311 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
2312 (__mktime_internal): Convert definitions to standard C.
2313
c2f0866a
DN
23142010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2315
42a7e7f1
DN
2316 * w32proc.c:
2317 * w32inevt.c:
2318 * w32heap.c:
2319 * w32.c: Remove config.h include guards.
2320
67802943
DN
2321 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
2322 No code changes.
2323
f0e1af46
DN
2324 * process.c: Include <sys/ioctl.h> unconditionally,
2325 keyboard.c already does it.
2326
c2f0866a
DN
2327 * keyboard.c (pending_malloc_warning): Add const to match
2328 definition in alloc.c.
2329 (Fset_input_interrupt_mode): Simplify #ifdefs.
2330
92d3ab7e
DN
23312010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2332
12e610e8
DN
2333 Clean up systty.h macros.
2334 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
2335 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
2336 definition in all uses.
2337 (EMACS_TTY_TABS_OK): Remove, it has a single user.
2338 * sysdep.c (discard_tty_input, child_setup_tty)
2339 (init_sys_modes, tabs_safe_p, reset_sys_modes):
2340 * emacs.c (shut_down_emacs):
2341 * callproc.c (child_setup):
2342 * term.c (dissociate_if_controlling_tty): Inline removed macros.
2343
92d3ab7e
DN
2344 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
2345
a3e6bad4
CY
23462010-11-14 Chong Yidong <cyd@stupidchicken.com>
2347
2348 * w32fns.c (Fx_create_frame):
2349 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
2350 resource here; it's now done at startup.
2351
5a232ffb
J
23522010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2353
2354 * xterm.c (set_wm_state): Add Qnil to final cons.
2355
2356 * xselect.c (x_send_client_event): Remove unused variables cons and
2357 size.
2358
24021b38
YM
23592010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2360
2361 * keyboard.c (modify_event_symbol) : Add const to array elements of
2362 arg NAME_TABLE.
2363 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
2364 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
2365 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
2366 Add const to array elements.
2367 (scroll_bar_parts): Make static. Fix position of const.
2368
2369 * w32fns.c (lispy_function_keys): Add const to extern.
2370
2371 * w32inevt.c (lispy_function_keys): Likewise.
2372
afa42fe3
CY
23732010-11-14 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * xfns.c (Fx_create_frame): Don't check for the cursorColor
2376 resource here; it's now done at startup.
2377
53260a94
DN
23782010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2379
c865c575 2380 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 2381
c865c575 2382 Fix compilation on Solaris.
ff2e8052
DN
2383 * sysdep.c: Do not #include <term.h>.
2384 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
2385
53260a94
DN
2386 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
2387
933e29ff
J
23882010-11-13 Jan Djärv <jan.h.d@swipnet.se>
2389
2390 * xterm.c (set_wm_state): Don't put Atom in cons, call
2391 make_fixnum_or_float on them first.
2392 (x_term_init): Initialize Xatom_net_supporting_wm_check and
2393 Xatom_net_supported correctly.
2394
2395 * xselect.c (x_send_client_event): Move CHECK_STRING ...
2396 (Fx_send_client_event): to here.
2397
a048073e
MR
23982010-11-13 Martin Rudalics <rudalics@gmx.at>
2399
2400 * window.c (Fwindow_use_time): New function.
2401
0eb025fb
EZ
24022010-11-13 Eli Zaretskii <eliz@gnu.org>
2403
2404 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
2405 zero-width characters.
2406
2407 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
2408
2409 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
2410 box before drawing the glyphs inside it.
2411
2412 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
2413
bba3e508
SM
2414 * dispextern.h (enum glyphless_display_method):
2415 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
2416 All users changed.
0eb025fb 2417
bba3e508
SM
2418 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2419 Fix comments.
0eb025fb
EZ
2420 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
2421 whitespace in "[]", to simulate a box. Don't use uninitialized
2422 variable `width'.
2423
c869cc37
JD
24242010-11-11 Julien Danjou <julien@danjou.info>
2425
2d9074ba
JD
2426 * xsettings.c (init_xsettings): Use already fetch atoms.
2427
2428 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
2429 from dpyinfo.
2430
2431 * xselect.c (Fx_send_client_event): Split and create
2432 x_send_client_event.
2433
2434 * lisp.h: Do not EXFUN Fx_send_client_event.
2435
2436 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
2437 from dpyinfo.
2438 (wm_supports): Use atoms from dpyinfo.
2439 (do_ewmh_fullscreen): Use atoms from dpyinfo.
2440 (x_ewmh_activate_frame): Use atoms from dpyinfo.
2441 (xembed_set_info): Use atoms from dpyinfo.
2442 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
2443 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
2444 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
2445 Get all atoms in one round-trip.
2446 (set_wm_state): Use x_send_client_event rather than
2447 Fx_send_client_event, using Atom directly.
2448 (x_ewmh_activate_frame): Ditto.
2449 (x_set_sticky): Pass atoms to set_wm_state.
2450 (do_ewmh_fullscreen): Ditto.
2451
2452
2453 * xterm.h (x_display_info): Add Xatom_net_supported,
2454 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2455 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2456
c869cc37
JD
2457 * xfns.c (Fx_show_tip): Fix typo in docstring.
2458
1a4236ea
SM
24592010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2460
2461 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2462 it's not negative.
2463
3106121c
YM
24642010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2465
2466 * font.c (font_filter_properties): Add const to array elements of
2467 properties args.
2468
2469 * font.h (font_filter_properties): Likewise.
2470
2471 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2472 elements.
2473
2474 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2475
da1fec2b
MA
24762010-11-10 Michael Albinus <michael.albinus@gmx.de>
2477
2478 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2479 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2480 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2481 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2482 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2483
bd6bc222
GM
24842010-11-10 Glenn Morris <rgm@gnu.org>
2485
2486 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2487
c0098065
EZ
24882010-11-09 Eli Zaretskii <eliz@gnu.org>
2489
bd6bc222 2490 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 2491
d607b96b 24922010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
2493
2494 * image.c (free_image): Don't garbage the frame here, since this
2495 function can be called while redisplaying (Bug#7210).
2496 (uncache_image): Garbage the frame here (Bug#6426).
2497
d607b96b 24982010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 2499
d607b96b
SM
2500 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2501 parent is the root window. Check this after traversing window tree.
184765cc 2502
d607b96b 2503 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 2504
d607b96b 2505 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 2506
d607b96b
SM
2507 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2508 before traversing window tree (Bug#5721).
c2e124a9 2509
27f92be7
J
25102010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2511
66b16767
J
2512 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2513
25f38310
SM
2514 * xdisp.c (note_mode_line_or_margin_highlight):
2515 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 2516
a971c0a7
EZ
25172010-11-06 Eli Zaretskii <eliz@gnu.org>
2518
2519 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2520 adjust width of tool-tip frame to the width of text, excluding the
2521 stretch glyph at the beginning of R2L glyph rows.
2522
2523 * w32fns.c (Fx_show_tip): Likewise.
2524
80417b95
JD
25252010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2526
2527 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2528 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2529
28118eb6
EZ
25302010-11-05 Eli Zaretskii <eliz@gnu.org>
2531
c1fc2d3a 2532 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2533
2534 * term.c: Remove static mouse_face_* variables. All users
2535 changed.
2536 (term_show_mouse_face, term_clear_mouse_face)
2537 (fast_find_position, term_mouse_highlight): Functions deleted.
2538 (tty_draw_row_with_mouse_face): New function.
2539 (term_mouse_movement): Call note_mouse_highlight instead of
2540 term_mouse_highlight.
2541
bbf534ce
EZ
2542 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2543 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2544 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2545 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2546 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2547 Replace Display_Info with Mouse_HLInfo everywhere where
2548 mouse_face_* members were accessed for mouse highlight purposes.
2549
2550 * xterm.c (x_update_window_begin, x_update_window_end)
2551 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2552 (handle_one_xevent, x_free_frame_resources, x_term_init):
2553 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2554 members were accessed for mouse highlight purposes.
2555
2556 * w32term.c (x_update_window_begin, x_update_window_end)
2557 (x_update_end, w32_read_socket, x_free_frame_resources)
2558 (w32_initialize_display_info): Replace Display_Info with
2559 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2560 for mouse highlight purposes.
2561
2562 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2563 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2564 unless the frame is on a window-system.
c1fc2d3a 2565 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2566 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2567 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2568 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2569 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2570 Replace Display_Info with Mouse_HLInfo everywhere where
2571 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2572 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2573 HAVE_WINDOW_SYSTEM conditional.
2574 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2575 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2576 (try_window_id) [HAVE_GPM || MSDOS]:
2577 Call x_clear_window_mouse_face.
d009ae66 2578 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2579 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2580 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2581 calling draw_glyphs directly.
d009ae66
EZ
2582 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2583 (cursor_in_mouse_face_p, rows_from_pos_range)
2584 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2585 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2586 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2587 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2588 fragments.
2589 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2590 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2591 integer.
2592 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2593 (x_consider_frame_title, tool_bar_lines_needed):
2594 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2595 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2596 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2597 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2598 part.
d009ae66
EZ
2599
2600 * dispnew.c (mirror_make_current): Set Y coordinate of the
2601 mode-line and header-line rows.
c1fc2d3a
EZ
2602 (init_display): Setup initial frame's output_data for text
2603 terminal frames.
d009ae66 2604
c1fc2d3a
EZ
2605 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2606 its own definition on msdos.c.
d009ae66
EZ
2607
2608 * msdos.c (show_mouse_face, clear_mouse_face)
2609 (fast_find_position, IT_note_mode_line_highlight)
2610 (IT_note_mouse_highlight): Functions deleted.
2611 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2612 instead of IT_note_mouse_highlight.
2613 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2614 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2615 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2616 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2617 where mouse_face_* members were accessed for mouse highlight
2618 purposes.
2619
2620 * msdos.h (initialize_msdos_display): Add prototype.
2621
2622 * frame.h (MOUSE_HL_INFO): New macro.
2623
2624 * lisp.h (Mouse_HLInfo): New data type.
2625
2626 * xterm.h (struct x_display_info):
2627 * w32term.h (struct w32_display_info):
2628 * nsterm.h (struct ns_display_info):
2629 * termchar.h (struct tty_display_info): Use it instead of
2630 mouse_face_* members.
2631
2632 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2633 1st argument.
2634 (frame_to_window_pixel_xy, note_mouse_highlight)
2635 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2636 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2637 HAVE_WINDOW_SYSTEM conditional.
2638 (draw_row_with_mouse_face): Declare prototype.
2639 (tty_draw_row_with_mouse_face): Declare prototype.
2640
6e8d7c47
EZ
26412010-11-05 Eli Zaretskii <eliz@gnu.org>
2642
bba3e508
SM
2643 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2644 Remove unused variables.
6e8d7c47 2645
f31ba3f0
AR
26462010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2647
2648 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2649 logic pointed out by Eli Zaretskii.
2650
448e17d6
LMI
26512010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2652
0c3a9a9f
GM
2653 * coding.c (coding-category-list): Refer to set-coding-system-priority
2654 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2655
f31ba3f0 2656
3fdebbf9 26572010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2658
2659 * nsfont.m (nsfont_draw): Correct previous patch to return
2660 correct value.
2661 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2662 don't change the method signature, change the return.
2663
26642010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2665
2666 * nsfont.m (nsfont_draw)
2667 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2668 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2669
17c0c952
JD
26702010-11-03 Julien Danjou <julien@danjou.info>
2671
2672 * image.c (gif_load): Add support for transparency and specified
2673 :background.
2674
b18fad6d
KH
26752010-11-01 Kenichi Handa <handa@m17n.org>
2676
2677 * dispextern.h (lookup_glyphless_char_display): Extern it.
2678
2679 * termhooks.h (struct terminal): New member charset_list.
2680
2681 * coding.c (Fset_terminal_coding_system_internal): Set the
2682 `charset_list' member of struct terminal.
2683
a8039db1 2684 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2685 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2686
2687 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2688 (lookup_glyphless_char_display): Set it->what at the end.
2689 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2690 (last_glyphless_glyph_merged_face_id): Make them non-static.
2691
a8039db1
JB
2692 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2693 Fix the arg with_background for font->driver->draw.
65b6b59a 2694
a8039db1 26952010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2696
a8039db1
JB
2697 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2698 Surround chp by parentheses.
0269bd90 2699
a8039db1 27002010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2701
2702 Implement various display methods for glyphless characters.
2703
2704 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2705 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2706 (Qzero_width): New variables.
2707 (THIN_SPACE_WIDTH): New macro.
2708 (lookup_glyphless_char_display): New funciton.
2709 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2710 (last_glyphless_glyph_merged_face_id): New variables.
2711 (get_next_display_element): Check glyphless characters.
2712 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2713 last_glyphless_glyph_face_id.
2714 (fill_glyphless_glyph_string): New function.
2715 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2716 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2717 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2718 (x_produce_glyphs): If a suitable font is not found, produce a
2719 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2720 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2721 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2722 Qzero_width.
2723 (Vglyphless_char_display): Declare it as a Lisp variable.
2724
2725 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2726 (struct glyph): Change the size of the member "type" to 3.
2727 Add glyphless to the union slice and u.
b2cca856
KH
2728 (enum display_element_type): Add IT_GLYPHLESS.
2729 (enum glyphless_display_method): New enum.
2730 (struct it): New member glyphless_method.
2731 (Vglyphless_char_display): Extern it.
2732
2733 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2734 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2735
a8039db1 2736 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2737 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2738
2739 * nsterm.m (ns_draw_glyph_string): Handle the case
2740 GLYPHLESS_GLYPH (the detail is not yet implemented).
2741
c8c59954
GM
27422010-10-31 Glenn Morris <rgm@gnu.org>
2743
80696982
GM
2744 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2745
c8c59954
GM
2746 * frame.c (syms_of_frame) <tool-bar-mode>:
2747 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2748
46eadc7a
CY
27492010-10-31 Chong Yidong <cyd@stupidchicken.com>
2750
2751 * xterm.c (x_connection_closed): Print informative error message
2752 when aborting on GTK. This requires using shut_down_emacs
2753 directly instead of Fkill_emacs.
2754
ffe75e6b
EZ
27552010-10-29 Eli Zaretskii <eliz@gnu.org>
2756
2757 * emacs.c (main): Call syms_of_filelock unconditionally.
2758
2759 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2760 clause, but keep part of it conditioned on CLASH_DETECTION.
2761
9d794026
GM
27622010-10-29 Glenn Morris <rgm@gnu.org>
2763
4f4f2973
GM
2764 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2765 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2766 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2767 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2768 Sync docs between X, W32, NS.
2769
9d794026
GM
2770 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2771 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2772
d46f6bbb
JB
27732010-10-26 Juanma Barranquero <lekktu@gmail.com>
2774
2775 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2776 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2777
2e35f1a2
EZ
27782010-10-26 Eli Zaretskii <eliz@gnu.org>
2779
2780 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2781 zero or negative. (Bug#7281)
2e35f1a2 2782
8daaeda6
J
27832010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2784
2785 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2786
6a5c2175
GM
27872010-10-25 Glenn Morris <rgm@gnu.org>
2788
2789 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2790
7c051dd8
GM
27912010-10-24 Glenn Morris <rgm@gnu.org>
2792
2793 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2794 (Fx_window_property, Fx_file_dialog):
2795 * xfns.c (Fx_synchronize, Fx_change_window_property)
2796 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2797
23c261f5
CY
27982010-10-24 Chong Yidong <cyd@stupidchicken.com>
2799
2800 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2801
d414c713 28022010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2803
2804 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2805
2806 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2807 Deprecate use as a boolean flag.
2808
947f5e01
JM
28092010-10-24 Jim Meyering <jim@meyering.net>
2810
2811 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2812
65807d73
GM
28132010-10-24 Glenn Morris <rgm@gnu.org>
2814
f5f25615
GM
2815 * w16select.c (syms_of_win16select) <selection-coding-system>:
2816 <next-selection-coding-system>:
2817 * w32select.c (syms_of_w32select) <selection-coding-system>:
2818 <next-selection-coding-system>:
3646b86d
GM
2819 Sync docs with select.el.
2820
46710489
GM
2821 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2822 Lisp version.
2823
ea883883
GM
2824 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2825 Sync doc with the xterm.c version.
2826
65807d73
GM
2827 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2828 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2829
f3d87560
GM
28302010-10-23 Glenn Morris <rgm@gnu.org>
2831
66c6abf0 2832 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2833 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2834 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2835 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2836
7b7e2c18
EZ
28372010-10-23 Eli Zaretskii <eliz@gnu.org>
2838
d1d6801e 2839 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2840
2841 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2842 (mouse_face_from_string_pos): New function, replaces
2843 fast_find_string_pos.
2844 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2845 (note_mode_line_or_margin_highlight): Support bidi-reordered
2846 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2847 (note_mouse_highlight): When bidi reordering is turned on in a
2848 buffer, call next-single-property-change and
ef1b0ba7
SM
2849 previous-single-property-change with last argument nil.
2850 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2851 glyph that stands for no text beyond the line end.
1f382a02
EZ
2852 (row_containing_pos): Don't return too early when CHARPOS is in a
2853 bidi-reordered continued line. Return immediately when the first
2854 hit is found in a line that is not continued, or when an exact
2855 match for CHARPOS is found.
d1d6801e
EZ
2856 (rows_from_pos_range): New function.
2857 (mouse_face_from_buffer_pos): Use it instead of calling
2858 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2859 function to support mouse highlight in bidi-reordered lines and
2860 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2861 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2862 that the former is always above the latter or identical to it.
1554d88e 2863 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2864 (coords_in_mouse_face_p): New function, bidi-aware.
2865 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2866 Call it instead of comparing with mouse-face members of dpyinfo.
2867 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2868 usage of hpos and vpos.
544bbc31 2869
dee186b6
J
28702010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2871
2872 * xrdb.c: Include keyboard.h for MOTIF.
2873
2874 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2875 MOTIF (Bug#7263).
2876
2877 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2878 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2879 Make ANSI prototypes.
dee186b6 2880
5fb59edb
GM
28812010-10-22 Glenn Morris <rgm@gnu.org>
2882
2883 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2884 Remove ccl and duplicate mouse.
2885
8b78d5e3
CY
28862010-10-21 Chong Yidong <cyd@stupidchicken.com>
2887
2888 * insdel.c (prepare_to_modify_buffer): Don't set
2889 saved-region-selection if modification hooks are disabled.
2890
b8a47412
CY
28912010-10-19 Chong Yidong <cyd@stupidchicken.com>
2892
2893 * cmds.c (Fdelete_char): Doc fix.
2894
ca3fa302 28952010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2896
2897 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2898
ca3fa302 28992010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2900
2901 Fix incorrect font metrics when the same font is opened with
2902 different pixelsizes.
2903
2904 * xftfont.c: Include composite.h.
2905 (xftfont_shape): New function.
2906 (syms_of_xftfont): Set xftfont_driver.shape.
2907
c978536f
JD
29082010-10-18 Julien Danjou <julien@danjou.info>
2909
2910 * frame.c (Fframe_pointer_visible_p):
2911 Add `frame-pointer-visible-p' to get the pointer visibility.
2912
4b2d9ec2
LMI
29132010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2914
2915 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2916 non-"EAGAIN"-like error to signal to Emacs that the socket should
2917 be closed.
2918
9cf66cf2
EZ
29192010-10-15 Eli Zaretskii <eliz@gnu.org>
2920
c3911ead
EZ
2921 * unexcoff.c (make_hdr): Fix prototype according to changes in
2922 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2923
9cf66cf2
EZ
2924 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2925
be98da05
TH
29262010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2927
2928 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2929 made building the X menu fail.
cc98b256 2930 (really-oldXMenu): Fix my previous fix.
be98da05 2931
220d91b8 29322010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2933
2934 Fix handling of font properties on Windows (bug#6303).
2935 * font.c (font_filter_properties): New function, refactored from
2936 ftfont_filter_properties.
2937 * font.h (font_filter_properties): Declare.
2938 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2939 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2940 (w32font_filter_properties): New function.
2941 (w32font_driver): Add w32font_filter_properties.
2942
220d91b8 29432010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2944
c0943d3d 2945 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2946 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2947
24f981c9
JB
29482010-10-14 Juanma Barranquero <lekktu@gmail.com>
2949
2950 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2951 * w32font.c (w32_generic_family):
2952 * w32inevt.c (key_event):
2953 * w32menu.c (fill_in_menu):
2954 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2955 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2956 * w32term.c (w32_read_socket): Make static.
2957
850690cc
JB
29582010-10-13 Juanma Barranquero <lekktu@gmail.com>
2959
2960 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2961 prototypes; all callers changed.
2962
5e371708
JB
29632010-10-13 Juanma Barranquero <lekktu@gmail.com>
2964
2965 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2966 (OBJ2): New macro.
2967 (WIN32OBJ, FONTOBJ): Remove.
2968 (OBJ1): Redistribute object files with OBJ2.
2969 (LIBS, $(TEMACS)): Use TLIB2.
2970 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2971 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2972
2e288d54
JB
29732010-10-13 Juanma Barranquero <lekktu@gmail.com>
2974
2975 * emacs.c (Vdynamic_library_alist)
2976 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2977 Doc fix.
2978
2979 * lisp.h (Vdynamic_library_alist): Declare extern.
2980
2981 * image.c (Vimage_library_alist)
2982 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2983 (lookup_image_type): Use Vdynamic_library_alist.
2984 (Finit_image_library): Doc fix.
2985
aba1381b
DN
29862010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2987
2988 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2989 (lispdir): Remove trailing /, update all uses.
2990
4c14013d 29912010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2992
2993 * nsterm.m (Qleft): Declare.
2994 (ns_right_alternate_modifier): New variable
2995 (NSRightAlternateKeyMask): New define.
2996 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2997 ns_right_alternate_modifier isn't Qleft.
2998 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2999 as emacs modifier for NSRightAlternateKeyMask.
3000 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3001
355cdaf3
LMI
30022010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3003
3004 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3005 gnutls is ready, return EAGAIN as the errno.
3006
4c620157
DN
30072010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3008
edfd76ce
DN
3009 * vm-limit.c:
3010 * unexhp9k800.c:
3011 * unexelf.c:
3012 * unexaix.c:
3013 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3014
a4daeecf
DN
3015 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3016 (PROFILING_LDFLAGS): Remove, not needed anymore.
3017
2cb72a75 3018 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
3019 (CRT_DIR): Move near potential user.
3020 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 3021
4c620157
DN
3022 * sysdep.c (LPASS8): Remove, unused.
3023 (emacs_ospeed): Change from being a global to a local in the only
3024 user: init_baud_rate.
3025
b845653d
LMI
30262010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3027
3028 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 3029 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 3030 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 3031 gnutls_read. This allows us to actually read lots of data from
b845653d 3032 the GnuTLS stream.
2e6c74c5
LMI
3033 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3034 According to the documentation, this is correct, and it seems to
3035 make things work.
b845653d 3036
3625b3e2
CY
30372010-10-09 Chong Yidong <cyd@stupidchicken.com>
3038
3039 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3040
8b1c619f
MA
30412010-10-08 Michael Albinus <michael.albinus@gmx.de>
3042
3043 * keyboard.c: Revert last change; it was not intended to be
3044 synchronized with the trunk.
3045
93d50df8
KH
30462010-10-08 Kenichi Handa <handa@m17n.org>
3047
2b7c9342 3048 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3049
4628bef1 30502010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3051
3052 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3053 (Fdbus_init_bus): ... here. (Bug#7113)
3054
4628bef1 30552010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3056
3057 * buffer.c (before-change-functions, after-change-functions):
3058 Three-year overdue doc fix following 2007-08-13 change.
3059
4628bef1 30602010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3061
3062 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3063 eol-format, inherit from the system's default.
3064 (complement_process_encoding_system): Make a new coding system
3065 inherit the original eol-format.
3066
4628bef1 30672010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3068
3069 * coding.c (complement_process_encoding_system): New function.
3070
3071 * coding.h (complement_process_encoding_system): Extern it.
3072
3073 * callproc.c (Fcall_process): Complement the coding system for
3074 encoding arguments.
3075 (Fcall_process_region): Complement the coding system for encoding
3076 the input to the process.
3077
3078 * process.c (Fstart_process): Complement the coding system for
3079 encoding arguments.
3080 (send_process): Complement the coding system for encoding what
3081 sent to the process.
3082
4628bef1 30832010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3084
3085 * xfont.c (xfont_open): Fix setting of font->average_width from
3086 :avgwidth property (Bug#7123).
3087
4628bef1 30882010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3089
3090 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3091 is more portable.
3092
3093 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3094 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3095 has not defined SIGIO.
3096
389454fb
CY
30972010-10-08 Chong Yidong <cyd@stupidchicken.com>
3098
3099 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3100 draw the outermost line using the black relief, for legibility.
3101 Omit drawing the four corner pixels.
3102
51b403bd
CY
31032010-10-04 Chong Yidong <cyd@stupidchicken.com>
3104
3105 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3106 (read_key_sequence): Inline echo_prompt.
3107 (echo_dash): Add a dash only if key is continued (Bug#7137).
3108
3e6ae1a4
DN
31092010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3110
3111 Remove O_RDONLY, O_WRONLY definitions, not needed.
3112 * unexcoff.c:
3113 * lread.c:
3114 * fileio.c:
3115 * doc.c:
3116 * callproc.c:
3117 * alloc.c:
3118 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3119
c1ae068b
LMI
31202010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3121
3122 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3123
3124 * gnutls.c: Add property list symbol holders.
3125 (emacs_gnutls_handshake): Clarify how sockets are passed to
3126 GnuTLS.
3127 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3128 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3129 and keyfiles to be a list of file names. Default to "NORMAL" for
3130 the priority string. Improve logging.
3131
e2afe435
GM
31322010-10-03 Glenn Morris <rgm@gnu.org>
3133
3134 * fileio.c (Vdirectory_sep_char): Remove.
3135
dd5ecd6b
DN
31362010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3137
b5437a05
DN
3138 * termhooks.h: Remove #ifdef CONSP.
3139
4777478a
DN
3140 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3141
a3d5088d
DN
3142 Include <fcntl.h> unconditionally.
3143 * termcap.c:
3144 * sysdep.c:
3145 * lread.c:
3146 * keyboard.c:
3147 * filelock.c:
3148 * fileio.c:
3149 * doc.c:
3150 * callproc.c:
3151 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3152 does it.
3153
82719735
DN
3154 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3155
9de940b5
DN
3156 * sysdep.c (flush_pending_output): Remove code, does not do
3157 anything on any platform.
3158
57507bf8 3159 Remove unused code.
bba3e508
SM
3160 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3161 Remove select emulation, all systems support select.
57507bf8
DN
3162 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3163 * process.c (create_process): Remove #if 0 code.
3164
dd5ecd6b
DN
3165 Remove unused arguments for unexec.
3166 The third one is never used, and the last two are always passed as zero.
3167 * emacs.c (unexec): Add declaration.
3168 (Fdump_emacs): Only pass the first two arguments to unexec.
3169 Simplify #ifdef.
3170 * unexw32.c (unexec):
3171 * unexsol.c (unexec):
3172 * unexhp9k800.c (unexec):
3173 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3174 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3175 (find_section): Use const.
3176 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3177 (unexec_error): Declare it NO_RETURN.
3178 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3179 it as an argument, remove data_start and entry_address arguments, unused.
3180 (unexec): Remove bss_start, data_start and
3181 entry_address arguments.
3182 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3183 it as an argument, remove data_start and entry_address arguments, unused.
3184 (unexec): Remove bss_start, data_start and
3185 entry_address arguments.
3186
74f1829d
JB
31872010-10-03 Juanma Barranquero <lekktu@gmail.com>
3188
7f467e14
JB
3189 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3190
74f1829d
JB
3191 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3192 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3193 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3194 Fix typos in docstrings.
3195 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3196 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3197
6926550f
CY
31982010-10-03 Chong Yidong <cyd@stupidchicken.com>
3199
3200 * keyboard.c (command_loop_1): Make sure the mark is really alive
3201 before using it (Bug#7044).
3202
54b65f7b
JB
32032010-10-02 Juanma Barranquero <lekktu@gmail.com>
3204
3205 * makefile.w32-in (tags): Rename target to full-tags.
3206
383ebd15
EZ
32072010-10-02 Eli Zaretskii <eliz@gnu.org>
3208
3209 * emacs.c (main): Remove !WINDOWSNT conditional.
3210 (Fkill_emacs): Don't mention exemption on MS-Windows.
3211
9c524fcb
GM
32122010-10-02 Glenn Morris <rgm@gnu.org>
3213
3226d6ca
GM
3214 * character.c (Fchar_bytes): Remove obsolete function.
3215 (syms_of_character): Remove Schar_bytes.
3216
9c524fcb
GM
3217 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3218 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3219 in batch-mode.
3220 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3221 (kill-emacs-hook): Doc fix.
3222
1b217849
LMI
32232010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3224
3225 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 3226 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
3227 renamed to reflect that these are the libxml functions.
3228
54cc6a83
EZ
32292010-10-01 Eli Zaretskii <eliz@gnu.org>
3230
0ebf79de
EZ
3231 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3232 screen dimensions in tty->Wcm.
3233
54cc6a83
EZ
3234 * xdisp.c (set_cursor_from_row): When the row is truncated and
3235 point is outside the range of displayed characters, position the
3236 cursor inside the scroll margin. (Bug#6349)
3237
321401d1
DN
32382010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3239
4cacd822
DN
3240 Do not include stdlib.h and string.h, config.h does it.
3241 * xfont.c:
3242 * w32term.c:
3243 * w32reg.c:
3244 * w32inevt.c:
3245 * w32heap.c:
3246 * w32console.c:
3247 * w16select.c:
3248 * unexsol.c:
3249 * term.c:
3250 * sound.c:
3251 * scroll.c (m):
3252 * gtkutil.c:
3253 * font.c:
3254 * filelock.c:
3255 * fileio.c:
3256 * dosfns.c:
3257 * dbusbind.c:
3258 * bidi.c:
3259 * callproc.c:
3260 * process.c:
3261 * msdos.c:
3262 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3263
bba3e508
SM
3264 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3265 defines it.
0781e7ab 3266
9bf58201
DN
3267 * process.c: Move #include <pty.h> earlier.
3268 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3269 (pty_name): Move definition later.
3270
088dcc3e
DN
3271 * nsselect.m (syms_of_nsselect):
3272 * nsmenu.m (syms_of_nsmenu):
3273 * nsfns.m (syms_of_nsfns):
3274 * msdos.c (syms_of_msdos):
4cacd822 3275
088dcc3e
DN
3276 * image.c (syms_of_image):
3277 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
3278
321401d1
DN
3279 * point.h: Remove, unused.
3280
73077a9a
EZ
32812010-10-01 Eli Zaretskii <eliz@gnu.org>
3282
3283 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
3284 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
3285 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
3286
55e572ef
DN
32872010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3288
3289 * xml.c (parse_string): Use const.
3290
d4b6d95d
LMI
32912010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
3292
ef1b0ba7
SM
3293 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
3294 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
3295 the level to 8 to produce more useful backtraces for bug reports.
3296
e4b6db12
DN
32972010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3298
3299 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
3300
1becef93
JB
33012010-09-30 Juanma Barranquero <lekktu@gmail.com>
3302
3303 * w32console.c (vga_stdcolor_name): Remove unused function;
3304 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
3305
df7fcaff
LMI
33062010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
3307
bac5cef8
LMI
3308 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
3309 (Fgnutls_boot): Start the handshake.
3310 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
3311 (Fgnutls_boot): Remove some debugging messages.
3312 Change indentation throughout to use the Emacs style.
3313 (emacs_gnutls_handshake): Cast the fds to something that's
3314 possibly the expected length.
3315 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 3316
df7fcaff
LMI
3317 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
3318
3319 * process.c (make_process): Set the gnutls_p field to zero by
3320 default.
3321 (read_process_output): Always call the gnutls_read function if the
3322 stream is a gnutls stream.
3323 (send_process): Ditto for writes.
3324
3325 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
3326 or write anything until the state is GNUTLS_STAGE_READY.
3327 (Fgnutls_boot): Mark the stream as being a gnutls stream.
3328
d585695f
EZ
33292010-09-29 Eli Zaretskii <eliz@gnu.org>
3330
af7ef32d
EZ
3331 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
3332 NEUTRAL_DIR.
3333 (handle_invisible_prop, iterate_out_of_display_property)
3334 (next_element_from_buffer): If bidi_it.first_elt is set, call
3335 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
3336 (Bug#7128)
3337
d585695f
EZ
3338 * print.c (print_object): Fix format string and argument types for
3339 printing a Lisp_Misc_Marker.
3340
3341 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
3342 (load_overlay_strings, get_overlay_strings_1)
3343 (get_overlay_strings, forward_to_next_line_start)
3344 (back_to_previous_visible_line_start, reseat, reseat_to_string)
3345 (get_next_display_element, next_element_from_string)
3346 (next_element_from_c_string, next_element_from_buffer)
3347 (move_it_vertically_backward, move_it_by_lines, add_to_log)
3348 (message_dolog, message_log_check_duplicate, message2_nolog)
3349 (message3, message3_nolog, vmessage, set_message, set_message_1)
3350 (hscroll_window_tree, text_outside_line_unchanged_p)
3351 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
3352 (find_last_unchanged_at_beg_row)
3353 (find_first_unchanged_at_end_row, row_containing_pos)
3354 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
3355 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
3356 Use EMACS_INT for buffer and string positions.
d585695f
EZ
3357
3358 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
3359 (row_containing_pos): Adjust prototype.
3360
3361 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
3362 (message2_nolog, set_message): Adjust prototypes.
3363
a6f3211f
SM
33642010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3365
3366 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
3367 (Fgnutls_boot): Use SDATA.
3368 (Fgnutls_handshake): Remove unused var `max_log_level'.
3369
e0720500
MA
33702010-09-27 Michael Albinus <michael.albinus@gmx.de>
3371
11a5af7c 3372 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
3373 (Bug#7113)
3374
d8a4b27a
J
33752010-09-27 Jan Djärv <jan.h.d@swipnet.se>
3376
42d3022b
J
3377 * xgselect.c (xg_select): Clear file descriptors not set from
3378 rfds and wfds.
3379
d8a4b27a
J
3380 * process.c (wait_reading_process_output): Add missing FD_CLR
3381 for write_mask (must mirror connect_wait_mask).
3382
8ed70bf3
LMI
33832010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
3384
3385 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
3386 prefix.
3387 (Fgnutls_boot): Use changed process members. Use log level with a
3388 function parameter to set it. Bring back Emacs-level debugging
3389 messages at log level 1 and 2.
3390
3391 * process.c (make_process): Initialize gnutls_log_level.
3392
3393 * process.h: Add gnutls_log_level and rename x509_cred and
3394 anon_cred to have the gnutls_ prefix for consistency.
3395
3396 * gnutls.h (GNUTLS_LOG): Add convenience macro.
3397
bedf4aab
JB
33982010-09-27 Juanma Barranquero <lekktu@gmail.com>
3399
3400 * w32.c (g_b_init_get_sid_identifier_authority)
3401 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
3402 Remove, not used.
3403 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
3404 (init_winsock): Remove useless assignment.
3405 (open_process_token, get_token_information, lookup_account_sid)
3406 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
3407 (get_security_descriptor_owner, get_security_descriptor_group)
3408 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
3409 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
3410 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
3411 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
3412 (unc_volume_file_attributes, convert_from_time_t)
3413 (create_toolhelp32_snapshot, process32_first, process32_next)
3414 (open_thread_token, impersonate_self, revert_to_self)
3415 (get_process_memory_info, get_process_working_set_size)
3416 (global_memory_status, global_memory_status_ex, socket_to_fd)
3417 (shutdown_handler): Make static.
3418
08609ffd
MA
34192010-09-27 Michael Albinus <michael.albinus@gmx.de>
3420
3421 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
3422 (xd_pending_messages): Functions removed.
3423 (xd_read_queued_messages): Add parameters fd, *data, for_read in
3424 order to be compatible with add_read_fd. Determine bus from data,
3425 and call xd_read_message just for this bus.
3426 (xd_add_watch): Use xd_read_queued_messages as callback function.
3427 Add data.
3428
3429 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
3430
d2e9d0bb
LMI
34312010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
3432
ef1b0ba7 3433 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 3434 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 3435
4be9765d
KH
34362010-09-27 Kenichi Handa <handa@m17n.org>
3437
3438 These changes are to remove restriction on the number of glyphs in
3439 one composition.
3440
3441 * dispextern.h (struct glyph): Change the member "slice" to union.
3442 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 3443 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
3444
3445 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3446 instead of glyph->slice.
3447 (marginal_area_string): Likewise.
3448
3449 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3450 glyph->u.cmp.
3451 (append_composite_glyph): Likewise.
3452
3453 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3454 glyph->u.cmp.
3455 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3456 (append_composite_glyph): Likewise.
3457 (fill_image_glyph_string): Use glyph->slice.img instead of
3458 glyph->slice.
3459 (append_glyph, produce_image_glyph, append_stretch_glyph)
3460 (note_mouse_highlight): Likewise.
3461
3fad2ad2
J
34622010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3463
bf05eed6
J
3464 * process.c (add_keyboard_wait_descriptor)
3465 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
3466 (wait_reading_process_output): Don't pass write_mask to select
3467 if SELECT_CANT_DO_WRITE_MASK is defined.
3468 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 3469
3fad2ad2
J
3470 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3471 (delete_write_fd): Declare.
3472
3473 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3474 (write_mask): New variable.
ef1b0ba7 3475 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 3476 (fd_callback_info): New variable.
70e31436
JB
3477 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3478 New functions.
3fad2ad2
J
3479 (Fmake_network_process): FD_SET write_mask.
3480 (deactivate_process): FD_CLR write_mask.
3481 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
3482 check_connect removed. check_write is new. Remove references to gpm.
3483 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
3484 NON_BLOCKING_CONNECT) instead of Connecting.
3485 Loop over file descriptors and call callbacks in fd_callback_info
3486 if file descriptor is ready for I/O.
3487 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3488 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3489 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
3490 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3491 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
3492 (init_process): Initialize write_mask and fd_callback_info.
3493
3494 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3495
3496 * dbusbind.c: Include process.h.
3497 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3498 (xd_read_message_1): New functions.
70e31436
JB
3499 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3500 Handle watch for both read and write.
3fad2ad2
J
3501 (Fdbus_init_bus): Also register xd_toggle_watch.
3502 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3503 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3504 to dbus_connection_flush.
70e31436 3505 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
3506 Call xd_read_message_1 until status is COMPLETE.
3507
dce4c2ac
DN
35082010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3509
3510 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
3511 (init_tty): Reorder code to reduce the number of #ifdefs.
3512 No code changes.
dce4c2ac 3513
8af55556
TZ
35142010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3515
3516 * process.h: Set up GnuTLS support.
3517
3518 * process.c (make_process, Fstart_process)
3519 (read_process_output, send_process): Set up GnuTLS support for
3520 process input/output file descriptors.
3521
3522 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3523
3524 * gnutls.c: The source code for GnuTLS support in Emacs.
3525
3526 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3527
3528 * config.in: Set up GnuTLS support.
3529
3530 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3531 (obj, LIBES): Set up GnuTLS support.
3532
83e245c4
JB
35332010-09-26 Juanma Barranquero <lekktu@gmail.com>
3534
3535 * w32.c (get_emacs_configuration_options): Fix previous change.
3536
d24ec09a
CY
35372010-09-25 Chong Yidong <cyd@stupidchicken.com>
3538
3539 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3540 alive before using it (Bug#6977).
3541
b7bdc47c
LMI
35422010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3543
a952d5f3
LMI
3544 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3545
3546 * dispextern.h: EMACS_INT/int fixup.
3547
3548 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3549 fixup.
3550
b7bdc47c
LMI
3551 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3552
41118bd3
EZ
35532010-09-25 Eli Zaretskii <eliz@gnu.org>
3554
2452438f
EZ
3555 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3556 (Fselect_window, window_scroll_pixel_based)
3557 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3558 Use EMACS_INT for buffer positions.
3559
3560 * textprop.c (validate_interval_range, interval_of)
3561 (property_change_between_p, Fadd_text_properties)
3562 (set_text_properties_1, Fremove_text_properties)
3563 (Fremove_list_of_text_properties, Ftext_property_any)
3564 (Ftext_property_not_all, copy_text_properties)
3565 (text_property_list, extend_property_ranges)
3566 (verify_interval_modification): Use EMACS_INT for buffer
3567 positions.
3568
f877c546
EZ
3569 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3570 for buffer positions.
3571
3572 * process.c (read_process_output, send_process)
3573 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3574 and string positions and size.
3575
da43f021
EZ
3576 * print.c (print_object, print_string, strout): Use EMACS_INT for
3577 string indices.
3578
3579 * minibuf.c (string_to_object): Use EMACS_INT for string position
3580 and size.
3581
3582 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3583
3584 * lread.c <read_from_string_index, read_from_string_index_byte>
3585 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3586 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3587 buffer positions and string length.
3588
41118bd3
EZ
3589 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3590 EMACS_INT.
3591 (echo_truncate, adjust_point_for_property, read_char)
3592 (gen_help_event, make_lispy_event, modify_event_symbol)
3593 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3594 for buffer positions and string length.
3595
3596 * keyboard.h (gen_help_event): Adjust prototype.
3597
3598 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3599
3600 * commands.h <last_point_position>: Declare EMACS_INT.
3601
3602 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3603 (truncate_echo_area): Accept EMACS_INT argument.
3604
3605 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3606
3607 * lisp.h (truncate_echo_area): Adjust prototype.
3608
3609 * composite.c (composition_adjust_point): Return EMACS_INT.
3610
3611 * composite.h (composition_adjust_point): Adjust prototype.
3612
ba3033ee
JB
36132010-09-25 Juanma Barranquero <lekktu@gmail.com>
3614
3615 * process.c (Fmake_network_process): When arg :host is 'local,
3616 use address 127.0.0.1, not name "localhost". (Bug#6781)
3617
4f3a2f8d
EZ
36182010-09-24 Eli Zaretskii <eliz@gnu.org>
3619
5816888b
EZ
3620 * indent.c (Fcurrent_indentation, indented_beyond_p)
3621 (compute_motion): Use EMACS_INT for buffer position variables.
3622
3623 * lisp.h (indented_beyond_p): Adjust prototype.
3624
3625 * buffer.c (overlay_strings): Return EMACS_INT.
3626
3627 * buffer.h (overlay_strings): Adjust prototype.
3628
3629 * region-cache.c (pp_cache): Adjust format to arguments.
3630
3631 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3632 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3633 (verror): Use EMACS_INT for size of allocated buffer.
3634
ace1712c
EZ
3635 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3636 positions.
3637
3638 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3639 (set_cursor_from_row, find_first_unchanged_at_end_row):
3640 Use EMACS_INT for buffer positions.
ace1712c 3641
f5276b75 3642 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3643
3644 * dispnew.c (increment_matrix_positions)
3645 (increment_row_positions, copy_glyph_row_contents)
3646 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3647 positions.
3648
3649 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3650 (increment_matrix_positions, increment_row_positions):
3651 Adjust prototypes.
ace1712c
EZ
3652
3653 * data.c (Faref, Faset): Use EMACS_INT for string length and
3654 positions.
3655
3656 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3657 characters to insert.
3658
3659 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3660 position and size.
3661
4f3a2f8d
EZ
3662 * syntax.c (scan_words, update_syntax_table)
3663 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3664 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3665 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3666
3667 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3668
3669 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3670 positions.
3671
db063399
LMI
36722010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3673
f0812d35
LMI
3674 * scroll.c (calculate_scrolling, line_ins_del)
3675 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3676 conversion.
3677
f5c7fc27
LMI
3678 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3679 (region_cache_backward, region_cache_forward)
3680 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3681 conversion.
3682
db063399
LMI
3683 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3684
3685 * eval.c (verror): Fix EMACS_INT/int conversion.
3686
07914cd0 3687 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3688 (print_preprocess, print_check_string_charset_prop)
3689 (print_object): Fix EMACS_INT/int conversion.
3690
3691 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3692
e6d4aefa
EZ
36932010-09-24 Eli Zaretskii <eliz@gnu.org>
3694
69481da7
EZ
3695 * callproc.c (Fcall_process): Use EMACS_INT for count of
3696 characters read from the subprocess.
3697
61bfec98
EZ
3698 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3699 positions.
3700 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3701 positions.
3702
145582a0
EZ
3703 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3704 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3705 length.
3706 (advance_to_char_boundary, Fset_buffer_multibyte)
3707 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3708 (overlay_touches_p, record_overlay_string, overlay_strings)
3709 (recenter_overlay_lists, fix_start_end_in_overlays)
3710 (modify_overlay, Fmove_overlay, report_overlay_modification)
3711 (evaporate_overlays): Use EMACS_INT for buffer positions.
3712
bba3e508
SM
3713 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3714 Adjust prototypes.
145582a0 3715
446470a9
EZ
3716 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3717 positions.
3718
e6d4aefa
EZ
3719 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3720 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3721 (Fsubstring_no_properties, substring_both, Ffillarray)
3722 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3723 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3724 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3725 (Fmd5): Use EMACS_INT for buffer and string positions and length
3726 variables and arguments.
3727
3728 * lisp.h (substring_both): Adjust prototype.
3729
eb652396
JB
37302010-09-24 Juanma Barranquero <lekktu@gmail.com>
3731
3732 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3733 * w32fns.c (clipboard_sequence_fn): Don't declare.
3734 (globals_of_w32fns): Don't initialize it.
3735
266a86bd 37362010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3737
3738 * syntax.c (back_comment): Detect the case where a 1-char comment
3739 starter is also the 2nd char of a 2-char comment ender.
3740
266a86bd 37412010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3742
3743 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3744
40283062
LMI
37452010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3746
db063399
LMI
3747 * eval.c (verror): EMACS_INT/int cleanup.
3748
faf8b5bc
LMI
3749 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3750 unwind_protect more than 2GB worth of functions.
3751
3752 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3753
40283062
LMI
3754 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3755 string and avoid compiler warnings.
3756 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3757 all users.
3758
3759 * lread.c (oblookup): EMACS_INT/int cleanup.
3760
3761 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3762
fe3537c3
EZ
37632010-09-23 Eli Zaretskii <eliz@gnu.org>
3764
3765 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3766
3767 * lisp.h (clip_to_bounds): Adjust prototype.
3768
3769 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3770
0350982f
LMI
37712010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3772
84c9ce05
LMI
3773 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3774
3775 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3776
3777 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3778 cleanup.
3779
0350982f
LMI
3780 * lisp.h: Change the definition of all marker.c functions that
3781 take and return buffer stuff to be EMACS_INT instead of int.
3782
3783 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3784 (buf_charpos_to_bytepos, bytepos_to_charpos)
3785 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3786 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3787 for all buffer positions.
3788
c50bd0d2
CY
37892010-09-23 Chong Yidong <cyd@stupidchicken.com>
3790
3791 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3792 (split_interval_right, find_interval, next_interval)
3793 (delete_node, delete_interval, interval_deletion_adjustment)
3794 (adjust_intervals_for_deletion, merge_interval_right)
3795 (merge_interval_left, graft_intervals_into_buffer)
3796 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3797
3798 * intervals.h (traverse_intervals): Update prototype.
3799
14162469
EZ
38002010-09-23 Eli Zaretskii <eliz@gnu.org>
3801
c098fdb8
EZ
3802 * indent.c (compute_motion): Use EMACS_INT for arguments to
3803 region_cache_forward.
3804
bba3e508
SM
3805 * region-cache.c (struct boundary, struct region_cache):
3806 Use EMACS_INT for positions.
c098fdb8
EZ
3807 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3808 (delete_cache_boundaries, set_cache_region)
3809 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3810 (region_cache_forward, region_cache_backward, pp_cache):
3811 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3812
3813 * region-cache.h (know_region_cache, invalidate_region_cache)
3814 (region_cache_forward, region_cache_backward): Adjust prototypes.
3815
3816 * search.c (string_match_1, fast_c_string_match_ignore_case)
3817 (looking_at_1, scan_buffer, scan_newline)
3818 (find_next_newline_no_quit, find_before_next_newline)
3819 (search_command, trivial_regexp_p, search_buffer, simple_search)
3820 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3821 and string positions and length.
3822
caefdbe7
EZ
3823 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3824 (find_before_next_newline): Adjust prototypes.
c098fdb8 3825
29cdc13e
EZ
3826 * editfns.c (transpose_markers, update_buffer_properties)
3827 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3828 (get_pos_property, Fconstrain_to_field)
3829 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3830 (Fchar_after, Fchar_before, Finsert_char)
3831 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3832 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3833 Use EMACS_INT for buffer and string position variables.
c098fdb8 3834 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3835
3836 * lisp.h (clip_to_bounds): Adjust prototype.
3837
e79123aa
EZ
3838 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3839 (balance_an_interval, split_interval_right, split_interval_left)
3840 (find_interval, next_interval, update_interval)
3841 (adjust_intervals_for_insertion, delete_node, delete_interval)
3842 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3843 (offset_intervals, merge_interval_right, merge_interval_left)
3844 (graft_intervals_into_buffer, adjust_for_invis_intang)
3845 (move_if_not_intangible, get_local_map, copy_intervals)
3846 (copy_intervals_to_string, compare_string_intervals)
3847 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3848 and for interval tree size.
e79123aa
EZ
3849
3850 * intervals.h (traverse_intervals, split_interval_right)
3851 (split_interval_left, find_interval, offset_intervals)
3852 (graft_intervals_into_buffer, copy_intervals)
3853 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3854 (update_interval): Adjust prototypes.
3855
579c18d0
EZ
3856 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3857 Use EMACS_INT for buffer position variables and arguments.
3858
3859 * composite.c (get_composition_id, find_composition)
3860 (run_composition_function, compose_text)
3861 (composition_gstring_width, autocmp_chars)
3862 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3863 for buffer positions and string length variables and arguments.
3864
3865 * composite.h (get_composition_id, find_composition, compose_text)
3866 (composition_gstring_width): Adjust prototypes.
3867
3868 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3869
bba3e508
SM
3870 * xdisp.c (store_mode_line_noprop, display_mode_element):
3871 Use EMACS_INT for string positions.
579c18d0
EZ
3872
3873 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3874 position arguments.
3875
3876 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3877
3878 * character.c (parse_str_as_multibyte, str_as_multibyte)
3879 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3880 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3881 (strwidth, lisp_string_width, multibyte_chars_in_text):
3882 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3883
3884 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3885 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3886 (c_string_width, strwidth, lisp_string_width):
3887 Adjust prototypes.
14162469 3888
579c18d0
EZ
3889 * font.c (font_intern_prop): Use EMACS_INT for string length
3890 variables.
3891
3892 * font.c (font_intern_prop): Use EMACS_INT for string length
3893 variables.
3894
14162469
EZ
3895 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3896 variables.
3897
3898 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3899 (Fmake_string): Protect against too large strings.
3900 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3901 (live_misc_p): Use ptrdiff_t instead of int for pointer
3902 differences.
3903 (string_bytes, check_sblock, check_string_free_list)
3904 (allocate_string_data, compact_small_strings, Fmake_string)
3905 (Fmake_bool_vector, make_string, make_unibyte_string)
3906 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3907 (make_specified_string_string, Fmake_list, Fmake_vector):
3908 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3909 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3910 (Fpurecopy): Use EMACS_INT for string size.
3911 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3912 for vector size.
3913
3914 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3915 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3916 (make_pure_string, string_bytes, check_point_in_composition):
3917 Adjust prototypes.
14162469 3918
c8a66ab8
EZ
39192010-09-22 Eli Zaretskii <eliz@gnu.org>
3920
3921 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3922 (check_translation): Use EMACS_INT for buffer positions and
3923 length.
3924
3925 * undo.c (record_marker_adjustment, record_delete)
3926 (record_change, record_point, record_insert)
3927 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3928 buffer positions.
3929
3930 * lisp.h (record_marker_adjustment, record_delete)
3931 (record_change, record_point, record_insert)
3932 (record_property_change, Fprimitive_undo): Adjust prototypes.
3933
38c54d9d
JB
39342010-09-22 Juanma Barranquero <lekktu@gmail.com>
3935 Eli Zaretskii <eliz@gnu.org>
3936
3937 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3938
413d18e7
EZ
39392010-09-22 Eli Zaretskii <eliz@gnu.org>
3940
3941 * minibuf.c (Fminibuffer_contents)
3942 (Fminibuffer_contents_no_properties)
3943 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3944 positions.
3945
3946 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3947 mark.
3948
3949 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3950 (allocate_string_data): Accept EMACS_INT for string length.
3951
3952 * editfns.c (Ffield_string, Ffield_string_no_properties)
3953 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3954 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3955 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3956 (Ffield_end): Use EMACS_INT for buffer positions.
3957
3958 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3959 point with mark.
3960
3961 * lisp.h (allocate_string_data, make_uninit_string)
3962 (make_uninit_multibyte_string, make_buffer_string)
3963 (make_buffer_string_both): Adjust prototypes.
3964
4b9832a6
CY
39652010-09-22 Chong Yidong <cyd@stupidchicken.com>
3966
3967 * xml.c: Switch to GNU indentation.
3968 (make_dom): Change parse tree format to match xml.el.
3969 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3970 (Fxml_parse_string_internal): Rename from xml-parse-string.
3971
86282aab
KH
39722010-09-22 Kenichi Handa <handa@m17n.org>
3973
3974 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3975 only if we are not at a composition.
3976 (set_iterator_to_next): Give it->end_charpos to
3977 composition_compute_stop_pos.
3978 (set_iterator_to_next, next_element_from_buffer): Likewise.
3979
3980 * dispnew.c (buffer_posn_from_coords): Fix position when the
3981 current display element is a grapheme cluster in bidi-reordered
3982 region.
3983
840b985a
AR
39842010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3985
3986 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3987 the regions may overlap.
3988
5bc88f4b
JB
39892010-09-21 Juanma Barranquero <lekktu@gmail.com>
3990
3991 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3992
92bc9a36
DN
39932010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3994
d19e096e
DN
3995 * emacs.c: Do not include sys/ioctl.h, not needed.
3996
92bc9a36
DN
3997 * doprnt.c: Do not include stdlib.h, config.h does it.
3998 Move #include before macro definition.
3999
15f844ac
DN
40002010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4001
48e24408
DN
4002 * Makefile.in (temacs): Link using $(CC) not $(LD).
4003 (LD_FIRSTFLAG): Define using autoconf.
4004 (LD): Remove.
4005
65539506
DN
4006 Remove HAVE_TERMIOS definitions.
4007 * s/usg5-4-common.h (HAVE_TERMIOS):
4008 * s/template.h (HAVE_TERMIOS):
4009 * s/gnu-linux.h (HAVE_TERMIOS):
4010 * s/darwin.h (HAVE_TERMIOS):
4011 * s/cygwin.h (HAVE_TERMIOS):
4012 * s/bsd-common.h (HAVE_TERMIOS):
4013 * s/aix4-2.h (HAVE_TERMIOS):
4014 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4015 defined on all non-MS platforms.
4016 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4017
15f844ac
DN
4018 * xterm.c (xt_action_hook): Use const.
4019
7d701334
JB
40202010-09-20 Juanma Barranquero <lekktu@gmail.com>
4021
4022 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4023 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4024 (gethostname) [!HAVE_SOCKETS]: Remove.
4025 (SOCK_REPLACE_HANDLE): Remove macro.
4026 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4027 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4028 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4029 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4030
f3ec267a
EZ
40312010-09-18 Eli Zaretskii <eliz@gnu.org>
4032
4033 * deps.mk (xml.o): Add dependencies.
4034
93acd23d
JB
4035 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4036 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4037
4038 * bidi.c (bidi_paragraph_init): Accept an additional argument
4039 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4040 search back until a paragraph with a strong directional character
4041 is found, and use that to determine paragraph's base direction.
4042
4043 * dispextern.h (bidi_paragraph_init): Update prototype.
4044
69e847be
EZ
40452010-09-17 Eli Zaretskii <eliz@gnu.org>
4046
4047 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4048 of w32api >= 3.15. (Bug#6989)
4049
283357a7
LMI
40502010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4051
4052 * process.c (wait_reading_process_output): Don't message about
4053 accept-process-output unless the time limit really is zero.
4054
4ddb20d6
SM
40552010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4056
4057 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4058 int/Lisp_Object mixup).
4059
e24ad6dd
J
40602010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4061
4062 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4063 not HELP.
4064
fb0cf781
J
40652010-09-17 Stephen Berman <stephen.berman@gmx.net>
4066
4067 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4068 bar's pixel width to Lisp (Bug#7048).
4069
4ddb20d6
SM
40702010-09-14 Juanma Barranquero <lekktu@gmail.com>
4071
4072 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4073
318a04c6
J
40742010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4075
4076 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4077 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4078
78a21772
KH
40792010-09-17 Kenichi Handa <handa@m17n.org>
4080
4081 * ftfont.c (ftfont_check_otf): Fix previous change.
4082
fa3f6039
KH
40832010-09-14 Kenichi Handa <handa@m17n.org>
4084
4085 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4086 existence of GSUB or GPOS.
4087
2b5491fa
JB
40882010-09-14 Juanma Barranquero <lekktu@gmail.com>
4089
4090 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4091
c97c655f
LMI
40922010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4093
ef1b0ba7 4094 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4095 what it does.
4096 (parse_string): Return nil when the document can't be parsed.
4097
6664fc59 40982010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4099
4100 * xterm.c (get_current_vm_state): New function.
4101 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4102 want_fullscreen so set_wm_state calls are few (Bug#7013).
4103 (x_handle_net_wm_state): Move code to get_current_vm_state and
4104 call that function.
4105
6664fc59 41062010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4107
4108 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4109
6664fc59 41102010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4111
4112 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4113 we may use designation or locking-shift.
4114
6664fc59 41152010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4116
4117 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4118 sequence when the source is multibyte.
4119
1da70e99
AS
41202010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4121
6664fc59
JB
4122 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4123 Don't make first argument optional. Doc fix.
1da70e99 4124
26632d8d
LMI
41252010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4126
4127 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4128 parameters for the doc string.
4129
21fa8e37
LMI
41302010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4131
4132 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4133
5616cc54
SM
41342010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4135
4136 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4137 (syms_of_fns): Don't defsubr Sy_or_n_p.
4138 * lisp.h: Don't declare Fy_or_n_p.
4139 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4140
381408e2
LMI
41412010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4142
4143 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4144
41452010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4146
4147 * xml.c: New file.
4148 (Fhtml_parse_buffer): New function to interface to the libxml2
4149 html parsing function.
4150
733946e7
JB
41512010-09-05 Juanma Barranquero <lekktu@gmail.com>
4152
4153 * biditype.h: Regenerate.
4154
7574650a
AS
41552010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4156
4157 * nsimage.m (ns_load_image): Check argument types.
4158
4159 * image.c: Remove all uses of gcpro.
4160 (xpm_load): Check all lisp types.
4161 (pbm_load): Likewise.
4162 (png_load): Likewise.
4163 (jpeg_load): Likewise.
4164 (tiff_load): Likewise.
4165 (gif_load): Likewise.
4166 (imagemagick_load_image): Likewise.
4167 (imagemagick_load): Likewise.
4168 (svg_load): Likewise.
4169 (gs_load): Likewise.
4170
6e6b8e25
EZ
41712010-09-04 Eli Zaretskii <eliz@gnu.org>
4172
bba3e508
SM
4173 * w32uniscribe.c (uniscribe_shape): Update commentary.
4174 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
4175 hold them in the logical order.
4176 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4177 return glyph codes in the logical order.
4178
dbfe4532
AS
41792010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4180
4181 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 4182 (imagemagick_load_image): Fix type mismatch.
5e5992c2 4183 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 4184
6d7cc563
JD
41852010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4186
4187 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4188
4189 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4190
4191 * xselect.c: Remove declaration of cut-buffer objects and functions.
4192 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4193 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4194 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4195 (Fx_rotate_cut_buffers_internal): Remove.
4196 (syms_of_xselect): Remove defsubr of above.
4197 Remove intern of QCUT_BUFFERn.
4198
8f4e9110
SM
41992010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4200
4201 * cmds.c (Vblink_paren_function): Remove.
4202 (internal_self_insert): Make it insert N chars at a time.
4203 Don't call blink-paren-function.
4204 (Fself_insert_command): Adjust accordingly.
4205 (syms_of_cmds): Don't declare blink-paren-function.
4206
d419e1d9
KH
42072010-08-31 Kenichi Handa <handa@m17n.org>
4208
4209 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4210 characters.
4211
4212 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
4213 (produce_glyphs): Don't set it->char_to_display here.
4214 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
4215 (produce_special_glyphs): Set temp_it.char_to_display before
4216 calling produce_glyphs.
4217
4218 * xdisp.c (get_next_display_element): Set it->char_to_display
4219 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4220 characters.
4221 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4222 calling PRODUCE_GLYPHS.
4223 (append_space_for_newline): Save and store it->char_to_display.
4224 Set it->char_to_display before calling PRODUCE_GLYPHS.
4225 (extend_face_to_end_of_line): Set it->char_to_display before
4226 calling PRODUCE_GLYPHS.
4227 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4228 character to its byte value.
4229 (get_char_glyph_code): New function.
4230 (produce_stretch_glyph): Set it2.char_to_display too before
4231 calling x_produce_glyphs.
4232 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
4233 non-ASCII characters. Don't set it->char_to_display here.
4234 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 4235 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 4236
b819f760
SM
42372010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4238
4239 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4240
07fa68a7
CY
42412010-08-31 Chong Yidong <cyd@stupidchicken.com>
4242
4243 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4244
cd196f12
SM
42452010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4246
4247 * marker.c (Fcopy_marker): Make the first arg optional.
4248
49a752bb
KH
42492010-08-30 Kenichi Handa <handa@m17n.org>
4250
4251 * composite.c (composition_update_it): Fix computing of
4252 cmp_it->width.
4253
769ae9e1
KH
42542010-08-29 Kenichi Handa <handa@m17n.org>
4255
9e69cb05 4256 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 4257 corresponding bytes.
9e69cb05 4258
4520b858
J
42592010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4260
4261 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4262
fe50eb41
KH
42632010-08-26 Kenichi Handa <handa@m17n.org>
4264
4265 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4266 on calling composition_compute_stop_pos.
4267
f6aa6ec6
KH
42682010-08-25 Kenichi Handa <handa@m17n.org>
4269
9dfdbc0a
KH
4270 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4271 :otf.
4272
f6aa6ec6
KH
4273 * composite.c (composition_compute_stop_pos): Don't break
4274 composition at PT.
4275 (composition_reseat_it): Likewise. Fix calculation of character
4276 position starting a composition.
4277 (Fcomposition_get_gstring): Don't limit the number of components
4278 for automatic composition.
4279
ff94e32c
KH
42802010-08-25 Kenichi Handa <handa@m17n.org>
4281
4282 * composite.c (composition_compute_stop_pos): In forward search,
4283 pay attention to the possibility that some character after ENDPOS
4284 will be composed with charactrs before ENDPOS.
4285
1c409d0b
CY
42862010-08-24 Chong Yidong <cyd@stupidchicken.com>
4287
4288 * keyboard.c (command_loop_1): Don't clobber primary selection
4289 during handle-switch-frame (Bug#6872).
4290
0c372655
MA
42912010-08-23 Michael Albinus <michael.albinus@gmx.de>
4292
4293 * dbusbind.c: Accept UNIX domain sockets as bus address.
4294 (Fdbus_close_bus): New function.
4295 (Vdbus_registered_buses): New variable.
4296 (xd_initialize): Implement string as bus address.
4297 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
4298 (Fdbus_get_unique_name, Fdbus_call_method)
4299 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4300 (Fdbus_method_error_internal, Fdbus_send_signal)
4301 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
4302 check. This is done in xd_initialize_bus. Adapt doc string, if
4303 necessary.
4304 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
4305 Vdbus_registered_buses.
4306 (Vdbus_registered_objects_table): Create hash.
4307
7133b7ee
JL
43082010-08-22 Juri Linkov <juri@jurta.org>
4309
4310 * keyboard.c (Fexecute_extended_command): Move reading a command name
4311 with `completing-read' to a new Elisp function `read-extended-command'.
4312 Call it to read a command to `function' (bug#5364, bug#5214).
4313
198a7a97
CY
43142010-08-22 Chong Yidong <cyd@stupidchicken.com>
4315
4316 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
4317
b0126eac 43182010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
4319
4320 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
4321 instead of SAFE_ALLOCA.
4322
b0126eac 43232010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
4324
4325 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
4326 (Bug#6214).
4327
b0126eac 43282010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
4329
4330 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
4331
b0126eac
CY
43322010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4333
4334 * doc.c (Fsnarf_documentation): Initialize skip_file before
4335 build-files test.
4336
692f3ddc 43372010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 4338
692f3ddc
JB
4339 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
4340 New definitions.
b0126eac
CY
4341 (HAVE_TERMIO): Remove.
4342
5f2f0bc1
EZ
43432010-08-22 Eli Zaretskii <eliz@gnu.org>
4344
b613941b
EZ
4345 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4346
a583bbef
EZ
4347 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
4348 for w32.
4349
4350 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
4351 it's done in nt/config.nt.
4352
4353 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
4354
5f2f0bc1
EZ
4355 * unexcoff.c (report_error, make_hdr, write_segment)
4356 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
4357 Convert argument lists and prototypes to ANSI C.
4358 (make_hdr, write_segment): Remove unused variables.
4359 (unexec): Remove commented-out line. Initialize `new' to shut up
4360 compiler warnings.
4361
a7ebc409
DN
43622010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
4363
4364 Simplify termio code.
4365 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
4366 HAVE_TERMIO code is obsolete.
4367 Replace HAVE_TERMIOS conditionals with !DOS_NT.
4368 * systty.h: Do not define HAVE_TCATTR.
4369 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
4370 Do not define EMACS_HAVE_TTY_PGRP. Only define
4371 EMACS_GET_TTY_PGRP for !DOS_NT.
4372 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
4373 sys/ioctl.h and termios.h, systty.h does it.
4374 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
4375 (init_baud_rate): Remove HAVE_TERMIO code.
4376 (child_setup_tty): Remove HAVE_TERMIO code.
4377 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
4378 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
4379 (new_ltchars, new_tchars): Remove, unused.
4380 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
4381 code. Remove special casing for __mips__, it was a no-op.
4382 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
4383 (init_sys_modes): Remove HPUX special case.
4384 * process.c: Include stdlib.h unconditionally. Do not include
4385 fcntl.h, systty.h does it. Remove conditional code for
4386 HAVE_SERIAL, it is always true.
4387 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
4388 always true when SIGNALS_VIA_CHARACTERS is true.
4389 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
4390 !WINDOWSNT means HAVE_TERMIOS.
4391 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
4392 conditional, which is true for all HAVE_TERMIOS systems.
4393 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
4394 instead of HAVE_TERMIOS.
4395 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
4396 EMACS_HAVE_TTY_PGRP.
4397 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
4398 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
4399 anyway.
4400
914f049b 44012010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
4402
4403 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
4404 mirroring pixel positions.
4405
d931da8c
DN
44062010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
4407
b5c76d0c
DN
4408 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
4409 write only.
4410 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
4411 malloc_sbrk_used, nothing uses them.
4412
74815588
DN
4413 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
4414 defined, unconditionally defined in lisp.h.
4415
f5817d1c
DN
4416 * term.c: Do not include <termios.h>, systty.h does it.
4417
d931da8c
DN
4418 * s/unixware.h (HAVE_TCATTR):
4419 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
4420 systty.h defines it when HAVE_TERMIOS is defined.
4421
ff2de6d2 44222010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 4423
b43c883c 4424 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 4425 terminals: add one-character offset for R2L lines.
b43c883c 4426
491a1546
EZ
4427 * emacs.c <emacs_version>: Add a comment regarding
4428 msdos/mainmake.v2's dependency on the syntax of this declaration.
4429
2396cbba
EZ
44302010-08-20 Eli Zaretskii <eliz@gnu.org>
4431
4432 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
4433 position for R2L lines by mirroring the pixel position wrt the
4434 text are box. Improve commentary.
4435
7df6150a
AS
44362010-08-20 Andreas Schwab <schwab@linux-m68k.org>
4437
4438 * image.c (imagemagick_clear_image): Remove debugging output.
4439
a2e5caf7
SM
44402010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4441
4442 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
4443 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
4444 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
4445 self-insert-face.
4446 (syms_of_cmds): Initialize the new vars.
4447
20d60baf
JR
44482010-08-19 Jason Rumney <jasonr@gnu.org>
4449
cc477da7
JR
4450 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4451
20d60baf
JR
4452 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4453
2c0ac867
J
44542010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4455
4456 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4457
93352106
EZ
44582010-08-18 Eli Zaretskii <eliz@gnu.org>
4459
4460 * xterm.c (x_draw_bar_cursor):
4461 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4462 R2L, draw the bar cursor on its right rather than on its left.
4463
c785836d
SM
44642010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4465
0193499f
SM
4466 * eval.c (Fdefmacro): Only obey one declaration.
4467
c785836d
SM
4468 * casefiddle.c (casify_region): Setup gl_state.
4469
9cb728a5
J
44702010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4471
4472 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4473
e1e18511
J
44742010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4475
1d77b63e 4476 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 4477
64cb6c78
J
44782010-08-18 David De La Harpe Golden <david@harpegolden.net>
4479
4480 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4481 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4482 QPRIMARY => NXPrimaryPboard.
4483 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4484 NXPrimaryPboard => QPRIMARY.
4485 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4486 NXSecondaryPboard = SecondarySelection.
4487 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4488
0c9b8993
GM
44892010-08-18 Joakim Verona <joakim@verona.se>
4490
4491 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4492 defined:
4493 (imagemagick_image_p): New function to test for ImageMagic image.
4494 (imagemagick_load): New function to load ImageMagick image.
4495 (imagemagick_load_image): New function, helper for imagemagick_load.
4496 (imagemagick-types): New function.
4497 (Qimagemagick): New Lisp_object.
4498 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 4499
c3554f68
SM
45002010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4501
4502 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4503 is a string.
4504
1ff2e434
J
45052010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4506
4507 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4508 x_set_tool_bar_position handler.
4509
0cc56427
EZ
45102010-08-17 Eli Zaretskii <eliz@gnu.org>
4511
4512 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4513 x_set_tool_bar_position handler, needed to support changes from
4514 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4515
e45a249b
JD
45162010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4517
921242c6
J
4518 * nsselect.m: include keyboard.h for QPRIMARY, remove its
4519 declaration (Bug#6863).
573d150b 4520 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 4521
e45a249b
JD
4522 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4523
4524 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4525
7c23dd44
CY
45262010-08-16 Chong Yidong <cyd@stupidchicken.com>
4527
4528 * keyboard.c (command_loop_1): Avoid setting selection twice,
4529 since it's done in deactivate-mark as well.
4530 (Vselect_active_regions): Change default to t. Replace `lazy'
4531 with non-default value `only', meaning only set PRIMARY for
4532 temporarily active regions.
4533
4534 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4535 select-active-regions.
4536
0005830c
J
45372010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4538
4539 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4540 isn't a string.
4541
603dfc72
AS
45422010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4543
4544 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4545
c25ce9d0
J
45462010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4547
c3554f68
SM
4548 * keyboard.c (parse_tool_bar_item): malloc buf.
4549 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4550 new_lbl (Bug#6855).
c25ce9d0 4551
5872c762
EZ
45522010-08-14 Eli Zaretskii <eliz@gnu.org>
4553
b236615c
EZ
4554 * xterm.c (x_draw_stretch_glyph_string):
4555 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4556 the cursor on the right edge of the stretch glyph.
4557
c3554f68
SM
4558 * xdisp.c (window_box_right_offset, window_box_right):
4559 Fix commentary.
b236615c 4560
5872c762
EZ
4561 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4562 direction when point is inside a run of whitespace characters.
4563
4564 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4565
e66f9a1b
JR
45662010-08-14 Jason Rumney <jasonr@gnu.org>
4567
4568 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4569
79d6f59e
CY
45702010-08-14 Chong Yidong <cyd@stupidchicken.com>
4571
4572 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4573
1c9b4129
JR
45742010-08-13 Jason Rumney <jasonr@gnu.org>
4575
4576 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4577 (MessageBoxW_Proc): New function typedef.
4578 (unicode-message-box): New function pointer.
4579 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4580
2b4e6277
J
45812010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4582
4583 * frame.h (Qtool_bar_position): Declare.
4584
4585 * xfns.c (Fx_create_frame): Call x_default_parameter for
4586 Qtool_bar_position.
4587
94c97d85
EZ
45882010-08-13 Eli Zaretskii <eliz@gnu.org>
4589
8ee81892
EZ
4590 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4591 (report_error, report_error_1): Ditto.
4592 (write_segment): Remove "#if 0" unused code.
4593 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4594 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4595 (start_of_text): Remove unused function (was used only if NO_REMAP
4596 was NOT defined).
4597
891ef8f7
EZ
4598 * msdos.c (IT_set_face): Fix format string to match argument
4599 types.
4600 (IT_write_glyphs, IT_note_mode_line_highlight)
4601 (IT_set_frame_parameters): Remove unused variables.
4602 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4603 (IT_set_terminal_modes): Disambiguate expression in if clause.
4604 (Fmsdos_remember_default_colors): Return Qnil.
4605 (IT_set_frame_parameters): Add parens to disambiguate boolean
4606 expression for logging the cursor type to termscript.
4607 (keyboard_layout_list, keypad_translate_map)
4608 (grey_key_translate_map): Add braces in inner initializers.
4609 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4610 (dos_rawgetc): Remove unused label.
4611 (XMenuActivate): Add braces to remove ambiguous `else'.
4612 (dos_ttraw): Always return a value.
4613 (spawnve): Declare.
4614 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4615
4616 * dosfns.h (x_set_title): Declare.
4617
4618 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4619 Remove unused variables.
4620
4621 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4622 variables.
4623 (init_dosfns): Declare get_lim_data.
4624 (system_process_attributes): Declare Fget_internal_run_time.
4625
38e41e0e
EZ
4626 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4627 list to be consistent with menu.h.
4628
94c97d85
EZ
4629 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4630 warnings due to mixing of "char *" and "const char *".
4631
c5683ceb
SM
46322010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4633
4634 Introduce a new comment style "c" flag.
4635 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4636 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4637 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4638 (syntax_prefix_flag_p): New function.
4639 (Fstring_to_syntax): Understand new "c" flag.
4640 (Finternal_describe_syntax_value): Recognize new flag; use the
4641 SYNTAX_FLAGS_* macros.
4642 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4643 comment style to accomodate the new styles.
4644 (back_comment, forw_comment, Fforward_comment, scan_lists)
4645 (scan_sexps_forward): Update code to obey the new comment style flag.
4646
4647 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4648
4649 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4650
7aee76f4
J
46512010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4652
3a46642b
J
4653 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4654 first.
94dff98f 4655 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4656
4657 * gtkutil.h (xg_check_special_colors): Declare.
4658
4659 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4660 (xg_create_frame_widgets): Connect theme name changes to
4661 style_changed_cb.
4662
42ca4633
J
4663 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4664 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4665 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4666 string literal. file is const char*.
42ca4633
J
4667
4668 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4669 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4670 props. Free them at the end.
4671
4672 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4673
c5683ceb
SM
4674 * xrdb.c (get_system_app): Make path const and use char *p for
4675 non-const char.
42ca4633
J
4676
4677 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4678 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4679 char *.
4680 (button_names): Is const char *.
4681 (xdialog_show): error_name and pane_string is const.
4682
4683 * process.h (synch_process_death): Is const char*.
4684
4685 * w32menu.c (w32_menu_show):
4686 * nsmenu.m (ns_menu_show): error parameter is const char **.
4687
4688 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4689 is const char **.
4690
4691 * menu.c (Fx_popup_menu): error_name is const.
4692
4693 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4694 with unsigned char and XtPointer with void *.
4695
4696 * gtkutil.h: Replace widget_value with struct _widget_value.
4697 (enum button_type, struct _widget_value): Remove and use the one from
4698 keyboard.h.
4699
4700 * gtkutil.c (get_utf8_string): Always return an allocated string.
4701 Parameter is const.
4702 (create_dialog, xg_create_one_menuitem, create_menus)
4703 (xg_item_label_same_p, xg_update_menu_item): Free result from
4704 get_utf8_string.
4705 (xg_separator_p, xg_item_label_same_p): label is const.
4706
4707 * font.h (font_open_by_name): Make name const.
4708
4709 * font.c (font_open_by_name): Make name const.
4710
4711 * floatfns.c (matherr): Use a const char* variable for x->name.
4712
4713 * emacs.c (main): Pass char[] to putenv instead of literal.
4714
4715 * callproc.c (synch_process_death): Make const.
4716 (Fcall_process): Make signame const.
4717
9c5bd55a
J
4718 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4719 (addDisplayItemWithImage): Use const char*.
4720
4721 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4722 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4723
4724 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4725
4726 * keyboard.h (_widget_value): name, value and key are const char*.
4727
7aee76f4
J
4728 * unexmacosx.c (unexec_error): Use const char *.
4729
09d93395
DN
47302010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4731
4732 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4733 (font_parse_name, font_open_by_name):
09d93395 4734 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4735 (font_parse_name, font_open_by_name): Remove const.
09d93395 4736
671d409f
AS
47372010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4738
4739 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4740 definition.
4741
4742 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4743 * m/amdx86-64.h: Likewise.
4744 * m/arm.h: Likewise.
4745 * m/hp800.h: Likewise.
4746 * m/ia64.h: Likewise.
4747 * m/ibmrs6000.h: Likewise.
4748 * m/ibms390.h: Likewise.
4749 * m/intel386.h: Likewise.
4750 * m/iris4d.h: Likewise.
4751 * m/m68k.h: Likewise.
4752 * m/macppc.h: Likewise.
4753 * m/mips.h: Likewise.
4754 * m/sh3.h: Likewise.
4755 * m/sparc.h: Likewise.
4756 * m/template.h: Likewise.
4757 * m/vax.h: Likewise.
4758 * m/xtensa.h: Likewise.
4759 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4760 WORDS_BIG_ENDIAN.
4761 * lisp.h: Likewise.
4762 * md5.c: Likewise.
4763 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4764
8ea90aa3
DN
47652010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4766
4767 Use const char* instead of char*.
4768 Reduce the number of warnings with -Wwrite-strings.
4769 * xrdb.c (get_environ_db, get_system_name):
4770 * unexelf.c (find_section):
4771 * term.c (string_cost, string_cost_one_line, per_line_cost)
4772 (get_named_tty, init_tty):
4773 * sysdep.c (sys_subshell):
4774 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4775 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4776 * search.c (Freplace_match):
4777 * process.c (Fmake_network_process, send_process, init_process):
4778 * lread.c (Fload, init_lread):
4779 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4780 * keyboard.c (parse_tool_bar_item, struct event_head):
4781 * gtkutil.h (xg_get_font_name):
4782 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4783 (make_widget_for_menu_item, make_menu_item, create_menus)
4784 (xg_make_tool_item):
4785 * font.c (parse_matrix, font_parse_name):
4786 * floatfns.c (rounding_driver, float_error_fn_name):
4787 * filelock.c (get_boot_time_1, lock_file_1):
4788 * fileio.c (barf_or_query_if_file_exists, check_writable):
4789 * editfns.c (get_system_name, get_operating_system_release)
4790 (Fencode_time, Fset_time_zone_rule):
4791 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4792 * buffer.c (defvar_per_buffer): Use const.
4793
7815fe19 47942010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4795
692f3ddc 4796 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4797 (struct charset_sort_data): New struct.
4798 (charset_compare): New function.
692f3ddc 4799 (Fsort_charsets): New function.
7a84eee5
KH
4800 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4801
4802 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4803 number in CTEXT extended segment.
4804
7815fe19 48052010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4806
4807 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4808 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4809
7815fe19 48102010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4811
4812 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4813 (Fhash_table_size): Fix typos in docstrings.
4814 (Fmake_hash_table): Doc fix.
4815
7815fe19 48162010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4817
4818 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4819 Doc fix (bug#5625).
4820
7815fe19 48212010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4822
4823 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4824 the MSDOS definition.
4825
1b6d8cf0
DN
48262010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4827
675e2c69
DN
4828 Use const char* instead of char*.
4829 * xterm.c (x_create_toolkit_scroll_bar):
4830 * xfont.c (xfont_list_pattern):
4831 * xfns.c (x_default_scroll_bar_color_parameter)
4832 (xic_create_fontsetname, x_default_font_parameter)
4833 (x_screen_planes):
4834 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4835 (store_mode_line_string, decode_mode_spec, display_string):
4836 * menu.c (digest_single_submenu):
4837 * keymap.h (initial_define_key, initial_define_lispy_key):
4838 * keymap.c (initial_define_key, initial_define_lispy_key):
4839 * image.c (image_error, image_keyword):
4840 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4841 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4842 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4843 (ftfont_list, ftfont_match):
4844 * frame.c (frame_parm_table):
4845 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4846 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4847 (font_add_log, font_deferred_log):
4848 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4849 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4850 (font_add_log, font_deferred_log):
4851 * emacs.c (argmatch):
4852 * dispextern.h (struct it):
4853 * coding.c (ENCODE_DESIGNATION):
4854 * charset.c (define_charset_internal): Use const.
4855
25717ca1
DN
4856 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4857
c5683ceb
SM
4858 * xrdb.c: Remove include guard.
4859 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4860 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4861 realloc->xrealloc instead of using #defines.
4862
efb41e21
EZ
48632010-08-08 Eli Zaretskii <eliz@gnu.org>
4864
cd21226d 4865 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4866 * editfns.c (Fline_beginning_position, Fline_end_position):
4867 State in the doc strings that start and end of line are in the
4868 logical order.
cd21226d 4869
efb41e21
EZ
4870 * xdisp.c (display_line): Move the handling of overlay arrow after
4871 the call to find_row_edges. (Bug#6699)
4872
746812d9
CY
48732010-08-07 Chong Yidong <cyd@stupidchicken.com>
4874
4875 * keyboard.c (command_loop_1):
4876 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4877
9852377f
CY
48782010-08-07 Chong Yidong <cyd@stupidchicken.com>
4879
4880 * insdel.c (prepare_to_modify_buffer): Save active region text to
4881 Vsaved_region_selection.
4882
4883 * xselect.c (QPRIMARY): Move to keyboard.c.
4884
4885 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4886 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4887 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4888
0e9c8657
JB
48892010-08-07 Juanma Barranquero <lekktu@gmail.com>
4890
4891 * alloc.c (lisp_malloc):
4892 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4893 * charset.h (emacs_mule_charset):
4894 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4895 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4896 (bitch_at_user):
4897 * lisp.h (Fcheck_coding_system, Fget_text_property)
4898 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4899 Remove duplicate declarations.
4900
648801d1
DN
49012010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4902
32bc6709
DN
4903 * process.c: Simplify include logic.
4904
3ef1d108
DN
4905 * keyboard.h (quit_char): Add declaration.
4906 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4907 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4908 Add declarations.
3ef1d108
DN
4909 * sysdep.c:
4910 * w32.c: Remove the above declarations.
4911
97ec208f
DN
4912 Remove extern declarations in .c files, .h files have them.
4913 * xterm.c:
4914 * xdisp.c:
97ec208f
DN
4915 * msdos.c:
4916 * image.c:
4917 * gtkutil.c:
4918 * fileio.c:
4919 * eval.c: Remove declarations.
4920
94eed851
DN
4921 * frame.c (frame_params): Make const.
4922
36e053eb
DN
4923 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4924
0e843971
DN
4925 * emacs.c (emacs_copyright, emacs_version): Make static.
4926 (Vinitial_window_system, Vauto_save_list_file_name)
4927 (Vinhibit_redisplay): Remove declarations.
4928 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4929 for AIX.
4930
648801d1
DN
4931 Use const for some arrays and functions.
4932 * xterm.h (xg_set_icon_from_xpm_data):
4933 * xfns.c (xg_set_icon_from_xpm_data):
4934 * term.c (fkeys):
4935 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4936 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4937 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4938 (frame.c frame_parms):
4939 * emacs-icon.h (gnu_xpm_bits):
4940 * callint.c (callint_argfuns): Use const.
4941
8646d999
J
49422010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4943
4944 * sysdep.c: Move include term.h last of includes (Bug#6812).
4945
cb4545ad
EZ
49462010-08-06 Eli Zaretskii <eliz@gnu.org>
4947
4948 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4949
4950 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4951
4952 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4953
da7e2be6
JB
49542010-08-06 Juanma Barranquero <lekktu@gmail.com>
4955
4956 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4957
3d608a86
J
49582010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4959
7908fb60
J
4960 * xterm.h (x_get_focus_frame): Declare.
4961
4962 * keyboard.h (poll_for_input_1): Unconditionally declare.
4963
4094bf36
J
4964 * nsterm.h (x_set_menu_bar_lines): Declare.
4965
4966 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4967
3d608a86
J
4968 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4969
4970 * window.c: Include menu.h.
4971
4972 * unexmacosx.c (print_region_list, print_regions)
4973 (build_region_list, find_emacs_zone_regions)
4974 (unexec_regions_merge, read_load_commands, dump_it)
4975 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4976
4977 * term.c: Check HAVE_SYS_IOCTL_H.
4978
686b968e 4979 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4980
686b968e 4981 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4982
4983 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4984 (ns_ring_bell, ns_defined_color, hide_hourglass)
4985 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4986 Convert to ANSI C prototypes.
4987 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4988 before code.
4989
4990 * nsterm.h : Include sysselect.h.
4991 (x_sync, x_get_focus_frame, x_set_mouse_position)
4992 (x_set_mouse_pixel_position, x_make_frame_visible)
4993 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4994 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4995 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4996 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4997 Declare.
3d608a86
J
4998
4999 * nsmenu.m (popup_activated, name_is_separator)
5000 (syms_of_nsmenu): Convert to ANSI C prototypes.
5001 (runMenuAt): Prototypes and move declarations before code.
5002
5003 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5004
5005 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5006 prototypes.
5007
5008 * nsfns.m (have_menus_p, ns_display_info_for_name)
5009 (x_set_cursor_type, ns_appkit_version_str)
5010 (ns_appkit_version_int, ns_do_applescript)
5011 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5012 (syms_of_nsfns): Convert to ANSI C prototypes.
5013
5014 * menu.h (x_set_menu_bar_line): Declare.
5015 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5016
5017 * lisp.h (fmod_float): Declare.
5018
5019 * image.c (xpm_scan, xpm_make_color_table_v)
5020 (xpm_put_color_table_v, xpm_get_color_table_v)
5021 (xpm_make_color_table_h, xpm_put_color_table_h)
5022 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5023 (xpm_load): Convert to ANSI C prototypes.
5024
5025 * emacs.c: Include nsterm.h if HAVE_NS.
5026
5027 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5028
fce70521
DN
50292010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5030
5031 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5032 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5033 (socket_options): Use const char* for name.
5034
a11889ab
JB
50352010-08-06 Juanma Barranquero <lekktu@gmail.com>
5036
5037 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5038
5039 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5040 Don't declare xmalloc_widget_value and digest_single_submenu.
5041
5042 * w32font.c (Qlatin): Remove declaration.
5043
5044 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5045
c95b508f 5046 * dired.c (compile_pattern): Restore declaration.
a11889ab 5047
6254cdda
DN
50482010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5049
04bab72c
DN
5050 Remove extern declarations in .c files, .h files have them.
5051 * data.c:
5052 * dired.c:
5053 * editfns.c:
5054 * filelock.c:
5055 * fns.c:
5056 * font.c:
5057 * fontset.c:
5058 * frame.c:
5059 * fringe.c:
5060 * ftfont.c:
5061 * gtkutil.c:
5062 * indent.c:
5063 * keyboard.c:
5064 * keymap.c:
5065 * lread.c:
5066 * menu.c:
5067 * print.c:
5068 * search.c:
5069 * sound.c:
5070 * window.c:
5071 * xdisp.c:
5072 * xfaces.c:
5073 * xfns.c:
5074 * xfont.c:
5075 * xftfont.c:
5076 * xmenu.c:
5077 * xterm.c: Remove declarations.
5078
dff94ed5
DN
5079 Cleanup syssignal.h.
5080 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5081 (main_thread): Move down to remove #ifdef.
5082 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5083 Remove conditional definition following unconditional ones.
5084
99f3388e
DN
5085 * lisp.h: Remove HAVE_SHM code, unused.
5086 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5087 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5088 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5089 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5090 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5091 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5092 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5093 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5094 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5095 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5096 (Qwindow_scroll_functions, Vafter_load_alist)
5097 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5098 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5099 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5100 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5101 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5102 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5103 (initial_argv, last_nonmenu_event, load_in_progress)
5104 (noninteractive_need_newline, scroll_margin): Add declarations.
5105
bba3e508
SM
5106 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5107 Remove declarations, menu.h has them.
99f3388e
DN
5108 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5109 (Vinput_method_function, Qinput_method_function)
5110 (Qevent_symbol_element_mask, last_event_timestamp):
5111 * dispextern.h (Voverflow_newline_into_fringe):
5112 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5113 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5114 (syms_of_w32font, syms_of_nsfont):
5115 * fontset.h (find_font_encoding, Qlatin):
5116 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5117 (Vtool_bar_mode, set_frame_menubar):
5118 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5119 * xterm.h (Qx_gtk_map_stock):
5120 * keymap.h (meta_prefix_char): Add declarations.
5121
9f5dd6f2
DN
5122 * term.c: Remove dead code.
5123
6254cdda
DN
5124 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5125 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5126 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5127 which is what was there before BSD_PGRPS was removed.
5128
29cf3e20
EZ
51292010-08-05 Eli Zaretskii <eliz@gnu.org>
5130
5131 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5132
5133 * unexcoff.c: Renamed from unexec.c.
5134
aaa0a19a
SM
51352010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5136
5137 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5138
8d1d9587
JB
51392010-08-03 Johan Bockgård <bojohan@gnu.org>
5140
5141 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5142 (Bug#6744)
8d1d9587 5143
9a747ba6
JD
51442010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5145
4d464ae4
JD
5146 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5147 to TRUE if depth of screen is < 16.
5148
ac01763e
JD
5149 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5150 USE_GTK_TOOLTIP.
e0d62a9b
JB
5151 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5152 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5153 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5154 USE_GTK_TOOLTIP.
5155 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5156
5157 * xterm.h (USE_GTK_TOOLTIP): New define.
5158 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5159
9a747ba6
JD
5160 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5161 to Control-D (Bug#6771).
5162
7b0815ba
JB
51632010-08-02 Juanma Barranquero <lekktu@gmail.com>
5164
5165 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5166 Wording by Drew Adams <drew.adams@oracle.com>.
5167
aa1859f5
J
51682010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5169
5170 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5171 ttip_lbl.
5172
5173 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5174 calling gtk_widget_queue_draw.
5175 (x_free_frame_resources): Call xg_free_frame_widgets.
5176
5177 * xfns.c (x_gtk_use_system_tooltips): New variable.
5178 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5179 new gtkutil tooltip functions to show the tooltip.
5180 (Fx_hide_tip): Call xg_hide_tooltip.
5181 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5182
5183 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5184 (xg_show_tooltip, xg_hide_tooltip): Declare.
5185
5186 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
5187 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5188 New functions.
aa1859f5
J
5189 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5190 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5191 Remove code that is commented out.
5192
76417ef4
SM
51932010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5194
5195 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5196
16041401
CY
51972010-07-31 Chong Yidong <cyd@stupidchicken.com>
5198
5199 * xselect.c (x_own_selection): Use list4.
5200
2c09a58f
DN
52012010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5202
5203 * buffer.c (Qwindow): Do not define, already defined in data.c.
5204 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5205
59df9fdd 52062010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 5207
59df9fdd
JB
5208 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5209 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5210 * config.in: Undef HAVE_DIRENT_H.
1c97e857 5211 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 5212 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 5213
1b231651
DN
52142010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5215
5216 Rename s/usg5-4.h -> s/usg5-4-common.h.
5217 * s/usg5-4.h: Rename file to ...
5218 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5219 * s/unixware.h:
5220 * s/sol2-6.h:
5221 * s/irix6-5.h: Update includes accordingly.
5222
bfeabdc3
JD
52232010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5224
2ebf1083
J
5225 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5226
bfeabdc3 5227 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
5228 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5229 Remove toolbar_height.
5230 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
5231 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5232 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5233 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5234
5235 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5236
5237 * xfns.c (x_set_tool_bar_position): New function.
5238 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5239 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 5240 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
5241
5242 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5243 and FRAME_TOOLBAR_LEFT_WIDTH.
5244
5245 * gtkutil.h (xg_change_toolbar_position): Declare.
5246
5247 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5248 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5249 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5250 (xg_create_frame_widgets): Create a hobox for placing widgets
5251 vertically. Use gtk_box_pack_start.
ef1b0ba7 5252 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
5253 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5254 (xg_update_frame_menubar, free_frame_menubar): Change to
5255 xg_height_or_width_changed.
5256 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5257 size correctly. Remove hardcoded 4, instead use handlebox size -
5258 toolbar size.
5259 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 5260 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
5261 (xg_pack_tool_bar): POS is a new parameter.
5262 Set orientation of tool bar based on pos.
5263 Only make handlebox_widget if NULL.
5264 Check if tool bar goes to vbox or hbox depending on pos.
5265 (xg_update_tool_bar_sizes): New function.
686b968e 5266 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
5267 height, call xg_update_tool_bar_sizes instead.
5268 (free_frame_tool_bar): Remove from hbox or vbox depending on
5269 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5270 (xg_change_toolbar_position): New function.
5271
5272 * frame.h (struct frame): Add tool_bar_position.
5273 (Qbottom): Declare.
5274
5275 * frame.c (Qtool_bar_position): New variable.
5276 (make_frame): Set tool_bar_position to Qtop.
5277 (frame_parms): Add tool-bar-position.
5278 (x_report_frame_params): Store tool_bar_position.
5279 (x_set_fringe_width): Reset wm size hint after fringe changes.
5280
26469a38
DN
52812010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5282
5283 Make lisp_time_argument declaration work on all systems.
5284 * lisp.h (lisp_time_argument): Move declaration ...
5285 * systime.h (lisp_time_argument): ... here
5286 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
5287
8848b728
JD
52882010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5289
5290 * vm-limit.c (POINTER): Add typedef for it.
5291 (start_of_data): Change return type from POINTER to char *.
5292
5293 * frame.h (Qtty_color_mode): Move declaration out of ifdef
5294 HAVE_WINDOW_SYSTEM.
5295
76fd1ee9
DN
52962010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5297
0441987e
DN
5298 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
5299 Remove reference to __osf__, unused.
5300
56a000c7
DN
5301 * mem-limits.h: Remove duplicated includes.
5302 (NULL): Remove definition, unused.
5303 (POINTER): Remove definition.
5304 (start_of_data): Use char* in prototype, as the function
5305 definition does.
5306
e6cba650
DN
5307 Remove extern declarations from .c files, and them to .h files.
5308 * keyboard.h (Qhelp_echo, waiting_for_input)
5309 (input_available_clear_time, ignore_mouse_drag_p)
5310 (Vdouble_click_time, real_this_command, Vthis_original_command):
5311 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
5312 (Voverriding_local_map_menu_flag):
5313 * lisp.h (Qinteractive_form, use_file_dialog)
5314 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
5315 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
5316 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5317 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
5318 (Qfunction, debug_on_next_call, Qfield)
5319 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
5320 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
5321 (Qfile_directory_p, Qinsert_file_contents)
5322 (Qcompletion_ignore_case, Qcompletion_ignore_case)
5323 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
5324 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
5325 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
5326 (Qminibuffer_prompt)
5327 (Vtemporary_file_directory,char_ins_del_vector, Qface):
5328 * xterm.h (gray_bitmap_width, gray_bitmap_height)
5329 (gray_bitmap_bits, xic_create_fontsetname):
5330 * coding.h (Vtranslation_table_for_input): Add extern declarations.
5331
5332 * xsmfns.c (Vuser_login_name):
5333 * xrdb.c (Vdouble_click_time):
5334 * xfaces.c (xic_create_fontsetname):
5335 * w32select.c (waiting_for_input):
5336 * print.c (minibuffer_auto_raise):
5337 * msdos.c (Qhelp_echo):
5338 * macros.c (real_this_command):
5339 * keymap.c (Voverriding_local_map):
5340 * xterm.c (poll_for_input_1, gray_bitmap_width)
5341 (gray_bitmap_height, gray_bitmap_bits;
5342 * xmenu.c ( Voverriding_local_map)
5343 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
5344 (use_file_dialog, Xt_app_con):
5345 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
5346 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
5347 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
5348 (Qtool_bar_lines, ignore_mouse_drag_p):
5349 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
5350 (Qrear_nonsticky, nconc2):
5351 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
5352 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
5353 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
5354 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
5355 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
5356 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
5357 (gc_in_progress):
5358 * doc.c (Voverriding_local_map, Qremap):
5359 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
5360 (Vcompletion_regexp_list):
5361 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
5362 (Qcompletion_ignore_case):
5363 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
5364 (Vhistory_length, Vthis_original_command, real_this_command)
5365 (Qface, Qminibuffer_prompt, history_delete_duplicates):
5366 * image.c (Qrisky_local_variable):
5367 * fontset.c (QCname):
5368 * fns.c (minibuffer_auto_raise, QCname):
5369 * dispnew.c (char_ins_del_cost):
5370 * composite.c (font_fill_lglyph_metrics):
5371 * cmds.c (Qface, Vtranslation_table_for_input):
5372 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
5373 * ccl.c (charset_unicode):
5374 * callproc.c (Vtemporary_file_directory):
5375 * buffer.c (emacs_strerror): Remove extern declarations.
5376
5377 * data.c (Qwindow): Make non-static, used from other files too.
5378 * frame.c (validate_x_resource_name): Remove shadow definition for i.
5379
76fd1ee9
DN
5380 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
5381 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5382 * s/usg5-4.h (COFF):
5383 * s/template.h:
5384 * s/msdos.h (COFF, NO_REMAP):
5385 * s/ms-w32.h (NO_REMAP):
5386 * s/hpux10-20.h (NO_REMAP):
5387 * m/sparc.h (SEGMENT_MASK):
5388 * m/m68k.h (NO_REMAP):
5389 * m/intel386.h (SEGMENT_MASK):
5390 * m/arm.h (NO_REMAP):
5391 * m/alpha.h (COFF):
5392 * m/template.h: Remove references to unused defines.
5393
8a52f00a
JD
53942010-07-28 Jan Djärv <jan.h.d@swipnet.se>
5395
5396 * xsettings.c (Ftool_bar_get_system_style): Also check for
5397 Qtext_image_horiz.
5398
5399 * xdisp.c (Qtext_image_horiz): Define.
5400 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 5401 to documentation of tool-bar-style.
8a52f00a
JD
5402
5403 * lisp.h (Qtext_image_horiz): Declare.
5404
5405 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
5406 style text_image_horiz.
5407
89dc303e
DN
54082010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5409
60799703
DN
5410 * emacs.c (Fkill_emacs): Remove return statement.
5411
37254dc1
DN
5412 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
5413 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
5414 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
5415 Remove local extern declarations.
37254dc1 5416
71c7345a
DN
5417 * xmenu.c: Do not included lwlib.h, not needed.
5418
6ba577cb
DN
5419 * m/iris4d.h (XUINT, XSET): Remove, not needed.
5420
fdb183d6
DN
5421 * process.c: Move definitions earlier to minimize #ifdefs.
5422
5423 * xterm.h (x_get_customization_string, x_load_resources)
5424 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
5425 (x_check_errors, x_property_data_to_lisp, defined_color)
5426 (xic_set_xfontset, x_defined_color): Use const.
5427
5428 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
5429 (x_text_icon, x_check_errors, x_connection_closed): Use const.
5430
5431 * xselect.c (selection_data_to_lisp_data)
5432 (x_property_data_to_lisp):
5433 * xrdb.c (x_get_string_resource, file_p)
5434 (x_get_customization_string, magic_file_p, search_magic_path)
5435 (get_system_app, get_user_app, x_load_resources, x_get_resource)
5436 (x_get_string_resource): Use const.
5437
5438 * xfns.c: Include xlwmenu.h when USE_LUCID.
5439 (x_defined_color, xic_set_xfontset): Use const.
5440 (Fx_hide_tip): Remove local extern declaration.
5441
5442 * xfaces.c (Qmouse_face): Remove declaration.
5443 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 5444 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
5445
5446 * xdisp.c (do_mouse_tracking): Remove declaration.
5447 (add_to_log): Use const.
5448
5449 * minibuf.c (Qmouse_face): Remove declaration.
5450
5451 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5452
5453 * keyboard.h (do_mouse_tracking): Add declaration.
5454
5455 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5456 (QCdata, QCtype, Qcenter): Remove declarations.
5457
5458 * frame.c (x_get_resource_string, x_get_string_resource)
5459 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5460 (x_default_parameter): Use const.
5461
5462 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5463 (QCheight, QCsize, QCname): Remove declarations.
5464
5465 * emacs.c (main): Remove local extern declaration.
5466
5467 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5468 declarations.
5469
5470 * dispnew.c: Remove duplicate #include <unistd.h>.
5471 (update_window, update_frame_1, init_display): Remove local extern
5472 declarations.
5473
5474 * dispextern.h (add_to_log): Remove declaration.
5475 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5476 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5477
5478 * dired.c (scmp): Add const.
5479 (directory_files_internal): Remove local extern declaration.
5480
5481 * data.c (Finteractive_form): Use const.
5482
5483 * composite.c (syms_of_composite): Remove local extern declarations.
5484
5485 * charset.c (add_to_log): Remove declaration.
5486
5487 * character.c (strwidth, parse_str_to_multibyte): Add const.
5488
5489 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5490
5491 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5492
89dc303e 5493 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
5494 (Lisp_Subr): Make doc and intspec constant.
5495 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5496 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5497 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5498 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5499 (display_arg): Add declarations.
89dc303e 5500
0ed082fe 55012010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
5502
5503 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5504
0ed082fe
JB
5505 * window.c (Fwindow_height): Doc fix (bug#6518).
5506
55072010-07-27 Juanma Barranquero <lekktu@gmail.com>
5508
5509 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5510
ccaf0336
DN
55112010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5512
977105dc
DN
5513 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5514 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5515 functions.
5516
f5ada890
DN
5517 * frame.h (Qtty_color_mode): Add declaration.
5518
ccaf0336
DN
5519 * lisp.h (Ftop_level, Fexit_recursive_edit)
5520 (Fabort_recursive_edit): Mark as NO_RETURN.
5521
dfe3c90f
KH
55222010-07-26 Kenichi Handa <handa@m17n.org>
5523
5524 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5525 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5526
7d383292
JB
55272010-07-26 Juanma Barranquero <lekktu@gmail.com>
5528
5529 * lread.c (unreadpure, mapatoms_1): Make static.
5530
da31e629
JB
55312010-07-25 Juanma Barranquero <lekktu@gmail.com>
5532
5533 * terminfo.c (tparam): Fix prototype of tparm.
5534
7bfa6d77
AS
55352010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5536
dcc19aac
AS
5537 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5538 find start of text segment.
5539 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5540 is defined.
5541
7bfa6d77
AS
5542 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5543
63f9a672
KB
55442010-07-25 Ken Brown <kbrown@cornell.edu>
5545
5546 * vm-limit.c (check_memory_limits): Fix previous change;
5547 accidentally reverted an earlier change.
5548
24933075
KB
55492010-07-25 Ken Brown <kbrown@cornell.edu>
5550
5551 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5552 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5553
361358ea
JB
55542010-07-25 Juanma Barranquero <lekktu@gmail.com>
5555
5556 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5557 * dired.c (opendir, readdir): Fix prototypes.
5558 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5559 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5560 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5561 (telldir): Remove declaration.
5562 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5563 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5564 * syssignal.h (strsignal): Fix prototype.
5565 * term.c (tparam): Fix prototype.
5566 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5567 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5568 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5569 and __morecore.
5570 * w32gui.h (XParseGeometry): Fix prototype.
5571 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5572 * w32term.c (my_set_focus): Declare inside #if 0.
5573 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5574 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5575 (drain_message_queue, get_next_msg, post_msg, parse_button)
5576 (ClipboardSequence_Proc): Fix prototypes.
5577 (wait_for_sync): Remove declaration.
5578
630b9592
JB
55792010-07-24 Juanma Barranquero <lekktu@gmail.com>
5580
5581 * w32fns.c (w32_to_x_color): Remove, unused.
5582
6a0d6611
AS
55832010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5584
5585 * lisp.h: Remove leftover P_.
5586
4e8608ff
DN
55872010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5588
5589 * ecrt0.c, unexalpha.c: Remove files, unused.
5590
c8197983
AS
55912010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5592
5593 * cmds.c (internal_self_insert): Make static.
5594 * lisp.h (internal_self_insert): Remove declaration.
5595
97b372d7
JB
55962010-07-23 Juanma Barranquero <lekktu@gmail.com>
5597
33ac0414
JB
5598 * alloc.c (free_float):
5599 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5600 * frame.c (delete_frame_handler):
5601 * ralloc.c (reorder_bloc):
5602 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5603 Remove unused static functions.
5604
94da8397
JB
5605 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5606 it is called only from NS code.
5607
2e6c8532
JB
5608 * w32term.c (my_set_focus): #ifdef away; it is called only from
5609 "#ifdef 0" code.
5610
97b372d7
JB
5611 * w32fns.c (x_edge_detection):
5612 * xfaces.c (may_use_scalable_font_p):
5613 Remove obsolete static declarations.
5614
7c3320d8
JB
56152010-07-20 Juanma Barranquero <lekktu@gmail.com>
5616
5617 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5618 (emacs_blocked_realloc, uninterrupt_malloc):
5619 * fringe.c (w32_reset_fringes):
5620 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5621 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5622 * sound.c (be2hs, do_play_sound):
5623 * vm-limit.c (get_lim_data, ret_lim_data):
5624 * w32term.c (x_free_frame_resources):
5625 * xfaces.c (x_create_gc, x_free_gc):
5626 Convert definitions to standard C.
5627
d5273788
SM
56282010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5629
5630 * eval.c (Feval, Ffuncall): Use the new names.
5631
5632 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5633 (DEFUN): Add braces around the union initialisation and use ## to
5634 specify the right union alternative and avoid a cast.
5635
8d16a259
JB
56362010-07-18 Juanma Barranquero <lekktu@gmail.com>
5637
5638 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5639
3b8eff32
CY
56402010-07-17 Chong Yidong <cyd@stupidchicken.com>
5641
5642 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5643
499322ce
J
56442010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5645
5646 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5647 is related to the menu bar (Bug#6499).
a628ad9d 5648 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5649
f6003da5 56502010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5651
5652 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5653
5654 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5655
5656 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5657 i.e. don't put back ButtonRelease (Bug#6608).
5658
5659 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5660 instead of Window. Call xg_event_is_for_menubar when
5661 USE_GTK (Bug#6499).
5662
5663 * gtkutil.h (xg_event_is_for_menubar): Declare.
5664
5665 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5666
f6003da5 56672010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5668
5669 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5670 when it's the same as the old foreground. (Bug#6609)
5671
23243f29
J
56722010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5673
5674 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5675 widget is non-null (Bug#6645).
5676
2b23d2a6
AS
56772010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5678
01b564ff
AS
5679 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5680 Convert old-style definition.
5681
2b23d2a6
AS
5682 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5683 timestamp argument.
5684
c4affd2c
EZ
56852010-07-15 Eli Zaretskii <eliz@gnu.org>
5686
5687 * fringe.c (update_window_fringes): Restore mistakenly reverted
5688 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5689
cf28cebc
J
56902010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5691
5692 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5693 (SET_SAVED_KEY_EVENT): Remove (not used).
5694 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5695 remove size parameter.
5696 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5697 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5698 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5699 ButtonRelease.
6b2c4bd9
J
5700 (x_set_window_size_1): scroll_bar_actual_width is always
5701 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5702
5703 * xdisp.c (pending_menu_activation): Remove extern declaration.
5704 (prepare_menu_bars): Remove setting of pending_menu_activation.
5705
5706 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5707 (x_activate_menubar): Set popup_activated_flag for Xt also.
5708 Remove setting of pending_menu_activation.
cf28cebc
J
5709 (set_frame_menubar): Remove check of pending_menu_activation.
5710 Declare menubar_size before code. Correct spelling in comment.
5711
f6c1c771
KH
57122010-07-14 Kenichi Handa <handa@m17n.org>
5713
5714 * font.c (font_open_entity): Cancel previous change.
5715 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5716
20477505
EZ
57172010-07-13 Eli Zaretskii <eliz@gnu.org>
5718
77defa9a
EZ
5719 Remove subprocesses #ifdefs.
5720 * process.c <inhibit_sentinels>: Move to the common part.
5721 (Fwaiting_for_user_input_p): Move to the common part; return nil
5722 if async subprocesses aren't supported.
5723 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5724 MS-DOS. Remove "#ifdef subprocesses".
5725 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5726 (gettimeofday): Remove "#ifdef subprocesses".
5727 (wait_without_blocking): Remove function.
5728 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5729 Remove "#ifdef subprocesses".
5730 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5731 compiled on MS-DOS.
5732 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5733 wait_for_termination on MS-DOS.
5734 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5735 initialization of inhibit_sentinels.
5736 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5737 subprocesses" conditional.
5738 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5739 wait_for_termination, since `buffer' cannot be an integer when
5740 async subprocesses are not supported
5741 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5742 for ifdefing away the call to Fprocess_status.
5743
20477505
EZ
5744 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5745 away the entire body of the function.
5746
b3ffc17c
DN
57472010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5748
01faa934
DN
5749 Remove subprocesses #ifdefs from term.c.
5750 * process.c (add_keyboard_wait_descriptor)
5751 (delete_keyboard_wait_descriptor): Move to common section, do
5752 nothing when subprocesses is not defined.
a628ad9d
JB
5753 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5754 Remove subprocesses #ifdefs.
01faa934 5755
b3ffc17c
DN
5756 Convert maybe_fatal to standard C.
5757 * lisp.h (verror): Declare.
5758 * eval.c (verror): New function containing the code from ...
5759 (error): ... this. Call verror.
5760 * term.c (vfatal): New function containing the code from ...
5761 (fatal): ... this. Call vfatal.
5762 (maybe_fatal): Convert to standard C, use variable number of
5763 arguments. Declare as non-return.
5764 (init_tty): Fix maybe_fatal call.
5765
0521f580
DN
57662010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5767
5768 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5769 (_scroll_bar_note_movement): Convert definitions to standard C.
5770 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5771 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5772
ebd15611
DN
57732010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5774
5775 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5776 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5777 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5778 (xaw_jump_callback, xaw_scroll_callback)
5779 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5780 (x_wm_set_size_hint, x_activate_timeout_atimer):
5781 Convert definitions to standard C.
ebd15611
DN
5782 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5783 (popup_activate_callback, popup_deactivate_callback)
5784 (menu_highlight_callback, menubar_selection_callback)
5785 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5786 (free_frame_menubar, popup_selection_callback, as)
5787 (create_and_show_popup_menu, dialog_selection_callback)
5788 (create_and_show_dialog):
5789 * xfns.c (hack_wm_protocols, x_window):
5790 * xfaces.c (x_update_menu_appearance):
5791 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5792 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5793 (set_frame_size, update_wm_hints, setup_frame_gcs)
5794 (update_various_frame_slots, update_from_various_frame_slots)
5795 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5796 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5797 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5798
de06a2dd
AS
57992010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5800
a628ad9d 5801 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5802
fc549af9
EZ
58032010-07-12 Eli Zaretskii <eliz@gnu.org>
5804
5805 * process.c (setup_process_coding_systems): Move to the part
5806 shared by non-subprocesses systems, and make its body empty when
5807 subprocesses is not defined.
5808 (close_process_descs): Move to the part shared by non-subprocesses
5809 systems.
1408902e
EZ
5810 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5811 ANSI C.
fc549af9 5812
d5a3eaaf
AS
58132010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5814
5815 * editfns.c (transpose_markers): Convert old-style definition.
5816 * emacs.c (abort, shut_down_emacs, fixup_locale)
5817 (synchronize_system_time_locale)
5818 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5819 * floatfns.c (extract_float, matherr, init_floatfns)
5820 (syms_of_floatfns): Likewise.
5821 * fns.c (make_hash_table): Likewise.
5822 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5823 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5824 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5825 (ftfont_variation_glyphs): Likewise.
5826 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5827 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5828 * lread.c (read_filtered_event): Likewise.
5829 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5830 * process.c (wait_reading_process_output): Likewise.
5831 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5832 * search.c (search_buffer, boyer_moore): Likewise.
5833 * syntax.c (scan_sexps_forward): Likewise.
5834 * xdisp.c (try_scrolling): Likewise.
5835 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5836 (face_at_string_position): Likewise.
5837 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5838 * xselect.c (x_get_window_property, receive_incremental_selection)
5839 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5840 Likewise.
5841 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5842
6f704c76
DN
58432010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5844
ded80a25
DN
5845 * callproc.c (child_setup): Remove subprocesses conditional.
5846 Remove code dealing with SET_EMACS_PRIORITY, unused.
5847
49d937f4 5848 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5849 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5850
5851 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5852 (__do_global_dtors, __main): Use void in definition.
5853 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5854 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5855 the only users from ...
5856 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5857 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5858 (HAVE_VOLATILE): Remove, unused.
5859
6f704c76
DN
5860 Convert more function definitions to standard C.
5861 * xdisp.c (window_box_edges, handle_single_display_spec)
5862 (display_string): Convert definition to standard C.
5863 * scroll.c (do_direct_scrolling, scrolling_1):
5864 * dispnew.c (allocate_matrices_for_frame_redisplay)
5865 (mirrored_line_dance):
5866 * coding.c (code_convert_string):
5867 * charset.c (map_charset_chars):
5868 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5869 (Fregister_ccl_program, Fregister_code_conversion_map):
5870 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5871 (head_table): Make static and const.
5872
e6cfa7c3
AS
58732010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5874
5875 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5876 (PROFILING_LDFLAGS): Set from substitution.
5877 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5878 CFLAGS last.
5879
892dd565
KH
58802010-07-12 Kenichi Handa <handa@m17n.org>
5881
6f2cdcd1
KH
5882 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5883 (shortlisp): Likewise.
5884
892dd565
KH
5885 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5886
5887 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5888 of FONT_ENTITY_INDEX.
5889 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5890 property, get the property value dynamically.
5891 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5892 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5893 return value changed.
bba3e508 5894 (syms_of_font): Adjust for the above change.
892dd565 5895
ae96d47a
AS
58962010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5897
c8fc18ee
AS
5898 * blockinput.h: Remove obsolete comment.
5899
89887d67
AS
5900 * lisp.h: Include <stddef.h>.
5901 (OFFSETOF): Don't define.
5902 (VECSIZE): Use offsetof instead of OFFSETOF.
5903 (PSEUDOVECSIZE): Likewise.
5904 * process.c (conv_sockaddr_to_lisp): Likewise.
5905 * alloc.c: Don't include <stddef.h>.
5906 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5907
ae96d47a
AS
5908 * process.c: Remove obsolete comment.
5909
635c0aa1
CY
59102010-07-11 Chong Yidong <cyd@stupidchicken.com>
5911
5912 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5913
a64df650
AS
59142010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5915
8966b757
AS
5916 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5917 index, rindex.
5918 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5919 * editfns.c (Fuser_full_name, Fformat): Likewise.
5920 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5921 * fileio.c (Ffile_symlink_p): Likewise.
5922 * filelock.c (current_lock_owner): Likewise.
5923 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5924 * fontset.c (fontset_pattern_regexp): Likewise.
5925 * lread.c (read1): Likewise.
5926 * sysdep.c (init_system_name): Likewise.
5927 * xfns.c (select_visual): Likewise.
5928 * s/hpux10-20.h (index, rindex): Don't define.
5929 * s/ms-w32.h (index): Likewise.
5930 * s/usg5-4.h: Likewise.
5931
cf237e27
AS
5932 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5933
a8fe7202
AS
5934 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5935 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5936 (egetenv): Likewise.
5937 * doprnt.c (doprnt): Likewise.
5938 * editfns.c (set_time_zone_rule, format2): Likewise.
5939 * emacs.c (decode_env_path): Likewise.
5940 * eval.c (signal_error, error): Likewise.
5941 * insdel.c (replace_range_2): Likewise.
5942 * keyboard.c (cmd_error_internal): Likewise.
5943 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5944 * print.c (write_string, write_string_1, print_error_message):
5945 Likewise.
5946 * vm-limit.c (warn_function, memory_warnings): Likewise.
5947 * xdisp.c (message1, message1_nolog, message_with_string)
5948 (vmessage, message, message_nolog): Likewise.
5949 * emacs.c: Remove duplicate declaration.
5950 * keyboard.h: Likewise.
5951 * lisp.h: Update prototypes.
5952
bb8e180f
AS
5953 * eval.c: Fix indentation problem.
5954
83380e65
AS
5955 * keyboard.c: Include "process.h"
5956
a64df650
AS
5957 * eval.c: Remove obsolete noinline declaration.
5958 * fns.c: Likewise.
5959
6a8033e1
KR
59602010-07-11 Ken Raeburn <raeburn@raeburn.org>
5961
5962 * doprnt.c (doprnt): Take a va_list argument instead of count and
5963 pointer.
5964 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5965 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5966 changed to take a va_list argument.
5967 (message): New variadic wrapper.
5968 (message_nolog): Now a variadic function, calling vmessage.
5969 * lisp.h: Include stdarg.h for va_list.
5970 (doprnt, error, message, message_nolog): Decls updated.
5971
462aa963
EZ
59722010-07-11 Eli Zaretskii <eliz@gnu.org>
5973
5974 * process.c (syms_of_process) <delete-exited-processes>: Define
5975 even if !subprocesses.
5976 (delete_exited_processes): Ditto.
5977
5978 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5979 (delete_exited_processes): Don't define.
5980
48104462
CY
59812010-07-10 Chong Yidong <cyd@stupidchicken.com>
5982
5983 * frame.c (make_frame): Initialize menu_bar_lines and
5984 tool_bar_lines members.
bba3e508
SM
5985 (make_initial_frame, make_terminal_frame):
5986 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5987
5988 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5989
f388c88a
EZ
59902010-07-10 Eli Zaretskii <eliz@gnu.org>
5991
5992 * process.c: Reshuffle #include's. Condition some of the global
5993 and static variables on `subprocesses'.
5994 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5995 Leave only one implementation.
5996 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5997 (kill_buffer_processes, Flist_system_processes)
5998 (Fprocess_attributes, init_process, syms_of_process): Unify the
5999 implementations for with subprocesses and without them.
6000
723f5a07
J
60012010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6002
6003 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6004 correct size for Motif.
6005 (free_frame_menubar): Call x_set_window_size to update frame size.
6006
6007 * xfns.c (x_window): Set borderWidth to 0 for pane and
6008 EmacsFrame. Frame size calculation is wrong otherwise.
6009
2536a4b7
MA
60102010-07-09 Michael Albinus <michael.albinus@gmx.de>
6011
6012 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6013 allows to suppress errors when polling in Emacs' main loop.
6014 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6015 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6016 (Fdbus_method_error_internal, Fdbus_send_signal)
6017 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6018 (Fdbus_register_method): Use it. (Bug#6579)
6019
5842a27b
DN
60202010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6021
6022 * alloc.c: Convert DEFUNs to standard C.
6023 * buffer.c:
6024 * bytecode.c:
6025 * callint.c:
6026 * callproc.c:
6027 * casefiddle.c:
6028 * casetab.c:
6029 * category.c:
6030 * character.c:
6031 * charset.c:
6032 * chartab.c:
6033 * cmds.c:
6034 * coding.c:
6035 * composite.c:
6036 * data.c:
6037 * dbusbind.c:
6038 * dired.c:
6039 * dispnew.c:
6040 * doc.c:
6041 * dosfns.c:
6042 * editfns.c:
6043 * emacs.c:
6044 * eval.c:
6045 * fileio.c:
6046 * filelock.c:
6047 * floatfns.c:
6048 * fns.c:
6049 * font.c:
6050 * fontset.c:
6051 * frame.c:
6052 * fringe.c:
6053 * image.c:
6054 * indent.c:
6055 * insdel.c:
6056 * keyboard.c:
6057 * keymap.c:
6058 * lread.c:
6059 * macros.c:
6060 * marker.c:
6061 * menu.c:
6062 * minibuf.c:
6063 * msdos.c:
6064 * nsfns.m:
6065 * nsmenu.m:
6066 * nsselect.m:
6067 * print.c:
6068 * process.c:
6069 * search.c:
6070 * sound.c:
6071 * syntax.c:
6072 * term.c:
6073 * terminal.c:
6074 * textprop.c:
6075 * undo.c:
6076 * w16select.c:
6077 * w32console.c:
6078 * w32fns.c:
6079 * w32font.c:
6080 * w32menu.c:
6081 * w32proc.c:
6082 * w32select.c:
6083 * window.c:
6084 * xdisp.c:
6085 * xfaces.c:
6086 * xfns.c:
6087 * xmenu.c:
6088 * xselect.c:
6089 * xsettings.c:
6090 * xsmfns.c: Likewise.
6091
d568829b
EZ
60922010-07-08 Eli Zaretskii <eliz@gnu.org>
6093
6094 * process.c (kbd_is_on_hold, hold_keyboard_input)
6095 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6096
52214050
J
60972010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6098
6099 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6100 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6101 unless USE_LUCID.
6102
313d9eb2
DN
61032010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6104
a628ad9d
JB
6105 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6106 declaration.
d8825aa3 6107
295d0d8f
DN
6108 Clean up include guards.
6109 * tparam.c: Remove include guards for config.h, string.h and code
6110 that assumes #ifndef emacs.
6111 * termcap.c:
6112 * unexalpha.c:
6113 * sysdep.c:
6114 * filemode.c:
6115 * filelock.c:
6116 * bidi.c: Likewise.
6117
49d9e6b0
DN
6118 Remove prefix-args.c
6119 * prefix-args.c: Remove file.
6120 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6121 * Makefile.in (temacs${EXEEXT}): Remove references to
6122 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6123 (mostlyclean): Remove reference to prefix-args.
6124 (prefix-args): Remove.
6125
313d9eb2
DN
6126 Simplify cstart_of_data, start_of_code and related code.
6127 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6128 (start_of_data): Merge into start_of_data function.
6129 * sysdep.c (start_of_text): Remove. Move simplified versions of
6130 it in the only users: unexaix.c and unexec.c.
6131 (read_input_waiting): Remove local declaration of quit_char.
6132 (start, etext): Remove declarations.
6133 (start_of_data): Merge with the version in mem-limits.h and move
6134 to vm-limits.c.
6135 * vm-limit.c (start_of_data): Merged and simplified version of the
6136 code formerly in mem-limits.h and sysdep.c.
6137 * unexec.c (start): New declaration, moved from sysdep.c.
6138 (start_of_text): Simplified version of the code formerly in sysdep.c.
6139 * unexaix.c (start_of_text): Simplified version of the code
6140 formerly in sysdep.c.
6141 * m/alpha.h (HAVE_TEXT_START): Remove.
6142 (TEXT_START): Move ...
6143 * unexalpha.c (TEXT_START): ... here.
6144 * s/hpux10-20.h (TEXT_START): Remove.
6145 * s/darwin.h (TEXT_START):
6146 * m/mips.h (TEXT_START):
6147 * m/macppc.h (HAVE_TEXT_START):
6148 * m/m68k.h (TEXT_START):
6149 * m/iris4d.h (TEXT_START):
6150 * m/intel386.h (TEXT_START):
6151 * m/ibmrs6000.h (TEXT_START):
6152 * m/ia64.h (HAVE_TEXT_START):
6153 * s/msdos.h (TEXT_START): Likewise.
6154
72af86bd
AS
61552010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6156
6157 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6158 (overrun_check_free, xstrdup, allocate_string)
6159 (allocate_string_data, compact_small_strings, Fmake_string)
6160 (make_unibyte_string, make_multibyte_string)
6161 (make_string_from_bytes, make_specified_string, make_float)
6162 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6163 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6164 memcpy, memmove, memset, memcmp.
6165 * atimer.c (start_atimer, set_alarm): Likewise.
6166 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6167 (mmap_realloc, init_buffer_once): Likewise.
6168 * callint.c (Fcall_interactively): Likewise.
6169 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6170 (getenv_internal_1): Likewise.
6171 * casefiddle.c (casify_object): Likewise.
6172 * ccl.c (ccl_driver): Likewise.
6173 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6174 * charset.c (load_charset_map_from_file)
6175 (load_charset_map_from_file, load_charset_map_from_vector)
6176 (Fdefine_charset_internal): Likewise.
6177 * cm.c (Wcm_clear): Likewise.
6178 * coding.c (decode_eol, decode_coding_object)
6179 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6180 * data.c (Faset): Likewise.
6181 * dired.c (directory_files_internal, file_name_completion_stat):
6182 Likewise.
6183 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6184 (clear_glyph_row, copy_row_except_pointers)
6185 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6186 (save_current_matrix, restore_current_matrix)
6187 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6188 (mirror_line_dance, scrolling_window): Likewise.
6189 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6190 Likewise.
6191 * doprnt.c (doprnt): Likewise.
6192 * editfns.c (Fuser_full_name, make_buffer_string_both)
6193 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6194 * emacs.c (sort_args): Likewise.
6195 * eval.c (Fapply, Ffuncall): Likewise.
6196 * fileio.c (Ffile_name_directory, make_temp_name)
6197 (Fexpand_file_name, search_embedded_absfilename)
6198 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6199 (auto_save_error): Likewise.
6200 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6201 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6202 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6203 (Fmake_hash_table): Likewise.
6204 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6205 * ftfont.c (ftfont_text_extents): Likewise.
6206 * getloadavg.c (getloadavg): Likewise.
6207 * image.c (define_image_type, make_image, make_image_cache)
6208 (x_create_x_image_and_pixmap, xbm_image_p)
6209 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6210 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6211 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6212 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6213 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6214 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6215 Likewise.
6216 * indent.c (scan_for_column, compute_motion): Likewise.
6217 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6218 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6219 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6220 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6221 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6222 (store_user_signal_events, menu_bar_items, tool_bar_items)
6223 (process_tool_bar_item, append_tool_bar_item)
6224 (read_char_minibuf_menu_prompt, read_key_sequence)
6225 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6226 Likewise.
6227 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6228 Likewise.
6229 * lisp.h (STRING_COPYIN): Likewise.
6230 * lread.c (Fload, read1, oblookup): Likewise.
6231 * msdos.c (Frecent_doskeys): Likewise.
6232 * nsfns.m (Fx_create_frame): Likewise.
6233 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6234 Likewise.
6235 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6236 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6237 Likewise.
6238 * nsmenu.m (ns_update_menubar): Likewise.
6239 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6240 * print.c (print_unwind, printchar, strout, print_string)
6241 (print_error_message): Likewise.
6242 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6243 (Fmake_network_process, Fnetwork_interface_list)
6244 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6245 (init_process): Likewise.
6246 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6247 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6248 Likewise.
6249 * scroll.c (do_scrolling, do_direct_scrolling)
6250 (scrolling_max_lines_saved): Likewise.
6251 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6252 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6253 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6254 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6255 (emacs_set_tty): Likewise.
6256 * term.c (encode_terminal_code, calculate_costs)
6257 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6258 Likewise.
6259 * termcap.c (tgetst1, gobble_line): Likewise.
6260 * termhooks.h (EVENT_INIT): Likewise.
6261 * tparam.c (tparam1): Likewise.
6262 * unexalpha.c (unexec): Likewise.
6263 * unexec.c (write_segment): Likewise.
6264 * unexmacosx.c (unexec_write_zero): Likewise.
6265 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6266 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6267 * w32font.c (w32font_list_family, w32font_text_extents)
6268 (w32font_list_internal, w32font_match_internal)
6269 (w32font_open_internal, compute_metrics, Fx_select_font):
6270 Likewise.
6271 * w32menu.c (set_frame_menubar, add_menu_item)
6272 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6273 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6274 * w32uniscribe.c (uniscribe_list_family): Likewise.
6275 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6276 * window.c (make_window, replace_window, set_window_buffer)
6277 (Fsplit_window): Likewise.
6278 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
6279 (add_to_log, message3, x_consider_frame_title)
6280 (append_space_for_newline, extend_face_to_end_of_line)
6281 (decode_mode_spec_coding, init_glyph_string): Likewise.
6282 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
6283 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
6284 (face_attr_equal_p, make_realized_face, make_face_cache)
6285 (free_realized_faces, lookup_named_face, smaller_face)
6286 (face_with_height, lookup_derived_face)
6287 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
6288 (Finternal_set_font_selection_order, realize_default_face)
6289 (compute_char_face, face_at_buffer_position)
6290 (face_for_overlay_string, face_at_string_position, merge_faces):
6291 Likewise.
6292 * xfns.c (xic_create_fontsetname, Fx_create_frame)
6293 (Fx_window_property, x_create_tip_frame)
6294 (Fx_backspace_delete_keys_p): Likewise.
6295 * xfont.c (xfont_list, xfont_match, xfont_list_family)
6296 (xfont_text_extents): Likewise.
6297 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
6298 * xrdb.c (magic_file_p, x_get_resource): Likewise.
6299 * xselect.c (x_queue_event, x_get_window_property)
6300 (receive_incremental_selection): Likewise.
6301 * xsmfns.c (x_session_check_input): Likewise.
6302 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
6303 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
6304 Likewise.
6305 * character.h (BCOPY_SHORT): Removed.
6306 * config.in: Regenerate.
6307 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
6308 * emacs.c (main) [PROFILING]: Don't declare
6309 dump_opcode_frequencies.
6310 * lisp.h (safe_bcopy): Remove declaration.
6311 (memset) [!HAVE_MEMSET]: Declare.
6312 (memcpy) [!HAVE_MEMCPY]: Likewise.
6313 (memmove) [!HAVE_MEMMOVE]: Likewise.
6314 (memcmp) [!HAVE_MEMCMP]: Likewise.
6315 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
6316 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
6317 Don't define.
6318 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
6319 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
6320 (BCOPY_DOWNWARD_SAFE): Don't define.
6321 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
6322 (memcpy) [!HAVE_MEMCPY]: Define.
6323 (memmove) [!HAVE_MEMMOVE]: Define.
6324 (memcmp) [!HAVE_MEMCMP]: Define.
6325
cb768704
J
63262010-07-07 Jan Djärv <jan.h.d@swipnet.se>
6327
6328 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
6329 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6330 New functions.
cb768704
J
6331 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
6332 select on empty input mask.
6333 (init_process): Initialize kbd_is_on_hold to 0.
6334
6335 * process.h (hold_keyboard_input, unhold_keyboard_input)
6336 (kbd_on_hold_p): Declare.
6337
6338 * keyboard.c (input_available_signal): Declare.
6339 (kbd_buffer_nr_stored): New function.
6340 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
6341 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
6342 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
6343 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
6344 (tty_read_avail_input): If input is on hold, return.
6345 Don't read more that free slots in kbd_buffer (Bug#6571).
6346
3a8ce822
EZ
63472010-07-07 Eli Zaretskii <eliz@gnu.org>
6348
6349 * msdos.h:
6350 * msdos.c:
6351 * dosfns.c:
6352 * w16select.c: Convert function definitions to ANSI C.
6353
a628ad9d
JB
6354 * msdos.h (ctrl_break_func, install_ctrl_break_check):
6355 Remove unused prototypes.
3a8ce822 6356
cf84bb53
JB
63572010-07-07 Juanma Barranquero <lekktu@gmail.com>
6358
6359 * coding.c, sysdep.c: Convert some more functions to standard C.
6360
1a4990fb
JB
63612010-07-07 Juanma Barranquero <lekktu@gmail.com>
6362
6363 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
6364 (encode_coding_object): Use SPECPDL_INDEX.
6365 (syms_of_coding): Use DOS_NT.
6366
c0f2f16b
DN
63672010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
6368
48fb6855
DN
6369 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
6370
c0f2f16b
DN
6371 Make the function member of Lisp_Subr use standard C prototypes.
6372 * lisp.h (struct Lisp_Subr): Use a union for the function member.
6373 (DECL_ALIGN): Add a cast for the function.
6374 * eval.c (Feval, Ffuncall): Use the proper type for each type
6375 function call.
6376
67aecef9
CY
63772010-07-06 Chong Yidong <cyd@stupidchicken.com>
6378
6379 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
6380 fringe face id, so face-remapping-alist works (Bug#6091).
6381
b56ceb92
JB
63822010-07-06 Juanma Barranquero <lekktu@gmail.com>
6383
6384 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
6385 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
6386 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
6387
7af07b96
AS
63882010-07-06 Andreas Schwab <schwab@linux-m68k.org>
6389
6390 * xterm.c (x_get_keysym_name): Change type of parameter to int.
6391 * lisp.h: Declare x_get_keysym_name.
6392 * keyboard.c (modify_event_symbol): Don't declare
6393 x_get_keysym_name here.
6394
69e24e34
DN
63952010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
6396
6397 * ecrt0.c: Revert conversion to standard C.
6398
d3da34e0 63992010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
6400
6401 * vm-limit.c (memory_warnings):
6402 * keyboard.c (modify_event_symbol):
6403 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6404 (round2, emacs_rint):
6405 * process.c (send_process, old_sigpipe): Convert function
6406 definitions and declarations to standard C.
6407
64082010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
6409
6410 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
6411 * xdisp.c: Convert function definitions to standard C.
6412
6413 * cm.c (cmputc): Arg C is now int, not char.
6414 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
6415
00be444c
J
64162010-07-05 James Cloos <cloos@jhcloos.com>
6417
6418 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
6419
6420 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
6421 _NET_WM_ICON_NAME atoms.
6422
6423 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
6424 and _NET_WM_ICON_NAME properties, too, matching what is
6425 done in the Gtk+ case.
6426
e4c8d29a
J
64272010-07-05 Jan Djärv <jan.h.d@swipnet.se>
6428
ff919460
J
6429 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
6430
e4c8d29a
J
6431 * xsmfns.c (SSDATA): New macro.
6432 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
6433 passed to strlen/strcpy/strcat.
bba3e508
SM
6434 (create_client_leader_window): Surround with #ifndef USE_GTK.
6435 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
6436
6437 * xsettings.c (something_changedCB, parse_settings)
6438 (apply_xft_settings): Reformat prototype.
6439 (something_changedCB, init_gconf): Remove unused variable i.
6440 (read_settings): Remove unused variable long_len.
6441
6442 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
6443 (xg_get_image_for_pixmap, create_dialog)
6444 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
6445 (menuitem_highlight_callback, make_menu_item)
6446 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6447 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6448 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6449 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6450 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6451 (xg_tool_bar_item_expose_callback): Reformat prototype.
6452 (xg_update_menubar): GList *group => GSList *group.
6453 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6454 before use.
6455 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6456 to GTK_IMAGE (wimage).
6457
dd4c5104
DN
64582010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6459
898b4c5c
DN
6460 * atimer.c: Use "" instead of <> for local includes for
6461 consistency with the rest of the code.
6462
dd4c5104
DN
6463 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6464 * xrdb.c (get_system_name):
6465 * window.c (shrink_windows):
6466 * syntax.c (forw_comment):
6467 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6468 (ins_del_costs):
6469 * mem-limits.h (start_of_data):
6470 * lread.c (readevalloop):
6471 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6472 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6473 * frame.c (x_get_focus_frame):
6474 * floatfns.c (fmod_float):
6475 * fileio.c (choose_write_coding_system):
6476 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6477 (malloc_initialize_hook, sort_args, synchronize_locale):
6478 * doprnt.c (doprnt):
6479 * dired.c (compile_pattern):
6480 * data.c (fmod_float):
6481 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6482 (map_char_table_for_charset):
6483 * charset.c (define_charset_internal):
6484 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6485 to standard C.
6486
9a39b306 64872010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 6488 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
6489
6490 * lread.c (read1): Fix up last change to not mess up `c'.
6491
e6cb2cbb
JB
64922010-07-04 Juanma Barranquero <lekktu@gmail.com>
6493
6494 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6495
438105ed
JB
64962010-07-04 Juanma Barranquero <lekktu@gmail.com>
6497
6498 Fix prototypes.
6499
e5447b22 6500 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 6501 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
6502 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6503 arg, as required by internal_condition_case_1.
dcc7404b 6504 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
6505 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6506 (analyse_first): Fix "const const".
e5447b22 6507 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 6508 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 6509 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 6510
971de7fb
DN
65112010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6512
6513 * alloc.c: Convert function definitions to standard C.
6514 * atimer.c:
6515 * bidi.c:
6516 * bytecode.c:
6517 * callint.c:
6518 * callproc.c:
6519 * casefiddle.c:
6520 * casetab.c:
6521 * category.c:
6522 * ccl.c:
6523 * character.c:
6524 * charset.c:
6525 * chartab.c:
6526 * cmds.c:
6527 * coding.c:
6528 * composite.c:
6529 * data.c:
6530 * dbusbind.c:
6531 * dired.c:
6532 * dispnew.c:
6533 * doc.c:
6534 * doprnt.c:
6535 * ecrt0.c:
6536 * editfns.c:
6537 * fileio.c:
6538 * filelock.c:
6539 * filemode.c:
6540 * fns.c:
6541 * font.c:
6542 * fontset.c:
6543 * frame.c:
6544 * fringe.c:
6545 * ftfont.c:
6546 * ftxfont.c:
6547 * gtkutil.c:
6548 * indent.c:
6549 * insdel.c:
6550 * intervals.c:
6551 * keymap.c:
6552 * lread.c:
6553 * macros.c:
6554 * marker.c:
6555 * md5.c:
6556 * menu.c:
6557 * minibuf.c:
6558 * prefix-args.c:
6559 * print.c:
6560 * ralloc.c:
6561 * regex.c:
6562 * region-cache.c:
6563 * scroll.c:
6564 * search.c:
6565 * sound.c:
6566 * strftime.c:
6567 * syntax.c:
6568 * sysdep.c:
6569 * termcap.c:
6570 * terminal.c:
6571 * terminfo.c:
6572 * textprop.c:
6573 * tparam.c:
6574 * undo.c:
6575 * unexelf.c:
6576 * window.c:
6577 * xfaces.c:
6578 * xfns.c:
6579 * xfont.c:
6580 * xftfont.c:
6581 * xgselect.c:
6582 * xmenu.c:
6583 * xrdb.c:
6584 * xselect.c:
6585 * xsettings.c:
6586 * xsmfns.c:
6587 * xterm.c: Likewise.
6588
ae492bec
EZ
65892010-07-03 Eli Zaretskii <eliz@gnu.org>
6590
76ea4cc9
EZ
6591 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6592 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6593 `reverse' is specified in the frame parameters.
6594 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6595 internal-set-lisp-face-attribute. Initialize screen colors from
6596 initial_screen_colors[] when f->default_face_done_p is zero,
6597 instead of depending on being called with default-frame-alist as
6598 the alist argument.
6599
6600 * xfaces.c (update_face_from_frame_parameter): Move out of
6601 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6602 with HAVE_WINDOW_SYSTEM.
6603
1e6255ae
EZ
6604 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6605 to menu-bar-mode, if not set in the frame parameters or in
6606 default-frame-alist.
6607
ae492bec
EZ
6608 * w32console.c (sys_tputs): Adjust argument list to prototype in
6609 term.c.
6610
3a35a84c
JB
66112010-07-03 Juanma Barranquero <lekktu@gmail.com>
6612
6613 * lisp.h (memory_warnings): Fix prototype.
6614
6615 * cm.h (evalcost): Fix prototype.
6616
6617 * cm.c (evalcost): Fix arg type.
6618
c532d349
DN
66192010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6620
6621 * term.c (term_clear_mouse_face, Fidentity):
6622 * syssignal.h (signal_handler_t):
6623 * lisp.h (memory_warnings):
6624 * coding.h (preferred_coding_system):
6625 * cm.h (evalcost):
6626 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6627
c0b36d46
EZ
66282010-07-02 Eli Zaretskii <eliz@gnu.org>
6629
6630 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6631 from prototypes.
6632
6633 * msdos.h (load_pixmap): Don't define away.
6634
383e0970
J
66352010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6636
f57e2426
J
6637 * lisp.h:
6638 * atimer.h: Remove define for P_.
6639
6640 * alloc.c: Remove __P and P_ from .c and .m files.
6641 * atimer.c:
6642 * buffer.c:
6643 * callint.c:
6644 * category.c:
6645 * charset.c:
6646 * chartab.c:
6647 * cm.c:
6648 * coding.c:
6649 * composite.c:
6650 * data.c:
6651 * dired.c:
6652 * dispnew.c:
6653 * doc.c:
6654 * editfns.c:
6655 * emacs.c:
6656 * eval.c:
6657 * fileio.c:
6658 * filelock.c:
6659 * fns.c:
6660 * font.c:
6661 * fontset.c:
6662 * frame.c:
6663 * ftfont.c:
6664 * ftxfont.c:
6665 * gmalloc.c:
6666 * gtkutil.c:
6667 * image.c:
6668 * indent.c:
6669 * intervals.c:
6670 * keyboard.c:
6671 * keymap.c:
6672 * lread.c:
6673 * marker.c:
6674 * menu.c:
6675 * minibuf.c:
6676 * print.c:
6677 * process.c:
6678 * scroll.c:
6679 * search.c:
6680 * sound.c:
6681 * strftime.c:
6682 * syntax.c:
6683 * sysdep.c:
6684 * term.c:
6685 * terminal.c:
6686 * textprop.c:
6687 * unexalpha.c:
6688 * w32console.c:
6689 * w32fns.c:
6690 * w32font.c:
6691 * w32menu.c:
6692 * w32term.c:
6693 * w32uniscribe.c:
6694 * window.c:
6695 * xdisp.c:
6696 * xfaces.c:
6697 * xfns.c:
6698 * xfont.c:
6699 * xftfont.c:
6700 * xmenu.c:
6701 * xselect.c:
6702 * xterm.c: Likewise.
6703
383e0970 6704 Remove P_ and __P macros.
f57e2426
J
6705 * atimer.h: Remove P_ and __P macros.
6706 * buffer.h:
383e0970
J
6707 * category.h:
6708 * ccl.h:
6709 * character.h:
6710 * charset.h:
6711 * cm.h:
6712 * coding.h:
6713 * composite.h:
6714 * dispextern.h:
6715 * disptab.h:
9e892c8d 6716 * dosfns.h:
383e0970
J
6717 * font.h:
6718 * fontset.h:
6719 * frame.h:
6720 * gtkutil.h:
6721 * indent.h:
6722 * intervals.h:
6723 * keyboard.h:
6724 * keymap.h:
6725 * lisp.h:
6726 * macros.h:
6727 * md5.h:
6728 * menu.h:
6729 * msdos.h:
6730 * nsterm.h:
6731 * puresize.h:
6732 * region-cache.h:
6733 * syntax.h:
6734 * syssignal.h:
6735 * systime.h:
6736 * termhooks.h:
9e892c8d 6737 * w32font.h:
383e0970
J
6738 * w32term.h:
6739 * widget.h:
6740 * window.h:
6741 * xgselect.h:
6742 * xsettings.h:
6743 * xterm.h: Likewise.
6744
98601119
DN
67452010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6746
d9170db5
DN
6747 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6748
98601119
DN
6749 Cleanup old code.
6750 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6751 * syssignal.h: Remove code for Lynx, not supported anymore.
6752 * vm-limit.c: Remove unused code the depends on emacs not being
6753 defined and NO_LIM_DATA being defined.
6754 * mem-limits.h: Remove dead code.
6755
1f984e12
J
67562010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6757
c49d071a
J
6758 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6759
9d5405ec
J
6760 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6761 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6762
7a18115b
J
6763 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6764 parameters, they are already absolute.
6765
a628ad9d
JB
6766 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6767 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6768
a628ad9d 6769 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6770
a628ad9d
JB
6771 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6772 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6773
a628ad9d
JB
6774 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6775 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6776
c1ef4455
CY
67772010-06-30 Chong Yidong <cyd@stupidchicken.com>
6778
bba3e508
SM
6779 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6780 Don't check default-frame-alist.
c1ef4455 6781
ce8f5a9a
AS
67822010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6783
6784 * process.c (create_process): Avoid using invalid file descriptors.
6785
6786 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6787
bf935339
J
67882010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6789
6790 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6791 Improve documentation. Return font regardless of use_system_font.
6792 (syms_of_xsettings): Improve documentation for font-use-system-font.
6793
7c33a057
CY
67942010-07-10 Chong Yidong <cyd@stupidchicken.com>
6795
2ec1b5ee
CY
6796 * xfaces.c (realize_face): Garbage the frame if a face is removed
6797 (Bug#6593).
6798
67992010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6800
6801 * keyboard.c: Remove duplicate <setjmp.h>.
6802 (read_key_sequence): Remove volatile qualifiers.
6803
68042010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6805
6806 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6807 (struct glyph_row): New members left_fringe_offset and
6808 right_fringe_offset.
6809
6810 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6811 specially.
6812 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6813 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6814
6815 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6816 Take account of bitmap offset.
2ec1b5ee
CY
6817 (draw_window_fringes): Take account of window vscroll.
6818 (update_window_fringes): Likewise. Extend top-aligned top indicator
6819 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6820 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6821 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6822
68232010-07-04 Juanma Barranquero <lekktu@gmail.com>
6824
6825 * w32fns.c (Qtooltip): Declare.
6826 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6827
68282010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6829
6830 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6831 grab on just Press (Bug#6499).
6832
68332010-07-02 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * frame.c (Qtooltip): New var.
6836 (delete_frame): Use it. Fix faulty if statement. Don't update
6837 mode line for tooltip frames. Suggested by Martin Rudalics.
6838
6839 * xfns.c (x_create_tip_frame):
6840 * w32fns.c (x_create_tip_frame): Use it.
6841
68422010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6843
6844 * xftfont.c (xftfont_open): Check font width one by one also when
6845 spacing is dual.
6846
6847 * ftfont.c (ftfont_open): Ditto.
6848
6259c2ec
GM
68492010-06-30 Glenn Morris <rgm@gnu.org>
6850
a46007e9
GM
6851 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6852
6259c2ec
GM
6853 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6854
6855 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6856 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6857 * s/darwin.h (SYSTEM_MALLOC):
6858 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6859
5d1d3d04
J
68602010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6861
6862 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6863 (ns_get_screen): Don't assign integer to f.
6864 (Fx_display_color_cells): Declarations before statements.
6865
e547b051
J
68662010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6867
5fc8e5bc
J
6868 * xfns.c (x_default_font_parameter): Remove got_from_system
6869 (Bug#6526).
6870
e547b051 6871 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6872 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6873 New defines based on what configure finds.
e547b051
J
6874
6875 * xterm.c (XTflash): Use gtk_widget_get_window.
6876 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6877 gtk_adjustment_get_page_size.
6878 (handle_one_xevent): Use gtk_widget_get_mapped.
6879 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6880 messages.
6881
6882 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6883
6884 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6885 HAVE_GTK_FILE_SELECTION_NEW.
6886
bba3e508
SM
6887 * gtkutil.c (xg_display_open, xg_display_close):
6888 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6889 (xg_display_open): Return type is void.
6890 (gtk_widget_set_has_window)
6891 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6892 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6893 (gtk_adjustment_set_page_increment)
6894 (gtk_adjustment_get_step_increment): #define these if not found
6895 by configure.
6896 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6897 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6898 Use gtk_widget_get_window.
e547b051
J
6899 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6900 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6901 (create_dialog): Use gtk_dialog_get_action_area and
6902 gtk_dialog_get_content_area.
6903 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6904 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6905 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6906 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6907 Use g_object_ref and g_object_unref.
6908 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6909 Use gtk_widget_get_sensitive.
e547b051
J
6910 (xg_update_submenu): Use remove_submenu.
6911 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6912 properties instead to get old x and y position.
6913 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6914 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6915 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6916 (xg_get_tool_bar_widgets): New function.
6917 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6918 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6919 (toolbar_set_orientation): New #define based on if configure
6920 finds gtk_orientable_set_orientation.
6921 (xg_create_tool_bar): Call toolbar_set_orientation.
6922 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6923 instead of gtk_box_pack_start_defaults.
6924
b9229673
CY
69252010-06-28 Chong Yidong <cyd@stupidchicken.com>
6926
6927 * cmds.c (Fdelete_backward_char): Move into Lisp.
6928
bbc803b0
DN
69292010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6930
6931 * s/freebsd.h (BSD4_2): Remove redundant definition.
6932 bsd-common.h defines it already.
6933
6431f2e6
CY
69342010-06-27 Chong Yidong <cyd@stupidchicken.com>
6935
6936 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6937 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6938 tool-bar-mode, which are now set using these X resources at
6939 startup, to determine the defaults (Bug#2249).
6940
6941 * w32fns.c (Fx_create_frame):
6942 * nsfns.m (Fx_create_frame): Likewise.
6943
6944 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6945
8c079ebb
JB
69462010-06-24 Juanma Barranquero <lekktu@gmail.com>
6947
6948 * gtkutil.c (xg_update_scrollbar_pos):
6949 Avoid C99 mid-block variable declaration.
6950
e9b7ab96
JD
69512010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6952
bc869eca
JD
6953 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6954
2b7e356a 6955 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6956
6957 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6958 if height is less than scroll bar min size.
6959 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6960
e9b7ab96
JD
6961 * xfns.c (x_default_font_parameter): Try to open font from system
6962 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6963
a628ad9d 69642010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6965
6966 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6967
70c4cfbb
EZ
69682010-06-20 Eli Zaretskii <eliz@gnu.org>
6969
6970 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6971 most-positive-fixnum, be extra accurate when scrolling window
6972 start, to avoid missing the cursor line.
6973
ad5a12b5
EZ
69742010-06-19 Eli Zaretskii <eliz@gnu.org>
6975
6976 * xdisp.c (try_scrolling): Compute the limit for searching point
6977 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6978 of 10 screen lines.
6979 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6980 and
6981 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6982 for details.
6983
2a64315a 69842010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6985
6986 * editfns.c (Fbyte_to_string): Pacify compiler.
6987
288cf4e9
SM
69882010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6989
6990 * lread.c (read1): Phase out old-style backquotes a bit more.
6991
6e6e5760
EZ
69922010-06-12 Eli Zaretskii <eliz@gnu.org>
6993
cbc4fd20
EZ
6994 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6995 bidimirror.h.
6996
6997 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6998
317fbf33
EZ
6999 * bidi.c (bidi_initialize): Remove explicit initialization of
7000 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 7001 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 7002 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
7003
7004 * biditype.h: New file.
7005
cbc4fd20
EZ
7006 * bidimirror.h: New file.
7007
6e6e5760
EZ
7008 * window.c (syms_of_window): Doc fix (bug#6409).
7009
4176cba2
RF
70102010-06-12 Romain Francoise <romain@orebokech.com>
7011
7012 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7013 ediff-hook.
7014
cb4bfcb5
GM
70152010-06-10 Glenn Morris <rgm@gnu.org>
7016
64c60c2f
GM
7017 * editfns.c (Fbyte_to_string): Pacify compiler.
7018
cb4bfcb5
GM
7019 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7020
2ec1b5ee
CY
70212010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7022
7023 * alloc.c (Fmake_byte_code): Don't access undefined argument
7024 (Bug#6517).
7025
70262010-06-25 Chong Yidong <cyd@stupidchicken.com>
7027
7028 * xdisp.c (next_element_from_image): Ensure that after-strings are
7029 read the next time we hit handle_stop (Bug#1336).
7030
70312010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7032
7033 * lread.c (read1): Signal error if #s is not followed by paren.
7034
70352010-06-19 Chong Yidong <cyd@stupidchicken.com>
7036
7037 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7038
7039 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7040
70412010-06-15 Glenn Morris <rgm@gnu.org>
7042
7043 * editfns.c (Fbyte_to_string): Pacify compiler.
7044
e454a4a3
SM
70452010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7046
7047 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7048 Check `object's type before accessing its guts.
7049
c1b1acc2
DN
70502010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7051
7052 * s/usg5-4.h: Fix previous change.
7053 Suggested by Lawrence Mitchell <wence@gmx.li>
7054
657d4c0b
AS
70552010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7056
7057 * minibuf.c (Fall_completions): Add more checks.
7058
9b27fd9f
JB
70592010-06-08 Juanma Barranquero <lekktu@gmail.com>
7060
7061 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7062
a99ebb40
DN
70632010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7064
d7c5d87d
DN
7065 * lread.c (X_OK): Remove, unused.
7066
0263a941
DN
7067 * dispnew.c: Remove obsolete comment.
7068
a99ebb40
DN
7069 Remove INCLUDED_FCNTL.
7070 * xterm.c (INCLUDED_FCNTL):
7071 * callproc.c (INCLUDED_FCNTL):
7072 * alloc.c (INCLUDED_FCNTL):
7073 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7074 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7075
13b5221f
MR
70762010-06-07 Martin Rudalics <rudalics@gmx.at>
7077
7078 * window.c (Fselect_window): Move `record_buffer' up to the
7079 beginning of this function, so the buffer gets recorded
7080 even if the selected window does not change.
7081 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7082
5220357f
JB
70832010-06-07 Juanma Barranquero <lekktu@gmail.com>
7084
7085 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7086 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7087
3085237c
DN
70882010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7089
7090 Remove BSTRING related code, all platforms define it.
7091 * s/usg5-4.h (BSTRING): Remove definition.
7092 * s/template.h (BSTRING):
7093 * s/msdos.h (BSTRING):
7094 * s/ms-w32.h (BSTRING):
7095 * s/hpux10-20.h (BSTRING):
7096 * s/gnu-linux.h (BSTRING):
7097 * s/darwin.h (BSTRING):
7098 * s/cygwin.h (BSTRING):
7099 * s/bsd-common.h (BSTRING):
7100 * s/aix4-2.h (BSTRING): Likewise.
7101 * sysdep.c: Remove code depending on BSTRING not being defined.
7102
409f2919
JB
71032010-06-05 Juanma Barranquero <lekktu@gmail.com>
7104
7105 Remove obsolete macro BASE_LEADING_CODE_P.
7106 * character.h (BASE_LEADING_CODE_P): Remove.
7107 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7108 * buffer.c (Fset_buffer_multibyte):
7109 * indent.c (scan_for_column, compute_motion):
7110 * insdel.c (count_combining_before, count_combining_after):
7111 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7112
087fc47a
JB
71132010-06-04 Juanma Barranquero <lekktu@gmail.com>
7114
7115 Turn `directory-sep-char' into a noop.
7116
7117 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7118 (DIRECTORY_SEP): Define unconditionally.
7119
7120 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7121
7122 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7123 call dostounix_filename directly.
7124
7125 * fileio.c (CORRECT_DIR_SEPS): Remove.
7126 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7127 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7128 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7129 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7130
7131 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7132 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7133
0eb7675e
AS
71342010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7135
a628ad9d
JB
7136 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7137 (Bug#6346)
0eb7675e 7138
78edd3b7
JB
71392010-06-03 Juanma Barranquero <lekktu@gmail.com>
7140
7141 * ccl.c (Fccl_program_p): Fix typo in docstring.
7142
eb697db5
DN
71432010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7144
7145 Move UNEXEC definition to autoconf.
7146 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7147 * s/sol2-10.h (UNEXEC):
7148 * s/irix6-5.h (UNEXEC):
7149 * s/hpux10-20.h (UNEXEC):
7150 * s/gnu-linux.h (UNEXEC):
7151 * s/darwin.h (UNEXEC):
7152 * s/cygwin.h (UNEXEC):
7153 * s/bsd-common.h (UNEXEC):
7154 * s/aix4-2.h (UNEXEC):
7155 * m/alpha.h (UNEXEC): Likewise.
7156 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7157
aa3830c4
JB
71582010-06-03 Juanma Barranquero <lekktu@gmail.com>
7159
7160 Remove obsolete pre-unicode2 macros.
7161 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7162 * composite.c (composition_reseat_it):
7163 * data.c (Faset):
7164 * fns.c (Ffillarray):
7165 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7166 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7167
d234d13e
JL
71682010-06-03 Juri Linkov <juri@jurta.org>
7169
7170 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7171 (Fswitch_to_buffer): Remove unused variable `err'.
7172
0d4bcf4d
GM
71732010-06-03 Glenn Morris <rgm@gnu.org>
7174
e23dc1e2
GM
7175 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7176
05b09564
GM
7177 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7178 now that AH_BOTTOM does it.
7179
824e2978
GM
7180 * m/hp800.h (HAVE_ALLOCA):
7181 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7182
0d4bcf4d
GM
7183 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7184 Remove NOT_C_CODE tests, it is always true now.
7185
c55d2abf
DN
71862010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7187
08a494a3
DN
7188 Fix config.h includes.
7189 * xsettings.c:
7190 * xgselect.c:
7191 * nsterm.m:
7192 * nsselect.m:
7193 * nsimage.m:
7194 * nsfont.m:
7195 * nsfns.m:
7196 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7197 other files do.
7198
75934b1d
DN
7199 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7200
9f32a766
DN
7201 * s/sol2-6.h: Remove obsolete comments.
7202
c55d2abf
DN
7203 Remove unnecessary alloca.h includes.
7204 * keymap.c: Do not include alloca.h, config.h does that.
7205 * sysdep.c: Likewise. Do not define fwrite, not used.
7206
06ac62b4
SM
72072010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7208
7209 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7210 the HAVE_TERMIO where it belongs (bug#6149).
7211
1ab8293c
SM
72122010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7213
7214 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7215 of bug#6305).
7216
6dcfd253
EZ
72172010-05-30 Eli Zaretskii <eliz@gnu.org>
7218
7219 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7220 state is always cached (bug#6306).
7221
6d26bbb2
EZ
72222010-05-29 Eli Zaretskii <eliz@gnu.org>
7223
06fa4a23
EZ
7224 Fix cursor motion in bidi-reordered continued lines.
7225 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7226 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
7227 over continuation lines in bidi-reordered buffers.
7228 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
7229 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7230
f5783df3
MA
72312010-05-28 Michael Albinus <michael.albinus@gmx.de>
7232
7233 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7234
7d56b2dd
KH
72352010-05-28 Kenichi Handa <handa@m17n.org>
7236
7237 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7238 Don't sheck SPEC if it is nil.
7239 (font_list_entities): Call font_delete_unmatched if
b925d231 7240 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 7241
e58d4ff7
GM
72422010-05-28 Glenn Morris <rgm@gnu.org>
7243
7244 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7245
f1a5d776
CY
72462010-05-27 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7249 whether to trash.
7250 (internal_delete_file, Frename_file): Callers changed.
7251 (delete_by_moving_to_trash): Doc fix.
7252 (Fdelete_directory_internal): Don't move to trash.
7253
7254 * callproc.c (delete_temp_file):
7255 * buffer.c (Fkill_buffer): Callers changed.
7256
7257 * lisp.h: Update prototype.
7258
f44a59e6
CY
72592010-05-27 Chong Yidong <cyd@stupidchicken.com>
7260
7261 * xdisp.c (redisplay_window): After redisplay, check if point is
7262 still valid before setting it (Bug#6177).
7263
81ac4f35
GM
72642010-05-27 Glenn Morris <rgm@gnu.org>
7265
7266 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7267 Convert comments to Makefile format.
7268
7269 * Makefile.in (bootstrap-clean): No more Makefile.c.
7270
ccd89fb3
GM
72712010-05-26 Glenn Morris <rgm@gnu.org>
7272
90278cb6
GM
7273 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7274 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7275
ccd89fb3
GM
7276 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7277 Remove.
7278 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7279
b7050583
KH
72802010-05-26 Kenichi Handa <handa@m17n.org>
7281
7282 * composite.c (composition_compute_stop_pos): Fix condition for
7283 backward scanning.
7284
e5458003
GM
72852010-05-25 Glenn Morris <rgm@gnu.org>
7286
c345fe90
GM
7287 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7288 Move before TEMACS_LDFLAGS.
7289 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7290 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7291
2e0689ab
GM
7292 * Makefile.in (NOT_C_CODE): No longer define.
7293 (config.h): No longer include.
7294
8009a5e8
GM
7295 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
7296 variables it may reference.
7297
e5458003
GM
7298 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
7299 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
7300
10f72a37
KH
73012010-05-25 Kenichi Handa <handa@m17n.org>
7302
7303 * dispextern.h (struct composition_it): New members rule_idx and
7304 charpos.
7305
7306 * xdisp.c (set_iterator_to_next): While scanning backward, assume
7307 that the character positions of IT point the last character of the
7308 current grapheme cluster.
7309 (next_element_from_composition): Don't change character positions
7310 of IT.
7311 (append_composite_glyph): Set glyph->charpos to
7312 it->cmp_it.charpos.
7313
7314 * composite.c (autocmp_chars): Change the first argument to RULE,
7315 and try composition with RULE only.
7316 (composition_compute_stop_pos): Record the index number of the
7317 composition rule in CMP_IT->rule_idx.
7318 (composition_reseat_it): Call autocmp_chars repeatedly until the
7319 correct rule of the composition is found.
7320 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
7321 is at the last character of the current grapheme cluster when
7322 CMP_IT->reversed_p is nonzero.
7323
171eda53 73242010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 7325
171eda53
SM
7326 * editfns.c (Fbyte_to_string): New function.
7327
66a9f7f4
SM
73282010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7329
7330 * process.c (Fmake_network_process): Set :host to nil if it's not used.
7331 Suggested by Masatake YAMATO <yamato@redhat.com>.
7332
d8c315d1
EZ
73332010-05-23 Eli Zaretskii <eliz@gnu.org>
7334
171eda53 7335 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 7336
f5b416d2 73372010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7338
7339 * s/netbsd.h: If terminfo is found, use it in preference to
7340 termcap. (Bug#6190) [Backport from trunk]
7341
0416466c
EZ
73422010-05-19 Eli Zaretskii <eliz@gnu.org>
7343
11117830 7344 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
7345
7346 * dispextern.h (struct glyph_row): New members minpos and maxpos.
7347 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
7348 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
7349 and maxpos members instead of start.pos and end.pos, respectively.
7350
7351 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
7352 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
7353 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
7354 (try_window_reusing_current_matrix, try_window_id):
7355 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
7356 (init_from_display_pos, init_iterator): Use EMACS_INT for
7357 character and byte positions.
66a9f7f4 7358 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
7359 arguments for minimum and maximum buffer positions seen by
7360 display_line for this row. Don't use iterator to find the
7361 position following the maximum one; instead, increment the
11117830
EZ
7362 position found by display_line directly. Fix logic; eol_pos
7363 should be tested before the rest. Handle the case of characters
7364 delivered from display vector (bug#6036). Fix tests related to
7365 it->method. Handle the truncated_on_right_p rows.
7366 (RECORD_MAX_MIN_POS): New macro.
7367 (display_line): Use it to record the minimum and maximum buffer
7368 positions for glyphs in the row being assembled. Record the
7369 position of the newline that terminates the line. If word wrap is
7370 in effect, restore minimum and maximum positions seen up to the
7371 wrap point, when iterator returns to it.
7372 (try_window_reusing_current_matrix): Give up if in bidi-reordered
7373 row and cursor not already at point. Restore original pre-bidi
7374 code for unidirectional buffers.
d36fe237
EZ
7375
7376 * dispnew.c (increment_row_positions, check_matrix_invariants):
7377 Increment and check row->start.pos and row->end.pos, in addition
7378 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
7379
11117830
EZ
7380 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
7381 Display truncated_on_left_p and truncated_on_right_p flags.
7382 Formatting fixes.
7383 (pmtxrows): Display the ordinal number of each row. Don't display
7384 rows beyond the last one.
7385
7386 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
7387 it is not copied by bidi_copy_it.
7388
6e83d800
EZ
73892010-05-22 Eli Zaretskii <eliz@gnu.org>
7390
7391 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
7392 (Bug#6237)
7393
110683ad
CY
73942010-05-22 Chong Yidong <cyd@stupidchicken.com>
7395
7396 * image.c (Fimage_flush): Rename from image-refresh.
7397
98fe5161
CY
73982010-05-21 Chong Yidong <cyd@stupidchicken.com>
7399
7400 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
7401 just one window.
7402
7403 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
7404 (clear_image_cache): If the number of cached images is unusually
7405 large, decrease the cache eviction delay (Bug#6230).
7406
e8752c66
GM
74072010-05-21 Glenn Morris <rgm@gnu.org>
7408
66dbf213
GM
7409 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
7410 Move these rules to ns.mk.
7411 * ns.mk: New file.
7412
04384b2d
GM
7413 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
7414
e8752c66
GM
7415 * Makefile.in (CANNOT_DUMP): New, set by configure.
7416 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
7417
2e2bbddb
JL
74182010-05-20 Juri Linkov <juri@jurta.org>
7419
7420 * fileio.c (Fdelete_file): Change interative spec to use
7421 `read-file-name' like in `find-file-read-args' where the default
7422 value is `default-directory' instead of `buffer-file-name'.
7423 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
7424
31c4aaf6
KR
74252010-05-20 Kevin Ryde <user42@zip.com.au>
7426
7427 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
7428 (Voverriding_terminal_local_map, Vsystem_key_alist)
7429 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
7430
9d5cf9b6
GM
74312010-05-20 Glenn Morris <rgm@gnu.org>
7432
7433 * Makefile.in (DEPDIR): New constant.
7434 (DEPFLAGS): Set with configure, not cpp.
7435 (MKDEPDIR): New, set by configure.
7436 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
7437 (clean): Use $DEPDIR.
7438 (deps_frag): Include from configure.
7439 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
7440 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
7441
bba3e508
SM
7442 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
7443 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 7444
7f34aec3
GM
74452010-05-19 Glenn Morris <rgm@gnu.org>
7446
d494e8f2
GM
7447 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7448
c1d0dcfd
GM
7449 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7450 (GNULIB_VAR): Remove.
7451 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7452
7453 * m/ibms390x.h (LINKER):
7454 * m/macppc.h (LINKER) [GNU_LINUX]:
7455 * s/aix4-2.h (ORDINARY_LINK):
7456 * s/cygwin.h (LINKER):
7457 * s/darwin.h (ORDINARY_LINK):
7458 * s/gnu.h (ORDINARY_LINK):
7459 * s/netbsd.h (LINKER):
7460 * s/usg5-4.h (ORDINARY_LINK):
7461 Move to configure.
7462
7f34aec3
GM
7463 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7464
754790b6
CY
74652010-05-18 Chong Yidong <cyd@stupidchicken.com>
7466
7467 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7468 prevent stack overflow if number of arguments is too large
7469 (Bug#6214).
7470
161e44d1
JB
74712010-05-18 Juanma Barranquero <lekktu@gmail.com>
7472
7473 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7474
be4ff9da
GM
74752010-05-18 Glenn Morris <rgm@gnu.org>
7476
9539dc5d
GM
7477 * s/gnu-linux.h: Combine two conditionals.
7478
7479 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
7480 $(POST_ALLOC_OBJ).
7481
40dc6bf4
GM
7482 * Makefile.in (RALLOC_OBJ): New, set by configure.
7483 (rallocobj): Replace with the previous variable.
7484 (otherobj): Use $RALLOC_OBJ.
7485
7486 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7487 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7488
be4ff9da
GM
7489 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7490 (gmallocobj, vmlimitobj): Replace with previous two variables.
7491 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7492
16455a85
GM
74932010-05-17 Glenn Morris <rgm@gnu.org>
7494
7495 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7496 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7497
5fdb7468
GM
74982010-05-16 Glenn Morris <rgm@gnu.org>
7499
7ca1f3f9
GM
7500 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7501
7541dad5
GM
7502 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7503
da53fab9
GM
7504 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7505 trailing "/".
7506
b02a6645
GM
7507 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7508 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7509
8877ca0f
GM
7510 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7511 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7512 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7513 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7514 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7515
5fdb7468
GM
7516 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7517 Remove ${STARTFLAGS}, nothing ever sets it.
7518
95adb4b1
DN
75192010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7520
7521 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7522
676b6304
GM
75232010-05-16 Glenn Morris <rgm@gnu.org>
7524
9beab9ce
GM
7525 * Makefile.in (LIBX_BASE): Always define.
7526
8a95f0e7
GM
7527 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7528
676b6304
GM
7529 * Makefile.in (LIBXT): Always define.
7530
6e546d18
GM
75312010-05-15 Glenn Morris <rgm@gnu.org>
7532
4235ca47 7533 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7534
6e546d18
GM
7535 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7536 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7537
8c5ff6dd
KR
75382010-05-15 Ken Raeburn <raeburn@raeburn.org>
7539
560bb7ae 7540 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7541 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7542
8b4eb796
KR
7543 * emacs.c (main): Initialize initial-environment and
7544 process-environment before generating from env, not after.
7545
8c5ff6dd
KR
7546 Handle --version reasonably in CANNOT_DUMP configuration.
7547 * emacs.c (emacs_version, emacs_copyright): New string variables.
7548 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7549 (syms_of_emacs): Defvar them, and initialize them from the C
7550 string variables.
7551 (main): If initialization hasn't been done, print initial version
7552 info from the C strings, instead of starting an interactive session.
7553
dbd3f723
EZ
75542010-05-15 Eli Zaretskii <eliz@gnu.org>
7555
d20e1419
EZ
7556 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7557 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7558 (bidi_paragraph_init): Remove redundant assertion that we are at
7559 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7560
7561 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7562 (syms_of_xdisp): Defsubr it.
7563
d36fe237
EZ
7564 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7565
dbd3f723
EZ
7566 * Makefile.in: Fix MSDOS-related comments.
7567
02be533b
GM
75682010-05-15 Glenn Morris <rgm@gnu.org>
7569
1a82cca9
GM
7570 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7571 (really-lwlib, really-oldXMenu): Always define.
7572 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7573
3df7b338
GM
7574 * Makefile.in: Simplify cpp conditional.
7575
2b5f541b
GM
7576 * Makefile.in (${ns_appdir}): Simplify using umask.
7577
02be533b
GM
7578 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7579
4e2db1fe
SM
75802010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7581
7582 * eval.c (specbind): Remove left-over duplicate test.
7583 Disallow let-binding frame-local vars. Add comment.
7584
4b292a22
EZ
75852010-05-14 Eli Zaretskii <eliz@gnu.org>
7586
2fe72643 7587 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7588 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7589 (bidi_init_it): Call it.
7590 (bidi_cache_iterator_state): Enlarge the cache if needed.
7591
4e2db1fe 7592 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7593 bidi_get_next_char_visually. All callers changed.
7594
82ebc97b
KH
75952010-05-14 Kenichi Handa <handa@m17n.org>
7596
7597 * dispextern.h (struct composition_it): New member reversed_p.
7598
7599 * composite.c (composition_compute_stop_pos): Search backward if
7600 ENDPOS < CHARPOS.
7601 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7602 Set CMP_IT->reversed_p.
b4b6e17e 7603 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7604
4e2db1fe
SM
7605 * xdisp.c (set_iterator_to_next):
7606 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7607 scanning backward. Call composition_compute_stop_pos if scan
7608 direction is changed.
7609 (next_element_from_buffer): Call composition_compute_stop_pos with
7610 negative ENDPOS if we are scanning backward.
7611 (next_element_from_composition): Pay attention to
7612 IT->cmp_it.reversed_p.
7613
0e5d7800
KH
76142010-05-14 Kenichi Handa <handa@m17n.org>
7615
560bb7ae 7616 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7617
cb027b32
GM
76182010-05-14 Glenn Morris <rgm@gnu.org>
7619
177b0288
GM
7620 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7621
fbc00890
GM
7622 * Makefile.in (mktime, X11, register): Move undefs to configure.
7623
f14d1dfd
GM
7624 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7625 (MSDOS_X_OBJ): New variable.
7626 (MSDOS_SUPPORT_REAL): New constant.
7627 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7628 (obj): Use MSDOS_X_OBJ.
7629 (lisp): Use MSDOS_SUPPORT as a variable.
7630
11842bd8
GM
7631 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7632 (GPM_MOUSE_SUPPORT): Now it's a constant.
7633 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7634 not cpp.
7635
489d31a4 7636 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7637 (ns_appresdir): Remove, unused.
e20f1f07 7638
489d31a4
GM
7639 * Makefile.in (SHELL): Move outside cpp section.
7640
cb027b32
GM
7641 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7642
5a903aa9
GM
76432010-05-13 Glenn Morris <rgm@gnu.org>
7644
3369c79f
GM
7645 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7646 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7647
d5e982a6
GM
7648 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7649 HAVE_WINDOW_SYSTEM must be too.
7650
6192e163
GM
7651 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7652 (lisp): Remove WINNT_SUPPORT.
7653
472c5d6b
GM
7654 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7655 Let configure set these variables (to empty) in this case as well.
7656
0116466b
GM
7657 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7658 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7659
5a903aa9
GM
7660 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7661 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7662 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7663 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7664 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7665 the values output by configure.
5a903aa9
GM
7666 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7667
1a0d7c06
GM
76682010-05-12 Glenn Morris <rgm@gnu.org>
7669
b5457f14
GM
7670 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7671 (LINKER_WAS_SPECIFIED): Remove.
7672
1a0d7c06
GM
7673 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7674 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7675 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7676 * s/cygwin.h (LIB_GCC):
7677 * s/freebsd.h (LIB_GCC):
7678 * s/gnu-linux.h (LIB_GCC):
7679 * s/msdos.h (LIB_GCC):
7680 * s/netbsd.h (LIB_GCC):
7681 Move to configure.
7682
d1ddd1d0 76832010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7684
7685 * ftfont.c: Fix incorrect parentheses of #if condition for
7686 definining M17N_FLT_USE_NEW_FEATURE.
7687
acddf8ae
GM
76882010-05-11 Glenn Morris <rgm@gnu.org>
7689
7690 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7691 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7692
ae5e04fa
EZ
76932010-05-10 Eli Zaretskii <eliz@gnu.org>
7694
7695 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7696 unibyte buffers. See
7697 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7698
7490175b
GM
76992010-05-10 Glenn Morris <rgm@gnu.org>
7700
97efb629
GM
7701 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7702 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7703 (LIBES): Use LIBS_SYSTEM as a variable.
7704 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7705 * s/aix4-2.h (LIBS_SYSTEM):
7706 * s/freebsd.h (LIBS_SYSTEM):
7707 * s/hpux10-20.h (LIBS_SYSTEM):
7708 * s/sol2-6.h (LIBS_SYSTEM):
7709 * s/unixware.h (LIBS_SYSTEM):
7710 Move to configure.
7711
7490175b
GM
7712 * s/aix4-2.h (MAIL_USE_LOCKF):
7713 * s/bsd-common.h (MAIL_USE_FLOCK):
7714 * s/darwin.h (MAIL_USE_FLOCK):
7715 * s/gnu-linux.h (MAIL_USE_FLOCK):
7716 * s/irix6-5.h (MAIL_USE_FLOCK):
7717 * s/template.h (MAIL_USE_FLOCK):
7718 Move to configure.
7719
0235128c 77202010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7721
7722 * Version 23.2 released.
7723
0235128c 77242010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7725
7726 * composite.c (autocmp_chars): Save point as marker before calling
7727 auto-composition-function (Bug#5984).
7728
7729 * lisp.h (restore_point_unwind): Add prototype.
7730
7731 * fileio.c (restore_point_unwind): Remove static attribute.
7732
0235128c 77332010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7734
7735 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7736 new feature of libotf and m17n-flt.
0235128c
SM
7737 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7738 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7739 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7740 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7741 that OUT is NULL. Use OTF_drive_gsub_with_log and
7742 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7743 OTF_drive_gpos.
7744 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7745 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7746 Setup mflt_enable_new_feature and mflt_try_otf.
7747
4721152c
J
77482010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7749
7750 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7751
7752 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7753 box and toolbar (Bug #6139).
7754 (xg_create_tool_bar): Remove comment (Bug #6139).
7755 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7756 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7757
ee0a16cf
JB
77582010-05-08 Juanma Barranquero <lekktu@gmail.com>
7759
7760 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7761 Update dependencies.
7762
96d79611
EZ
77632010-05-08 Eli Zaretskii <eliz@gnu.org>
7764
7765 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7766 R2L lines.
7767
40c17879
GM
77682010-05-08 Glenn Morris <rgm@gnu.org>
7769
7b42b29f
GM
7770 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7771
40c17879
GM
7772 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7773 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7774 (termcapobj): Replace with TERMCAP_OBJ.
7775 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7776 (LIBES): Use LIBS_TERMCAP as a variable.
7777
7778 * s/freebsd.h (osreldate.h): No longer include, since this file
7779 does not use __FreeBSD_version any more.
7780
7781 * s/aix4-2.h (TERMINFO):
7782 * s/cygwin.h (TERMINFO):
7783 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7784 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7785 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7786 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7787 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7788 * s/irix6-5.h (TERMINFO):
7789 * s/netbsd.h (LIBS_TERMCAP):
7790 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7791 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7792 * s/usg5-4.h (TERMINFO):
7793 Move to configure.
7794
94b612ad
SM
77952010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7796
7797 * eval.c (unbind_to): Don't unbind a local binding into the global
7798 binding when the local binding disappeared. Inversely, don't unbind
7799 a global binding into a newly created local binding.
7800 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7801 can specify the frame to use, when applicable. Adjust callers.
7802
15e12598 78032010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7804 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7805
7806 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7807
f724825e
EZ
78082010-05-07 Eli Zaretskii <eliz@gnu.org>
7809
5cba3209
EZ
7810 * w32fns.c: Include w32.h.
7811 (Fw32_shell_execute): Decode the error message before passing it
7812 to `error'. (Bug#6126)
7813
d16bdfc3
EZ
7814 * msdos.c (dos_set_window_size):
7815 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7816 instead of `XSYMBOL (foo)->value'.
7817
59d93e87
EZ
78182010-05-07 Eli Zaretskii <eliz@gnu.org>
7819
9fdec8bc
EZ
7820 Fix the MS-DOS build, broken by autoconfiscation.
7821
7822 * Makefile.in: Don't use Make-style comments past the "start of
7823 cpp stuff" line.
7824 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7825
7826 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7827 edited directly by msdos/sed1v2.inp).
f724825e 7828
2f86b22b
GM
78292010-05-07 Glenn Morris <rgm@gnu.org>
7830
7831 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7832 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7833 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7834 move out of cpp section.
7835 * s/freebsd.h (LD_SWITCH_SYSTEM):
7836 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7837 * s/netbsd.h (LD_SWITCH_SYSTEM):
7838 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7839
49ebbd65
DN
78402010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7841
7842 Define LIB_STANDARD and START_FILES using autoconf.
7843 * s/usg5-4.h (LIB_STANDARD):
7844 * s/netbsd.h (START_FILES):
7845 * s/irix6-5.h (LIB_STANDARD):
7846 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7847 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7848 * s/freebsd.h (START_FILES):
7849 * s/darwin.h (START_FILES):
7850 * s/cygwin.h (START_FILES):
7851 * s/aix4-2.h (LIB_STANDARD):
7852 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7853 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7854 autoconf, not cpp.
7855
d43c06d6
DN
78562010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7857
28823648
DN
7858 Remove NEED_BSDTTY and NEED_UNISTD_H.
7859 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7860 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7861 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7862 <sys/ptyio.h> and <unistd.h>.
7863
aca00430
DN
7864 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7865
d43c06d6
DN
7866 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7867 * s/gnu.h (START_FILES): Remove empty definition.
7868
3e56b11d
JD
78692010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7870
7871 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7872
e3cf0cde
GM
78732010-05-06 Glenn Morris <rgm@gnu.org>
7874
7875 * Makefile.in (CPP, LN_S): Remove unused variables.
7876
774b9a60
SM
78772010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7878
7879 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7880
4ab92842
LM
78812010-05-05 Lawrence Mitchell <wence@gmx.li>
7882
7883 * m/sparc.h: Fix typo in earlier change.
7884
178f2507
SM
78852010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7886
7887 Misc tweaks.
7888 * eval.c (Fdefvaralias): Remove unintended nested if.
7889 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7890
80f00217 78912010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7892
7893 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7894
ef03a4e6
DN
78952010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7896
58eb6cf0
DN
7897 Remove BSD_PGRPS.
7898 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7899 * s/gnu-linux.h (BSD_PGRPS): Remove.
7900 * term.c (dissociate_if_controlling_tty):
7901 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7902 (init_sys_modes, reset_sys_modes):
7903 * emacs.c (main):
7904 * callproc.c (Fcall_process, child_setup): Remove code depending
7905 on BSD_PGRPS.
7906
ef03a4e6
DN
7907 Remove POSIX_SIGNALS.
7908 * s/usg5-4.h (POSIX_SIGNALS):
7909 * s/netbsd.h (POSIX_SIGNALS):
7910 * s/msdos.h (POSIX_SIGNALS):
7911 * s/ms-w32.h (POSIX_SIGNALS):
7912 * s/hpux11.h (POSIX_SIGNALS):
7913 * s/gnu.h (POSIX_SIGNALS):
7914 * s/gnu-linux.h (POSIX_SIGNALS):
7915 * s/freebsd.h (POSIX_SIGNALS):
7916 * s/darwin.h (POSIX_SIGNALS):
7917 * s/cygwin.h (POSIX_SIGNALS):
7918 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7919 * s/unixware.h:
7920 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7921 * process.c (create_process):
7922 * syssignal.h:
7923 * sysdep.c (wait_for_termination, init_signals):
7924 * process.c (create_process):
7925 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7926 remove all code that assumes the contrary.
7927
49628785
GM
79282010-05-04 Glenn Morris <rgm@gnu.org>
7929
27a2cdfc
GM
7930 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7931 variable.
7932 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7933 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7934 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7935 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7936 LD_SWITCH_SYSTEM_tmp.
7937 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7938 New variables, set by configure.
7939
eb21eab5
GM
7940 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7941 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7942 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7943 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7944 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7945
49628785
GM
7946 * s/aix4-2.h (C_SWITCH_SYSTEM):
7947 * m/alpha.h (C_SWITCH_MACHINE):
7948 Move to configure.in.
7949 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7950 New variables, set by configure.
7951 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7952 $c_switch_machine and $c_switch_system.
7953
7dff330b
DN
79542010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7955
7956 * s/hpux10-20.h (LIB_STANDARD): New definition.
7957 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7958 on it, not used anymore.
7959
53967e09
CY
79602010-05-03 Chong Yidong <cyd@stupidchicken.com>
7961
7962 * eval.c (internal_condition_case_n): Rename from
7963 internal_condition_case_2.
7964 (internal_condition_case_2): New function.
7965
7966 * xdisp.c (safe_call): Use internal_condition_case_n.
7967
7968 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7969 (internal_delete_file, Frename_file): Callers changed.
7970
7971 * buffer.c (Fkill_buffer):
7972 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7973
7974 * lisp.h: Update prototypes.
7975
3dee6fdb
GM
79762010-05-03 Glenn Morris <rgm@gnu.org>
7977
7978 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7979 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7980 (LIBXT): Set with configure, not cpp.
7981 (LIBX): Remove.
7982 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7983
a101e0fb
DN
79842010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7985
7986 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7987 The FreeBSD is not needed, the default works, Solaris version is
7988 not needed, and the remaining case is not supported by configure.
7989
f63d0028
JD
79902010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7991
7992 * xsmfns.c (CHDIR_OPT): New define.
7993 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7994 restarting emacs.
7995
7996 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7997 shut_down_emacs.
7998
7999 * emacs.c (USAGE1): Mention --chdir.
8000 (main): Handle --chdir.
8001 (standard_args): Add --chdir.
8002 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8003 #5552).
8004
e4814a9f
DN
80052010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8006
cd03c74a
DN
8007 Remove LD_SWITCH_MACHINE.
8008 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8009 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8010
c3a398a1
DN
8011 Clean up IRIX code.
8012 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8013 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8014
87e7285c
DN
8015 Clean up AIX code.
8016 * m/ibmrs6000.inp: Remove file, unused.
8017 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8018 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8019 definition ...
8020 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8021
80f00217
JB
8022 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8023 unused.
e4814a9f 8024
59ca28de
EZ
80252010-05-01 Eli Zaretskii <eliz@gnu.org>
8026
197daef4
EZ
8027 Emulate POSIX_SIGNALS on MS-Windows.
8028
8029 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8030 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
8031
8032 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8033 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8034 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8035
80f00217
JB
8036 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8037 New stubs.
197daef4 8038
af7c7572
EZ
8039 Miscellaneous fixes of bidi display.
8040
59ca28de
EZ
8041 * xdisp.c (find_row_end): New function, refactored from display_line.
8042 (display_line): Use it.
017ea819
EZ
8043 (extend_face_to_end_of_line): In almost-filled rows, extend only
8044 if the row is R2L and not continued.
166e930d 8045 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8046 Preserve overlay and string info in row->end.
166e930d
EZ
8047 (insert_left_trunc_glyphs): Support addition of left truncation
8048 glyphs to R2L rows.
b47e0dcf 8049 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8050 glyph between adjacent windows. Fix a crash when a display string
8051 is continued to the next line. Don't return zero if cursor was
8052 found by `cursor' property of a display string.
b47e0dcf
EZ
8053 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8054 test for that explicitly.
59ca28de 8055
7acac9f4
GM
80562010-05-01 Glenn Morris <rgm@gnu.org>
8057
8058 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8059 for clarity.
8060 (OTHER_OBJ): Remove.
8061 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8062 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8063
45841e65
KK
80642010-05-01 Karel Klíč <kklic@redhat.com>
8065
8066 * fileio.c (Ffile_selinux_context): Context functions may return null.
8067
afc61943
DN
80682010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8069
80f00217 8070 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8071
5a1bb006
GM
80722010-04-30 Glenn Morris <rgm@gnu.org>
8073
8074 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8075 (OTHER_OBJ): Define as a separate variable, for clarity.
8076
210af043
J
80772010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8078
8079 * xsettings.c: include limits.h and update file comment.
8080
0a7df391
GM
80812010-04-30 Glenn Morris <rgm@gnu.org>
8082
d5096f16
GM
8083 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8084 Set with configure, not cpp.
8085 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8086
7eb1ac33
GM
8087 * Makefile.in (mallocobj): Remove.
8088 (otherobj): Simplify using @OTHER_OBJ@.
8089
517d086b
GM
8090 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8091 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8092 Don't bother making nsgui.h dependency platform-specific.
8093
0a7df391
GM
8094 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8095
d6d23852
SM
80962010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8097
d2630aef
SM
8098 * process.c (read_process_output, exec_sentinel): Don't burp if the
8099 sentinel/filter kills the current buffer (bug#6060).
8100
f9dddf52 8101 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8102 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8103 Remove unused var `args'.
8104 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8105 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8106 * doc.c (store_function_docstring): Use XSETCAR.
8107
f1e3642a
GM
81082010-04-28 Glenn Morris <rgm@gnu.org>
8109
faf535f8
GM
8110 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8111 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8112
c40f9449
GM
8113 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8114
658f86ca
GM
8115 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8116 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8117
bc0b5f61
GM
8118 * Makefile.in (FONT_OBJ): New, set by configure.
8119 (FONT_DRIVERS): Use $FONT_OBJ.
8120
294c50a0
GM
8121 * Makefile.in (LIBXMU): Set with configure, not cpp.
8122 * s/aix4-2.h (LIBXMU):
8123 * s/hpux10-20.h (LIBXMU):
8124 Remove definition, now set in configure.
8125
e6ec4e99
GM
8126 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8127
f1e3642a
GM
8128 * m/amdx86-64.h [i386]: Move this test to configure.in.
8129
c6ea2936
GM
81302010-04-27 Glenn Morris <rgm@gnu.org>
8131
8fdac2c3
GM
8132 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8133 * s/unixware.h (NEED_LIBW): Remove definition.
8134
986fb647
GM
8135 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8136 (TOOLKIT_LIBW): New, set by configure.
8137 (@X_TOOLKIT_TYPE@): No longer define it.
8138
c6ea2936
GM
8139 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8140 (MOTIF_LIBW): Set with configure, not cpp.
8141 * s/aix4-2.h (LIB_MOTIF):
8142 * s/gnu-linux.h (LIB_MOTIF):
8143 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8144
aaa36002
DN
81452010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8146
8147 Reduce CPP usage.
8148 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8149 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8150 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8151 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8152 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8153
b678dd8b
GM
81542010-04-27 Glenn Morris <rgm@gnu.org>
8155
76cda504
GM
8156 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8157 since the defaults (set by the system file) are fine in most cases.
8158 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8159 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8160 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8161 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8162 Remove definitions, since they are set correctly in s/gnu-linux.h.
8163 * s/freebsd.h (START_FILES, LIB_STANDARD):
8164 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8165 * s/hpux10-20.h (START_FILES):
8166 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8167 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8168
b678dd8b
GM
8169 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8170 (MOTIF_LIBW): Use $LIBXP.
8171 (otherobj): Use $WIDGET_OBJ.
8172
9452ded1
DN
81732010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8174
7e10844c
DN
8175 * Makefile.in (LIBS_MACHINE): Remove, unused.
8176
9452ded1
DN
8177 Use autoconf instead of cpp for LIB_MATH.
8178 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8179 * s/cygwin.h (LIB_MATH): Likewise.
8180 * Makefile.in (LIB_MATH): Do not define with cpp.
8181 (LIBES): Use autoconf for LIB_MATH.
8182
fcebfc6a
KH
81832010-04-26 Kenichi Handa <handa@m17n.org>
8184
8185 * composite.c (Ffind_composition_internal): Fix the return value
8186 for an automatic composition.
8187
39e2ad1b
DN
81882010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8189
8190 Remove all NO_ARG_ARRAY uses.
8191 * fns.c (concat2, concat3, nconc2):
8192 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8193 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8194 * m/xtensa.h (NO_ARG_ARRAY):
8195 * m/template.h (NO_ARG_ARRAY):
8196 * m/sparc.h (NO_ARG_ARRAY):
8197 * m/sh3.h (NO_ARG_ARRAY):
8198 * m/mips.h (NO_ARG_ARRAY):
8199 * m/macppc.h (NO_ARG_ARRAY):
8200 * m/iris4d.h (NO_ARG_ARRAY):
8201 * m/intel386.h (NO_ARG_ARRAY):
8202 * m/ibms390x.h (NO_ARG_ARRAY):
8203 * m/ibms390.h (NO_ARG_ARRAY):
8204 * m/ibmrs6000.h (NO_ARG_ARRAY):
8205 * m/ia64.h (NO_ARG_ARRAY):
8206 * m/hp800.h (NO_ARG_ARRAY):
8207 * m/arm.h (NO_ARG_ARRAY):
8208 * m/amdx86-64.h (NO_ARG_ARRAY):
8209 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8210
adf4f59c
EZ
82112010-04-25 Eli Zaretskii <eliz@gnu.org>
8212
6bdf5d65
EZ
8213 * xdisp.c (display_line): Don't assume 2nd call to
8214 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
8215 (iterate_out_of_display_property): New function, body from pop_it.
8216 (pop_it): Use it.
adf4f59c 8217
dfbbda83
GM
82182010-04-24 Glenn Morris <rgm@gnu.org>
8219
8220 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8221 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8222 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8223 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8224
2d4018aa
EZ
82252010-04-24 Eli Zaretskii <eliz@gnu.org>
8226
a49884a6
EZ
8227 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8228 use `get_next_display_element' and `set_iterator_to_next' to
8229 advance to the next character, when looking for the character that
8230 begins the next row.
8231
76db6fcc 8232 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
8233 definition of "struct Lisp_Symbol".
8234
70eab5c1
GM
82352010-04-24 Glenn Morris <rgm@gnu.org>
8236
8237 * Makefile.in (CRT_DIR): New variable, set by configure.
8238 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8239 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8240
1ad4cc3d
DN
82412010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8242
e769f484
DN
8243 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8244
4196ff33
DN
8245 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8246
879b0ee4
DN
8247 Remove redundant flags.
8248 * s/freebsd.h (C_SWITCH_SYSTEM):
8249 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8250 * s/netbsd.h (C_SWITCH_SYSTEM):
8251 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8252 of these.
8253
03cbbcb8
DN
8254 Simplify m/intel386.h.
8255 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8256 user: ecrt0.c.
8257 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8258 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8259 the only user: s/unixware.h.
8260 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8261 from m/intel386.h.
bba3e508
SM
8262 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8263 Definitions moved here from m/intel386.h.
03cbbcb8 8264
1ad4cc3d
DN
8265 * m/mips.h: Remove #if 0 code.
8266
8785b888
EZ
82672010-04-23 Eli Zaretskii <eliz@gnu.org>
8268
728588cc
EZ
8269 Fix display of composed characters from L2R scripts in bidi buffers.
8270 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8271 After advancing IT past the composition, resync the bidi iterator
8272 with IT's position. (Bug#5977)
8273
a63f80b4
DN
82742010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8275
8276 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
8277 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
8278
ff5dec5c
SM
82792010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8280
8281 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
8282
8785b888
EZ
82832010-04-23 Eli Zaretskii <eliz@gnu.org>
8284
58ccf243 8285 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
8286 * xdisp.c (pop_it): When the stack is popped after displaying
8287 from a string, bidi-iterate to exit from the text portion covered
8288 by the `display' property or overlay. (Bug#5988, bug#5920)
8289
feeb1604
DN
82902010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8291
8e324eb6
DN
8292 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
8293 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
8294
809fcaba
DN
8295 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
8296 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
8297
ed710380
DN
8298 Simplify STARTFILES definition.
8299 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
8300 relying on Makefile.in to define it.
8301 * s/cygwin.h (START_FILES): Likewise.
8302 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
8303
feeb1604
DN
8304 Clean up Solaris code.
8305 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
8306 (LIB_MOTIF): Remove, configure takes care of this.
8307 (NOT_USING_MOTIF): Remove, unused.
8308 * xrdb.c: Remove #if 0-ed #include.
8309 (SYSV): Remove conditional for old SysV.
8310 * sysdep.c (closedir): Remove conditional code for Solaris,
8311 Solaris has closedir.
8312
a0d0b563
JD
83132010-04-22 Jan Djärv <jan.h.d@swipnet.se>
8314
8315 * xsettings.c (read_and_apply_settings): Check if current_font is
8316 NULL before strcmp (Bug#6001).
8317
56bae7c7
DN
83182010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
8319
8320 Clean up HP-UX files.
8321 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
8322 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
8323 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
8324 * s/hpux10-20.h: ... to the only user, here.
8325
372b7a95
EZ
83262010-04-21 Eli Zaretskii <eliz@gnu.org>
8327
8328 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
8329 use buffer-local values of paragraph-start and paragraph-separate.
8330 <paragraph_start_re, paragraph_separate_re>: Rename from
8331 fallback_paragraph_start_re and fallback_paragraph_separate_re.
8332 (Bug#5992)
8333
f904c0f9
JD
83342010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8335
8336 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
8337 current_tool_bar_style are new.
8338 (store_config_changed_event): Rename from store_font_changed_event.
8339 (XSETTINGS_TOOL_BAR_STYLE): New define.
8340 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
8341 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
8342 HAVE_XFT.
8343 (something_changedCB): store_font_changed_event is now
c4cc8b9a 8344 store_config_changed_event.
bba3e508
SM
8345 (parse_settings): Rename from parse_xft_settings.
8346 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 8347 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
8348 (apply_xft_settings): Take current settings as parameter. Do not
8349 call read_(xft)_settings.
8350 (read_and_apply_settings): New function.
bba3e508
SM
8351 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
8352 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 8353 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
8354 Call read_and_apply_settings unconditionally.
8355 (xsettings_initialize): Call init_xsettings.
8356 (Ftool_bar_get_system_style): New function.
8357 (syms_of_xsettings): Define Qmonospace_font_name and
8358 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 8359 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 8360 dynamic-setting.
31a01b90 8361 Move misplaced HAVE_GCONF
f904c0f9
JD
8362
8363 * xsettings.h (Ftool_bar_get_system_style): Declare.
8364
8365 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
8366 Qtext, Qboth, Qboth_horiz are new.
8367 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
8368 Vtool_bar_style, tool_bar_max_label_size.
8369
8370 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
8371
8372 * keyboard.c: QClabel is new.
8373 (parse_tool_bar_item): Take out QClabel from tool bar items.
8374 Try to construct a label if ther is no QClabel.
8375 (syms_of_keyboard): Intern :label as QClabel.
8376
8377 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
8378 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
8379 New.
8380
8381 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
8382 dynamic-setting.el.
8383
8384 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
8385 (xg_make_tool_item, xg_show_toolbar_item): New function.
8386 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
8387 Call xg_make_tool_item to make a tool bar item.
8388 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
8389
8390 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
8391 into account for toolbars.
8392
c632dfda
JD
83932010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8394
8395 * data.c (make_blv): Declarations before code (Bug#5993).
8396
10efe302
GM
83972010-04-21 Glenn Morris <rgm@gnu.org>
8398
8399 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
8400 Define using autoconf, not cpp.
8401 (LIBXSM): New variable, set by autoconf.
8402 (LIBXT): Use $LIBXSM.
8403
4285ac5a
DN
84042010-04-21 Dan Nicolaescu <local_user@dannlt>
8405
3ec759e7
DN
8406 Remove NOMULTIPLEJOBS, unused.
8407 * s/template.h (NOMULTIPLEJOBS):
8408 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
8409
4285ac5a
DN
8410 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8411 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
8412 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
8413 detects -znocombreloc and passes it to the linker
8414 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
8415
2807228d
GM
84162010-04-21 Glenn Morris <rgm@gnu.org>
8417
8418 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
8419
574c05e2
KK
84202010-04-21 Karel Klíč <kklic@redhat.com>
8421
8422 * Makefile.in (LIBSELINUX_LIBS): New.
8423 (LIBES): Add $LIBSELINUX_LIBS.
8424 * eval.c, lisp.h (call7): New function.
8425 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
8426 (Ffile_selinux_context, Fset_file_selinux_context):
8427 New functions.
8428 (Fcopy_file): New parameter preserve-selinux-context.
8429 (Frename_file): Preserve selinux context when renaming by copy-file.
8430
91eac4bb 84312010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 8432 Eli Zaretskii <eliz@gnu.org>
91eac4bb 8433
50426a04
JB
8434 Don't depend on cm.c or termcap.c on Windows, use stubs.
8435 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
8436 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
8437 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
8438 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
8439 (sys_tputs, sys_tgetstr): New stubs.
8440 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
8441 (tputs, tgetstr): New; define to sys_*.
91eac4bb 8442
938efb77
JB
84432010-04-20 Juanma Barranquero <lekktu@gmail.com>
8444
8445 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8446
b4bf28b7
SM
84472010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8448
8b1e1112
SM
8449 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8450 Just signal a warning rather than an error when inside a let.
8451 (Fmake_variable_frame_local): Add the same test.
8452
933ac235
SM
8453 * font.c (syms_of_font): Make the style table vars read-only.
8454
b4bf28b7
SM
8455 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8456 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8457
8458 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8459
93d68d0c
EZ
84602010-04-20 Eli Zaretskii <eliz@gnu.org>
8461
8462 Fix R2L paragraph display on TTY.
8463
8464 * xdisp.c (unproduce_glyphs): New function.
8465 (display_line): Use it when produced glyphs are discarded from R2L
8466 glyph rows.
8467 (append_composite_glyph): In R2L rows, prepend the glyph rather
8468 than appending it.
8469
8470 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8471 rather than append it. Set up the resolved_level and bidi_type
8472 attributes of the appended glyph.
283ccc18
EZ
8473 (produce_special_glyphs): Mirror the backslash continuation
8474 character in R2L lines.
93d68d0c 8475
283ccc18 8476 Implement display of R2L paragraphs in GUI sessions.
26cdf528 8477
283ccc18
EZ
8478 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8479 append_stretch_glyph.
bba3e508
SM
8480 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8481 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
8482 (append_stretch_glyph): In reversed row, prepend the glyph rather
8483 than append it. Set resolved_level and bidi_type of the glyph.
8484 (extend_face_to_end_of_line): If the row is reversed, prepend a
8485 stretch glyph whose width is such that the rightmost glyph will be
8486 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
8487 TTY frames in testing whether a line needs face extension.
8488 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
8489 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8490 region face.
bba3e508
SM
8491 (set_cursor_from_row, display_line):
8492 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 8493 row->continuation_lines_width.
283ccc18
EZ
8494 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8495 are at ZV. Fixes a crash when reseated to ZV by
8496 try_window_reusing_current_matrix.
45903529
EZ
8497 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8498 which happens with R2L glyph rows. Fixes a crash when inserting a
8499 character at end of an R2L line.
283ccc18
EZ
8500 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8501 treat them as having zero-width characters. Improve comments.
8502 Don't reverse pos_before and pos_after for reversed glyph rows.
8503 Set cursor.x to negative value when the cursor might be on the
8504 left fringe.
8505 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8506 left fringe, not the right one.
f951a506
EZ
8507 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8508 (erase_phys_cursor): For reversed cursor_row, support cursor on
8509 the left fringe.
8510
283ccc18
EZ
8511 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8512 of continuation indicators on the fringes.
8513 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8514 left fringe.
8515
f951a506
EZ
8516 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8517 draw cursor on the left fringe.
8518
8519 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8520 cursor on the left fringe.
8521
f951a506
EZ
8522 * dispnew.c (update_text_area): Handle reversed desired rows when
8523 the cursor is on the left fringe.
8524 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8525 below, not by 0, for when the cursor is on the left fringe.
8526
3bb49aaf
JD
85272010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8528
8529 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8530 widget is a scrollbar.
8531
c0be27fd
KH
85322010-04-20 Kenichi Handa <handa@m17n.org>
8533
8534 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8535 only when the arg CHARSET_LIST is nil.
8536
ce5b453a
SM
85372010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8538
8539 Make variable forwarding explicit rather the using special values.
8540 Basically, this makes the structure of buffer-local values and object
8541 forwarding explicit in the type of Lisp_Symbols rather than use
8542 special Lisp_Objects for that. This tends to lead to slightly more
8543 verbose code, but is more C-like, simpler, and makes it easier to make
8544 sure we handled all cases, among other things by letting the compiler
8545 help us check it.
8546 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8547 Removing forwarding objects.
8548 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8549 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8550 explicit rather than hiding them inside Lisp_Object "values".
8551 (XFWDTYPE): New macro.
8552 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8553 (XBUFFER_LOCAL_VALUE): Remove.
8554 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8555 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8556 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8557 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8558 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8559 Remove the Lisp_Misc_* header.
8560 (struct Lisp_Buffer_Local_Value): Redefine.
8561 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8562 (struct Lisp_Misc_Any): Add filler to get the right size.
8563 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8564 Lisp_Intfwd.
8565 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8566 (DEFVAR_KBOARD): Allocate a forwarding object.
8567 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8568 (let_shadows_global_binding_p): New function.
8569 (union Lisp_Val_Fwd): New type.
8570 (make_blv): New function.
8571 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8572 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8573 (swap_in_symval_forwarding, find_symbol_value, Fset)
8574 (let_shadows_buffer_binding_p, set_internal, default_value)
8575 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8576 (Fkill_local_variable, Fmake_variable_frame_local)
8577 (Flocal_variable_p, Flocal_variable_if_set_p)
8578 (Fvariable_binding_locus):
8579 * xdisp.c (select_frame_for_redisplay):
8580 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8581 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8582 * frame.c (store_frame_param):
8583 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8584 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8585 value structure.
8586 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8587 (clone_per_buffer_values): Only adjust markers into the current buffer.
8588 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8589 (Fbuffer_local_value, set_buffer_internal_1)
8590 (swap_out_buffer_local_variables):
8591 Adapt to the new symbol value structure.
8592 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8593 (defvar_per_buffer): Take a new arg for the fwd object.
8594 (buffer_lisp_local_variables): Return a proper alist (different fix
8595 for bug#4138).
8596 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8597 (Fgarbage_collect): Don't handle buffer_defaults specially.
8598 (mark_object): Handle new symbol value structure rather than the old
8599 special Lisp_Misc_* objects.
8600 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8601 * term.c (set_tty_color_mode):
8602 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8603 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8604 a buffer_local_flags.
8605 * print.c (print_object): Get rid of impossible forwarding objects.
8606
fd3998ff
EZ
86072010-04-19 Eli Zaretskii <eliz@gnu.org>
8608
8609 * bidi.c (bidi_get_type, bidi_get_category)
8610 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8611 (bidi_type_of_next_char, bidi_level_of_next_char):
8612 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8613
e42cd1a7
JB
86142010-04-19 Juanma Barranquero <lekktu@gmail.com>
8615
8616 * dired.c (Ffile_attributes): Fix typo in docstring.
8617
6e104790 86182010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8619
8620 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8621 NSInteger (Bug#5811).
8622
6e104790 86232010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8624
8625 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8626 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8627
6e104790 86282010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8629
8630 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8631
6e104790
SM
86322010-04-19 Chong Yidong <cyd@stupidchicken.com>
8633
8634 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8635 terminal frames (Bug#5837).
8636
37dcfea0
EZ
86372010-04-19 Eli Zaretskii <eliz@gnu.org>
8638
d1da276f
EZ
8639 * .gdbinit (xsubchartable): New command.
8640
37dcfea0
EZ
86412010-04-19 Eli Zaretskii <eliz@gnu.org>
8642
8643 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8644 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8645 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8646 and
8647 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8648
e9515805
SM
86492010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8650
8651 * alloc.c (Fpurecopy): Hash-cons if requested.
8652 (syms_of_alloc): Update purify-flag docstring.
8653
22aa44a8
JD
86542010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8655
8656 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8657 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8658
ebb5722e
EZ
86592010-04-17 Eli Zaretskii <eliz@gnu.org>
8660
8661 Fix a crash when an NSM character is inserted at BEGV.
8662
8663 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8664 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8665 NEUTRAL_B or UNKNOWN_BT.
8666
0f4442ef
EZ
86672010-04-16 Eli Zaretskii <eliz@gnu.org>
8668
8669 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8670 other rows with cursor unless they are different from this row and
8671 this row is part of a continued line. (Bug#5943)
8672
7d4e45f8
DN
86732010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8674
8675 * s/freebsd.h: Restore osreldate.h include.
8676 Suggested by Naohiro Aota.
8677
5ba5ec85
J
86782010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8679
8680 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8681
20af301d
CY
86822010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8683
8684 * s/cygwin.h: Avoid linking against static libgcc.
8685
a4b000fb
JL
86862010-04-15 Juri Linkov <juri@jurta.org>
8687
8688 * window.c: Add Qscroll_command.
8689 Remove Vscroll_preserve_screen_position_commands.
8690 (window_scroll_pixel_based, window_scroll_line_based): Check the
8691 `scroll-command' property on the last command instead of searching
8692 the last command in Vscroll_preserve_screen_position_commands.
8693 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8694 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8695 (scroll-preserve-screen-position): Doc fix.
8696 (Vscroll_preserve_screen_position_commands): Remove variable.
8697
bc319ba4
DN
86982010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8699
6bb24457
DN
8700 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8701
19d4c244
DN
87022010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8703
8704 Reduce cpp use in Makefile.in.
8705 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8706 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8707 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8708 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8709 (CRT0_COMPILE): Remove, inline it in the only user.
8710
32129746
JL
87112010-04-14 Juri Linkov <juri@jurta.org>
8712
8713 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8714 `scroll-up-command' and `M-v' from `scroll-down' to
8715 `scroll-down-command'.
8716
9013a7f8
JL
87172010-04-14 Juri Linkov <juri@jurta.org>
8718
8719 * window.c (Vscroll_preserve_screen_position_commands): New variable
8720 with the default value as the list of Qscroll_down and Qscroll_up.
8721 (window_scroll_pixel_based, window_scroll_line_based): Search the
8722 last command in the list Vscroll_preserve_screen_position_commands
8723 instead of comparing with Qscroll_up and Qscroll_down.
8724
4bef8d26
JD
87252010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8726
92848133
JD
8727 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8728 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8729 does that.
8730
4bef8d26
JD
8731 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8732 to zero.
8733
58b963f7
SM
87342010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8735
84164a0d
SM
8736 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8737
2b0a91e7
SM
8738 Try to solve the problem of spurious EOF chars in long lines of text
8739 sent to interactive subprocesses.
8740 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8741 (system_process_attributes): Remove unused var `ttotal'.
8742 * process.c (send_process): Don't bother breaking long line with EOF
8743 chars when talking to ttys any more.
8744 (wait_reading_process_output): Output a warning when called in such
8745 a way that it could block without being interruptible.
8746
58b963f7
SM
8747 Try to detect file modification within the same second.
8748 * buffer.h (struct buffer): New field modtime_size.
8749 * buffer.c (reset_buffer): Initialize it.
8750 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8751 (Fverify_visited_file_modtime): Check it.
8752 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8753 (Fset_visited_file_modtime): Set (or clear) it.
8754
01f5787b
SM
87552010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8756
8757 * process.c (status_notify): Remove unused var `ro'.
8758
83725342
JD
87592010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8760
8761 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8762 more than one visual (Bug#5938).
8763
b9465836
DN
87642010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8765
50426a04
JB
8766 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8767 Undefine.
b9465836 8768
8d9c8ece
DN
87692010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8770
b1f52161
DN
8771 Remove C_SWITCH_SYSTEM_TEMACS.
8772 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8773 (malloc, realloc, free): Use emacs, not temacs for conditional
8774 definition.
8775
8776 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8777 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8778
8d9c8ece
DN
8779 Use autoconf, not cpp for some variables.
8780 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8781 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8782 (ALL_CFLAGS): Use them as make variables.
8783 (really-lwlib, really-oldXMenu): Do not pass them.
8784
1ecb2d3f
JD
87852010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8786
8787 * xmenu.c (apply_systemfont_to_dialog): New.
8788 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8789
3a4fa2f2
SM
87902010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8791
97e53006
SM
8792 * process.c (exec_sentinel): Preserve current-buffer.
8793
3a4fa2f2
SM
8794 * process.c (read_process_output): Move the save-current-buffer to
8795 apply to both the filter and the non-filter branches.
8796
88df7221
DN
87972010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8798
8799 * s/msdos.h (UNEXEC): New definition.
8800
5634ff85
YM
88012010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8802
6eff5c3d
YM
8803 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8804 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8805
8806 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8807 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8808 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8809 TRY_WINDOW_CHECK_MARGINS.
8810
8811 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8812 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8813 width only when it is for padding.
5634ff85 8814
b13aef54
J
88152010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8816
8817 * xfns.c (Fx_show_tip): Call try_window in a loop until
8818 fonts_changed_p is zero (Bug#2423).
8819
21d28484
EZ
88202010-04-08 Eli Zaretskii <eliz@gnu.org>
8821
8822 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8823 the end of TEXT_AREA. (Bug#5856)
8824
0269ef77
JD
88252010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8826
8827 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8828 HAVE_GCONF.
8829
5930fe97
EZ
88302010-04-08 Eli Zaretskii <eliz@gnu.org>
8831
8832 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8833 prev.orig_type, for resolving type of NSM. (Bug#5858)
8834
99852628
JD
88352010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8836
8837 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8838 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8839 in current_font.
8840 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8841 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8842 New functions.
8843 (syms_of_xsettings): Initialize current_font.
8844 defsubr Sfont_get_system_normal_font.
99852628 8845
686b968e
JB
8846 * xsettings.h (Ffont_get_system_normal_font)
8847 (xsettings_get_system_normal_font): Declare.
99852628
JD
8848
8849 * xfns.c (extern xlwmenu_default_font): Remove.
8850 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8851 to xlwmenu.c.
8852
8853 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8854 menu items in UTF-8.
8855
8856 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8857 (apply_systemfont_to_menu): New function.
bba3e508
SM
8858 (set_frame_menubar, create_and_show_popup_menu):
8859 Call apply_systemfont_to_menu.
99852628 8860
7fc874c4
J
88612010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8862
8863 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8864 FRAME_LINE_TO_PIXEL_Y.
8865
8866 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8867 pixelwidth/height.
8868
863bf481
DN
88692010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8870
5e5a3b92
DN
8871 Simplify code for HP machines.
8872 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8873 for GNU_LINUX, not needed.
8874 (UNEXEC, NEED_BSDTTY): Move definitions...
8875 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8876
863bf481
DN
8877 * m/iris4d.h (UNEXEC): Move definition ...
8878 * s/irix6-5.h (UNEXEC): ... here.
8879
3e6bec3b
JD
88802010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8881
8882 * xfns.c (set_machine_and_pid_properties): New function.
8883 (Fx_create_frame): Call set_machine_and_pid_properties.
8884
2912322b
SM
88852010-04-03 Eli Zaretskii <eliz@gnu.org>
8886
bba3e508
SM
8887 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8888 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8889 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8890
2912322b
SM
8891 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8892 in this function. (Bug#5703)
8893
88942010-04-03 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * nsterm.h: Fix last change.
8897
c435b432
DN
88982010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8899
a568f507
DN
8900 * m/intel386.h (NO_REMAP): Move definition ...
8901 * s/msdos.h (NO_REMAP): ... here.
8902
4cd9f6c2
DN
8903 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8904
c435b432
DN
8905 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8906 used on those platforms.
8907
42a2c622
DN
89082010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8909
8910 Remove extern errno declarations.
8911 * xterm.c:
8912 * xrdb.c:
8913 * w32term.c:
8914 * unexec.c:
8915 * unexaix.c:
8916 * sysdep.c:
8917 * process.c:
8918 * lread.c:
8919 * keyboard.c:
8920 * floatfns.c:
8921 * filelock.c:
8922 * fileio.c:
8923 * emacs.c (main):
8924 * ecrt0.c:
8925 * dispnew.c:
8926 * callproc.c:
8927 * buffer.c: Remove errno extern declarations.
8928 * s/netbsd.h (NEED_ERRNO): Remove.
8929
8224f93d
DN
89302010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8931
8932 Remove all uses of LIBX11_SYSTEM.
8933 * Makefile.in (LIBX11_SYSTEM): Remove.
8934 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8935 instead.
8936
814062c7
EZ
89372010-04-01 Eli Zaretskii <eliz@gnu.org>
8938
ed68db4d
EZ
8939 Remove support for DJGPP v1.x (bug#5813).
8940
8941 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8942 * s/msdos.h:
8943 * unexec.c (make_hdr, copy_text_and_data):
8944 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8945 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8946 (IT_set_terminal_modes, __write, _rename, gethostname)
8947 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8948 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8949 the value of __DJGPP__.
ed68db4d
EZ
8950 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8951 compatibility code.
8224f93d
DN
8952 * lread.c:
8953 * gmalloc.c (memalign):
8954 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8955 * emacs.c (main):
8956 * dosfns.c (init_dosfns):
ed68db4d
EZ
8957 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8958
52f4d8d5
EZ
89592010-04-01 Eli Zaretskii <eliz@gnu.org>
8960
814062c7
EZ
8961 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8962 string with `cursor' property comes from an `after-string'
8963 overlay. (Bug#5816)
8964
0dc2e11d
GM
89652010-04-01 Glenn Morris <rgm@gnu.org>
8966
8967 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8968 Define as Makefile variables.
8969 (LIBX): Use above variables rather than directly using autoconf.
8970
1d29df59
DN
89712010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8972
8973 Clean up BSD_SYSTEM use.
8974 * xterm.c:
8975 * process.c:
8976 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8977 for including <sys/ioctl.h>.
8978 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8979 code is only used for MSDOS.
8980
1546c559
JL
89812010-03-31 Juri Linkov <juri@jurta.org>
8982
8983 * image.c: Add `Qextension_data'.
8984 (syms_of_image): Initialize and staticpro `Qextension_data'.
8985 (Fimage_metadata): Rename from `Fimage_extension_data'.
8986 (gif_load): Put GIF extension data to the property
8987 `Qextension_data'.
8988
6521c534
CY
89892010-03-31 Chong Yidong <cyd@stupidchicken.com>
8990
8991 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8992 * nsterm.h: Fix prototype.
8993
52c30783
EZ
89942010-03-31 Eli Zaretskii <eliz@gnu.org>
8995
8996 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8997 trailing whitespace in right-to-left rows.
8998
855a0da7
SM
89992010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9000
9001 Get rid of the direct_output optimizations.
9002 * keyboard.c (nonundocount): Remove extern declaration.
9003 (command_loop_1): Remove brittle optimisation for cheap and
9004 common operations.
9005 * xdisp.c (redisplay_internal): Don't bother checking
9006 redisplay_performed_directly_p any more.
9007 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9008 any more.
9009 * dispnew.c (redisplay_performed_directly_p)
9010 (direct_output_for_insert, direct_output_forward_char):
9011 * dispextern.h (redisplay_performed_directly_p)
9012 (direct_output_for_insert, direct_output_forward_char): Remove.
9013 * cmds.c (nonundocount): Make it static.
9014
85738751 90152010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
9016
9017 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9018
85738751 90192010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
9020
9021 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9022 invisible (Bug#5766).
9023
85738751 90242010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 9025
855a0da7
SM
9026 * xdisp.c (x_consider_frame_title, update_window_cursor):
9027 Remove HAVE_NS conditionals.
194d44e7 9028 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
9029
9030 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9031 filename for the title.
9032 (ns_set_doc_edited): Do nothing if the selected window is a
9033 minibuffer window.
9034
9035 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9036 ns_set_doc_edited.
9037
9038 * nsterm.m: Remove unneeded prototype.
9039
85738751 90402010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9041
9042 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9043 in the DOC file. (Bug#5336)
9044
85738751 90452010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9046
9047 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9048
75d1428c
SM
90492010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9050
9051 * window.c (keys_of_window): Remove redundant/overridden bindings.
9052
82043cfb
EZ
90532010-03-30 Eli Zaretskii <eliz@gnu.org>
9054
9055 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9056 Restore original behavior when the iterator is not bidi_p.
9057
b5dd0ae7
DN
90582010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9059
9060 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9061
bd924a5d
EZ
90622010-03-30 Eli Zaretskii <eliz@gnu.org>
9063
9064 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9065 are outside the range of cached character positions.
9066
3580374b
JB
90672010-03-30 Juanma Barranquero <lekktu@gmail.com>
9068
9069 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9070
a7b02820
EZ
90712010-03-30 Eli Zaretskii <eliz@gnu.org>
9072
9073 Initial support for bidirectional editing.
9074
9075 * Makefile.in (obj): Include bidi.o.
9076 (bidi.o): New target.
9077
9078 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9079 ($(BLD)/bidi.$(O)): New target.
9080
9081 * bidi.c: New file.
9082
9083 * buffer.h (struct buffer): New members bidi_display_reordering
9084 and bidi_paragraph_direction.
9085
9086 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9087 and bidi_paragraph_direction.
9088 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9089 and bidi-paragraph-direction.
9090 (Fbuffer_swap_text): Swap the values of
9091 bidi_display_reordering and bidi_paragraph_direction.
9092
9093 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9094 (bidi_type_t, bidi_dir_t): New types.
9095 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9096 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9097 prev_stop, base_level_stop, and eol_pos.
9098 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9099 (IT_STACK_SIZE): Enlarge to 5.
9100 (struct glyph_row): New member reversed_p.
9101 <string_buffer_position>: Update prototype.
9102 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9103 glyph_row if bidi_it.paragraph_dir == R2L.
9104 (struct glyph): New members resolved_level and bidi_type.
9105
9106 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9107 processing or buffer's direction is right-to-left.
9108 (prepare_desired_row): Preserve the reversed_p flag.
9109 (row_equal_p): Compare the reversed_p attributes as well.
9110
bba3e508
SM
9111 * xdisp.c (init_iterator): Initialize it->bidi_p.
9112 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9113 buffer's value of bidi_paragraph_direction.
9114 (reseat_1): Initialize bidi_it.first_elt.
9115 (set_iterator_to_next, next_element_from_buffer): Use the value of
9116 paragraph_embedding to determine the paragraph direction.
9117 (set_iterator_to_next): Under bidi reordering, call
9118 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9119 new_paragraph flag is set in the bidi iterator.
9120 (next_element_from_buffer): If bidi_it.first_elt is set,
9121 initialize paragraph direction and find the first character to
9122 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9123 prime the bidi iterator starting at the line's beginning.
9124 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9125 non-linearity of the bidi iteration. Likewise for when we back up
9126 beyond the previous stop_charpos. When moving across stop_charpos,
9127 record it in prev_stop.
9128 (display_line): Set row->end and it->start for the next row to the
9129 next character in logical order. Always extend reversed_p rows to
9130 the end of line, even if they end at ZV. Copy the reversed_p flag
9131 to the next glyph row. Keep calling set_cursor_from_row for
9132 bidi-reordered rows even if we already have a possible candidate
9133 for cursor position. Set row_end after all the row's glyphs have
9134 been produced, by looping over the glyphs. Record the position
9135 after EOL in it->eol_pos, and use it to set end_pos of the last
9136 row produced for a continued line.
9137 <Qright_to_left, Qleft_to_right>: New variables.
9138 (syms_of_xdisp): Initialize and staticpro them.
9139 (string_buffer_position_lim): New function.
9140 (string_buffer_position): Most of code moved to
9141 string_buffer_position_lim. Last argument and return value are
9142 now EMACS_INT; all callers changed.
9143 (set_cursor_from_row): Rewritten to support bidirectional text and
9144 reversed glyph rows.
bba3e508
SM
9145 (text_outside_line_unchanged_p, try_window_id):
9146 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9147 paragraph direction can be affected by the change.
9148 (append_glyph, append_composite_glyph)
9149 (produce_image_glyph, append_stretch_glyph): Set the
9150 resolved_level and bidi_type members of each glyph.
9151 (append_glyph): If the glyph row is reversed, prepend the glyph
9152 rather than appending it.
9153 (handle_stop_backwards): New function.
9154 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
9155 (reseat): call handle_stop_backwards to recompute prev_stop and
9156 base_level_stop for the new position.
9157 (handle_invisible_prop): Under bidi iteration, skip invisible text
9158 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9159 paragraph direction. Update IT->prev_stop after skipping
9160 invisible text.
9161 (move_it_in_display_line_to): New variables prev_method
9162 and prev_pos. Compare for strict equality in
9163 BUFFER_POS_REACHED_P.
9164 (try_cursor_movement): Examine all the candidate rows that occlude
9165 point, to return the best match. If rows are bidi-reordered
9166 and point moved backwards, back up to the row that is not a
9167 continuation line, and start looking for a suitable row from
9168 there.
9169
9170 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9171 rather than appending, if the glyph_row's reversed_p flag is set.
9172 Set the resolved_level and bidi_type members of each glyph.
9173
9174 * .gdbinit (pbiditype): New command.
9175 (pgx): Use it to display bidi level and type of the glyph.
9176 (pitx): Display some bidi information about the iterator.
9177 (prowlims, pmtxrows): New commands.
9178
32a8894e
DN
91792010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9180
9181 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9182 * s/usg5-4.h (LIBS_DEBUG):
9183 * s/irix6-5.h (C_DEBUG_SWITCH):
9184 * s/gnu-linux.h (LIBS_DEBUG):
9185 * s/darwin.h (LIBS_DEBUG):
9186 * s/bsd-common.h (LIBS_DEBUG):
9187 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9188 * m/iris4d.h (LIBS_DEBUG):
9189 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9190
9191 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9192 (LIBS_DEBUG): Remove definition.
9193
649dbf36
CY
91942010-03-27 Chong Yidong <cyd@stupidchicken.com>
9195
9196 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9197 Windows.
9198
cad4261f
YM
91992010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9200
9201 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9202 `connect' (Bug#5723).
9203
cd591dbc
HE
92042010-03-25 Helmut Eller <eller.helmut@gmail.com>
9205
9206 * process.c (Fmake_network_process): Call `select' for interrupted
9207 `connect' rather than creating new socket (Bug#5173).
9208
e867cb5d 92092010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
9210
9211 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9212
9213 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9214
9215 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9216
e867cb5d 92172010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
9218
9219 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9220 XLoadQueryFont.
9221
e867cb5d 92222010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
9223
9224 * coding.c (decode_coding_ccl): Fix previous change for the
9225 multibyte case.
fb608df3
KH
9226 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9227 case that the output buffer is fullfilled.
9228 (encode_coding): Setup ccl program here.
fbdc1721 9229
5845f0ed
DN
92302010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9231
814fb708
DN
9232 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9233
5845f0ed
DN
9234 Simplify LIBS_MACHINE definitions.
9235 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9236 * m/iris4d.h (LIBS_MACHINE): Likewise.
9237 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9238 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 9239 * s/netbsd.h: Remove commented out code.
5845f0ed 9240
b7064064
DN
92412010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9242
df7734b2
DN
9243 Remove dead code dealing with POSIX_SIGNALS.
9244 * atimer.c (set_alarm): Remove dead code, all USG systems define
9245 POSIX_SIGNALS.
9246 * data.c (arith_error): Likewise.
9247 * keyboard.c (input_available_signal, handle_user_signal)
9248 (interrupt_signal): Likewise.
9249 * process.c (sigchld_handler): Likewise.
9250 (create_process): Remove if 0 code. Remove HPUX conditional when
9251 !defined (POSIX_SIGNALS), it cannot be true.
9252 * syssignal.h: Remove USG5_4 and USG conditionals when
9253 !POSIX_SIGNALS, they cannot be true.
9254
b7064064
DN
9255 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9256 NO_SOCK_SIGIO, not used anymore.
9257
55da5ee3
DN
92582010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9259
0be96e3a
DN
9260 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9261 support vax on BSDs.
9262
55da5ee3
DN
9263 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9264 * s/aix4-2.h (ORDINARY_LINK): ... here.
9265
c0282183
AS
92662010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9267
82c3d67a
AS
9268 * Makefile.in (abs_builddir): Define.
9269 (bootstrap_exe): Use it.
9270 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 9271
3613edce
SM
92722010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9273
9274 * Makefile.in (bootstrap_exe): Use an absolute name.
9275
7f110ddc
DN
92762010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9277
22e87574
DN
9278 Remove support for old GNU/Linux using libc version 5.
9279 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
9280 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
9281
05a670e6
DN
9282 Consolidate redundant definitions in s/bsd-common.h.
9283 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9284 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9285 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
9286 doing it in all files that include this one.
9287 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9288 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9289 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9290 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9291 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9292 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9293 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9294 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9295 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9296
2968f561
DN
9297 Consolidate redundant definitions.
9298 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
9299 it's undefined in all files that include this one.
9300 (POSIX_SIGNALS): Define here instead of doing it in all files that
9301 include this one.
9302 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9303 (POSIX_SIGNALS): Do not define.
9304 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9305 (POSIX_SIGNALS): Do not define.
9306 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9307 (POSIX_SIGNALS): Do not define.
9308
15d25dc0
DN
9309 Remove support for old UNIX System V systems.
9310 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
9311 * s/usg-5-4-2.h: Remove.
9312
07e339e4
DN
9313 Remove support for Solaris on PPC and for old versions.
9314 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
9315 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
9316 that cancel each other.
9317 * s/sol2-3.h:
9318 * s/sol2-4.h:
9319 * s/sol2-5.h: Remove.
9320 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
9321 (NO_REMAP): Remove, unused.
9322 (UNEXEC): Move definition ...
9323 * s/aix4-2.h (UNEXEC): ... here.
9324
7f110ddc
DN
9325 * s/openbsd.h: Remove support for non-ELF and for systems that do
9326 not support shared libraries.
9327 * s/netbsd.h:
9328 * s/freebsd.h: Likewise.
9329
605f35cd
DN
93302010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9331
9332 Remove non-working support for lynxos 3.0.
9333 * s/lynxos.h: Remove file.
9334
9335 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
9336 COFF_BSD_SYMBOLS, nothing defines it anymore.
9337
aed71cf4
DN
93382010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9339
9340 Remove obsolete uses of HAVE_SHM.
9341 * emacs.c (standard_args):
9342 (Fdump_emacs):
9343 (syms_of_emacs): Remove code depending on HAVE_SHM.
9344
9345 * alloc.c: Remove HAVE_SHM dependent definition.
9346
9347 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
9348
aded53ff
GM
93492010-03-18 Glenn Morris <rgm@gnu.org>
9350
17284745
GM
9351 * emacs.c (USAGE4): Hard-code bug address.
9352 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
9353 (bug_reporting_address): Remove.
9354 (main): Don't call bug_reporting_address.
9355
aded53ff
GM
9356 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
9357 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
9358
303500aa
CY
93592010-03-15 Chong Yidong <cyd@stupidchicken.com>
9360
9361 * xfns.c (Fx_create_frame):
9362 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
9363 on left.
9364
cef3058f
CY
93652010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
9366
9367 * editfns.c (Fformat): Account for string precision when computing
9368 field width (Bug#5710).
9369
a647d59d
CY
93702010-03-12 Chong Yidong <cyd@stupidchicken.com>
9371
4fa42018
CY
9372 * xfns.c (Fx_create_frame): Set default to Qright.
9373
a647d59d
CY
9374 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
9375 all window systems.
9376
6da23aaa
EZ
93772010-03-12 Eli Zaretskii <eliz@gnu.org>
9378
a96f6398 9379 These changes remove termcap.c from the build on Posix platforms.
83d02def 9380 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
9381 (MSDOS_OBJ): ...to here.
9382 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
9383 now identical to when LIBS_TERMCAP is defined.
9384
9385 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9386
9387 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
9388
a96f6398 9389 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 9390
288f9fc0
CY
93912010-03-10 Chong Yidong <cyd@stupidchicken.com>
9392
9393 * Branch for 23.2.
9394
d48cd3f4
SM
93952010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9396
9397 Cleanup setup of gl_state in various parts of the code.
9398 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
9399 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
9400 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
9401 (skip_chars):
9402 * regex.c (regex_compile): Use it.
9403 (re_compile_pattern): Don't set gl_state.current_syntax_table since
9404 it's now set in regex_compile when/if we need it.
9405
618db430
SM
94062010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
9407
c0335e02
SM
9408 Make it possible to C-g in a tight bytecode loop again (bug#5680).
9409 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
9410 (QUIT): Use it to consolidate code and remove redundancy.
9411 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
9412
254c06a8
SM
9413 * regex.c (regex_compile): Setup gl_state as well.
9414
618db430
SM
9415 * syntax.c (skip_chars): Setup gl_state (bug#3823).
9416 (in_classes): Use CONSP before XCAR/XCDR.
9417
233f0c9f
CY
94182010-03-03 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * keymap.c (Fwhere_is_internal): Use Fequal to compare
9421 definitions, so that keyboard macros are correctly handled
9422 (Bug#5481).
9423
75f80e63
EZ
94242010-03-02 Eli Zaretskii <eliz@gnu.org>
9425
9426 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
9427 text that could be relocated inside the call to emacs_mule_char.
9428 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
9429 (CODING_DECODE_CHAR): Add a comment describing its purpose.
9430
dcfb9bc4
KH
94312010-03-02 Kenichi Handa <handa@m17n.org>
9432
fc9a17bc
KH
9433 * character.c (parse_str_as_multibyte): Fix handling of the
9434 multibyte form of raw-bytes.
9435 (str_as_multibyte): Likewise.
9436
dcfb9bc4
KH
9437 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
9438 form of raw-bytes.
9439
412c01b6
CY
94402010-02-28 Chong Yidong <cyd@stupidchicken.com>
9441
9442 * charset.c (load_charset_map_from_file)
9443 (load_charset_map_from_vector): Zero out allocated
9444 charset_map_entries before using them.
9445
df7e1ea0
AS
94462010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9447
9448 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9449
fe69a722
CY
94502010-02-27 Chong Yidong <cyd@stupidchicken.com>
9451
4ed28cf4
CY
9452 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9453 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 9454
7379cfce
KH
94552010-02-26 Kenichi Handa <handa@m17n.org>
9456
f88cc4d6
KH
9457 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9458
7379cfce
KH
9459 * xdisp.c (reseat_to_string): Fix previous change.
9460
cf2fdcfb
CY
94612010-02-26 David Reitter <david.reitter@gmail.com>
9462
9463 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9464 Lisp_Object (Bug#4736).
9465
cc6c7c75
KH
94662010-02-25 Kenichi Handa <handa@m17n.org>
9467
9468 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9469
32e737d7
JD
94702010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9471
9472 * xterm.c (XTflash): Move declarations before statements.
9473
9474 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9475 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9476 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9477 (xg_create_tool_bar): Remove unused variables.
9478 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 9479 (xg_create_frame_widgets): Remove variable grav.
32e737d7 9480
676cae9f
CY
94812010-02-21 Chong Yidong <cyd@stupidchicken.com>
9482
9483 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9484
886cc2b8
SM
94852010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9486
9487 * term.c (fatal): Add a final \n if needed (bug#5596).
9488
ddb2d8e2
CY
94892010-02-18 Chong Yidong <cyd@stupidchicken.com>
9490
9491 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9492
2a4f8d3d
GM
94932010-02-18 Glenn Morris <rgm@gnu.org>
9494
9495 * callint.c (Finteractive): Doc fix.
9496
ebaf11b6
KH
94972010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9498
886cc2b8
SM
9499 * coding.c (record_conversion_result):
9500 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
9501 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9502 memory allocation error.
9503
d0396581
KH
95042010-02-17 Kenichi Handa <handa@m17n.org>
9505
886cc2b8
SM
9506 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9507 Fix for the case that the output buffer is fullfilled.
d0396581
KH
9508 (decode_coding): Setup ccl program here. Keep looping when the
9509 decoder stopped because the output buffer is
9510 fullfilled (bug#5534).
9511
9512 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9513
98599f74
JD
95142010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9515
471e4f04 9516 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 9517 bug #5571.
886cc2b8 9518 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 9519 overdrawn.
98599f74 9520
182659ae
JD
95212010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9522
9523 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9524 doing_interact here.
9525 (ice_connection_closed): New function.
9526 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9527 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9528 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9529 returns I/O error.
9530 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9531 bug #5512.
9532
9be32c4e 95332010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9534
9535 * nsfont.m (nsfont_open): The system's value for the font descent
9536 is negative, so round it down to avoid clipping.
9537
a2f3eb19
CY
95382010-02-06 Chong Yidong <cyd@stupidchicken.com>
9539
9540 * charset.c (load_charset_map_from_file)
9541 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9542 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9543
3088147c
CY
95442010-02-05 Chong Yidong <cyd@stupidchicken.com>
9545
9546 * charset.c (load_charset_map_from_file): Allocate large
9547 charset_map_entries structure on the heap rather than the stack.
9548 (Bug#5526).
9549
b57d9029
KH
95502010-01-31 Kenichi Handa <handa@m17n.org>
9551
9552 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9553 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9554
c67d885b
CY
95552010-01-31 Chong Yidong <cyd@stupidchicken.com>
9556
9557 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9558 <deactivated@gmail.com> (Bug#3605).
9559
8fab2362
CY
95602010-01-31 David De La Harpe Golden <david@harpegolden.net>
9561
9562 * fileio.c (Frename_file): Correctly rename symlinks to
9563 directories (Bug#5496).
9564
cb2a62f2
CY
95652010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9566
9567 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9568
944c7a26
AS
95692010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9570
9571 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9572
c024ac08
CY
95732010-01-29 Chong Yidong <cyd@stupidchicken.com>
9574
9575 * frame.c (DEFAULT_ROWS): Change default to 35.
9576
9577 * xfns.c (x_default_font_parameter): Change default XFT font to
9578 monospace-10 (Bug#3643).
9579
af93af83
EZ
95802010-01-29 Eli Zaretskii <eliz@gnu.org>
9581
9582 * w32inevt.c (key_event): Remove unnecessary comparison of
9583 event->uChar.AsciiChar with 128.
9584
ca0eb708
CY
95852010-01-28 Chong Yidong <cyd@stupidchicken.com>
9586
b242dbfc
CY
9587 * fileio.c (Frename_file): Fix last change (Bug#5487).
9588
ca0eb708
CY
9589 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9590
9591 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9592
45d45af5
JD
95932010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9594
9595 * xfns.c (Fx_create_frame): Remove window size matching code from
9596 2010-01-15.
a73f9c9d 9597 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9598
7e233730
JR
95992010-01-27 Jason Rumney <jasonr@gnu.org>
9600
9601 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9602 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9603
86e893e3
KH
96042010-01-27 Kenichi Handa <handa@m17n.org>
9605
9606 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9607 pattern string (Bug#4209).
86e893e3 9608
8719abec
CY
96092010-01-27 David De La Harpe Golden <david@harpegolden.net>
9610
9611 * fileio.c (Frename_file): Call copy-directory and
9612 delete-directory for directories, in order to handle cross-device
9613 renaming (Bug#3353).
9614
844794c8
JD
96152010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9616
aa3e13b5 9617 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9618 sizes 24 and 10. Bug #3643.
844794c8 9619
bd4b5750
SM
96202010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9621
8dc1adf6 9622 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9623 * keymap.c (shadow_lookup): Add `remap' arg.
9624 (describe_map, describe_vector): Update calls to shadow_lookup.
9625 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9626 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9627 perform remapping during shadow_lookup check of remapped_sequences.
9628
285d07e2
CY
96292010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9630
9631 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9632 png_check_sig, which has been removed in libpng 1.4.
9633
c6d09b8d
CY
96342010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9635
9636 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9637 lacks this header file).
9638
3d782998
YM
96392010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9640
9641 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9642 as in Emacs 22.
9643
2aff7c53
YM
96442010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9645
9646 * lisp.h (make_pure_string): String pointer arg now points to const.
9647
9648 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9649 args now point to const.
9650
74327f7a
EZ
96512010-01-22 Eli Zaretskii <eliz@gnu.org>
9652
9653 * lread.c (Fload): Don't treat files without .elc extension as
9654 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9655 them. (bug#5303)
9656
4d1e6632
KH
96572010-01-20 Kenichi Handa <handa@m17n.org>
9658
9659 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9660 treat the source as actual byte sequence.
9661
1fdede8f
AM
96622010-01-19 Alan Mackenzie <acm@muc.de>
9663
9664 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9665 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9666 `signal_after_change_p' to `coherent_change_p', and make the
9667 invocation of `modify_region' conditional on it.
9668
67477f30
JD
96692010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9670
9671 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9672 for debug purpose.
9673 (syms_of_xsettings): Declare xft-settings.
9674
244b023e
CY
96752010-01-18 Chong Yidong <cyd@stupidchicken.com>
9676
9677 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9678
617364fe
CY
96792010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9680
9681 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9682
4fe22cdf
CY
96832010-01-16 Chong Yidong <cyd@stupidchicken.com>
9684
9685 * emacs.c (standard_args): Adjust arg priorities to reflect how
9686 they are processed in startup.el.
9687
e118d2be
AS
96882010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9689
9690 * Makefile.in (lisp, shortlisp): Update.
9691
523ae620
SM
96922010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9693
9694 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9695 code, link the new kboard into all_kboard before running Lisp code,
9696 and protect the new terminal with GCPRO (Bug#5365).
9697 (x_term_init): Remove unused var `atom'.
9698 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9699
f0d13888
JD
97002010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9701
9702 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9703 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9704 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9705 this. Bug #3643.
f0d13888 9706
cc320f07
KH
97072010-01-15 Kenichi Handa <handa@m17n.org>
9708
9709 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9710
7ffdf101
CY
97112010-01-15 Chong Yidong <cyd@stupidchicken.com>
9712
9713 * nsterm.m (Qnone): Define.
9714
9715 * nsfns.m (Qnone): Move definition to nsterm.m.
9716
d12bd917
KH
97172010-01-14 Kenichi Handa <handa@m17n.org>
9718
9719 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9720 systems.
9721
d9a7c140
KH
97222010-01-14 Kenichi Handa <handa@m17n.org>
9723
9724 Make auto-composition work on all buffers even if they are
9725 fundamental mode.
9726
9727 * composite.c (Vauto_composition_mode): New variable.
9728 (composition_compute_stop_pos): Check Vauto_composition_mode
9729 instead of Vauto_composition_function.
9730 (composition_adjust_point, Ffind_composition_internal): Likewise.
9731 (syms_of_composite): Declare Lisp variable
9732 "auto-composition-mode" here.
9733
63286bb2
CY
97342010-01-13 Chong Yidong <cyd@stupidchicken.com>
9735
9736 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9737 during call to vendor-specific-keysyms (Bug#5365).
9738
c2623ee7
YM
97392010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9740
9741 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9742 Call SIGNAL_THREAD_CHECK (Bug#5333).
9743
9744 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9745 Call SIGNAL_THREAD_CHECK.
9746
0b5397c2
SM
97472010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9748
9749 Try to fix bug#5314. This is probably not the final word, tho.
9750 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9751 recent-auto-save-p as a side-effect.
9752 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9753 * buffer.c (Fkill_buffer, reset_buffer):
9754 * editfns.c (Fsubst_char_in_region):
9755 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9756 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9757
dc954cb2
KH
97582010-01-13 Kenichi Handa <handa@m17n.org>
9759
9760 Display buffer name, etc. in mode line by composing correctly.
9761
9762 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9763 STRING is not nil.
0b5397c2 9764 (display_mode_element): Adjust for the change of
dc954cb2
KH
9765 decode_mode_spec and display_line.
9766 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9767 (display_string): Handle the case that STRING is non-null and
9768 LISP_STRING is not nil.
9769
0b5397c2
SM
9770 * xterm.c (x_draw_composite_glyph_string_foreground):
9771 Pay attention to s->face->overstrike.
dc954cb2
KH
9772
9773 * composite.c (composition_reseat_it): Don't check PT if STRING is
9774 non nil.
9775
4a00eaca
YM
97762010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9777
9778 * keyboard.c (read_char): Don't apply previous change when current
9779 buffer is unchanged by command execution.
9780
60abb287
JD
97812010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9782
9783 * keyboard.c (read_char): Return after executing from special map.
9784
893db5bc
GM
97852010-01-12 Glenn Morris <rgm@gnu.org>
9786
9787 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9788 bug-gnu-emacs rather than emacs-pretest-bug.
9789
4d03ece0
CY
97902010-01-11 Chong Yidong <cyd@stupidchicken.com>
9791
9792 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9793 initializing the Lisp variables that depend on them.
9794
1df47e38
YM
97952010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9796
9797 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9798 Clear areas that will not be updated after change of menu bar lines.
9799 Clear the menu bar window's current matrix when the window gets empty.
9800
2f1c6384
CY
98012010-01-09 Chong Yidong <cyd@stupidchicken.com>
9802
e398c61c
CY
9803 * intervals.h, textprop.c (extend_property_ranges): Return value
9804 and args changed. Discard properties that begin at or after the
9805 new end (Bug#5306).
9806
9807 * editfns.c (Fformat): Caller changed.
9808
e5a29a10
CY
9809 * nsterm.m (ns_set_default_prefs): Delete function.
9810 (syms_of_nsterm): Initialize ns_command_modifier,
9811 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9812 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9813
2f1c6384
CY
9814 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9815 position (Bug#4040).
9816
d427a9fa
EZ
98172010-01-09 Eli Zaretskii <eliz@gnu.org>
9818
9819 * editfns.c (Ffloat_time): Doc fix.
9820
21b9df2f
JD
98212010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9822
9823 * xfns.c (Fx_create_frame): Don't create frame larger than display
9824 by default bug#3643.
9825
4b00d3b1
YM
98262010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9827
9828 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9829 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9830 windows above internal border.
9831
9832 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9833 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9834 windows above internal border.
9835
9836 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9837 tool bar windows specially.
9838
9839 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9840
9841 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9842 specially.
9843 (XTflash): Take account of menu bar height.
9844
9845 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9846 specially.
9847
5075d853
JD
98482010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9849
ac146f82 9850 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9851 also be true before we can return early (bug #5339).
9852
474217c8
CY
98532010-01-06 David Reitter <david.reitter@gmail.com>
9854
9855 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9856 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9857 (Bug#3233).
9858
c0e6d47d
JD
98592010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9860
d0cf45b7
JD
9861 * font.c (font_open_entity): Enable chache and call cached_font_ok
9862 for the driver if defined.
9863 (QCuser_spec): New symbol.
9864 (font_spec_from_name): Save name as user-spec.
9865 (font_load_for_lface): Keep user-spec instead of name.
9866 (font_open_by_name): Save name as user-spec.
9867 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9868 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9869
9870 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9871 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9872 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9873
9874 * font.h (struct font_driver): Add cached_font_ok.
9875
c0e6d47d
JD
9876 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9877
7c583cd8
JD
98782010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9879
9880 * xterm.c (x_new_font): Move code for setting rows/cols before
9881 resizing ...
ac146f82 9882 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9883
9884 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9885 (xg_frame_resized, xg_frame_set_char_size):
9886 Call xg_clear_under_internal_border.
7c583cd8 9887 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9888
03f77f0a
CY
98892010-01-05 Chong Yidong <cyd@stupidchicken.com>
9890
9891 * keyboard.c (read_key_sequence): Catch keyboard switch after
9892 making a new tty frame (Bug#5095).
9893
2a1ef5be
KH
98942010-01-05 Kenichi Handa <handa@m17n.org>
9895
9896 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9897
e3eb1dae
SM
98982010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9899
9900 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9901 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9902 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9903
777013f2
MA
99042010-01-03 Michael Albinus <michael.albinus@gmx.de>
9905
9906 * dbusbind.c (xd_add_watch): Improve debug message.
9907 (xd_remove_watch): Improve debug message. If DATA is the session
9908 bus, unset D-Bus session environment.
9909 (Fdbus_init_bus): Pass the bus as argument to
9910 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9911
8932b1c2
CY
99122010-01-01 Chong Yidong <cyd@stupidchicken.com>
9913
87231e2c
CY
9914 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9915
4801c5fa
CY
9916 * lread.c (syms_of_lread): Make it clearer that these are the
9917 names of loaded files (Bug#5068).
9918
8932b1c2
CY
9919 * eval.c (run_hook_with_args): Handle the case where the global
9920 value has the obsolete single-function form (Bug#5026).
9921
11e3c684
CY
99222009-12-27 Chong Yidong <cyd@stupidchicken.com>
9923
9924 * minibuf.c (Fall_completions): Minor optimization.
9925
5b28ce35
EZ
99262009-12-26 Eli Zaretskii <eliz@gnu.org>
9927
5ce6e4f4
JB
9928 * .gdbinit (pgx): Fix display of composite glyphs.
9929 Display cmp.from and cmp.to as well.
9930 (pitx): Fix last change.
5b28ce35 9931
bcffff46
KH
99322009-12-25 Kenichi Handa <handa@m17n.org>
9933
9934 * composite.h (composition_adjust_point): Update prototype.
9935
9936 * composite.c (composition_reseat_it): Don't make a composition
9937 spanning over point.
9938 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9939 composable characters.
9940 (composition_adjust_point): New arg NEW_PT. Callers changed.
9941
9942 * keyboard.c (command_loop_1): Force redisplay if the last point
9943 was within a composition.
9944 (adjust_point_for_property): Don't adjust point for automatic
9945 composition when called after buffer modification.
9946
3f670e9a
EZ
99472009-12-19 Eli Zaretskii <eliz@gnu.org>
9948
5ce6e4f4
JB
9949 * .gdbinit (pitx): Don't use enum names, use their values.
9950 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9951 (pgx): Don't use enum names, use their values.
9952 (pitmethod): New helper command.
9953 (pitx): Use it to display iteration method.
9954 (pgrowit): New command.
9955
ad903955
EZ
9956 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9957
3f670e9a
EZ
9958 Update dependencies in Makefile.in.
9959
9960 * Makefile.in (alloc.o): Depend on termhooks.h.
9961 (atimer.o): Depend on blockinput.h.
9962 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9963 and frame.h.
9964 (callint.o): Depend on systime.h, coding.h, and composite.h.
9965 (callproc.o): Depend on buffer.h.
9966 (casefiddle.o): Don't depend on charset.h.
9967 (casetab.o): Depend on character.h.
9968 (ccl.o): Depend on composite.h.
9969 (chartab.o): Depend on ccl.h.
9970 (cm.o): Depend on dispextern.h.
9971 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9972 (coding.o): Don't depend on $(INTERVALS_H).
9973 (composite.o): Don't depend on dispextern.h explicitly (it's in
9974 $(INTERVALS_H)). Depend on ccl.h.
9975 (data.o): Depend on systime.h, coding.h, composite.h,
9976 dispextern.h, font.h, and ccl.h.
9977 (dired.o): Depend on composite.h.
9978 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9979 composite.h (it's in $(INTERVALS_H)).
9980 (doc.o): Depend on systime.h, coding.h, and composite.h.
9981 (editfns.o): Don't depend explicitly on dispextern.h.
9982 (emacs.o): Depend on frame.h and coding.h.
9983 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9984 (fileio.o): Depend on frame.h and commands.h. Don't depend
9985 explicitly on dispextern.h.
9986 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9987 composite.h.
9988 (fns.o): Don't depend on termhooks.h.
9989 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9990 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9991 coding.h, $(INTERVALS_H), window.h, xterm.h.
9992 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9993 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9994 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9995 fontset.h, ccl.h, and ftfont.h.
9996 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9997 (gtkutil.o): Depend on dispextern.h and composite.h.
9998 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9999 termhooks.h, and ccl.h.
10000 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10001 (intervals.o): Depend on systime.h and coding.h.
10002 (keyboard.o): Depend on composite.h and coding.h.
10003 (keymap.o): Depend on coding.h and frame.h.
10004 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10005 (macros.o): Depend on systime.h, coding.h, and composite.h.
10006 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10007 and atimer.h.
10008 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10009 dispextern.h explicitly.
0b5397c2
SM
10010 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10011 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
10012 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10013 (regex.o): Don't depend on charset.h.
10014 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10015 (search.o): Don't depend explicitly on composite.h.
10016 (sound.o): Depend on atimer.h and systime.h.
10017 (syntax.o): Don't depend explicitly on composite.h.
10018 (sysdep.o): Depend on coding.h and composite.h.
10019 (term.o): Depend on xterm.h and buffer.h.
10020 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10021 (textprop.o): Don't depend on dispextern.h explicitly.
10022 (undo.o): Depend on dispextern.h.
10023 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10024 dispextern.h and composite.h explicitly.
10025 (xdisp.o): Depend on ccl.h.
10026 (xfaces.o): Depend on coding.h and ccl.h.
10027 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10028 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10029 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10030 ftfont.h.
10031 (xgselect.o): New dependency.
10032 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10033 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10034 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10035 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10036 (xsmfns.o): Depend on frame.h and dispextern.h.
10037 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10038 sysselect.h.
10039
7a6f7fea
AS
100402009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10041
10042 * font.c (Fclear_font_cache): Pass correct cache argument to
10043 font_clear_cache.
10044
f4c21026
AS
100452009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10046
10047 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10048 twice.
10049
f7ab0997
CY
100502009-12-15 Chong Yidong <cyd@stupidchicken.com>
10051
10052 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10053 calling file-remote-p. Reported by Jim Meyering.
10054
fa8e045a
MA
100552009-12-15 Michael Albinus <michael.albinus@gmx.de>
10056
10057 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10058 avoid compiler warnings. (Bug #5217)
fa8e045a 10059
a63dba42
KH
100602009-12-14 Kenichi Handa <handa@m17n.org>
10061
10062 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10063 in 8-bit encoding.
10064
5ce6e4f4 100652009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10066
10067 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10068 tooltip windows.
10069
223e5fc6
JD
100702009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10071
36acb2a7
JD
10072 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10073 Xatom_net_window_type.
10074
10075 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10076 Xatom_net_window_type.
10077
b8f00677
JD
10078 * xterm.c (my_log_handler): New function.
10079 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10080 so we can filter out buggy messages. (Bug #5120).
b8f00677 10081
e5f0bc9a
JD
10082 * xterm.c (xg_scroll_callback): Parameter list changed,
10083 use parameter GtkScrollType to determine scroll/line/page.
10084 Only allow dragging if a button < 4 is grabbed (bug #5177).
10085 (xg_end_scroll_callback): New function.
10086 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10087 xg_create_scroll_bar.
10088
10089 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10090 (scroll_end_callback): Remove.
10091 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10092 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10093 bug #5177.
e5f0bc9a
JD
10094 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10095 bug #5177.
10096
10097 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10098 (xg_create_scroll_bar): Add GCallback end_callback.
10099
223e5fc6
JD
10100 * xftfont.c (QClcdfilter): New variable.
10101 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10102 (syms_of_xftfont): Initialize QClcdfilter.
10103
3c055b77
JD
101042009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10105
10106 * xsettings.c (struct xsettings): Add member seen.
10107 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10108 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10109 (apply_xft_settings): Only update Xft settings with what member seen
10110 indicates as new.
10111
05fe33ff
EZ
101122009-12-12 Eli Zaretskii <eliz@gnu.org>
10113
c4cc8b9a 10114 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10115 (struct glyph): Use EMACS_INT for charpos.
10116 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10117 region_beg_charpos, region_end_charpos,
10118 redisplay_end_trigger_charpos, and also for
10119 iterator_stack_entry.end_charpos and
10120 iterator_stack_entry.stop_charpos.
10121
e8d7886a
JD
101222009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10123
5ce6e4f4 10124 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10125 (xg_create_scroll_bar): Call scroll_end_callback on button release
10126 event (bug #5177).
10127 (xg_event_is_for_scrollbar): != replaced with ==.
10128
d0db2ec8
KH
101292009-12-12 Kenichi Handa <handa@m17n.org>
10130
10131 * ftfont.c (struct ftfont_info): New member matrix.
10132 (ftfont_open): Setup xftfont_info->matrix.
10133 (MFLTFontFT): New member matrix.
10134 (FLOOR, CEIL, ROUND): New macros.
10135 (ftfont_get_metrics): Handle matrix transformation.
10136 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10137
10138 * xftfont.c (struct xftfont_info): New member matrix.
10139 (xftfont_open): Setup xftfont_info->matrix.
10140
101412009-12-10 Kenichi Handa <handa@m17n.org>
10142
10143 * xdisp.c (append_space_for_newline): Consider face-remapping.
10144
2cc7b62f
AS
101452009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10146
b87dd913
AS
10147 * xsettings.c: Include "keyboard.h".
10148
eba5eb94
AS
10149 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10150
2cc7b62f
AS
10151 Fix implicit function declarations.
10152 * cmds.c: Include "frame.h".
10153 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10154 * frame.h: Move declaration of delete_frame outside of
10155 HAVE_WINDOW_SYSTEM.
10156
a4ef73c8
CY
101572009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10158
10159 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10160
10161 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10162 GTK builds.
10163
944a300c
AS
101642009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10165
10166 * unexelf.c (unexec): Don't search for .data twice.
10167
022eef62
CY
101682009-12-05 Chong Yidong <cyd@stupidchicken.com>
10169
426ac949
CY
10170 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10171 if push failed.
10172 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10173 of push_display_prop (Bug#5000).
10174
022eef62
CY
10175 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10176 value of font_list_entities (Bug#5085).
10177
be95bee9
JB
101782009-12-04 Juanma Barranquero <lekktu@gmail.com>
10179
10180 Fix `string-to-number' to deal consistently with integers and floats.
10181 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10182 trailing characters, not just whitespace.
10183 (read1): Pass new arg 0 to keep old behavior.
10184 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10185 trailing chars, as it is already done for integers. Doc fixes.
10186 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10187
24c2d7ce
EZ
101882009-12-04 Eli Zaretskii <eliz@gnu.org>
10189
0b5397c2
SM
10190 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10191 Delete unused enumeration value.
24c2d7ce 10192
7e694795
EZ
101932009-12-03 Eli Zaretskii <eliz@gnu.org>
10194
10195 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10196
84b31826
SM
101972009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10198
10199 * process.c (Fmake_network_process): Fix up the tests for
10200 "connectionless socket", so they DTRT for seqpacket sockets as well.
10201
f00c449b
SM
102022009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10203
10204 * process.c (Qseqpacket): New symbol.
10205 (HAVE_SEQPACKET): New macro.
10206 (Fmake_network_process): Accept new :type `seqpacket'.
10207 (init_process): Add `seqpacket' feature when applicable.
10208 (syms_of_process): Initialize Qseqpacket.
10209
8096a0ff
YM
102102009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10211
10212 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10213 if entity is Qnil.
10214
3e0de07f
SM
102152009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10216
10217 * print.c (print_preprocess): Preprocess the key_and_value table of
10218 hashtables, even tho they're "hidden" (bug#5082).
10219
abeafb2a
JD
102202009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10221
10222 * frame.c (frame_make_pointer_invisible)
10223 (frame_make_pointer_visible): Declare f before statements.
10224
4bf47195
EZ
102252009-11-28 Eli Zaretskii <eliz@gnu.org>
10226
10227 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10228 omitted dependencies on lisp.h.
10229
c525b3f2
JD
102302009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10231
ece2d4ed
JD
10232 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10233 is NULL.
10234
10235 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10236
10237 * frame.c (frame_make_pointer_invisible)
3e0de07f 10238 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
10239 frame.
10240
c525b3f2
JD
10241 * search.c (simple_search): Remove warning by making *p const.
10242
2f00e299
DN
102432009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10244
10245 * xdisp.c (power_letter): Remove duplicate const.
10246
084b049b
JD
102472009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10248
a1fadc6f
JD
10249 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10250
5ce6e4f4 10251 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
10252 defaults (bug #5025).
10253
28259cac
SM
102542009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10255
10256 * insdel.c (adjust_markers_for_delete): Move it in the
10257 right direction! (bug#4803)
10258
e8e14166
YM
102592009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10260
10261 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10262
10263 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10264
86677b58
GM
102652009-11-24 Glenn Morris <rgm@gnu.org>
10266
10267 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10268
581e51e8
JD
102692009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10270
cfc86c7a
JD
10271 * Makefile.in: Must create deps for ecrt0.o in its rule.
10272
581e51e8
JD
10273 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10274 because that is what Gtk+ font dialog understands.
10275
10276 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
10277 of Fcopy_sequence.
10278 (font_open_by_name): Put name given into QCname for font-object returned.
10279
10280 * frame.c (x_set_font): Save original font name as frame parameter
10281 font-parameter.
10282
10283 * xsettings.c (set_default_xft_settings): New function.
10284 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
10285 is found.
10286
8b264ecb
AS
102872009-11-22 Andreas Schwab <schwab@linux-m68k.org>
10288
10289 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
10290 searching backwards through multibyte buffer.
10291
872870b2
JD
102922009-11-21 Jan Djärv <jan.h.d@swipnet.se>
10293
10294 * xterm.c: #include xgselect.h.
10295 (x_initialize): Call xgselect_initialize.
10296
10297 * xsettings.c (something_changedCB): C++ comments => C comments.
10298 (init_gconf): Do not deal with any GLib file descriptors, xg_select
10299 does that now.
10300
10301 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
10302 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
10303 (scroll_bar_button_cb): Remove.
5ce6e4f4 10304 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
10305 event.
10306 (xg_create_scroll_bar): Don't bind button-press-event and
10307 button-release-event.
10308
10309 * process.c: Include xgselect.h if defined (USE_GTK) ||
10310 defined (HAVE_GCONF).
10311 (wait_reading_process_output): Call xg_select for the same condition.
10312
10313 * xgselect.c (xg_select): New function to better integrate with
10314 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
10315
10316 * xgselect.h: New file, declare xg_select, xgselect_initialize.
10317
10318 * Makefile.in (XOBJ): Add xgselect.o.
10319
62a6e103
AS
103202009-11-21 Andreas Schwab <schwab@linux-m68k.org>
10321
0b5397c2
SM
10322 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
10323 Remove ignored second argument. All callers changed.
62a6e103
AS
10324 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
10325 (RE_STRING_CHAR_AND_LENGTH): Likewise.
10326 * xdisp.c (string_char_and_length): Likewise.
10327
b0ca0f33
DN
103282009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10329
10330 * xterm.c (x_new_font):
10331 * print.c (print_object):
10332 * cmds.c (Fself_insert_command): Move declarations before statements.
10333
dd5a6279
CY
103342009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
10335
10336 * s/cygwin.h: Remove unneeded linker flags.
10337
4a8e097d
JD
103382009-11-20 Jan Djärv <jan.h.d@swipnet.se>
10339
0d1d0d26
JD
10340 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
10341
10342 * xsettings.h: Declare xsettings_get_system_font.
10343
10344 * xsettings.c (xsettings_get_system_font): New function.
10345 (init_gconf): No use initiating gconf unless we have Xft also.
10346 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
10347 HAVE_GCONF.
10348
4a8e097d
JD
10349 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
10350 add a blank entry so it doesn't collapse into nothing.
10351
8ab1650e
SM
103522009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10353
10354 * lread.c (Funintern): Comment out last change.
10355
82c602f0
RS
103562009-11-19 Richard Stallman <rms@gnu.org>
10357
10358 * lread.c (Funintern): Error if symbol is t or nil.
10359
87e32266
SM
103602009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10361
10362 * insdel.c (make_gap_larger): Don't make as many assumptions about the
10363 representation of Lisp integers.
10364 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10365
1b9ac145
AS
103662009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10367
10368 * lisp.h: Remove declaration of Ffont_get_system_font.
10369 * xfns.c: Move include of "xsettings.h".
10370 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
10371
dfb3c4c6
JD
103722009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10373
87e32266
SM
10374 * xsettings.c (something_changedCB, Ffont_get_system_font):
10375 Check use_system_font.
dfb3c4c6
JD
10376 (syms_of_xsettings): DEFVAR font-use-system-font.
10377
9370c1d8
AS
103782009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10379
25fe851a
AS
10380 * xfns.c (x_default_font_parameter): Remove dead assignment.
10381
9370c1d8
AS
10382 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
10383
637fa988
JD
103842009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10385
87e32266 10386 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 10387 not have FC_LCD_*. #define them if not there.
a6eb20d8 10388
87e32266 10389 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 10390
637fa988
JD
10391 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
10392
10393 * xterm.c (handle_one_xevent): Call xft_settings_event for
10394 ClientMessage, PropertyNotify and DestroyNotify.
10395 (x_term_init): If we have XFT, get DPI from Xft.dpi.
10396 Call xsettings_initialize.
10397
10398 * xftfont.c (xftfont_fix_match): New function.
10399 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
10400 Call xftfont_fix_match after XftFontMatch.
10401
10402 * xfont.c (xfont_driver): Initialize all members.
10403
87e32266
SM
10404 * xfns.c (x_default_font_parameter):
10405 Try font from Ffont_get_system_font.
637fa988
JD
10406 Do not get font from x_default_parameter if we got one from
10407 Ffont_get_system_font.
87e32266 10408 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
10409
10410 * w32font.c (w32font_driver): Initialize all members.
10411
10412 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
10413
10414 * lisp.h: Declare syms_of_xsettings.
10415
87e32266
SM
10416 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
10417 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
10418
10419 * ftfont.c (ftfont_filter_properties): New function.
10420
10421 * frame.c (x_set_font): Remove unused variable lval.
10422
87e32266 10423 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
10424
10425 * font.c (font_put_extra): Don't return if val is nil, it means
10426 boolean option is off.
10427 (font_parse_fcname): Collect all extra properties in extra_props
10428 and call filter_properties for all drivers with extra_props and
10429 font as parameter.
87e32266
SM
10430 (font_open_entity): Do not use cache, it does not pick up new
10431 fontconfig settings like hinting.
637fa988
JD
10432 (font_load_for_lface): If spec had a name in it, store it in entity.
10433
a73f9c9d 10434 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
10435
10436 * config.in: HAVE_GCONF is new.
10437
10438 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
10439 xsettings.o is new.
10440
5a942932
KH
104412009-11-17 Kenichi Handa <handa@m17n.org>
10442
10443 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
10444 back to the default font in case that no suitable font is found.
10445
b7c7a4d1
SM
104462009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10447
10448 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10449 Suggested by Chad Brown <yandros@mit.edu>.
10450 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10451
072f1e39
JD
104522009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10453
10454 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10455
5d1e70a2
AS
104562009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10457
87e32266 10458 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 10459
a53cfbe5
JD
104602009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10461
473a99b7
JD
10462 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10463 has a parent.
10464
a53cfbe5 10465 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 10466 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
10467
10468 * config.in: Generated (AUTO_DEPEND).
10469
f04bb9b2
MA
104702009-11-13 Michael Albinus <michael.albinus@gmx.de>
10471
b7c7a4d1 10472 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
10473 Vdbus_registered_functions_table, because it contains also
10474 properties. Fix docstring.
b7c7a4d1 10475 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 10476
8f11f7ec
SM
104772009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10478
10479 * alloc.c (mark_object): Don't reprocess marked strings.
10480 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10481 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10482
8a605fe8
KH
104832009-11-13 Kenichi Handa <handa@m17n.org>
10484
8f11f7ec 10485 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
10486 semantics of Vword_combining_categories.
10487 (Vword_combining_categories): Describe the slight change of the
10488 semantics.
10489
241c4680
EZ
104902009-11-13 Eli Zaretskii <eliz@gnu.org>
10491
10492 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10493
10494 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10495
5d58e44c
SM
104962009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10497
10498 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10499
5e13f9d3
JB
105002009-11-12 Juanma Barranquero <lekktu@gmail.com>
10501
10502 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10503
cf54c754
DR
105042009-11-11 David Reitter <david.reitter@gmail.com>
10505
10506 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10507 variables to fix 2009-11-09 change.
10508
a4ada374
DN
105092009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10510
91433552
DN
10511 * process.c (ifflag_def): Make flag_sym constant.
10512 (Fnetwork_interface_info): Use a constant pointer.
10513 (ifflag_table):
10514 * xfns.c (cursor_bits):
10515 * xdisp.c (power_letter):
10516 * termcap.c (speeds, esctab):
10517 * sysdep.c (baud_convert):
10518 * keyboard.c (lispy_accent_codes, modifier_names):
10519 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10520 (jpeg_format, tiff_format, gif_format, svg_format)
10521 (interlace_start, interlace_increment, gs_format):
10522 * gtkutil.c (separator_names):
10523 * fringe.c (swap_nibble):
10524 * fns.c (base64_value_to_char, base64_char_to_value):
10525 * fileio.c (make_temp_name_tbl):
10526 * coding.c (suffixes): Make constant.
10527
f4265f6c
DN
10528 * frame.c (make_initial_frame):
10529 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10530 build_string.
10531 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10532
04420943
DN
10533 * s/freebsd.h:
10534 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10535
0a5d24ae
DN
10536 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10537 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10538
a4ada374
DN
10539 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10540 * xterm.c (syms_of_xterm):
10541 * xfaces.c (syms_of_xfaces):
10542 * xdisp.c (syms_of_xdisp):
10543 * lread.c (syms_of_lread):
10544 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10545 build_string.
91433552 10546
a4ada374
DN
10547 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10548
af98fc7f
SM
105492009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10550
8ab1650e 10551 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10552
e90292a9
JD
105532009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10554
10555 * keyboard.h: Declare timer_check.
10556
10557 * keyboard.c (timer_check_2): New function that does what the old
10558 timer_check did.
10559 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10560 returned, i.e. don't return -1 with timers pending.
10561
10562 * process.c: Remove extern declaration of timer_check.
10563
10564 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10565 even if timer_check returned -1.
10566
af98fc7f
SM
10567 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10568 xg_dialog_data.
e90292a9
JD
10569 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10570 the event loop.
10571 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10572 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10573 Destroy the dialog after xg_dialog_run.
10574
045b83c0
SM
105752009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10576
10577 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10578
1fb99a3a
JD
105792009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10580
10581 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10582
04e452cb
JB
105832009-11-09 Juanma Barranquero <lekktu@gmail.com>
10584
10585 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10586
ef7417fd
SM
105872009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10588
10589 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10590 w32menu.c, and nsmenu.m.
10591 Simplify the obsolete case where position is nil.
10592 (cleanup_popup_menu): New function, moved from nsmenu.m.
10593 (struct skp): Remove slot `notreal'.
10594 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10595 adjust callers.
10596 (single_menu_item): Adjust call to parse_menu_item.
10597 (syms_of_menu): Defsubr x-popup-menu.
10598 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10599 (keymap_panes): Don't export any more.
10600 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10601 (xmenu_show): Declare.
10602 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10603 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10604 * keyboard.h (parse_menu_item): Update declaration.
10605 * xmenu.c (Fx_popup_menu): Remove.
10606 (syms_of_xmenu): Don't defsubr x-popup-menu.
10607 * w32menu.c (Fx_popup_menu): Remove.
10608 (syms_of_w32menu): Don't defsubr x-popup-menu.
10609 * nsmenu.m (cleanup_popup_menu): Remove.
10610 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10611 moved to menu.c's Fx_popup_menu.
10612 (Fx_popup_menu): Remove.
10613 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10614 menu_items (it's done in menu.c already).
10615
424d6179
SM
106162009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10617
10618 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10619 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10620
c0df13a6 106212009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10622
10623 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10624 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10625 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10626 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10627
2de9f71c
SM
106282009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 Let integers use up 2 tags to give them one extra bit and thus double
10631 their range.
10632 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10633 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10634 New macros.
10635 (enum Lisp_Type): Use them. Give explicit values.
10636 (Lisp_Type_Limit): Remove.
10637 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10638 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10639 Pay attention to USE_2_TAGS_FOR_INTS.
10640 (INTEGERP): Use LISP_INT_TAG_P.
10641 * fns.c (internal_equal): Simplify the default case.
10642 (sxhash): Use case_Lisp_Int.
10643 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10644 any more.
10645 (Ftype_of): Use case_Lisp_Int.
10646 (store_symval_forwarding): Take into account the fact that Ints can
10647 now have more than one tag.
10648 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10649 (buffer_slot_type_mismatch):
2de9f71c
SM
10650 * xfaces.c (face_attr_equal_p):
10651 * print.c (print_object):
10652 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10653 Use case_Lisp_Int.
10654
323637a2
EZ
106552009-11-06 Eli Zaretskii <eliz@gnu.org>
10656
7ac65b38
EZ
10657 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10658
323637a2
EZ
10659 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10660 warning.
10661
e511451f
JD
106622009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10663
10664 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10665
10666 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10667
10668 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10669 ButtonPressRelease and MotionNotify (bug#4870).
10670
5e2327cf
DN
106712009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10672
5adc433e
DN
10673 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10674
d67b4f80
DN
10675 * xterm.c (syms_of_xterm):
10676 * xselect.c (syms_of_xselect):
10677 * xmenu.c (syms_of_xmenu):
10678 * xfns.c (syms_of_xfns):
10679 * xfaces.c (syms_of_xfaces):
10680 * xdisp.c (syms_of_xdisp):
10681 * window.c (syms_of_window):
10682 * w32fns.c (syms_of_w32fns):
10683 * undo.c (syms_of_undo):
10684 * textprop.c (syms_of_textprop):
10685 * terminal.c (syms_of_terminal):
10686 * syntax.c (syms_of_syntax):
10687 * sound.c (syms_of_sound):
10688 * search.c (syms_of_search):
10689 * print.c (syms_of_print):
10690 * minibuf.c (syms_of_minibuf):
10691 * macros.c (syms_of_macros):
10692 * keymap.c (syms_of_keymap, initial_define_key)
10693 (initial_define_lispy_key):
10694 * keyboard.c (syms_of_keyboard):
10695 * insdel.c (syms_of_insdel):
10696 * image.c (syms_of_image):
10697 * fringe.c (syms_of_fringe):
10698 * frame.c (syms_of_frame):
10699 * fontset.c (syms_of_fontset):
10700 * fns.c (syms_of_fns):
10701 * fns.c (syms_of_fns):
10702 * fileio.c (syms_of_fileio):
10703 * fileio.c (syms_of_fileio):
10704 * eval.c (syms_of_eval):
10705 * doc.c (syms_of_doc):
10706 * dispnew.c (syms_of_display):
10707 * dired.c (syms_of_dired):
10708 * dbusbind.c (syms_of_dbusbind):
10709 * data.c (syms_of_data):
10710 * composite.c (syms_of_composite):
10711 * coding.c (syms_of_coding):
10712 * cmds.c (syms_of_cmds):
10713 * charset.c (define_charset_internal, syms_of_character):
10714 * ccl.c (syms_of_ccl):
10715 * category.c (syms_of_category, init_category_once):
10716 * casetab.c (syms_of_casetab):
10717 * casefiddle.c (syms_of_casefiddle):
10718 * callint.c (syms_of_callint):
10719 * bytecode.c (syms_of_bytecode):
10720 * buffer.c (keys_of_buffer, syms_of_buffer):
10721 * alloc.c (syms_of_alloc):
10722 * process.c (syms_of_process, init_process):
10723 * lread.c (syms_of_lread, init_obarray):
10724 * font.c (build_style_table):
10725 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10726 intern_c_string, calls to make_pure_string with
10727 make_pure_c_string. Use pure_cons instead of Fcons.
10728
5e2327cf
DN
10729 * process.c (socket_options): Make it const.
10730 (set_socket_option, init_process): Use a const pointer.
10731
10732 * lread.c (intern_c_string): New function.
10733 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10734 (defvar_int): Uset it. Make the name const char*.
10735
10736 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10737 (defvar_int): Update prototypes.
10738 (DEFUN, EXFUN): Support for prototypes is now required.
10739 (intern_c_string): New prototype.
10740 (struct Lisp_Subr): Make symbol_name constant.
10741
10742 * font.c (struct table_entry): Remove unused member. Make NAMES
10743 constant.
10744 (weight_table, slant_table, width_table): Make constant.
10745
10746 * emacs.c (struct standard_args): Make name and longname constant.
10747
10748 * character.h (DEFSYM): Use intern_c_string.
10749
a56eaaef
DN
107502009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10751
10752 * alloc.c (make_pure_c_string): New function.
10753
10754 * eval.c (Fautoload): Purecopy all arguments.
10755
f6a07420
KH
107562009-11-05 Kenichi Handa <handa@m17n.org>
10757
10758 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10759 the buffer in case of replace.
10760
5d28d4b1
DN
107612009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10762
10763 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10764
b349d111
SM
107652009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10766
d528b1ce
SM
10767 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10768 when applicable (bug#4851).
10769
b349d111
SM
10770 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10771 (P_): Support for prototypes is now required.
10772
c38eb027
CY
107732009-10-31 Chong Yidong <cyd@stupidchicken.com>
10774
10775 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10776 (Bug#4827).
10777
0405f8d9
EZ
107782009-10-30 Eli Zaretskii <eliz@gnu.org>
10779
d528b1ce 10780 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10781
ca0a881a
DN
107822009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10783
10784 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10785
d528b1ce
SM
10786 * lread.c (Fload): Purecopy the file name when building
10787 Vpreloaded_file_list.
ca0a881a 10788
47e0e0e4
JR
107892009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10790
10791 * w32fns.c (syms_of_w32fns): Change default value of
10792 w32-scroll-lock-modifier to nil. (Bug#2827)
10793
057bce6f
JB
107942009-10-26 Juanma Barranquero <lekktu@gmail.com>
10795
782a943e 10796 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10797
242bc74c
AS
107982009-10-26 Andreas Schwab <schwab@redhat.com>
10799
10800 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10801
522d013a
JB
108022009-10-26 Juanma Barranquero <lekktu@gmail.com>
10803
10804 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10805 For delta < 0, skip check that only makes sense when the mini-window
10806 is going to be enlarged. (Bug#4534)
10807
18060980
CY
108082009-10-25 Chong Yidong <cyd@stupidchicken.com>
10809
10810 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10811 string in menu maps (Bug#4471).
10812
fec8f0fe
CY
108132009-10-24 Chong Yidong <cyd@stupidchicken.com>
10814
10815 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10816 FRAME_NS_VIEW on terminal frames (Bug#4765).
10817
10d66ec0
AS
108182009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10819
1cae01f7
AS
10820 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10821 DBUS_TYPE_UINTnn separately to get proper sign extension.
10822
58a12889
AS
10823 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10824 can properly handle unsigned types.
d528b1ce 10825 (make_uid, make_gid): Remove.
58a12889 10826
987c9327
AS
10827 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10828 types again.
10829
522d013a 10830 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10831 (system_process_attributes): Likewise.
10832
905a9ed3
DN
108332009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10834
10835 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10836
10837 * eval.c (Fautoload): Purecopy the filename. Simplify.
10838
10839 * category.c (Fdefine_category): Purecopy docstring.
10840
a599b3e8
AS
108412009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10842
7b792fc9
AS
10843 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10844
a599b3e8
AS
10845 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10846
b35ac83e
CY
108472009-10-23 Chong Yidong <cyd@stupidchicken.com>
10848
10849 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10850 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10851 (Bug#4775).
10852
e8903e00
SM
108532009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10854
10855 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10856 (init_fileio_once):
10857 * lisp.h (init_fileio_once): Remove.
10858 * emacs.c (main): Don't call init_fileio_once.
10859
8f43cbf3
DN
108602009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10861
10862 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10863
26898943
AS
108642009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10865
10866 * doprnt.c (doprnt): Fix overflow check.
10867
5c646d5a
JD
108682009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10869
3132a7ea
JD
10870 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10871
5c646d5a
JD
10872 * xterm.h (x_wait_for_event): Declare it.
10873
10874 * xterm.c (pending_event_wait): New variable.
10875 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10876 see pending_event_wait.eventtype.
10877 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10878 (x_new_font): Call change_frame_size with new rows/columns before we
10879 try to resize the frame.
5c646d5a 10880 (x_wait_for_event): New function.
d528b1ce
SM
10881 (x_set_window_size_1): Don't change gravity unless change_gravity
10882 is set.
5c646d5a
JD
10883 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10884 don't change frame size, instead wait for the ConfigureNotify.
10885 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10886 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10887 (x_initialize): Initialize pending_event_wait.
10888
10889 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10890 size.
10891
10892 * widget.c (EmacsFrameSetValues): Add comment.
10893 (EmacsFrameSetCharSize): Just call x_set_window_size.
10894
10895 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10896 x_wait_for_event.
d528b1ce 10897 (flush_and_sync): Remove again.
5c646d5a
JD
10898 (xg_get_font_name): Suggest monospace if no previous font is known.
10899
e9c1637d
SM
109002009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10901
10902 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10903 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10904
5a72cccb
YM
109052009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10906
10907 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10908 processing pending events when event is filtered for input method.
ab04798f 10909 (Bug#3681)
5a72cccb 10910
2629aa37
JB
109112009-10-20 Juanma Barranquero <lekktu@gmail.com>
10912
10913 * fns.c: Add #endif accidentally removed in previous change.
10914
c3417a74
DN
109152009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10916
10917 * fns.c: Remove code for unsupported system: MAC_OS.
10918 * image.c: Likewise. Include setjmp.h.
10919
9685cef2
JD
109202009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10921
10922 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10923 pixel -1 (bug #4742).
10924
d7306fe6
DN
109252009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10926
019d2c4c
DN
10927 * process.c (create_pty): Remove conditionals for no longer
10928 supported systems: UNIPLUS and RTU.
10929
ee6bacd4
DN
10930 * xterm.c:
10931 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10932
d7306fe6
DN
10933 * alloc.c: Do not define struct catchtag.
10934 * eval.c: Move struct catchtag definition ...
10935 * lisp.h: ... here.
10936
10937 * image.c: Move png.h #include earlier to avoid warnings.
10938
10939 * xterm.c:
10940 * xsmfns.c:
10941 * xselect.c:
10942 * xrdb.c:
10943 * xmenu.c:
10944 * xftfont.c:
10945 * xfont.c:
10946 * xfns.c:
10947 * xfaces.c:
10948 * xdisp.c:
10949 * window.c:
10950 * widget.c:
10951 * w32xfns.c:
10952 * w32uniscribe.c:
10953 * w32term.c:
10954 * w32select.c:
10955 * w32reg.c:
10956 * w32proc.c:
10957 * w32menu.c:
10958 * w32inevt.c:
10959 * w32heap.c:
10960 * w32font.c:
10961 * w32fns.c:
10962 * w32console.c:
10963 * w32.c:
10964 * w16select.c:
10965 * vm-limit.c:
10966 * unexsol.c:
10967 * unexec.c:
10968 * unexcw.c:
10969 * unexaix.c:
10970 * undo.c:
10971 * tparam.c:
10972 * textprop.c:
10973 * terminfo.c:
10974 * terminal.c:
10975 * termcap.c:
10976 * term.c:
10977 * syntax.c:
10978 * sound.c:
10979 * sheap.c:
10980 * search.c:
10981 * scroll.c:
10982 * region-cache.c:
10983 * regex.c:
10984 * ralloc.c:
10985 * process.c:
10986 * print.c:
b024548b
DN
10987 * nsterm.m:
10988 * nsselect.m:
10989 * nsmenu.m:
10990 * nsimage.m:
10991 * nsfont.m:
10992 * nsfns.m:
d7306fe6
DN
10993 * msdos.c:
10994 * minibuf.c:
10995 * menu.c:
10996 * marker.c:
10997 * macros.c:
10998 * keymap.c:
10999 * keyboard.c:
11000 * intervals.c:
11001 * insdel.c:
11002 * indent.c:
11003 * gtkutil.c:
11004 * ftxfont.c:
11005 * ftfont.c:
11006 * fringe.c:
11007 * frame.c:
11008 * fontset.c:
11009 * font.c:
11010 * fns.c:
11011 * floatfns.c:
11012 * filelock.c:
11013 * fileio.c:
11014 * emacs.c:
11015 * editfns.c:
11016 * dosfns.c:
11017 * doprnt.c:
11018 * doc.c:
11019 * dispnew.c:
11020 * dired.c:
11021 * dbusbind.c:
11022 * data.c:
11023 * composite.c:
11024 * coding.c:
11025 * cmds.c:
11026 * cm.c:
11027 * chartab.c:
11028 * charset.c:
11029 * character.c:
11030 * ccl.c:
11031 * category.c:
11032 * casetab.c:
11033 * casefiddle.c:
11034 * callproc.c:
11035 * callint.c:
11036 * bytecode.c:
11037 * buffer.c:
11038 * atimer.c: Include setjmp.h. (Bug#4643)
11039
fd5f21e6
SM
110402009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11041
4c0354d7
SM
11042 Remove leftover table unibyte_to_multibyte_table.
11043 * character.c (unibyte_to_multibyte_table): Remove.
11044 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11045 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11046 * character.h (UNIBYTE_TO_CHAR): New macro.
11047 (MAKE_CHAR_MULTIBYTE): Use it.
11048 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11049 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11050 (message_dolog, set_message_1):
11051 * search.c (Freplace_match):
11052 * editfns.c (Fcompare_buffer_substrings):
11053 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11054 (concat):
11055 * insdel.c (copy_text, count_size_as_multibyte):
11056 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11057 * term.c (produce_glyphs):
11058 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11059 * regex.c (RE_CHAR_TO_MULTIBYTE):
11060 * cmds.c (internal_self_insert):
11061 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11062
fd5f21e6
SM
11063 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11064
4418646e
DN
110652009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11066
11067 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11068
35f5c1d2
JB
110692009-10-16 Juanma Barranquero <lekktu@gmail.com>
11070
11071 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11072
a0cd8f6b
AR
110732009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11074
11075 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11076 still needed under Tiger.
11077
11078 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11079
11080 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11081 __Apple__.
11082
11083 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11084
01a8d3fa
KH
110852009-10-15 Kenichi Handa <handa@m17n.org>
11086
11087 * print.c (print_object): Escape a symbol like "2E10" too.
11088
bf6c75c9 110892009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11090
11091 Cleanups and changes for 64-bit compile under Snow Leopard.
11092 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11093
11094 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11095
c5959062 11096 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11097 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11098 cast argument.
11099 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11100 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11101
11102 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11103
11104 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11105 where appropriate.
11106
11107 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11108 where appropriate.
6e4780c5
JB
11109 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11110 Use stringWithUTF8String.
bf6c75c9
AR
11111 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11112
6e4780c5
JB
11113 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11114 Add formal protocol mention to inheritance.
bf6c75c9
AR
11115 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11116
6e4780c5
JB
11117 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11118 Fix printf format.
bf6c75c9
AR
11119 (ns_query_color): Use CGFloat where appropriate.
11120 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11121 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11122 argument.
11123
3d87f118
AR
11124 * config.in (NS_HAVE_NSINTEGER): Drop.
11125
a95c8102
AR
11126 * dbusbind.c (dbus-method-return-internal)
11127 (dbus-method-error-internal): Use long format in printf, and cast
11128 argument.
11129
11130 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11131 in printf, and cast argument.
11132
6873acca 11133 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11134 cast argument.
11135
9ec6f100
GM
111362009-10-11 Glenn Morris <rgm@gnu.org>
11137
11138 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11139
5be883cd
JD
111402009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11141
11142 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11143 menu bar with a small width so it doesn't enlarge the frame.
11144
d7a39b51
JB
111452009-10-08 Juanma Barranquero <lekktu@gmail.com>
11146
11147 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11148
0c2b6f8e
GM
111492009-10-06 Glenn Morris <rgm@gnu.org>
11150
11151 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11152 SOME_MACHINE_LISP (this enters indirectly via DOC).
11153
e02131a2
EZ
111542009-10-05 Eli Zaretskii <eliz@gnu.org>
11155
11156 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11157
b4744254
EZ
111582009-10-04 Eli Zaretskii <eliz@gnu.org>
11159
11160 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11161 Doc fix.
11162
dbf64827
JB
111632009-10-03 Martin Rudalics <rudalics@gmx.at>
11164
11165 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11166
e9a0aef8
MA
111672009-10-02 Michael Albinus <michael.albinus@gmx.de>
11168
d528b1ce 11169 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
11170 used anymore outside fileio.c.
11171
11172 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11173
64eb2b56
JB
111742009-10-01 Juanma Barranquero <lekktu@gmail.com>
11175
11176 * lisp.h (Qdelete_directory_internal):
11177 Declare, instead of Qdelete_directory.
11178
11179 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11180
9d28c33e
SM
111812009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11182
11183 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11184
9d8f3bd9
MA
111852009-10-01 Michael Albinus <michael.albinus@gmx.de>
11186
9d28c33e 11187 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
11188 Fdelete_directory. It is not a command anymore. It has no file
11189 name handler.
11190
9694740b
SM
111912009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11192
11193 * xdisp.c (get_next_display_element): Use an enum in last change.
11194
748e162f
KH
111952009-09-28 Kenichi Handa <handa@m17n.org>
11196
9694740b 11197 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
11198 unibyte_display_via_language_environment in handling
11199 Vnobreak_char_display.
11200
17efd58d
AR
112012009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11202
11203 * nsterm.h (ns_app_name): New extern variable.
11204
11205 * nsterm.m (ns_app_name): New variable.
11206 (ns_term_init): Set and use it.
11207 (ns_term_shutdown): Use it.
11208
11209 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11210 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11211
11212 * nsfns.m (ns_set_name_iconic, ns_set_name)
11213 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11214 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11215
9694740b
SM
11216 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11217 Remove double-casting in client_data comparison.
31c2d412 11218
3208cb35
YM
112192009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11220
11221 * keyboard.c (make_lispy_event): Remember last wheel direction.
11222 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11223
b7d552d6
GM
112242009-09-26 Glenn Morris <rgm@gnu.org>
11225
11226 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11227 internal.elc. Add term/pc-win.elc.
11228 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11229 term/x-win.elc.
11230 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11231 term/w32-win.elc.
11232 (NS_SUPPORT): New.
11233 (lisp): Add NS_SUPPORT.
11234 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11235
4ff670a8
DR
112362009-09-25 David Reitter <david.reitter@gmail.com>
11237
11238 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11239 on Mac OS X 10.6+ (bug#4513).
11240
feabfb6c
JB
112412009-09-24 Juanma Barranquero <lekktu@gmail.com>
11242
11243 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
11244 some parts of Emacs code (like font selection) don't grok them.
11245 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 11246
de59072a
AS
112472009-09-24 Andreas Schwab <schwab@redhat.com>
11248
11249 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11250
a489517b
JB
112512009-09-24 Juanma Barranquero <lekktu@gmail.com>
11252
11253 * dired.c (Fdirectory_files): Fix typo in docstring.
11254
0592970c
AR
112552009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11256
11257 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11258 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11259 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11260 under GNUstep.
11261 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11262
11263 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11264 glyph advancement.
11265
48e8a88b
AR
112662009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11267
11268 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 11269 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
11270
11271 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11272 deleted (bug #4492).
11273
e14f0a78
AR
11274 * nsfont.m (Vns_reg_to_script): New lisp variable.
11275 (syms_of_nsfont): Declare it.
11276 (ns_registry_to_script): New function.
11277 (ns_get_req_script): Call it.
11278 (ns_findfonts): Don't give up on non-unicode registry.
11279
11280 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
11281
5b650faa
SM
112822009-09-20 Tom Tromey <tromey@redhat.com>
11283
11284 * eval.c (find_handler_clause): Make stack-trace-on-error work in
11285 batch mode (bug#4228).
11286
a489517b 112872009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
11288
11289 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 11290 carefully. (Bug #4339)
0bae4e09 11291
fcfe06f3
CY
112922009-09-18 Chong Yidong <cyd@stupidchicken.com>
11293
d798ba87 11294 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 11295
31642728
AR
112962009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11297
11298 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
11299 (main) [HAVE_NS]: Don't process --no-init-file option.
11300 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
11301
11302 * nsterm.h (ns_no_defaults): Remove.
11303
11304 * nsterm.m (ns_no_defaults): Remove.
11305 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
11306 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
11307 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
11308 don't update the NSWindow itself.
bba3e508
SM
11309 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
11310 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
11311
11312 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
11313 ns_use_qd_smoothing.
11314
11315 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
11316 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 11317 (x-close-connection): Drop PSFlush() under OS X.
a489517b 11318 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 11319
8686ac71
JB
113202009-09-17 Juanma Barranquero <lekktu@gmail.com>
11321
11322 * emacs.c (inhibit_x_resources): New variable.
11323 (main) [HAVE_NS]: Don't process --quick command line option.
11324 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
11325
11326 * lisp.h (inhibit_x_resources): Declare it extern.
11327
11328 * w32reg.c (x_get_string_resource):
11329 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
11330
e227ba05
EZ
113312009-09-17 Eli Zaretskii <eliz@gnu.org>
11332
362654a6
JB
11333 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
11334 Add lisp/term/internal.elc.
e227ba05 11335
742d40e8
SM
113362009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11337
11338 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
11339 (bug#4461).
11340
005bd5a2
DN
113412009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
11342
11343 * puresize.h (BASE_PURESIZE): Increase to 1290000.
11344
11345 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
11346 (OBJECTS_MACHINE): Remove, unused.
11347
f9af9719
SM
113482009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
11349
11350 * frame.c (x_get_resource_string): Remove unused.
11351
0307c7d2
JD
113522009-09-15 Jan Djärv <jan.h.d@swipnet.se>
11353
11354 * xterm.c (x_new_font): Call change_frame_size before calling
11355 x_set_window_size, in case frame size won't change.
11356
11357 * frame.c (x_set_font): Remove dead code.
11358
428b13d6
SM
113592009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
11360
11361 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
11362
5766c380
SM
113632009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11364
11365 * lread.c (Fload): Don't output a message after loading an obsolete
11366 package any more (done in Lisp now).
11367
2fd0161b
CY
113682009-09-12 Chong Yidong <cyd@stupidchicken.com>
11369
11370 * fns.c (syms_of_fns): Doc fix (Bug#4227).
11371
bc5e75b6
SM
113722009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * keymap.c (Fwhere_is_internal): Use nconc2.
11375
c31c985e
AM
113762009-09-11 Alan Mackenzie <acm@muc.de>
11377
11378 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
11379 batch mode.
11380
78012bd2
AS
113812009-09-11 Andreas Schwab <schwab@linux-m68k.org>
11382
11383 * xdisp.c (display_mode_element): Detect cycles.
11384
9d889332
SM
113852009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11386
11387 * keymap.c (where_is_internal): Don't erroneously return nil right after
11388 filling the cache.
11389 (where_is_internal_1): Fix up typo.
11390
7ab5d780
GM
113912009-09-11 Glenn Morris <rgm@gnu.org>
11392
11393 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
11394 share a common doc-string.
11395
5238a749
SM
113962009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11397
66d77eda
SM
11398 * keymap.c (get_keymap): Return the actual keymap symbol rather than
11399 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
11400
5238a749
SM
11401 * keymap.c (QCadvertised_binding): New constant.
11402 (syms_of_keymap): Initialize it.
11403 (Fwhere_is_internal): Try and use bindings from :advertised-binding
11404 if applicable.
11405
19f48442
SM
114062009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11407
50d4ba39
SM
11408 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
11409 (parse_menu_item): Streamline since bindings are recomputed all the
11410 time anyway. Don't bother checking Vdefine_key_rebound_commands any
11411 more and don't support lmenu's menu-alias any more either.
11412
a88a5372
SM
11413 * keymap.c (where_is_internal_data): Make noindirect a boolean.
11414 (where_is_internal): Strip it down to only traverse the keymaps.
11415 Move the cache handling from Fwhere_is_internal to here.
11416 (Fwhere_is_internal): Move the handling of remapping and the choice of
11417 the best binding from where_is_internal to here.
11418 Unify the cached/noncached paths, so remapping is also handled
11419 correctly when the cache is used, and so the cache can be used to
11420 speed up remap-handling when applicable.
11421 Give preference to non-remapped bindings.
11422 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
11423 non-remapped bindings.
11424 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
11425 command remapping.
11426
19f48442
SM
11427 * xdisp.c (display_mode_element): Move list length limit from 50 to
11428 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
11429
599498c3 114302009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
11431
11432 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
11433
f9b7b5ac
SM
114342009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
11435
a53af587
JB
11436 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
11437 (Bug#4334)
11438
f9b7b5ac
SM
11439 * keymap.c (where_is_internal): Filter out shadowed remappings.
11440 Assume that where_is_internal returns unshadowed bindings to simplify
11441 the code and get rid of the gotos. Use ASIZE.
11442
04f4b72d
JD
114432009-09-04 Jan Djärv <jan.h.d@swipnet.se>
11444
4da146f2
JD
11445 * xterm.c (x_focus_changed): If we get a focusout and pointer
11446 is invisible, make it visible.
11447
04f4b72d
JD
11448 * xterm.h: Remove condition for declaration of
11449 x_*_window_to_frame.
11450
7cef7ce3
SM
114512009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11454 initial terminal as well.
11455
a54fa5b7
JD
114562009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11457
11458 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 11459 x_menubar_window_to_frame.
a54fa5b7 11460
50426a04 11461 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
11462 (XTmouse_position): Do not return valid positions
11463 for clicks in the menubar and the toolbar for Gtk+.
11464
11465 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11466 if the widget for the event has the same top level as a frame,
11467 return the frame.
11468 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11469 internal windows, bug #4122.
11470 (x_non_menubar_window_to_frame): Remove.
11471
5a021dd0
GM
114722009-09-02 Glenn Morris <rgm@gnu.org>
11473
11474 * buffer.c (default-major-mode): Move most of the doc from here...
11475 (major-mode): ... to here.
11476
548fe2f3
NR
114772009-08-30 Nick Roberts <nickrob@snap.net.nz>
11478
11479 * process.c (wait_reading_process_output): Keep the descriptor
11480 when pty is used by a non-child process, e.g., in I/O buffer of
11481 GDB this allows inferior to be restarted.
11482
e0840eef
EZ
114832009-08-29 Eli Zaretskii <eliz@gnu.org>
11484
11485 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11486 both branches into one.
11487
82e98df4
SM
114882009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11489
11490 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11491 (main): Use enable-multibyte-characters rather than
11492 default-enable-multibyte-characters. Output a warning message when
11493 running a unibyte session.
11494
890617cb
YM
114952009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11496
11497 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11498 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11499 (copy_data_segment): Also copy __program_vars section.
11500 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11501 (dump_it) [LC_DYLD_INFO]: Use it.
11502
11503 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11504
e7adeadc
EZ
115052009-08-28 Eli Zaretskii <eliz@gnu.org>
11506
11507 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11508 $(SRC)/buildobj.h.
ef1b0ba7 11509 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
11510 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11511 $(SRC)/buildobj.h.
11512 (clean): Add buildobj.h.
11513
3ed8bbdc
TZ
115142009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11515
11516 * print.c (print_object): Set escapeflag to 1 when printing
11517 hashtable keys and values.
11518
155a6764
SM
115192009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * lread.c (read_integer): Use doubles (and potentially return a float
11522 number) as we do in string-to-number.
11523 (read1): Use strtol to read integers, signal errors on strtol's
11524 overflow and use floats if strtol's output is too large for
11525 Elisp integers.
11526
877610de
EZ
115272009-08-27 Eli Zaretskii <eliz@gnu.org>
11528
11529 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11530 (make-buildobj-SH): Fix last change.
11531 (SRC): Move to before where it's first used.
11532
ef73e7be
KH
115332009-08-27 Kenichi Handa <handa@m17n.org>
11534
550c8289
KH
11535 * process.c (send_process): Use encode_coding_object instead of
11536 encode_coding_string to perform eol-conversion even if the string
11537 is unibyte.
11538
60afa08d
KH
11539 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11540 character.
11541
ef73e7be 11542 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11543 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11544
7b3a82d7
DN
115452009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11546
5654bf63
DN
11547 * callproc.c (Fcall_process): Remove always true #if.
11548
7b3a82d7
DN
11549 * lisp.h: Replace #if 0 code for checking with text pointing to
11550 the --enable-checking configure flag.
11551
11552 * emacs.c (main): Mention the --enable-profiling configure flag
11553 instead of using CFLAGS.
11554
878bde49
KR
115552009-08-26 Ken Raeburn <raeburn@raeburn.org>
11556
11557 * Makefile.in (buildobj.h): New target.
11558 (doc.o): Depend on it.
11559 (temacs${EXEEXT}): Don't generate buildobj.lst.
11560 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11561 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11562 ($(BLD)/doc.$(O)): Depend on it.
11563 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11564 provided by Eli Zaretskii.)
11565 ($(TEMACS)): Don't generate buildobj.lst.
11566 * doc.c: Include buildobj.h.
11567 (buildobj): New static variable.
11568 (Fsnarf_documentation): Use it, instead of opening and reading
11569 buildobj.lst.
11570
1574224c
MA
115712009-08-25 Michael Albinus <michael.albinus@gmx.de>
11572
11573 * dbusbind.c (Fdbus_call_method)
11574 (Fdbus_call_method_asynchronously): Use English numeric format for
11575 timeout values in doc string.
11576
d9da2f45
KH
115772009-08-25 Kenichi Handa <handa@m17n.org>
11578
ef73e7be
KH
11579 * alloc.c (mark_char_table): New function.
11580 (mark_object): Use mark_char_table for a char-table.
11581
d9da2f45
KH
11582 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11583 (CHAR_TABLE_REF): Use it.
11584
c8edcc01
KR
115852009-08-23 Ken Raeburn <raeburn@raeburn.org>
11586
11587 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11588 before invoking the newly build emacs to check for load-path
11589 shadowing.
11590
7763401b
GM
115912009-08-22 Glenn Morris <rgm@gnu.org>
11592
11593 * Makefile.in (bootstrap_exe): New variable.
11594 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11595 Use ${bootstrap_exe}.
11596
729eadda
EZ
115972009-08-22 Eli Zaretskii <eliz@gnu.org>
11598
11599 * coding.h (encode_coding_string): Don't encode unibyte strings.
11600 (Bug#4047)
11601
eb4c6ace
MA
116022009-08-22 Michael Albinus <michael.albinus@gmx.de>
11603
11604 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11605
11606 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11607 intended as hotfix only.
11608 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11609
36e34d1b
AR
116102009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11611
11612 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11613 change, and clean up loose ends in the code left by it.
11614 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11615 yet another X11 format (rgb:r/g/b) for compatibility.
11616 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11617 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11618
f983eb8a
SM
116192009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11620
11621 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11622
3f56d3c6
MA
116232009-08-20 Michael Albinus <michael.albinus@gmx.de>
11624
11625 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11626 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11627 (xd_initialize, xd_pending_messages): Check, whether
11628 $DBUS_SESSION_BUS_ADDRESS is set.
11629
fb641d68
YM
116302009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11631
11632 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11633
11634 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11635
cf59a374
GM
116362009-08-20 Glenn Morris <rgm@gnu.org>
11637
11638 * emacs.c (system-type): Doc fix.
11639
1373f3be
SM
116402009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11643 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11644
058ed861
MA
116452009-08-18 Michael Albinus <michael.albinus@gmx.de>
11646
1373f3be
SM
11647 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11648 New functions.
058ed861
MA
11649 (xd_initialize): Revert change from 2009-08-16.
11650
563a866e 116512009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11652
11653 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11654 font-group vector, return nil.
5fc05db0 11655
e42bdf01
CY
116562009-08-17 Chong Yidong <cyd@stupidchicken.com>
11657
11658 * process.c (status_notify): Don't perform redisplay.
11659 (Fdelete_process, list_processes_1, process_send_signal):
11660 Expliticly perform redisplay.
11661 (wait_reading_process_output): Always check process status, but
11662 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11663
4230ab74
KR
116642009-08-17 Ken Raeburn <raeburn@raeburn.org>
11665
1373f3be 11666 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11667 (XFLOAT_INIT): New macro for storing a float value.
11668 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11669 * fns.c (sxhash): Copy out the value of a float in order to
11670 examine its bytes.
11671 * dbusbind.c (xd_append_arg): Likewise.
11672
4230ab74
KR
11673 * emacs.c (main): Don't call syms_of_data twice.
11674
a0645cdd
MA
116752009-08-16 Michael Albinus <michael.albinus@gmx.de>
11676
11677 * dbusbind.c (xd_initialize): Add connection file descriptor to
11678 input_wait_mask, in order to let select() detect, whether a new
11679 message has been arrived.
ca4f31ea 11680 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11681
485db0ba
MA
116822009-08-15 Michael Albinus <michael.albinus@gmx.de>
11683
1373f3be
SM
11684 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11685 New functions.
485db0ba
MA
11686
11687 * lisp.h (xd_pending_messages): Declare.
11688
11689 * keyboard.c (readable_events): Call xd_pending_messages.
11690
b5b98ff4
CY
116912009-08-15 Chong Yidong <cyd@stupidchicken.com>
11692
1373f3be 11693 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11694
f8354c6e
CY
11695 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11696
b5b98ff4
CY
11697 * buffer.c (set_buffer_internal_1)
11698 (swap_out_buffer_local_variables): Check for unbound local
11699 variables (Bug#4138).
11700
8b9fc636
EZ
117012009-08-14 Eli Zaretskii <eliz@gnu.org>
11702
11703 * process.c (create_pty): Fix last change.
11704
ce959360
CY
117052009-08-13 Chong Yidong <cyd@stupidchicken.com>
11706
11707 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11708 (xbm_load_image): Caller changed.
64b807c9 11709 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11710
c7baf7e9
NR
117112009-08-13 Nick Roberts <nickrob@snap.net.nz>
11712
11713 * process.c (create_pty): New function.
11714 (Fstart_process): Use it to allow Emacs to just associate a pty
11715 with the buffer. See associated change in gdb-mi.el.
11716 (list_processes_1): Deal with no program name.
11717 (start_process_unwind): Use pid == -2 to mean no process.
11718
1ac9108a
SM
117192009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11720
11721 * cmds.c (nonundocount): New global variable.
11722 (keys_of_cmds): Initialize it.
11723 (Fself_insert_command): Use it to combine upto 20 sequential chars
11724 into a single undo entry, just like the Qself_insert_command code in
11725 keyboard.c does.
11726 Call frame_make_pointer_invisible, also like the Qself_insert_command
11727 code in keyboard.c does.
11728 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11729 than its own local replacement for it.
11730
e267324c
KR
117312009-08-10 Ken Raeburn <raeburn@raeburn.org>
11732
1ac9108a 11733 * fns.c (concat): Don't re-set string length to its current value.
77437343 11734
1ac9108a
SM
11735 * coding.h (decode_coding_string, encode_coding_string):
11736 Use SBYTES macro.
f0bed503 11737
1ac9108a 11738 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11739 (doprnt): Merge with doprnt1, discarding lispstrings code.
11740 * lisp.h (doprnt_lisp): Don't declare.
11741
416e006d
JL
117422009-08-07 Juri Linkov <juri@jurta.org>
11743
11744 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11745
6f7d5780
DN
117462009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11747
11748 * print.c (syms_of_print): Undo previous change.
11749
f19a0f5b
TZ
117502009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11751
11752 * lread.c (read1, syms_of_lread): Read hashtables back from the
11753 readable format.
11754
11755 * print.c (print_preprocess, print_object): Print hashtables fully
11756 and readably.
11757 (syms_of_print): Provide 'hashtable-print-readable.
11758
b9173dc2
AR
117592009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11760
11761 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11762 no family set.
11763 (nsfont_open): Handle case when entity has no family.
11764
1586503c
AR
117652009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11766
11767 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11768 element, not a list, for match case.
11769
087048cd
KH
117702009-07-28 Kenichi Handa <handa@m17n.org>
11771
11772 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11773 rigidly.
11774
11775 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11776 font_parse_xlfd. Check font properties more rigidly.
11777
780c2506
DN
117782009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11779
31fd7c5c
JB
11780 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11781 bsd-common.h.
780c2506 11782
a8c0cc18
KH
117832009-07-27 Kenichi Handa <handa@m17n.org>
11784
11785 * xfaces.c (face_with_height): Call font_clear_prop.
11786
4fbe2306
CY
117872009-07-26 Chong Yidong <cyd@stupidchicken.com>
11788
111d9af3
CY
11789 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11790
11791 * xterm.c (x_term_init): Use Qx.
11792
4fbe2306
CY
11793 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11794
1ac9108a 11795 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11796 (ns_get_color): Revert 2009-07-16 change.
11797
beb0b7f9
EZ
117982009-07-25 Eli Zaretskii <eliz@gnu.org>
11799
11800 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11801 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11802
2baf5e76
KR
118032009-07-25 Ken Raeburn <raeburn@raeburn.org>
11804
1ac9108a
SM
11805 * coding.h (decode_coding_string, encode_coding_string):
11806 Use SCHARS macro.
8890e5f5 11807
2baf5e76 11808 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11809 (load_depth): Delete.
2baf5e76
KR
11810 (Qload_in_progress): New variable.
11811 (load_unwind): Don't reference load_depth or load_in_progress.
11812 (Fload): Likewise; specbind Qload_in_progress instead.
11813 (init_lread): Don't initialize load_depth.
11814 (syms_of_lread): Initialize and protect Qload_in_progress.
11815
1395c6f5
AR
118162009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11817
11818 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11819
4e2f36cf
AR
118202009-07-23 Yavor Doganov <yavor@gnu.org>
11821
11822 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11823
5dd9a6f7
AR
118242009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11825
11826 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11827 Bugs 3792, 3720, 2402.
11828 (ns_lookup_indexed_color): Check for bad index.
11829 (ns_index_color): Init unused slot to 0.
11830 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11831 Bug 3714, possibly 3082.
5dd9a6f7 11832
c902b920
JR
118332009-07-22 Jason Rumney <jasonr@gnu.org>
11834
1ac9108a
SM
11835 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11836 Position IME window at cursor (Bug#2570).
c902b920
JR
11837 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11838 (globals_of_w32fns): Dynamically load functions required above.
11839
11840 * w32term.c (w32_draw_window_cursor): Send message to reposition
11841 any IME window.
11842
090101cf
CY
118432009-07-21 Chong Yidong <cyd@stupidchicken.com>
11844
11845 * fileio.c: Revert 2009-07-16 changes.
11846 (Vauto_save_include_big_deletions): New variable.
11847 (Fdo_auto_save): Disable auto-save only if
11848 auto-save-include-big-deletions is nil.
11849
e6583e3d
CY
118502009-07-21 Chong Yidong <cyd@stupidchicken.com>
11851
11852 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11853 the overflowed pixels into account (Bug#3879).
11854
ece435a5
KR
118552009-07-21 Ken Raeburn <raeburn@raeburn.org>
11856
11857 * lread.c (load_depth): New variable.
11858 (Fload, load_unwind, init_lread): Set it to the load recursion
11859 depth; set load_in_progress as a simple boolean based on the
11860 current load_depth. (Bug#3892)
11861
40b2d973
AR
118622009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11863
11864 * nsfont.m (ns_has_attribute): Remove.
11865 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11866
10be7e0d
JL
118672009-07-18 Juri Linkov <juri@jurta.org>
11868
11869 * process.c (Fset_process_query_on_exit_flag): Mention killing
11870 a buffer in docstring.
11871
fa055055
KH
118722009-07-17 Kenichi Handa <handa@m17n.org>
11873
11874 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11875
042f7b69
YM
118762009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11877
11878 * nsfns.m (Fns_set_alpha): Remove function.
11879 (syms_of_nsfns): Don't defsubr it.
11880
11881 * nsterm.m (ns_get_color): Remove incompatible color formats.
11882 (ns_color_to_lisp): Generate #rrggbb color format string.
11883
4be941e3
RS
118842009-07-16 Richard Stallman <rms@gnu.org>
11885
11886 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11887 (Fset_buffer_auto_saved): Handle save_length = -2.
11888
4e6b227d
CY
118892009-07-16 Chong Yidong <cyd@stupidchicken.com>
11890
11891 * xterm.c (Qx_gtk_map_stock): New var.
11892
11893 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11894 of calling intern each time.
11895
a1856973
YM
118962009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11897
11898 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11899 does tiling.
11900
11901 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11902
497e54d8
KH
119032009-07-14 Kenichi Handa <handa@m17n.org>
11904
72d36834
KH
11905 * font.c (font_vconcat_entity_vectors): New function.
11906 (struct font_sort_data): New member font_driver_preference.
11907 (font_compare): Check font_driver_preference.
11908 (font_sort_entities): The format of the first argument changed.
11909 (font_delete_unmatched): Likewise.
11910 (font_list_entities): The return type changed.
11911 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11912 (font_find_for_lface): Adjuste for the above changes.
11913 Don't suppress the checking of C even if the repertory supports it.
11914 (Flist_fonts): Adjust for the above changes.
72d36834 11915
1ac9108a
SM
11916 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11917 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11918 Reject a font who has adstyle property that is different from a
11919 langname derived from registry property.
1ac9108a 11920 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11921
b6046155
EZ
119222009-07-13 Eli Zaretskii <eliz@gnu.org>
11923
11924 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11925 local copy of dirfilename.
11926
fb6b6049
KH
119272009-07-13 Kenichi Handa <handa@m17n.org>
11928
e2402a5e
KH
11929 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11930 against max_char.
11931
fb6b6049
KH
11932 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11933 calling XSYMBOL (sym).
11934
65156807
EZ
119352009-07-11 Eli Zaretskii <eliz@gnu.org>
11936
1ac9108a
SM
11937 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11938 New function.
11939 (directory_files_internal) [WINDOWSNT]:
11940 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11941 the filesystem of the directory is fast or slow.
11942
11943 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11944 file name.
11945 (is_slow_fs): New function.
11946 (stat): Use it to determine whether to issue more system calls to
11947 get accurate file attributes, when w32-get-true-file-attributes is
11948 `local'.
11949
e0ab5fcf
JD
119502009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11951
11952 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11953 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11954 parameter font-parameter as default to the font dialog.
11955
784ceded
KH
119562009-07-10 Kenichi Handa <handa@m17n.org>
11957
11958 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11959
fb8edc0b
EZ
119602009-07-09 Eli Zaretskii <eliz@gnu.org>
11961
1ac9108a 11962 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11963
fb8edc0b
EZ
11964 * w32.c (stat): Treat UNC file names as residing on remote
11965 drives. (Bug#3542)
11966
635c75b1
KH
119672009-07-09 Kenichi Handa <handa@m17n.org>
11968
11969 * fontset.c (fontset_find_font): Fix previous change.
11970
c1d5ce94
MA
119712009-07-08 Michael Albinus <michael.albinus@gmx.de>
11972
11973 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11974 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11975 error flag.
11976
edb61b39
KH
119772009-07-08 Kenichi Handa <handa@m17n.org>
11978
374bf7e4
KH
11979 * fontset.c (fontset_find_font): Fix the logic of handling
11980 charset_matched.
11981 (font_for_char): Delete unused var.
11982 (generate_ascii_font_name): Delete it.
11983
edb61b39
KH
11984 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11985
11986 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11987 (encode_coding_sjis): Fix the code range check.
11988
0f3f018c
CY
119892009-07-07 Chong Yidong <cyd@stupidchicken.com>
11990
11991 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11992 (Fexpand_file_name): Copy string data properly (Bug#3772).
11993
fcaf6f3a
JD
119942009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11995
11996 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11997 first MapNotify.
11998
6809ca75
KH
119992009-07-07 Kenichi Handa <handa@m17n.org>
12000
12001 * character.h (unibyte_has_multibyte_table): Delete extern.
12002 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12003
12004 * charset.c (Fset_charset_priority): Update charset_unibyte.
12005 (syms_of_charset): Initialize charset_unibyte.
12006
12007 * character.c (unibyte_has_multibyte_table): Delete it.
12008 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12009 charset_unibyte.
12010 (multibyte_char_to_unibyte_safe): Likewise.
12011 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12012
1ac9108a 12013 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
12014 (x_produce_glyphs): Likewise.
12015
12016 * .gdbinit (xcharset): Fix the treating $arg0.
12017
ad9e2d54
EZ
120182009-07-04 Eli Zaretskii <eliz@gnu.org>
12019
12020 Emulation of `getloadavg' on MS-Windows.
50426a04 12021 * w32.c: Include float.h.
ad9e2d54
EZ
12022 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12023 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12024 (get_native_system_info, get_system_times): New functions.
12025 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12026 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12027 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12028 g_b_init_get_system_times, and num_of_processors.
12029
0a3472c7
JR
120302009-07-03 Jason Rumney <jasonr@gnu.org>
12031
12032 * w32term.c (w32_initialize): Use standard types.
12033
80904120
EZ
120342009-07-03 Eli Zaretskii <eliz@gnu.org>
12035
12036 * dired.c (Ffile_attributes): Decode user and group names by the
12037 locale's encoding. (Bug#3443)
12038
6978862d
DN
120392009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12040
f8d23104
DN
12041 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12042 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12043
12044 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12045
12046 * term.c (init_tty): Remove spurious #ifdef.
12047
6978862d
DN
12048 * m/mips.h: Mention this file is also used for netbsd.
12049 * m/pmax.h: Remove file.
12050
e044e4fc
JD
120512009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12052
12053 * xterm.h (struct x_display_info): Add invisible_cursor.
12054 (struct x_output): Add current_cursor.
12055
12056 * xterm.c (XTtoggle_invisible_pointer): New function.
12057 (x_define_frame_cursor): Don't define cursor if invisible or the
12058 same as before. Set current_cursor.
12059 (x_create_terminal): Set toggle_invisible_pointer_hook.
12060
12061 * xfns.c (make_invisible_cursor): New function.
12062 (x_set_mouse_color): Call make_invisible_cursor.
12063 Set current_cursor.
12064 (x_window): Set current_cursor.
12065
12066 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12067
12068 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12069 inserting a character.
12070 (read_avail_input): Call frame_make_pointer_visible.
12071
12072 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12073 (frame_make_pointer_invisible, frame_make_pointer_visible):
12074 New functions.
e044e4fc
JD
12075 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12076
12077 * frame.h: Declare frame_make_pointer_invisible and
12078 frame_make_pointer_visible.
12079 (struct frame): Add pointer_invisible.
12080
574c8efa
JD
120812009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12082
7b507248
JD
12083 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12084 frame isn't visible.
12085 (xg_frame_resized): If width/height is -1, get size of window
12086 from X server.
12087
12088 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12089 for MapNotify.
12090
835bdaa7 12091 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12092 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12093 (flush_and_sync): Reintroduce.
574c8efa 12094
3f1c6666 120952009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12096
31fd7c5c 12097 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12098
12099 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12100 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12101
12102 * frame.h: Declare Qsticky.
12103
cad9ef74
JD
12104 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12105
12106 * nsfns.m (ns_frame_parm_handlers): Ditto.
12107
12108 * frame.c: Declare Qsticky.
12109 (frame_parms): Add sticky.
12110
12111 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12112
12113 * xterm.h: Declare x_set_sticky.
12114
12115 * xterm.c (x_set_sticky): New function.
12116
69b16610
JD
12117 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12118 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12119 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12120
12121 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12122
12123 * frame.c: Qmaximized is new.
12124 (x_set_frame_parameters): Do not handle fullscreen specially.
12125 Only set width and height if explicitly set.
12126 (x_set_fullscreen): Handle Qmaximized.
12127 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12128 (syms_of_frame): Initialize Qmaximized.
12129
1ac9108a
SM
12130 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12131 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12132
12133 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12134 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12135 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12136 set gravity to NorthWestGravity when USE_GTK.
12137 (set_wm_state): New function.
31fd7c5c 12138 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12139 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12140 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12141 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12142 to x_real_positions and x_fullscreen_adjust.
12143
12144 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12145 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12146 flush_and_sync.
12147 (xg_height_changed): New function.
12148 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12149 and gtk_window_set_policy. Set frame gravity after parsing the
12150 geometry string.
3f1c6666
JD
12151 (xg_update_frame_menubar, free_frame_menubar)
12152 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12153 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12154 Remove calls to xg_frame_set_char_size.
12155
fd503d99
KH
121562009-07-01 Kenichi Handa <handa@m17n.org>
12157
12158 * keyboard.c (decode_keyboard_code): New function.
12159 (tty_read_avail_input): Decode the input bytes if necessary.
12160
1ac9108a
SM
12161 * coding.c (setup_coding_system):
12162 Initialize coding->carryover_bytes to 0.
fd503d99
KH
12163 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12164 use Qno_conversion.
12165
24ed93fb
YM
121662009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12167
12168 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12169
99061dfc
CY
121702009-06-30 Chong Yidong <cyd@stupidchicken.com>
12171
1ac9108a 12172 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 12173
ff90fbde
JR
121742009-06-30 Jason Rumney <jasonr@gnu.org>
12175
12176 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12177 is already loaded.
12178 Set user model ID if supported (bug#1849).
12179
5f445726
JM
121802009-06-29 Jim Meyering <meyering@redhat.com>
12181
12182 Remove useless if-before-xfree test.
12183 * nsfont.m (nsfont_close): Remove useless test.
12184 * term.c (delete_tty): Likewise.
12185 * w32.c (system_process_attributes): Likewise.
12186 * w32font.c (w32font_close): Likewise.
12187 * xfaces.c (x_free_gc): Likewise.
12188 * xselect.c (buffer): Likewise.
12189
b9607587
AS
121902009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12191
12192 * process.c (send_process): Keep decoded string in a local
12193 variable and protect it from GC. (Bug#3521)
12194
89ba96f4
EZ
121952009-06-28 Eli Zaretskii <eliz@gnu.org>
12196
12197 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12198 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12199
098a1589
CY
122002009-06-28 Chong Yidong <cyd@stupidchicken.com>
12201
485422be
CY
12202 * xdisp.c (start_display, handle_face_prop)
12203 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
12204 (redisplay_window, try_window_id, produce_image_glyph):
12205 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 12206
098a1589
CY
12207 * xterm.c (x_update_window_begin, x_new_focus_frame)
12208 (x_scroll_bar_handle_click, handle_one_xevent)
12209 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12210 (x_make_frame_visible, x_make_frame_invisible)
12211 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12212 code chunks that are now obsolete.
12213
78c38319
MA
122142009-06-28 Michael Albinus <michael.albinus@gmx.de>
12215
12216 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12217 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12218 for hours, when optimzation is enabled.
12219 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12220 (xd_read_message): Make them static.
12221
4189ed40
CY
122222009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12223
12224 * term.c (turn_on_face): Allow simultaneously bold and dim
12225 terminal faces (Bug#3530).
12226
cd9b5e16
CY
122272009-06-27 Chong Yidong <cyd@stupidchicken.com>
12228
4e23bedb
CY
12229 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12230
cd9b5e16
CY
12231 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12232 truncation glyphs (Bug#3686).
12233
07cc3c35
GM
122342009-06-27 Glenn Morris <rgm@gnu.org>
12235
12236 * m/pmax.h: Restore file, with only netbsd portions.
12237
31fd7c5c 122382009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 12239
cd9b5e16 12240 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 12241
42d4a64f
KH
122422009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12243
12244 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12245 the arg FORCE_SYMBOL.
12246
930fe55b 122472009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
12248
12249 * fontset.c (fontset_find_font): When a usable rfont_def is found
12250 in a fallback font-group, make it the first element of the group.
12251
57ebc3fd
CY
122522009-06-24 Chong Yidong <cyd@stupidchicken.com>
12253
12254 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12255
f084f942
KH
122562009-06-24 Kenichi Handa <handa@m17n.org>
12257
12258 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12259 set for C.
12260 (fontset_font): Record the availability of a font for C both in
12261 the realized fontsets of the current one and the default one.
12262
2f686c87
DN
122632009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12264
12265 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12266 conditional, it is always defined on AIX.
12267
666e158e
MB
122682009-06-23 Miles Bader <miles@gnu.org>
12269
12270 * window.c (Vrecenter_redisplay): New variable.
12271 (syms_of_window): Initialize it.
12272 (Qtty): New extern declaration.
12273 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12274
c6da7cd2
JM
122752009-06-23 Jim Meyering <meyering@redhat.com>
12276
1ac9108a
SM
12277 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
12278 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 12279 pointer dereferences are guaranteed to be valid.
c6da7cd2 12280
678dca3d
KH
122812009-06-23 Kenichi Handa <handa@m17n.org>
12282
74d75424
KH
12283 * emacs.c (main): Call init_font ().
12284
12285 * font.h (Vfont_log): Extern it.
12286 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
12287
12288 * font.c (font_sort_entities, font_list_entities)
12289 (font_matching_entity, font_open_entity)
12290 (font_close_object): Change font_add_log to FONT_ADD_LOG.
12291 (Vfont_log): Delete static.
12292 (font_log_env_checked): Delete this variable.
12293 (font_add_log): Don't check font_log_env_checked.
12294 (font_deferred_log): Check Vfont_log.
12295 (init_font): New function.
12296
678dca3d
KH
12297 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
12298
12299 * w32font.c: Change font_add_log to FONT_ADD_LOG.
12300
12301 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
12302
12303 * xfont.c: Change font_add_log to FONT_ADD_LOG.
12304
12305 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
12306 (face_for_char): Don't call font_deferred_log here.
12307 (font_for_char): Likewise.
12308
8a668709
CY
123092009-06-22 Chong Yidong <cyd@stupidchicken.com>
12310
9a01ee33
CY
12311 * w32term.c (x_draw_glyph_string): Use the glyph string's width
12312 rather than its background_width for drawing the overline and
12313 underline (Bug#489).
12314
12315 * xterm.c (x_draw_glyph_string): Use the glyph string's width
12316 rather than its background_width for drawing the overline and
12317 underline (Bug#489).
ec7c9926
CY
12318 (xg_default_icon_file): New variable.
12319 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
12320 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 12321
8a668709
CY
12322 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
12323 (load_overlay_strings): Remove externs.
12324 (fast_find_position): Function deleted.
12325 (mouse_face_from_buffer_pos): New function, based on
12326 fast_find_position. Correctly handle before-strings,
12327 display-strings, and after-strings (Bug#1220).
12328 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
12329
4d4c02d8
CY
123302009-06-21 Chong Yidong <cyd@stupidchicken.com>
12331
1ac9108a 12332 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
12333 (move_it_in_display_line_to, move_it_in_display_line_to)
12334 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
12335
70243478
CY
123362009-06-21 Chong Yidong <cyd@stupidchicken.com>
12337
12338 * Branch for 23.1.
12339
13087e59
JR
123402009-06-21 Jason Rumney <jasonr@gnu.org>
12341
12342 * w32term.c (keyboard_codepage): New static variable.
12343 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
12344 (w32_read_socket) [WM_CHAR]: Use it to decode character
12345 input (bug#3237).
12346 (w32_initialize): Initialize it.
12347 (codepage_for_locale): New function.
12348
4735b74e
KR
123492009-06-20 Ken Raeburn <raeburn@raeburn.org>
12350
12351 * process.c (status_message): Pass Faset index argument as a lisp
12352 object, so as to work with USE_LISP_UNION_TYPE.
12353
0e727afa
YM
123542009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12355
12356 * coding.c (Ffind_coding_systems_region_internal):
12357 Cache checked characters.
12358
cf299835
KH
123592009-06-18 Kenichi Handa <handa@m17n.org>
12360
1ac9108a 12361 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 12362
90f20d94
AS
123632009-06-18 Andreas Schwab <aschwab@redhat.com>
12364
12365 * xdisp.c (redisplay_internal): Check that the frame is still
12366 live after redisplay of its windows.
12367 (redisplay_windows): Check that the window is still live.
12368
7f1faf1c
KH
123692009-06-17 Andreas Schwab <schwab@linux-m68k.org>
12370
12371 * coding.c (detect_coding_utf_16): Fix previous change.
12372
cc13543e
KH
123732009-06-16 Kenichi Handa <handa@m17n.org>
12374
12375 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
12376 UTF-16 by checking the dispersion of Eth and Oth bytes.
12377
977b85f4
AS
123782009-06-15 Andreas Schwab <schwab@linux-m68k.org>
12379
12380 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
12381
66bd43d1
KH
123822009-06-15 Kenichi Handa <handa@m17n.org>
12383
12384 * process.c (status_message): Fix previous change. Be sure to
12385 decode a localized string.
12386
cb5ca9c5
YM
123872009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12388
12389 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
12390 add comment explaining why.
12391
ec7709ba 123922009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 12393
ec7709ba 12394 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 12395
4b7f335c
AR
123962009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
12397
12398 * nsfont.m (ns_attribute_value): Remove.
12399 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
12400 (ns_has_attribute): Shrink the normal range.
12401 (ns_findfonts): Don't worry about requested spec in determining
12402 need for synthItal.
e41820ee 12403 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 12404
73b26103
SZ
124052009-06-14 Seiji Zenitani <zenitani@mac.com>
12406
12407 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
12408
5753e4da
KH
124092009-06-11 Kenichi Handa <handa@m17n.org>
12410
12411 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12412 overhang for the static composition case.
12413
3561b671
KH
124142009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12415
5753e4da
KH
12416 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12417 overhang for the automatic composition case.
12418
3561b671
KH
12419 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
12420 composition case.
12421
852bbd41
CY
124222009-06-10 Chong Yidong <cyd@stupidchicken.com>
12423
12424 * xdisp.c (get_next_display_element): When handling wrap-prefix
12425 and line-prefix, treat \n as a control character (bug#3502).
12426
9903d1e6
KH
124272009-06-10 Kenichi Handa <handa@m17n.org>
12428
12429 * font.c (font_parse_family_registry): Fix for one-char foundry.
12430 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
12431
0bcbaaaa
CY
124322009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
12433
12434 * process.c (status_message): Fix handling of multibyte signal
12435 string (Bug#3499).
12436
40aa3f13
JM
124372009-06-09 Jim Meyering <meyering@redhat.com>
12438
1f80c7e2
CY
12439 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
12440 color name is missing.
40aa3f13 12441
72d51285
KH
124422009-06-09 Kenichi Handa <handa@m17n.org>
12443
12444 * charset.c (Fmap_charset_chars): In docstring, state clearly that
12445 FROM-CODE and TO-CODE are codepoints of CHARSET.
12446
c1d04d84
AR
124472009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12448
12449 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12450
124512009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12452
12453 Changes to support :script/:lang/:otf in NS font driver.
12454 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12455 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12456 indicate not part of font driver interface, and change callers.
12457 (ns_get_family): Remove pointless null check.
12458 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12459 ns_spec_to_descriptor, ns_descriptor_to_entity.
12460 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12461 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12462 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12463 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12464 (ns_get_req_script, ns_accumulate_script_ranges)
12465 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12466 New functions.
12467 (nsfont_list, nsfont_match): Use ns_findfonts.
12468 (nsfont_open): Use font descriptor instead of traits.
12469 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12470 (dump_glyphstring): Rename to ns_dump_glyphstring.
12471
c7eb9816
AR
12472 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12473
c1d04d84
AR
12474 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12475
12476 * fontset.c (fontset_from_font): Remove NS-specific code.
12477
ec7709ba 124782009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
12479
12480 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12481 nonactive windows.
12482
31fd7c5c 124832009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 12484
1ac9108a 12485 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 12486
68852c13 124872009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
12488
12489 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12490
6756cd1d
CY
124912009-06-07 Chong Yidong <cyd@stupidchicken.com>
12492
12493 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12494 account for the overflowing of newlines into the last glyph on the
12495 display line (Bug#3482).
12496
28bf482a
DR
124972009-06-05 David Reitter <david.reitter@gmail.com>
12498
ec7709ba
JB
12499 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12500 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
12501 Fns_selection_exists_p, Fns_selection_owner_p.
12502
fdb55376
JR
125032009-06-03 Jason Rumney <jasonr@gnu.org>
12504
12505 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12506 available. (Bug#3379)
12507
05129fbe
KH
125082009-05-29 Kenichi Handa <handa@m17n.org>
12509
1ac9108a
SM
12510 * coding.c (get_translation_table):
12511 Check Venable_character_translation.
05129fbe 12512
ec7709ba 125132009-05-26 David Reitter <david.reitter@gmail.com>
15891144 12514
ec7709ba
JB
12515 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12516 (x_make_frame_visible): Move frame to front rather than calling
15891144 12517 ns_raise_frame().
ec7709ba 12518 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 12519 isn't key window.
ec7709ba 12520 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
12521 drawRect may be called by NSView even if the frame is hidden.
12522
ec7709ba
JB
12523 * nsfns.m (Fx_create_frame): Follow other ports in
12524 determining visibility; default to t. Ensure async_visible is set.
15891144 12525
21f73755
EZ
125262009-05-23 Eli Zaretskii <eliz@gnu.org>
12527
12528 * dired.c (Ffile_attributes): Doc fix.
12529
34001e41
CY
125302009-05-22 Chong Yidong <cyd@stupidchicken.com>
12531
12532 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12533
46306a17
SM
125342009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12537 and xfont_scratch_props.
12538 (syms_of_xfont): Do it here instead.
12539 (xfont_find_ccl_program): Delete, unused.
12540 (xfont_open): Delete unused var `i'.
12541
ef6e0694
KH
125422009-05-21 Kenichi Handa <handa@m17n.org>
12543
12544 * fontset.c (Qlatin): Don't make it static.
12545
46306a17
SM
12546 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12547 New functions.
ef6e0694
KH
12548 (xfont_scripts_cache, xfont_scratch_props): New variables.
12549 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12550 (xfont_list_pattern): Argument changed. Callers changed.
12551 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12552 (xfont_list): Don't reject a font spec with :script property.
12553 (xfont_has_char): Fix setting of encoding.
12554 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12555 xfont_scratch_props.
12556
125572009-05-19 Kenichi Handa <handa@m17n.org>
12558
46306a17 12559 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12560 Callers changed.
12561
125622009-05-18 Kenichi Handa <handa@m17n.org>
12563
12564 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12565
ac71ced7
SM
125662009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12567
12568 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12569 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12570
1c6d1051
YM
125712009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12572
12573 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12574 (x_delete_terminal): Dissociate resource database from display and
12575 then call XrmDestroyDatabase before closing display.
12576
9b9b779c
AR
125772009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12578
12579 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12580 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12581 whether selected frame is viable before raising it (based on patch
12582 by David Reitter), and improve commentary.
12583 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12584
cccd42d5
KH
125852009-05-15 Kenichi Handa <handa@m17n.org>
12586
12587 * font.c (Ffont_spec): Check arguments.
12588
337fbd17
CY
125892009-05-14 Chong Yidong <cyd@stupidchicken.com>
12590
12591 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12592 weight when testing attributes (Bug#3282).
12593
47a6002f
JD
125942009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12595
12596 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12597 what we expect to get in the next ConfigureNotify event.
12598
9cb363db
YM
12599 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12600 before Xft one (Bug#1696).
12601
b9126609
CY
126022009-05-07 David Reitter <david.reitter@gmail.com>
12603
12604 * nsfns.m (Fx_display_planes): Compute bitplanes using
12605 NSBitsPerPixelFromDepth (Bug#3207).
12606
27a69fd9
CY
126072009-05-10 Chong Yidong <cyd@stupidchicken.com>
12608
12609 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12610
00f37552
TTN
126112009-05-10 Ulrich Mueller <ulm@gentoo.org>
12612
12613 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12614
2d82a920
DR
126152009-05-07 David Reitter <david.reitter@gmail.com>
12616
ec7709ba
JB
12617 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12618 Respect mouse face background.
2d82a920 12619
46b0d52d
DR
126202009-05-07 David Reitter <david.reitter@gmail.com>
12621
ec7709ba
JB
12622 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12623 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12624 in ns_update_begin and ns_update_end.
12625
ce1b23bb
SM
126262009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12627
5996e1b7
SM
12628 * nsfns.m (ns_get_screen): Rewrite.
12629 Don't presume selected-frame is of type `ns'.
12630
ba98e3a0
SM
12631 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12632 all drivers.
12633
ce1b23bb
SM
12634 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12635
bcda200f
YM
126362009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12637
12638 * keyboard.h (add_user_signal): Fix typo in extern.
12639
12640 * lisp.h (add_user_signal): Remove extern.
12641
12642 * unexelf.c (unexec): Consider a section to precede the .bss section
12643 if its addresses overlap that of .bss.
12644 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12645 instead of dumping process.
12646
864660a2
SM
126472009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12648
12649 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12650
50da4e56
SM
126512009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12652
12653 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12654
51520a1a
DN
126552009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12656
12657 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12658 any statements.
12659
409ea3a1
AS
126602009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12661
59c4c60f
AS
12662 * process.c (read_process_output): Make sure the current buffer is
12663 always restored.
12664
409ea3a1
AS
12665 * coding.c (record_conversion_result): Don't modify
12666 Vlast_code_conversion_error for successful result.
12667 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12668
56f00ed2
KH
126692009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12670
12671 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12672 (load_charset_map): Remove unnecessary code.
56f00ed2 12673
4491c9d2
DR
126742009-04-30 David Reitter <david.reitter@gmail.com>
12675
35f5b128 12676 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12677 through f24.
12678
6970f632
CY
126792009-04-30 Chong Yidong <cyd@stupidchicken.com>
12680
12681 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12682
12683 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12684 face_at_buffer_position.
12685 (face_before_or_after_it_pos, get_next_display_element)
12686 (note_mouse_highlight): Update face_at_buffer_position call.
12687
12688 * term.c (term_mouse_highlight):
12689 * msdos.c (IT_note_mouse_highlight):
12690 * fontset.c (Finternal_char_font):
35f5b128 12691 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12692
12693 * dispextern.h (face_at_buffer_position): Update prototype.
12694
0c616f63
KH
126952009-04-30 Kenichi Handa <handa@m17n.org>
12696
35f5b128 12697 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12698
ad3aaf33
AS
126992009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12700
12701 * callproc.c (Fcall_process): Fix GC protection. Make sure
12702 current buffer is always restored.
12703
c3c963a0
YM
127042009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12705
12706 * atimer.c (init_atimer): Also clear stopped_atimers.
12707
12708 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12709
7e3386cb
YM
12710 * process.c (create_process): Clean up merger residues of
12711 2008-07-17 change.
12712
91f68422
CY
127132009-04-29 Ulrich Mueller <ulm@gentoo.org>
12714
12715 * lread.c (Vread_circle): New variable.
12716 (read1): Disable recursive read if Vread_circle is nil.
12717
24b34550
KH
127182009-04-29 Kenichi Handa <handa@m17n.org>
12719
12720 * fontset.h (set_default_ascii_font): Delete extern.
12721
12722 * fontset.c (set_default_ascii_font): Delete this unused function.
12723
12724 * frame.c (x_set_font): When ARG is a font-object, check if the
12725 font-object matches with the ASCII font-spec of the frame's
9c358bda 12726 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12727
77bf07e1
AS
127282009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12729
12730 * fns.c (Flocale_info): Protect vector from GC during decoding.
12731
12732 * process.c (Fstart_process): Protect argv strings from GC during
12733 encoding.
12734
2c55aacf
AS
127352009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12736
12737 * sysdep.c: Include <ctype.h>.
12738
b892d3c9
DR
127392009-04-27 David Reitter <david.reitter@gmail.com>
12740
35f5b128 12741 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12742 Remove commented-out code.
12743
9d0644c4
JB
127442009-04-26 Johan Bockgård <bojohan@gnu.org>
12745
12746 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12747
b7053016
JR
127482009-04-25 Jason Rumney <jasonr@gnu.org>
12749
12750 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12751
4e8231f3
YM
127522009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12753
12754 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12755 Swap bytes in short integer if fringe bitmap width > 8.
12756
493dcf2c
KH
127572009-04-23 Kenichi Handa <handa@m17n.org>
12758
12759 * xfaces.c (Fx_list_fonts): If a font size is specified in
12760 PATTERN, set it in returned scalable fonts.
12761
401e9e57
CY
127622009-04-22 Chong Yidong <cyd@stupidchicken.com>
12763
708e05dc
CY
12764 * keyboard.c (Fset_input_meta_mode): Doc fix.
12765
12766 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12767
1ac9108a 12768 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12769
12770 * coding.c (Fterminal_coding_system): Doc fix.
12771
12772 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12773 (Fx_display_pixel_height, Fx_display_planes)
12774 (Fx_display_color_cells, Fx_server_max_request_size)
12775 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12776 (Fx_display_mm_height, Fx_display_mm_width)
12777 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12778 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12779 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12780 (check_x_display_info): Handle terminal objects instead of
12781 terminal ids.
12782
401e9e57
CY
12783 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12784 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12785 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12786 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12787
df80c7f0
KH
127882009-04-21 Kenichi Handa <handa@m17n.org>
12789
5a8f12af 12790 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12791 (font_score): Check AVGWIDTH too.
908567ef 12792
df80c7f0
KH
12793 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12794 worst case.
1ac9108a
SM
12795 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12796 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12797
705af33f
JR
127982009-04-19 Jason Rumney <jasonr@gnu.org>
12799
12800 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12801 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12802
12803 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12804 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12805 get_phys_cursor_geometry.
12806
b71ac3dd 12807 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12808 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12809 using get_phys_cursor_geometry.
12810
12811 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12812 correctly calculated.
12813
dc2933eb
JD
128142009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12815
1ac9108a
SM
12816 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12817 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12818 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12819 is deprecated.
12820
973e7849
AS
128212009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12822
12823 * font.c (font_put_frame_data): Use xfree instead of free.
12824
314d66f4
JB
128252009-04-17 Juanma Barranquero <lekktu@gmail.com>
12826
12827 * w32font.c (Qja, Qko): Remove declarations.
12828 (syms_of_w32font): Don't DEFSYM them.
12829
cf702558
CY
128302009-04-17 Chong Yidong <cyd@stupidchicken.com>
12831
12832 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12833
12834 * font.h (Qja, Qko): Extern them.
12835
12836 * ftfont.c (Qja, Qko): Remove declarations.
12837
12838 * xfont.c (Qja, Qko): Remove declarations.
12839
b50504f5
KH
128402009-04-17 Kenichi Handa <handa@m17n.org>
12841
bde25748
KH
12842 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12843 string from a vector to handle Latin-1 characters correctly.
12844
b50504f5
KH
12845 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12846 entity even if the cache hits.
12847
f4646fff
AS
128482009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12849
12850 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12851 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12852
e7deaab0
AS
12853 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12854 * lisp.h: Adjust prototypes.
12855
0a0e7d49
CY
128562009-04-16 Chong Yidong <cyd@stupidchicken.com>
12857
12858 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12859 change (Bug#3003).
12860
3c908a57
KH
128612009-04-16 Kenichi Handa <handa@m17n.org>
12862
1ac9108a 12863 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12864
12865 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12866 adstyle.
12867
12868 * ftfont.c (Qja, Qko): Don't make them static.
12869 (enum ftfont_cache_for): New enum.
12870 (fc_charset_table): Undo the previous change.
12871 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12872 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12873 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12874 non-scarable font, try to get AVERAGE_WIDTH.
12875 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12876 Change ft_face_cache from a list of a hash-table. Don't check
12877 `ja' and `ko' adstyle here.
12878 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12879 FTFONT_CACHE_FOR_CHARET.
12880 (ftfont_get_charset): Undo the previous change.
1ac9108a 12881 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12882 (ftfont_close): Likewise.
12883 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12884
12885 * font.c (font_sort_entites): Change the meaning of the arg
12886 BEST-ONLY. Don't optimize for VEC of lenght 1.
12887 (font_select_entity): Just return the value of font_sort_entites.
12888
12889 * xfaces.c (merge_face_vectors): Reflect font properties in
12890 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12891 font_clear_prop if a face attribute doesn't change.
12892
3c908a57
KH
12893 * charset.h (charset_ksc5601): Extern it.
12894
12895 * charset.c (charset_ksc5601): New variable.
12896 (Fdefine_charset_internal): Set charset_ksc5601.
12897 (init_charset_once): Initialize charset_ksc5601 to -1.
12898
d65859c3
DN
128992009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12900
12901 * fileio.c (history_delete_duplicates): Remove unused declaration.
12902
12903 * callint.c (history_delete_duplicates): New declaration.
12904 (Fcall_interactively): Remove command history duplicates when
12905 history_delete_duplicates is true.
12906
3ba010e5
EZ
129072009-04-14 Eli Zaretskii <eliz@gnu.org>
12908
12909 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12910
06f19b91
KH
129112009-04-14 Kenichi Handa <handa@m17n.org>
12912
12913 * font.c (Ffont_info): Fix docstring. Fix the second element of
12914 the returned value (bug#2949).
12915
2cce8bfc
CY
129162009-04-14 Chong Yidong <cyd@stupidchicken.com>
12917
12918 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12919
d156542d
KH
129202009-04-14 Kenichi Handa <handa@m17n.org>
12921
12922 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12923 encoding charset is ascii_compatible.
12924
12925 * charset.c (Fdefine_charset_internal): Make charset
12926 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12927 code_offset is 0, and covers all ASCII characters.
12928
86fa089e
SM
129292009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12930
12931 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12932 (ns_string_to_pasteboard_internal):
12933 * nsmenu.m (process_dialog):
12934 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12935 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12936 * lisp.h (Fx_load_color_file): Declare.
12937
a8a3728b
KH
129382009-04-13 Kenichi Handa <handa@m17n.org>
12939
1ac9108a 12940 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12941 (font_select_entity): Suppress the code to optimize for the same
12942 kind of fonts.
12943 (font_load_for_lface): Get a font that supports at least ASCII
12944 characters.
12945
12946 * ftfont.c (Qja, Qko): New variables.
12947 (fc_charset_table): Delete uniquifier data for iso8859-1.
12948 (ftfont_get_latin1_charset): New function.
12949 (get_adstyle_property): New function.
12950 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12951 bitmap fonts.
12952 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12953 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12954 `ko' or `ja'.
12955 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12956 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12957 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12958 property.
12959 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12960 (syms_of_ftfont): DEFSYM Qja and Qko.
12961
483670b5
KH
129622009-04-09 Kenichi Handa <handa@m17n.org>
12963
12b55765
KH
12964 * charset.c (map_charset_chars): For a charset of `superset'
12965 method, fix calculation of code range.
12966
483670b5
KH
12967 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12968 from the list of extra properties.
12969 (font_clear_prop): Be sure to delete `:name' font property.
12970
57d3b93b
KH
129712009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12972
b4b2c2ca
YM
12973 * dispnew.c (redraw_overlapping_rows): Fix detection of
12974 overlapping for topmost and bottommost rows.
12975
1ac9108a 12976 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12977
472c3609
JR
129782009-04-06 Jason Rumney <jasonr@gnu.org>
12979
12980 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12981
ab193662
KH
129822009-04-06 Kenichi Handa <handa@m17n.org>
12983
12984 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12985
12986 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12987
0c26f026
KH
129882009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12989
12990 * ftfont.c (ftfont_open): Fix checking of the return value of
12991 FT_Load_Char. Fix setting font->underline_thickness.
12992
e173bbce
CY
129932009-04-04 Chong Yidong <cyd@stupidchicken.com>
12994
12995 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12996 (Fterminal_parameters, Fterminal_parameter)
12997 (Fset_terminal_parameter): In doc string, refer to terminal
12998 objects rather than terminal ids.
12999
693a2698
EZ
130002009-04-04 Eli Zaretskii <eliz@gnu.org>
13001
13002 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13003 ret_lim_data. (Bug#2867)
13004
d5221487
CY
130052009-04-03 Chong Yidong <cyd@stupidchicken.com>
13006
13007 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13008 so they don't get wider than the window, matching 2006-01-23
13009 change to the partner function in xdisp.c (Bug#2800).
13010
223509a3
KH
130112009-04-03 Kenichi Handa <handa@m17n.org>
13012
13013 * print.c (print_object): Make each lowest sub_char_table start a
13014 new line (Bug#2866).
13015
74fcd0b1
KH
130162009-04-02 Kenichi Handa <handa@m17n.org>
13017
13018 * fontset.c (fontset_font): Record no-font when a fontset
13019 explicitly tells not to try another font-specs.
13020
c542407d
SM
130212009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13022
13023 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13024
e3869731
KH
130252009-03-30 Kenichi Handa <handa@m17n.org>
13026
d8d2f142
KH
13027 * fontset.c (fontset_from_font): Specify only registry in a
13028 font-spec for all characters supported by that registry.
13029
e3869731
KH
13030 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13031 even if HAVE_M17N_FLT is not defined.
13032
5da5f805
CY
130332009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13034
13035 * ftfont.c: Conditionalize prototyping and use of
13036 ftfont_variation_glyphs.
13037
ab226c50
SM
130382009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13039
9628fed7
SM
13040 * frame.c (delete_frame): Work around compiler bug.
13041
13042 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13043 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13044 Some more EMACS_INT.
13045 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13046
13047 * xdisp.c (dump_glyph): Fix typo.
13048
ae19ba7c
SM
13049 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13050 (adjust_markers_gap_motion, adjust_markers_for_delete)
13051 (adjust_markers_for_insert, adjust_point)
13052 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13053 (make_gap, copy_text, count_size_as_multibyte, insert)
13054 (insert_and_inherit, insert_before_markers)
13055 (insert_before_markers_and_inherit, insert_1)
13056 (count_combining_before, count_combining_after, insert_1_both)
13057 (insert_from_string, insert_from_string_before_markers)
13058 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13059 (insert_from_buffer_1, adjust_after_replace)
13060 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13061 (replace_range_2, del_range, del_range_1, del_range_byte)
13062 (del_range_both, del_range_2, modify_region)
13063 (prepare_to_modify_buffer, signal_before_change)
13064 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13065 for buffer positions and sizes.
13066 * lisp.h: Adjust prototypes accordingly.
13067
13068 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13069 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13070 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13071
ab226c50
SM
13072 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13073
46dfb8fb
JD
130742009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13075
13076 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13077 lines and columns so we keep the same pixel height and width.
13078
13079 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13080 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13081 (x_handle_net_wm_state): New function to update frame parameter
13082 fullscreen.
13083 (x_term_init): Initialize atoms for _NET_WM_STATE.
13084
13085 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13086
d347e494
SM
130872009-03-27 Kevin Ryde <user42@zip.com.au>
13088
13089 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13090 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13091 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13092 (Fgpm_mouse_stop): Pass that new parameter.
13093 * termhooks.h (close_gpm): Adjust prototype.
13094
84db11d6
SM
130952009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13096
c95a5008
SM
13097 * lisp.h (Fx_focus_frame): Declare.
13098
84db11d6
SM
13099 * callint.c (Fcall_interactively): For '^' just delegate the work to
13100 handle-shift-selection.
13101 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13102
0a1958d6
CY
131032009-03-24 Chong Yidong <cyd@stupidchicken.com>
13104
0bfdff23
CY
13105 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13106
0a1958d6
CY
13107 * data.c (Qinteractive_form): New variable.
13108 (Finteractive_form): Use it.
13109
13110 * eval.c (Fcommandp): Use Qinteractive_form.
13111
58aec0d6
JR
131122009-03-24 Jason Rumney <jasonr@gnu.org>
13113
13114 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13115 Calculate total size precisely. Decode environment variables
13116 before substituting. (Bug#38)
13117
553dd618
KH
131182009-03-24 Kenichi Handa <handa@m17n.org>
13119
13120 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13121 encoding (Bug#2722).
553dd618 13122
c39ea606
JD
131232009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13124
13125 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13126 that gdpy is set.
13127
bc9b2b5e
AM
131282009-03-22 Alan Mackenzie <acm@muc.de>
13129
13130 * callint.c (Finteractive): Clarify the doc string - even
13131 promptless elements need \n separators.
13132
9f995a76
JR
131332009-03-22 Jason Rumney <jasonr@gnu.org>
13134
13135 * w32term.c (syms_of_w32term): Doc fix for
13136 x-use-underline-position-properties.
13137
22749e9a
EZ
131382009-03-21 Eli Zaretskii <eliz@gnu.org>
13139
13140 * w32.c (getpwuid): Change argument type to unsigned.
13141 (struct w32_id): Change type of `rid' member to unsigned.
13142 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13143 argument ID to unsigned. All callers changed.
13144 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13145
e00553bf
EZ
131462009-03-20 Eli Zaretskii <eliz@gnu.org>
13147
13148 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13149 negative, produce a float value.
13150
13151 * dired.c (make_uid, make_gid): New functions.
13152 (Ffile_attributes): Use them to avoid negative UID and GID.
13153
f761d6b6
JB
131542009-03-20 Juanma Barranquero <lekktu@gmail.com>
13155
13156 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13157 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13158 Fix typos in docstrings.
13159
d507f8d7
KH
131602009-03-19 Kenichi Handa <handa@m17n.org>
13161
13162 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
13163 changed, use font_load_for_lface to get a new font object.
13164 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
13165
13166 * frame.c (x_set_font): Handle the case that ARG is a cons.
13167
c68845e0
GM
131682009-03-19 Glenn Morris <rgm@gnu.org>
13169
13170 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13171
bfa49dd1
CY
131722009-03-19 Chong Yidong <cyd@stupidchicken.com>
13173
13174 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13175
8458d4c1
KH
131762009-03-19 Kenichi Handa <handa@m17n.org>
13177
13178 * charset.c (load_charset_map_from_file): When a mapfile can't be
13179 loaded, signal an error.
13180
78e7d1fe
EZ
131812009-03-18 Eli Zaretskii <eliz@gnu.org>
13182
13183 * dired.c (Ffile_attributes): Make sure UID and GID are always
13184 positive, even if the value is too large for a positive EMACS_INT.
13185 Doc fix.
13186
13187 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13188
5da9fdfa
YM
131892009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13190
13191 * xmenu.c (xdialog_show): Move Fredisplay call ...
13192 (Fx_popup_dialog): ... here.
13193
7519c40d
SM
131942009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13195
13196 * dired.c (file_name_completion): Disable the first optimization just
13197 installed, since it is not implemented correctly.
13198
2cd298e2
SM
131992009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13200
13201 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 13202 only if the entry can affect bestmatch.
2cd298e2
SM
13203 Stop the search early, as Ftry_completion already does.
13204
48d37adf
CY
132052009-03-17 Chong Yidong <cyd@stupidchicken.com>
13206
e10c9c93 13207 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 13208
9286b16a
CY
132092009-03-15 Chong Yidong <cyd@stupidchicken.com>
13210
13211 * keyboard.c (parse_menu_item): Don't display remappings as menu
13212 equivalent bindings (Bug#788).
13213
f7b146dc
JR
132142009-03-15 Jason Rumney <jasonr@gnu.org>
13215
13216 * w32term.h (WM_EMACS_PAINT): New message.
13217 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13218 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13219 before passing to lisp thread. (Bug#950)
13220
f761d6b6 132212009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 13222
d93f9575
CY
13223 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13224 variable as it was never reset.
13225 (ns_term_init): Remove initialization of Lisp-settable defaults
13226 and ns_expand_space.
13227 (-setPanelFromDefaultValues): Remove ns_expand_space.
13228 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13229 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
13230 i.e. no additional spacing, similar to Carbon port.
13231
d93f9575
CY
13232 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13233 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 13234
305018ec
JD
132352009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13236
13237 * sound.c (alsa_configure): Remove call to deprecated
13238 snd_pcm_sw_params_set_xfer_align.
13239
f761d6b6 132402009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
13241
13242 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13243 after clicking in a detached tool bar.
13244 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13245
46e722a9
SM
132462009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13247
348db3dd
SM
13248 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13249 int/Lisp_Object mixup).
46e722a9 13250
a3d16f39
KH
132512009-03-13 Kenichi Handa <handa@m17n.org>
13252
13253 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 13254 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
13255 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13256 (set_fontset_font): Change ARG to a vector. Handle range_list in
13257 ARG correctly.
13258 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 13259 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
13260 the above change.
13261 (fontset_from_font): Fix previous change.
fe24f56a 13262 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
13263 entry. If FONTSET is the default fontset, don't set the extra
13264 slot of the returning char-table.
13265
b066e6b6
JB
132662009-03-12 Juanma Barranquero <lekktu@gmail.com>
13267
13268 * nsfns.m (Fx_close_connection): Doc fix.
13269 (Fns_do_applescript): Reflow docstring.
13270 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13271 (Fx_display_pixel_width, Fx_display_pixel_height)
13272 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13273 Fix typos in docstrings.
13274 (Fns_set_alpha): Fix typos in error messages.
13275
d472514e 132762009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 13277
d472514e 13278 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
13279 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
13280 were used for such events.
13281
d472514e
JB
13282 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
13283 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 13284
d472514e 13285 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
13286 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
13287
fb930676
KH
132882009-03-11 Kenichi Handa <handa@m17n.org>
13289
ff85581a
KH
13290 * font.h (font_open_by_spec): Extern it.
13291
c50b7e98
KH
13292 * font.c (font_open_by_spec): New function.
13293 (font_open_by_name): Use font_open_by_spec.
13294
fb930676
KH
13295 * frame.c (x_set_font): When ARG is a font-object, don't alter the
13296 fontset of the frame.
13297
13298 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
13299 modify the default font of frames that use this fontset.
13300 (num_auto_fontsets): New variable.
13301 (fontset_from_font): Use num_auto_fontsets to decide a fontset
13302 name. Be sure to set FONTSET_ASCII to the correct font name.
13303 (update_auto_fontset_alist): New function.
13304
df4e8455
JB
133052009-03-11 Juanma Barranquero <lekktu@gmail.com>
13306
13307 * makefile.w32-in: Update dependencies.
13308
0a375797
AR
133092009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13310
13311 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
13312
61313fa3
SM
133132009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13314
13315 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
13316
b55103fb
CY
133172009-03-10 Chong Yidong <cyd@stupidchicken.com>
13318
13319 * lread.c (Feval_buffer): Doc fix.
13320
dde2559c
KH
133212009-03-09 Kenichi Handa <handa@m17n.org>
13322
13323 * charset.c (Qfile_name_handler_alist): Extern it.
13324 (load_charset_map_from_file): Temporarily bind
13325 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
13326
df4e8455 133272009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 13328
47f588bb
GM
13329 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
13330 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 13331
4ddf94bd
AR
133322009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13333
4c9bdfc2
AR
13334 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
13335 (x_set_window_size): Change back to calculated method of setting
13336 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
13337 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
13338 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
13339
fe41ae9e
AR
13340 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
13341
4c9bdfc2
AR
13342 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
13343 accelerator in parens under GNUstep.
13344
825d0875
KH
133452009-03-06 Kenichi Handa <handa@m17n.org>
13346
13347 These changes are to detect incorrect composition sequence without
f3b3be74 13348 looking ahead the source. (Bug#2370)
825d0875
KH
13349
13350 * coding.h: Include "composite.h".
13351 (enum compisition_state): New enum.
13352 (struct compisition_status): New struct.
13353 (struct iso_2022_spec): New member cmp_status.
13354 (struct emacs_mule_spec): New struct.
13355 (struct coding_system): New members ctext_extended_segment_len and
13356 embedded_utf_8. Change the union member
13357 spec.emacs_mule_full_support to spec.emacs_mule.
13358
13359 * coding.c (CODING_ISO_CMP_STATUS): New macro.
13360 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 13361 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
13362 (ADD_COMPOSITION_DATA): New arg nbytes.
13363 (emacs_mule_char): New arg cmp_status.
13364 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
13365 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
13366 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
13367 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
13368 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
13369 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
13370 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
13371 (EMACS_MULE_COMPOSITION_END): New macro.
13372 (emacs_mule_finish_composition): New function.
13373 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
13374 (decode_coding_emacs_mule): Avoid long looking ahead while
13375 handling composition.
13376 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
13377 (ENCODE_COMPOSITION_RULE): New macro.
13378 (finish_composition): New function.
13379 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
13380 (DECODE_COMPOSITION_START): New implementation.
13381 (DECODE_COMPOSITION_END): Likewise.
13382 (STORE_COMPOSITION_RULE): New macro.
13383 (decode_coding_iso_2022): Avoid long looking ahead while handling
13384 composition, CTEXT extended segment, and embedded UTF-8.
13385 (setup_coding_system): For a coding of type iso-2022, reset
13386 CODING_ISO_EXTSEGMENT_LEN (coding) and
13387 CODING_ISO_EMBEDDED_UTF_8 (coding).
13388 (get_translation): Delete arguments last_block, from_nchars,
13389 to_nchars. Callers changed.
13390 (produce_chars): Don't modify charbuf. Adjusted for the change of
13391 get_translation.
98a326f7 13392 (produce_composition): Adjust for the new annotation sequence.
825d0875 13393 (handle_composition_annotation): Likewise.
98a326f7 13394 (consume_chars): Adjust for the change of get_translation.
825d0875 13395
ccbc4452
AR
133962009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
13397
4ddf94bd 13398 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 13399
988a7ddb
KH
134002009-03-05 Kenichi Handa <handa@m17n.org>
13401
13402 * font.c (font_select_entity): New function.
13403 (font_find_for_lface): Use font_select_entity to select a font.
13404
13405 * fontset.c (fontset_find_font): If a font found without
a8a3728b 13406 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
13407 font with C restriction.
13408
98a326f7 134092009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 13410
be1bce46 13411 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 13412
10ea2b82
JR
134132009-03-04 Jason Rumney <jasonr@gnu.org>
13414
2c93b248 13415 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 13416 characters that have already been read. (Bug#2569)
2c93b248 13417
10ea2b82
JR
13418 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
13419 Log an error message if check_image_size failed.
13420 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 13421 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 13422
71a0c011
EZ
134232009-03-02 Eli Zaretskii <eliz@gnu.org>
13424
13425 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
13426 when decoding process output.
13427
2f63bba8
RS
134282009-03-01 Richard M Stallman <rms@gnu.org>
13429
13430 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
13431
13432 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
13433
0a9564cb
EZ
134342009-02-28 Eli Zaretskii <eliz@gnu.org>
13435
13436 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
13437 (decode_coding_emacs_mule, decode_coding_iso_2022)
13438 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13439 (decode_coding_raw_text, decode_coding_charset)
13440 (setup_coding_system, decode_eol, decode_coding, consume_chars):
13441 Honor inhibit-eol-conversion. (Bug #2186)
13442
449148b3
JR
134432009-02-28 Jason Rumney <jasonr@gnu.org>
13444
13445 * coding.c (detect_coding_charset): If not checking latin extra,
13446 fail on characters between 0x80 and 0xA0. (Bug#2354)
13447
a4aee864
EZ
134482009-02-28 Eli Zaretskii <eliz@gnu.org>
13449
13450 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 13451 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 13452
d88bee5a
GM
134532009-02-27 Glenn Morris <rgm@gnu.org>
13454
13455 * callint.c (Finteractive): Doc fix.
13456
a808f22d
KH
134572009-02-27 Kenichi Handa <handa@m17n.org>
13458
13459 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13460
caf8d60c
CY
134612009-02-27 Chong Yidong <cyd@stupidchicken.com>
13462
13463 * font.c (font_style_to_value): Set value for unknown symbols to
13464 100 instead of 255.
b61137ea
CY
13465 (weight_table, slant_table, width_table): Treat "unspecified" as
13466 the default value.
caf8d60c 13467
1a0de25c
JB
134682009-02-26 Juanma Barranquero <lekktu@gmail.com>
13469
13470 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13471
8fc45744
JB
134722009-02-25 Juanma Barranquero <lekktu@gmail.com>
13473
107bd7d1
JB
13474 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13475 error as soon as a recursive load is detected.
8fc45744 13476
f097e223
AR
134772009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13478
13479 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13480 before caching.
13481
8810a12f
KH
134822009-02-24 Kenichi Handa <handa@m17n.org>
13483
13484 * fontset.c (fontset_find_font): Fix the condition for checking
13485 unavailable font.
13486
2c7d1565
GM
134872009-02-24 Glenn Morris <rgm@gnu.org>
13488
13489 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13490 whitespace that confuses documentation.
13491
a20878b6
MB
134922009-02-23 Miles Bader <miles@gnu.org>
13493
13494 * process.c (Flist_system_processes, Fprocess_attributes)
13495 (syms_of_process): Rename `system-process-attributes' to
13496 `process-attributes'.
13497
b3b58c01
AS
134982009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13499
1b3b981b
AS
13500 * coding.h (struct coding_system): Make safe_charsets a pointer to
13501 unsigned char.
13502 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13503 being 255.
13504 (SAFE_CHARSET_P): Likewise.
13505 (setup_iso_safe_charsets): Properly setup safe_charsets.
13506 (Fdefine_coding_system_internal): Likewise.
13507 (setup_coding_system): Likewise. Remove unneeded casts.
13508 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
13509 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13510 Remove unneeded casts.
1b3b981b 13511
b3b58c01
AS
13512 * insdel.c (del_range_2): Don't modify gap contents when called
13513 from decode_coding_object. (Bug#1809)
13514
0b6f228c
CY
135152009-02-21 Chong Yidong <cyd@stupidchicken.com>
13516
13517 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13518 Qfont_object.
13519 (Ftype_of): Recognize font objects.
13520
13521 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13522
bba3e508
SM
13523 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13524 Definitions moved to data.c.
0b6f228c 13525
52f8870b
AR
135262009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13527
13528 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13529 async_iconified. Based on a patch by Christian Lynbech
13530 <christian.lynbech@tieto.com>.
13531 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13532
7087d5e9
GM
135332009-02-20 Glenn Morris <rgm@gnu.org>
13534
13535 * syntax.c (Fskip_chars_forward): Fix doc typo.
13536
41d2ceef
CY
135372009-02-20 Chong Yidong <cyd@stupidchicken.com>
13538
13539 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13540
1a3b7ca6
CY
135412009-02-19 Chong Yidong <cyd@stupidchicken.com>
13542
13543 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13544
73cce38d
KH
135452009-02-19 Kenichi Handa <handa@m17n.org>
13546
13547 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13548 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13549
a51092ee
DN
135502009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13551
13552 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13553
c423ecca
KH
135542009-02-18 Kenichi Handa <handa@m17n.org>
13555
13556 * font.c (font_check_otf_features): Fix handling of `nil' element.
13557 (Ffont_spec): Describe :lang and :otf in the docstring.
13558
4c1958f4
AS
135592009-02-16 Andreas Schwab <schwab@suse.de>
13560
13561 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13562 string.
13563
5704f39a
KH
135642009-02-16 Kenichi Handa <handa@m17n.org>
13565
13566 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13567 (Bug#1723)
5704f39a 13568
8f0085aa
CY
135692009-02-14 Chong Yidong <cyd@stupidchicken.com>
13570
a057d86a 13571 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13572
13573 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13574 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13575
aff01dd9
EZ
135762009-02-14 Eli Zaretskii <eliz@gnu.org>
13577
13578 * msdos.c (MAX_SCREEN_BUF): New macro.
13579 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13580 Encode the entire run of glyphs sharing the same face, instead of
13581 doing that one glyph at a time (fixes a bug with displaying
13582 double-size characters).
13583
ba301db3
AR
135842009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13585
13586 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13587
13588 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13589 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13590 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13591
13592 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13593 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13594
51d861de
SM
135952009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13596
ac146f82 13597 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13598 invisible areas.
13599
7fed8996
JR
136002009-02-12 Jason Rumney <jasonr@gnu.org>
13601
631ea4fb
JR
13602 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13603 (add_font_entity_to_list): Call check_face_name even when family
13604 is unspecified.
13605
cb4a3e42
JR
13606 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13607 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13608 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13609
7fed8996 13610 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13611 raster fonts. (Bug#2219)
7fed8996 13612
895416e3
KH
136132009-02-12 Kenichi Handa <handa@m17n.org>
13614
13615 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13616 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13617 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13618 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13619 (find_automatic_composition): While looking forward and backward,
13620 check static composition. Fix where to stop looking forward.
13621 (composition_adjust_point): Fix checking of static composition.
13622 (Fcomposition_get_gstring): Pay attention to
1dacf998 13623 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13624
13625 * lisp.h (fast_looking_at): Extern it.
13626
13627 * search.c (fast_looking_at): New function.
13628
51d861de 13629 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13630 <struct glyph>.u.cmp.to.
13631 (append_composite_glyph): Likewise.
13632
51d861de 13633 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13634 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13635 composition.
51d861de 13636 (append_composite_glyph): Adjust for the change of
895416e3
KH
13637 <strcut glyph>.u.cmp.to.
13638
8510724d
JB
136392009-02-11 Juanma Barranquero <lekktu@gmail.com>
13640
13641 * casetab.c (init_casetab_once):
13642 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13643 * font.c (font_update_lface):
13644 * fontset.c (Fnew_fontset):
13645 * ftfont.c (ftfont_drive_otf):
13646 * xfont.c (xfont_open):
13647 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13648
294fa707
SM
136492009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13650
13651 * fileio.c (Fwrite_region): !NILP -> CONSP.
13652
b5bfebec
AS
136532009-02-10 Andreas Schwab <schwab@suse.de>
13654
13655 * process.c (send_process): Properly relocate pointer into data
adab88bd 13656 when using encoded data. (Bug#2272)
b5bfebec 13657
cb84a2be
KH
136582009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13659
13660 * coding.c (detect_coding_charset): Fix previous change.
13661
89e09428
JR
136622009-02-08 Jason Rumney <jasonr@gnu.org>
13663
13664 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13665 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13666
4470a277
AS
136672009-02-07 Andreas Schwab <schwab@suse.de>
13668
13669 * unexelf.c (unexec): Fix error message.
13670
3175b12a
AR
136712009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13672
13673 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13674 when modal window is active. (Bug #2152)
3175b12a
AR
13675 (applicationShouldTerminate:): Remove now-unneeded while loop
13676 around NSRunAlertPanel.
13677
13678 * nsmenu.m (popupSession): New file-global variable.
13679 (pop_down_menu): End the popupSession before closing dialog.
13680 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13681 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13682 don't query NSApp for events (just sleep instead).
13683
8434d0b8
EZ
136842009-02-07 Eli Zaretskii <eliz@gnu.org>
13685
51d861de
SM
13686 * coding.c (syms_of_coding) <translation-table-for-input>:
13687 Modify doc string to discourage use for character code unification.
8434d0b8 13688
aa82edfd
CY
136892009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13690
13691 * atimer.c (run_timers): Update pending_atimers.
13692
2d283c7c
CY
136932009-02-06 Chong Yidong <cyd@stupidchicken.com>
13694
eb306cab
CY
13695 * image.c (svg_load_image): Fix last change.
13696
2d283c7c
CY
13697 * xfns.c (Fx_create_frame): Signal an error if no font is
13698 found (Bug#2147).
13699
4d8e170e
JB
137002009-02-05 Juanma Barranquero <lekktu@gmail.com>
13701
13702 * character.c (syms_of_character) <script-representative-chars>:
13703 Fix typo in docstring.
13704
c96169a0
AR
137052009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13706
13707 * nsmenu.m (pop_down_menu): New function.
13708 (ns_popup_dialog): Call it on unwind.
13709 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13710 call timer_check() (Bug#2154).
13711 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13712 handling_signal is set.
13713 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13714
31fd7c5c 13715 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13716
13717 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13718
13719 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13720
51d861de
SM
13721 * keyboard.c (poll_for_input_1, handle_async_input):
13722 Set handling_signal under HAVE_NS.
c96169a0 13723
aacd8ba1
GM
137242009-02-04 Glenn Morris <rgm@gnu.org>
13725
13726 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13727
4cb75c4b
KH
137282009-02-04 Kenichi Handa <handa@m17n.org>
13729
13730 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13731
13732 * charset.c (Fchar_charset): New optional arg restriction.
13733
13734 * coding.h (coding_system_charset_list): Extern it.
13735
13736 * coding.c (coding_system_charset_list): New function.
13737
13738 * composite.c: Include coding.h and termhooks.h.
13739 (composition_gstring_p): Fix for the terminal case.
13740 (composition_gstring_width): Likewise.
13741 (fill_gstring_body): Likewise.
13742 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13743 the frame.
13744 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13745 is within a composition.
867d4bb3 13746 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13747
13748 * term.c (encode_terminal_code): Fix handling of composition.
13749 (produce_composite_glyph): For static composition, get pixel_width
13750 from struct composition.
13751
826ba17e
AS
137522009-02-02 Andreas Schwab <schwab@suse.de>
13753
13754 * unexelf.c (unexec): Handle unaligned bss offset.
13755
8ad093db
AR
137562009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13757
13758 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13759 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13760
8ad093db
AR
13761 * keyboard.c (handle_interrupt): Don't call
13762 quit_throw_to_read_char() under NS.
d0a76a6e 13763
8ad093db
AR
13764 * blockinput.h: Remove NS-specific code.
13765
4d18a7a2
DN
137662009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13767
db878925
DN
13768 * dispnew.c (window_change_signal): Don't try to get the size of a
13769 suspended tty frame.
13770 * term.c (Fresume_tty): Resize if the size has changed while the
13771 tty was suspended.
13772
4d18a7a2
DN
13773 * alloc.c (mark_stack): Properly conditionalize previous change.
13774
8984df7c
JB
137752009-01-30 Juanma Barranquero <lekktu@gmail.com>
13776
13777 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13778 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13779 Remove; this code is not used on Windows.
13780
75f4f1ac
EZ
137812009-01-30 Eli Zaretskii <eliz@gnu.org>
13782
13783 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13784 EOLs that also has stray ^M characters.
13785
07a1e794
JB
137862009-01-30 Juanma Barranquero <lekktu@gmail.com>
13787
13788 * atimer.c (run_timers, alarm_signal_handler):
13789 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13790 * w32inevt.c (w32_console_read_socket):
13791 * w32term.c (w32_read_socket):
13792 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13793
a8b11cc9
CY
137942009-01-30 Chong Yidong <cyd@stupidchicken.com>
13795
13796 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13797 Initialize it as a relative filename pattern.
13798 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13799 (Fcall_process_region): Simplify temp file creation using
13800 temporary-file-directory.
13801
c279587b
EZ
138022009-01-29 Eli Zaretskii <eliz@gnu.org>
13803
13804 * msdos.c: Rename pending_signals to msdos_pending_signals.
13805 (sig_suspender, sigprocmask): Adjust.
13806
a8fe3242
CY
138072009-01-29 Chong Yidong <cyd@stupidchicken.com>
13808
13809 * keyboard.c (pending_signals): New var.
13810 (poll_for_input, input_available_signal, init_keyboard): Set it.
13811 (process_pending_signals): New function.
13812
13813 * lisp.h (QUIT): Check pending_signals instead of
13814 interrupt_input_pending. Use process_pending_signals.
13815
51d861de 13816 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13817
51d861de 13818 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13819
13820 * sysdep.c (emacs_write): Use process_pending_signals.
13821
13822 * xterm.c (XTread_socket): Update pending_signals.
13823
13824 * w32term.c (w32_read_socket): Update pending_signals.
13825
13826 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13827
6570a1c4
KH
138282009-01-29 Kenichi Handa <handa@m17n.org>
13829
13830 * xftfont.c (xftfont_has_char): New function.
13831 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13832
d72a4afa
AR
138332009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13834
13835 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13836 under GNUstep.
13837 (ns_query_color): New declaration.
13838
13839 * nsterm.m (ns_confirm_quit): New variable.
13840 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13841 (EmacsApp-applicationShouldTerminate:): Use it.
13842 (EmacsPrefsController): Let user set it.
13843 (ns_query_color): New function.
13844 (ns_defined_color): Use it.
13845 (ns_initialize): Drop.
13846 (ns_term_init): Add two lines from ns_initialize(), and set
13847 input_interrupt_mode to nil.
13848
13849 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13850 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13851
9fe78804
KH
138522009-01-28 Kenichi Handa <handa@m17n.org>
13853
13854 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13855 (fontset_get_font_group): Remember that no font-group is specified
13856 for C.
9fe78804 13857
fa57de36
CY
138582009-01-27 Chong Yidong <cyd@stupidchicken.com>
13859
930600e9
CY
13860 * fns.c (concat): Check for string overflow (bug#1787).
13861
fa57de36
CY
13862 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13863 Quadruple undo limits (bug#1501).
13864
7179ce7b
KH
138652009-01-27 Kenichi Handa <handa@m17n.org>
13866
13867 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13868 directly use GT_Get_Char_index.
13869
13870 * xftfont.c (struct xftfont_info): New member `index'.
13871
13872 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13873 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13874
5be8fcc0
CY
138752009-01-26 Kenichi Handa <handa@m17n.org>
13876
13877 * fontset.c (fontset_find_font): Fix handling of non-cons return
13878 value of fontset_get_font_group.
13879 (fontset_font): Revert last change.
13880
19ae3e61
JR
138812009-01-26 Jason Rumney <jasonr@gnu.org>
13882
13883 * w32font.c (w32font_list_internal): Return quickly if registry is
13884 unknown. Simplify final return.
13885 (add_font_entity_to_list): Break complex logic down into more
13886 manageable chunks. Move unknown registry check to
13887 w32font_list_internal.
13888
8612b71a
AR
138892009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13890
13891 Changes to remove Feval calls from GUI under NS.
13892
d8038940
JB
13893 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13894 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13895 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13896
13897 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13898 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13899 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13900 instead of NON_ASCII_KEYSTROKE_EVENT.
13901 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13902 (EmacsApp-applicationShouldTerminate:): Query user.
13903 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13904 instead of Feval.
13905
13906 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13907
13908 * keyboard.c (kbd_buffer_get_event): Check for it.
13909 (keys_of_keyboard): Define lispy keys for
13910 ns-put/unput-working-text.
13911
13912 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13913 versions.
13914 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13915
6288ae55
CY
139162009-01-25 Chong Yidong <cyd@stupidchicken.com>
13917
13918 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13919 setting current_buffer directly. (Bug#2044)
6288ae55 13920
289e7f8f
CY
139212009-01-24 Chong Yidong <cyd@stupidchicken.com>
13922
5ce87308 13923 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13924 any work. (Bug#1952, bug#1990).
5ce87308 13925
64cc3cf6 13926 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13927
b3243e6f
AR
139282009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13929
13930 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13931 (ns_no_defaults): New declaration.
13932 (main): Use it.
e0d2e69a 13933
d900b2af 13934 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13935
d900b2af 13936 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13937
d900b2af
AR
13938 * nsterm.m (ns_no_defaults): New variable.
13939 (ns_initialize): Don't read defaults when ns_no_defaults.
13940 (EmacsView-readSelectionFromPasteboard:)
13941 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13942 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13943 (ns_dumpglyphs_stretch): New function.
13944 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13945 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13946
e0d2e69a
AR
13947 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13948
3ac71f5d
CY
139492009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13950
13951 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13952 call for Sparc64.
13953
3fe53a83
AR
139542009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13955
13956 * nsfns.m:
13957 * nsgui.h:
13958 * nsmenu.m:
13959 * nsselect.m:
13960 * nsterm.h:
13961 * nsterm.m: Remove '23' comments that indicated code added during
13962 update from emacs-20 -> emacs-23.
13963
10f87c6f 139642009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13965
13966 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13967 ns_alternate_modifier. (Bug#1217)
a3b53a85 13968
c7cef62d
AR
13969 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13970 Display all shortcuts, including those w/o super modifier.
13971
575fb8bd
AR
13972 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13973
918b848b
CY
139742009-01-22 Chong Yidong <cyd@stupidchicken.com>
13975
13976 * fileio.c (Vwrite_region_post_annotation_function)
13977 (Vwrite_region_annotation_buffers): New vars.
13978 (build_annotations_unwind): Just reset
13979 Vwrite_region_annotation_buffers.
13980 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13981 Call write-region-post-annotation-function.
13982 (build_annotations): Add to Vwrite_region_annotation_buffers if
13983 buffer changes.
13984
a39e2539
AR
139852009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13986
13987 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13988 Tiger.
51d861de
SM
13989 * nsfns.m (ns_do_applescript):
13990 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13991
35ed44db
AR
139922009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13993
13994 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13995
cbe0b5bf
AR
139962009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13997
13998 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13999
6049d3a0
AR
14000 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14001
14002 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
14003 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14004 handle Ctrl-tab. (Bug#1841)
14005 (ns_get_color): Use unsigned long long for scanned hex string value.
14006 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 14007 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 14008 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 14009 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 14010 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 14011 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 14012 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 14013
d3810c21 14014 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 14015 DPI. (Bug#1316)
d3810c21
AR
14016 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14017 values in onTiger section.
4c7077c3 14018
e301e634
CY
140192009-01-19 Chong Yidong <cyd@stupidchicken.com>
14020
7f82490b
CY
14021 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14022 Check return value of font_spec_from_name.
64cc3cf6 14023 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
14024
14025 * font.c (font_spec_from_name): Return Qnil if font name could not
14026 be parsed.
14027 (font_parse_name): Treat a `?' character as part of an XLFD.
14028
e301e634
CY
14029 * fns.c (Fsubstring): Doc fix.
14030
1c0db158
KH
140312009-01-19 Kenichi Handa <handa@m17n.org>
14032
51d861de 14033 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14034 (ftfont_list): Likewise.
14035
acf20901
JB
140362009-01-18 Juanma Barranquero <lekktu@gmail.com>
14037
fff4e459
JB
14038 * dbusbind.c (Fdbus_register_signal):
14039 * process.c (conv_sockaddr_to_lisp):
14040 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14041
acf20901
JB
14042 * callproc.c (Fgetenv_internal): Doc fix.
14043
e7abcdfb
CY
140442009-01-16 Chong Yidong <cyd@stupidchicken.com>
14045
14046 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14047 it is not even used.
14048
b60861e6
GM
140492009-01-16 Glenn Morris <rgm@gnu.org>
14050
14051 * font.c (Ffont_variation_glyphs): Silence compiler.
14052
8db52afe
JB
140532009-01-15 Juanma Barranquero <lekktu@gmail.com>
14054
14055 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14056 Reported by David Robinow <drobinow@gmail.com>.
14057
4cddb209
KH
140582009-01-15 Kenichi Handa <handa@m17n.org>
14059
51d861de 14060 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14061
f247f67b
JR
140622009-01-14 Jason Rumney <jasonr@gnu.org>
14063
14064 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14065 never a fontset. (Bug#1562)
f247f67b 14066
f56a4450
KH
140672009-01-14 Kenichi Handa <handa@m17n.org>
14068
14069 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14070 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14071
4e99855e
CY
140722009-01-13 Chong Yidong <cyd@stupidchicken.com>
14073
14074 * font.c (font_clear_prop): If clearing the family, clear the font
14075 width index too.
14076
fff4e459 14077 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14078
24f01470
JB
140792009-01-12 Juanma Barranquero <lekktu@gmail.com>
14080
14081 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14082 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14083 functions, use sizeof.
14084
a41240a3
MR
140852009-01-12 Martin Rudalics <rudalics@gmx.at>
14086
14087 * keyboard.c (read_char): Fix case where last_nonmenu_event
14088 returned a bad value with submenus. (Bug#447)
14089
944636b8
CY
140902009-01-12 Chong Yidong <cyd@stupidchicken.com>
14091
14092 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14093 family, clear the font width index too.
14094
0dad7c6f
JR
140952009-01-11 Jason Rumney <jasonr@gnu.org>
14096
14097 * keyboard.c (cmd_error_internal): Exit when errors occur before
14098 frame creation and not in daemon mode. (Bug#1836)
14099
7c2363af
CY
141002009-01-10 Chong Yidong <cyd@stupidchicken.com>
14101
14102 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14103 of a display vector, backtrack.
14104 (try_window_reusing_current_matrix): Check glyph type before
14105 referencing charpos member.
14106
97b1b294
EZ
141072009-01-10 Eli Zaretskii <eliz@gnu.org>
14108
14109 Fix Bug #876:
14110
14111 * coding.c (inhibit_null_byte_detection): New variable.
14112 (detect_coding, detect_coding_system): Don't pay attention to null
14113 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14114 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14115 <inhibit-iso-escape-detection>: Doc fix.
14116
4624b6e3
JR
141172009-01-09 Jason Rumney <jasonr@gnu.org>
14118
14119 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14120 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14121 Only report Unicode Plane 2 fonts as unicode-sip.
14122
323b840c
CY
141232009-01-09 Chong Yidong <cyd@stupidchicken.com>
14124
51d861de
SM
14125 * xfaces.c (Fx_font_family_list): Delete function.
14126 Move compatibility version to faces.el.
323b840c 14127
51d861de 14128 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14129
eba7400d
MR
141302009-01-09 Martin Rudalics <rudalics@gmx.at>
14131
14132 * frame.c (x_set_frame_parameters): Remember requested value for
14133 fullscreen before it's reset by the parameter handler.
14134
4b09796d
GM
141352009-01-09 Glenn Morris <rgm@gnu.org>
14136
14137 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14138 (last_command_event): ... and update all users.
4b09796d
GM
14139 (last_input_char): For clarity, rename to...
14140 (last_input_event): ... and update all users.
14141 (last-command-char, last-input-char): Move to subr.el as aliases.
14142 * cmds.c, commands.h: Update for last_command_char rename.
14143
14ccea62
CY
141442009-01-08 Chong Yidong <cyd@stupidchicken.com>
14145
51d861de 14146 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14147
5f004711
JR
141482009-01-08 Jason Rumney <jasonr@gnu.org>
14149
14150 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14151 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14152 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14153 Don't declare.
fff4e459 14154 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
14155 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14156
b71f6f73
KH
141572009-01-07 Kenichi Handa <handa@m17n.org>
14158
50b06221 14159 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 14160 remember the coding system used for decoding in
50b06221
KH
14161 coding_system (Bug#1039).
14162
b71f6f73 14163 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 14164 breaking the loop. (Bug#870)
b71f6f73
KH
14165 (decode_coding_utf_16, decode_coding_emacs_mule)
14166 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14167 (decode_coding_charset): Likewise.
14168
56f668f7
MR
141692009-01-05 Martin Rudalics <rudalics@gmx.at>
14170
14171 * frame.c (x_set_frame_parameters): Make sure height (width) get
14172 applied when fullwidth (fullheight) is set. (Bug#1522)
14173
5da9424d
JB
141742009-01-04 Juanma Barranquero <lekktu@gmail.com>
14175
14176 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14177 (utc_base): Declare as ULONGLONG, not long double.
14178 (convert_time_raw): Delete.
14179 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14180 (initialize_utc_base): New function.
14181 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14182 (convert_from_time_t): Use initialize_utc_base; compute result with
14183 64-bit arithmetic.
14184 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14185
c4605e09
EZ
141862009-01-03 Eli Zaretskii <eliz@gnu.org>
14187
9acef61c 14188 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
14189 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14190 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14191 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14192 [!subprocesses]: Define.
14193 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14194 (Flist_system_processes, Fsystem_process_attributes)
14195 [!subprocesses]: Call list_system_processes and
14196 system_process_attributes instead of returning Qnil.
14197
9acef61c
JB
14198 * dosfns.c (system_process_attributes, list_system_processes):
14199 New functions.
c4605e09
EZ
14200
14201 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14202
14203 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14204 Don't use the default (no-op) implementation.
14205
8b7d0a16
JR
142062009-01-03 Jason Rumney <jasonr@gnu.org>
14207
a6d46bc1
JR
14208 * keyboard.c (parse_modifiers_uncached): Wheel events are
14209 clicks (bug#687).
14210
8b7d0a16
JR
14211 * w32term.c (x_query_colors, x_query_color): New functions.
14212
14213 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14214 (svg_load_image): Cast returned pointers from dynamically loaded
14215 functions. Eliminate W32 specific code.
14216
bfe11752
DN
142172009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14218
89e2438a
DN
14219 * nsfns.m (x_set_foreground_color, x_set_background_color)
14220 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14221 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14222 x_ prefix instead of ns_. Update references.
14223 (syms_of_nsfns): Add a FIXME comment.
14224
14225 * nsterm.m (x_set_cursor_type): New prototype.
14226 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14227
bfe11752
DN
14228 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14229 for Solaris instead of incorrectly providing Qutime and Qcutime.
14230
031da700
EZ
142312009-01-02 Eli Zaretskii <eliz@gnu.org>
14232
14233 * w32.c (process_times): Compute sum of utime and stime.
14234 (system_process_attributes): Add Qtime to the alist.
14235
14236 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14237 and add them to the alist.
14238
14239 * process.c (top level) <Qtime, Qctime>: New variables.
14240 (syms_of_process): staticpro them.
14241 (Fsystem_process_attributes): Add their documentation to the doc
14242 string.
14243
14244 * process.h: Declare Qtime and Qctime.
14245
df23bf08
JR
142462009-01-02 Jason Rumney <jasonr@gnu.org>
14247
9acef61c 14248 * image.c (Qgobject): New symbol.
df23bf08
JR
14249 (syms_of_image): Initialize it.
14250 (init_svg_functions): Load some functions from gobject library.
14251
5bbdf7aa
DN
142522009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14253
14254 * frame.c (make_terminal_frame): Remove redundant code and useless
14255 block.
14256
63136da6
AS
142572009-01-01 Andreas Schwab <schwab@suse.de>
14258
14259 * process.c (conv_sockaddr_to_lisp): Add workaround for
14260 getsockname bug on BSD.
14261
9ef69046
CY
142622009-01-01 Chong Yidong <cyd@stupidchicken.com>
14263
d6fafbe0
CY
14264 * xfns.c (x_create_tip_frame): Set border width of the X window.
14265
51d861de 14266 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 14267
f9c34147
JR
142682009-01-01 Jason Rumney <jasonr@gnu.org>
14269
9acef61c 14270 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
14271 Don't block input, as per earlier xterm.c changes.
14272
f5497e45
AR
142732008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14274
14275 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14276 (ns_appkit_version_int): New function.
14277 (x-server-version): Use ns_appkit_version_int and follow 21+
14278 convention of returning 3 integers.
14279
c19cab20
KH
142802008-12-30 Kenichi Handa <handa@m17n.org>
14281
14282 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
14283 (CHAR_SURROGATE_PAIR_P): New macro.
14284
14285 * font.h (struct font_driver): New member get_variation_glyphs.
14286
9acef61c 14287 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
14288 (Ffont_variation_glyphs): New function.
14289 (syms_of_font): Defsubr it.
14290
14291 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
14292 ftfont_variation_glyphs.
14293 (setup_otf_gstring): New function.
14294 (ftfont_drive_otf): Use it.
14295 (ftfont_shape_by_flt): Handle variation selector.
14296 (ftfont_variation_glyphs): New function.
14297
28cd591f
MR
142982008-12-30 Martin Rudalics <rudalics@gmx.at>
14299
14300 * frame.c (Vemacs_iconified): Remove.
14301
7f714baf
JR
143022008-12-30 Jason Rumney <jasonr@gnu.org>
14303
14304 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 14305 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 14306
9d2d22ab
CY
143072008-12-30 Chong Yidong <cyd@stupidchicken.com>
14308
14309 * indent.c (Fvertical_motion): Don't advance iterator if we have
14310 reseated to the desired position.
14311
14312 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
14313 checking for pos match.
14314
545312c2
KH
143152008-12-30 Kenichi Handa <handa@m17n.org>
14316
1ede3eb6
KH
14317 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
14318 just get the low 8-bit of the code.
14319
545312c2
KH
14320 * font.c (font_intern_prop): Validate str as multibyte.
14321
bd7bbf29
DN
143222008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14323
31e0750e
DN
14324 * dispextern.h (struct face): Move lface and hash from the middle
14325 of bitfields.
14326
bd7bbf29
DN
14327 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
14328
b5672e7c
DN
143292008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14330
14331 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
14332 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
14333 instead of intervals.h.
14334
d704470f
AS
143352008-12-26 Andreas Schwab <schwab@suse.de>
14336
14337 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
14338 cons.
14339
54b33868
MR
143402008-12-26 Martin Rudalics <rudalics@gmx.at>
14341
14342 * textprop.c (Qminibuffer_prompt): New variable.
14343 (syms_of_textprop): Initialize it.
14344 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
14345 in minibuffer-prompt face. (Bug#1662)
14346
40b615d6
JR
143472008-12-25 Jason Rumney <jasonr@gnu.org>
14348
14349 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
14350
baae5c2d
JR
143512008-12-24 Jason Rumney <jasonr@gnu.org>
14352
14353 * ralloc.c (r_alloc_reset_variable): New function.
14354
14355 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 14356 record of what points where. (Bug#716)
baae5c2d 14357
a9051c88
DN
143582008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
14359
14360 * minibuf.c (read_minibuf): Follow the non-interactive case when
14361 running as a daemon, before detaching.
14362
8b146312
AS
143632008-12-22 Andreas Schwab <schwab@suse.de>
14364
14365 * buffer.c (init_buffer): Use realloc instead of xrealloc.
14366 * gtkutil.c (free_widget_value): Use xfree instead of free.
14367
56f2de10
MR
143682008-12-22 Martin Rudalics <rudalics@gmx.at>
14369
14370 * frame.c (delete_frame): New function derived from
14371 Fdelete_frame to handle Qnoelisp value for FORCE argument.
14372 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
14373 (Fdelete_frame): Call delete_frame. Remove line from doc-string
14374 saying that FORCE non-nil doesn't run `delete-frame-functions'.
14375 * frame.h: Extern delete_frame.
14376 * window.c (window_loop):
14377 * terminal.c (delete_terminal):
14378 * xterm.c (x_connection_closed):
14379 * xfns.c (Fx_hide_tip):
9acef61c 14380 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 14381
1fc200d6
JR
143822008-12-21 Jason Rumney <jasonr@gnu.org>
14383
14384 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
14385 when character maps to .notdef character.
14386
5e252df2
SM
143872008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
14388
14389 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
14390
99b72cc4
JR
143912008-12-20 Jason Rumney <jasonr@gnu.org>
14392
14393 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 14394 a graphical frame on Windows. (Bug#1325)
99b72cc4 14395
acc49a52
JD
143962008-12-20 Jan Djärv <jan.h.d@swipnet.se>
14397
14398 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
14399
6ea15123
CY
144002008-12-20 Chong Yidong <cyd@stupidchicken.com>
14401
14402 * minibuf.c (Fread_buffer): Doc fix.
14403
b2dab6c8
JR
144042008-12-20 Jason Rumney <jasonr@gnu.org>
14405
54ea0c87 14406 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 14407 server name in UNC paths. (Bug#719)
54ea0c87 14408
b2dab6c8 14409 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 14410 charbuf. (Bug#1035)
b2dab6c8 14411
6d1921be
DN
144122008-12-19 Daniel Engeler <engeler@gmail.com>
14413
14414 * sysdep.c (serial_configure): Fix typo.
14415
53934c98
DN
144162008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14417
14418 * sysdep.c: Include alloca.h.
f4f634e8
DN
14419 (system_process_attributes): Add implementation for Solaris.
14420
14421 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 14422
06e111a6
DN
144232008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14424
14425 Reorganize implementation of Flist_system_processes and
14426 Fsystem_process_attributes. No functional changes.
14427 * process.c: Don't #include pwd.h, grp.h and limits.h.
14428 (Flist_system_processes): Just call list_system_processes.
14429 (Fsystem_process_attributes): Just call system_process_attributes.
14430 (procfs_list_system_processes, time_from_jiffies)
14431 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14432 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
14433
14434 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
14435 (list_system_processes): Rename from
14436 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
14437 Provide a do nothing implementation.
14438 (system_process_attributes): Rename from
14439 procfs_list_system_processes.
14440 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 14441 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
14442
14443 * w32.c (list_system_processes): Rename from
14444 w32_list_system_processes.
14445 (system_process_attributes): Rename from
14446 w32_system_process_attributes.
14447
14448 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14449
14450 * process.h (w32_list_system_processes)
14451 (w32_system_process_attributes): Remove.
362654a6
JB
14452 (list_system_processes, system_process_attributes):
14453 New prototypes.
06e111a6 14454
6a705b23
KH
144552008-12-19 Kenichi Handa <handa@m17n.org>
14456
14457 * xfont.c (xfont_decode_coding_xlfd): New function.
14458 (xfont_encode_coding_xlfd): New function.
14459 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14460 (xfont_list): Decode and encode XLFD by iso-8859-1.
14461 (xfont_match): Likewise.
14462 (xfont_list_family): Likewise.
14463 (xfont_open): Likewise.
14464
d66c0241 14465 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
14466 names are utf-8.
14467
d66c0241 14468 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
14469 names are utf-8.
14470
5a130941
JD
144712008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14472
14473 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14474 changed.
bfd20325
JD
14475 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14476 clicked on a detached tool bar button.
5a130941 14477
fd95644b
DN
144782008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14479
14480 * emacs.c (main): Print and error and exit when no data is read
14481 from the pipe.
14482
e6eee6ae
JR
144832008-12-17 Jason Rumney <jasonr@gnu.org>
14484
14485 * w32font.c (w32font_has_char): Always return -1.
14486
a35dd56b
KH
144872008-12-16 Kenichi Handa <handa@m17n.org>
14488
14489 * font.c (font_open_entity): Fix previous change.
14490
0e3635c2
DN
144912008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14492
14493 * process.c: Include <limits.h>.
14494
d4835507 144952008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
14496
14497 * font.c (font_update_drivers): Fix mistake in reconstructing the
14498 driver list.
14499
145002008-12-16 Chong Yidong <cyd@stupidchicken.com>
14501
14502 * font.c (font_clear_cache): Fix format of font cache data.
14503
e2cbc401
CY
145042008-12-15 Chong Yidong <cyd@stupidchicken.com>
14505
14506 * xftfont.c (xftfont_open): Free Xft font pattern if
14507 XftFontOpenPattern fails.
14508
14509 * xterm.c (x_free_frame_resources): Remove extraneous call to
14510 free_frame_faces.
14511
b131d535
CY
145122008-12-13 Chong Yidong <cyd@stupidchicken.com>
14513
14514 * xterm.c (x_delete_display): Move xim_close_dpy call to
14515 x_delete_terminal.
14516 (x_delete_terminal): Call xim_close_dpy.
14517
e6df5336
JR
145182008-12-13 Jason Rumney <jasonr@gnu.org>
14519
14520 * w32font.c (intern_font_name): New function.
14521 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14522 (w32font_open_internal, Fx_select_font): Decode font name.
14523 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14524
14525 * w32font.h (intern_font_name): Declare new function.
14526
14527 * w32uniscribe.c (add_opentype_font_name_to_list):
14528 Use intern_font_name.
14529
20d68145
CY
145302008-12-13 Chong Yidong <cyd@stupidchicken.com>
14531
9f2554de
CY
14532 * frame.c (Fdelete_frame): Call free_font_driver_list.
14533
3d9bec9a
CY
14534 * font.c (free_font_driver_list): Implement missing function.
14535
20d68145
CY
14536 * w32term.c (w32_term_init): Don't initialize the image cache
14537 here; it will be done in init_frame_faces.
14538
14539 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14540 (struct x_display_info): Remove unused member null_pixel.
14541 New member xim_callback_data.
20d68145
CY
14542
14543 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14544 (xim_initialize): Save pointer to callback function data.
14545 (xim_close_dpy): Free callback function data. Call XCloseIM,
14546 reverting 2008-11-04 change by David Smith.
14547 (x_term_init): Don't initialize the image cache here; it will be
14548 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14549 (x_delete_display): Free x_dnd_atoms member.
14550
96f9306b
KH
145512008-12-13 Kenichi Handa <handa@m17n.org>
14552
ef1b0ba7 14553 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14554 Argument type changed. Handle a font-spec too.
96f9306b 14555 (font_score): Check Vface_font_rescale_alist.
6dec9044 14556 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14557
ef1b0ba7 14558 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14559
8d5b4964
CY
145602008-12-13 Chong Yidong <cyd@stupidchicken.com>
14561
14562 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14563
e6df5336
JR
145642008-12-12 Jason Rumney <jasonr@gnu.org>
14565
bba3e508
SM
14566 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14567 Set Vwindow_system_version to the real w32 major version.
e6df5336 14568
97c6058a
DN
145692008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14570
14571 * term.c (init_tty): Move setting the terminal name before the
14572 potential user: maybe_fatal.
14573
ec4e88d7
CY
145742008-12-11 Chong Yidong <cyd@stupidchicken.com>
14575
ef1b0ba7 14576 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14577 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14578
b4233ec9
JR
145792008-12-11 Jason Rumney <jasonr@gnu.org>
14580
8ec71e23 14581 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14582 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14583
b4233ec9 14584 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14585 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14586
011a0143
JB
145872008-12-11 Juanma Barranquero <lekktu@gmail.com>
14588
14589 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14590
3c309f34
JB
145912008-12-11 Juanma Barranquero <lekktu@gmail.com>
14592
14593 * process.c (Fsystem_process_attributes, syms_of_process):
14594 Fix typo in name of Ssystem_process_attributes.
14595 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14596
fedc6ab5
JB
145972008-12-11 Juanma Barranquero <lekktu@gmail.com>
14598
14599 * syntax.c (Fmodify_syntax_entry): Doc fix.
14600
ba3de0e8
JB
146012008-12-10 Juanma Barranquero <lekktu@gmail.com>
14602
14603 * font.c (Ffont_spec): Move usage to end of docstring.
14604
174f1c74
JR
146052008-12-10 Jason Rumney <jasonr@gnu.org>
14606
14607 * w32font.c (Qcham): New symbol.
14608 (font_supported_scripts): Add cham, and comments for other new
14609 scripts in bitfield from OpenType spec.
9d32f818
JR
14610 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14611 contain characters beyond the bmp.
174f1c74 14612
7b649478
KH
146132008-12-10 Kenichi Handa <handa@m17n.org>
14614
14615 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14616 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14617 Qunicode_sip.
14618
2133e2d1
JB
146192008-12-10 Juanma Barranquero <lekktu@gmail.com>
14620
14621 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14622 (Fcoding_system_put): Use QCdefault_char.
14623 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14624
9af886ee
CY
146252008-12-09 Chong Yidong <cyd@stupidchicken.com>
14626
74d819eb
CY
14627 * xftfont.c (syms_of_xftfont): Fix typo.
14628
4ccfa1c0 14629 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14630
7c19d3ae
DN
146312008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14632
14633 * emacs.c (main): Close daemon_pipe on exec.
14634
567826bb
CY
146352008-12-08 Chong Yidong <cyd@stupidchicken.com>
14636
14637 * termchar.h (struct tty): New members termcap_term_buffer and
14638 termcap_strings_buffer.
14639
14640 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14641 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14642 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14643 All callers changed.
14644 (init_tty): Store termcap data and string buffers in new struct
14645 tty members termcap_term_buffer and termcap_strings_buffer.
14646 (delete_tty): Free them.
4ccfa1c0 14647 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14648
aa96c42b
SZ
146492008-12-07 Seiji Zenitani <zenitani@mac.com>
14650
14651 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14652 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14653
b7e1d896
CY
146542008-12-06 Chong Yidong <cyd@stupidchicken.com>
14655
14656 * coding.c (make_conversion_work_buffer): Disable buffer
14657 modification hooks in the work buffer.
14658
b5ec91a5
EZ
146592008-12-05 Eli Zaretskii <eliz@gnu.org>
14660
14661 * process.c (procfs_system_process_attributes): If `nread' has a
14662 negative value, assign zero to it.
14663
a5d2a52b
CY
146642008-12-05 Chong Yidong <cyd@stupidchicken.com>
14665
68c5540b 14666 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14667
7bf1bb21
KH
146682008-12-05 Kenichi Handa <handa@m17n.org>
14669
14670 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14671 second character is a combining character.
14672
2fdc7d00
EZ
146732008-12-05 Eli Zaretskii <eliz@gnu.org>
14674
14675 * process.c (procfs_system_process_attributes): Don't use cmd,
14676 cmdsize, and q without initializing them first.
14677
bf6bfba8
JR
146782008-12-04 Jason Rumney <jasonr@gnu.org>
14679
14680 * w32font.c (w32font_draw): Initialize orig_clip before getting
14681 it, and delete it when finished.
14682
a3b1a468
DN
146832008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14684
14685 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14686 case when running as a daemon before detaching.
14687
8b8be8eb
JB
146882008-12-03 Juanma Barranquero <lekktu@gmail.com>
14689
805f2638 14690 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14691
b1bde622
KH
146922008-12-03 Kenichi Handa <handa@m17n.org>
14693
e500c47d
KH
14694 * font.c (font_at): Set `multibyte' at first.
14695
ca516334
KH
14696 * coding.c (decode_coding_charset): Check type of an element of
14697 vector VALIDS.
7bf1bb21 14698 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14699
4ccfa1c0 14700 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14701 (font_for_char): Likewise.
14702
1e5ecd37
CY
147032008-12-03 Chong Yidong <cyd@stupidchicken.com>
14704
d5b01609 14705 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14706 (font_update_lface): Handle fonts with corrupted size specs,
14707 i.e. non-int and non-float.
d5b01609 14708
11e3a6e4 14709 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14710 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14711 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14712
ab06788b
CY
14713 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14714
1e5ecd37 14715 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14716 underline_minimum_offset for underline position.
1e5ecd37 14717
63c125ab
DN
147182008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14719
14720 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14721
14722 * character.c (c_string_width): Specify the type for LEN.
14723
3a8406e1
KH
147242008-12-03 Kenichi Handa <handa@m17n.org>
14725
4ccfa1c0 14726 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14727 (decode_coding_utf_8): Likewise.
4ccfa1c0 14728 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14729 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14730
651df7d9
CY
147312008-12-02 Chong Yidong <cyd@stupidchicken.com>
14732
14733 * keyboard.c (make_lispy_position): Only use PT if the selected
14734 window is current.
14735
1f625c6c
AS
147362008-12-02 Andreas Schwab <schwab@suse.de>
14737
f7741ce9
AS
14738 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14739
1f625c6c
AS
14740 * doprnt.c (doprnt1): Fix size of charbuf.
14741
92bc2678
CY
147422008-12-02 Chong Yidong <cyd@stupidchicken.com>
14743
14744 * keyboard.c (timer_check): Revert last change.
14745
93b9e8cc
JB
147462008-12-02 Juanma Barranquero <lekktu@gmail.com>
14747
14748 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14749
fd7a37d5
JB
147502008-12-01 Juanma Barranquero <lekktu@gmail.com>
14751
14752 * makefile.w32-in: Update dependencies.
14753 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14754
c115043b
AS
147552008-12-01 Andreas Schwab <schwab@suse.de>
14756
14757 * font.c (register_font_driver): Use xmalloc.
14758 (font_put_frame_data): Likewise.
14759
f5668d2a
CY
147602008-12-01 Chong Yidong <cyd@stupidchicken.com>
14761
860d96be
CY
14762 * xfaces.c (realize_x_face): Make abort condition clearer.
14763
f5668d2a
CY
14764 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14765
379c17e7
CY
147662008-11-30 Chong Yidong <cyd@stupidchicken.com>
14767
14768 * keyboard.c (timer_check): After a timer runs, ensure that the
14769 selected window's buffer is current.
14770
35f36d65
JB
147712008-11-30 Juanma Barranquero <lekktu@gmail.com>
14772
f952c61c
JB
14773 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14774 It was accidentally restored by the Unicode merge.
14775
35f36d65
JB
14776 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14777
b23077df
JB
147782008-11-29 Juanma Barranquero <lekktu@gmail.com>
14779
14780 * w32proc.c: Include "coding.h".
14781 (Fw32_short_file_name): Encode filename passed to Windows API.
14782 (Fw32_long_file_name): Encode filename passed to Windows API and
14783 decode back the result. (Bug#1433)
14784
b8ebe9dd
KH
147852008-11-29 Kenichi Handa <handa@m17n.org>
14786
8cc53f96
KH
14787 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14788 not before accessing it.
14789
b8ebe9dd
KH
14790 * charset.c (Fdefine_charset_internal): After calculating
14791 min_char, max_char, and fastmap, copy the charset structure again.
14792 (encode_char): Fix the previous change.
14793
59bc82c0
SZ
147942008-11-28 Seiji Zenitani <zenitani@mac.com>
14795
14796 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14797
14798 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14799
14800 * nsterm.m (x_set_frame_alpha): New function.
14801
32247e3d
EZ
148022008-11-27 Eli Zaretskii <eliz@gnu.org>
14803
14804 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14805
b003e5ff
JB
148062008-11-27 Juanma Barranquero <lekktu@gmail.com>
14807
14808 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14809 pointer to check_face_name.
14810
708550f5
KH
148112008-11-27 Kenichi Handa <handa@m17n.org>
14812
14813 * category.h (SET_CATEGORY_SET): Call set_category_set.
14814 (set_category_set): Extern it.
14815
14816 * category.c (hash_get_category_set): New function.
bba3e508 14817 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14818 char_table_ref_and_range. Call hash_get_category_set to get a
14819 category set to store in the table.
14820
14821 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14822 Funify_charset.
14823
2ae37cf0 14824 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14825 (DECODE_CHAR): Check if the decoder vector is ready.
14826 (ENCODE_CHAR): Check if the encoder char-table is ready.
14827 (maybe_unify_char): Extern it.
14828
14829 * charset.c (Vchar_unified_charset_table): Delete it.
14830 (inhibit_load_charset_map): New variable.
14831 (temp_charset_work): New variable.
14832 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14833 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14834 New macros.
bba3e508
SM
14835 (load_charset_map): Meaning of control_flag changed.
14836 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14837 temp_charset_work.
14838 (load_charset): New argument control_flag.
14839 (map_charset_for_dump): New function.
14840 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14841 map_charset_for_dump.
14842 (Fdefine_charset_internal): If the charset method is MAP, load
14843 mapping tables by calling load_charset.
14844 (Funify_charset): Don't load a mapping table but directly set
14845 Vchar_unify_table.
14846 (maybe_unify_char): New function.
14847 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14848 Handle the case of inhibit_load_charset_map being nonzero.
14849 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14850 Handle the case of inhibit_load_charset_map being nonzero.
14851 (Fclear_charset_maps): Just free temp_charset_work.
14852 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14853 variable.
14854
bba3e508 14855 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14856 change of char_table_ref_and_range.
14857 (char_table_ref_and_range): Change the meaning of argument FROM
14858 and TO. Now the caller must provide initial values for *FROM
14859 and *TO.
14860
bba3e508 14861 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14862 char_table_ref_and_range.
14863 (fontset_get_font_group): Likewise.
14864 (Ffontset_info): Likewise.
14865
bba3e508 14866 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14867 char_table_ref_and_range. For char-table, put boundary between
14868 non-ASCII and 8-bit characters.
14869
14870 * print.c (print_object): For bool-vector, delete unnecessary
14871 check of ASCII_BYTE_P.
14872
9196133b
JR
148732008-11-26 Jason Rumney <jasonr@gnu.org>
14874
14875 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14876 leading in font height. (Bug#879)
9196133b 14877
9f688acf
GM
148782008-11-26 Glenn Morris <rgm@gnu.org>
14879
14880 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14881 redefinition with ifdef. (Bug#1383)
14882
90d19aff
AR
148832008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14884
14885 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14886
4ccfa1c0 148872008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14888
14889 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14890 New EmacsView methods.
14891 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14892 Fixes bug #1048,1357,1414.
14893
148942008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14895
14896 Fix bug #1362.
14897 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14898 is not an indexed color.
14899 * nsterm.m (free_indexed_color): Add argument checking.
14900 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14901
e7d5ecb3
CY
149022008-11-24 Chong Yidong <cyd@stupidchicken.com>
14903
14904 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14905 Document confirm-after-completion value for
14906 minibuffer-completion-confirm.
14907
c285743c
JR
149082008-11-24 Jason Rumney <jasonr@gnu.org>
14909
14910 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14911 warning.
14912
b0857706
JR
149132008-11-23 Jason Rumney <jasonr@gnu.org>
14914
14915 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14916 restored before returning.
14917
14918 * w32font.c (check_face_name): New function.
14919 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14920 fonts. (Bug#642)
b0857706 14921
ee50ff07
MR
149222008-11-22 Martin Rudalics <rudalics@gmx.at>
14923
14924 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14925 confirm-nonexistent-file-or-buffer in doc-string.
14926
b8ff72fa
SM
149272008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14928
14929 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14930 Fix copy/paste typo. Add checks.
14931
cee53ed4
KH
149322008-11-21 Kenichi Handa <handa@m17n.org>
14933
14934 * coding.c (detect_coding_iso_2022): Reject invalid composition
14935 sequence.
14936 (DECODE_COMPOSITION_START): If the current source is the last
14937 block, and the current composition doesn't end, regard this
14938 sequence as invalid.
14939 (decode_coding_iso_2022): Handle invalid composition sequence.
14940
f6ef1e65
MR
149412008-11-20 Martin Rudalics <rudalics@gmx.at>
14942
14943 * window.c (coordinates_in_window): Don't return
14944 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14945 line when the window is not the rightmost one. (Bug#1372)
14946
e08b1705
MR
149472008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14948
14949 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14950
ad98e89f
EZ
149512008-11-15 Eli Zaretskii <eliz@gnu.org>
14952
14953 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14954 and bright_bg if noninteractive is non-zero.
14955
fb098a4b
CY
149562008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14957
14958 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14959 x_draw_glyph_string_background.
14960
14961 * w32term.c (x_draw_glyph_string): Likewise.
14962
ce952b6e
CY
149632008-11-15 Chong Yidong <cyd@stupidchicken.com>
14964
14965 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14966 the next glyph string once past the overhang width.
14967
14968 * nsterm.m (ns_draw_glyph_string): Likewise.
14969
14970 * w32term.c (x_draw_glyph_string): Likewise.
14971
26ea7079
CY
149722008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14973
14974 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14975 double file close.
14976
1c33c906
MR
149772008-11-14 Martin Rudalics <rudalics@gmx.at>
14978
14979 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14980 dedicated status of window before attempting to display another
14981 buffer in it.
14982
8fc29035
JB
149832008-11-14 Juanma Barranquero <lekktu@gmail.com>
14984
14985 * msdos.c (Fmsdos_long_file_names):
14986 (syms_of_msdos) <dos-unsupported-char-glyph>:
14987 * dosfns.c (Fint86): Fix typos in docstrings.
14988
55fb4286
EZ
149892008-11-14 Eli Zaretskii <eliz@gnu.org>
14990
14991 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14992
3fda0315
KY
149932008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14994
14995 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14996
7e849c17
CY
149972008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14998
14999 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15000
15001 * frame.h: Negative alpha means "don't touch".
15002
15003 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15004
15005 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15006
b9fd67bd
DN
150072008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15008
15009 * hftctl.c:
15010 * chpdef.h:
15011 * acldef.h: Remove files used only for systems no longer supported.
15012
15013 * Makefile.in: Fix .o alphabetical ordering.
15014 (hftctl.o): Remove dependency, file removed.
15015 (keymap.o, print.o): Depend on charset.h.
15016
d5998e03
KH
150172008-11-10 Kenichi Handa <handa@m17n.org>
15018
2ae37cf0 15019 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 15020
be70e183
CY
150212008-11-08 Chong Yidong <cyd@stupidchicken.com>
15022
15023 * dired.c (file_name_completion): If completion_ignore_case is
15024 enabled, ignore case when checking completion-regexp-list.
15025
7cf94eac
EZ
150262008-11-08 Eli Zaretskii <eliz@gnu.org>
15027
15028 * vm-limit.c (get_lim_data): Fix last change.
15029
ee107a89
KH
150302008-11-08 Kenichi Handa <handa@m17n.org>
15031
15032 * character.c (Fget_byte): New function.
15033 (syms_of_character): Defsubr Fget_byte.
15034
5fd15622
CY
150352008-11-07 Chong Yidong <cyd@stupidchicken.com>
15036
15037 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15038 cursor position is valid after scrolling.
15039
13d62fad
JB
150402008-11-06 Juanma Barranquero <lekktu@gmail.com>
15041
15042 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15043
a1dd2936
GM
150442008-11-06 Glenn Morris <rgm@gnu.org>
15045
15046 * xterm.c (handle_one_xevent): Don't let popup menus cause
15047 mouse-autoselect-window related window switching. (Bug#1261)
15048
860cd236
CY
150492008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15050
15051 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15052
653a3150
AS
150532008-11-04 Andreas Schwab <schwab@suse.de>
15054
15055 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15056
870f5cac
CY
150572008-11-03 Chong Yidong <cyd@stupidchicken.com>
15058
15059 * xfns.c (Fx_wm_set_size_hint): New function.
15060
1e02f3cb
MR
150612008-11-03 Martin Rudalics <rudalics@gmx.at>
15062
15063 * textprop.c (Fprevious_single_char_property_change): Return 0
15064 when there's no change in a string. (Bug#1301)
15065
e630dfc6
MR
150662008-11-02 Martin Rudalics <rudalics@gmx.at>
15067
15068 * frame.c (do_switch_frame): New argument NORECORD passed to
15069 Fselect_window.
15070 (Fselect_frame): New argument NORECORD passed to
15071 do_switch_frame.
15072 (Fset_frame_selected_window): New argument NORECORD passed to
15073 Fselect_frame.
15074 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15075 in call of do_switch_frame.
15076 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15077 Handle NORECORD argument in call of Fselect_frame.
15078 * lisp.h (do_switch_frame, Fselect_frame)
15079 (Fset_frame_selected_window): Adjust declarations.
15080 * window.c (select_frame_norecord): New function.
15081 (run_window_configuration_change_hook): Use it and call
15082 Fselect_frame with NORECORD set.
15083 (Fselect_window): Pass NORECORD to Fselect_frame.
15084 (Fset_window_configuration): Handle NORECORD argument in call of
15085 do_switch_frame.
15086 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15087 Fset_frame_selected_window.
15088 * keyboard.c (command_loop_1): Handle NORECORD in call of
15089 Fselect_frame (currently ifdefd).
15090
9020b223
GM
150912008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15092
15093 * emacs.c (USAGE2): Untabify.
15094
793ffee8
SM
150952008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15096
15097 * composite.c (fill_gstring_header): Fix copy/paste typo.
15098
ab6d1131
MR
150992008-10-31 Martin Rudalics <rudalics@gmx.at>
15100
15101 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15102 (Fother_window): Rename argument and rewrite doc-string.
15103 (select_window_norecord): Fix return value. (Bug#1276)
15104
601a9cf1
JB
151052008-10-30 Juanma Barranquero <lekktu@gmail.com>
15106
15107 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15108 new frames overriding foreground for tooltips. Based on similar patch
15109 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15110
813b0652
CY
151112008-10-29 Chong Yidong <cyd@stupidchicken.com>
15112
15113 * emacs.c (Fdaemon_initialized): Initialize nfd.
15114
4414f58f
MR
151152008-10-29 Martin Rudalics <rudalics@gmx.at>
15116
15117 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15118 (Fwindow_text_height): Clarify doc-strings.
15119 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15120 doc-string of window-scroll-functions.
15121
ecdcaa09
RS
151222008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15123
15124 * category.c (syms_of_category): Fix typo in docstring.
15125
23fe745a
JB
151262008-10-28 Juanma Barranquero <lekktu@gmail.com>
15127
15128 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15129 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15130 Fix typos in docstrings.
15131
ff808935
DN
151322008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15133
15134 * emacs.c (daemon_pipe): Make non-static.
15135 (IS_DAEMON): Move definition ...
15136 * lisp.h (IS_DAEMON): ... here.
15137 (daemon_pipe): Declare.
15138 (is_daemon): Remove.
15139 * dispnew.c (init_display): Use IS_DAEMON.
15140
fc012771
SM
151412008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15142
15143 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15144 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15145
15146 * emacs.c (is_daemon): Remove.
15147 (main): Don't set is_daemon.
15148 (IS_DAEMON): New macro.
15149 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15150 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15151 parent exits.
15152 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15153
d8bdbe6f
CY
151542008-10-27 Chong Yidong <cyd@stupidchicken.com>
15155
d1a072bf
CY
15156 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15157 over-sized glyph, draw it with the default glyph width.
15158
e2e325aa
CY
15159 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15160 glyph, draw it with the default glyph width.
15161
15162 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15163 glyph, draw it with the default glyph width.
15164
d8bdbe6f
CY
15165 * xdisp.c (try_scrolling): When computing the distance from the
15166 scroll margin to PT, try moving some distance past the window
15167 bottom before giving up.
15168
7bfac547
MR
151692008-10-27 Martin Rudalics <rudalics@gmx.at>
15170
15171 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15172 (Fset_window_buffer): Explain in doc-string that a window can be
15173 "strongly" dedicated to its buffer.
15174
4ff029f6
DN
151752008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15176
15177 * emacs.c (daemon_name): New variable.
15178 (main): Deal with --daemon=SERVER_NAME.
15179 (Fdaemonp): Return a name if one was passed to --daemon.
15180
5790ef40
DN
151812008-10-26 Romain Francoise <romain@orebokech.com>
15182
f9bd0df9 15183 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
15184 (main): Create a pipe before forking, make the parent exit only after
15185 the child has closed its end of the pipe. Move closing the
15186 descriptors ...
15187 (Fdaemon_initialized): ... here. New function.
15188
f5385255
SM
151892008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15190
4d632321
SM
15191 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15192 the previous unoptimized table.
15193
f5385255
SM
15194 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15195 the distinction between non-nil and non-t value of `dedicated'.
15196
6c56a0f3
CY
151972008-10-25 Chong Yidong <cyd@stupidchicken.com>
15198
15199 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 15200 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 15201
fec89261
MR
152022008-10-25 Martin Rudalics <rudalics@gmx.at>
15203
15204 * window.c (Fget_buffer_window, Fdelete_windows_on)
15205 (Freplace_buffer_in_windows): Make buffer argument optional and
15206 rename to buffer_or_name.
15207
34fcddd0
CY
152082008-10-24 Chong Yidong <cyd@stupidchicken.com>
15209
f5385255
SM
15210 * xdisp.c (handle_single_display_spec, handle_display_prop):
15211 Undo 2005-05-16 change.
34fcddd0
CY
15212 (handle_stop): Pop iterator if it's loaded with an empty string.
15213 (get_overlay_strings_1): Don't save iterator if it's loaded with
15214 an empty string (bug#1201).
15215
064766f2
KH
152162008-10-24 Kenichi Handa <handa@m17n.org>
15217
15218 * ftfont.c (ftfont_otf_features): Fix previous change.
15219 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15220 calling ftfont_otf_features.
15221
f9bd0df9 152222008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
15223
15224 * font.c (font_match_p): Fix for the case that a vector of
15225 characters is in script-representative-chars.
15226
1dae9197
MA
152272008-10-24 Michael Albinus <michael.albinus@gmx.de>
15228
15229 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 15230 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
15231 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15232 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 15233 macro. (Bug#1186)
1dae9197 15234
f9bd0df9 152352008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
15236
15237 * s/sol2-10.h: New file.
15238
878a4584
JB
152392008-10-23 Juanma Barranquero <lekktu@gmail.com>
15240
15241 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15242 poor beast has survived 9+ years and the jump from xterm.c!).
15243
cd265ca6
MR
152442008-10-23 Martin Rudalics <rudalics@gmx.at>
15245
15246 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15247 Reword doc-string.
f5385255 15248 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 15249
472a4dc9
JB
152502008-10-23 Juanma Barranquero <lekktu@gmail.com>
15251
15252 * character.c (syms_of_character) <script-representative-chars>:
15253 <unicode-category-table>: Doc fixes.
15254
159bd5a2
NF
152552008-10-23 Noah Friedman <friedman@splode.com>
15256
15257 * coding.c (make_conversion_work_buffer): Check that
15258 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15259 Fget_buffer_create.
15260
49f9c344
KH
152612008-10-23 Kenichi Handa <handa@m17n.org>
15262
15263 * font.c (font_add_log): Check the values of extra properties.
15264
12bb3111
MR
152652008-10-22 Martin Rudalics <rudalics@gmx.at>
15266
15267 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15268 Reword doc-string.
15269 (Fset_window_parameter): Use NILP.
15270 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 15271 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 15272
bbeb4e99
JB
152732008-10-22 Juanma Barranquero <lekktu@gmail.com>
15274
15275 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15276
152772008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
15278
15279 * nsfns.m (ns_appkit_version): New function.
15280 (x-server-version): Use it.
15281 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
15282 (x-server-vendor): Don't check_ns().
15283
15284 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
15285
a9b555d3
JB
152862008-10-22 Juanma Barranquero <lekktu@gmail.com>
15287
15288 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
15289 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
15290
4626499f
KH
152912008-10-22 Kenichi Handa <handa@m17n.org>
15292
e3681952
KH
15293 * syntax.c (scan_words): Call word_boundary_p instead of comparing
15294 scripts.
15295
4626499f
KH
15296 * category.c (word_boundary_p): Check scripts instead of charset.
15297 Handle nil value in word-separating-categories and
15298 word-combining-categories.
15299 (syms_of_category): Fix docstrings of word-separating-categories
15300 and word-combining-categories.
15301
1560f91a
EZ
153022008-10-21 Eli Zaretskii <eliz@gnu.org>
15303
15304 * coding.c (Fencode_coding_region, Fdecode_coding_region)
15305 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
15306
f4668441
MR
153072008-10-21 Martin Rudalics <rudalics@gmx.at>
15308
15309 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
15310 Rename arg "buffer" to "buffer_or_name".
15311 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
15312 it optional.
15313 (no_switch_window): Remove since the return value is not used.
a9b555d3 15314 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
15315 Consider window as dedicated when Fwindow_dedicated_p returns a
15316 non-nil value.
15317 * lisp.h: Remove prototype for no_switch_window.
15318
fd75ddb2
JD
153192008-10-21 Jan Djärv <jan.h.d@swipnet.se>
15320
15321 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 15322 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 15323
07295713
KH
153242008-10-21 Kenichi Handa <handa@m17n.org>
15325
15326 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
15327 check Vlatin_extra_code_table.
15328
712adc82
EZ
153292008-10-20 Eli Zaretskii <eliz@gnu.org>
15330
15331 * fileio.c (Fset_file_modes): Doc fix.
15332
f549eb0b
MA
153332008-10-19 Michael Albinus <michael.albinus@gmx.de>
15334
15335 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
15336 in arrays.
15337
aac0c6e3
MR
153382008-10-19 Martin Rudalics <rudalics@gmx.at>
15339
15340 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15341 Mention kill-buffer in doc-string.
15342 (Fset_window_buffer): Reinsert tem check removed in last commit.
15343 (Fenlarge_window, Fshrink_window): Have argument names and
15344 doc-string follow Elisp manual more closely.
15345
153462008-10-18 Eli Zaretskii <eliz@gnu.org>
15347
15348 * fileio.c (Fset_file_modes): Doc fix.
15349
153502008-10-18 Martin Rudalics <rudalics@gmx.at>
15351
15352 * window.c (Fwindow_width, Fset_window_start)
15353 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
15354 (Fdelete_windows_on, Freplace_buffer_in_windows):
15355 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
15356 (Fwindow_dedicated_p): Make window argument optional.
15357 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
15358 (Fset_window_buffer): Respect any non-nil dedicated value for
15359 window. Rename "buffer" argument to "buffer_or_name".
15360
153612008-10-18 Ulrich Mueller <ulm@gentoo.org>
15362
15363 * m/sh3.h: New file, machine description for SuperH.
15364
153652008-10-17 Martin Rudalics <rudalics@gmx.at>
15366
15367 * window.c (Fsplit_window): Rename arg horflag to horizontal.
15368
153692008-10-17 Kenichi Handa <handa@m17n.org>
15370
15371 * ftfont.c (ftfont_otf_features): Fix indexing
15372 gsub_gpos->FeatureList.Feature. Check the validity of indices.
15373
153742008-10-16 Magnus Henoch <mange@freemail.hu>
15375
15376 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
15377 (Fdbus_call_method_asynchronously): Ditto.
15378 This change makes C-h f display the argument list.
15379
153802008-10-16 Chong Yidong <cyd@stupidchicken.com>
15381
15382 * fileio.c (Fexpand_file_name): Doc fix.
15383
15384 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
15385 of :foreground and :background equivalent to unspecified (20.x
15386 compatibility).
15387
153882008-10-15 Eli Zaretskii <eliz@gnu.org>
15389
15390 * buffer.c (syms_of_buffer): Doc fix.
15391
153922008-10-14 Kenichi Handa <handa@m17n.org>
15393
15394 * font.c (font_clear_prop): When clearing font width, clear the
15395 average width field too.
15396
153972008-10-12 Andreas Schwab <schwab@suse.de>
15398
15399 * ftfont.c (ftfont_shape_by_flt): Make static.
15400 * ftfont.h (ftfont_shape_by_flt): Don't declare.
15401
15402 * font.c: Don't include <m17n-flt.h>.
15403
154042008-10-10 Eli Zaretskii <eliz@gnu.org>
15405
15406 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
15407
154082008-10-09 Eli Zaretskii <eliz@gnu.org>
15409
15410 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
15411 away code.
15412
154132008-10-09 Chong Yidong <cyd@stupidchicken.com>
15414
15415 * dispnew.c (update_text_area): Avoid looping due to large glyph
15416 overhangs (bug#1070).
15417
154182008-10-09 Kenichi Handa <handa@m17n.org>
15419
15420 * fontset.c (face_for_char): If face->fontset is negative, just
15421 return ascii_face.
15422
f5385255
SM
15423 * font.c (font_delete_unmatched): Fix previous change.
15424 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
15425
154262008-10-09 Martin Rudalics <rudalics@gmx.at>
15427
15428 * frame.c (Fraise_frame): On text-only terminals select frame in
15429 order to make it visible. (Bug#1061)
15430
154312008-10-08 Chong Yidong <cyd@stupidchicken.com>
15432
15433 * fontset.c (fontset_find_font): Check frame validity.
15434
154352008-10-07 Chong Yidong <cyd@stupidchicken.com>
15436
a9b555d3 15437 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
15438 (xg_display_close): Allow Emacs to close all displays (bug#985).
15439
154402008-10-06 Andreas Schwab <schwab@suse.de>
15441
f5385255 15442 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
15443
154442008-10-06 Chong Yidong <cyd@stupidchicken.com>
15445
f5385255 15446 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 15447
a9b555d3 15448 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
15449
15450 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15451 during initialization.
15452
154532008-10-04 Eli Zaretskii <eliz@gnu.org>
15454
15455 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15456 whole thing on MSDOS frames as well as on a TTY.
15457
15458 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15459 well as for TTY.
15460 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15461 well as on a TTY.
15462
15463 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15464 as well as for TTY.
15465
15466 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15467
15468 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15469 MSDOS frames as well.
15470
154712008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15472
15473 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15474 correct arguments.
b71ac3dd 15475 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
15476
154772008-10-03 Glenn Morris <rgm@gnu.org>
15478
15479 * emacs.c (USAGE1): Add --daemon.
15480
154812008-10-02 Eli Zaretskii <eliz@gnu.org>
15482
15483 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15484 100, so it's in percents as advertised.
15485
154862008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15487
15488 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15489 (ns_output.current_cursor, ns_output.desired_cursor)
15490 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15491 (FRAME_NEW_CURSOR_COLOR): Remove.
15492
15493 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 15494 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
15495 enumeration (HOLLOW_BOX_CURSOR, etc.).
15496
15497 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15498 (draw_window_cursor): Simplify code.
f5385255
SM
15499 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15500 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 15501 updates manually.
a9b555d3
JB
15502 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15503 Use core Emacs cursor types.
aac0c6e3 15504
b8ff72fa 15505 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
15506
155072008-10-02 Martin Rudalics <rudalics@gmx.at>
15508
15509 * process.c (Faccept_process_output): Fix doc-string.
15510
155112008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15512
15513 * gmalloc.c (__sbrk): Also define for uClibc.
15514
15515 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15516 for uClibc.
15517
155182008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15519
15520 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15521 styles.
15522 (nsfont_open): Reenable the cache.
15523
155242008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15525
15526 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15527 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15528
155292008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15530
15531 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15532 a suspended terminal.
15533
155342008-09-30 Michael Albinus <michael.albinus@gmx.de>
15535
15536 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15537
155382008-09-30 Eli Zaretskii <eliz@gnu.org>
15539
15540 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15541
155422008-09-30 Chong Yidong <cyd@stupidchicken.com>
15543
15544 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15545 in a continued line coincides with a line beginning.
15546
155472008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15548
15549 * nsfont.m (nsfont_trait_distance): Fix bug.
15550 (nsfont_list): Return a list rather than a vector (syncs with Handa
15551 changes of 2008-05-14).
15552 (nsfont_open): Improve logging.
15553
155542008-09-29 Andreas Schwab <schwab@suse.de>
15555
15556 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15557
155582008-09-28 Martin Rudalics <rudalics@gmx.at>
15559
15560 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15561 name as char-resolve-modifiers.
15562 Reported by: Markus Triska <markus.triska@gmx.at>
15563
155642008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15565
15566 * dispnew.c (init_display): Return earlier when running as a daemon.
15567
155682008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15569
15570 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15571
155722008-09-27 Eli Zaretskii <eliz@gnu.org>
15573
15574 * composite.c (Fcomposition_get_gstring)
15575 (Fcompose_region_internal, Fcompose_string_internal)
15576 (Ffind_composition_internal): Doc fix.
15577 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15578 (syms_of_composite) <auto-composition-function>: Doc fix.
15579 (syms_of_composite) <composition-function-table>: Doc fix.
15580
155812008-09-25 Chong Yidong <cyd@stupidchicken.com>
15582
15583 * search.c (wordify): New argument for lax word-ends.
15584 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15585
155862008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15587
15588 * lisp.h (is_daemon): Declare.
15589 * dispnew.c (init_display): Do not try to initialize the terminal
15590 when running as a daemon.
15591
155922008-09-22 Chong Yidong <cyd@stupidchicken.com>
15593
15594 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15595 x_display_pixel_height.
15596
155972008-09-22 Martin Rudalics <rudalics@gmx.at>
15598
15599 * undo.c (record_point): Don't call Fundo_boundary for first
15600 change. (Bug#731)
15601
156022008-09-22 Juanma Barranquero <lekktu@gmail.com>
15603
15604 * emacs.c (Fdaemonp): Doc fix.
15605
156062008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15607
15608 * emacs.c (main): Place #ifdef in the proper place.
15609
156102008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15611
15612 * emacs.c (standard_args): Add --daemon.
15613 (main): Disconnect from the terminal when --daemon is passed.
15614 (is_daemon): New variable.
15615 (Fdaemonp): New function.
15616 (syms_of_emacs): Defsubr it.
15617
156182008-09-20 Chong Yidong <cyd@stupidchicken.com>
15619
15620 * xdisp.c (get_next_display_element): Handle string display
15621 correctly when checking for the end of a box run.
15622
156232008-09-20 Glenn Morris <rgm@gnu.org>
15624
15625 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15626 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15627 (Frename_file): Avoid copying to trash if a rename involves
15628 a delete. (Bug#964).
15629
156302008-09-20 Eli Zaretskii <eliz@gnu.org>
15631
15632 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15633 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15634 frames as well as termcap frames.
15635 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15636 get_named_tty.
15637
156382008-09-19 Eli Zaretskii <eliz@gnu.org>
15639
15640 * process.c (procfs_system_process_attributes): Fix cmdline in
15641 case /proc/PID/cmdline is empty.
15642
15643 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15644 x_display_pixel_height.
15645
156462008-09-19 Juanma Barranquero <lekktu@gmail.com>
15647
15648 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15649
15650 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15651 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15652
156532008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15654
15655 * dispextern.h (struct it): Move line_wrap away from the middle of
15656 bitfields. Move voffset in struct iterator_stack_entry after the
15657 bitfields. Move tab_width near after another short.
15658
156592008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15660
15661 * frame.h (struct frame): Move alpha from the middle of bitfields.
15662
15663 * window.h (struct window): Move frozen_window_start_p after the
15664 rest of the bitfields to reduce padding.
15665
156662008-09-18 Chong Yidong <cyd@stupidchicken.com>
15667
15668 * xterm.h (x_display_info): Remove `height' and `width' members.
15669
15670 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15671
15672 * w32term.h (w32_display_info): Remove `height', `width',
15673 `height_in', and `width_in' members.
15674
b8ff72fa
SM
15675 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15676 New functions.
aac0c6e3
MR
15677 (x_calc_absolute_position): Use them.
15678 (x_term_init): Omit removed `height' and `width' members.
15679
b8ff72fa
SM
15680 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15681 New functions.
aac0c6e3
MR
15682 (w32_read_socket, x_calc_absolute_position): Use them.
15683 (w32_initialize_display_info, w32_term_init): Omit removed members
15684 of w32_display_info.
15685
b8ff72fa
SM
15686 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15687 New functions.
15688 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15689
b8ff72fa
SM
15690 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15691 New functions.
aac0c6e3
MR
15692 (x_calc_absolute_position): Use them.
15693 (x_term_init): Omit removed `height' and `width' members.
15694
15695 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15696 (compute_tip_xy):
15697 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15698 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15699 x_display_pixel_width.
15700
157012008-09-18 Kenichi Handa <handa@m17n.org>
15702
15703 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15704 (composition_compute_stop_pos): Fix handling of static composition.
15705 (Fcomposition_get_gstring): Check FROM and TO at first.
15706
157072008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15708
46e722a9 15709 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15710 mixup (YAILOM).
15711
157122008-09-17 Chong Yidong <cyd@stupidchicken.com>
15713
15714 * indent.c (Fvertical_motion): Use position reported by iterator
15715 instead of PT for determining screen motion (bug#943).
15716
157172008-09-17 Romain Francoise <romain@orebokech.com>
15718
15719 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15720
157212008-09-17 Kenichi Handa <handa@m17n.org>
15722
15723 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15724
15725 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15726 if necessary.
15727
157282008-09-16 Kenichi Handa <handa@m17n.org>
15729
15730 * coding.c (make_conversion_work_buffer): Avoid calling
15731 Fget_buffer_create if it is not necessary.
15732
157332008-09-15 Martin Rudalics <rudalics@gmx.at>
15734
15735 * window.c (Fselect_window): Don't update window_select_count and
15736 use_time when norecord is not nil.
15737
157382008-09-14 Kenichi Handa <handa@m17n.org>
15739
15740 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15741 specpdl_ptr.
15742
157432008-09-12 Kenichi Handa <handa@m17n.org>
15744
15745 * indent.c (scan_for_column): Don't handle automatic composition
15746 if the current buffer is not associated with a window.
15747
15748 * composite.c (composition_reseat_it): If the current buffer is
15749 not associated with a window, ignore the automatic composition.
15750 (find_automatic_composition): Likewise.
15751
157522008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15753
15754 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15755 (Fgpm_mouse_stop): Use it.
15756 * termhooks.h (close_gpm): Declare.
15757 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15758 connection if Gpm_GetEvent fails.
15759
15760 * window.c (set_window_buffer): Always preserve current-buffer.
15761
157622008-09-12 Glenn Morris <rgm@gnu.org>
15763
15764 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15765
157662008-09-11 Glenn Morris <rgm@gnu.org>
15767
15768 * charset.c (charset-map-path): Doc fix.
15769
157702008-09-10 Kenichi Handa <handa@m17n.org>
15771
15772 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15773
15774 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15775 compose a grapheme cluster with the preceding base glyph.
15776
15777 * composite.c (composition_compute_stop_pos): Fix previous change.
15778 Reset cmp_it->id to -1 at first.
15779
157802008-09-10 Glenn Morris <rgm@gnu.org>
15781
15782 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15783
157842008-09-09 Chong Yidong <cyd@stupidchicken.com>
15785
15786 * keyboard.c (read_key_sequence): Reapply translation maps when
15787 switching keyboards.
15788
157892008-09-09 Kenichi Handa <handa@m17n.org>
15790
15791 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15792 characters.
15793
15794 * composite.c (FORWARD_CHAR): Fix calculation
15795 of (POSITION).pos_byte.
15796 (composition_compute_stop_pos): Limit the search of composition to
15797 at most 500 characters ahead. If we reach the limit or find a
15798 newline, set cmp_it->ch to -2 and return 0.
15799 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15800
158012008-09-08 Kenichi Handa <handa@m17n.org>
15802
15803 * indent.c (Fvertical_motion): Be sure to set
15804 it_overshoot_expected if it.cmp_it.id is non-negative.
15805
158062008-09-07 Andreas Schwab <schwab@suse.de>
15807
15808 * callproc.c (Fcall_process): Don't hold references to string data
15809 across garbage collection. Move initialisation of new_argv down
15810 to avoid compiler bug.
15811
158122008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15813
15814 * process.c (Fsystem_process_attributes): Doc fix.
15815
158162008-09-07 Chong Yidong <cyd@stupidchicken.com>
15817
15818 * callproc.c (Fcall_process): Canonicalize current directory name.
15819
15820 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15821 iterator advances to the next line if the current line ends in a
15822 continued tab.
15823
158242008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15825
15826 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15827 member to point to cmp_from.
15828
15829 * xdisp.c: Doc fix for references to gidx data member.
15830
158312008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15832
15833 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15834
158352008-09-07 Kenichi Handa <handa@m17n.org>
15836
15837 * composite.c (FORWARD_CHAR): Check STOP after
15838 incrementing (POSITION).pos.
15839
158402008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15841
15842 * process.c (Fsystem_process_attributes): Doc fix.
15843
158442008-09-06 Chong Yidong <cyd@stupidchicken.com>
15845
15846 * keyboard.c (Ftop_level): Doc fix.
15847
158482008-09-06 Eli Zaretskii <eliz@gnu.org>
15849
15850 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15851 minibuffer, don't let lower part of menu invade the echo area.
15852
15853 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15854 "char *q" to access menu text and advance through it. Revert the
15855 change that displayed ">" instead of ASCII character 0x10.
15856
158572008-09-05 Eli Zaretskii <eliz@gnu.org>
15858
15859 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15860 toggle boxes and radio buttons on MS-DOS as well.
15861
158622008-09-05 Kenichi Handa <handa@m17n.org>
15863
15864 * composite.c (autocmp_chars): Check lookback count.
15865 (composition_compute_stop_pos): Set cmp_it->lookback.
15866 (composition_reseat_it): Check lookback count.
15867 (struct position_record): New struct.
15868 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15869 (find_automatic_composition): New function.
15870 (composition_adjust_point): Use find_automatic_composition.
15871
15872 * dispextern.h (struct composition_it): New member lookback.
15873
158742008-09-02 Chong Yidong <cyd@stupidchicken.com>
15875
15876 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15877 if moving by a single line.
15878
158792008-09-02 Andreas Schwab <schwab@suse.de>
15880
15881 * xterm.c (x_delete_display): Fix merge error.
15882
15883 * fileio.c (Fexpand_file_name): Remove unused variables.
15884
158852008-09-02 Eli Zaretskii <eliz@gnu.org>
15886
15887 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15888 storage on all platforms, not just on DOS_NT.
15889
158902008-09-02 Jason Rumney <jasonr@gnu.org>
15891
b8ff72fa
SM
15892 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15893 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15894
158952008-09-01 Chong Yidong <cyd@stupidchicken.com>
15896
15897 * xfaces.c (Finternal_set_alternative_font_family_alist)
15898 (Finternal_set_alternative_font_registry_alist): Properly copy
15899 entire alist structure.
15900
159012008-09-01 Kenichi Handa <handa@m17n.org>
15902
d66c0241 15903 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15904 representative chars of the script is a vector.
d66c0241
JB
15905 (ftfont_list): Handle the case where the representative chars of
15906 the script is a vector.
aac0c6e3
MR
15907
15908 * character.c (syms_of_character): Docstring of
15909 script-representative-chars fixed.
15910
159112008-08-31 Eli Zaretskii <eliz@gnu.org>
15912
15913 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15914 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15915 the menu. Allocate larger buffer for `text', to account for
15916 possible ^C characters.
15917
159182008-08-31 Martin Rudalics <rudalics@gmx.at>
15919
15920 * xdisp.c (prepare_menu_bars): Don't call
15921 Vwindow_size_change_functions with arg Qt.
15922
159232008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15924
15925 * font.h (font_range):
15926 * fileio.c (report_file_error):
46e722a9
SM
15927 * composite.c (composition_update_it): Yet another int/Lisp_Object
15928 mixup (YAILOM).
aac0c6e3
MR
15929
159302008-08-30 Glenn Morris <rgm@gnu.org>
15931
15932 * data.c (Fmake_variable_frame_local): Doc fix.
15933
15934 * frame.c (Fmodify_frame_parameters): Doc fix.
15935
159362008-08-30 Eli Zaretskii <eliz@gnu.org>
15937
15938 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15939 needed by GetTokenInformation.
15940 (w32_system_process_attributes): Check return values of all system
15941 APIs.
15942
15943 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15944 only when the state changes.
15945 (IT_update_begin, IT_update_end): Add termscript trace.
15946
15947 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15948 clipboard is unavailable. Set dst to NULL if it doesn't point to
15949 malloc'ed data.
15950 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15951 passing random values to xfree.
15952
15953 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15954 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15955
159562008-08-29 Jason Rumney <jasonr@gnu.org>
15957
15958 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15959
159602008-08-29 Eli Zaretskii <eliz@gnu.org>
15961
15962 * composite.c (fill_gstring_body): Avoid compiler warnings.
15963
15964 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15965 LGLYPH_SET_CODE to avoid compiler warnings.
15966
2ae37cf0 15967 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15968
15969 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15970
15971 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15972 LGLYPH_SET_CODE.
15973
159742008-08-29 Kenichi Handa <handa@m17n.org>
15975
15976 * fileio.c (report_file_error): Don't downcase the first character
15977 of errstring if it is still unibyte.
15978
159792008-08-29 Kenichi Handa <handa@m17n.org>
15980
15981 These changes are to re-implement the automatic composition so
15982 that it doesn't use text properties.
15983
15984 * Makefile.in (ftfont.o): Depend on composite.h.
15985 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15986
15987 * character.h (Vunicode_category_table): Extern it.
15988
15989 * character.c (Vunicode_category_table): New variable.
15990 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15991
15992 * chartab.c (optimize_sub_char_table): Perform more greedy
15993 optimization.
15994
b8ff72fa
SM
15995 * composite.h (enum composition_method):
15996 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15997 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15998 (Vcomposition_function_table): Extern it.
15999 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16000 (composition_gstring_put_cache, composition_gstring_from_id)
16001 (composition_gstring_p, composition_gstring_width)
16002 (composition_compute_stop_pos, composition_reseat_it)
16003 (composition_update_it, composition_adjust_point): Extern them.
16004 (Fcomposition_get_gstring): EXFUN it.
16005
d66c0241 16006 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
16007 (Vcomposition_function_table)
16008 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
16009 (gstring_hash_table, gstring_work, gstring_work_headers):
16010 New variables.
aac0c6e3
MR
16011 (gstring_lookup_cache, composition_gstring_put_cache)
16012 (composition_gstring_from_id, composition_gstring_p)
16013 (composition_gstring_width, fill_gstring_header)
16014 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16015 (composition_reseat_it, composition_update_it)
b8ff72fa 16016 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
16017 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16018 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 16019 Defsubr composition_get_gstring.
aac0c6e3
MR
16020
16021 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16022 cmp_id.
16023 (struct glyph_string): Delete the member gidx. New members
16024 cmp_id, cmp_from, and cmp_to.
16025 (enum it_method): Delete GET_FROM_COMPOSITION.
16026 (struct composition_it): New struct.
16027 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16028 Delete c, len, cmp_id, cmp_len in u.comp.
16029
16030 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 16031 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16032 (enum lglyph_indices): Likewise.
b8ff72fa 16033 (font_range): Adjust extern.
aac0c6e3
MR
16034 (font_fill_lglyph_metrics): Extern it.
16035
16036 * font.c (QCf): New variable.
16037 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16038 (font_prepare_composition): Delete this function.
16039 (font_range): Type and arguments changed.
16040 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16041 (font_fill_lglyph_metrics): New function.
b8ff72fa 16042 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16043 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16044 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16045 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16046
16047 * fontset.h (font_for_char): Extern it.
16048
16049 * fontset.c (font_for_char): New function.
16050
16051 * ftfont.c: Include composite.h.
16052 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16053 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16054
16055 * indent.c: Include composite.h and dispextern.h.
16056 (check_composition): Delete this function.
16057 (scan_for_column): Handle composition by
16058 composition_compute_stop_pos, composition_reseat_it, and
16059 composition_update_it.
16060 (compute_motion): Likewise.
16061 (Fvertical_motion): Fix checking of composition.
16062
16063 * keyboard.c (adjust_point_for_property): Check composition by
16064 composition_adjust_point.
16065
b8ff72fa 16066 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16067 struct glyph_string.
16068
b8ff72fa
SM
16069 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16070 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16071 struct glyph.
16072 (produce_composite_glyph): Likewise.
16073
b8ff72fa
SM
16074 * w32term.c (x_draw_composite_glyph_string_foreground):
16075 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16076 (x_draw_glyph_string): Likewise.
16077
16078 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16079 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16080
16081 * xdisp.c: Include font.h.
16082 (it_props): Delete the entry for Qauto_composed.
16083 (init_iterator): Initialize it->cmp_it.id to -1.
16084 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16085 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16086 (handle_auto_composed_prop): Delete it.
16087 (handle_composition_prop): Handle only static composition.
16088 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16089 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16090 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16091 (pop_it): Likewise.
16092 (get_next_element): Delete next_element_from_composition.
16093 (CHAR_COMPOSED_P): New macro.
16094 (get_next_display_element): For automatic composition, get a face
16095 from the font in the glyph-string.
16096 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16097 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16098 (next_element_from_string): Check if the character at the current
16099 position is composed by CHAR_COMPOSED_P.
16100 (next_element_from_buffer): Likewise.
d66c0241
JB
16101 (next_element_from_composition): Adjust for the change of struct it.
16102 Update it->cmp_it.
b8ff72fa
SM
16103 (dump_glyph): Adjust for the change of struct glyph.
16104 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16105 it and struct glyph. Don't handle automatic composition here.
16106 (fill_gstring_glyph_string): New function.
16107 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16108 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16109 (BUILD_GSTRING_GLYPH_STRING): New macro.
16110 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16111 automatic composition.
b8ff72fa 16112 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16113 struct glyph.
b8ff72fa 16114 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16115
b8ff72fa 16116 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16117 the change of struct glyph_string.
16118 (x_draw_glyph_string): Likewise.
16119
161202008-08-29 Glenn Morris <rgm@gnu.org>
16121
16122 * buffer.c (word-wrap): Doc fix.
16123 * xdisp.c (truncate-partial-width-windows): Doc fix.
16124 Increase default to 50.
16125
161262008-08-29 Chong Yidong <cyd@stupidchicken.com>
16127
16128 * xdisp.c (update_tool_bar_unwind): New function.
16129 (update_tool_bar): Temporarily set selected frame before building
16130 tool-bar items.
16131
161322008-08-28 Michael Albinus <michael.albinus@gmx.de>
16133
16134 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16135 snprintf, respectively.
16136 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16137
161382008-08-28 Chong Yidong <cyd@stupidchicken.com>
16139
16140 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16141 LDFLAGS to GNUstep CC invocation.
16142
161432008-08-27 Chong Yidong <cyd@stupidchicken.com>
16144
16145 * indent.c (Fvertical_motion): Revert last change. Handle the
16146 general case where we are moving forward, and PT spans multiple
16147 screen lines.
16148
16149 * eval.c (find_handler_clause): Temporarily increase
16150 max-lisp-eval-depth while printing the backtrace buffer, to
16151 guarantee that help-mode code can run.
16152
161532008-08-27 Eli Zaretskii <eliz@gnu.org>
16154
16155 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16156 colors under -rv.
16157 (IT_set_frame_parameters): Don't swap foreground and background
16158 colors if `(reverse . t)' is present in the frame properties.
16159 (internal_terminal_init): Call init_frame_faces only for the
16160 initial frame.
16161
161622008-08-27 Andreas Schwab <schwab@suse.de>
16163
16164 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16165
161662008-08-27 Andreas Schwab <schwab@suse.de>
16167
16168 * search.c (search_buffer): Set char_base to zero only at the end.
16169
161702008-08-27 Kenichi Handa <handa@m17n.org>
16171
b8ff72fa 16172 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
16173
161742008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16175
16176 * xterm.c (x_term_init): Temporarily hide the partially
16177 initialized terminal while calling vendor-specific-keysyms.
16178
161792008-08-26 Eli Zaretskii <eliz@gnu.org>
16180
16181 * msdos.c (internal_terminal_init): Most initializations done only
16182 once, especially initial_screen_colors[] and termscript open.
16183
161842008-08-26 Chong Yidong <cyd@stupidchicken.com>
16185
16186 * eval.c (Fcondition_case): Doc fix.
16187
16188 * widgetprv.h (EmacsFramePart): Change font member to the new font
16189 struct.
16190
16191 * widget.c: Include character.h and font.h for XSETFONT.
16192 (setup_frame_gcs): Compute X font id from font struct, just once.
16193
161942008-08-26 Eli Zaretskii <eliz@gnu.org>
16195
16196 * term.c (get_named_tty): Fix last change.
16197
161982008-08-26 Chong Yidong <cyd@stupidchicken.com>
16199
16200 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 16201 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
16202
162032008-08-25 Eli Zaretskii <eliz@gnu.org>
16204
16205 * frame.c (do_switch_frame): Mark previously displayed frame as
16206 obscured for FRAME_MSDOS_P frames as well.
16207
162082008-08-24 Eli Zaretskii <eliz@gnu.org>
16209
16210 * frame.c (make_terminal_frame): Initialize f->terminal,
16211 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16212 Set the top frame to newly created frame.
16213 (Fmake_terminal_frame): Reuse the_only_display_info.
16214
16215 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16216 estimating available memory.
16217
b97439ce 162182008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
16219
16220 * nsterm.m (ns_draw_window_cursor): Don't call
16221 NSDisableScreenUpdates and NSEnableScreenUpdates on
16222 non-NS_IMPL_COCOA systems.
16223
162242008-08-23 Andreas Schwab <schwab@suse.de>
16225
16226 * process.c (procfs_system_process_attributes): Fix use of
16227 uninitialized variables.
16228
162292008-08-23 Eli Zaretskii <eliz@gnu.org>
16230
16231 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16232
16233 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16234 calling tty-set-up-initial-frame-faces.
16235
b8ff72fa
SM
16236 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16237 Allow MSDOS frames along with X frames.
aac0c6e3
MR
16238
16239 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16240 addition to output_termcap.
16241
16242 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16243
16244 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16245 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16246 highlight.
16247
16248 * process.c [!subprocesses]: Define QCname.
16249 (syms_of_process): Intern and staticpro it.
16250
16251 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
16252 Adjust for changes in encoding/decoding routines.
16253 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
16254 encode_coding and decode_coding.
16255
b8ff72fa 16256 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
16257
16258 * dosfns.c: Include frame.h before termhooks.h.
16259 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16260 variable termscript.
16261
16262 * s/msdos.h (USER_FULL_NAME): Define.
16263 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16264
16265 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16266 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16267 pw->pw_gecos.
16268
16269 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16270 SELECTED_FRAME as additional (1st) argument.
16271 (tty_read_avail_input): Handle output_msdos_raw in
16272 addition to output_termcap.
16273
16274 * msdos.c: Include frame.h before termhooks.h.
16275 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16276 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
16277 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
16278 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
16279 (IT_set_terminal_modes, IT_reset_terminal_modes)
16280 (IT_set_frame_parameters): Use tty->termscript instead of a global
16281 variable termscript.
16282 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
16283 global variable terminal_coding. Don't refer to
16284 Vnonascii_translation_table.
16285 (internal_terminal_init): Set Vwindow_system in current_kboard.
16286 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
16287 Announce date and time of session start, if termscript is open.
16288 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
16289 term.c:init_tty). Open termscript only of not already open.
16290 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
16291 here instead of dos_ttraw. Don't initialize display if this is an
16292 initial tty. Don't set FRAME_FONT.
16293 (Vwindow_system_version): Bump to 23.
16294 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
16295 is available, set up mouse_position_hook.
16296 (dos_ttraw, IT_set_terminal_modes): If called with initial
16297 terminal, do nothing.
16298 (IT_set_frame_parameters): Handle the Qtty_type frame
16299 parameter by calling internal_terminal_init.
16300 (dos_set_window_size, show_mouse_face)
16301 (clear_mouse_face, IT_note_mode_line_highlight)
16302 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
16303 (dos_rawgetc): Use tty_display_info instead of x_display_info.
16304 (initialize_msdos_display): New function.
16305 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
16306 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
16307 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
16308 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 16309 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
16310 (request_sigio, unrequest_sigio): Don't define, now defined on
16311 sysdep.c.
16312 (IT_write_glyphs): Rewrite to use encode_terminal_code.
16313
16314 * term.c [MSDOS]: Include msdos.h.
16315 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
16316 conditional to DOS_NT. Allow only one call to this function in a
16317 session. Don't allocate a new struct tty_display_info; instead,
16318 reuse the_only_display_info. Call get_tty_size to get screen
16319 dimensions. Call init_baud_rate to set bad_rate.
16320 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
16321 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 16322 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
16323 (get_tty_terminal, get_named_tty, Ftty_type)
16324 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
16325 output_termcap.
b8ff72fa
SM
16326 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
16327 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 16328 only when subprocesses are supported.
aac0c6e3
MR
16329
16330 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
16331 f->output_data.x.
16332 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
16333 terminal devices.
16334
5582fbc7 16335 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
16336 x_output.
16337 (FRAME_FONT): Use output_data.tty.
16338 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
16339 (struct x_display_info): Rename from display_info. Update all users in
16340 msdos.c.
aac0c6e3 16341 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 16342 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
16343 (dos_ttraw): Update prototype.
16344
16345 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
16346 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
16347
163482008-08-23 Jason Rumney <jasonr@gnu.org>
16349
16350 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
16351 (fn_TIFFSetDirectory): New library function used.
16352 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
16353 (tiff_load): Use :index to select among multiple images. Set count
16354 property when multiple images exist.
16355 (gif_format): Use :index, not :image.
16356
163572008-08-23 Chong Yidong <cyd@stupidchicken.com>
16358
16359 * xdisp.c (try_scrolling): Check INT_MAX instead of
16360 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
16361 to obtain INT_MAX.
16362
163632008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
16364
16365 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
16366
163672008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
16368
16369 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
16370 GNUstep library location.
16371
163722008-08-21 Chong Yidong <cyd@stupidchicken.com>
16373
16374 * xfaces.c (x_update_menu_appearance): Check validity of menu font
16375 before using it.
16376
16377 * puresize.h (BASE_PURESIZE): Increase to 1250000.
16378
163792008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16380
16381 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
16382 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
16383 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
16384 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
16385 (EmacsApp-cursor_blink_handler): Remove declaration.
16386 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
16387 match 01 Feb 2008 changes in xterm.c.
16388 (ns_read_socket): Add cast to avoid warning.
16389 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
16390 GNUstep.
16391
163922008-08-20 Chong Yidong <cyd@stupidchicken.com>
16393
16394 * xselect.c (x_get_foreign_selection): Return nil if desired
16395 selection could not be obtained, instead of signalling an error.
16396
163972008-08-20 David Reitter <david.reitter@gmail.com>
16398
16399 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
16400 * nsterm.m: Remove ns-specific code for cursor blinking.
16401 (ns_draw_window_cursor): Clear cursor properly rather than
16402 redrawing the area. Respect width of bar cursors.
16403 These changes enable the use of generic blink-cursor-mode and
16404 generic cursor types in NS and support smooth cursor movements (do
16405 not blink off after command).
16406 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
16407 Nextstep, too.
16408
164092008-08-19 Kenichi Handa <handa@m17n.org>
16410
16411 * font.c (Vfont_log_deferred): New variable.
16412 (font_add_log): Check Vfont_log_deferred.
16413 (font_deferred_log): New function.
16414
16415 * font.h (font_deferred_log): Extern it.
16416
16417 * fontset.c (reorder_font_vector): Use encoding charset of fonts
16418 for sorting.
16419 (face_for_char): Use deferred log.
16420
164212008-08-18 Kenichi Handa <handa@m17n.org>
16422
16423 * fontset.c (face_for_char): Add font log.
16424
16425 * font.c (font_add_log): Add the font properties :script, :lang,
16426 and :otf in the log.
16427
164282008-08-17 Chong Yidong <cyd@stupidchicken.com>
16429
16430 * xdisp.c: Remove dead code.
16431 (handle_invisible_prop, next_overlay_string): Defer call to
16432 setup_for_ellipsis.
16433 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
16434
164352008-08-15 Chong Yidong <cyd@stupidchicken.com>
16436
16437 * xfaces.c (lookup_derived_face): Properly handle possible zero
16438 return value of get_lface_attributes.
16439 (merge_faces): Don't tell lookup_derived_face to signal an error
16440 if face is not found.
16441
16442 * dired.c (Fdirectory_files): Doc fix.
16443
16444 * process.c (make_process): Initialize kill_without_query struct
16445 member.
16446
164472008-08-15 Eli Zaretskii <eliz@gnu.org>
16448
16449 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16450 Alternative calculation of totphys for Visual Studio 6.
16451
16452 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16453
16454 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16455 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16456 All users changed.
16457 (stat): Only root directory passed to GetDriveType. Allow RAM
16458 disk as well as local fixed disk when w32-get-true-file-attributes
16459 is set to `local'.
16460 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16461 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16462 (w32_cached_id, w32_add_to_cache): New functions.
16463 (get_name_and_id): Look account names in the cache before calling
16464 lookup_account_sid.
16465 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16466 New initialization flags.
16467 (globals_of_w32): Initialize them to zero.
16468 (w32_system_process_attributes): Use w32_cached_id and
16469 w32_add_to_cache.
16470
164712008-08-14 Lawrence Mitchell <wence@gmx.li>
16472
16473 * lread.c (Fread_char, Fread_char_exclusive): If no character
16474 event is read before timeout is reached, return nil, rather than
16475 converting to a number.
16476
164772008-08-14 Chong Yidong <cyd@stupidchicken.com>
16478
16479 * fns.c (use_dialog_box): Doc fix.
16480
16481 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16482 on OS X.
16483
164842008-08-13 Chong Yidong <cyd@stupidchicken.com>
16485
16486 * frame.c (Qns_parse_geometry): New var.
16487 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16488
164892008-08-11 Chong Yidong <cyd@stupidchicken.com>
16490
16491 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16492 space character in calculating tabs.
16493
164942008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16495
16496 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16497
164982008-08-10 Glenn Morris <rgm@gnu.org>
16499
16500 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16501 silence gcc "limited range of data type" warnings in some
16502 make_fixnum_or_float calls.
16503
165042008-08-09 Eli Zaretskii <eliz@gnu.org>
16505
16506 * w32.c (w32_system_process_attributes): If the process does not
16507 exist, return nil.
16508
16509 * w32.c: Include thelp32.h, psapi.h and coding.h.
16510 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16511 declarations.
16512 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16513 (Process32Next_Proc): New typedefs.
16514 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16515 (g_b_init_process32_next, g_b_init_open_thread_token)
16516 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16517 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16518 (g_b_init_get_process_working_set_size)
16519 (g_b_init_global_memory_status_ex): New static variables.
16520 (globals_of_w32): Initialize them.
16521 (create_toolhelp32_snapshot, process32_first, process32_next)
16522 (open_thread_token, impersonate_self, revert_to_self)
16523 (get_process_memory_info, get_process_working_set_size)
16524 (global_memory_status, global_memory_status_ex): New wrapper
16525 functions.
16526 (w32_list_system_processes, w32_system_process_attributes)
16527 (enable_privilege, restore_privilege, ltime, process_times):
16528 New functions.
16529 (convert_time_raw): New function.
16530 (convert_time): Remove conversion of FILETIME into time in 100
16531 nsec units, call convert_time_raw instead.
16532
16533 * process.h (w32_list_system_processes, w32_system_process_attributes):
16534 Add prototypes.
16535 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16536 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16537 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16538 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16539
16540 * process.c (Fsystem_process_attributes): Doc fix.
16541
165422008-08-08 Chong Yidong <cyd@stupidchicken.com>
16543
16544 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16545 a continued multi-char glyph; if so, advance to the actual glyph.
16546
165472008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16548
16549 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16550
16551 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16552 (.m.o): Use it.
16553 * config.in: Regenerate.
16554
165552008-08-07 Chong Yidong <cyd@stupidchicken.com>
16556
16557 * xdisp.c (redisplay_window): Revert last change.
16558 (try_window): Check bottom scroll margin too.
16559
165602008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16561
16562 * config.in: Regenerate.
16563
16564 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16565 -list-load-path-shadows'.
16566 (nsgui.h): Reduce number of things depending on it.
16567
165682008-08-06 Chong Yidong <cyd@stupidchicken.com>
16569
16570 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16571 instead of window-end which does the wrong thing at eob.
16572 (try_cursor_movement): Minor optimization.
16573 (redisplay_window): If scroll margin is defined, don't assume
16574 window doesn't need scrolling.
16575
165762008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16577
16578 * config.in: Regenerate.
16579
16580 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16581 (mostlyclean): Don't delete *.d under NS.
16582
16583 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16584
165852008-08-06 Kenichi Handa <handa@m17n.org>
16586
16587 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16588
165892008-08-06 Andreas Schwab <schwab@suse.de>
16590
16591 * config.in: Regenerate.
16592
165932008-08-05 Chong Yidong <cyd@stupidchicken.com>
16594
16595 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16596 forcing a window start.
16597
16598 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16599 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16600
166012008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16602
16603 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16604 argument.
16605
166062008-08-05 Juanma Barranquero <lekktu@gmail.com>
16607
16608 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16609 <scroll-down-aggressively, before-change-functions>:
16610 <after-change-functions>: Reflow docstrings.
16611
166122008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16613 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16614
16615 Dock menu customization, based on a patch by Ken Raeburn, plus some
16616 other fixes.
16617 * nsmenu.m (dockMenu): New variable.
16618 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16619
16620 * nsterm.h (dockMenu): Declare.
16621
16622 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16623 (ns_term_init): Initialize dockMenu.
16624 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16625 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16626 left.
16627
16628 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16629
166302008-08-04 Chong Yidong <cyd@stupidchicken.com>
16631
16632 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16633
16634 * config.in: Regenerate.
16635
166362008-08-04 Seiji Zenitani <zenitani@mac.com>
16637
16638 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16639
166402008-08-04 Chong Yidong <cyd@stupidchicken.com>
16641
16642 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16643
166442008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16645
16646 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16647
16648 * keyboard.h: Comment an #endif.
16649
16650 * lisp.h (have_menus_p): Adjust comment.
16651
16652 * menu.c (find_and_return_menu_selection): Fix comparison with
16653 client_data.
16654
16655 * nsmenu.m (popup_activated_flag): New variable.
16656 (popup_activated): New function.
16657 (menu-or-popup-active-p): New exported lisp definition.
16658 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16659 when popup done.
16660 (ns_popup_dialog): Set popup_activated_flag.
16661
16662 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16663 version for GNUstep (handled by conditional typedef in nsterm.m).
16664 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16665 in rgb.txt).
16666
16667 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16668
16669 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16670
16671 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16672
16673 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16674 shortcircuit if popup_activated like GTK and X toolkit.
16675
16676 * m/inter386.h: Change DARWIN to DARWIN_OS.
16677
16678 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16679 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16680 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16681 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16682
166832008-08-03 Chong Yidong <cyd@stupidchicken.com>
16684
16685 * nsterm.m (windowDidResize): Remove stopModal call.
16686
166872008-08-03 Andreas Schwab <schwab@suse.de>
16688
16689 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16690 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16691
166922008-08-02 Chong Yidong <cyd@stupidchicken.com>
16693
16694 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16695 Don't use uninitialized pointer variable when using getrlimit.
16696
166972008-08-02 Jason Rumney <jasonr@gnu.org>
16698
16699 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16700
167012008-08-02 Eli Zaretskii <eliz@gnu.org>
16702
16703 * alloc.c (NSTATICS): Bump to 0x640.
16704
16705 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16706
16707 * lisp.h: Add prototype for directory_files_internal.
16708
16709 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16710 New functions.
16711 (syms_of_process): Defsubr them. Add initializations for various
16712 Q* symbols used in procfs_system_process_attributes.
16713 (procfs_list_system_processes, procfs_system_process_attributes)
16714 [HAVE_PROCFS]: New functions.
16715 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16716 (procfs_get_total_memory): New functions.
16717
167182008-08-01 Juanma Barranquero <lekktu@gmail.com>
16719
16720 * xfaces.c (Fx_load_color_file): Fix previous change;
16721 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16722
167232008-08-01 Michael Albinus <michael.albinus@gmx.de>
16724
16725 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16726
167272008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16728
16729 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16730
167312008-08-01 Chong Yidong <cyd@stupidchicken.com>
16732
16733 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16734
16735 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16736 define NSApplicationDelegateReplySuccess.
16737 (EmacsView -converstationIdentifier): Use long instead of
16738 NSInteger for GNUstep, since it doesn't have NSInteger.
16739
16740 * xmenu.c: Revert last change.
16741
16742 * keyboard.h: Fix last change.
16743
167442008-08-01 Juanma Barranquero <lekktu@gmail.com>
16745
16746 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16747 on Windows.
16748
167492008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16750
16751 Warning clearing and clean-up in NS port.
16752 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16753 Add prototypes.
16754 * nsgui.h (FACE_DEFAULT): Remove, unused.
16755 (XGCValues): Change colors to unsigned long.
16756 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16757 nsterm.m.
16758 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16759 (ns_list_fonts): Remove, unused.
16760 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16761 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16762 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16763 (nsfont_draw): Compare face colors to 0, not nil.
16764 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16765 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16766 (-addSubmenuWithTitle:): Use NSMenuItem class.
16767 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16768 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16769 (ns_clip_to_row): Make gc arg a BOOL.
16770 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16771 ns_clip_to_row() call.
16772 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16773 used). Cast FRAME_FONT assignments.
16774 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16775 (ns_string_to_lispmod): Change arg to const char.
16776 (ns_term_init): Use NSMenuItem class.
16777 (EmacsApp -openFile:): Move to different section of file.
16778 (EmacsApp -application:openFiles:): Don't return a value, call
16779 -replyToOpenOrPrint:.
16780 (EmacsView -keyDown:): Fix up cast.
16781 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16782 (EmacsView -menuDown:): Cast tag in call to
16783 find_and_call_menu_selection().
16784 (ns_list_fonts): Remove, unused.
16785 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16786 (ns_fontname_to_xlfd): Make static.
16787 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16788 Remove prototypes (now in keyboard.h).
16789 (next_menubar_widget_id): Remove, unused.
16790 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16791 Remove prototypes (now in keyboard.h).
16792 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16793
167942008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16795
16796 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16797 (floatfns.o): Depend on syssignal.h.
16798 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16799
16800 * systty.h: Fix previous change that removed BSD_TERMIOS.
16801 Add comments to #ifdefs.
16802
168032008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16804
16805 * w32fns.c (w32-load-color-file): Remove.
16806 (x-open-connection): Use renamed Fx_load_color_file.
16807 * xfaces.c (x-load-color-file): Add.
16808 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16809 Emacs.clr.
16810 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16811
168122008-07-31 Michael Albinus <michael.albinus@gmx.de>
16813
16814 * dbusbind.c (Fdbus_call_method_asynchronously)
16815 (Fdbus_method_error_internal): New defuns.
16816 (xd_read_message): Handle also reply messages.
16817 (Vdbus_registered_functions_table): Extend docstring.
16818
168192008-07-31 Juanma Barranquero <lekktu@gmail.com>
16820
16821 * keyboard.c (gobble_input): Fix previous change.
16822
168232008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16824
16825 * bitmaps/README:
16826 * xfns.c:
16827 * termcap.c:
16828 * term.c:
16829 * syswait.h:
16830 * systty.h:
16831 * systime.h:
16832 * syssignal.h:
16833 * sysdep.c:
16834 * process.h:
16835 * process.c:
16836 * print.c:
16837 * ndir.h:
16838 * lread.c:
16839 * keyboard.c:
16840 * getpagesize.h:
16841 * floatfns.c:
16842 * fileio.c:
16843 * emacs.c:
16844 * doc.c:
16845 * dispnew.c:
16846 * dired.c:
16847 * data.c:
16848 * callproc.c:
16849 * buffer.c:
16850 * README:
16851 * Makefile.in:
16852 * s/template.h:
16853 * s/msdos.h:
16854 * m/vax.h: Remove VMS support.
16855 * s/vms.h:
16856 * vlimit.h:
16857 * uaf.h:
16858 * temacs.opt:
16859 * param.h:
16860 * ioctl.h: Remove file.
16861
168622008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16863
16864 * s/ms-w32.h (MULTI_KBOARD): Remove.
16865 * xterm.c:
16866 * xselect.c:
16867 * xfns.c:
16868 * window.c:
16869 * w32term.c:
16870 * w32fns.c:
16871 * terminal.c:
16872 * termhooks.h:
16873 * term.c:
16874 * sysdep.c:
16875 * keyboard.h:
16876 * keyboard.c:
16877 * frame.h:
16878 * frame.c:
16879 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16880 * config.in: Regenerate.
16881
168822008-07-30 Jason Rumney <jasonr@gnu.org>
16883
16884 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16885
16886 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16887 (w32font_open_internal): Get unicode version of textmetrics.
16888 Don't enable or disable glyph indices here.
16889 (w32font_open): Disable use of glyph indices.
16890
16891 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16892
168932008-07-30 Chong Yidong <cyd@stupidchicken.com>
16894
16895 * minibuf.c (Vread_buffer_function): Doc fix.
16896
168972008-07-30 John Paul Wallington <jpw@pobox.com>
16898
16899 * minibuf.c (read_buffer_completion_ignore_case): New var.
16900 (Fread_buffer): Use it.
16901
169022008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16903
16904 * systty.h (sensemode): Remove empty #if. Remove reference to
16905 BSD_TERMIOS, unused.
16906
16907 * sysdep.c: Remove reference to DGUX.
16908 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16909
16910 * config.in: Regenerate.
16911
169122008-07-30 Jason Rumney <jasonr@gnu.org>
16913
16914 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16915
169162008-07-29 Jason Rumney <jasonr@gnu.org>
16917
16918 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16919 is populated.
16920 (uniscribe_encode_char): Always use uniscribe.
16921 Avoid using context if cache is populated.
16922
169232008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16924
16925 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16926 open menu.
16927
16928 * gtkutil.c (menu_nav_ended): Remove.
16929 (create_menus): Remove signal connect for menu_nav_ended.
16930
169312008-07-28 Chong Yidong <cyd@stupidchicken.com>
16932
16933 * xdisp.c (redisplay_window): Check return value of
16934 compute_window_start_on_continuation_line before forcing a window
16935 start.
16936
169372008-07-28 Jason Rumney <jasonr@gnu.org>
16938
16939 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16940
16941 * w32term.c (w32_enable_unicode_output, cleartype_active):
16942 Remove obsolete display options.
16943 (x_draw_glyph_string_background): Don't use old cleartype_active
16944 workaround.
16945 (w32_initialize): Remove cleartype_active initialization.
16946 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16947
169482008-07-28 Andreas Schwab <schwab@suse.de>
16949
16950 * lisp.h (init_weak_hash_tables, syms_of_font)
16951 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16952 (remove_hash_entry): Don't declare.
16953 * eval.c (maybe_call_debugger): Make static and move before use.
16954 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16955 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16956 * xterm.h (x_set_frame_alpha): Declare.
16957
169582008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16959
16960 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16961 (create_menus): Connect selection-done to menu_nav_ended.
16962
169632008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16964
16965 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16966 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16967 parameter with read of 'alpha' one.
16968 (Qns_frame_parameter): Remove.
5582fbc7 16969 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16970 (next-selection-coding-system, Vselection_coding_system)
16971 (Vnext_selection_coding_system): Drop.
16972
169732008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16974
16975 * nsfns.m (do-applescript, do_applescript): Rename to
16976 ns-do-applescript, ns_do_applescript, and move within file.
16977
169782008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16979
16980 Remove support for Mac Carbon.
16981 * mactoolbox.c:
16982 * macterm.h:
16983 * macterm.c:
16984 * macselect.c:
16985 * macmenu.c:
16986 * macgui.h:
16987 * macfns.c:
16988 * mac.c: Remove file.
16989 * s/darwin.h:
16990 * m/intel386.h:
16991 * xfaces.c:
16992 * xdisp.c:
16993 * window.c:
16994 * tparam.c:
16995 * termhooks.h:
16996 * termcap.c:
16997 * term.c:
16998 * syssignal.h:
16999 * sysselect.h:
17000 * sysdep.c:
17001 * process.c:
17002 * lread.c:
17003 * lisp.h:
17004 * keyboard.c:
17005 * image.c:
17006 * fringe.c:
17007 * frame.h:
17008 * frame.c:
17009 * fontset.c:
17010 * font.h:
17011 * font.c:
17012 * fns.c:
17013 * fileio.c:
17014 * emacs.c:
17015 * dispnew.c:
17016 * dispextern.h:
17017 * config.in:
17018 * atimer.c:
2ae37cf0 17019 * Makefile.in: Remove code for Carbon.
aac0c6e3 17020
f0131492 170212008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
17022
17023 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17024
170252008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17026
17027 * macterm.h (kCGBitmapByteOrder32Host): New define for
17028 non-universal SDKs.
17029
17030 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17031 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17032
17033 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17034 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17035
170362008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17037
17038 * w32inevt.c: Include dispextern.h.
17039
170402008-07-26 Andreas Schwab <schwab@suse.de>
17041
17042 * print.c (print_object): Fix off-by-one in last change.
17043
170442008-07-25 Juanma Barranquero <lekktu@gmail.com>
17045
17046 * term.c (syms_of_term): Don't initialize default_orig_pair,
17047 default_set_foreground and default_set_background on Windows.
17048
170492008-07-25 Jason Rumney <jasonr@gnu.org>
17050
17051 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17052 ScriptItemize. Clean up return value checking. Remove unused
17053 variables.
17054 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17055 shaping engine.
17056
17057 * w32font.c (w32font_has_char): Handle the case where we can't
17058 determine the script for a character.
17059
170602008-07-25 Chong Yidong <cyd@stupidchicken.com>
17061
17062 * term.c (syms_of_term): Initialize default_orig_pair,
17063 default_set_foreground, and default_set_background.
17064
17065 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17066 clash (bug#86).
17067 (getloadavg): Callers changed.
17068
17069 * image.c (svg_load_image): Fix last change.
17070 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17071 image size is valid. Use g_object_unref instead of deprecated
17072 rsvg_handle_free to free rsvg handle.
17073 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17074
170752008-07-25 Jason Rumney <jasonr@gnu.org>
17076
17077 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17078 surrogates before looking up glyph index.
17079 (w32font_text_extents): Encode as surrogates if falling back to
17080 functions that need UTF-16 wide chars.
17081
17082 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17083 BMP as surrogates before looking up glyph index.
17084
170852008-07-25 Chong Yidong <cyd@stupidchicken.com>
17086
17087 * image.c (svg_load_image): Check for failure in return value of
17088 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17089
170902008-07-25 Jason Rumney <jasonr@gnu.org>
17091
17092 * w32font.c (Fx_select_font): Reverse sense of second arg.
17093
170942008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17095
17096 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17097 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17098
17099 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17100 (PURESIZE): Use it.
17101
171022008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17103
17104 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17105 * m/alpha.h (TEXT_END):
17106 * m/ibmrs6000.h (TEXT_END):
17107 * m/macppc.h (TEXT_END):
17108 * s/darwin.h (TEXT_END):
17109 * s/msdos.h (TEXT_END): Remove, unused.
17110 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17111 * s/cygwin.h: Remove comment.
17112
17113 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17114 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17115 * m/intel386.h (DOT_GLOBAL_START):
17116 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17117 (USG): Remove, file not used on USG platforms.
17118
17119 * Makefile.in (HAVE_X11): Remove empty #else.
17120
171212008-07-24 Andreas Schwab <schwab@suse.de>
17122
17123 * fileio.c (Finsert_file_contents): Properly adjust undo list
17124 after format conversion.
17125
171262008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17127
17128 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17129 (menu_nav_ended): Remove.
17130 (create_menus): Remove signal connect for menu_nav_ended.
17131 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17132 create_menus.
17133 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17134
171352008-07-23 Jason Rumney <jasonr@gnu.org>
17136
17137 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17138 with opened font.
17139 (w32font_open): Set font type to gdi.
17140
17141 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17142
171432008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17144
17145 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17146 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17147 defines it.
17148 * unexec.c (ADDR_CORRECT): Define unconditionally.
17149
17150 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17151
17152 * unexec.c: Remove code depending on !COFF and USG, the file is
17153 not used for such systems.
17154
17155 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17156 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17157 (LD_SWITCH_SYSTEM_1): Remove, update users.
17158
17159 * s/darwin.h (DATA_END):
17160 * m/intel386.h (DATA_END):
17161 * m/ibmrs6000.h (DATA_END):
17162 * m/alpha.h (DATA_END): Remove, unused.
17163
17164 * config.in: Regenerate.
17165 * s/ms-w32.h (subprocesses): Define unconditionally.
17166 * s/template.h (subprocesses): Update comment.
17167 * s/vms.h (subprocesses):
17168 * s/usg5-4.h (subprocesses):
17169 * s/hpux10-20.h (subprocesses):
17170 * s/gnu-linux.h (subprocesses):
17171 * s/cygwin.h (subprocesses):
17172 * s/bsd-common.h (subprocesses):
17173 * s/aix4-2.h (subprocesses):
17174 * s/darwin.h (subprocesses): Do not define, defined by default now.
17175
17176 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17177 Remove all references.
17178 (temacs): Add GNUstep specific ld flags.
17179
17180 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17181 similarly to what X does.
17182
171832008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17184
17185 * nsfns.m (x-list-fonts): Remove.
17186 (syms_of_nsfns): Drop the x-list-fonts declaration.
17187 * nsterm.m: Get rid of remaining "//" comments.
17188
171892008-07-22 Chong Yidong <cyd@stupidchicken.com>
17190
17191 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17192
17193 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17194 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17195 (Fns_own_selection_internal, Fx_disown_selection_internal)
17196 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17197
17198 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17199 ... */' style of docstrings. Doc fixes.
17200
172012008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17202
17203 * terminfo.c (UP, BC, PC): Undo previous change.
17204
17205 * nsfns.m: Rename ns prefixed functions/variables to the
17206 corresponding x versions. Update references.
17207
172082008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17209
17210 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17211
172122008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17213
17214 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17215 Remove forwarding functions.
17216 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17217 non-static.
17218 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17219 non-static.
17220 (ns_frame_parm_handlers): Use the new names.
17221 (syms_of_nsfns): Move to the end of file.
17222
17223 * nsterm.m (syms_of_nsterm): Move to the end of file.
17224
17225 * dispnew.c (init_display): Remove code for X10.
17226
172272008-07-22 Jason Rumney <jasonr@gnu.org>
17228
17229 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17230 bare drive.
17231
172322008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17233
17234 * nsterm.m (syms_of_nsterm): Remove debugging println.
17235
172362008-07-22 David Reitter <david.reitter@gmail.com>
17237
17238 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17239 Carbon implementation of the same functionality: execute arbitrary
17240 AppleScript code.
17241
172422008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17243
17244 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17245 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17246 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17247 (Fx_display_mm_height, Fx_display_mm_width)
17248 (Fx_display_backing_store, Fx_display_visual_class)
17249 (Fx_display_save_under, Fx_open_connection)
17250 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17251 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17252 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17253 (Fx_display_pixel_width, Fx_display_pixel_height)
17254 (Fx_display_usable_bounds, Fx_display_planes)
17255 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17256 ... */' style of docstrings.
17257
172582008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17259
17260 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17261 on this platform.
17262 (mips):
17263 * m/iris4d.h (mips): Do not define.
17264 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17265
17266 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17267
17268 * image.c:
17269 * nsfns.m:
17270 * nsselect.m:
17271 * nsterm.h:
17272 * nsterm.m: Rename ns prefixed functions/variables to the
17273 corresponding x versions. Update references.
17274
17275 * m/ibms390x.h (NO_REMAP): Do not undefine.
17276
17277 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
17278
172792008-07-21 Chong Yidong <cyd@stupidchicken.com>
17280
17281 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
17282 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
17283 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
17284 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
17285 (Fns_display_mm_height, Fns_display_mm_width)
17286 (Fns_display_backing_store, Fns_display_visual_class)
17287 (Fns_display_save_under, Fns_open_connection)
17288 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
17289 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
17290 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17291 (Fns_display_pixel_width, Fns_display_pixel_height)
17292 (Fns_display_usable_bounds, Fx_display_planes)
17293 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
17294
172952008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
17296
17297 * print.c (print_object): Check print_depth before searching for
17298 circularities.
17299
173002008-07-21 Michael Albinus <michael.albinus@gmx.de>
17301
17302 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
17303 only sprintf.
17304
173052008-07-21 Kenichi Handa <handa@m17n.org>
17306
17307 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
17308
173092008-07-20 Andreas Schwab <schwab@suse.de>
17310
17311 * syntax.c (find_start_pos, find_start_value)
17312 (find_start_value_byte, find_start_begv, find_defun_start)
17313 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
17314
173152008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17316
17317 * s/sol2-3.h: Insert contents of s/sol2.h.
17318 (LD_SWITCH_SYSTEM): Remove redundant definition.
17319 * s/sol2.h: Remove, unused.
17320
173212008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17322
17323 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
17324
173252008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17326
17327 * Makefile.in (ns_appdir): Fix typo in find command.
17328
173292008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17330
17331 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
17332
17333 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
17334 added not supported anymore.
17335
17336 * s/usg5-4-2.h (LIBS_SYSTEM):
17337 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
17338
17339 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17340 * s/lynxos.h (GETPGRP_NO_ARG):
17341 * s/hpux10-20.h (NO_SIOCTL_H):
17342 * s/gnu.h (GETPGRP_NO_ARG):
17343 * s/gnu-linux.h (NO_SIOCTL_H):
17344 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17345 * s/cygwin.h (GETPGRP_NO_ARG):
17346 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17347 (C_DEBUG_SWITCH): Remove duplicate definition.
17348
17349 * m/ibms390.h: Remove boilerplate comments.
17350
17351 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
17352
17353 * process.c (HAVE_SERIAL): Consolidate ifdefs.
17354 (wait_reading_process_output): Remove code for SunOS, platform not
17355 supported anymore. Use SOLARIS2 instead of sun.
17356
173572008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17358
17359 * font.c (font_open_by_name): Under NS, default lface height to zero.
17360 (font_open_for_lface): Under NS, set size based on frame fontsize.
17361 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
17362 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
17363
173642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17365
17366 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
17367 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
17368 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
17369 YES/NO.
17370 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
17371 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
17372 * Makefile.in (clean): Clear out build destination dir.
17373
173742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17375
17376 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
17377 xterm, xselect.
17378 * lisp.h: Remove declaration of hash_remove.
17379 * nsgui.h: Remove redefinitions of hash_remove.
17380 * fns.c (hash_remove): Rename to hash_remove_from_table.
17381
173822008-07-19 Seiji Zenitani <zenitani@mac.com>
17383
17384 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
17385 strdup() the family UTF8String before modifying it.
17386
173872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17388
17389 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
17390 NS_FACE_BACKGROUND with 0 instead of nil.
17391 * nsfont.m (nsfont_draw): Same.
17392
173932008-07-19 Chong Yidong <cyd@stupidchicken.com>
17394
17395 * nsfns.m (ns_set_background_color): Fix crash.
17396
173972008-07-18 Chong Yidong <cyd@stupidchicken.com>
17398
17399 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
17400
174012008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
17402
17403 * puresize.h (BASE_PURESIZE): Increase to 1240000.
17404
174052008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17406
17407 * gtkutil.c: Include <config.h> instead of "config.h".
17408
17409 * lisp.h (Foverlay_buffer): Add EXFUN.
17410
17411 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
17412 child process to complete child_setup. Undo 2005-09-21 change.
17413
17414 * s/darwin.h: Mention setsid after vfork.
17415
174162008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17417
17418 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
17419 Depend on macgui.h.
17420
17421 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
17422 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
17423
17424 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
17425 and f19.
17426 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
17427
17428 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
17429 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
17430 Remove enumerators.
17431
17432 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
17433 Check if FACE_FROM_ID returns NULL.
17434
174352008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
17436
17437 * w32inevt.c (change_frame_size): Remove extern declaration.
17438 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
17439 change_frame_size.
17440
174412008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17442
17443 * getloadavg.c: Revert last change (2008-07-15).
17444
174452008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17446
17447 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 17448 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
17449 from configure.
17450
174512008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17452
17453 * s/sol2.h:
17454 * s/sol2-4.h: Reorganize conditionals.
17455
17456 * ecrt0.c: Remove code depending on m68000, not used anymore.
17457
17458 * fns.c (hash_remove): Make static.
17459 * lisp.h (hash_remove): Don't prototype.
17460
17461 * m/ibmrs6000.h:
17462 * m/ibms390x.h:
17463 * m/macppc.h: Remove boilerplate comments.
17464
17465 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17466 Solaris, which does not need them.
17467
17468 * m/vax.h: Remove comments about unsupported systems.
17469
17470 * s/darwin.h: Reorganize ifdefs.
17471
174722008-07-17 Andreas Schwab <schwab@suse.de>
17473
17474 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17475
174762008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17477
17478 Use SDATA. Follow coding convention of placing operators at
17479 beginning of next line rather than end of previous line, and placing
17480 spaces around infix operators.
17481
17482 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17483 in case it was defined already.
17484 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17485 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17486 ns_default.
17487 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17488 Lisp_Objects.
17489 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17490 (ns_defined_color, ns_color_to_lisp): Declare.
17491 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17492 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17493 it's accepted even with USE_LISP_UNION_TYPE.
17494 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17495 (update_frame_tool_bar): Remove apparently obsolete tests for
17496 non-integerness of f->tool_bar_lines.
17497 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17498 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17499 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17500 (nsfont_open): Don't confuse NULL for Qnil.
17501 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17502 * menu.h (find_and_call_menu_selection):
17503 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17504 (find_and_return_menu_selection): Always return something.
17505 * frame.h: Include dispextern.h for Display_Info.
17506 (display_x_get_resource): Declare.
17507
175082008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17509
17510 * syntax.c: Remove stdio.h include accidentally introduced in
17511 Emacs.app commit.
17512 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17513 NS_IMPL_COCOA.
17514 * keyboard.c (handle_async_input, input_available_signal): Remove
17515 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17516
175172008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17518
17519 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17520 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17521 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17522 Use SDATA.
17523
17524 * keymap.c: Remove all NS-specific code.
17525 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17526 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17527 where_is_preferred_modifier, return a different value depending on how
17528 preferred is the binding.
17529 (where_is_internal): Adjust accordingly.
17530 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17531 Adjust to new preferred_sequence_p.
17532 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17533 * keyboard.c (parse_solitary_modifier): Not static any more.
17534 * keyboard.h (parse_solitary_modifier): Declare.
17535
175362008-07-16 Andreas Schwab <schwab@suse.de>
17537
17538 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17539 of easymenu.
17540
175412008-07-16 Chong Yidong <cyd@stupidchicken.com>
17542
17543 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17544 that we don't move off the line.
17545
175462008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17547
17548 * keyboard.c (Qsuper): Remove.
17549 (parse_menu_item): Don't call where_is_internal specially for NS.
17550
175512008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17552
17553 * s/gnu-linux.h: Remove boilerplate comments.
17554
17555 * m/alpha.h (__ELF__): Consolidate conditions.
17556
17557 * m/m68k.h (linux): Use GNU_LINUX instead.
17558 Remove boilerplate comments.
17559
17560 * m/intel386.h: Undo refactoring from previous change.
17561 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17562 too, remove dead code.
17563 (linux): Use GNU_LINUX instead.
17564
175652008-07-16 Jason Rumney <jasonr@gnu.org>
17566
17567 * w32gui.h: Repeat 26 June changes lost by last change.
17568
175692008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17570
17571 * systty.h: Remove code for Aix on 386, unsupported platform.
17572
17573 * s/ms-w32.h: Remove boilerplate comments.
17574 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17575
17576 * s/gnu-linux.h (TERM): Remove support.
17577 (HAVE_SYSVIPC): Remove, unused.
17578 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17579 for this system.
17580
17581 * process.c: Remove support for IRIS, unused.
17582 Remove support for TERM, not relevant anymore.
17583
17584 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17585 used with the definition.
17586
17587 * s/aix4-2.h (static): Do not undef.
17588
17589 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17590 only used on Aix.
17591 (HAVE_SYSVIPC): Remove, unused.
17592
17593 * m/hp800.h (CANNOT_DUMP): Do not undef.
17594
17595 * m/alpha.h: Fix comment.
17596
17597 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17598 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17599 used by this configuration.
17600 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17601 * unexec.c: Remove code depending on HPUX and
17602 USG_SHARED_LIBRARIES, not used with this file. Remove code
17603 depending on IRIS, unused. Remove if 0-ed code.
17604
17605 * s/template.h: Remove comments about static.
17606
17607 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17608 Remove if 0-ed code.
17609 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17610 were the same as the default.
17611 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17612 Remove boilerplate comments.
17613 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17614 (HAVE_SYSVIPC): Remove, unused.
17615 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17616
17617 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17618 Remove boilerplate comments.
17619 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17620 Remove boilerplate comments.
17621 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17622 Remove boilerplate comments.
17623 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17624
17625 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17626 USG systems which do not use DATA_SEG_BITS.
17627 Refactor code. Remove boilerplate comments.
17628
17629 * m/ibms390.h:
17630 * m/m68k.h:
17631 * s/bsd-common.h:
17632 * s/cygwin.h:
17633 * s/darwin.h:
17634 * s/freebsd.h:
17635 * s/gnu.h:
17636 * s/msdos.h: Remove boilerplate comments.
17637
17638 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17639 do not use this file.
aac0c6e3
MR
17640 (IRIS_4D): Remove, unused.
17641
17642 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17643 do not use this file.
aac0c6e3
MR
17644 (SIGN_EXTEND_CHAR):
17645 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17646 * unexmips.c: Remove file, unused.
17647
17648 * editfns.c (Fuser_full_name): Replace the only use of
17649 USER_FULL_NAME with its value.
17650 * config.in: Regenerate.
17651
176522008-07-16 David Reitter <david.reitter@gmail.com>
17653
17654 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17655 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17656
176572008-07-16 Glenn Morris <rgm@gnu.org>
17658
17659 * emacs.c (system-type): Doc fix.
17660
176612008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17662
17663 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17664 If the cache doesn't work, let's fix it, rather than work around it.
17665
176662008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17667
17668 * Makefile.in: Correct additions for nsfont.o in last commit.
17669 * nsfont.m: New file (forgot last commit).
17670
176712008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17672
bba3e508
SM
17673 * callproc.c (set_initial_environment):
17674 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17675 batch-compiling for bootstrap).
17676
176772008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17678 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17679
c4cc8b9a
JB
17680 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17681 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17682
176832008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17684
17685 Changes and additions for NeXTstep windowing system (Cocoa and
17686 GNUstep) support.
17687
17688 * Makefile.in:
17689 * config.in: Support defines and build commands for NS port.
17690 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17691 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17692 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17693 windowing.
17694 (struct face): Add synth_ital field.
17695 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17696 (init_display): Initialize Vinitial_window_system to "ns" when so
17697 compiled.
17698 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17699 (display_arg): Use under NS.
17700 (main): Under NS, allocate autorelease pool and handle command line
17701 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17702 (standard_args): Add NS-specific args.
17703 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17704 * font.c (DEFAULT_ENCODING): New variable.
17705 (font_find_for_lface): Use it.
17706 (syms_of_font): Load syms_of_nsfont under NS.
17707 * font.h: Declare nsfont_driver when compiled under NS.
17708 * fontset.c: When compiling under NS, include nsterm.h.
17709 (fontset_from_font): Autoconstruct fontset under NS.
17710 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17711 symbol, document and use it.
17712 (do_switch_frame): When for_deletion under Cocoa, add
17713 Fraise_frame(Qnil).
17714 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17715 (x_get_arg): Allow "yes" and "no" as boolean values.
17716 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17717 Qright under Cocoa.
17718 (focus-follows-mouse): Default to 0 under NS.
17719 * frame.h (enum output_method): Add output_ns.
17720 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17721 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17722 (FRAME_WINDOW_P): NS-specific definition.
17723 * fringe.c (max_used_fringe_bitmap): Make public.
17724 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17725 (getloadavg): Use NeXT code under descendant OS's.
17726 * image.c (includes and header section, x_create_bitmap_from_data)
17727 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17728 (image_background_transparent, x_clear_image_1)
17729 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17730 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17731 (x_to_xcolors, x_from_xcolors, x_disable_image)
17732 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17733 other GUIs, including XPM support using code originally written for
17734 Carbon GUI.
17735 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17736 using NS API.
17737 (image_ascent): Use font metrics macros instead of direct struct field
17738 access.
17739 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17740 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17741 Also, handle NS as GTK for menu bar purposes.
17742 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17743 toolkit where they differ.
17744 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17745 use cachelist, still needed under NS.
17746 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17747 (struct widget_value): Define it here for menu.c.
17748 * keymap.c (includes): Include modifier internals.
17749 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17750 NS.
17751 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17752 support for preferring sequences using certain modifiers, specified by
17753 the FIRSTONLY argument.
17754 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17755 under NS GNUstep implementation.
17756 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17757 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17758 * menu.c: Include nsterm.h under NS.
17759 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17760 (free_menubar_widget_tree_value, update_submenu_strings)
17761 (find_and_call_menu_selection): Treat NS as X and NT.
17762 (find_and_return_menu_selection): New function, used for popup menus.
17763 * nsgui.h:
17764 * nsterm.h:
17765 * nsfns.m:
17766 * nsimage.m:
17767 * nsmenu.m:
17768 * nsselect.m:
17769 * nsterm.m: New files.
17770 * process.c (wait_reading_process_output): Under NS, call ns_select()
17771 instead of plain select().
17772 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17773 beginning of buffer.
17774 * sysselect.h (init_process): Rename when compiling under Cocoa to
17775 avoid name conflict.
17776 * termhooks.h (display_info): Add ns_display_info to union.
17777 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17778 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17779 COCOA environment.
17780 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17781 unexec() signature. (Note, this will dump, but the resulting file
17782 crashes; unexosx is used instead; keeping around for reference and
17783 possible aid in getting dump working under GNUstep.)
17784 * w32gui.h (button_type, widget_value): Remove definitions (now in
17785 keyboard.h).
17786 * window.c: Include nsterm.h when compiling under NS.
17787 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17788 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17789 other GUI windowing systems.
17790 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17791 GTK.
17792 (x_consider_frame_title): Under NS, set icon type and frame
17793 modified-state indicator; use ns_set_name_as_filename() when using
17794 formatted title.
17795 (update_window_cursor): Make public when compiling under NS.
17796 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17797 (hourglass_atimer, Vhourglass_delay
17798 * xfaces.c (header section, init_frame_faces, clear_font_table)
17799 (defined_color, unload_color, x_face_list_fonts)
17800 (prepare_face_for_display): Add NS support parallel to other GUIs.
17801 Emulate GCs like other non-X GUIs.
17802 (split_font_name): Don't lowercase font name under NS.
17803 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17804 under NS.
17805 * s/darwin.h: Add support for compilation under NS.
17806
178072008-07-15 Jason Rumney <jasonr@gnu.org>
17808
17809 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17810 (w32_show_hourglass): Rename from show_hourglass.
17811 (w32_hide_hourglass): Rename from hide_hourglass.
17812 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17813 (Vhourglass_delay): Declare extern.
17814 (hourglass_started): Remove.
17815
17816 * xdisp.c (Vhourglass_delay): Remove static.
17817 (hourglass_started, start_hourglass, cancel_hourglass):
17818 Don't include these versions on WINDOWSNT.
17819
178202008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17821
17822 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17823 variables (formerly in xfns.c).
17824 (show_hourglass, hide_hourglass): New prototypes (same).
17825 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17826 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17827 in xfns.c).
17828 (syms_of_xdisp): Declare/initialize display-hourglass,
17829 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17830 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17831 formerly in xfns.c.
17832 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17833 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17834 (start_hourglass, cancel_hourglass): Remove.
17835 (show_hourglass, hide_hourglass): Remove prototypes and static
17836 modifiers.
17837 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17838 hourglass_atimer, hourglass_shown_p declaration/initialization.
17839 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17840 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17841 (start_hourglass, cancel_hourglass): Remove.
17842 (show_hourglass, hide_hourglass): Remove prototypes and static
17843 modifiers.
17844 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17845 hourglass_atimer, hourglass_shown_p declaration/initialization.
17846 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17847 (DEFAULT_HOURGLASS_DELAY): Remove.
17848 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17849 hourglass_shown_p declaration/initialization.
17850
178512008-07-14 Jason Rumney <jasonr@gnu.org>
17852
17853 * w32fns.c (w32_get_arg): Remove wrapper function.
17854 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17855 directly.
17856 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17857
178582008-07-14 Kenichi Handa <handa@m17n.org>
17859
17860 * xfont.c (xfont_open): Add workaround for X's bug.
17861
178622008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17863
17864 * fontset.c: Include <stdio.h> unconditionally.
17865
178662008-07-13 Michael Albinus <michael.albinus@gmx.de>
17867
17868 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17869 for filtering.
17870
178712008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17872
17873 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17874
17875 * m/macppc.h:
17876 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17877
c4cc8b9a 17878 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17879 (SPECIAL_EMACS_INT):
17880 * m/ia64.h (SPECIAL_EMACS_INT):
17881 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17882 * s/gnu.h (NLIST_STRUCT):
17883 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17884 * s/gnu-linux.h (LINUX):
17885 * s/msdos.h (HAVE_FACES):
17886 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17887
17888 * systty.h:
17889 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17890 anymore.
17891
178922008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17893
17894 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17895 always defined as int.
17896
17897 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17898 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17899 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17900 * s/freebsd.h (HAVE_WAIT_HEADER):
17901 * s/bsd-common.h (HAVE_UNION_WAIT):
17902 * s/aix4-2.h (HAVE_WAIT_HEADER):
17903 * m/mips.h (HAVE_UNION_WAIT):
17904 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17905 (COFF, static): Do not define, they are undefined later in the file.
17906
17907 * process.c (update_status): Don't use a union.
17908 (status_convert):
17909 (sigchld_handler): Use int instead of WAITTYPE.
17910
179112008-07-12 Chong Yidong <cyd@stupidchicken.com>
17912
17913 * indent.c (Fvertical_motion): Restore hscroll before moving to
17914 goal column.
17915
179162008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17917
17918 * lisp.h: Remove left over code.
17919
179202008-07-11 Andreas Schwab <schwab@suse.de>
17921
17922 * lisp.h: Fix logic in last change.
17923
17924 * menu.h: New file.
17925 * menu.c: Include it.
17926 * xmenu.c: Likewise.
17927 * Makefile.in: Update dependencies.
17928
179292008-07-11 Kenichi Handa <handa@m17n.org>
17930
17931 * fontset.c (fontset_from_font): Cancel the previous change.
17932
179332008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17934
17935 * lisp.h:
17936 * w32heap.c:
17937 * emacs.c:
17938 * alloc.c: Replace all references of NO_UNION_TYPE with
17939 USE_LISP_UNION_TYPE.
17940
17941 * m/xtensa.h (NO_UNION_TYPE):
17942 * m/vax.h (NO_UNION_TYPE):
17943 * m/template.h (NO_UNION_TYPE):
17944 * m/sparc.h (NO_UNION_TYPE):
17945 * m/mips.h (NO_UNION_TYPE):
17946 * m/macppc.h (NO_UNION_TYPE):
17947 * m/m68k.h (NO_UNION_TYPE):
17948 * m/iris4d.h (NO_UNION_TYPE):
17949 * m/intel386.h (NO_UNION_TYPE):
17950 * m/ibms390x.h (NO_UNION_TYPE):
17951 * m/ibms390.h (NO_UNION_TYPE):
17952 * m/ibmrs6000.h (NO_UNION_TYPE):
17953 * m/ia64.h (NO_UNION_TYPE):
17954 * m/hp800.h (NO_UNION_TYPE):
17955 * m/arm.h (NO_UNION_TYPE):
17956 * m/amdx86-64.h (NO_UNION_TYPE):
17957 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17958 defining it the same.
17959
179602008-07-10 Chong Yidong <cyd@stupidchicken.com>
17961
17962 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17963
179642008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17965
17966 * fileio.c:
50426a04 17967 * sysdep.c:
aac0c6e3
MR
17968 * systty.h:
17969 * m/ibmrs6000.h:
17970 * m/iris4d.h:
17971 * s/aix4-2.h:
17972 * s/freebsd.h:
17973 * s/gnu-linux.h:
17974 * s/hpux10-20.h:
17975 * s/hpux11.h:
17976 * s/netbsd.h:
17977 * s/sol2-3.h:
17978 * s/sol2-4.h:
17979 * s/sol2.h:
17980 * s/usg5-4.h:
17981 * s/vms.h: Remove references to unused variables.
17982
179832008-07-10 Andreas Schwab <schwab@suse.de>
17984
17985 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17986 pattern before matching the generic family.
17987
179882008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17989
17990 * unexec.c:
17991 * s/vms.h:
17992 * s/usg5-4-2.h:
17993 * s/sol2-5.h:
17994 * s/freebsd.h:
17995 * s/darwin.h: Remove dead code.
17996
17997 * m/template.h:
17998 * m/sparc.h:
17999 * m/mips.h:
18000 * m/m68k.h:
18001 * m/iris4d.h:
18002 * m/intel386.h:
18003 * m/ibms390x.h:
18004 * m/ibms390.h:
18005 * m/ia64.h:
18006 * m/hp800.h:
18007 * m/arm.h:
18008 * m/amdx86-64.h: Remove dead code and references to unused
18009 and compiler defined symbols.
18010
18011 * unexmips.c:
18012 * unexelf.c: Remove references to desupported systems.
18013
18014 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18015
18016 * m/powermac.h: Remove boilerplate comments.
18017 (NO_REMAP): Remove unused definition.
18018
18019 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18020 define them.
18021
180222008-07-10 Kenichi Handa <handa@m17n.org>
18023
18024 * xfont.c (xfont_open): Log the reason of failure.
18025
180262008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18027
18028 * fontset.c (fontset_get_font_group):
18029 * font.c (font_check_otf): Specify argument types.
18030
180312008-07-09 Kenichi Handa <handa@m17n.org>
18032
18033 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18034 non-ASCII char is found.
18035
18036 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18037 (reorder_font_vector): Change the arg preferred_family to font.
18038 Prefer the spec matching with font.
18039 (fontset_get_font_group): New function.
18040 (fontset_find_font): Change the format of an element of a realized
18041 fontset. Use fontset_get_font_group.
18042 (fontset_font): Try the current fontset, the default fontset, the
18043 fallbacks of the current fontset, and the fallbacks of the default
18044 fontset in this order.
18045 (face_for_char): Delete the shortcut to use the current font.
18046 (fontset_from_font): Don't set fonts for Latin in the fontset.
18047
18048 * font.h (font_make_object, font_match_p): Adjust prototypes.
18049
18050 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18051
18052 * font.c (font_make_object): New arg entity and pixelsize.
18053 (font_check_otf_features, font_check_otf): New functions.
18054 (font_match_p): Check :lang, :script, and :otf properties.
18055
18056 * xfont.c (xfont_open): Adjust it for the change of
18057 font_make_object.
18058 (xfont_text_extents): Fix initial setting of metrics.
18059
18060 * ftfont.c (struct ftfont_info): New member index, delete member
18061 fc_charset_idx. Make the member order compatible with struct
18062 xftfont_info.
18063 (fc_charset_table): Change charset names to registry names.
18064 (ftfont_pattern_entity): Delete the args registry and
18065 fc_charset_idx. Change the value of :font-entity property
18066 to (FONTNAME . INDEX). Always set :registry property to
18067 `iso10646-1'.
18068 (struct ftfont_cache_data): New struct.
18069 (ftfont_lookup_cache): New arg for_face.
18070 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18071 (ftfont_driver): Set the member otf_capability.
18072 (ftfont_get_charset): Adjust it for the change of
18073 fc_charset_table.
18074 (OTF_TAG_SYM): New macro.
18075 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18076 for the change of fc_charset_table.
18077 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18078 ftfont_pattern_entity. Add FC_INDEX to objset.
18079 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18080 and ftfont_pattern_entity.
18081 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18082 font_make_object, struct ftfont_info.
18083 (ftfont_has_char): Use ftfont_get_fc_charset.
18084 (ftfont_otf_features, ftfont_otf_capability): New functions.
18085 (ftfont_shape): Use ftfont_get_otf.
18086 (ftfont_text_extents): Fix initial setting of metrics.
18087
18088 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18089 member order compatible with struct ftfont_info.
bba3e508
SM
18090 (xftfont_open): Add FC_CHARSET to the pattern.
18091 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18092 properties if appropriate.
18093 (xftfont_close): Unlock the face.
18094 (xftfont_anchor_point, xftfont_shape): Deleted.
18095 (syms_of_xftfont): Don't set members anchor_point and shape of
18096 xftfont_driver.
18097
18098 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18099 font_make_object.
18100
18101 * w32font.c (w32font_open): Adjust it for the change of
18102 font_make_object.
18103 (w32font_open_internal): Don't set properties of font_object here.
18104
181052008-07-08 Chong Yidong <cyd@stupidchicken.com>
18106
18107 * macfns.c (x_create_tip_frame):
18108 * w32fns.c (x_create_tip_frame):
18109 * xfns.c (x_create_tip_frame): Pass parameter argument to
18110 face-set-after-frame-default.
18111
18112 * xfaces.c (Finternal_merge_in_global_face): Save merged
18113 attributes for the default face back into the face vector.
18114
181152008-07-08 Andreas Schwab <schwab@suse.de>
18116
18117 * fontset.h: Declare fontset_from_font. Don't declare
18118 new_fontset_from_font and fontset_from_font_name.
18119 * xterm.c: Include "fontset.h".
18120 * Makefile.in (xterm.o): Update dependencies.
18121
181222008-07-08 Glenn Morris <rgm@gnu.org>
18123
18124 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18125 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18126
181272008-07-07 Chong Yidong <cyd@stupidchicken.com>
18128
18129 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18130 (x_set_frame_parameters): Don't bind it.
18131
181322008-07-07 Juanma Barranquero <lekktu@gmail.com>
18133
18134 * w32fns.c (map_w32_filename): Declare extern.
18135
181362008-07-07 Jason Rumney <jasonr@gnu.org>
18137
18138 * w32term.c (WS_EX_LAYERED): Define if not already.
18139
181402008-07-06 Chong Yidong <cyd@stupidchicken.com>
18141
18142 * xfaces.c (set_font_frame_param): Don't try to set the font
18143 parameter if it is still unspecified in the lface.
18144
181452008-07-05 Chong Yidong <cyd@stupidchicken.com>
18146
18147 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18148 face if it didn't already exist.
18149
18150 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18151
181522008-07-05 Andreas Schwab <schwab@suse.de>
18153
18154 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18155
181562008-07-05 Chong Yidong <cyd@stupidchicken.com>
18157
18158 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18159 word-wrapping.
18160 (IT_DISPLAYING_WHITESPACE): New macro.
18161 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18162 when word-wrapping. Simplify word-wrapping logic. Use correct
18163 pixel positions when saving copies of the iterator.
18164 (display_line): Use proper wrap point if the last character on a
18165 line was preceded by whitespace.
18166
181672008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18168
18169 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18170
181712008-07-04 Kenichi Handa <handa@m17n.org>
18172
18173 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18174
18175 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18176
181772008-07-02 Jason Rumney <jasonr@gnu.org>
18178
18179 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 18180 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
18181
18182 * xdisp.c (next_element_from_display_vector): Move assignment out
18183 of if statement.
18184
181852008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18186
18187 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18188
18189 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18190 (syms_of_fileio): Initialize and export them.
18191 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18192
18193 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18194 (Fsystem_move_file_to_trash): New function.
18195 (syms_of_w32fns): Export it to lisp.
18196
181972008-07-01 Jason Rumney <jasonr@gnu.org>
18198
18199 * w32font.c (w32font_text_extents): Don't count overhang as part
18200 of width.
18201
182022008-06-30 Miles Bader <miles@gnu.org>
18203
18204 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18205 Add `avoid_cursor_p' field.
18206
18207 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18208 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18209 (append_glyph, append_composite_glyph, produce_image_glyph)
18210 (append_stretch_glyph): Initialize avoid_cursor_p.
18211 (get_it_property): Rename from `get_line_height_property'.
18212 (x_produce_glyphs): Use get_it_property.
18213 (handle_line_prefix, push_display_prop): New functions.
18214 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18215 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18216 New variables.
18217 (syms_of_xdisp): Initialize them.
18218
182192008-06-30 Kenichi Handa <handa@m17n.org>
18220
18221 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18222 XftDefaultSubstitute (they are called in XftFontMatch).
18223 (xftfont_open): Fix args to ftfont_font_format.
18224
18225 * ftfont.c (fc_charset_table): New member lang.
18226 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 18227 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
18228 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18229 (ftfont_open): Fix args to ftfont_font_format.
18230 (ftfont_font_format): New arg filename.
18231
182322008-06-30 Chong Yidong <cyd@stupidchicken.com>
18233
18234 * xfaces.c (Finternal_merge_in_global_face): If default face was
18235 modified, realize it again. Update the font face attribute.
18236
182372008-06-29 Jason Rumney <jasonr@gnu.org>
18238
18239 * w32term.c (x_set_frame_alpha): Fix logic.
18240
182412008-06-29 Kenichi Handa <handa@m17n.org>
18242
18243 * fontset.c (Finternal_char_font): Return font-object instead of
18244 font-name.
18245
18246 * composite.c (get_composition_id): Fix the width calculation for TAB.
18247
182482008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18249
18250 * indent.c (Fvertical_motion): Properly handle float column arg.
18251
182522008-06-28 Jason Rumney <jasonr@gnu.org>
18253
18254 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18255 (pfnSetLayeredWindowAttributes): New function pointer.
18256 (w32_initialize): Initialize it when supported.
18257 (x_set_frame_alpha): New function.
18258
18259 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18260 (w32_frame_parm_handlers): Set alpha handler.
18261
18262 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18263
182642008-06-27 Jason Rumney <jasonr@gnu.org>
18265
18266 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18267 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18268 (w32_to_x_charset, x_to_w32_charset)
18269 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18270 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18271 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18272 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18273 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18274 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18275 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18276 (Qw32_charset_unicode): Remove.
18277 (syms_of_w32fns): Update for above changes.
18278
18279 * w32font.c (w32_to_x_charset, x_to_w32_charset)
18280 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18281 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18282 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18283 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18284 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18285 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18286 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
18287 (syms_of_w32font): Update for above changes.
18288
182892008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
18290
18291 * s/usg5-4.h: Fix previous change: keep the correct branch of a
18292 removed #if.
18293 (USG_SHARED_LIBRARIES): Remove duplicate definition.
18294
182952008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 18296 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
18297
18298 * makefile.w32-in (LOCAL_FLAGS):
18299 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
18300
18301 * sysdep.c (_spawnlp, _getpid):
18302 Declare with explicit _cdecl instead of _CRTAPI1.
18303
18304 * editfns.c (Fget_internal_run_time):
18305 Check for WINDOWSNT with #ifdef, not #if.
18306
183072008-06-26 Jason Rumney <jasonr@gnu.org>
18308
18309 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
18310
18311 * w32term.c (x_draw_glyph_string_foreground)
18312 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
18313 Use FONT_HANDLE macro.
18314 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
18315
18316 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18317 (uniscribe_encode_char): Use FONT_HANDLE macro.
18318
18319 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
18320 (w32font_text_extents): Use precast w32_font.
18321 (w32font_close): Free cached metrics.
18322 (w32font_open_internal): Allocate space for name on stack.
18323
183242008-06-26 Chong Yidong <cyd@stupidchicken.com>
18325
18326 * xdisp.c (extend_face_to_end_of_line): Fix last change.
18327
183282008-06-26 Jason Rumney <jasonr@gnu.org>
18329
18330 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
18331 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
18332
183332008-06-26 Juanma Barranquero <lekktu@gmail.com>
18334
18335 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
18336
183372008-06-26 Jason Rumney <jasonr@gnu.org>
18338
18339 * w32bdf.c, w32bdf.h: Remove obsolete files.
18340
18341 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
18342
18343 * w32gui.h: Don't include w32bdf.h.
18344 (XCharStruct, enum w32_char_font_type, W32FontStruct):
18345 Remove obsolete font support.
18346
18347 * w32font.h (struct w32font_info): Remove compat_w32_font.
18348 Add hfont member.
18349 (FONT_COMPAT): Remove obsolete macro.
18350
18351 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
18352 (w32font_encode_char, w32font_text_extents): Use new hfont member.
18353 (w32font_open_internal): Remove compat code. Set new hfont member.
18354 (Fx_select_font): Use new hfont member.
18355
18356 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18357 (uniscribe_encode_char): Use new hfont member.
18358
18359 * w32term.c (x_draw_glyph_string_foreground)
18360 (x_draw_composite_glyph_string_foreground): Use new hfont member.
18361 (x_draw_glyph_string): Use metrics in w32font_info.
18362
183632008-06-26 Kenichi Handa <handa@m17n.org>
18364
18365 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
18366
183672008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
18368
18369 * unexnext.c:
18370 * m/ews4800.h:
18371 * m/hp9000s300.h:
18372 * m/ibm370aix.h:
18373 * m/mips-siemens.h:
18374 * m/ncr386.h:
18375 * m/next.h:
18376 * m/pmax.h:
18377 * m/powerpcle.h:
18378 * m/tandem-s2.h:
18379 * s/386bsd.h:
18380 * s/bsd386.h:
18381 * s/bsd4-1.h:
18382 * s/bsd4-2.h:
18383 * s/bsdos2-1.h:
18384 * s/bsdos2.h:
18385 * s/bsdos3.h:
18386 * s/bsdos4.h:
18387 * s/nextstep.h:
18388 * s/ultrix4-3.h:
18389 * s/usg5-0.h:
18390 * s/usg5-2-2.h:
18391 * s/usg5-2.h:
18392 * s/usg5-4-3.h:
18393 * s/ux4800.h:
18394 * s/uxpds.h:
18395 * s/uxpv.h: Remove support for obsolete systems.
18396 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 18397 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
18398 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
18399 Remove, insert contents in s/aix4-2.h.
18400 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
18401 * s/bsd4-3.h: Rename to ...
18402 * s/bsd-common.h: ... this.
18403 * data.c:
18404 * doc.c:
18405 * ecrt0.c:
18406 * emacs.c:
18407 * fileio.c:
18408 * floatfns.c:
18409 * keyboard.c:
18410 * mem-limits.h:
18411 * print.c:
18412 * process.c:
18413 * sysdep.c:
18414 * syssignal.h:
18415 * systty.h:
18416 * syswait.h:
18417 * term.c:
18418 * unexec.c:
18419 * unexelf.c:
18420 * unexhp9k800.c:
18421 * m/hp800.h:
18422 * m/ibmrs6000.h:
18423 * m/mips.h:
18424 * m/vax.h:
18425 * s/darwin.h:
18426 * s/freebsd.h:
18427 * s/gnu.h:
18428 * s/ms-w32.h:
18429 * s/msdos.h:
18430 * s/netbsd.h:
18431 * s/template.h: Remove references to obsolete variables.
18432
18433 * Makefile.in: Add dependencies for all unexec files.
18434 (admindir): Remove unused variable.
18435 (UNEXEC_SRC): Remove references.
18436
184372008-06-25 Chong Yidong <cyd@stupidchicken.com>
18438
18439 * xfns.c (x_default_font_parameter): If Xft is available, first
18440 try Monospace-12 for the default font.
18441
184422008-06-25 Jason Rumney <jasonr@gnu.org>
18443
18444 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
18445
184462008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18447
18448 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18449
18450 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18451
184522008-06-25 Juanma Barranquero <lekktu@gmail.com>
18453
18454 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18455 <scroll-conservatively>: Fix typo in docstring.
18456
18457 * xselect.c (Fx_send_client_event): Doc fix.
18458
184592008-06-25 Kenichi Handa <handa@m17n.org>
18460
18461 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18462
18463 * font.c (font_parse_fcname): Remove unused variables.
18464 (font_sort_entites): Delete the arg SPEC. Caller changed.
18465 Fix for the case of ! best_only.
18466 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18467
18468 * lisp.h (Fstring_to_unibyte): EXFUN it.
18469
18470 * character.h (str_to_unibyte): Extern it.
18471
18472 * character.c (str_to_unibyte): New function.
18473
18474 * fns.c (Fstring_to_unibyte): New function.
18475 (syms_of_fns): Defsubr it.
18476
184772008-06-24 Kenichi Handa <handa@m17n.org>
18478
18479 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18480 DPI too.
18481 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18482
184832008-06-24 Andreas Schwab <schwab@suse.de>
18484
18485 * Makefile.in (${lispsource}loaddefs.el): Rename from
18486 ../lisp/loaddefs.el.
18487 (bootstrap-clean): Do what distclean does but don't remove
18488 Makefile.
18489 (distclean): Depend on bootstrap-clean and remove Makefile.
18490
184912008-06-24 Chong Yidong <cyd@stupidchicken.com>
18492
18493 * buffer.h (struct buffer): New member word_wrap.
18494
18495 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18496 word-wrap.
18497 (init_buffer_once): Initialize them.
18498
18499 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18500 line_wrap enum possessing three possible values.
18501
18502 * termopts.h: Replace truncate_partial_width_windows with
18503 Vtruncate_partial_width_windows.
18504
18505 * dispnew.c (direct_output_for_insert): Avoid direct output when
18506 inserting a space with word wrap on.
18507
18508 * indent.c (compute_motion): Obey integer values of
18509 truncate-partial-width-windows.
18510
18511 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18512 replacing truncate_partial_width_windows.
18513 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18514 truncate only if the window width is below that integer.
18515 (start_display, resize_mini_window, produce_stretch_glyph)
18516 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
18517 (back_to_previous_visible_line_start, reseat_1):
18518 Reset string_from_display_prop_p.
aac0c6e3
MR
18519 (display_line): Extend default face to end of line when wrapping.
18520
185212008-06-24 Kim F. Storm <storm@cua.dk>
18522
18523 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18524 to wrap continued lines at word boundaries.
18525
185262008-06-24 Jason Rumney <jasonr@gnu.org>
18527
18528 * font.c (Ffont_face_attributes): Multiply pixel size before point
18529 conversion to avoid multiplying rounding error.
18530
185312008-06-23 Jason Rumney <jasonr@gnu.org>
18532
18533 * w32term.c (x_draw_glyph_string_background)
18534 (x_draw_glyph_string): Remove old bdf font code.
18535
18536 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18537
185382008-06-22 Kenichi Handa <handa@m17n.org>
18539
18540 * font.c (font_find_for_lface): Try the adstyle specified in
18541 the property of LFACE_FONT of LFACE (if any).
18542
185432008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18544 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18545
18546 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18547
185482008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18549
18550 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18551 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18552 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18553 (witness-emacs): Remove.
18554 (lisp, shortlisp): Move loaddefs.el earlier.
18555 (mostlyclean): Forget about witness-emacs.
18556
185572008-06-22 Glenn Morris <rgm@gnu.org>
18558
18559 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18560 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18561
185622008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18563
18564 * Makefile.in (PRECOMP): Remove.
18565 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18566 (witness-emacs): Run `compile-first'.
18567 (.el.elc): Use the new compile-onefile target.
18568
185692008-06-21 Kenichi Handa <handa@m17n.org>
18570
18571 * xftfont.c (xftfont_open): Handle QCembolden only when
18572 FC_EMBOLDEN is defined.
18573
185742008-06-21 Andreas Schwab <schwab@suse.de>
18575
18576 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18577 (.el.elc): Likewise.
18578
185792008-06-21 Miles Bader <miles@gnu.org>
18580
18581 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18582 build dir, not the lisp source dir.
18583
185842008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18585
18586 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18587 (bootstrapclean): Remove.
18588 (.el.elc): New rule.
18589 (PRECOMP): New var.
18590 (../lisp/subdirs.el): Remove.
18591 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18592 (witness-emacs): New target.
18593 (mostlyclean): Remove witness-emacs as well.
18594 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18595 Add witness-emacs dependency.
18596
185972008-06-20 Chong Yidong <cyd@stupidchicken.com>
18598
18599 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18600 defined by the font.
18601
186022008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18603
18604 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18605 (bootstrap-clean): New target that keeps TAGS around.
18606 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18607 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18608
186092008-06-20 Jason Rumney <jasonr@gnu.org>
18610
18611 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18612 Remove obsolete font code.
18613
18614 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18615 to determine language support.
18616
186172008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18618
18619 * sysdep.c (cfsetspeed): New fun extracted from the code.
18620 (cfmakeraw): Move before first use.
18621
186222008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18623
18624 * sysdep.c (cfmakeraw): Provide fallback implementation.
18625 (serial_configure): Provide fallback implementation of cfsetspeed.
18626
186272008-06-20 Kenichi Handa <handa@m17n.org>
18628
18629 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18630 the pattern.
18631
18632 * fontset.c (fontset_from_font): Copy font_spec before changing
18633 the elements.
18634
18635 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18636
186372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18638
18639 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18640 for explicit `font' parameters.
18641
18642 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18643
186442008-06-19 Kenichi Handa <handa@m17n.org>
18645
18646 * frame.c: Include <ctype.h>.
18647 (x_set_font_backend): Allow spacing characters in the X resource
18648 for FontBackend.
18649
186502008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18651
18652 * w32fns.c, xfns.c (Qfont_param): New var.
18653 (syms_of_w32fns): Initialize it.
18654 (x_default_font_parameter): Record explicit `font' into
18655 `font-parameter'.
18656
186572008-06-18 Kenichi Handa <handa@m17n.org>
18658
18659 * font.c (font_parse_xlfd): Fix previous change.
18660 (font_parse_fcname): Don't use :fc-unknown-spec.
18661 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18662 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18663 (font_add_log): Prepend the driver name to the resulting fonts.
18664
18665 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18666 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18667 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18668
18669 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18670 (QCembolden): New variables.
18671 (syms_of_xftfont): DEFSYM them.
18672 (xftfont_open): Call XftFontMatch. Don't trust the result of
18673 XftTextExtents8 if the pixel_size is less than 5.
18674
186752008-06-18 Andreas Schwab <schwab@suse.de>
18676
18677 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18678 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18679
186802008-06-18 Jason Rumney <jasonr@gnu.org>
18681
18682 * w32font.c (w32font_list, w32font_match): Add logging.
18683
18684 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18685
186862008-06-17 Chong Yidong <cyd@stupidchicken.com>
18687
18688 * font.c (font_parse_fcname): Store divider characters for
18689 unknown-spec list. For known key symbols, intern using correct
18690 symbol name.
18691
186922008-06-17 Kenichi Handa <handa@m17n.org>
18693
18694 * xfaces.c (realize_default_face): If the frame is not on window
18695 system, set the fontset of face to nil.
18696
186972008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18698
18699 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18700
187012008-06-16 Juanma Barranquero <lekktu@gmail.com>
18702
18703 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18704 (build_font_name_from_vector): Delete externs.
18705
18706 * xfaces.c (struct font_name): Don't declare.
18707
187082008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18709
18710 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18711
187122008-06-16 Chong Yidong <cyd@stupidchicken.com>
18713
18714 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18715
187162008-06-16 Juanma Barranquero <lekktu@gmail.com>
18717
18718 * font.c (Ffont_spec): Fix usage in docstring.
18719 (Ffont_face_attributes): Doc fix.
18720
187212008-06-16 Andreas Schwab <schwab@suse.de>
18722
18723 * font.c (Ffont_face_attributes): Fix definition.
18724
187252008-06-16 Jason Rumney <jasonr@gnu.org>
18726
18727 * font.h (font_style_symbolic_from_value): Remove.
18728
18729 * font.c (font_style_symbolic_from_value): Remove.
18730 (font_style_symbolic): Revert to pre 2008-06-13 version.
18731
18732 * w32font.c (w32_to_fc_weight): New function.
18733 (w32font_full_name, logfont_to_fcname): Use it.
18734
187352008-06-16 Kenichi Handa <handa@m17n.org>
18736
18737 * font.c (font_check_object): Delete it.
18738 (font_clear_cache): Check if a font-object is alive.
18739 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18740 font-object to nil.
18741 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18742 (font_at): Don't call font_check_object.
18743 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18744
187452008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18746
18747 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18748
187492008-06-16 Chong Yidong <cyd@stupidchicken.com>
18750
18751 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18752
187532008-06-15 Chong Yidong <cyd@stupidchicken.com>
18754
18755 * font.c (font_parse_fcname): Only one decimal point.
18756 (font_unparse_fcname): Handle data in family and foundry indices
18757 as symbols, not strings.
18758 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18759
18760 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18761
18762 * font.h (font_unparse_gtkname): Add prototype.
18763
187642008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18765
18766 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18767
187682008-06-15 Andreas Schwab <schwab@suse.de>
18769
18770 * font.c (font_update_drivers): Fix crash when no drivers match.
18771
187722008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18773
18774 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18775 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18776
187772008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18778
18779 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18780
187812008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18782
18783 * process.c (Fserial_process_configure, Fprocess_send_eof):
18784 Use EQ to compare Lisp_Objects.
18785
187862008-06-13 Jason Rumney <jasonr@gnu.org>
18787
18788 * w32fns.c (Fw32_select_font): Remove old font API function.
18789
18790 * w32font.c (logfont_to_fcname): New function.
18791 (Fx_select_font): New font dialog function compatible with
18792 GTK/fontconfig version.
18793
18794 * font.c (font_style_symbolic_from_value): New function.
18795 (font_style_symbolic): Use it.
18796
18797 * font.h (font_style_symbolic_from_value): Declare new function.
18798
187992008-06-13 Juanma Barranquero <lekktu@gmail.com>
18800
18801 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18802 <font-width-table>: Fix typos in docstrings.
18803
188042008-06-13 Daniel Engeler <engeler@gmail.com>
18805
18806 These changes add serial port access.
18807 * process.c: Add HAVE_SERIAL.
18808 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18809 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18810 (list_processes_1, select_wrapper, Fstop_process)
18811 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18812 (status_notify): Modify to handle serial processes.
18813 [HAVE_SERIAL] (Fserial_process_configure)
18814 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18815 New functions.
18816 * process.h (struct Lisp_Process): Add `type'.
18817 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18818 New functions.
18819 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18820 serial ports.
b71ac3dd 18821 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18822 * w32.h: Add FILE_SERIAL.
18823 (struct _child_process): Add ovl_read, ovl_write.
18824
188252008-06-13 Kenichi Handa <handa@m17n.org>
18826
18827 * dispextern.h (enum lface_attribute_index): New member
18828 LFACE_FOUNDRY_INDEX.
18829
18830 * font.c (font_score): Delete arg alternate_families. Check only
18831 weight, slant, width, and size. Ignore the difference of alias
18832 style symbols.
18833 (font_sort_entites): Adjust for the above change. Reflect the
18834 order of font-driver to scores.
18835 (font_list_entities): Don't check alternate_familes here.
18836 (font_clear_prop): Handle foundry.
18837 (font_update_lface): Don't parse "foundry-family" form here.
18838 Handle FONT_FOUNDRY_INDEX.
18839 (font_find_for_lface): Likewise. Handle alternate families here.
18840 If registry is nil, try iso8859-1 and ascii-0.
18841 (font_open_for_lface): Pay attention to size in ENTITY.
18842 (font_open_by_name): Simplify by calling font_load_for_lface.
18843 (free_font_driver_list): Delete it.
18844 (font_update_drivers): Preserve the order of backends.
18845 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18846 of font_score and font_sort_entites.
18847 (font_update_sort_order): Likewise.
18848
18849 * xfaces.c (LFACE_FOUNDRY): New macro.
18850 (check_lface_attrs): Check foundry.
18851 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18852 (merge_face_vectors): Check foundry.
18853 (merge_face_ref): Likewise.
18854 (Finternal_set_lisp_face_attribute): Likewise.
18855 (x_update_menu_appearance): Likewise.
18856 (Finternal_get_lisp_face_attribute): Likewise.
18857 (lface_hash): Likewise.
18858 (lface_same_font_attributes_p): Likewise.
18859 (x_supports_face_attributes_p): Likewise.
18860 (tty_supports_face_attributes_p): Likewise.
18861 (Finternal_set_alternative_font_family_alist): Intern strings.
18862 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18863 (realize_default_face): Set LFACE_FOUNDRY (lface).
18864
18865 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18866 font-driver at first.
18867
18868 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18869
188702008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18871
18872 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18873
188742008-06-12 Jim Meyering <meyering@redhat.com>
18875
18876 Make unexec_free handle NULL the same way free does.
18877 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18878
188792008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18880
18881 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18882 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18883 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18884 (WEAK_ALIAS): Simplify.
18885 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18886 when searching a unibyte buffer.
18887
188882008-06-12 Chong Yidong <cyd@stupidchicken.com>
18889
18890 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18891
188922008-06-12 Juanma Barranquero <lekktu@gmail.com>
18893
18894 * w32font.c: Include ctype.h.
18895
188962008-06-11 Jason Rumney <jasonr@gnu.org>
18897
18898 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18899 misreported as space.
18900 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18901 as aliases for registry iso10646-1.
18902
189032008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18904
18905 * buffer.c (clone_per_buffer_values): Skip `name'.
18906
189072008-06-11 Chong Yidong <cyd@stupidchicken.com>
18908
18909 * font.c (font_parse_fcname): Fix last change; accept decimal
18910 points in font size.
18911
189122008-06-10 Jason Rumney <jasonr@gnu.org>
18913
18914 * w32uniscribe.c (add_opentype_font_name_to_list):
18915 Skip non unicode fonts.
18916
189172008-06-10 Chong Yidong <cyd@stupidchicken.com>
18918
18919 * xfns.c (Fx_font_dialog): New function.
18920
18921 * gtkutil.c (xg_dialog_response_cb): Rename from
18922 xg_file_response_callback.
18923 (pop_down_dialog): Rename from pop_down_file_dialog.
18924 (xg_get_file_name): Callers changed.
18925 (xg_get_font_name): New function.
18926
18927 * gtkutil.h (xg_get_font_name): Insert prototype.
18928
189292008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18930
18931 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18932 x_underline_minimum_display_offset.
18933 (syms_of_xdisp): Declare it here rather than in xterm.c.
18934 * dispextern.h (underline_minimum_offset): Declare it.
18935 * w32term.c (x_draw_glyph_string): Use it.
18936 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18937 (syms_of_xterm): Don't declare it any more.
18938 (x_draw_glyph_string): Adjust to the new name.
18939
8719abec 189402008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18941
18942 * xterm.c (x_underline_minimum_display_offset): New var.
18943 (x_draw_glyph_string): Use it.
18944 (syms_of_xterm): Declare it.
18945
189462008-06-10 Chong Yidong <cyd@stupidchicken.com>
18947
18948 * font.c (font_parse_fcname): Accept GTK-style font names too.
18949
189502008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18951
18952 * dired.c (file_name_completion): Don't return t if the match is exact
18953 but with different capitalization.
18954 * minibuf.c (Ftry_completion): Simplify.
18955
18956 * window.c (Vwindow_point_insertion_type): New var.
18957 (set_window_buffer): Use it.
18958 (syms_of_window): Init and export it to Lisp.
18959
189602008-06-10 Kenichi Handa <handa@m17n.org>
18961
18962 * font.h (font_intern_prop): Prototype adjusted.
18963
18964 * font.c (font_intern_prop): New arg force_symbol.
18965 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18966 Adjust for the change of font_intern_prop.
18967
18968 * ftfont.c (ftfont_pattern_entity):
18969 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18970 (w32_registry):
18971 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18972 the change of font_intern_prop.
18973
189742008-06-09 Juanma Barranquero <lekktu@gmail.com>
18975
18976 * w32menu.c (digest_single_submenu): Declare extern.
18977
189782008-06-09 Jason Rumney <jasonr@gnu.org>
18979
18980 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18981
18982 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18983 (parse_single_submenu): Remove.
18984 (digest_single_submenu): Remove.
18985 (syms_of_w32menu): Don't initialise variables that have moved
18986 to menu.c.
18987 (set_frame_menubar): Sync with version in xmenu.c.
18988 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18989
18990 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18991 Make static again.
18992
189932008-06-09 Jason Rumney <jasonr@gnu.org>
18994
18995 Changes to w32 files related to the move of common menu code
18996 to menu.c on 2008-06-08 by Chong Yidong.
18997
18998 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18999 defs to w32gui.h.
19000 (single_keymap_panes, push_menu_item, push_menu_pane):
19001 Make globally visible.
19002
19003 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19004 (local_free, malloc_widget_value, free_widget_value)
19005 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19006 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19007 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19008 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19009 (menu_items, menu_items_allocated, menu_items_used)
19010 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19011 (init_menu_items, finish_menu_items, discard_menu_items)
19012 (grow_menu_items, push_submenu_start, push_submenu_end)
19013 (push_left_right_boundary, push_menu_pane, push_menu_item)
19014 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19015 (free_menubar_widget_tree_value, parse_single_submenu)
19016 (update_submenu_strings): Remove functions.
19017 (xmalloc_widget_value): Remove and declare extern.
19018
19019 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19020 (OBJ1): Build it.
19021
19022 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19023 (local_heap, local_alloc, local_free, malloc_widget_value)
19024 (free_widget_value): Define here.
19025
190262008-06-09 Kenichi Handa <handa@m17n.org>
19027
19028 * font.h (Qascii_0): Extern it.
19029
19030 * font.c (Qascii_0): New variable.
19031 (syms_of_font): DEFSYM it.
19032 (font_open_by_name): If the registry "iso8859-1" fails, try also
19033 "ascii-0".
19034
19035 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19036
190372008-06-08 Kenichi Handa <handa@m17n.org>
19038
19039 * .gdbinit (xfont): New command.
19040
190412008-06-08 Andreas Schwab <schwab@suse.de>
19042
19043 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19044 * Makefile.in (menu.o): Update dependencies.
19045
19046 * Makefile.in (obj): Always add menu.o.
19047 * emacs.c (main): Always call syms_of_menu.
19048 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19049
190502008-06-08 Chong Yidong <cyd@stupidchicken.com>
19051
19052 * Makefile.in: Compile menu.c.
19053
19054 * lisp.h: Declare syms_of_menu.
19055
19056 * emacs.c (main): Call syms_of_menu.
19057
19058 * keyboard.h: Relocate platform-independent menu definitions from
19059 xmenu.c.
19060
19061 * menu.c: New file. Relocate platform-independent menu
19062 definitions from xmenu.c. Suggested by Adrian Robert.
19063
19064 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19065 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19066 (menu_items_used, menu_items_n_panes)
19067 (menu_items_submenu_depth): Move to keyboard.h.
19068 (init_menu_items, finish_menu_items, unuse_menu_items)
19069 (discard_menu_items, restore_menu_items, save_menu_items)
19070 (grow_menu_items, push_submenu_start, push_submenu_end)
19071 (push_left_right_boundary, push_menu_pane, push_menu_item)
19072 (keymap_panes, single_keymap_panes, single_menu_item)
19073 (list_of_panes, list_of_items, find_and_call_menu_selection)
19074 (xmalloc_widget_value, free_menubar_widget_value_tree)
19075 (parse_single_submenu, digest_single_submenu)
19076 (update_submenu_strings): Move to menu.c.
19077
190782008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19079
19080 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19081
190822008-06-06 Miles Bader <miles@gnu.org>
19083
19084 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19085 face, not frame default.
19086
190872008-06-05 Martin Rudalics <rudalics@gmx.at>
19088
19089 * window.c (pop_up_windows, pop_up_frames)
19090 (display_buffer_reuse_frames, Vpop_up_frame_function)
19091 (Vdisplay_buffer_function, Veven_window_heights)
19092 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19093 (Vspecial_display_function, Vsame_window_buffer_names)
19094 (Vsame_window_regexps, split_height_threshold)
19095 (Vsplit_window_preferred_function): Move those vars to window.el.
19096 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19097 (Fdisplay_buffer): Move those functions to window.el.
19098 (syms_of_window): Remove corresponding declarations.
19099 (display_buffer): New function.
19100 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19101 * dispnew.c (Flast_nonminibuf_frame): New function.
19102 * buffer.c (Fpop_to_buffer): Move to window.el.
19103
191042008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19105
19106 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19107
191082008-06-05 Kenichi Handa <handa@m17n.org>
19109
19110 * coding.c (detect_coding): Fix previous change.
19111 (detect_coding_system): Likewise.
19112
191132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19114
19115 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19116
19117 * keymap.c (Vminibuffer_local_filename_must_match_map):
19118 Rename from Vminibuffer_local_must_match_filename_map.
19119 (syms_of_keymap):
19120 * minibuf.c (Fcompleting_read): Adjust accordingly.
19121 * commands.h: Rename declaration as well.
19122
191232008-06-05 Kenichi Handa <handa@m17n.org>
19124
19125 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19126 family name.
19127 (Ffont_put): Likewise.
19128
19129 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19130 current font-spec.
19131
19132 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19133 is unspecified.
19134
19135 * xfaces.c (realize_x_face): If the font-related face attributes
19136 are the same as those of default face, realize a new fontset from
19137 default->fontset.
19138 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19139
191402008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19141
19142 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19143 (move_it_in_display_line): New wrapper.
19144
19145 * window.c (window_scroll_pixel_based_preserve_x)
19146 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19147 (window_scroll_pixel_based, window_scroll_line_based):
19148 Use them to preserve column positions.
19149 (syms_of_window): Initialize them.
19150
19151 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19152 (HPOS . VPOS) pair.
19153
19154 * dispextern.h (move_it_in_display_line): Declare.
19155
191562008-06-05 Juanma Barranquero <lekktu@gmail.com>
19157
19158 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19159 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19160 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19161
191622008-06-04 Juanma Barranquero <lekktu@gmail.com>
19163
19164 * window.c (Fset_window_parameter): Doc fix.
19165 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19166
191672008-06-04 Joakim Verona <joakim@verona.se>
19168
19169 * window.h (struct window): Add new member window_parameters.
19170
19171 * window.c (Fwindow_parameters, Fwindow_parameter)
19172 (Fset_window_parameter): New defuns.
19173 (syms_of_window): Defsubr the new defuns.
19174 (make_window): Initialize window_parameters to nil.
19175
191762008-06-04 John Paul Wallington <jpw@pobox.com>
19177
19178 * eval.c (Fdefmacro): Doc fix.
19179
191802008-06-04 Kenichi Handa <handa@m17n.org>
19181
19182 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19183 Be sure to call setup_coding_system when we find a proper coding system.
19184 (detect_coding_system): Fix handling of coding->head_ascii.
19185
191862008-06-03 Andreas Schwab <schwab@suse.de>
19187
19188 * font.c (font_prop_validate_spacing): Fix last change.
19189
191902008-06-03 Kenichi Handa <handa@m17n.org>
19191
19192 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19193 (font_parse_fcname): Fix handling of unknown key.
19194
19195 * xfont.c (xfont_list): Try an alias.
19196
19197 * charset.c (char_charset): Return NULL if the arg charset_list is
19198 specified and C doesn't belong to any of them.
19199
192002008-06-02 Chip Coldwell <coldwell@redhat.com>
19201
19202 * font.c (font_pixel_size): Don't take cdr of an integer.
19203
192042008-06-02 Jim Meyering <meyering@redhat.com>
19205
19206 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19207 * alloc.c (xfree): Return right away for a NULL arg.
19208 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19209 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19210 * mac.c (create_apple_event_from_event_ref): Likewise.
19211 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19212 Likewise.
19213 * doprnt.c (doprnt1): Likewise.
19214 * frame.c (frame): Likewise.
19215 * keyboard.c (wipe_kboard): Likewise.
19216 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19217 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19218 * term.c (tty_default_color_capabilities, maybe_fatal)
19219 (delete_tty): Likewise.
19220 * w16select.c (string): Likewise.
19221 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19222 * w32bdf.c (w32_free_bdf_font): Likewise.
19223 * w32fns.c (w32_unload_font): Likewise.
19224 * w32font.c (w32font_close): Likewise.
19225 * window.c (size_window): Likewise.
19226 * xselect.c (receive_incremental_selection): Likewise.
19227 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19228 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19229 * w32.c (stat): Likewise.
19230
19231 Remove useless if-before-free tests.
19232 * editfns.c (Fset_time_zone_rule): Likewise.
19233 * lread.c (nosuffix): Likewise.
19234 * ralloc.c (get_bloc): Likewise.
19235 * regex.c (reg_free): Likewise.
19236 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19237 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19238 * xsmfns.c (smc_save_yourself_CB): Likewise.
19239
192402008-06-02 Kenichi Handa <handa@m17n.org>
19241
19242 * font.c (font_find_for_lface): Handle float font size.
19243 (font_open_for_lface): Likewise.
19244
19245 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19246 comparing the properties.
19247
192482008-06-01 Jason Rumney <jasonr@gnu.org>
19249
19250 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19251 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19252 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19253 Don't add empty script list.
19254 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19255
192562008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19257
19258 * Makefile.in (dot, dotdot): Remove, update users.
19259 ".." has been used elsewhere in the file for a long time.
19260 (LIBXT_STATIC): Remove conditional based on unused variable.
19261
192622008-06-01 Miles Bader <miles@gnu.org>
19263
19264 * xfaces.c (Vface_remapping_alist): New variable.
19265 (syms_of_xfaces): Initialize it.
19266 (enum named_merge_point_kind): New type.
19267 (struct named_merge_point): Add `named_merge_point_kind' field.
19268 (push_named_merge_point): Make cycle detection respect different
19269 named-merge-point kinds.
19270 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19271 Remove face-name alias resolution.
19272 (lface_from_face_name): New definition using
19273 `lface_from_face_name_no_resolve'.
19274 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19275 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19276 (get_lface_attributes): New definition that layers face-remapping on
19277 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
19278 (lookup_basic_face): New function.
19279 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
19280 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
19281 `get_lface_attributes'.
19282 (face_at_buffer_position): Use `lookup_basic_face' to lookup
19283 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
19284 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
19285
19286 * xdisp.c (init_iterator): Pass base_face_id through
19287 `lookup_basic_face' when we actually use it as a face-id.
19288 (handle_single_display_prop): Use `lookup_basic_face' to lookup
19289 DEFAULT_FACE_ID.
19290
19291 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
19292 lookup the initial face-id.
19293
19294 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
19295
192962008-06-01 Juanma Barranquero <lekktu@gmail.com>
19297
19298 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
19299 (Fremove_text_properties): Fix typos in docstrings.
19300
193012008-05-31 Kenichi Handa <handa@m17n.org>
19302
19303 * font.c (font_list_entities): Fix the car part of data to be
19304 stored in the cache.
19305
19306 * ftfont.c (ftfont_font_format): Don't use strcasestr.
19307
193082008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19309
19310 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
19311 Add a `test' argument so another predicate than `equal' can be used.
19312 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
19313 (map_char_table): Remove unused vars `c' and `i'.
19314 * lisp.h (Foptimize_char_table): Adjust declaration.
19315 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
19316
193172008-05-30 Kenichi Handa <handa@m17n.org>
19318
19319 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
19320 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
19321 defined.
19322
193232008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19324
19325 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19326 (Fmake_variable_frame_local): Disallow mixing buffer-local and
19327 frame-local settings for the same variable.
19328
193292008-05-30 Kenichi Handa <handa@m17n.org>
19330
19331 * fontset.c (Ffont_info): Move to font.c.
19332 (syms_of_fontset): Delete defsubr of Sfont_info.
19333
19334 * font.c (font_style_to_value, font_score): Delete casting of the
19335 args to xstcasecmp.
19336 (register_font_driver): Increment num_font_drivers only when
19337 registering the driver globally.
19338 (Ffont_info): Move from fontset.c. Handle a font object too.
19339 (syms_of_font): Defsubr Sfont_info.
19340
193412008-05-29 Kenichi Handa <handa@m17n.org>
19342
19343 * coding.h (enum define_coding_utf8_arg_index): New enum.
19344 (enum coding_attr_index): Change coding_attr_utf_16_bom to
19345 coding_attr_utf_bom.
19346 (enum utf_bom_type): Rename from utf_16_bom_type.
19347 (struct utf_16_spec): Adjust for the above change.
19348 (struct coding_system): Add utf_8_bom in `spec' union.
19349
19350 * coding.c (CODING_UTF_8_BOM): New macro.
19351 (enum coding_category): Delete coding_category_utf_8, add
19352 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
19353 coding_category_utf_8_sig.
19354 (CATEGORY_MASK_UTF_8): Delete it.
19355 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
19356 (CATEGORY_MASK_UTF_8_SIG): New macros.
19357 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
19358 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
19359 CATEGORY_MASK_UTF_8_SIG.
19360 (CATEGORY_MASK_UTF_8): New macro.
19361 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
19362 (detect_coding_utf_8): Check BOM.
19363 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
19364 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
19365 (encode_coding_utf_16): Likewise.
19366 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
19367 (detect_coding, detect_coding_system): Handle utf-8-auto.
19368 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
19369 (syms_of_coding): Fix setting up of Vcoding_category_table.
19370
193712008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
19372
19373 * process.c (Faccept_process_output): If `millisec' is non-nil,
19374 `seconds' default to 0.
19375 (wait_reading_process_output): Also return non-nil if we read output
19376 from a non-running process.
19377
193782008-05-29 Jason Rumney <jasonr@gnu.org>
19379
19380 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
19381 `raster' specified.
19382 (add_font_entity_to_list): Allow non-opentype truetype fonts back
19383 in the uniscribe backend, but disallow any font that has no
19384 unicode subrange support.
19385
193862008-05-29 Juanma Barranquero <lekktu@gmail.com>
19387
19388 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
19389 Fix typos in docstrings.
19390
193912008-05-29 Kenichi Handa <handa@m17n.org>
19392
19393 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
19394 (Fx_family_fonts): Set frame correctly.
19395
193962008-05-28 Jason Rumney <jasonr@gnu.org>
19397
19398 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
19399
194002008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
19401
19402 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
19403 calling build_annotations.
19404
194052008-05-28 Juanma Barranquero <lekktu@gmail.com>
19406
19407 * coding.c (Fdecode_coding_region, Fencode_coding_region)
19408 (Fencode_coding_string):
19409 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
19410 <latin-extra-code-table>: Fix typos in docstrings.
19411 (syms_of_coding) <coding-system-alist>: Doc fix.
19412 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
19413
194142008-05-28 Kenichi Handa <handa@m17n.org>
19415
19416 * fontset.c (Ffont_info): Don't call font_close_object.
19417
19418 * font.c (font_parse_family_registry): Use Ffont_put to validate
19419 foundry and family.
19420 (font_delete_unmatched): Don't check spacing.
19421 (font_list_entities): Add spacing to the spec to list fonts.
19422
19423 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
19424 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
19425
19426 * coding.c (encode_coding_raw_text): Fix previous change.
19427 (encode_coding_object): When the dst_object is a buffer and is
19428 different from src_object, move gap to PT.
19429
194302008-05-27 Chong Yidong <cyd@stupidchicken.com>
19431
19432 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
19433
194342008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19435
19436 * coding.c (encode_coding_raw_text): Set coding->produced_char for
19437 all branches. Compute it differently.
19438
19439 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
19440
194412008-05-27 Juanma Barranquero <lekktu@gmail.com>
19442
19443 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
19444 into "else if () ... else ...".
19445
194462008-05-27 Jason Rumney <jasonr@gnu.org>
19447
19448 * w32font.c (w32font_open_internal): Determine if glyph indices
19449 are likely to work here.
19450
194512008-05-27 Chong Yidong <cyd@stupidchicken.com>
19452
19453 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19454 draw overlap glyphs with appropriate highlighting.
19455
194562008-05-27 Kenichi Handa <handa@m17n.org>
19457
19458 * xfont.c (xfont_open): Fix calculation of font->average_width.
19459
194602008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19461
19462 * casefiddle.c (casify_object): Try to guess better whether the
19463 argument is a byte or a char.
19464
194652008-05-26 Andreas Schwab <schwab@suse.de>
19466
19467 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19468 Always send multiples of format size.
19469
19470 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19471
194722008-05-26 Jason Rumney <jasonr@gnu.org>
19473
19474 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19475 (compute_metrics): Don't set failure if we just cleared the cache.
19476 (w32_weight_table): Remove unused variable.
19477 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19478 backwards compatibility.
19479
194802008-05-25 Kenichi Handa <handa@m17n.org>
19481
19482 * w32term.c (x_draw_glyph_string):
19483 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19484
19485 * xfaces.c: Delete unused function prototypes.
19486 (xstrlwr, font_frame): Delete them.
19487 (clear_face_cache): Delete unused variable.
19488
19489 * xftfont.c (xftfont_open): Delete unused variable.
19490 If underline_thickness is not 1, adjust underline_position.
19491
19492 * ftxfont.c (ftxfont_open): Delete unused variable.
19493
19494 * fontset.c (face_for_char): Optimize for the case of no charset
19495 property.
19496
19497 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19498 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19499 (otf_open, font_otf_capability, generate_otf_features)
19500 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19501 Comment out by surrounding "#if 0" and "#endif" for the moment.
19502 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19503 (syms_of_font): Codes for accessing above commented out.
19504
195052008-05-24 Eli Zaretskii <eliz@gnu.org>
19506
19507 * w32proc.c: Include dispextern.h.
19508
19509 * w32.c: Include dispextern.h.
19510
195112008-05-23 Juanma Barranquero <lekktu@gmail.com>
19512
19513 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19514 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19515 Fix typos in docstrings.
19516
195172008-05-23 Jason Rumney <jasonr@gnu.org>
19518
19519 * xsmfns.c: Remove includes that are already included by config.h.
19520
195212008-05-23 Kenichi Handa <handa@m17n.org>
19522
19523 * charset.c (Qemacs, charset_emacs): New variables.
19524 (char_charset): Fix for non-Unicode characters.
19525 (syms_of_charset): Define charset_emacs.
19526
19527 * w32term.c (x_draw_glyph_string): Be sure to update
19528 s->underline_thickness and s->underline_position. Be sure to draw
19529 underline within the current line area.
19530
19531 * xterm.c (x_draw_glyph_string): Be sure to update
19532 s->underline_thickness and s->underline_position. Be sure to draw
19533 underline within the current line area.
19534
19535 * fontset.c: Delete unused variables and add casting for char *
19536 throughout the file.
19537 (fontset_font): Try the fallback fonts of the current fontset
19538 before consulting the default fontset.
19539
19540 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19541
19542 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19543
195442008-05-22 Jason Rumney <jasonr@gnu.org>
19545
19546 * font.c: Don't include strings.h.
19547
19548 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19549
19550 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19551 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19552 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19553 to call xstrcasecmp.
19554
19555 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19556
19557 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19558
19559 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19560
19561 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19562
195632008-05-22 Kenichi Handa <handa@m17n.org>
19564
19565 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19566
19567 * font.c (font_prop_validate_style): Adjust for the format
19568 change of font_style_table.
19569
19570 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19571 two args.
19572
19573 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19574 two args.
19575
195762008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19577
19578 * minibuf.c (keys_of_minibuf): Delete.
19579 * lisp.h (keys_of_minibuf): Delete.
19580 * emacs.c (main): Don't call keys_of_minibuf.
19581
195822008-05-22 Kenichi Handa <handa@m17n.org>
19583
19584 * ftfont.c (ftfont_resolve_generic_family): Rename from
19585 ftfont_list_generic_family. Return a single family for each
19586 generic family.
19587 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19588 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19589 Call font_add_log.
19590 (ftfont_match): Call font_add_log.
19591
19592 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19593 (FONT_DEBUG): Define it.
19594 (font_add_log): Extern it.
19595 (font_assert): Rename from xassert.
19596
19597 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19598 (xfont_list_family): Call font_add_log.
19599 (xfont_match): Likewise.
19600 (memq_no_quit): Delete.
19601
19602 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19603 call of Ffont_xlfd_name.
19604
19605 * xfaces.c (struct table_entry, slant_table, weight_table)
19606 (swidth_table): Move to font.c.
19607
19608 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19609 xassert are changed to font_assert. Delete many unused variables.
19610 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19611 New variables.
19612 (struct table_entry): Move from xfaces.c and modified.
19613 (weight_table, slant_table, width_table): Move from xfaces.c and
19614 contents adjusted for the change of struct table_entry.
19615 (font_style_to_value, font_style_symbolic): Adjust for the
19616 format change of font_style_table.
19617 (font_parse_family_registry): Don't overwrite existing foundry and
19618 family of font_spec.
19619 (font_score): Fix calculation of diff for sizes.
19620 (font_sort_entites): Call font_add_log.
19621 (font_delete_unmatched): Return a newly created list.
19622 (font_list_entities): Fix previous change. Call font_add_log.
19623 (font_matching_entity, font_open_entity, font_close_entity):
19624 Call font_add_log.
19625 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19626 (Finternal_set_font_style_table): Delete.
19627 (BUILD_STYLE_TABLE): New macro.
19628 (build_style_table): New function.
19629 (Vfont_log, font_log_env_checked): New variables.
19630 (font_add_log): New function.
19631 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19632 Declare Lisp variables "font-weight-table", "font-slant-table",
19633 "font-width-table", and "font-log". Initialize font_style_table.
19634
196352008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19636
19637 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19638
196392008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19640 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19641
19642 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19643 (Vframe_alpha_lower_limit): New variable.
19644 (x_set_alpha): New function.
19645
19646 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19647
19648 * xfns.c (x-create-frame, Qalpha):
19649 Initialize the frame parameter `alpha'.
19650 * xterm.c (OPAQUE, OPACITY): New.
19651 (x_set_frame_alpha): New function.
19652 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19653
19654 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19655 * w32fns.c (w32_frame_parm_handlers): Likewise.
19656
196572008-05-20 Jason Rumney <jasonr@gnu.org>
19658
19659 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19660 truetype fonts to opentype list.
19661
196622008-05-20 Juanma Barranquero <lekktu@gmail.com>
19663
19664 * fontset.c (Ffontset_info): Doc fix.
19665 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19666 <ignore-relative-composition>: Fix typos in docstrings.
19667
19668 * font.c (syms-of-font) <font-encoding-alist>:
19669 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19670 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19671 (Ffont_otf_alternates): Doc fixes.
19672
196732008-05-20 Kenichi Handa <handa@m17n.org>
19674
19675 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19676 font.h through out the file.
19677 (FONT_DRIVERS): Rename from FONTOBJ.
19678 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19679 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19680
19681 * emacs.c (main): Call syms_of_font unconditionally.
19682
19683 * font.h (find_font_encoding): Extern it.
19684
19685 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19686 fontset.c.
194d44e7 19687 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19688 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19689 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19690 only when HAVE_WINDOW_SYSTEM is defined.
19691 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19692 when HAVE_WINDOW_SYSTEM is defined.
19693
19694 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19695 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19696
19697 * xfaces.c: Include font.h unconditionally.
19698 (merge_face_ref, merge_face_vectors)
19699 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19700
197012008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19702
19703 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19704 indirect_variable.
19705 * eval.c (lisp_indirect_variable): New fun.
19706 (Fuser_variable_p): Use it.
19707
197082008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19709
19710 * lisp.h (indirect_variable):
19711 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19712 Use Lisp_Symbol pointers rather than Lisp_Object.
19713 Adjust callers.
19714 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19715 To this end, change calling-convention.
19716
19717 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19718 if some non-hidden buffers are selected by string&pred.
19719
197202008-05-19 Chong Yidong <cyd@stupidchicken.com>
19721
19722 * process.c (wait_reading_process_output): Always check status
19723 when in batch mode.
19724
197252008-05-19 Kenichi Handa <handa@m17n.org>
19726
19727 * font.c (font_list_entities): Fix handling of cache.
19728 (font_matching_entity): Likewise.
19729
19730 * ftfont.c (cs_iso8859_1): Delete.
19731 (ft_face_cache): New variable.
19732 (struct ftfont_info): New member fc_charset_idx.
19733 (ftfont_build_basic_charsets): Delete.
19734 (fc_charset_table): New variable.
19735 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19736 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19737 Callers changed.
19738 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19739 (ftfont_spec_pattern): New argument fc_charset_idx.
19740 Check registry more rigidly. Change callers.
19741 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19742 change of :font-entity property of the font.
19743
19744 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19745 property of the font.
19746
197472008-05-18 Juanma Barranquero <lekktu@gmail.com>
19748
19749 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19750 (Funencodable_char_position, Fcheck_coding_systems_region)
19751 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19752 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19753 (Ffind_operation_coding_system, Fset_coding_system_priority)
19754 (Fcoding_system_eol_type): Doc fixes.
19755
197562008-05-17 Glenn Morris <rgm@gnu.org>
19757
19758 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19759
197602008-05-16 Eli Zaretskii <eliz@gnu.org>
19761
19762 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19763 and st_gid.
19764
19765 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19766 HAVE_WINDOW_SYSTEM is not defined.
19767
19768 * xfaces.c (merge_face_ref, merge_face_vectors)
19769 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19770 HAVE_WINDOW_SYSTEM is defined.
19771 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19772
197732008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19774
19775 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19776
197772008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19778
19779 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19780
197812008-05-15 Kenichi Handa <handa@m17n.org>
19782
19783 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19784 preference.
19785
197862008-05-15 Glenn Morris <rgm@gnu.org>
19787
19788 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19789
197902008-05-15 Chong Yidong <cyd@stupidchicken.com>
19791
19792 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19793 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19794
19795 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19796
197972008-05-15 Kenichi Handa <handa@m17n.org>
19798
19799 * ftfont.c (ftfont_list): Downcase family name to check generic
19800 families.
19801
19802 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19803 font-spec for QCfont value.
19804
19805 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19806 buffer. Check the return value of it.
19807
198082008-05-14 Jason Rumney <jasonr@gnu.org>
19809
19810 * w32term.c (w32_get_glyph_overhangs): Remove.
19811 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19812
198132008-05-14 Kenichi Handa <handa@m17n.org>
19814
19815 * font.c (font_prop_validate): Make nil a valid value.
19816 (font_clear_cache): Check if the cached vector of entities is nil
19817 or not.
19818
198192008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19820
19821 * emacs.c (main_thread): Conditionalize on
19822 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19823 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19824
19825 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19826 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19827 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19828
198292008-05-14 Kenichi Handa <handa@m17n.org>
19830
19831 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19832 has no corresponding coding system.
19833
198342008-05-14 Jason Rumney <jasonr@gnu.org>
19835
19836 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19837
19838 * w32font.h (w32font_open_internal): Update declaration.
19839
19840 * w32font.c (w32font_open_internal): Change last argument from
19841 w32font_info struct to font object. Fill in font object from
19842 font_entity. Get Outline metrics if possible. Use them to
19843 calculate underline position and thickness. Use xlfd name as name
19844 property. Don't set codepage.
19845 (w32font_open): Pass font_object to w32font_open_internal. Don't
19846 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19847 (w32font_draw): Use s->font.
19848 (clear_cached_metrics): Don't clear non-existent blocks.
19849
19850 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19851 font was not found.
19852 (x_draw_glyph_string): Use underline position and thickness from font.
19853
19854 * w32uniscribe.c (uniscribe_open): Pass font_object to
19855 w32font_open_internal.
19856
198572008-05-14 Kenichi Handa <handa@m17n.org>
19858
19859 These changes are to delete all legacy font-handling codes, and
19860 make Emacs use only font-backends.
19861
19862 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19863 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19864
19865 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19866
19867 * charset.h (Vcharset_non_preferred_head)
19868 (Vcurrent_iso639_language): Extern them.
19869
19870 * charset.c (Vcharset_non_preferred_head): New variable.
19871 (Vcurrent_iso639_language): New variable.
19872 (syms_of_charset): Declare it as a Lisp variable.
19873 (char_charset): Don't check non preferred charsets. As a last
19874 resort, return charset_unicode.
19875 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19876
19877 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19878 conditionals. Don't check enable_font_backend. Delete all codes
19879 used only when USE_FONT_BACKEND is not defined.
19880
19881 * dispextern.h (struct glyph_string): Change type of `font' to
19882 `struct font *'.
19883 (struct glyph_string): New member underline_position and
19884 underline_thickness.
19885 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19886 (struct face): Change type of `font' to `struct font *'.
19887 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19888 (per_char_metric, encode_char): Delete externs.
19889 (calc_pixel_width_or_height): Adjust the prototype.
19890
19891 * emacs.c (enable_font_backend): Delete extern.
19892 (main): Don't set enable_font_backend. Don't check the command
19893 line argument "-disable-font-backend".
19894
19895 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19896 (enum font_property_index): New members FONT_DPI_INDEX,
19897 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19898 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19899 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19900 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19901 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19902 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19903 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19904 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19905 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19906 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19907 (struct font): Many members from old "struct font_info" moved to
19908 here. Members font and entity deleted.
19909 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19910 the new font-related objects.
19911 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19912 (CHECK_FONT_GET_OBJECT): Likewise.
19913 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19914 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19915 (struct font_driver): New members case_sensitive anc check.
19916 Type of the member list and open changed.
aac0c6e3
MR
19917 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19918 (font_symbolic_width, font_find_object, font_get_spec)
19919 (font_set_lface_from_name): Delete extern.
19920 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19921
19922 * font.c: Include <strings.h>.
19923 (enable_font_backend): Delete it.
19924 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19925 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19926 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19927 (null_string): Delete it.
19928 (null_vector): Make it static.
19929 (font_family_alist): Delete it.
19930 (Qnormal): Extern it.
19931 (QCextra, QClanguage): Delete it.
19932 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19933 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19934 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19935 the string. Callers changed.
bba3e508 19936 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19937 objects.
19938 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19939 (font_style_to_value, font_style_symbolic): New function.
19940 (build_font_family_alist): Delete it.
19941 (font_registry_charsets): Use Fassoc_string instead of
19942 assq_no_quit.
19943 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19944 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19945 style-related values in a font vector.
19946 (font_property_table): Delete entries for QClanguage and
19947 QCantialias, add entries for QCavgwidth.
19948 (get_font_prop_index): Delete the 2nd argument FROM.
19949 (font_prop_validate): Arguments changed.
bba3e508 19950 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19951 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19952 (font_parse_fcname, font_unparse_fcname)
19953 (font_prepare_composition): Likewise.
ef1b0ba7 19954 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19955 (otf_open): Delete the 1st arg entity.
bba3e508 19956 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19957 (font_score): New arg alternate_families. Adjusted for the change
19958 of font-related objects.
19959 (font_sort_entites): New arg best_only.
19960 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19961 Delete them.
19962 (font_match_p): Check alternate families.
19963 (font_find_object): Delete it.
19964 (font_check_object): New function.
bba3e508 19965 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19966 (font_delete_unmatched): New arg.
19967 (font_list_entities): Call font_driver->list with a spec that
19968 doesn't specify style-related properties.
19969 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19970 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19971 (font_close_object, font_has_char, font_encode_char)
19972 (font_get_name, font_get_spec): Likewise.
19973 (font_spec_from_name, font_clear_prop, font_update_lface):
19974 New functions.
19975 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19976 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19977 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19978 (font_range): New function.
19979 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19980 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19981 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19982 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19983 (Finternal_set_font_style_table): Arguments changed.
19984 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19985 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19986 change of font-related objects.
19987 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19988
19989 * fontset.h (struct font_info): Delete it. Most members go to
19990 struct font.
ef1b0ba7 19991 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19992 (enum FONT_SPEC_INDEX): Delete it.
19993 (font_info, list_fonts_func, load_font_func, query_font_func)
19994 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19995 (get_font_repertory_func, new_fontset_from_font_name):
19996 Delete externs.
aac0c6e3
MR
19997 (fontset_from_font_name): Extern it.
19998 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19999 (FONT_INFO_FROM_FACE): Deleted.
20000 (face_for_font): Adjust prototype.
20001
20002 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20003 conditionals. Don't check enable_font_backend. Delete all codes
20004 used only when USE_FONT_BACKEND is not defined.
20005 (get_font_info_func, list_font_func, load_font_func)
20006 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20007 (get_font_repertory_func): Delete them.
20008 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20009 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20010 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20011 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20012 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20013 (fontset_compare_rfontdef): New function.
20014 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20015 rfont-defs by qsort. Adjusted for the change of font-group vector.
20016 (load_font_get_repertory): Deleted.
20017 (fontset_find_font): Use new macros to ref/set elements of
20018 font-def and rfont-def.
20019 (fontset_font): Fix the timing of remembering that no font for C.
20020 (free_face_fontset): Do nothing if the face has no fontset.
20021 (face_suitable_for_char_p): Use new macros to ref/set elements of
20022 rfont-def.
20023 (face_for_char): Likewise. Call face_for_char with font_object.
20024 (fs_load_font): Delete. Delete #pragma surrounding it.
20025 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 20026 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
20027 font-spec.
20028 (Fset_fontset_font): Likewise. Use new macros to set elements of
20029 font-def.
20030 (Fnew_fontset): Use font_unparse_xlfd to generate
20031 FONTSET_ASCII (fontset).
20032 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20033 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20034 a fontset is already created for the font. FIx updating of
20035 Vfontset_alias_alist.
20036 (fontset_ascii_font): Deleted.
bba3e508 20037 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20038 (Finternal_char_font): Likewise.
20039 (Ffontset_info): Likewise.
20040 (syms_of_fontset): Don't check load_font_func.
20041
20042 * fns.c (internal_equal): Handle PREV_FONT.
20043
20044 * frame.h: Delete USE_FONT_BACKEND conditional.
20045
20046 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20047 conditionals. Don't check enable_font_backend. Delete all codes
20048 used only when USE_FONT_BACKEND is not defined.
20049 (x_set_font): Call x_new_font, not x_new_fontset2.
20050 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20051 already set for the frame.
20052
bba3e508
SM
20053 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20054 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20055 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20056 font property. If a font is scalable, set avgwidth property to 0.
20057 Set font-entity property by font_put_extra.
20058 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20059 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20060 (ftfont_spec_pattern): New function.
20061 (ftfont_list): Return a list, not vector.
20062 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20063 (ftfont_list_family): Don't downcase names.
20064 (ftfont_free_entity): Deleted.
20065 (ftfont_open): Return a font-object. Adjusted for the change of
20066 struct font. Get underline_thickness and underline_position from
20067 font property. Don't update dpyinfo->smallest_font_height and
20068 dpyinfo->smallest_char_width.
20069 (ftfont_close): Don't free `struct font'.
bba3e508 20070 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20071 (ftfont_encode_char, ftfont_text_extents): Likewise.
20072
20073 * ftxfont.c (ftxfont_list): Return a list, not vector.
20074 (ftxfont_open): Return a font-object. Adjusted for the change of
20075 struct font. Get underline_thickness and underline_position from
20076 font property. Don't update dpyinfo->smallest_font_height and
20077 dpyinfo->smallest_char_width.
20078 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20079 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20080
bba3e508
SM
20081 * image.c (image_ascent): Don't include "charset.h".
20082 Include "character.h" and "font.h".
aac0c6e3
MR
20083
20084 * lisp.h (enum pvec_type): New member PREV_FONT.
20085 (Fassoc_string): EXFUN it.
20086
20087 * print.c: Include font.h.
20088 (print_object): Handle font-related objects.
20089
20090 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20091 conditionals. Don't check enable_font_backend. Delete all codes
20092 used only when USE_FONT_BACKEND is not defined.
20093 (handle_auto_composed_prop): Do nothing if it->f is not on a
20094 window system. Check how many following characters can be
20095 displayed by the same font.
20096 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20097 'struct font *'.
20098 (get_char_face_and_encoding): Assign the whole encoding task to
20099 the `encode-char' method of a font driver.
bba3e508 20100 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20101 face' and `struct glyph_string'.
20102 (fill_glyph_string): Likewise.
20103 (get_per_char_metric): Arguments changed.
bba3e508 20104 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20105 and `struct glyph_string'.
20106 (produce_stretch_glyph, calc_line_height_property)
20107 (x_produce_glyphs): Likewise.
20108
20109 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20110 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20111 used only when USE_FONT_BACKEND is not defined.
20112 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20113 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20114 (Qp): Extern them.
20115 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20116 Deleted.
20117 (struct font_name): Deleted.
20118 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20119 (compare_fonts_by_sort_order): New function.
20120 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20121 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20122 Deleted.
20123 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20124 compare_fonts_by_sort_order.
20125 (Fx_font_family_list): Call Ffont_family_list.
20126 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20127 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20128 (face_symbolic_slant, face_symbolic_swidth)
20129 (split_font_name_into_vector, build_font_name_from_vector)
20130 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20131 (font_rescale_ratio, split_font_name, build_font_name)
20132 (free_font_names, sort_fonts, x_face_list_fonts)
20133 (face_font_available_p, sorted_font_list, cmp_font_names)
20134 (font_list_1, concat_font_list, font_list, remove_duplicates):
20135 Deleted.
20136 (Fx_list_fonts): Use Ffont_list.
20137 (LFACE_AVGWIDTH): Deleted.
20138 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20139 by FONTP.
20140 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20141 (set_lface_from_font_name): Delete it.
ef1b0ba7 20142 (set_lface_from_font): Rename from
aac0c6e3
MR
20143 set_lface_from_font_and_fontset. Caller changed. Don't set
20144 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20145 for face.
20146 (merge_face_vectors): Copy font-spec if necessary.
20147 Clear properties of the font-spec if necessary.
20148 (merge_face_ref): Clear properties of the font-spec if necessary.
20149 (Finternal_set_lisp_face_attribute): Likewise.
20150 (set_font_frame_param): Use font_load_for_lface to load a
20151 font-object, and call Fmodify_frame_parameters with it.
20152 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20153 font name by Ffont_xlfd_name.
20154 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20155 QCslant, and QCwidth.
20156 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20157 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20158 Compare fonts by EQ.
20159 (lookup_non_ascii_face): Deleted.
20160 (face_for_font): The 2nd argument changed.
20161 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20162 Check atomic font properties by case insensitive.
20163 (realize_non_ascii_face): Set face->overstrike correctly.
20164 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20165 (dump_realized_face): Get font name from
20166 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20167
20168 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20169 conditionals. Don't check enable_font_backend. Delete all codes
20170 used only when USE_FONT_BACKEND is not defined.
20171 (xic_create_xfontset): Original code deleted and renamed from
20172 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20173 (x_make_gc): Don't set GCFont in GCs.
20174 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20175 opened by "fixed".
20176 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20177 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20178 get_font_repertory_func.
20179
20180 * xfont.c: Include <stdlib.h> and "ccl.h".
20181 (struct xfont_info): New structure.
20182 (xfont_query_font): Deleted.
ef1b0ba7 20183 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 20184 moved from xterm.c.
bba3e508 20185 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 20186 (compare_font_names): New function.
ef1b0ba7
SM
20187 (xfont_list_pattern): Sort font names case insensitively.
20188 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
20189 (xfont_list): Return a list, not vector.
20190 (xfont_match): If the font doesn't have QCname property, generate
20191 a name from the other font properties.
20192 (xfont_open): Return a font-object. Adjusted for the change of
20193 struct font. Get underline_thickness and underline_position from
20194 font property. Don't update dpyinfo->smallest_font_height and
20195 dpyinfo->smallest_char_width.
20196 (xfont_close): Don't free struct font.
bba3e508 20197 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 20198 (xfont_done_face): Deleted.
bba3e508 20199 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
20200 (xfont_encode_char, xfont_draw): Likewise.
20201 (xfont_check): New function.
20202
bba3e508 20203 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 20204 callback function.
bba3e508
SM
20205 (xftfont_match): Adjust for the format change of font-entity.
20206 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
20207 font-object. Adjusted for the change of struct font. Return a
20208 font-object. Don't update dpyinfo->smallest_font_height and
20209 dpyinfo->smallest_char_width.
20210 (xftfont_close): Block input while calling XftFontClose.
20211 (xftfont_prepare_face): Don't block input while calling
20212 xftfont_get_colors. Adjusted for the change of struct font.
20213 (xftfont_shape): Return value of error case fixed.
20214
20215 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20216
20217 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20218 conditionals.
20219 (FONT_WIDTH): Return (f)->max_width.
20220 (struct x_display_info): Delete member `font'.
20221 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20222 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20223 (struct x_output): Change type of `font' to `struct font *'.
20224
20225 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20226 conditionals. Don't check enable_font_backend. Delete all codes
20227 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20228 (x_per_char_metric, x_encode_char): Deleted.
20229 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 20230 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
20231 `struct face'.
20232 (x_draw_glyph_string_foreground)
20233 (x_draw_composite_glyph_string_foreground): Likewise.
20234 (x_draw_glyph_string): Likewise. Use font->underline_position and
20235 font->underline_thickness.
ef1b0ba7 20236 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
20237 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20238 (x_check_font): Call `check' method of a font driver.
20239 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20240 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 20241 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 20242 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
20243 redisplay_interface'.
20244
20245 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20246 conditionals. Don't check enable_font_backend. Delete all codes
20247 used only when USE_FONT_BACKEND is not defined. Surround non-used
20248 code by "#ifdef OLD_FONT" and "endif".
20249 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20250
20251 * w32font.h (struct w32font_info): New member.
20252 (FONT_COMPAT): New macro.
20253 (w32font_open_internal): Prototype adjusted.
20254
20255 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20256 OLD_FONT" and "endif".
20257
20258 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20259 conditionals. Don't check enable_font_backend. Delete all codes
20260 used only when USE_FONT_BACKEND is not defined.
20261 (w32font_open): Return a font-object. Make a font-object by
20262 font_make_object. Adjusted for the change of struct w32font_info.
20263 (w32font_close): Don't free struct font. Adjusted for the change
20264 of struct w32font_info.
20265 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 20266 Adjust for the change of struct w32font_info.
aac0c6e3
MR
20267 (w32font_draw): Likewise.
20268 (w32font_list_internal): Return a list, not vector.
20269 (w32font_open_internal): Change the 4th arg to font-object.
20270 Adjusted for the change of struct w32font_info and font-object format.
20271 (add_font_name_to_list): Don't downcase names.
20272 (w32_enumfont_pattern_entity): Make a font-entity by
20273 font_make_entity. Adjusted for the format change of font-entity.
20274 Use FONT_SET_STYLE to set a style-related font property. If a
20275 font is scalable, set avgwidth property to 0. Set font-entity
20276 property by font_put_extra.
bba3e508 20277 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
20278 (w32_weight_table, w32_decode_weight): New variables.
20279 (w32_encode_weight): New function.
bba3e508 20280 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
20281 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
20282 weight value.
bba3e508 20283 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20284
20285 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
20286 conditionals. Don't check enable_font_backend. Surround non-used
20287 code by "#ifdef OLD_FONT" and "endif".
20288 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 20289 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
20290
20291 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
20292 conditionals. Don't check enable_font_backend. Delete all codes
20293 used only when USE_FONT_BACKEND is not defined. Surround non-used
20294 code by "#ifdef OLD_FONT" and "endif".
20295
20296 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
20297 (uniscribe_open): Return value changed to font-object.
20298 Adjusted for the format change of font-object.
bba3e508 20299 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 20300 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 20301 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
20302 font_driver.
20303
203042008-05-13 Chong Yidong <cyd@stupidchicken.com>
20305
20306 * dispnew.c (update_frame_1): Check if tty output is still valid
20307 before flushing it.
20308
203092008-05-13 Jan Djärv <jan.h.d@swipnet.se>
20310
20311 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
20312 to Gtk+ menus.
20313
203142008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
20315
20316 * dired.c (file_name_completion): Tweak the code so as to always do it
20317 in a single pass. Tighten the scope of some variables.
20318
20319 * dired.c (Qdefault_directory): New var.
20320 (file_name_completion): Use it instead of Fexpand_file_name.
20321 (syms_of_dired): Initialize it.
20322
203232008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
20324
20325 * fileio.c (double_dollars): Remove dead code.
20326
203272008-05-10 Eli Zaretskii <eliz@gnu.org>
20328
20329 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
20330 Mention w32-get-true-file-attributes in doc string.
20331
20332 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
20333
203342008-05-09 Glenn Morris <rgm@gnu.org>
20335
20336 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
20337 2008-04-23.
20338
203392008-05-09 Eli Zaretskii <eliz@gnu.org>
20340
20341 Support for reporting owner and group of each file on MS-Windows:
20342 * dired.c (stat_uname, stat_gname): New functions, with special
20343 implementation for w32.
20344 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
20345
20346 * w32.c: Rename the_passwd_* to dflt_passwd_*.
20347 (dflt_group_name): New static variable.
20348 (dflt_group): Rename from the_group.
20349 (init_user_info): Init dflt_group fields. Get user's group name
20350 from LookupAccountSid.
20351 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
20352 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
20353 New initialization states.
20354 (globals_of_w32): Initialize them to zero. Initialize the default
20355 group name to "None".
20356 (GetFileSecurity_Name): New global var, the name of the function
20357 to call for GetFileSecurity.
20358 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
20359 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
20360 (get_file_security, get_security_descriptor_owner)
20361 (get_security_descriptor_group, is_valid_sid)
20362 (get_file_security_desc, get_rid, get_name_and_id)
20363 (get_file_owner_and_group): New functions.
20364 (stat): Use get_file_security_desc and get_file_owner_and_group to
20365 report the owner and primary group of each file. Don't ignore the
20366 high 32 bits of file's size, now that st_size is 64-bit wide.
20367 Fix test when to get true file attributes.
20368 (init_user_info): Use get_rid instead of equivalent inline code.
20369 (fstat): Don't ignore the high 32 bits of file's size.
20370
203712008-05-09 Chong Yidong <cyd@stupidchicken.com>
20372
20373 * image.c (png_load): Use correct bit-depth for setting background
20374 color.
20375
203762008-05-08 Eli Zaretskii <eliz@gnu.org>
20377
20378 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
20379 epa-hook.elc.
20380
203812008-05-08 Juanma Barranquero <lekktu@gmail.com>
20382
20383 * font.c (Ffont_match_p): Don't use `iff' in docstring.
20384
203852008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
20386
20387 * macfns.c (Fx_create_frame): Make a copy of frame parameters
20388 because the original parameters are in pure storage now.
20389 (mac_window): Remove unused params. Update callers.
20390
203912008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
20392
20393 * lread.c (substitute_object_recurse): Use lower-level primitives.
20394 Don't signal errors when traversing sub-char-tables.
20395 Don't loop over all the possible characters when traversing char-tables.
20396
20397 * print.c (print_preprocess): Add sub-char-tables to the print-table,
20398 just like we do in print.c.
20399
204002008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
20401
20402 * minibuf.c (Ftry_completion): Remove code left over from when we used
20403 scmp instead of Fcompare_strings.
20404
204052008-05-04 Juanma Barranquero <lekktu@gmail.com>
20406
20407 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
20408
204092008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20410
20411 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
20412 Create bitmap context in native byte order.
20413
20414 * macterm.c (XDrawLine)
20415 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
20416 context in native byte order.
20417
204182008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20419
20420 * config.in: Regenerate.
20421
20422 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
20423 New definitions for Image I/O support.
20424 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
20425 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
20426 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20427 (mac_data_provider_release_data, image_load_image_io)
20428 [USE_MAC_IMAGE_IO]: New functions.
20429 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
20430 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
20431 (init_image_func_pointer) [MAC_OSX]: Remove function.
20432 (image_load_quartz2d) [MAC_OSX]: Check availability of
20433 CGImageCreateWithPNGDataProvider at compile time.
20434 Use lowercase `false' for boolean constant.
20435 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
20436 Use image_load_image_io.
20437 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
20438 Don't check MyCGImageCreateWithPNGDataProvider.
20439 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
20440 Don't call init_image_func_pointer.
20441
20442 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
20443
20444 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
20445 Make variable non-static.
20446 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20447 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20448
20449 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20450 (RED_FROM_ULONG): Mask off higher bits.
20451 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20452
20453 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20454 Include AvailabilityMacros.h.
20455 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20456 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20457
204582008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20459
20460 * chartab.c (Fset_char_table_range): If range is t, really set all
20461 chars to that value.
20462
204632008-05-03 Eli Zaretskii <eliz@gnu.org>
20464
20465 * dired.c (Ffile_attributes): Don't allow the device number become
20466 negative.
20467
204682008-05-02 Daiki Ueno <ueno@unixuser.org>
20469
20470 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20471
204722008-05-02 Juri Linkov <juri@jurta.org>
20473
20474 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20475 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20476 DEFAULT argument as a list of default values in docstrings.
20477
204782008-05-01 Chong Yidong <cyd@stupidchicken.com>
20479
20480 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20481
204822008-05-01 Martin Rudalics <rudalics@gmx.at>
20483
20484 * dispnew.c (change_frame_size_1): Preserve small windows when
20485 shrinking frames by calling set_window_height|width with third
20486 arg 2.
20487
20488 * window.h (struct window): Replace field too_small_ok by field
20489 resize_proportionally.
20490
20491 * window.c (make_window): Initialize resize_proportionally.
20492 (enlarge_window): Temporarily set resize_proportionally to make
20493 sure that shrink_windows does scale the window proportionally.
20494 (shrink_windows): When window has resize_proportionally set try
20495 to shrink it proportionally by stealing from other windows.
20496 (struct saved_window, Fset_window_configuration)
20497 (compare_window_configurations): Handle resize_proportionally.
20498 (WINDOW_TOTAL_SIZE): New macro.
20499 (window_min_size, shrink_windows, size_window): Use it.
20500 (check_min_window_sizes): Remove. Invalid values of
20501 window-min-height|width are handled by window_min_size_2 now.
20502 (size_window, Fsplit_window, enlarge_window)
20503 (adjust_window_trailing_edge, grow_mini_window): Don't call
20504 check_min_window_sizes.
20505 (window_min_size_2, window_min_size_1, window_min_size):
20506 New argument safe_p for retrieving "safe" minimum sizes.
20507 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20508 (adjust_window_trailing_edge, grow_mini_window):
20509 Adjust arguments of window_min_size... functions.
20510 (shrink_windows): Argument min_size removed. New argument
20511 safe_p allows shrinking windows to their safe minimum sizes.
20512 Calculate minimum size and decide whether a window shall be
20513 deleted for each window individually.
20514 (size_window): When nodelete_p equals 2, tell shrink_windows to
20515 delete windows only if their new minimum size is no more safe.
20516 (shrink_window_lowest_first): Call window_min_size_1 to make
20517 sure to preserve modeline of bottom-most window when resizing
20518 the minibuffer.
20519 (Fset_window_configuration, Fcurrent_window_configuration)
20520 (compare_window_configurations): Do not handle
20521 window-min-height|width any more.
20522 (syms_of_window): Clarify window-min-height|width doc-strings.
20523
205242008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20525
20526 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20527 some more. Copy some of the code from Ftry_completions.
20528 Remove special case code that dates back to initial revision when the
20529 slash was only added when necessary and that can't trigger nowadays.
20530
205312008-04-27 Kenichi Handa <handa@m17n.org>
20532
20533 * font.c (font_prop_validate): Signal `error' instead of `font'.
20534
205352008-04-29 Jason Rumney <jasonr@gnu.org>
20536
20537 * w32fns.c (Fw32_battery_status): New defun.
20538 (syms_of_w32fns): Defsubr it.
20539
205402008-04-28 Andreas Schwab <schwab@suse.de>
20541
20542 * dired.c (file_name_completion): Fix another mixing of encoded
20543 and decoded names.
20544
205452008-04-28 Juanma Barranquero <lekktu@gmail.com>
20546
20547 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20548
205492008-04-27 Juanma Barranquero <lekktu@gmail.com>
20550
20551 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20552
205532008-04-27 Andreas Schwab <schwab@suse.de>
20554
20555 * dired.c (file_name_completion): Fix inappropriate mixing of
20556 encoded and decoded names.
20557
20558 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20559
20560 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20561
205622008-04-26 Eli Zaretskii <eliz@gnu.org>
20563
20564 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20565 2008-03-31, it's not needed anymore with `struct stat' definition
20566 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20567 for the same reasons.
20568
205692008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20570
20571 * m/sparc.h: Additional redefinitions for GNU/Linux.
20572
205732008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20574
20575 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20576 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20577 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20578 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20579 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20580 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20581 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20582 Likewise.
20583
20584 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20585 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20586 (mac_ax_number_of_characters): Add externs.
20587 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20588 [USE_MAC_TSM]: Likewise.
20589 (mac_handle_text_input_event) [MAC_OSX]:
20590 Handle kEventTextInputOffsetToPos for no active input area case.
20591 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20592 (mac_handle_document_access_event)
20593 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20594 (install_application_handler) [MAC_OSX]: Register handlers for
20595 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20596 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20597 Register mac_handle_document_access_event.
20598
20599 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20600 Make functions non-static.
20601
206022008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20603
20604 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20605 (read_file_name_completion_ignore_case, insert_default_directory)
20606 (Qdefault_directory): Move to minibuffer.el.
20607 (Fread_file_name): Call the new `read-file-name' instead.
20608
206092008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20610
20611 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20612 Make function non-static.
20613 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20614 Remove function.
20615 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20616 Move to mactoolbox.c.
20617 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20618
20619 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20620 (mac_rect_make): New macro.
20621
20622 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20623 instead of float.
20624 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20625 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20626 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20627 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20628 CGRectMake.
20629 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20630 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20631 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20632 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20633 instead of WindowRef in argument type.
20634 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20635 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20636 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20637 instead of DISPLAY. All uses changed.
20638 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20639 (x_calc_absolute_position): Simplify so as not to use
20640 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20641
20642 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20643 instead of WindowRef in argument type.
20644 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20645 [TARGET_API_MAC_CARBON]: Remove externs.
20646 (create_apple_event, mac_event_parameters_to_lisp)
20647 [TARGET_API_MAC_CARBON]: Add externs.
20648
20649 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20650 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20651 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20652 is clicked.
20653 (x_activate_menubar): Remove extern for saved_menu_event_location.
20654 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20655 Move from mac.c.
20656
206572008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20658
20659 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20660 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20661
206622008-04-23 Jason Rumney <jasonr@gnu.org>
20663
20664 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20665 attributes only for local files.
20666
20667 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20668 default to Qlocal.
20669
206702008-04-22 Juri Linkov <juri@jurta.org>
20671
20672 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20673 read-buffer-to-switch instead of using the letter "B".
20674
206752008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20676
20677 * fileio.c (Qdefault_directory): New variable.
20678 (Fread_file_name): Use it to pass `dir' to the completion functions.
20679
206802008-04-20 Chong Yidong <cyd@stupidchicken.com>
20681
20682 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20683
206842008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20685
20686 * keyboard.c (Vpre_help_message): Remove.
20687 (show_help_echo): Remove default C code.
20688
20689 * dired.c (directory_files_internal, file_name_completion):
20690 Only call ENCODE_FILE if the string is indeed decoded.
20691
206922008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20693
20694 * Makefile.in (TOOLKIT_DEFINES): Remove.
20695 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20696
206972008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20698
20699 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20700 (mactoolbox.o): New target.
20701
20702 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20703 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20704
20705 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20706 Use mac_set_frame_window_background instead of XSetWindowBackground.
20707 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20708 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20709 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20710 instead of SetWindowTitleWithCFString.
20711 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20712 Move function to mactoolbox.c.
20713 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20714 Use mac_set_window_modified instead of SetWindowModified.
20715 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20716 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20717 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20718 FrontNonFloatingWindow. Use mac_activate_window instead of
20719 ActivateWindow. Use mac_active_non_floating_window instead of
20720 ActiveNonFloatingWindow.
20721 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20722 Use mac_show_hourglass and mac_hide_hourglass.
20723 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20724 instead of GetGlobalMouse.
20725 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20726 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20727 Use mac_bring_window_to_front instead of BringToFront.
20728 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20729 mactoolbox.c.
20730 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20731 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20732 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20733 mactoolbox.c.
20734
20735 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20736 (XtPointer): Move typedef from macmenu.c.
20737 (enum button_type): Move enum from macmenu.c.
20738 (widget_value): Move typedef from macmenu.c.
20739 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20740 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20741 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20742 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20743 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20744 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20745 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20746 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20747 (Selection): Move typedef from macselect.c.
20748 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20749 macterm.c.
20750 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20751 (mac_is_window_collapsed, mac_bring_window_to_front)
20752 (mac_send_window_behind, mac_hide_window, mac_show_window)
20753 (mac_collapse_window, mac_front_non_floating_window)
20754 (mac_active_non_floating_window, mac_activate_window)
20755 (mac_move_window_structure, mac_move_window, mac_size_window)
20756 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20757
20758 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20759 (enum mac_menu_kind): Move enum to mactoolbox.c.
20760 (min_menu_id): Move variable to mactoolbox.c.
20761 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20762 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20763 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20764 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20765 [TARGET_API_MAC_CARBON]: Likewise.
20766 (XtPointer): Move typedef to macgui.h.
20767 (enum button_type): Move enum to macgui.h.
20768 (widget_value): Move typedef to macgui.h.
20769 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20770 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20771 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20772 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20773 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20774 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20775 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20776 (popup_activated_flag): Make variable non-static.
20777 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20778 (add_menu_item, fill_menu, dispose_menus):
20779 Move functions to mactoolbox.c.
20780 (restore_show_help_function, menu_target_item_handler)
20781 (install_menu_target_item_handler, mac_handle_dialog_event)
20782 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20783 [TARGET_API_MAC_CARBON]: Likewise.
20784 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20785 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20786 (find_and_call_menu_selection, name_is_separator): Make function
20787 non-static.
20788 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20789 to mactoolbox.c.
20790 (set_frame_menubar): Don't call install_menu_quit_handler.
20791 (menu_item_selection): New variable.
20792 (mac_menu_show): Use create_and_show_popup_menu.
20793 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20794 selection but set variable menu_item_selection. All uses changed.
20795 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20796 Call install_menu_quit_handler. Move to mactoolbox.c.
20797
20798 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20799 (Selection): Move typedef to macgui.h.
20800 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20801 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20802 Make variables non-static.
20803 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20804 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20805 Make functions non-static.
20806 (Vmac_service_selection) [MAC_OSX]: Likewise.
20807 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20808 (mac_valid_selection_target_p, mac_clear_selection)
20809 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20810 (mac_put_selection_value, mac_selection_has_target_p)
20811 (mac_get_selection_value, mac_get_selection_target_list)
20812 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20813 Move functions to mactoolbox.c.
20814 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20815 Likewise.
20816 (copy_scrap_flavor_data, mac_handle_service_event)
20817 (install_service_handler) [MAC_OSX]: Likewise.
20818 (syms_of_macselect) <Vmac_dnd_known_types>:
20819 Use mac_dnd_default_known_types.
20820
20821 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20822 Move to mactoolbox.c.
20823 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20824 (Fx_selection_owner_p): Add EXFUN.
20825 (install_window_handler, remove_window_handler, XSetWindowBackground):
20826 Remove externs.
20827 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20828 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20829 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20830 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20831 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20832 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20833 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20834 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20835 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20836 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20837 (mac_valid_selection_target_p, mac_clear_selection)
20838 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20839 (mac_put_selection_value, mac_selection_has_target_p)
20840 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20841 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20842 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20843 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20844 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20845 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20846 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20847 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20848 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20849
20850 * mactoolbox.c: New file.
20851
208522008-04-18 Jason Rumney <jasonr@gnu.org>
20853
20854 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20855
208562008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20857
20858 * character.c (Fmultibyte_char_to_unibyte):
20859 Return latin1 chars unchanged.
20860
20861 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20862 relocated if it points to `name'.
20863
208642008-04-17 Kenichi Handa <handa@m17n.org>
20865
20866 * data.c (Faset): Allow setting a multibyte character in an
20867 ASCII-only unibyte string.
20868
20869 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20870
208712008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20872
20873 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20874 done in config.h.
20875
208762008-04-16 Juanma Barranquero <lekktu@gmail.com>
20877
20878 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20879 (Fchar_direction): Add usage in the docstring.
20880
208812008-04-15 Chong Yidong <cyd@stupidchicken.com>
20882
20883 * keyboard.c (read_key_sequence): Remove always-true checks.
20884
208852008-04-14 Jason Rumney <jasonr@gnu.org>
20886
20887 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20888 compatibility struct, for better underline positioning.
20889
208902008-04-13 David Hansen <david.hansen@gmx.net>
20891
20892 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20893 string.
20894
208952008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20896
20897 * m/hp800.h (XUINT, XSET): Remove.
20898
208992008-04-12 Juanma Barranquero <lekktu@gmail.com>
20900
20901 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20902 previous change.
20903
209042008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20905
20906 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20907 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20908
209092008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20910
20911 * keymap.h (map_keymap_canonical): Declare.
20912 * xmenu.c (single_keymap_panes): Use it.
20913
209142008-04-11 Glenn Morris <rgm@gnu.org>
20915
20916 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20917 set the target's value to that of the alias.
20918
209192008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20920
20921 * term.c (set_tty_color_mode): Left over typo.
20922
209232008-04-10 Michael Albinus <michael.albinus@gmx.de>
20924
20925 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20926 only after check for file name handler functions. Signal, when
20927 native functionality is not supported.
20928 (syms_of_fileio): Declare it unconditionally.
20929
209302008-04-10 Jason Rumney <jasonr@gnu.org>
20931
20932 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20933 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20934
20935 * w32.c (logon_network_drive): Also logon to remote drives that
20936 are mapped to drive letters.
20937
209382008-04-10 Glenn Morris <rgm@gnu.org>
20939
20940 * xdisp.c (truncate-partial-width-windows): Doc fix.
20941
209422008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20943
20944 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20945 Move functions to minibuffer.el.
20946 (syms_of_fileio): Don't declare them.
20947
209482008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20949
20950 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20951 (syms_of_minibuf): Remove its initialization.
20952
20953 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20954
209552008-04-09 Juanma Barranquero <lekktu@gmail.com>
20956
20957 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20958
209592008-04-09 Jason Rumney <jasonr@gnu.org>
20960
20961 * makefile.w32-in (distclean): Delete makefile too.
20962 (maintainer-clean): New target.
20963
20964 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20965
20966 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20967 for new font backend and composite cases.
20968
209692008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20970
20971 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20972 Most of the code moved to run_timers.
20973 (do_pending_atimers): Call run_timers.
20974 (run_timers): New function.
20975
20976 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20977 run atimers.
20978
20979 * process.c (wait_reading_process_output): The same as above.
20980
209812008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20982
20983 * minibuf.c (last_exact_completion): Remove variable.
20984 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20985 (complete_and_exit_1, complete_and_exit_2)
20986 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20987 (Fdisplay_completion_list, display_completion_list_1)
20988 (Fminibuffer_completion_help, Fself_insert_and_exit)
20989 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20990 minibuffer.el.
20991 (syms_of_minibuf): Remove corresponding initializations.
20992
20993 * keyboard.c (Qdeactivate_mark): New var.
20994 (command_loop_1): Use it to call `deactivate-mark'.
20995 (syms_of_keyboard): Initialize it.
20996
20997 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20998 to another frame.
20999 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21000 Don't call set_tty_color_mode.
21001 (store_frame_param): Reset previous_frame rather than call
21002 set_tty_color_mode.
21003 * term.c (set_tty_color_mode): Rewrite.
21004 * dispextern.h (set_tty_color_mode): New type.
21005 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21006
210072008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21008
21009 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21010 for generic chars, which do not exist any more in emacs-unicode.
21011
210122008-04-08 Michael Albinus <michael.albinus@gmx.de>
21013
21014 * coding.c (detect_coding_emacs_mule)
21015 (Ffind_operation_coding_system): Fix typo.
21016
210172008-04-08 Jason Rumney <jasonr@gnu.org>
21018
21019 * w32uniscribe.c (SNAME): Extract only symbol name.
21020
21021 * w32font.h (struct w32_metric_cache): New struct.
21022 (w32font_info): Use it.
21023 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21024 (CACHE_BLOCKSIZE): New constants.
21025
21026 * w32font.c (Qja, Qko, Qzh): New symbols.
21027 (syms_of_w32font): Initialise them.
21028 (font_matches_spec): Use them to filter by language.
21029 (recompute_cached_metrics): Remove function.
21030 (compute_metrics, clear_cached_metrics): New functions.
21031 (w32font_encode_char): Use them to manage metric cache.
21032 (w32font_text_extents): Cache metrics for all glyphs on demand.
21033 Delay converting glyph indices to WORD until needed.
21034 (w32font_open_internal): Initialize metric cache to empty.
21035 (registry_to_w32_charset): Charset should always be a symbol.
21036 (fill_in_logfont, list_all_matching_fonts): Family should
21037 always be a symbol.
21038
210392008-04-06 Jason Rumney <jasonr@gnu.org>
21040
21041 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21042 Give up if glyph indices not supported. Use uniscribe obtained
21043 ABC widths for individual metrics. Map glyph clusters back to
21044 characters using fClusterStart flag. Return number of glyphs
21045 produced, not chars processed.
21046 (uniscribe_shape): Map char at FROM to current glyph.
21047
210482008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21049
21050 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21051 Use SetMenuItemHierarchicalMenu.
21052
210532008-04-05 Jason Rumney <jasonr@gnu.org>
21054
21055 * image.c (pbm_load): Allow color values up to 65535.
21056 Throw an error if max_color_idx is outside the supported range.
21057 Report an error when image size is invalid.
21058 Read two bytes at a time when raw images have max_color_idx above 255.
21059
aac0c6e3
MR
210602008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21061
21062 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21063 append "CCL: Quitted" when the CCL program is quitted.
21064 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21065
21066 * ccl.h (struct ccl_program): New member quit_silently.
21067
210682008-04-05 Chong Yidong <cyd@stupidchicken.com>
21069
21070 * search.c (compile_pattern_1): Treat non-nil and non-string of
21071 search-spaces-regexp as nil.
21072
21073 * minibuf.c (Fassoc_string): Tweak docstring.
21074
210752008-04-05 Eli Zaretskii <eliz@gnu.org>
21076
21077 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21078 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21079 2008-03-14 to force inode be positive.
21080
21081 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21082 _S_* ones, since we now use our own sys/stat.h.
21083 (stat, fstat): Don't mangle the inode number.
21084 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21085
210862008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21087
21088 * frame.h (struct frame): Give one more bit to `visible' since we use
21089 values larger than 1 to indicate obscured frames on ttys.
21090
21091 * keymap.c (Qkeymap_canonicalize): New var.
21092 (Fmap_keymap_internal): New fun.
21093 (describe_map): Use keymap-canonicalize.
21094
21095 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21096 (Fundo_boundary): Set them.
21097 (syms_of_undo): Initialize them.
21098 (record_point): Use them instead of last_point_position*.
21099 (last_undo_buffer): Change type.
21100
211012008-04-04 Jason Rumney <jasonr@gnu.org>
21102
21103 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21104 (recompute_cached_metrics): Don't set ascent and descent per char.
21105
21106 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21107 (uniscribe_check_otf): Add GC protection before consing.
21108 Rearrange loop for counting features.
21109
211102008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21111
21112 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21113 buffer with byte-size of source buffer.
21114
211152008-04-03 Chong Yidong <cyd@stupidchicken.com>
21116
21117 * callint.c (Fcall_interactively): Handle temporary region even
21118 when shift-select-mode is off.
21119
211202008-04-03 Jason Rumney <jasonr@gnu.org>
21121
21122 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21123
211242008-04-03 Kenichi Handa <handa@m17n.org>
21125
21126 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21127 (CATEGORY_MASK_UTF_16): Likewise.
21128 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21129 binary file.
21130 (detect_coding): Add null-byte detection for a binary file.
21131 (detect_coding_system): Likewise.
21132
211332008-04-03 Jason Rumney <jasonr@gnu.org>
21134
21135 * w32uniscribe.c: New file.
21136
21137 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21138
21139 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21140
21141 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21142 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21143 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21144 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21145 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21146 (Qphonetic): New symbols.
21147 (syms_of_w32font): Initialize them.
21148 (font_supported_scripts): Use them.
21149 (w32font_list_family): List all charsets.
21150 (w32font_text_extents, recompute_cached_metrics): Fix metric
21151 calculations.
21152 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21153 Give opentype fonts their own format.
21154 (font_matches_spec): New arguments backend and logfont.
21155 Handle :otf spec for uniscribe backend.
21156 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21157 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21158
21159 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21160 font backend.
21161 (globals_of_w32fns): Initialize uniscribe font backend.
21162
21163 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21164 dependencies.
21165 (w32uniscribe.$(O)): New file to build.
21166 (FONT_OBJ): Include w32uniscribe.$(O).
21167 (LIBS): Add uniscribe libraries.
21168
21169 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21170
211712008-04-02 Chong Yidong <cyd@stupidchicken.com>
21172
21173 * callint.c (Vshift_select_mode): New var.
21174 (Finteractive): Document new ^ spec.
21175 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21176 is present.
21177
21178 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21179 (command_loop_1): Avoid running the direct display versions of
21180 forward-char and backward-char if shift-selection may occur.
21181 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21182 shift-translation takes place.
21183
21184 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21185 avoid clobbering by define-minor-mode.
21186
21187 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21188 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21189
21190 * syntax.c (Fforward_word): Add ^ interactive spec.
21191
21192 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21193 (Fscroll_right): Add ^ interactive spec.
21194
211952008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21196
21197 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21198
21199 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21200
21201 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21202
212032008-03-31 Juri Linkov <juri@jurta.org>
21204
21205 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21206
212072008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21208
21209 * gtkutil.c (xg_set_geometry): Fix indentation.
21210 (xg_resize_outer_widget): Remove.
21211 (x_wm_size_hint_off): Fix indentation.
21212 (xg_frame_set_char_size): Call flush_and_sync after
21213 gtk_window_resize.
21214 (x_wm_set_size_hint): Pass NULL as geometry window to
21215 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21216 Add menu bar and tool bar height to base height.
21217 (xg_update_frame_menubar, free_frame_menubar)
21218 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21219 (update_frame_tool_bar, free_frame_tool_bar):
21220 Change xg_resize_outer_widget to xg_frame_set_char_size.
21221
212222008-03-30 Michael Albinus <michael.albinus@gmx.de>
21223
21224 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21225 (Fdbus_call_method): New parameter TIMEOUT.
21226 (dbus-send-signal): Optimize UNGCPRO call.
21227
212282008-03-29 Juri Linkov <juri@jurta.org>
21229
21230 * window.c (Fdisplay_buffer): Move call to
21231 Vsplit_window_preferred_function out of conditions that check
21232 if window is eligible for vertical splitting.
21233 When Vsplit_window_preferred_function is non-nil, call it and use
21234 its non-nil return value as window. Otherwise, continue doing
21235 vertical splitting using Fsplit_window with arg horflag=nil.
21236 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21237 default value from `split-window' to nil.
21238
212392008-03-29 Juri Linkov <juri@jurta.org>
21240
21241 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21242 for interactive code letters 'b' and 'B'.
21243
212442008-03-29 Eli Zaretskii <eliz@gnu.org>
21245
21246 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21247 multibyte string.
21248
212492008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21250
21251 * keyboard.c (pending_funcalls): New var.
21252 (timer_check): Run it.
21253 (syms_of_keyboard): Initialize it.
21254 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21255 (Vdelete_terminal_functions): New vars.
21256 (syms_of_terminal): Initialize them.
21257 (Fdelete_terminal): Run delete-terminal-functions.
21258 * xdisp.c (safe_eval): Rewrite.
21259 (safe_call2): New fun.
21260 * frame.c (Qdelete_frame_functions): New var.
21261 (syms_of_frame): Initialize it.
21262 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21263 * lisp.h (safe_call2, pending_funcalls): Declare.
21264
212652008-03-28 Andreas Schwab <schwab@suse.de>
21266
21267 * indent.c (Fmove_to_column): Move declaration before statements.
21268
212692008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21272 (struct frame): Use bit fields for boolean vars.
21273
21274 * process.c (server_accept_connection): Simplify naming.
21275 (emacs_get_tty_pgrp): Use SDATA.
21276
21277 * coding.c (decode_coding_object): Fix last change.
21278
212792008-03-27 Jason Rumney <jasonr@gnu.org>
21280
21281 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
21282
212832008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
21284
21285 * charset.c (Fdefine_charset_internal): Change the way of
21286 registering charsets in Vcharset_order_list.
21287 (syms_of_charset): Make the charset `eight-bit' supplementary.
21288
212892008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
21290
21291 * regex.c (EXTEND_BUFFER): Change order of pointer addition
21292 operations, to avoid having the difference between pointers
21293 overflow.
21294
212952008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
21296
21297 * indent.c (check_display_width): New fun.
21298 (scan_for_column): Use it.
21299
21300 * data.c (syms_of_data): Mark most-positive-fixnum and
21301 most-negative-fixnum as constants.
21302
21303 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
21304
21305 * indent.c (scan_for_column): Extract from current_column_1.
21306 Merge with the same code from Fmove_to_column.
21307 (current_column_1, Fmove_to_column): Use it.
21308
213092008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
21310
21311 * keymap.c (map_keymap_internal): New fun.
21312 (map_keymap): Use it.
21313 (Fmap_keymap_internal): New fun.
21314 (Fmap_keymap): Remove left-out test from before make_save_value.
21315
21316 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
21317
21318 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
21319 Use XCAR/XCDR.
21320
21321 * process.h (struct Lisp_Process): Remove filter_multibyte.
21322 * process.c (QCfilter_multibyte): Remove.
21323 (setup_process_coding_systems): Don't use filter_multibyte.
21324 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
21325 (read_process_output): Don't adjust multibyteness to filter_multibyte.
21326 (Fset_process_filter_multibyte): Change the coding-system to
21327 approximate the previous behavior.
21328 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
21329 coding-system.
21330
21331 * coding.c (decode_coding_object): When not decoding into a buffer,
21332 obey the coding system's preference of (uni|multi)byte.
21333
213342008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
21335
21336 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
21337 every char is changed and has a different byte-length.
21338 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
21339 Fix int -> EMACS_INT.
21340
213412008-03-23 David Hansen <david.hansen@gmx.net>
21342
21343 * dbusbind.c (xd_read_message): Remove extra copying of message
21344 strings. Check for NULL `interface' or `member'.
21345
213462008-03-22 Eli Zaretskii <eliz@gnu.org>
21347
21348 * w32.c (readdir): If FindFirstFile/FindNextFile return in
21349 cFileName a file name that includes `?' characters, use the 8+3
21350 alias in cAlternateFileName instead.
21351
213522008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
21353
21354 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
21355
213562008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21357
21358 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
21359 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
21360 work on current_buffer only instead (that was already the case
21361 for some of the code anyway).
21362 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
21363 (temp_set_point, temp_set_point_both): Use EMACS_INT.
21364 (SET_PT, SET_PT_BOTH): Adjust.
21365 * intervals.h (set_point, temp_set_point, set_point_both)
21366 (temp_set_point_both): Remove redundant declarations.
21367
213682008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21369
21370 * fileio.c (Finsert_file_contents):
21371 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
21372 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
21373 when buffer != current_buffer anyway.
21374
213752008-03-20 Andreas Schwab <schwab@suse.de>
21376
21377 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
21378 as default.
21379
213802008-03-19 Jason Rumney <jasonr@gnu.org>
21381
21382 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
21383 (syms_of_w32fns): Initialize them.
21384 (HOURGLASS_ID): New constant.
21385 (x_window_to_frame): Don't check hourglass_window.
21386 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
21387 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
21388 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
21389 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
21390 Only change the cursor if hourglass is not active.
21391 (Fx_create_frame): Initialize frame's current_cursor.
21392 (hourglass_atimer): Remove.
21393 (hourglass_started): New function.
21394 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
21395 (show_hourglass): Adapt to w32, changing argument to frame.
21396
21397 * w32term.h (struct w32_output): Remove hourglass_window.
21398 Add current_cursor.
21399
21400 * eval.c (call_debugger, Fsignal):
21401 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
21402 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
21403 (Fexecute_extended_command, cancel_hourglass_unwind):
21404 * minibuf.c (read_minibuf):
21405 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
21406
214072008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
21408
21409 * window.c (run_funs): New fun.
21410 (run_window_configuration_change_hook): Use it to run the buffer-local
21411 and the global part of the hook.
21412
21413 * xdisp.c (format_mode_line_unwind_data): Add window argument.
21414 (unwind_format_mode_line): Restore selected window.
21415 (x_consider_frame_title, Fformat_mode_line): Set selected window.
21416
214172008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
21418
21419 * editfns.c (Fchar_equal): Check they are valid characters.
21420
21421 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
21422
214232008-03-17 Andreas Schwab <schwab@suse.de>
21424
21425 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
21426 against a charset.
21427
21428 * lisp.h (Fbuffer_list): Declare.
21429
214302008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 21431
aac0c6e3
MR
21432 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
21433 handlebox_widget is != 0.
21434
214352008-03-16 Juri Linkov <juri@jurta.org>
21436
21437 * callint.c (Fcall_interactively): For interactive code letters
21438 'b' and 'B' put the buffer list into the list of default "future"
21439 values of the minibuffer.
21440
214412008-03-16 Andreas Schwab <schwab@suse.de>
21442
21443 * keyboard.c (read_key_sequence): Fix downcasing of letters with
21444 modifiers.
21445
21446 * regex.c (re_match_2_internal): Correct matching of a charset
21447 against latin-1 characters.
21448
214492008-03-16 Kenichi Handa <handa@m17n.org>
21450
21451 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21452 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21453 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21454 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21455 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21456 CHAR_STRING_ADVANCE.
21457 (produce_chars): Fix for the case that the source and the
21458 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21459 instead of CHAR_STRING_ADVANCE.
21460 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21461 STRING_CHAR_ADVANCE.
21462
214632008-03-15 Andreas Schwab <schwab@suse.de>
21464
21465 * regex.c (re_match_2_internal): Correct matching of eight bit
21466 characters in unibyte strings.
21467
214682008-03-15 Martin Rudalics <rudalics@gmx.at>
21469
21470 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21471 at end of range when it coincides with the end of the buffer.
21472
214732008-03-14 Eli Zaretskii <eliz@gnu.org>
21474
21475 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21476
21477 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21478
214792008-03-14 Jason Rumney <jasonr@gnu.org>
21480
21481 * editfns.c (initial_tz): New variable.
21482 (syms_of_editfns): Initialize it.
21483 (Fset_time_zone_rule): Set it when first called.
21484 Use it when TZSTRING is nil.
21485
21486 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21487 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21488 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21489 (globals_of_w32fns): Initialize them.
21490 (compute_tip_xy): Use them to position tooltips.
21491
214922008-03-14 Glenn Morris <rgm@gnu.org>
21493
21494 * emacs.c (main): Revert previous change.
21495 (standard_args): Revert -internal-script back to -scriptload,
21496 and remove the long-option form.
21497
214982008-03-13 Glenn Morris <rgm@gnu.org>
21499
21500 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21501 Remove option -enable-font-backend.
21502
215032008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21504
21505 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21506
215072008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21508
21509 * xterm.c (x_connection_closed): For GTK: If this is the last
21510 terminal just exit without closing the display.
21511
215122008-03-11 Jason Rumney <jasonr@gnu.org>
21513
21514 * w32font.c (w32font_full_name): Use floor to round.
21515
f0131492 215162008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
21517
21518 * sound.c (alsa_configure): Declare vol at beginning of block.
21519
21520 * fontset.c (Ffontset_info): Remove extra semicolon.
21521
215222008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21523
21524 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21525 size of resulting string.
21526
215272008-03-10 Jason Rumney <jasonr@gnu.org>
21528
21529 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21530
215312008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21532
21533 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21534 Don't pretend as if characters with display property haven't been
21535 consumed for string-replacing-string case.
21536
215372008-03-08 Kim F. Storm <storm@cua.dk>
21538
21539 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21540 (get_next_display_element, next_element_from_string)
21541 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21542
215432008-03-08 Andreas Schwab <schwab@suse.de>
21544
21545 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21546
215472008-03-06 Jason Rumney <jasonr@gnu.org>
21548
21549 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21550 when charset not specified. Only translate ANSI to unicode when
21551 font_type is truetype.
21552 (w32font_coverage_ok): New function.
21553 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21554
215552008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21556
21557 * lread.c (Fread_char): Resolve modifiers.
21558 (Fread_char_exclusive): Likewise.
21559
21560 * character.c (char_resolve_modifier_mask): New function.
21561 (char_string): Use char_resolve_modifier_mask.
21562 (Fchar_resolve_modifiers): New function.
21563 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21564 function.
21565
215662008-03-04 Jason Rumney <jasonr@gnu.org>
21567
21568 * makefile.w32-in: Always include w32font.c in the build.
21569 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21570
215712008-03-04 Andreas Schwab <schwab@suse.de>
21572
21573 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21574 (versionclean): Likewise.
21575
215762008-03-04 Juanma Barranquero <lekktu@gmail.com>
21577
21578 * .cvsignore: Add oo.
21579
215802008-03-03 Andreas Schwab <schwab@suse.de>
21581
21582 * coding.c (decode_coding_object): Inhibit gap shrinking while
21583 decoding in place.
21584
215852008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21586
21587 * w32term.c: Remove unused include "gnu.h".
21588 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21589
21590 * gnu.h: Rename to ...
21591 * emacs-icon.h: ... this.
21592 * xterm.c: Use emacs-icon.h instead of gnu.h.
21593 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21594
215952008-03-03 Juanma Barranquero <lekktu@gmail.com>
21596
21597 * w32font.c: Include math.h.
21598
215992008-03-03 Jason Rumney <jasonr@gnu.org>
21600
21601 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21602 Compute options separately.
21603 (w32font_open_internal): Set glyph_idx before caching metrics.
21604
21605 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21606 Define if system headers don't.
21607 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21608 (w32font_encode_char): Don't declare here.
21609
21610 * w32font.c (Quniscribe, QCformat): New symbols.
21611 (syms_of_w32font): Define them.
21612 (w32font_has_char): Indicate uncertainty.
21613 (w32font_encode_char): Encode as glyph point. Make static.
21614 (recompute_cached_metrics): New function.
21615 (w32font_open_internal): Use it. Set font to use glyph points
21616 initially. Set format based on type of font.
21617 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21618 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21619 on it. Set format based on information available here.
21620 (add_font_entity_to_list): Identify backend based on opentype_only.
21621
216222008-03-02 Andreas Schwab <schwab@suse.de>
21623
21624 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21625
21626 * coding.c (decode_coding_big5, produce_chars):
21627 Fix typos in last change.
21628
216292008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21630
21631 * gnu.h: New icon.
21632
216332008-03-02 Kenichi Handa <handa@m17n.org>
21634
21635 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21636 `dos', don't decode '\r' if that is the last in the source.
21637 (decode_coding_utf_16, decode_coding_emacs_mule)
21638 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21639 (decode_coding_raw_text, decode_coding_charset): Likewise.
21640 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21641
216422008-03-01 Jason Rumney <jasonr@gnu.org>
21643
21644 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21645
216462008-03-01 Kim F. Storm <storm@cua.dk>
21647
21648 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21649
216502008-03-01 Jason Rumney <jasonr@gnu.org>
21651
21652 * w32font.c (w32font_full_name): New function.
21653 (w32font_open_internal): Use it.
21654
216552008-03-01 Kim F. Storm <storm@cua.dk>
21656
21657 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21658
216592008-03-01 Jason Rumney <jasonr@gnu.org>
21660
21661 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21662
216632008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21664
21665 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21666 xg_frame_resized when the event is for the edit widget.
21667
ef1b0ba7 21668 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21669
21670 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21671 set_char_size.
ef1b0ba7 21672 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21673 operations on widgets here. Just set frame size if needed.
21674 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21675 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21676 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21677 the whole frame.
21678 (xg_create_tool_bar): Move attachment of the tool bar to
21679 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21680 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21681
216822008-03-01 Jason Rumney <jasonr@gnu.org>
21683
21684 * w32fns.c (w32_msg_pump): Disable debug code.
21685
216862008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21687
21688 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21689
216902008-02-29 Chong Yidong <cyd@stupidchicken.com>
21691
21692 * xdisp.c (next_overlay_string): Don't set
21693 overlay_strings_at_end_processed_p if we're currently reading from
21694 a display string.
21695
216962008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21697
21698 * xdisp.c (get_overlay_strings_1): Fix typo.
21699
217002008-02-29 Chong Yidong <cyd@stupidchicken.com>
21701
21702 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21703
217042008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21705
21706 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21707
21708 * xdisp.c (display_mode_element): Cancel the previous change.
21709 (decode_mode_spec): Likewise.
21710 (handle_auto_composed_prop): Don't make composition if it->string
21711 is a string.
21712
217132008-02-27 Kim F. Storm <storm@cua.dk>
21714
21715 * lisp.h (GLYPH): Change type from int to struct with separate char
21716 and face_id members.
21717 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21718 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21719 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21720 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21721 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21722 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21723 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21724 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21725 handle new Lisp glyph code encoding, either an integer or a cons.
21726
21727 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21728 (GLYPH_ALIAS): Delete.
21729 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21730 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21731 (GLYPH_FROM_CHAR): Replace macro by ...
21732 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21733
21734 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21735 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21736 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21737 (GLYPH_INVALID_P): New macro.
21738 (spec_glyph_lookup_face): Update prototype.
21739
21740 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21741 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21742 new glyph code encoding.
21743 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21744 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21745
21746 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21747 Adapt to new glyph type and new glyph code encoding.
21748
21749 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21750
21751 * indent.c (current_column, current_column_1, Fmove_to_column)
21752 (compute_motion): Adapt to new glyph code encoding.
21753
21754 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21755
217562008-02-27 Chong Yidong <cyd@stupidchicken.com>
21757
21758 * process.c (wait_reading_process_output): Check for window
21759 changes caused by timers.
21760 Suggested by Johan Bockgård.
21761
217622008-02-27 Glenn Morris <rgm@gnu.org>
21763
21764 * emacs.c (USAGE1): Add `--disable-font-backend'.
21765
217662008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21767
21768 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21769 is made to the buffer.
21770
217712008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21772
21773 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21774 (face_at_string_position):
21775 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21776 (face_at_string_position):
21777 * xdisp.c (display_string, next_overlay_change):
21778 * buffer.h (overlays_at):
21779 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21780 Update callers.
21781
217822008-02-26 Chong Yidong <cyd@stupidchicken.com>
21783
21784 * editfns.c (Fformat): Doc fix.
21785
217862008-02-26 Juanma Barranquero <lekktu@gmail.com>
21787
21788 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21789 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21790 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21791
217922008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21793
21794 * buffer.c (Fbuffer_swap_text): New function.
21795 (syms_of_buffer): Defsubr it.
21796
217972008-02-25 Chong Yidong <cyd@stupidchicken.com>
21798
21799 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21800
218012008-02-25 Jason Rumney <jasonr@gnu.org>
21802
21803 * w32font.c (w32font_draw): Draw one character at a time when padding.
21804
218052008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21806
21807 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21808 Handle a nil arg. Use run_window_configuration_change_hook.
21809 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21810 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21811 Use run_window_configuration_change_hook.
21812
218132008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21814
21815 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21816 1-pixel width.
21817
218182008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21819
21820 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21821 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21822 if the glyph in the font is zero pixel with.
21823
21824 * dispextern.h (struct glyph_string): New member padding_p.
21825
21826 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21827
21828 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21829
21830 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21831
21832 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21833
21834 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21835
218362008-02-25 Jason Rumney <jasonr@gnu.org>
21837
21838 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21839
218402008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21841
21842 Allow fine-grained image-cache flushing.
21843 * dispextern.h (struct image): Add `dependencies' field.
21844 (clear_image_caches): Change arg to Lisp_Object.
21845 * image.c (make_image): Initialize `dependencies' field.
21846 (clear_image_cache): Change arg to allow fine-grained flushing.
21847 Perform the flush even if image-cache-eviction-delay is nil.
21848 (clear_image_caches): Change arg to Lisp_Object.
21849 (Fclear_image_cache): Expand meaning of the argument.
21850 (mark_image): Mark `dependencies' field.
21851 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21852 (lface_hash): Use XHASH rather than XFASTINT.
21853 (face_at_buffer_position): Fix int -> EMACS_INT position.
21854 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21855 (select_frame_for_redisplay): Remove code duplication.
21856 (redisplay_internal): Adapt arg to call to clear_image_caches.
21857
218582008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21859
21860 * s/vms4-0.h:
21861 * s/vms4-2.h:
21862 * s/vms4-4.h:
21863 * s/vms5-5.h: Remove, unused.
21864
21865 * s/irix5-2.h:
21866 * s/irix6-0.h:
21867 * s/riscos5.h:
21868 * s/mach-bsd4-3.h:
21869 * m/mips4.h: Remove files for obsolete systems.
21870
21871 * Makefile.in:
21872 * filelock.c:
21873 * unexmips.c:
21874 * m/hp9000s300.h:
21875 * m/iris4d.h:
21876 * s/aix3-1.h:
21877 * s/hpux.h:
21878 * s/msdos.h:
21879 * s/usg5-0.h:
21880 * s/usg5-2-2.h:
21881 * s/usg5-2.h:
21882 * s/usg5-3.h: Remove references to obsolete variables.
21883
21884 * s/irix5-0.h: Remove, move all the contents ...
21885 * s/irix6-5.h: ... here. Simplify.
21886 * config.in: Regenerate.
21887
218882008-02-24 Jason Rumney <jasonr@gnu.org>
21889
21890 * w32term.c (x_draw_glyph_string_background): Clear the background
21891 manually when cleartype is in use.
21892 (x_draw_glyph_string_foreground): Draw text transparently when
21893 cleartype is in use.
21894
21895 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21896 a font into it unless we have to.
21897
218982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21899
21900 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21901 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21902
aac0c6e3
MR
219032008-02-18 Jason Rumney <jasonr@gnu.org>
21904
21905 * w32fns.c (Fw32_shell_execute): Encode parameters.
21906
219072008-02-09 Eli Zaretskii <eliz@gnu.org>
21908
21909 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21910
219112008-02-05 Juanma Barranquero <lekktu@gmail.com>
21912
21913 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21914
219152008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21916
21917 * xterm.c (x_set_offset): Don't change the gravity if
21918 CHANGE_GRAVITY is -1.
21919
219202008-02-23 Chong Yidong <cyd@stupidchicken.com>
21921
21922 * fileio.c (auto_save_error_occurred): New var.
21923 (auto_save_error): Set it.
21924 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21925 error occurred.
21926
219272008-02-23 Eli Zaretskii <eliz@gnu.org>
21928
21929 * w32.c (globals_of_w32): Add initializations for
21930 g_b_init_get_sid_sub_authority and
21931 g_b_init_get_sid_sub_authority_count.
21932
219332008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21934
21935 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21936 (font_parse_xlfd): Use them for sanity check.
21937 (Finternal_set_font_style_table): Make sure the table is bijective.
21938
21939 Consolidate the image_cache to the terminal struct.
21940 * termhooks.h (P_): Remove redundant def.
21941 (struct terminal): New field `image_cache'.
21942 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21943 of FRAME_X_IMAGE_CACHE.
21944 * xterm.h (struct x_display_info): Remove image_cache field.
21945 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21946 * w32term.h (struct w32_display_info): Remove image_cache field.
21947 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21948 * macterm.h (struct mac_display_info): Remove image_cache field.
21949 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21950 * xterm.c (x_term_init):
21951 * w32term.c (w32_term_init):
21952 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21953 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21954 Remove declarations.
21955 (clear_image_caches, mark_image_cache): New declarations.
21956 * xfaces.c (clear_face_cache):
21957 * xdisp.c (redisplay_internal): Use clear_image_caches.
21958 * image.c (clear_image_cache): Don't check that a frame is on
21959 a window-system before checking if it shares the same cache.
21960 (clear_image_caches): New function.
21961 (Fclear_image_cache): Use it.
21962 (mark_image): Move from allo.c.
21963 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21964 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21965 (mark_object): Don't call mark_image_cache for frames.
21966 (mark_terminals): Call mark_image_cache.
21967
21968 * lisp.h (Fdelete_terminal): Declare.
21969
21970 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21971 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21972 wrong_type_argument.
21973
219742008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21975
21976 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21977 malayalam.el, and tamil.el. Add sinhala.el.
21978
219792008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21980
21981 * xterm.c (x_connection_closed): Consolidate identical tests.
21982 (x_delete_terminal): Don't crash if called via x_connection_closed.
21983
219842008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21985
21986 * xdisp.c (decode_mode_spec): New arg string.
21987 (display_mode_element): Adjust for the above change.
21988
219892008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21990
21991 * callint.c (Fcall_interactively): Use AREF.
21992
219932008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21994
21995 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21996
219972008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21998
21999 * xfns.c (Fx_show_tip): Set string to " " if empty.
22000
220012008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22002
22003 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22004 with Qt.
22005
220062008-02-17 Kenichi Handa <handa@m17n.org>
22007
22008 * ftfont.c (ftfont_shape): Return Lispy number.
22009
22010 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22011 for GCs.
22012 (Finternal_set_font_selection_order): Call font_update_sort_order
22013 only when enable_font_backend is set.
22014 (realize_x_face): Set face->font_info to that of default face only
22015 when enable_font_backend is set.
22016
22017 * xdisp.c (handle_composition_prop): Set it->c to the fist
22018 character of the composed region.
22019 (fill_composite_glyph_string): Set base_face->font_info to
22020 s->font_info. Get a face for ascii from base_face->ascii_face.
22021 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22022 with a face already decided.
22023 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22024 non-negative.
22025 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22026 call font_prepare_composition unconditionally.
22027
22028 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22029
22030 * xterm.h (struct x_display_info): New member font.
22031
22032 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22033 (x_set_mouse_face_gc, x_new_font): Likewise.
22034 (x_term_init): Setup display_info->font.
22035 (x_delete_terminal): Free display_info->font.
22036
22037 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22038
22039 * ftxfont.c (ftxfont_default_fid): Delete it.
22040 (ftxfont_open): Set xfont->fid to 0.
22041 (ftxfont_end_for_frame): Clear data specific to the frame and the
22042 font-driver.
22043
22044 * xftfont.c (xftfont_default_fid): Delete it.
22045 (xftfont_open): Set xfont->fid to 0.
22046
22047 * fontset.c (FONTSET_OBJLIST): New macro.
22048 (fontset_find_font): Update font-object list of the fontset.
22049 (free_realized_fontset): New function.
22050 (free_face_fontset): Call free_realized_fontset.
22051 (Ffont_info): Call font_close_object only when enable_font_backend
22052 is set.
22053
22054 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22055 [HAVE_NTGUI]: Include w32term.h.
22056 [MAC_OS]: Include macterm.ch.
22057 (font_otf_ValueRecord): Use make_number.
22058 (font_finish_cache): Fix handling of reference count.
22059 (font_clear_cache): Update num_fonts.
22060 (font_open_entity): Update smallest_char_width and
22061 smallest_font_height of the frame.
22062 (font_close_object): Update num_fonts.
22063 (Fclear_font_cache): Fix finding the target cache data.
22064
220652008-02-16 Glenn Morris <rgm@gnu.org>
22066
22067 * fontset.c (Finternal_char_font): Fix compilation warning.
22068
220692008-02-16 Eli Zaretskii <eliz@gnu.org>
22070
22071 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22072 instead of char arrays. Enlarge the size of array passed to
22073 get_token_information.
22074
22075 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22076 warnings.
22077
220782008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22079
22080 * .gdbinit: Don't set `args', it breaks gdb --args.
22081
220822008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22083
22084 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22085 within a narrowed buffer.
22086
220872008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22088
22089 * coding.c (decode_coding_object, encode_coding_object):
22090 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22091
220922008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22093
22094 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22095 hardcoding 1.
22096 (detect_coding_system):
22097 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22098 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22099 * insdel.c (insert_from_gap):
22100 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22101 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22102 (string_to_multibyte):
22103 * character.c (chars_in_text, multibyte_chars_in_text):
22104 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22105
22106 * character.h (FETCH_STRING_CHAR_ADVANCE)
22107 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22108 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22109 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22110
22111 * casefiddle.c (casify_region): Only call after-change and composition
22112 functions on the part of the region that was changed.
22113
22114 * keyboard.c (read_avail_input):
22115 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22116
221172008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22118
22119 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22120 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22121
221222008-02-11 Juanma Barranquero <lekktu@gmail.com>
22123
22124 * w32menu.c (push_submenu_start, push_submenu_end)
22125 (push_left_right_boundary, push_menu_pane, push_menu_item):
22126 * keyboard.c (read_key_sequence): Don't pass args with side effects
22127 to AREF, it fails when compiling with -DENABLE_CHECKING.
22128
221292008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22130
22131 * Makefile.in (${lispsource}international/charprop.el):
22132 Delete this target.
22133
22134 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22135 emacs-unicode-2.
22136
221372008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22138
22139 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22140
221412008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22142
22143 * frame.c (Qnoelisp): New symbol.
22144 (syms_of_frame): Initialize it.
22145 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22146 harmless Elisp code, from a strong `force' from x_connection_closed.
22147 * frame.h (Qnoelisp): Declare.
22148 * xterm.c (x_connection_closed): Pass `noelisp'.
22149
22150 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22151 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22152 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22153 rather than `int' for the type of `type'.
22154
221552008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22156
22157 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22158
22159 * Makefile.in (GNUC): Remove support for gcc-1.x.
22160
221612008-02-10 Richard Stallman <rms@gnu.org>
22162
22163 * lisp.h (ASET): Use AREF, not ASLOT.
22164
221652008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22166
22167 * lisp.h (ASET): Check bounds.
22168
221692008-02-10 Glenn Morris <rgm@gnu.org>
22170
22171 * buffer.c (mode-name): Doc fix.
22172
221732008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22174
22175 * Makefile.in:
22176 * emacs.c:
22177 * gmalloc.c:
22178 * keyboard.c:
22179 * lisp.h:
22180 * m/ibm370aix.h:
22181 * process.c:
22182 * regex.c:
22183 * s/hpux.h:
22184 * sysdep.c:
22185 * sysselect.h:
22186 * systty.h:
22187 * unexec.c:
22188 * w32term.c:
22189 * xsmfns.c:
22190 * xterm.c: Remove code that deals with obsolete variables.
22191
22192 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22193
22194 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22195 nothing else needs it anymore.
22196
221972008-02-09 Eli Zaretskii <eliz@gnu.org>
22198
22199 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22200 instead of unibyte_char_to_multibyte.
22201
222022008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22203
22204 * s/gnu-linux.h: Remove commented out code.
22205
22206 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22207
22208 * Makefile.in: Update what RMS says about using autoconf.
22209 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22210 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22211 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22212 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22213
222142008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22215
22216 * keymap.c (Fkey_description): Move side effect outside of macro call.
22217
22218 * xfaces.c (Finternal_make_lisp_face):
22219 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22220
22221 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22222 (syms_of_fontset): Use ASET.
22223
22224 * fns.c (concat): Move side effect outside of macro call.
22225 (hash_clear): Use ASET.
22226
222272008-02-08 Richard Stallman <rms@gnu.org>
22228
22229 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22230 If FORCE, and frame has a surrogate minibuffer for another frame,
22231 delete the other frame first.
22232
222332008-02-07 Timo Savola <timo.savola@iki.fi>
22234
22235 * xterm.c (x_detect_focus_change): Handle embed client message.
22236 (handle_one_xevent): Ditto.
22237 (handle_one_xevent): If embedded and we get a button press/release,
22238 request focus.
22239 (xembed_set_info, xembed_send_message): New functions.
22240 (x_make_frame_visible): Call xembed_set_info if embedded.
22241 (x_make_frame_invisible): Call xembed_set_info if embedded.
22242 (x_term_init): Initialize Xatom_XEMBED.
22243 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22244 (x_iconify_frame): Ditto.
22245
22246 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22247 (enum xembed_info, enum xembed_message, enum xembed_focus)
22248 (enum xembed_modifier, enum xembed_accelerator): New.
22249 (xembed_set_info, xembed_send_message): Declare.
22250 (FRAME_X_EMBEDDED_P): New.
22251
22252 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22253 gtk_plug_new.
22254
22255 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22256 window ID of a frame.
22257 (x_window): Reparent frame if embedded.
22258 (Fx_create_frame): Don't set border width if embedded.
22259
22260 * emacs.c (USAGE3): Add --parent-id.
22261 (standard_args): Ditto.
22262
222632008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22264
22265 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22266
222672008-02-07 Jim Meyering <meyering@redhat.com>
22268
22269 Use "do...while (0)", not "if (1)...else" in macro definitions.
22270 The latter provokes a warning from gcc about the empty else, when
22271 followed by ";". Also, without that trailing semicolon, it would
22272 silently swallow up any following statement.
22273 * syntax.h (SETUP_SYNTAX_TABLE)
22274 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22275 * buffer.h (DECODE_POSITION): Likewise.
22276 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
22277 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
22278 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
22279 (FETCH_CHAR_ADVANCE): Likewise.
22280 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
22281
222822008-02-07 Jim Meyering <meyering@redhat.com>
22283
22284 * lread.c [lint]: Don't include <sys/inode.h>.
22285
222862008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
22287
22288 * xselect.c (x_handle_dnd_message):
22289 * xmenu.c (digest_single_submenu, xmenu_show):
22290 * xdisp.c (with_echo_area_buffer_unwind_data)
22291 (format_mode_line_unwind_data, unwind_format_mode_line)
22292 (display_menu_bar):
22293 * eval.c (Ffetch_bytecode):
22294 * doc.c (store_function_docstring):
22295 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
22296 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
22297 * buffer.c (add_overlay_mod_hooklist): Use ASET.
22298
222992008-02-07 Kenichi Handa <handa@m17n.org>
22300
22301 * ftxfont.c (ftxfont_open): Don't set
22302 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
22303
22304 * ftfont.c (ftfont_open): Fix previous change.
22305
223062008-02-06 Jason Rumney <jasonr@gnu.org>
22307
22308 * w32font.c (w32font_text_extents): Fill in lbearing metric.
22309 Use cached metrics for ASCII characters.
22310 (w32font_open_internal): Don't set font's owning_frame.
22311 Cache metrics for ASCII characters.
22312
22313 * w32font.h (struct w32font_info): Add ascii_metrics.
22314 Remove owning_frame.
22315
223162008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
22317
22318 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
22319 to negative value.
22320
22321 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
22322
22323 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
22324
22325 * charset.c (syms_of_charset): Set QCtest and Qeq.
22326
223272008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
22328
22329 * process.c (Fstart_process):
22330 * callproc.c (Fcall_process): Handle the case where
22331 Funhandled_file_name_directory returns nil.
22332
22333 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
22334 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
22335 * font.c (check_gstring): Use them and AREF to access the vector before
22336 we know it's really a gstring.
22337 (Ffont_shape_text): Fix typo.
46e722a9 22338 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
22339
22340 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
22341 Declare.
22342
22343 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
22344
223452008-02-05 Jason Rumney <jasonr@gnu.org>
22346
22347 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
22348 Set smallest_font_height and smallest_char_width in display info.
22349
223502008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
22351
22352 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
22353
223542008-02-05 Miles Bader <miles@gnu.org>
22355
22356 * xfaces.c (get_lface_attributes, merge_named_face)
22357 (lookup_named_face, lookup_derived_face, realize_named_face):
22358 Revert 2008-02-01 change by cyd@stupidchicken.com.
22359
223602008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
22361
22362 * fontset.c (Ffontset_info): Handle the case of inhibitting the
22363 fallback fonts.
22364 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
22365
223662008-02-04 Jason Rumney <jasonr@gnu.org>
22367
22368 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
22369 set full_name.
22370 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
22371
223722008-02-03 Jason Rumney <jasonr@gnu.org>
22373
22374 * makefile.w32-in (OBJ1): Include font.o here.
22375 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
22376
223772008-02-02 Jason Rumney <jasonr@gnu.org>
22378
22379 * makefile.w32-in (temacs): Bump EMHEAP to 21.
22380
223812008-02-01 Jason Rumney <jasonr@gnu.org>
22382
22383 * s/cygwin.h: Define VIRT_ADDR_VARIES.
22384
22385 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
22386
223872008-02-01 Andreas Schwab <schwab@suse.de>
22388
22389 * Makefile.in (shortlisp, lisp): Update for rename of
22390 ../lisp/language/myanmar.el.
22391
223922008-02-01 Chong Yidong <cyd@stupidchicken.com>
22393
22394 * xfaces.c (get_lface_attributes): Delete function.
22395 (merge_named_face, lookup_named_face, lookup_derived_face)
22396 (realize_named_face): Call lface_from_face_name directly, and use
22397 the fact that merge_face_vectors does not alter its FROM argument.
22398
223992008-02-01 Jason Rumney <jasonr@gnu.org>
22400
22401 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
22402 input in the default locale. Handle non-Unicode multibyte input.
22403
224042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22405
22406 * fontset.c (reorder_font_vector): Exclude nil elements from the
22407 font group. Don't try multiple fonts.
22408 (fontset_font): Adjust for the above change.
22409 (Finternal_char_font): Return nil if the found font doesn't
22410 contain the character ch.
22411
22412 * Makefile.in (lisp, shortlisp): Add cham.el.
22413
224142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22415
22416 * font.h (FONTP): Make it return 1 also for a font-object.
22417
22418 * .gdbinit (xfontset): New function.
22419
22420 * font.c (font_find_for_lface): Check if the character C is
22421 supported or not only for the first font.
22422
22423 * fontset.c (reorder_font_vector): Fix typo.
22424 (fontset_find_font): Don't add a font-spec specifying a script.
22425 Use 0 (not Qt) for the indication of empty font-group. Change the
22426 format of RFONT-DEF. Return Qt if no font in the font-group
22427 support the character.
22428 (fontset_font): Adjust for the above change. If no font was
22429 found the character, remember that.
22430 (face_for_char): Adjust for the change of RFONT-DEF.
22431 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
22432 no font for the target.
22433 (Finternal_char_font): Adjust for the change of RFONT-DEF.
22434
224352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22436
22437 * font.c (font_load_for_face): Handle the case that the font in
22438 face->lface is a string.
22439
224402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22441
22442 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
22443
224442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22445
22446 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22447 Fix previous change. If the frame is not on a window system,
22448 signal an error.
22449
224502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22451
bba3e508
SM
22452 * coding.c (decode_coding_object, encode_coding_object):
22453 Adjust marker positions after conversion.
aac0c6e3
MR
22454
22455 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22456
224572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22458
22459 * font.c (font_find_for_lface): Fix the handling of the return
22460 value of font_has_char.
22461 (Ffont_shape_text): Fix previous change.
22462
22463 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22464 (fontset_ref_and_range): Delete it.
22465 (fontset_find_font): Call char_table_ref_and_range instead of
22466 FONTSET_REF_AND_RANGE.
22467 (make_fontset): Don't setup font groups of Latin here.
22468 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22469 (new_fontset_from_font): Make the specified font the default for
22470 all Latin characters.
22471
224722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22473
22474 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22475 is on a window system before accessing the fontset of the frame.
22476
224772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22478
22479 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22480
22481 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22482 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22483
22484 * font.c (Ffont_shape_text): If the font driver doesn't have a
22485 shaper function, make zero-width glyphs to have at least one-pixel
22486 width. Fix setting of `to' field of glyphs.
22487
224882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22489
22490 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22491 glyphs.
22492
22493 * font.h (struct font_driver): Improve docstring of member `shape'.
22494
224952008-02-01 Kenichi Handa <handa@m17n.org>
22496
22497 * composite.c (syms_of_composite): Fix docstring of
22498 auto-composition-function.
22499
22500 * font.h (LGLYPH_SIZE): New macro.
22501
22502 * font.c (Ffont_fill_gstring): Stop filling when a character not
22503 supported by the font is found.
22504 (Ffont_shape_text): When a shape callback function returns nil,
22505 try at most two more times with larger gstring.
22506 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22507
22508 * xdisp.c (handle_auto_composed_prop): Change the argument to
22509 auto-composition-function.
22510
22511 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22512 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22513 Lispy glyph and store it in the lgstring.
22514
22515 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22516
22517 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22518
225192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22520
22521 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22522
22523 * fontset.c (Vfont_encoding_charset_alist): New variable.
22524 (syms_of_fontset): DEFVAR it.
22525 (reorder_font_vector, fontset_find_font): Optimize for the case of
22526 no need of reordering.
22527 (face_for_char): Map the charset property by
22528 Vfont_encoding_charset_alist.
22529
225302008-02-01 Jason Rumney <jasonr@gnu.org>
22531
22532 * w32font.c (logfonts_match): Don't check adstyle here.
22533 (font_matches_spec): Check here against physical font instead.
22534 (add_font_entity_to_list): Avoid some substitutions.
22535
22536 * font.c (font_parse_fcname): Default weight and slant to normal.
22537 (font_score): Prefer normal fonts if weight or slant unspecified.
22538 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22539 match freetype scores.
22540
225412008-02-01 Jason Rumney <jasonr@gnu.org>
22542
22543 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22544 font, as it may have been deleted.
22545 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22546 most common hyphenless variation.
22547 (logfonts_match): Check generic family.
22548 (font_matches_spec): Don't check generic family here.
22549 (fill_in_logfont): Set generic family based on adstyle.
22550
22551 * w32font.h (w32font_get_cache): Update declaration.
22552
225532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22554
22555 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22556
22557 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22558 If none of the new drivers are available, call font_update_drivers
22559 with the old drivers.
22560
22561 * w32font.c (w32font_get_cache): Adjust the argument type.
22562
22563 * xfont.c (xfont_get_cache): Adjust the argument type.
22564
22565 * font.h (struct font_driver): Change argument type of get_cache.
22566
22567 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22568
22569 * font.c (Ffont_get): Fix arguments to Fassoc.
22570 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22571 (font_clear_cache): New function.
22572 (font_list_entities, font_matching_entity): Use font_get_cache.
22573 (font_update_drivers): Call font_clear_cache when finishing a driver.
22574
22575 * fontset.c (fontset_find_font): Fix previous change.
22576
225772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22578
22579 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22580 dpyinfo->font_table.
22581 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22582 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22583
22584 * font.c (font_at): Handle the case that the arg C is negative.
22585 Handle the unibyte case.
22586 (Ffont_at): Call font_at with the arg C -1.
22587
22588 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22589 the position here, and call font_at with the arg C -1.
22590 Don't check the range of the existing composition at the point.
22591
225922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22593
22594 * fontset.c (fontset_add): New args charset_id and family.
22595 Change caller.
22596 (load_font_get_repertory, fontset_find_font): Assume that
22597 font_spec is always a font-spec object.
22598 (Fset_fontset_font): Always store a font-spec object in a fontset.
22599
22600 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22601 instead of get_property_and_range.
22602
226032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22604
22605 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22606 (xftfont_open): Don't keep locking face.
22607 (xftfont_close): Don't unlock face.
22608 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22609
22610 * fontset.c (fontset_find_font): Don't prefer a font of
22611 supplementary charset.
22612
226132008-02-01 Kenichi Handa <handa@m17n.org>
22614
22615 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22616 script, langsys_tag to langsys, new member script.
22617 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22618 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22619 listing to the script specified in that property. Fix arg to
22620 OTF_check_features.
22621
226222008-02-01 Jason Rumney <jasonr@gnu.org>
22623
22624 * w32font.h: New file.
22625
22626 * w32font.c: Include it.
22627 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22628 (w32font_open): Set owning_frame.
22629 (w32font_text_extents): Use owning_frame.
22630 (struct font_callback_data): Add opentype_only field.
22631 (add_font_entity_to_list): Use it to filter fonts.
22632 Don't check against full name.
22633 (w32font_list_internal): New function.
22634 (w32font_list): Use it.
22635 (w32font_match_internal): New function.
22636 (w32font_match): Use it.
22637 (w32font_open_internal): New function.
22638 (w32font_open): Use it.
22639 (w32font_get_cache, w32font_close, w32font_has_char)
22640 (w32font_encode_char, w32font_text_extents, w32font_draw):
22641 Make non-static.
22642
22643 * makefile.w32-in (w32font.o): Depend on w32font.h.
22644
226452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22646
22647 * charset.c (Fdefine_charset_internal): Record a supplementary
22648 charset at the tail of Vcharset_order_list.
22649
22650 * font.c (Ffont_shape_text): Fix the return value.
22651
22652 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22653
22654 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22655
226562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22657
22658 * ftfont.c (struct OpenTypeSpec): New struct.
22659 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22660 (ftfont_get_open_type_spec): New function.
22661 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22662
22663 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22664
226652008-02-01 Jason Rumney <jasonr@gnu.org>
22666
22667 * w32font.c (add_font_entity_to_list): Compare only the beginning
22668 of full name.
22669
226702008-02-01 Kenichi Handa <handa@m17n.org>
22671
22672 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22673 Never return HANDLED_RECOMPUTE_PROPS.
22674
226752008-02-01 Kenichi Handa <handa@m17n.org>
22676
22677 * font.c (font_gstring_produce): Delete it.
22678
22679 * composite.h (COMPOSITION_METHOD):
22680 Handle COMPOSITION_WITH_GLYPH_STRING.
22681
226822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22683
22684 * xfont.c (Qx): Delete.
22685 (syms_of_xfont): Don't initialize Qx.
22686
22687 * composite.h (enum composition_method):
22688 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22689
226902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22691
22692 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22693 (choose_face_font): Accept new form of font-spec.
22694
22695 * frame.h (font_driver_list): Declare it unconditionally.
22696 (struct frame): Define members font_driver_list and font_data_list
22697 unconditionally.
22698
22699 * fontset.c: Include "font.h" unconditionally.
22700 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22701 (Fset_fontset_font): Accept a font-spec object.
22702
22703 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22704 PIXEL_SIZE part a wild card.
22705
22706 * dispextern.h (struct glyph_string): Define members clip and
22707 num_clips unconditionally.
22708 (struct face): Define members font_info and extra unconditionally.
22709
22710 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22711 ftfont_info only when HAVE_LIBOTF is defined.
22712
227132008-02-01 Andreas Schwab <schwab@suse.de>
22714
22715 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22716 and end.
22717
227182008-02-01 Jason Rumney <jasonr@gnu.org>
22719
22720 * w32font.c (w32font_driver): Add new fields.
22721
227222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22723
22724 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22725 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22726 (LIBES): Add @M17N_FLT_CFLAGS@.
22727
22728 * composite.c (compose_text): Don't treat the new style
22729 composition specially.
22730
22731 * emacs.c (main): Call syms_of_font unconditionally.
22732
22733 * font.h (FONT_ENTITY_NOT_LOADABLE)
22734 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22735 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22736 (struct font_driver): New member shape.
22737 (font_registry_charsets): Extern it.
22738 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22739 (font_otf_capability, font_drive_otf): Delete their externs.
22740
22741 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22742 (font_charset_alist, font_registry_charsets): Move from xfont.c
22743 and rename.
22744 (font_prop_validate_otf): New function.
22745 (font_property_table): Register it for QCotf.
22746 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22747 (font_drive_otf): Delete.
22748 (font_prepare_composition): New arg F. Adjust for the change of
22749 lispy gstring.
22750 (font_find_for_lface): New arg C.
22751 (font_load_for_face): Adjust for the change of font_find_for_lface.
22752 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22753 lispy gstring.
22754 (Ffont_shape_text): New function.
22755 (Fopen_font): If the font size is not given, use 12-pixel.
22756 (Ffont_at): New arg STRING.
40b1a3a9 22757 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22758 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22759 conditionally.
22760
22761 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22762 fonts of the same font-spec. Change the format of RFONT-DEF.
22763 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22764 Adjust for the change of RFONT-DEF.
22765 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22766
22767 * ftfont.h: New file.
22768
22769 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22770 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22771 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22772 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22773 font_otf_capability and font_drive_otf, set ftfont_shape.
22774 (ftfont_list): Adjust for the change of :otf property value.
22775 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22776 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22777 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22778 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22779 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22780 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22781
22782 * w32term.c (x_draw_composite_glyph_string_foreground):
22783 Adjust for the change of lispy gstring.
22784
22785 * xdisp.c (handle_composition_prop): Adjust for the change of
22786 lispy gstring. Call a function for auto-composition with the
22787 third arg it->window.
22788 (fill_composite_glyph_string): Adjust for the change of lispy string.
22789 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22790
22791 * xfaces.c (set_font_frame_param): Adjust for the change of
22792 font_find_for_lface.
22793
22794 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22795 (xfont_registry_charsets): Likewise. Change caller.
22796 (syms_of_xfont): Don't handle x_font_charset_alist.
22797
22798 * xftfont.c: Include "ftfont.h".
22799 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22800 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22801 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22802 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22803 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22804 Set xftfont_driver.shape to xftfont_shape.
22805
22806 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22807 the change of lispy gstring.
22808
228092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22810
22811 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22812
228132008-02-01 Jason Rumney <jasonr@gnu.org>
22814
22815 * w32font.c (w32font_draw): Fill background manually.
22816
228172008-02-01 Jason Rumney <jasonr@gnu.org>
22818
22819 * font.c (Qfontp): Remove unused symbol.
22820 (QCantialias): New symbol.
22821 (syms_of_font): Define it.
22822 (font_property_table): Set a validator for QCantialias.
22823
22824 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22825 Define if not already.
22826 (QCfamily): Share with xfaces.c.
22827 (Qstandard, Qsubpixel, Qnatural): New symbols.
22828 (syms_of_w32font): Define them. Don't define QCfamily here.
22829 (w32_antialias_type, lispy_antialias_type): New functions.
22830 (w32_enumfont_pattern_entity): New arg requested_font.
22831 Set antialias parameter if non-default was requested.
22832 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22833
228342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22835
22836 * lread.c (read1): Undo the previous change.
22837
228382008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22839
22840 * frame.c (Fdelete_frame): Call font_update_drivers only when
22841 USE_FONT_BACKEND is defined.
22842
228432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22844
22845 * font.h (struct font_bitmap): New member bits_per_pixel.
22846 (struct font_driver): New members start_for_frame and end_for_frame.
22847 (struct font_data_list): New struct.
22848 (font_put_frame_data, font_get_frame_data): Extern them.
22849
22850 * frame.h (struct frame): New member font_data_list.
22851
22852 * font.c (font_update_drivers): Call driver->start_for_frame and
22853 driver->end_for_frame at proper timings.
22854 (font_put_frame_data, font_get_frame_data): New functions.
22855 (Ffont_spec): Add usage in the docstring.
22856
22857 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22858 (Fdelete_frame): Call font_update_drivers.
22859
22860 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22861 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22862 (xftfont_get_xft_draw): New function.
22863 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22864 (xftfont_end_for_frame): New function.
22865 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22866
22867 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22868 Change argument. Cache GCs in the per-frame data.
22869 (struct ftxfont_frame_data): New struct.
22870 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22871 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22872 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22873 (ftxfont_end_for_frame): New function.
22874 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22875
22876 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22877
228782008-02-01 Kenichi Handa <handa@m17n.org>
22879
22880 * xselect.c (Vselection_coding_system)
22881 (Vnext_selection_coding_system): Delete them.
22882 (syms_of_xselect): Don't declare selection-coding-system and
22883 next-selection-coding-system. They are declared in select.el.
22884
228852008-02-01 Jason Rumney <jasonr@gnu.org>
22886
22887 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22888
22889 * w32fns.c: Include imm.h.
22890 (get_composition_string_fn, get_ime_context_fn): New optional
22891 system functions.
22892 (globals_of_w32fns): Load them from imm32.dll.
22893 (ignore_ime_char): New flag.
22894 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22895 WM_IME_ENDCOMPOSITION messages.
22896
22897 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22898 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22899
229002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22901
22902 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22903 (READCHAR_REPORT_MULTIBYTE): New macro.
22904 (readchar): New 2nd arg MULTIBYTE.
22905 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22906 Make symbol's name multibyte according to the multibyteness of the
22907 source.
22908
229092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22910
22911 * xfaces.c (face_for_overlay_string): Call lookup_face with
22912 correct arguments (fix of synching with the trunk).
22913
229142008-02-01 Kenichi Handa <handa@m17n.org>
22915
22916 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22917 (font_prop_validate_non_neg, font_prop_validate_spacing):
22918 Delete argument prop_index.
22919 (font_property_table): Change arguments to validater. Change Callers.
22920 (font_lispy_object): Delete.
22921 (font_at): Use font_find_object instead fo font_lispy_object.
22922
229232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22924
22925 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22926 and file names.
22927
229282008-02-01 Jason Rumney <jasonr@gnu.org>
22929
22930 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22931 (font_matches_spec): Remove debug output.
22932 (add_font_entity_to_list): Avoid using substituted fonts.
22933
229342008-02-01 Jason Rumney <jasonr@gnu.org>
22935
22936 * doc.c (Fsnarf_documentation):
22937 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22938
229392008-02-01 Miles Bader <miles@gnu.org>
22940
22941 * dispextern.h (struct glyph_row): Only define "clip" field if
22942 HAVE_WINDOW_SYSTEM is defined.
22943
229442008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22945
22946 Fix up multi-tty merge.
22947
22948 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22949 and indentation.
22950
22951 * xfaces.c (free_realized_face, clear_face_gcs):
22952 Include font_done_for_face in the input_blocked section, just in case.
22953
22954 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22955 (get_char_face_and_encoding): Undo last change and remove the *other*
22956 duplicate definition (i.e. keep the one that's better scoped and that
22957 includes code for the font-backend).
22958
22959 * terminal.c (create_terminal): Default keyboard_coding to
22960 `no-conversion' and terminal_coding to `undecided'.
22961
22962 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22963
22964 * fontset.c (free_realized_fontsets): Check that the table entry does
22965 contain a fontset before trying to compare it to `base'.
22966
22967 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22968 syms_of_charset, and syms_of_coding earlier because init_window_once
22969 now needs Vcoding_system_hash_table to be setup.
22970
22971 * coding.h (default_buffer_file_coding): Remove.
22972
22973 * coding.c (default_buffer_file_coding): Remove.
22974 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22975 than ->symbol, and use the terminal-local coding system.
22976 (syms_of_coding): Don't setup the coding-systems that are not
22977 terminal-local.
22978 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22979
22980 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22981 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22982
22983 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22984 in chartab.c and were re-added here by mistake.
22985 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22986
22987 * doc.c (Fsnarf_documentation):
22988 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22989 src to etc.
22990
22991 * ChangeLog.10: Add mistakenly removed entry.
22992
229932008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22994
22995 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22996
229972008-02-01 Miles Bader <miles@gnu.org>
22998
22999 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23000 Add extra args to FACE_FOR_CHAR.
23001
230022008-02-01 Kenichi Handa <handa@m17n.org>
23003
23004 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23005 in sequence.
23006
23007 * chartab.c (map_sub_char_table, map_char_table): If the range
23008 contains just one character, call the function with that character
23009 even if the depth is not 3.
23010
230112008-02-01 Jason Rumney <jasonr@gnu.org>
23012
23013 * w32font.c (w32font_text_extents): Calculate metrics for the
23014 whole string.
23015
230162008-02-01 Jason Rumney <jasonr@gnu.org>
23017
23018 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23019
230202008-02-01 Jason Rumney <jasonr@gnu.org>
23021
bba3e508
SM
23022 * w32term.c (x_set_glyph_string_clipping):
23023 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23024 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23025 Adjust for the change of struct glyph_string.
23026
23027 * w32font.c (w32font_draw): Do clipping here.
23028
230292008-02-01 Kenichi Handa <handa@m17n.org>
23030
23031 * xftfont.c (xftfont_draw): Adjust for the change of struct
23032 glyph_string.
23033
bba3e508
SM
23034 * xterm.c (x_set_glyph_string_clipping):
23035 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23036 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23037 Adjust for the change of struct glyph_string.
23038
23039 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23040 the resulting clip(s}.
23041 (expose_overlaps): Add arg r. Change callers. Set it to
23042 row->clip temporarily.
23043 (expose_window): Redraw rows overlapping the exposed area.
23044
23045 * dispextern.h (struct glyph_row): New member clip.
23046 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23047 clip_height, new member clip, and num_clips.
23048
230492008-02-01 Kenichi Handa <handa@m17n.org>
23050
23051 * data.c (Fchar_or_string_p): Fix docstring.
23052
230532008-02-01 Kenichi Handa <handa@m17n.org>
23054
23055 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23056 create a temporary XftDraw object.
23057
230582008-02-01 Kenichi Handa <handa@m17n.org>
23059
23060 * font.c (Ffontp): Fix docstring.
23061
23062 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23063 strong evidence of ISO-2022.
23064
230652008-02-01 Kenichi Handa <handa@m17n.org>
23066
23067 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23068 SYNTAX_ENTRY_FOLLOW_PARENT.
23069
230702008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23071
23072 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23073 its type.
23074 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23075 Update to the new type of weak_hash_tables and next_weak.
23076
23077 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23078 a plain C pointer to Lisp_Hash_Table.
23079
23080 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23081 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23082 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23083 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23084 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23085 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23086 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23087 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23088 (GC_EQ): Remove since they've been identical to their non-GC_
23089 alter-egos ever since the markbit was eradicated.
23090
23091 * alloc.c:
23092 * buffer.c:
23093 * buffer.h:
23094 * data.c:
23095 * fileio.c:
23096 * filelock.c:
23097 * fns.c:
23098 * frame.h:
23099 * lisp.h:
23100 * macterm.c:
23101 * print.c:
23102 * process.c:
23103 * w32fns.c:
23104 * w32menu.c:
23105 * w32term.c:
23106 * xfns.c:
23107 * xmenu.c:
23108 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23109
231102008-02-01 Kenichi Handa <handa@m17n.org>
23111
23112 * chartab.c (map_sub_char_table): Make it work for the top-level
23113 char-table. Fix handling of parent char-table.
23114 (map_char_table): Adjust for the above change.
23115
231162008-02-01 Jason Rumney <jasonr@gnu.org>
23117
23118 * w32font.c (Qgdi): Rename from Qw32.
23119
231202008-02-01 Jason Rumney <jasonr@gnu.org>
23121
23122 * w32bdf.c (get_quoted_string): Make function static.
23123
231242008-02-01 Kenichi Handa <handa@m17n.org>
23125
23126 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23127 bigger ascent and descent than those of the font, use them as
23128 font's ascent and descent.
23129
231302008-02-01 Kenichi Handa <handa@m17n.org>
23131
23132 * Makefile.in (${lispsource}international/charprop.el): Move this
23133 target within "#ifdef HAVE_UNIDATA" and "#endif".
23134
231352008-02-01 Kenichi Handa <handa@m17n.org>
23136
23137 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23138 (shortlisp): Add ../lisp/language/tai-viet.el.
23139
231402008-02-01 Ulrich Mueller <ulm@gentoo.org>
23141
23142 * Makefile.in (${lispsource}international/charprop.el): Depend on
23143 temacs${EXEEXT}.
23144
231452008-02-01 Jason Rumney <jasonr@gnu.org>
23146
23147 * w32font.c (w32font_close): Delete the GDI font object.
23148
23149 * w32menu.c: Include character.h.
23150
23151 * w32proc.c: Likewise.
23152
23153 * w32select.c: Likewise.
23154
23155 * makefile.w32-in (w32proc.o): Depend on character.h.
23156
231572008-02-01 Jason Rumney <jasonr@gnu.org>
23158
23159 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23160
23161 * w32menu.c (syms_of_w32menu): Likewise.
23162
23163 * w32proc.c (syms_of_ntproc): Likewise.
23164
23165 * w32select.c (syms_of_w32select): Likewise.
23166
23167 * w32term.c (syms_of_w32term): Likewise.
23168
231692008-02-01 Jason Rumney <jasonr@gnu.org>
23170
23171 * w32font.c (w32font_draw): Delete brush after using it.
23172
231732008-02-01 Jason Rumney <jasonr@gnu.org>
23174
23175 * w32font.c (w32font_open): Don't set font_idx.
23176 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23177 to font settings.
23178 (w32font_draw): Fill background explicitly.
23179
231802008-02-01 Jason Rumney <jasonr@gnu.org>
23181
23182 * w32term.c (w32_initialize): Don't call w32font_initialize.
23183
23184 * w32font.c (w32font_info): Remove subranges.
23185 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23186 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23187 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23188 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23189 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23190 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23191 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23192 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23193 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23194 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23195 New symbols.
23196 (font_callback_data): New struct.
23197 (w32font_list, w32font_match): Use it.
23198 (w32font_open): Don't populate subranges.
23199 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23200 (w32font_encode_char): Always return unicode code-point as-is.
23201 (w32font_text_extents): Supply a transformation matrix to
23202 GetGlyphOutline. Never look up by glyph index. Avoid looping
23203 twice. Use unicode version of GetTexExtentPoint32 instead of
23204 glyph index version.
23205 (set_fonts_frame): Remove.
23206 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23207 set frame parameter. Use backward compatible fake foundries.
23208 Save generic family in extra slot under QCfamily. Make width slot
23209 constant. Save QCspacing value. Save list of scripts instead of
23210 binary subranges.
23211 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
23212 (add_font_entity_to_list): Use font_callback_data struct.
23213 Filter unwanted fonts.
aac0c6e3
MR
23214 (add_one_font_entity_to_list): Use font_callback_data struct.
23215 (w32_registry): Default to iso10646_1.
23216 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23217 string font registries. Don't fill in font name if it is a generic
23218 family name, fill family instead. Use spacing, family and script
23219 extra info to fill pitch, family and charset fields.
23220 (list_all_matching_fonts): Use font_callback_data struct.
23221 (unicode_range_for_char): Remove.
23222 (font_supported_scripts): New function.
23223 (w32font_initialize): Remove.
23224 (syms_of_w32font): Update which symbols are defined.
23225
232262008-02-01 Jason Rumney <jasonr@gnu.org>
23227
23228 * font.c (font_pixel_size): Reverse assq_no_quit args.
23229
23230 * w32term.h (FONT_WIDTH): Report max width, not average.
23231 (FONT_MAX_WIDTH): Remove.
23232 (FONT_AVG_WIDTH): New macro.
23233
23234 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23235 redefinition of FONT_WIDTH.
23236
23237 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23238 (w32_cache_char_metrics): Use FONT_WIDTH.
23239
23240 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23241
232422008-02-01 Jason Rumney <jasonr@gnu.org>
23243
23244 * w32font.c (w32font_open): Make lfHeight negative.
23245
23246 * w32fns.c (x_default_font_parameter): Use new style font name.
23247 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23248
232492008-02-01 Jason Rumney <jasonr@gnu.org>
23250
23251 * w32font.c (QCsubranges): New symbol.
23252 (w32font_open, w32font_has_char): Get subranges from subproperty
23253 of extra.
23254 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23255 (syms_of_w32font): Define :subranges symbol.
23256
23257 * font.c (font_put_extra): Expose externally.
23258
23259 * font.h (font_put_extra): Move declaration from font.c.
23260
23261 * font.c (Ffont_get): Use font driver to determine otf capability.
23262 (adjust_anchor): Check if driver defines anchor_point before using.
23263
23264 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23265 (w32font_draw): Use options.
23266 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23267 Fix detection of truetype fonts.
23268 (registry_to_w32_charset): Handle charsets other than iso8859-1
23269 expressed as lisp symbols.
23270 (w32_registry): Express charset as lisp symbol.
23271 (fill_in_logfont): Reverse pixel and point height logic.
23272 Don't set width here. Set quality to default.
23273
23274 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23275 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23276
23277 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23278 Remove redundant loop and allocation.
23279
23280 * makefile.w32-in (font.o, w32font.o): New objects.
23281 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
23282 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
23283
23284 * xdisp.c (fill_composite_glyph_string): Make the first arg to
23285 STORE_XCHARB a valid l-value.
23286
23287 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
23288 calculations for non-Truetype fonts.
23289 (x_draw_glyph_string): Sync with xterm.c.
23290 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23291 Remove redundant code.
23292 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
23293
23294 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
23295 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
23296
23297 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
23298 (x_to_w32_charset, w32_to_x_charset): Expose externally.
23299
23300 * w32font.c: New file for w32 font backend.
23301
233022008-02-01 Kenichi Handa <handa@m17n.org>
23303
23304 * term.c: Don't include "buffer.h" twice.
23305
233062008-02-01 Kenichi Handa <handa@m17n.org>
23307
23308 * character.c (Funibyte_string): New function.
23309 (syms_of_character): Defsubr it.
23310
233112008-02-01 Jason Rumney <jasonr@gnu.org>
23312
23313 * w32term.c [USE_FONT_BACKEND]:
23314 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
23315 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
23316 (x_draw_glyph_string, x_draw_glyph_string_foreground)
23317 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
23318 (x_free_frame_resources): Sync with xterm.c.
23319
233202008-02-01 Andreas Schwab <schwab@suse.de>
23321
23322 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
23323 char-table size.
23324
233252008-02-01 Kenichi Handa <handa@m17n.org>
23326
23327 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
23328
233292008-02-01 Kenichi Handa <handa@m17n.org>
23330
23331 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
23332 font_otf_gpos, add font_drive_otf.
23333
23334 * fontset.c (fontset_find_font): Pay attention to font size
23335 specified for a font.
23336 (reorder_font_vector): Check contents of font_def.
23337
23338 * font.c (struct otf_list): Delete it.
23339 (otf_list): Make it a lisp variable.
23340 (otf_open): Use lispy otf_list.
23341 (generate_otf_features): Rename from parse_gsub_gpos_spec.
23342 (check_otf_features): New function.
23343 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
23344 New functions.
23345 (font_drive_otf): New function merging font_otf_gsub and
23346 font_otf_gpos.
23347 (font_open_for_lface): New arg spec. Change argument order.
23348 (font_load_for_face): Adjust for the change of font_open_for_lface.
23349 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
23350 Ffont_otf_gpos.
23351 (syms_of_font): Staticpro otf_list. Delete defsubr of
23352 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
23353
23354 * xfaces.c (set_font_frame_param): Adjust for the change of
23355 font_open_for_lface.
23356
23357 * font.h (font_open_for_lface): Adjust prototype.
23358 (struct font_driver): Delete members otf_gsub and otf_gpos, add
23359 member otf_drive.
23360 (font_otf_gsub, font_otf_gpos): Delete externs.
23361 (font_drive_otf): Extern it.
23362
233632008-02-01 Kenichi Handa <handa@m17n.org>
23364
23365 * font.c (font_at): If the window W is not on a window system,
23366 return Qnil.
23367
23368 * coding.c (produce_chars, encode_coding): Don't call
23369 insert_from_gap if no characters to produce.
23370
233712008-02-01 Kenichi Handa <handa@m17n.org>
23372
23373 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
23374 Fclear_face_cache.
23375
23376 * xfaces.c (face_for_font): Check also face->font==font->font.font.
23377
233782008-02-01 Miles Bader <miles@gnu.org>
23379
23380 * emacs.c (main): Change default value of `enable_font_backend' to 1.
23381 Parse "--disable-font-backend" option.
23382 (standard_args): Add "--disable-font-backend" option.
23383
233842008-02-01 Kenichi Handa <handa@m17n.org>
23385
23386 * fontset.c (fontset_find_font): New function.
23387 (fontset_font): Use fontset_find_font.
23388 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
23389 Register the specified font for all Latin characters.
23390 (new_fontset_from_font): Register the specified font for all Latin
23391 characters.
23392 (dump_fontset): For a realized fontset, include the base fontset
23393 name in the returned vector.
23394
233952008-02-01 Kenichi Handa <handa@m17n.org>
23396
23397 * character.h (CHAR_STRING): Cast C to unsigned on calling
23398 char_string.
23399
23400 * character.c (char_string): Type of arg C changed to unsigned.
23401 Signal an error if C is an invalid character code.
23402
23403 * editfns.c (general_insert_function, Fchar_to_string):
23404 Use CHARACTERP, not INTEGERP.
23405
234062008-02-01 Kenichi Handa <handa@m17n.org>
23407
23408 * character.h (MIN_MULTIBYTE_LEADING_CODE)
23409 (MAX_MULTIBYTE_LEADING_CODE): New macros.
23410
23411 * regex.c (analyse_first): Fix for multibyte characters in "case
23412 charset:" and "case categoryspec:".
23413
234142008-02-01 Andreas Schwab <schwab@suse.de>
23415
23416 * Makefile.in (LIBES): Move standard libraries to the end.
23417
234182008-02-01 Kenichi Handa <handa@m17n.org>
23419
23420 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
23421 nonzero, don't shrink the buffer nextb.
23422
23423 * buffer.h (struct buffer_text): New member inhibit_shrinking.
23424
23425 * coding.c (coding_alloc_by_making_gap): New arg offset.
23426 (alloc_destination): Call coding_alloc_by_making_gap with the arg
23427 offset.
23428 (decode_coding_iso_2022): Update coding->safe_charsets.
23429 (decode_coding_gap): Temporarily set
23430 current_buffer->text->inhibit_shrinking to 1.
23431
234322008-02-01 Kenichi Handa <handa@m17n.org>
23433
bba3e508
SM
23434 * xterm.c (x_draw_composite_glyph_string_foreground):
23435 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
23436
234372008-02-01 Juanma Barranquero <lekktu@gmail.com>
23438
23439 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
23440
234412008-02-01 Kenichi Handa <handa@m17n.org>
23442
23443 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
23444 target_multibyte instead of multibyte.
23445 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23446 (bcmp_translate): Change the argument name from multibyte to
23447 target_multibyte.
23448
234492008-02-01 Kenichi Handa <handa@m17n.org>
23450
23451 These changes are to compile a regexp into a pattern that can be
23452 used both for multibyte and unibyte targets.
23453
23454 * Makefile.in (search.o): Depend on charset.h.
23455
23456 * character.c (multibyte_char_to_unibyte_safe): New function.
23457
23458 * search.c: Include "charset.h".
23459 (compile_pattern_1): Delete argument multibyte. Don't set
23460 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23461 (compile_pattern): Don't compare cp->buf.target_multibyte.
23462 Compare cp->buf.charset_unibyte.
23463 (compile_pattern): Set cp->buf.target_multibyte.
23464
23465 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23466
23467 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23468
23469 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23470 multibyte. Change callers.
23471 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23472 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23473 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23474 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23475 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23476 (regex_compile): Make the compiled pattern usable both for
23477 multibyte and unibyte targets.
23478 (analyse_first): Make the fastmap usable both for multibyte and
23479 unibyte targets.
23480 (TRANSLATE_VIA_MULTIBYTE): Delete.
23481 (re_match_2_internal): Pay attention to the case that the
23482 multibyteness of bufp and target may be different.
23483
234842008-02-01 Kenichi Handa <handa@m17n.org>
23485
23486 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23487 empty box occupy at least one column width.
23488
234892008-02-01 Miles Bader <miles@gnu.org>
23490
23491 * Makefile.in: Remove redundant HAVE_XFT clause.
23492
234932008-02-01 Kenichi Handa <handa@m17n.org>
23494
23495 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23496
234972008-02-01 Kenichi Handa <handa@m17n.org>
23498
23499 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23500 being nil.
23501
235022008-02-01 Kenichi Handa <handa@m17n.org>
23503
23504 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23505
235062008-02-01 Kenichi Handa <handa@m17n.org>
23507
23508 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23509
235102008-02-01 Kenichi Handa <handa@m17n.org>
23511
23512 * search.c (simple_search): Fix previous change.
23513
235142008-02-01 Kenichi Handa <handa@m17n.org>
23515
23516 * xftfont.c (ftfont_font_format): Extern declaration.
23517
23518 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23519
23520 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23521 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23522
23523 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23524 (ftfont_font_format): Fix previous change.
23525
23526 * font.h (Ffont_xlfd_name): EXFUN it.
23527
23528 * font.c (font_parse_xlfd): Fix the array size of `f'.
23529 (register_font_driver): Use EQ to compare driver->type.
23530
23531 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23532 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23533 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23534
235352008-02-01 Kenichi Handa <handa@m17n.org>
23536
23537 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23538 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23539
235402008-02-01 Kenichi Handa <handa@m17n.org>
23541
23542 * xfont.c (xfont_open): Set font->format.
23543
23544 * xftfont.c (xftfont_open): Set font->format.
23545
23546 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23547 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23548 (ftfont_open): Set font->format.
23549 (ftfont_font_format): New function.
23550
23551 * font.h (struct font): New member format.
23552
23553 * font.c (Qopentype): New variable.
23554 (syms_of_font): Defsym it.
23555 (Fquery_font): Change the format of the last element of the return
23556 value.
23557
235582008-02-01 Kenichi Handa <handa@m17n.org>
23559
23560 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23561 last resort.
23562
235632008-02-01 Kenichi Handa <handa@m17n.org>
23564
23565 * coding.c (detect_coding_charset): Fix detection of multi-byte
23566 charset.
23567
235682008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23569
23570 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23571
235722008-02-01 Kenichi Handa <handa@m17n.org>
23573
23574 * xdisp.c (get_next_display_element): Set it->face_id for the
23575 first component of a composition.
23576 (x_produce_glyphs): Check if the font is changed or not for composition.
23577
235782008-02-01 Kenichi Handa <handa@m17n.org>
23579
23580 * fontset.c (Qlatin): New variable.
23581 (syms_of_fontset): Define it as a lisp symbol.
23582 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23583
235842008-02-01 Kenichi Handa <handa@m17n.org>
23585
23586 * font.c (font_unparse_fcname): Pay attention to the case that
23587 some of font property is a null string.
23588
235892008-02-01 Kenichi Handa <handa@m17n.org>
23590
23591 * term.c: Include "composite.h".
23592 (encode_terminal_code): Output all components of composition.
23593 Check the size of encode_terminal_src.
23594 (produce_glyphs): For composition, call produce_composite_glyph.
23595 (append_composite_glyph, produce_composite_glyph): New functions.
23596
23597 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23598 is not found, get font_info from the current ascii face.
23599
236002008-02-01 Kenichi Handa <handa@m17n.org>
23601
23602 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23603 buffer-file-name to Qnil before calling insert_from_buffer.
23604
23605 * font.c (font_unparse_fcname): Pay attention to the case that
23606 foundry is a null string.
23607
236082008-02-01 Kenichi Handa <handa@m17n.org>
23609
23610 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23611
23612 * font.c (Qunicode_sip): New variable.
23613 (syms_of_font): Declare it as a Lisp symbol.
23614
23615 * font.h (Qunicode_sip): Extern it.
23616
236172008-02-01 Kenichi Handa <handa@m17n.org>
23618
23619 * composite.c (get_composition_id): Pay attention to TAB component.
23620
23621 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23622 TAB. Adjust for the change of s->char2b which always points to
23623 the first element of allocated memory.
23624
23625 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23626
23627 * xdisp.c (handle_composition_prop): Set it->c to the first
23628 non-TAB component.
23629 (fill_composite_glyph_string): Change argument.
23630 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23631 (x_produce_glyphs): Fix handling of left/right padding.
23632
236332008-02-01 Kenichi Handa <handa@m17n.org>
23634
23635 * coding.c (detect_coding_system): Fix for handling off
23636 inhibit_iso_escape_detection. Fix for the case that no coding
23637 system is defined for a specific coding category.
23638
236392008-02-01 Kenichi Handa <handa@m17n.org>
23640
23641 * font.c (font_matching_entity): Delete unused local var.
23642
23643 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23644 opening a font.
23645
23646 * fileio.c (Finsert_file_contents): On recovering a file, assume
23647 Unix-like eol.
23648 (choose_write_coding_system): On auto-saving a file, force
23649 Unix-like eol.
23650
23651 * coding.c (setup_coding_system): Fix setting of
23652 coding->common_flags based on eol_type.
23653 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23654 inherit from it.
23655
236562008-02-01 Kenichi Handa <handa@m17n.org>
23657
23658 * alloc.c (NSTATICS): Increas to 0x600.
23659
236602008-02-01 Kenichi Handa <handa@m17n.org>
23661
23662 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23663 (ftfont_list): Don't check :name property.
23664 (ftfont_match): New function.
23665 (ftfont_pattern_entity): If the pattern doesn't contain
23666 FC_SPACING, don't assume FC_MONO.
23667
23668 * font.h (struct font_driver): New member `match'.
23669 (font_update_drivers): Adjust prototype.
23670
23671 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23672 property of FONT.
bba3e508
SM
23673 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23674 Define them unconditionally.
aac0c6e3
MR
23675 (font_matching_entity): New function.
23676 (font_open_by_name): Try font_matching_entity if exact match is
23677 not found.
23678 (font_update_drivers): Delete the arg FONT. Return a list of
23679 actually used backends. Don't free faces, font caches here.
23680 Don't store data in frame parameters. Don't call x_set_font.
23681 (Ffont_spec): Store :name property as is.
23682 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23683 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23684 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23685 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23686 Call font->driver->otf_gsub instead of font_otf_gsub.
23687
23688 * frame.c (x_set_font_backend): Do more works that were done in
23689 font_update_drivers before.
23690
23691 * xfont.c (xfont_match): New function.
23692 (xfont_driver): Set xfont_driver.match to xfont_match.
23693 (xfont_draw): Set font in GC if necessary.
23694
23695 * ftxfont.c (ftxfont_match): New function.
23696 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23697
23698 * xftfont.c (xftfont_match): New function.
23699 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23700
237012008-02-01 Kenichi Handa <handa@m17n.org>
23702
23703 * font.h (struct font): New member scalable.
23704 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23705 (font_otf_gsub): Adjust prototype.
23706
23707 * font.c (font_otf_capability): Fix handling of the default langsys.
23708 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23709 Check the contents of SPEC.
23710 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23711 (check_gstring): New function.
23712 (REPLACEMENT_CHARACTER): New macro.
23713 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23714 glyph codes of GSTRING.
23715 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23716 (font_prepare_composition): Set cmp->glyph_len.
23717 (font_open_entity): Set font->scalable.
23718 (Ffont_get): Handle :otf property.
bba3e508
SM
23719 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23720 New functions.
aac0c6e3
MR
23721 (Fquery_font): Use font->font.full_name.
23722 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23723 Sfont_otf_alternates.
23724
23725 * ftfont.c (ftfont_open): Set font->font.full_name and
23726 font->font.name properly. Fix calculation of font->font.height
23727 and font->min_width.
23728
23729 * ftxfont.c (ftxfont_create_gcs): New function.
23730 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23731 (ftxfont_draw_backgrond): Fix filling region.
23732 (ftxfont_default_fid): New function.
23733 (ftxfont_open): Set xfont->fid to the return value of
23734 ftxfont_default_fid.
23735 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23736 (ftxfont_done_face): Free only GCs that are created by
23737 ftxfont_create_gcs.
23738 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23739
23740 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23741 Clip to src->width, etc (not src->clip_XXX).
23742
23743 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23744 FontBackend frame parameter.
23745
237462008-02-01 Kenichi Handa <handa@m17n.org>
23747
23748 * font.h (struct font_driver_list): New member `on'.
23749 (Fclear_font_cache): EXFUN it.
23750 (font_update_drivers): Extern it.
23751
23752 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23753 (font_list_entities): Check driver_list->on.
40b1a3a9 23754 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23755 (font_update_drivers): New function.
23756 (Fclear_font_cache): Check driver_list->on.
23757
23758 * frame.h (Qfont_backend): Extern it.
23759 (x_set_font_backend): Extern it.
23760
23761 * frame.c (Qfont_backend): New variable.
23762 (frame_parms): New element for font-backend.
23763 (x_set_font_backend): New function.
23764
23765 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23766 FontBackend frame parameter.
23767 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23768 x_set_font_backend.
23769
23770 * xfont.c (xfont_list): Don't try listing by :name property if the
23771 name is not for XLFD.
23772
237732008-02-01 Kenichi Handa <handa@m17n.org>
23774
23775 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23776 (LGLYPH_SET_TO): New macros.
23777 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23778 element of G is vector or not.
23779 (font_at): Extern it.
23780
23781 * font.c: Include window.h.
23782 (font_lispy_object): New function.
23783 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23784 end of valid glyph.
23785 (font_close_object): Fix getting (struct font *).
23786 (font_at): New function.
23787 (Ffont_get): If FONT is a font-object, get entity from it.
23788 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23789 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23790 Fix range check.
aac0c6e3
MR
23791 (Ffont_at): New function.
23792 (syms_of_font): Defsubr Sfont_at.
23793
23794 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23795 before the entry for Qcomposition.
23796 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23797 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23798 the font in gstring.
23799 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23800 LGLYPH_FORM (g) to detect the end of valid glyph.
23801 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23802 we are composing with gstring.
23803
23804 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23805 Check if adjustment is vector or not.
23806
23807 * Makefile.in (font.o): Make it depends on window.h.
23808
238092008-02-01 Kenichi Handa <handa@m17n.org>
23810
23811 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23812 adjustment is vector or not.
23813
238142008-02-01 Miles Bader <miles@gnu.org>
23815
23816 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23817
238182008-02-01 Kenichi Handa <handa@m17n.org>
23819
23820 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23821 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23822 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23823
23824 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23825 (DEVICE_DELTA): Fix typo.
23826 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23827 LGLYPH format.
23828
23829 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23830 the change of LGLYPH format.
23831
238322008-02-01 Kenichi Handa <handa@m17n.org>
23833
23834 * ftfont.c (ftfont_list): Fix typo.
23835 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23836
238372008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23838
23839 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23840
23841 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23842 xftface_info is non-NULL.
23843
238442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23845
23846 * ftfont.c (ftfont_list): Move misplaced #endif.
23847
238482008-02-01 Kenichi Handa <handa@m17n.org>
23849
23850 * ftfont.c (ftfont_list): Pay attention to the case that
23851 FC_CAPABILITY is not defined.
23852
238532008-02-01 Kenichi Handa <handa@m17n.org>
23854
23855 * xftfont.c (xftfont_open): Set charset related members to -1.
23856
23857 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23858 QCname.
23859 (ftfont_open): Set charset related members to -1.
23860
23861 * fontset.c (Votf_script_alist): New variable.
23862 (syms_of_fontset): Initialize it.
23863 (fontset_font): Delete unused variable.
23864
23865 * fontset.h (Votf_script_alist): Extern it.
23866
23867 * font.c (font_find_for_lface): Optimize code.
23868
23869 * font.h (font_close_object, font_merge_old_spec): Extern them.
23870
238712008-02-01 Kenichi Handa <handa@m17n.org>
23872
23873 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23874 (syms_of_font): Initialize them.
23875 (font_pixel_size): Allow float value in dpi.
23876 (font_prop_validate_type): Delete.
23877 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23878 Change caller.
23879 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23880 (font_prop_validate_extra): Delete.
23881 (font_prop_validate_spacing): New function.
23882 (font_property_table): Add elements for all known properties.
bba3e508
SM
23883 (get_font_prop_index): Rename from check_font_prop_name.
23884 New argument FROM. Change caller.
aac0c6e3
MR
23885 (font_prop_validate): Validate all known properties.
23886 (font_put_extra): Delete argument force. Change caller.
23887 (font_expand_wildcards): Make it static. Fix the way of shrinking
23888 the possible range.
23889 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23890 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23891 Change caller.
23892 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23893 (font_parse_fcname): Delete argument merge. Fix parsing of point
23894 size. Don't validate properties values here. Change caller.
23895 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23896 (font_open_by_name): Delete unused variable.
23897 (Ffont_spec): Likewise. Validate property values.
23898 (Ffont_match_p): New function.
23899
23900 * font.h (QCscalable): Extern it.
23901 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23902
23903 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23904
23905 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23906 (xfont_list_pattern): New function.
23907 (xfont_list): Use xfont_list_pattern.
23908
239092008-02-01 Kenichi Handa <handa@m17n.org>
23910
23911 * font.h (Flist_fonts): EXFUN it.
23912
239132008-02-01 Jason Rumney <jasonr@gnu.org>
23914
23915 * w32term.c (w32_initialize): Add back smoothing_type and
23916 smoothing_enabled definitions.
23917
239182008-02-01 Kenichi Handa <handa@m17n.org>
23919
23920 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23921 s->face->font on determining underline position.
23922
239232008-02-01 Kenichi Handa <handa@m17n.org>
23924
23925 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23926 (font_has_char): Accept font-object too.
23927 (font_find_for_lface): Try at first with a size specified in face.
23928
239292008-02-01 Kenichi Handa <handa@m17n.org>
23930
23931 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23932 font_open_by_name.
23933
239342008-02-01 Kenichi Handa <handa@m17n.org>
23935
23936 * font.h (QCspacing, QCdpi): Extern them.
23937 (enum font_spacing): New enum.
23938 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23939
23940 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23941 (QCspacing, QCdpi): New variables.
23942 (syms_of_font): Initialize them.
23943 (font_pixel_size): New function.
23944 (font_put_extra): New function.
23945 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23946 in FONT_EXTRA.
23947 (font_parse_fcname): Handle enumerated values (e.g. bold).
23948 Fix handling font size. Add QCname property that contains only
23949 unknown properties.
23950 (font_score): Change argument. Change caller. Pay attention to
23951 FONT_PIXEL_SIZE_QUANTUM.
23952 (font_sort_entites, font_list_entities, font_find_for_lface)
23953 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23954 (Ffont_spec): Add QCname property that contains only unknown properties.
23955
bba3e508
SM
23956 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23957 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23958 listed font. Don't include scalable in pattern. Pay attention to
23959 FONT_PIXEL_SIZE_QUANTUM.
23960
239612008-02-01 Kenichi Handa <handa@m17n.org>
23962
23963 * font.c (font_parse_fcname): Fix parsing of point-size.
23964 (font_unparse_fcname): Produce symbolic names for style properties.
23965 (font_list_entities): Handle float size correctly.
23966 (font_open_by_name): Prefer `normal' property values if the name
23967 doesn't specify them.
23968
23969 * fontset.c (Finternal_char_font): Use font_get_name, not
23970 Ffont_xlfd_name.
23971
23972 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23973 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23974 pattern. Don't force scalable.
23975
23976 * xftfont.c (xftfont_open): For generating a name, start from
23977 96-byte buffer.
23978
239792008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23980
23981 * frame.h (x_new_fontset2): Fix prototype.
23982
239832008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * font.h (struct font_driver): Delete member parse_name.
23986 (font_match_p, font_get_spec, font_parse_fcname)
23987 (font_unparse_fcname): Extern them.
23988 (font_get_name): Adjust prototype.
23989
23990 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23991 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23992 (font_expand_wildcards): Fix handling ENCODING field.
23993 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23994 (font_parse_fcname): New function.
23995 (font_unparse_fcname): New function.
23996 (font_parse_name): New function.
23997 (font_match_p): New function.
23998 (font_get_name): Change return value to Lisp string.
23999 (font_get_spec): New function.
24000 (Qunspecified, Qignore_defface): Don't extern them.
24001 (font_find_for_lface): Assume that LFACE is fully specified.
24002 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24003 object, use it for FACE.
24004 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24005 driver->parse_name.
24006 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24007
24008 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24009 prototype.
24010
24011 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24012 argument F. Don't call Fnew_fontset. Instead, directly call
24013 make_fontset.
24014
24015 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24016
24017 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24018 of x_new_fontset2.
24019
24020 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24021 (Qsans__serif): New variables.
24022 (ftfont_generic_family_list): New variable.
24023 (syms_of_ftfont): Initialize the above variables.
24024 (ftfont_pattern_entity): Delete argument NAME.
24025 (ftfont_list_generic_family): New function.
24026 (ftfont_parse_name): Delete this function.
24027 (ftfont_list): Try generic family only when FcFontList found no font.
24028 (ftfont_list_family): Fix args to FcObjectSetBuild.
24029
24030 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24031 object in attrs[LFACE_FONT_INDEX].
24032 (set_lface_from_font_name): Cancel all changes for font-backend.
24033 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24034 function.
24035 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24036 font object in QCfont attribute.
24037 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24038 (realize_default_face) [USE_FONT_BACKEND]: Call
24039 set_lface_from_font_and_fontset.
24040
24041 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24042 "fixed", and signal error here if no suitable font was found.
24043
24044 * xfont.c (xfont_parse_name): Delete this function.
24045
24046 * xftfont.c (xftfont_open): Change coding style of error
24047 handling. Generate fontconfig's fontname pattern.
24048
24049 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24050 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24051
24052 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24053 Both args FONTSET and FONT_OBJECT must be existing ones.
24054
240552008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24056
24057 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24058
240592008-02-01 Kenichi Handa <handa@m17n.org>
24060
24061 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24062
24063 * font.h (struct font): Fix typo.
24064
24065 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24066 XLFD_XXX_INDEX.
24067 (enum xlfd_field_mask): New enum.
ef1b0ba7 24068 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24069 are followed by non-digits, return a symbol.
24070 (font_expand_wildcards): New function.
24071 (font_parse_xlfd): Fix wildcard handling.
24072 (Ffont_spec): If :name is specified, reflect the info in the other
24073 properties.
24074
24075 * ftfont.c (ftfont_pattern_entity): Fix typo.
24076 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24077 locale.
24078
240792008-02-01 Kenichi Handa <handa@m17n.org>
24080
24081 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24082
24083 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24084 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24085 registry doesn't specify encoding part.
24086 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24087 (font_open_by_name): At first try parsing the name.
24088 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24089 as Lisp symbols.
24090
24091 * fontset.c (reorder_font_vector): Pay attention to the case that
24092 the 3rd element of font_def is nil.
24093 (fontset_font): For the default fontset, append one more fontset
24094 elements for a script-based font specification. Don't add script
24095 attribute on finding a font.
24096 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24097 font name.
24098 (fontset_ascii_font): If a font can't be opened, return nil.
24099
24100 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24101 (ftfont_pattern_entity): New function.
24102 (ftfont_get_cache): Assume that freetype_font_cache is already
24103 initialized.
24104 (ftfont_list): Handle the case that a file is specified in font
24105 name. Use ftfont_pattern_entity to generate entities.
24106 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24107 (syms_of_ftfont): Initialize freetype_font_cache.
24108
24109 * xftfont.c (xftfont_open): Make the font name fontconfig's
24110 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24111 (xftfont_close): Free font->font.name if not NULL.
24112
24113 * xfont.c (xfont_list): If script is specified for a font, return
24114 null_vector.
24115 (xfont_list_family): Declare argument type.
24116
24117 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24118 name, set LFACE_FONT (lface) to nil.
24119
24120 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24121 return Qnil.
24122
241232008-02-01 Kenichi Handa <handa@m17n.org>
24124
24125 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24126 (standard_args): Add "-enable-font-backend".
24127
241282008-02-01 Kenichi Handa <handa@m17n.org>
24129
24130 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24131 (struct xftdraw_list, xftdraw_list): Delete them.
24132 (register_xftdraw, check_xftdraw): Delete them.
24133 (xftfont_prepare_face): Don't call register_xftdraw.
24134 (xftfont_done_face): Don't call check_xftdraw.
24135 (xftfont_draw): Get background color only when with_background is
24136 nonzero.
24137
24138 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24139
241402008-02-01 Kenichi Handa <handa@m17n.org>
24141
24142 These changes are for the new font handling codes.
24143
24144 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24145 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24146 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24147 (FONTSRC, FONTOBJ): New variables.
24148 (obj): Add $(FONTOBJ).
24149 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24150 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24151 @LIBOTF_LIBS@.
24152 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24153 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24154
24155 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24156
24157 * character.h (Vscript_representative_chars): Extern it.
24158
24159 * character.c (Vscript_representative_chars): New variable.
24160 (syms_of_character): Declare it as a Lisp variable.
24161
24162 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24163 enable_font_backend is nonzero, accept the composition method
24164 COMPOSITION_WITH_GLYPH_STRING.
24165
24166 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24167 enumeration COMPOSITION_WITH_GLYPH_STRING.
24168
24169 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24170 members clip_x, clip_y, clip_width, and clip_height.
24171 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24172
24173 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24174 --enable-font-backend. Call syms_of_font.
24175
24176 * fns.c (assoc_no_quit): New function.
24177
24178 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24179 (face_for_font, new_fontset_from_font)
24180 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24181
24182 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24183 (fontset_font, fontset_ascii, face_for_char)
24184 (make_fontset_for_ascii_face, Ffont_info)
24185 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24186 is nonzero, use font-backend mechanism.
24187 (find_font_encoding): Make it non-static.
24188 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24189 New functions.
24190
24191 * frame.h (struct frame): New members resx and resy.
24192 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24193 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24194
24195 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24196 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24197
24198 * lisp.h (assoc_no_quit): Extern it.
24199
24200 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24201 Through out the file, use FONT_INFO_FROM_FACE instead of
24202 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24203 rif->per_char_metric.
24204 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24205 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24206 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24207 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24208 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24209 nonzero, use font-backend mechanism.
24210 (get_per_char_metric): New function.
24211
24212 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24213 (set_lface_from_font_name)
24214 (set_font_frame_param, free_realized_face)
24215 (prepare_face_for_display, clear_face_gcs)
24216 (Finternal_set_font_selection_order, realize_x_face)
24217 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24218 font-backend mechanism.
24219 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24220 (load_face_font) [USE_FONT_BACKEND]: Abort.
24221 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24222 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24223
24224 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24225 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24226 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
24227 nonzero, register all available font drivers.
24228 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
24229 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24230
24231 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24232 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24233 (x_set_glyph_string_clipping_exactly)
24234 (x_compute_glyph_string_overhangs)
24235 (x_draw_glyph_string_foreground)
24236 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24237 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24238 enable_font_backend is nonzero, use font-backend mechanism.
24239 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24240
242412008-02-01 Kenichi Handa <handa@m17n.org>
24242
24243 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24244 system_eol_type.
24245 (syms_of_coding): Initialize system_eol_type.
24246
24247 * process.c (Fset_process_coding_system): Inherit system's eol
24248 format if necessary.
24249
242502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24251
24252 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24253
242542008-02-01 Kenichi Handa <handa@m17n.org>
24255
24256 * coding.c (decode_eol): Pay attention to buffer relocation in
24257 del_range_2.
24258 (decode_coding): Call decode_eol before restoring undo_list.
24259
242602008-02-01 Kenichi Handa <handa@m17n.org>
24261
24262 * charset.c (Fdefine_charset_internal): Fix setting of
24263 emacs_mule_bytes.
24264
242652008-02-01 Kenichi Handa <handa@m17n.org>
24266
24267 * keyboard.c (read_char): Check if C is a character or not before
24268 looking up Vkeyboard_translate_table.
24269
242702008-02-01 Kenichi Handa <handa@m17n.org>
24271
bba3e508
SM
24272 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24273 Fix condition to terminate the loop.
aac0c6e3
MR
24274
242752008-02-01 Kenichi Handa <handa@m17n.org>
24276
24277 * coding.c (produce_composition): Compare charbuf[i] instead of
24278 args[i] against 0.
24279 (Fterminal_coding_system): Use EQ to compare Lisp objects.
24280
242812008-02-01 Kenichi Handa <handa@m17n.org>
24282
24283 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
24284 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
24285 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
24286 detect_coding.
24287 (emacs_mule_char): Handle old style (Emacs 20) component character
24288 of a composition.
24289 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
24290 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
24291 composition rule.
24292 (decode_coding_emacs_mule): Handle invalid bytes correctly.
24293
242942008-02-01 Kenichi Handa <handa@m17n.org>
24295
24296 * coding.c (encode_coding_ccl): Allocate destination dynamically
24297 when necessary.
24298
242992008-02-01 Kenichi Handa <handa@m17n.org>
24300
24301 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
24302 the loop. When quitted, show a proper error message.
24303
243042008-02-01 Kenichi Handa <handa@m17n.org>
24305
bba3e508
SM
24306 * xterm.c (x_set_glyph_string_clipping_exactly):
24307 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
24308
24309 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
24310 character sequence.
24311 (Fccl_execute_on_string): Use ASET, not XSET.
24312
243132008-02-01 Kenichi Handa <handa@m17n.org>
24314
24315 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
24316
243172008-02-01 Kenichi Handa <handa@m17n.org>
24318
24319 * coding.c (decode_coding): Fix the condition of terminating the
24320 decoding loop.
24321
243222008-02-01 Kenichi Handa <handa@m17n.org>
24323
24324 * data.c (Faset): On setting a character bigger than 255 in a
24325 unibyte string, signal an error instead of make the string multibyte.
24326
243272008-02-01 Kenichi Handa <handa@m17n.org>
24328
24329 * charset.c (map_charset_chars): Fix for ascii-compatible charset
24330 made by a mapping table.
24331
243322008-02-01 Kenichi Handa <handa@m17n.org>
24333
24334 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
24335 not.
24336 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
24337 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
24338
bba3e508
SM
24339 * xterm.c (x_draw_composite_glyph_string_foreground):
24340 Check s->face is NULL or not.
aac0c6e3
MR
24341
243422008-02-01 Kenichi Handa <handa@m17n.org>
24343
24344 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
24345 (x_draw_glyph_string): Fix drawing of right_overhang and
24346 left_overhang around/on cursor.
24347
24348 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
24349
243502008-02-01 Kenichi Handa <handa@m17n.org>
24351
24352 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
24353
243542008-02-01 Kenichi Handa <handa@m17n.org>
24355
24356 * coding.c (Fdefine_coding_system_internal)
24357 (Fdefine_coding_system_alias): Avoid a duplicated element in
24358 Vcoding_system_alist.
24359
243602008-02-01 Kenichi Handa <handa@m17n.org>
24361
24362 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
24363
24364 * coding.c (Qcoding_system_define_form): New variable.
24365 (syms_of_coding): Intern and staticpro it.
24366 (Fcoding_system_p): Check Qcoding_system_define_form.
24367 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
24368
24369 * coding.h (CODING_SYSTEM_P): If ID is not available, call
24370 Fcoding_system_p.
24371 (CHECK_CODING_SYSTEM): If ID is not available, call
24372 Fcheck_coding_system.
24373 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
24374 Try also Fcheck_coding_system.
24375
243762008-02-01 Kenichi Handa <handa@m17n.org>
24377
24378 * coding.c (code_conversion_restore): GCPRO arg.
24379
243802008-02-01 Kenichi Handa <handa@m17n.org>
24381
24382 * character.c (lisp_string_width): Check multibyteness of STRING.
24383
243842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24385
24386 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
24387 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
24388 (decode_mac_font_name): Use decode_coding_c_string instead of
24389 decode_coding.
bba3e508
SM
24390 (x_load_font): Initialize fontp->fontset to -1.
24391 Set fontp->encoding_type.
aac0c6e3
MR
24392
243932008-02-01 Kenichi Handa <handa@m17n.org>
24394
24395 * search.c (search_buffer): Give up BM search on case-fold-search
24396 if one of a target character has a case-equivalence of different
3b59c351 24397 byte length even if that target character is an ASCII.
aac0c6e3
MR
24398 (simple_search): Fix calculation of byte length of matched text.
24399 (boyer_moore): Fix handling of case-equivalent multibyte characters.
24400
244012008-02-01 Kenichi Handa <handa@m17n.org>
24402
24403 * coding.c (decode_coding): Fix handling of invalid bytes.
24404
244052008-02-01 Kenichi Handa <handa@m17n.org>
24406
24407 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
24408 Unicode characters.
24409
244102008-02-01 Kenichi Handa <handa@m17n.org>
24411
24412 * coding.c (encode_coding_object): If a pre-write-conversion
24413 function makes a new buffer, kill it.
24414
244152008-02-01 Kenichi Handa <handa@m17n.org>
24416
24417 * coding.c (QCascii_compatible_p): New variable.
24418 (syms_of_coding): Initialize it.
24419 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
24420 calling string_char.
24421 (record_conversion_result): Add `default:' case.
24422 (coding_charset_list): Delete unused variable `coding_type'.
24423 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
24424 property in the plist of the coding system.
24425 (Fcoding_system_put): Check QCascii_compatible_p.
24426
244272008-02-01 Miles Bader <miles@gnu.org>
24428
24429 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
24430 removed calculation of frame `f', as it's now used.
24431
244322008-02-01 Kenichi Handa <handa@m17n.org>
24433
24434 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
24435 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
24436 (UNIDATA): New variable.
24437 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
24438 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
24439 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
24440
244412008-02-01 Kenichi Handa <handa@m17n.org>
24442
24443 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
24444 (admindir): New variable.
24445 ($(lispsource)international/charprop.el): New target.
24446
244472008-02-01 Miles Bader <miles@gnu.org>
24448
24449 * character.c (chars-in-region): Remove obsolete function.
24450 (syms_of_character): Remove its initialization.
24451
244522008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24453
24454 * w32select.c (validate_coding_system)
24455 (setup_windows_coding_system): New functions.
bba3e508
SM
24456 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24457 Use setup_windows_coding_system.
24458 (setup_config, Fw32_get_clipboard_data):
24459 Use validate_coding_system.
aac0c6e3
MR
24460 (Fx_selection_exists): Move call to setup_config to a place
24461 where signals are allowed.
24462
24463 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24464 (Fcheck_coding_system): Add declarations.
24465
244662008-02-01 Kenichi Handa <handa@m17n.org>
24467
24468 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24469
244702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24471
24472 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24473 string as the second argument for x_new_fontset.
24474
244752008-02-01 Kenichi Handa <handa@m17n.org>
24476
24477 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24478 (encode_coding_object): Use safe_call instead of call2.
24479
244802008-02-01 Kenichi Handa <handa@m17n.org>
24481
24482 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24483
24484 * Makefile.in (lisp): Include charprop.el.
24485
244862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24487
24488 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24489 Not sure if it's unnecessary.
24490
244912008-02-01 Steven Tamm <steventamm@mac.com>
24492
24493 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24494 some possibly unnecessary fontset checking code that crashed
24495 when creating a new frame.
24496
244972008-02-01 Kenichi Handa <handa@m17n.org>
24498
24499 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24500 lookup_face.
24501
24502 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24503
24504 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24505
245062008-02-01 Kenichi Handa <handa@m17n.org>
24507
24508 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24509 (coding_charset_list): New function.
24510
24511 * coding.h (coding_charset_list): Extern it.
24512
245132008-02-01 Kenichi Handa <handa@m17n.org>
24514
24515 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24516 concatenation of family and registry.
24517
245182008-02-01 Kenichi Handa <handa@m17n.org>
24519
24520 * character.h (BYTE8_STRING): Fix typo.
24521
24522 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24523 string to multibyte (sync to HEAD).
24524
24525 * casefiddle.c (casify_region): Handle changes in byte-length
24526 using replace_range_2 (sync to HEAD).
24527
245282008-02-01 Andreas Schwab <schwab@suse.de>
24529
24530 * chartab.c (map_char_table): GCPRO table and arg.
24531
245322008-02-01 Kenichi Handa <handa@m17n.org>
24533
24534 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24535 already at limit.
24536
245372008-02-01 Kenichi Handa <handa@m17n.org>
24538
24539 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24540 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24541 (find_font_encoding): Change argument to Lisp_Object.
24542 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24543 fast_c_string_match_ignore_case. Change caller.
24544
245452008-02-01 Kenichi Handa <handa@m17n.org>
24546
24547 * xdisp.c (get_next_display_element): In unibyte case, decide to
24548 display in octal form by checking a character by
24549 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24550
24551 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24552
24553 * character.c (unibyte_has_multibyte_table): New variable.
24554
24555 * character.h (unibyte_has_multibyte_table): Extern it.
24556 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24557
245582008-02-01 Kenichi Handa <handa@m17n.org>
24559
24560 * coding.c (encode_coding_iso_2022): Fix handling of charset
24561 annotation.
24562
245632008-02-01 Kenichi Handa <handa@m17n.org>
24564
24565 * coding.c (setup_coding_system): If coding_system is nil, use
24566 Qundecided.
24567 (Fterminal_coding_system): Return nil if terminal coding system is
24568 `undecided'.
bba3e508
SM
24569 (syms_of_coding): Define coding-system `undecided' here.
24570 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24571
245722008-02-01 Kenichi Handa <handa@m17n.org>
24573
bba3e508
SM
24574 * xdisp.c (message_dolog, set_message_1):
24575 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24576
24577 * lread.c (read1): Fix reading of a char-table.
24578
24579 * print.c (print_object): Include sub char-table in circularities
24580 detection.
24581
245822008-02-01 Kenichi Handa <handa@m17n.org>
24583
24584 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24585 Append the found sequences in car of ARGS instead of prepending.
24586
245872008-02-01 Kenichi Handa <handa@m17n.org>
24588
24589 * fileio.c (report_file_error): Make a unibyte string from
24590 strerror (errorno).
24591 (Fsubstitute_in_file_name): Fix the arg to
24592 unibyte_char_to_multibyte. It is evaluated twice.
24593
245942008-02-01 Kenichi Handa <handa@m17n.org>
24595
24596 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24597
245982008-02-01 Kenichi Handa <handa@m17n.org>
24599
24600 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24601 BOM is not found.
24602 (detect_coding, detect_coding_system): Optimization for ISO-2022
24603 when no 8-bit data is found.
24604
246052008-02-01 Jason Rumney <jasonr@gnu.org>
24606
24607 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24608
246092008-02-01 Kenichi Handa <handa@m17n.org>
24610
24611 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24612 CHARS.
24613
246142008-02-01 Steven Tamm <steventamm@mac.com>
24615
24616 * macterm.c (mac_encode_char): Add charset argument and update
24617 to use encoding_type.
24618 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24619 switch to pure fontset.
24620 (decode_mac_font_name): Temporarily remove decoding.
24621 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24622 (x_load_font): Temporarily remove encoding.
24623
246242008-02-01 Kenichi Handa <handa@m17n.org>
24625
24626 * xfaces.c (Fface_font): If frame is not on a window system,
24627 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24628 refer to face->font.
24629 (split_font_name_into_vector, build_font_name_from_vector)
24630 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24631 when HAVE_WINDOW_SYSTEM is defined.
24632
246332008-02-01 Kenichi Handa <handa@m17n.org>
24634
24635 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24636 (x_produce_glyphs): Fix setting of members of cmp in case
24637 cmp->glyph_len is zero.
24638
24639 * fontset.c (Fset_fontset_font): Fix docstring.
24640 (Ffontset_info): Make it backward compatible. New arg ALL.
24641
246422008-02-01 Kim F. Storm <storm@cua.dk>
24643
24644 * process.c (read_process_output): Grow decoding_buf when needed;
24645 this could cause a crash in allocate_string and compact_small_strings.
24646
246472008-02-01 Kenichi Handa <handa@m17n.org>
24648
24649 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24650
246512008-02-01 Kenichi Handa <handa@m17n.org>
24652
24653 * coding.c (setup_coding_system): Set coding->common_flags
24654 correctly for raw-text.
24655 (consume_chars): On encoding unibyte text by raw-text, don't check
24656 multibyte form.
24657 (encode_coding): On encoding by raw-text, never use translation tables.
24658
24659 * fileio.c (e_write): Short cut for the case of no encoding.
24660
246612008-02-01 Kenichi Handa <handa@m17n.org>
24662
24663 * coding.c (detect_coding, detect_coding_system): Delete unused
24664 variables.
24665
246662008-02-01 Kenichi Handa <handa@m17n.org>
24667
24668 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24669 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24670
246712008-02-01 Kenichi Handa <handa@m17n.org>
24672
bba3e508
SM
24673 * coding.c (Ffind_coding_systems_region_internal):
24674 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24675
246762008-02-01 Kenichi Handa <handa@m17n.org>
24677
24678 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24679 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24680 FONT_DEF.
24681 (font_def_arg, add_arg, from_arg, to_arg): New args.
24682 (set_fontset_font): Change argument.
24683 (Fset_fontset_font): Fix for the case that TARGET is a script
24684 name and charset name.
24685 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24686
246872008-02-01 Kenichi Handa <handa@m17n.org>
24688
24689 * fontset.c (fontset_font): Rename from fontset_face. Change return
24690 value.
24691 (face_suitable_for_char_p, face_for_char): Adjust for the change
24692 of fontset_font.
24693 (make_fontset_for_ascii_face): Fix setting of the fontset element
24694 for ASCII.
24695 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24696 to get a font name.
24697 (Ffontset_info): Adjust for the change of fontset_font.
24698
24699 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24700
24701 * character.h (LEADING_CODE_LATIN_1_MIN)
24702 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24703
247042008-02-01 Kenichi Handa <handa@m17n.org>
24705
24706 * editfns.c (check_translation): New function.
24707 (Ftranslate_region_internal): Handle M:N mapping.
24708
247092008-02-01 Kenichi Handa <handa@m17n.org>
24710
24711 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24712
247132008-02-01 Kenichi Handa <handa@m17n.org>
24714
24715 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24716 goto invalid_code.
24717 (decode_coding_iso_2022): Fix handling of invalid designation.
24718
24719 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24720 after calling code_conversion_save.
24721
247222008-02-01 Kenichi Handa <handa@m17n.org>
24723
24724 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24725
24726 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24727
24728 * fontset.c: Include "intervals.h".
24729 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24730 (free_face_fontset, new_fontset_from_font_name):
24731 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24732
24733 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24734
24735 * coding.c: Add many prototypes for static functions.
24736 (get_translation_table): Allow max_lookup to be NULL.
24737 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24738 (Funencodable_char_position, Fcheck_coding_systems_region):
24739 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24740
247412008-02-01 Kenichi Handa <handa@m17n.org>
24742
24743 * coding.c (get_translation_table): Declare it as Lisp_Object.
24744 (LOOKUP_TRANSLATION_TABLE): New macro.
24745 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24746 instead of CHAR_TABLE_REF.
24747
247482008-02-01 Kenichi Handa <handa@m17n.org>
24749
24750 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24751 annotation data format.
24752 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24753 Change arguments FROM and TO to single argument NCHARS. Change caller.
24754 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24755 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24756 (decode_coding_ccl, decode_coding_charset): Pay attention to
24757 coding->charbuf_used.
24758 (get_translation): New function.
24759 (produce_chars): New arguments translation_table and last_block.
24760 Translate characters here. Return number of carryover chars.
24761 Change caller.
24762 (produce_composition): New argument pos. Change caller.
24763 Adjust for the change of annotation data format.
24764 (produce_charset, produce_annotation): Likewise.
24765 (decode_coding, encode_coding): Don't call translate_chars.
24766 (consume_chars): New arg translation_table. Change caller.
24767 (translate_chars): Delete.
24768 (syms_of_coding): Make translation-table's number of extra slots 2.
24769
247702008-02-01 Kenichi Handa <handa@m17n.org>
24771
24772 * search.c (simple_search): Fix setting this_pos_byte in backward
24773 search.
24774
24775 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24776 byte sequence.
24777 (detect_coding_ccl): Fix setting of the variable valids.
24778
247792008-02-01 Kenichi Handa <handa@m17n.org>
24780
24781 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24782
24783 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24784
24785 * editfns.c (Ftranslate_region_internal): Rename from
24786 Ftranslate_region. Accept a char-table in TABLE.
24787 (syms_of_editfns): Defsubr Stranslate_region_internal.
24788
24789 * xfaces.c (set_lface_from_font_name): If a font is specified for
24790 a frame, generate a fontset from the font.
24791 (build_scalable_font_name): If the scalable font is requested for
24792 a specific size, don't change that size.
24793 (try_font_list): Try a scalable font also in the case that a
24794 pattern string is specified.
24795
247962008-02-01 Kenichi Handa <handa@m17n.org>
24797
24798 * xfaces.c (Fface_font): New optional arg CHARACTER.
24799
248002008-02-01 Kenichi Handa <handa@m17n.org>
24801
24802 * charset.h (CHARSET_OFFSET): New macro.
24803
248042008-02-01 Kenichi Handa <handa@m17n.org>
24805
24806 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24807
24808 * fontset.c (fontset_face): Handle the case that repertory is a
24809 char-table.
24810 (find_font_encoding): Return nil for unknown encoding.
24811 (Fset_fontset_font): Ignore a font of unknown encoding.
24812
248132008-02-01 Kenichi Handa <handa@m17n.org>
24814
24815 * keymap.c (describe_vector): Handle default value of a char table.
24816
24817 * fontset.c (fontset_face): Handle fallback fonts correctly.
24818 (Ffontset_info): Return infomation about fallback fonts.
24819
248202008-02-01 Kenichi Handa <handa@m17n.org>
24821
24822 * fontset.c (FONTSET_DEFAULT): New macro.
24823 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24824 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24825 the case that it is nil.
24826 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24827 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24828
24829 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24830 subset or superset.
24831
248322008-02-01 Kenichi Handa <handa@m17n.org>
24833
24834 * emacs.c (main): Call init_charset after syms_of_XXX.
24835
24836 * charset.c (Vcharset_map_directory): Delete.
24837 (Vcharset_map_path): New variable.
24838 (load_charset_map_from_file): Use Vcharset_map_path instead.
24839 (init_charset): Initialize Vcharset_map_path.
24840 (syms_of_charset): Delete declaration of "charset-map-directory",
24841 add declaration of "charset-map-path".
24842
248432008-02-01 Kenichi Handa <handa@m17n.org>
24844
24845 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24846 ASCII only string.
24847
24848 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24849
24850 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24851 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24852
248532008-02-01 Kenichi Handa <handa@m17n.org>
24854
24855 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24856
24857 * coding.c (QCmnemonic, QCdefalut_char)
24858 (QCdecode_translation_table, QCencode_translation_table)
24859 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24860 (get_translation_table): Return a list of translation tables if
24861 necessary.
24862 (decode_coding): Call get_translation_table with ENCODEP 0.
24863 (char_encodable_p): If translation_table is non-nil, always call
24864 translate_char.
24865 (Fdefine_coding_system_internal): Accept list of translation
24866 tables as :encode-translation-table and :decode-translation-table.
24867 (Fcoding_system_put): New function.
bba3e508
SM
24868 (syms_of_coding): Declare new symbols.
24869 Defsubr Scoding_system_put.
aac0c6e3
MR
24870 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24871 typically JISX0212.
24872
24873 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24874 when the charset is superset type.
24875
24876 * character.c (translate_char): Accept list of translation tables.
24877
248782008-02-01 Kenichi Handa <handa@m17n.org>
24879
24880 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24881 (CODING_ATTR_TRANS_TBL): New macro.
24882
24883 * coding.c (get_translation_table): New function.
24884 (translate_chars): Fix the bug of skipping annotation data.
24885 (decode_coding, encode_coding): Utilize get_translation_table.
24886 (char_encodable_p, Funencodable_char_position): Translate char if
24887 necessary.
24888 (Ffind_coding_systems_region_internal)
24889 (Fcheck_coding_systems_region): Setup translation table for encode
24890 in a coding system attribute vector in advance.
24891 (Fdefine_coding_system_internal): Allow a symbol as translation
24892 table. For shift-jis type coding system, allow 4th charset.
24893
248942008-02-01 Kenichi Handa <handa@m17n.org>
24895
24896 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24897
24898 * xdisp.c (get_next_display_element): Pass -1 as POS to
24899 FACE_FOR_CHAR if displaying a C-string.
24900
249012008-02-01 Kenichi Handa <handa@m17n.org>
24902
24903 * composite.c (get_composition_id): Handle xoff and yoff in a
24904 composition rule.
24905
24906 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24907 (struct composition): New member lbearing and rbearing.
24908
24909 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24910 (x_get_glyph_overhangs): Handle a composition glyph.
24911 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24912
24913 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24914 composition glyph.
24915
249162008-02-01 Kenichi Handa <handa@m17n.org>
24917
24918 * print.c: Include charset.h.
24919 (Vprint_charset_text_property): New variable.
24920 (Qdefault): Extern it.
24921 (PRINT_STRING_NON_CHARSET_FOUND)
24922 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24923 (print_check_string_result): New variable.
24924 (print_check_string_charset_prop): New function.
24925 (print_prune_charset_plist): New variable.
24926 (print_prune_string_charset): New function.
24927 (print_object): Call print_prune_string_charset if
24928 Vprint_charset_text_property is not t.
24929 (print_interval): Print nothing if interval->plist is nil.
24930 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24931 variable. Init and staticpro print_prune_charset_plist.
24932
249332008-02-01 Kenichi Handa <handa@m17n.org>
24934
24935 * fontset.c (new_fontset_from_font_name): Use the specified font
24936 for all characters in the new fontset.
24937
24938 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24939 OBJECT args.
24940
24941 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24942 OBJECT args for composition too.
24943
24944 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24945 OBJECT args.
24946
249472008-02-01 Kenichi Handa <handa@m17n.org>
24948
24949 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24950
24951 * fontset.c (reorder_font_vector): Adjust for the change of
24952 FONT_DEF format.
24953 (fontset_face): New arg id. Change caller.
24954 (face_for_char): New args pos and object.
24955 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24956 (fs_query_fontset): Check NAME by Fassoc too.
24957 (Fset_fontset_font): Allow non-XLFD font name.
24958 (Ffontset_info): Adjust for the change of FONT_DEF format.
24959
24960 * fontset.h (face_for_char): Adjust prototype.
24961
24962 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24963 (append_space, extend_face_to_end_of_line)
24964 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24965 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24966
24967 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24968 POS and OBJECT args.
24969
24970 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24971 POS and OBJECT args.
24972
249732008-02-01 Jason Rumney <jasonr@gnu.org>
24974
24975 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24976 of GlobalAlloc'ed memory.
24977
249782008-02-01 Kenichi Handa <handa@m17n.org>
24979
24980 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24981
24982 * charset.h (charset_table_used): Delete extern.
24983
24984 * charset.c (charset_table_used): Make it static.
24985 (map_charset_chars): Fix args to c_function with.
24986
24987 * chartab.c (map_sub_char_table_for_charset): Fix args to
24988 c_function with.
24989
bba3e508
SM
24990 * coding.h (enum coding_result_code):
24991 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24992
24993 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24994 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24995 (Vlast_code_conversion_error): New variables.
24996 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24997 (ONE_MORE_BYTE): Record error if any instead of signaling an
24998 error. If non-ASCII multibyte char is found, return the negative
24999 value of the code. All callers changed to check it.
25000 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25001 (record_conversion_result): New function. Change all codes setting
25002 coding->result to call this function.
25003 (detect_coding_utf_8, decode_coding_utf_8)
25004 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25005 Don't use the local variable incomplete.
25006 (emacs_mule_char): Change the second arg to `const'.
25007 (decode_coding): Fix of flushing out unprocessed data.
25008 (make_conversion_work_buffer): Fix making of a work buffer.
25009 (decode_coding_object): Return coding->dst_object.
25010
25011 * fontset.c (set_fontset_font): Fix args.
25012
25013 * lisp.h (CHARACTERBITS): Define as 22.
25014
25015 * process.c (send_process): Be sure to set coding->src_multibyte.
25016
25017 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25018
250192008-02-01 Kenichi Handa <handa@m17n.org>
25020
25021 * xdisp.c (handle_auto_composed_prop): Give limit to
25022 Fnext_single_char_property_change.
25023
250242008-02-01 Kenichi Handa <handa@m17n.org>
25025
25026 * composite.c (syms_of_composite): Don't make the composition hash
25027 table weak.
25028
25029 * fontset.c (Fset_fontset_font): Fix docstring.
25030
25031 * lisp.h (detect_coding_system): Adjust prototype.
25032
25033 * fileio.c (kill_workbuf_unwind): Delete this function.
25034 (Finsert_file_contents): Adjust the call of detect_coding_system.
25035 Get conversion_buffer by code_conversion_save. Use the macro
25036 CODING_MAY_REQUIRE_DECODING. After decoding, update
25037 coding_system.
25038
25039 * coding.h (make_conversion_work_buffer): Delete extern.
25040 (code_conversion_save): Extern it.
25041
25042 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25043 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25044 (decode_coding_utf_8): Don't do eol converion.
25045 (detect_coding_utf_16): Check coding->src_chars, not
25046 coding->src_bytes. Add heuristics for those that have no signature.
25047 (decode_coding_emacs_mule, decode_coding_iso_2022)
25048 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25049 Don't do eol converion.
25050 (adjust_coding_eol_type): Return a new coding system.
25051 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25052 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25053 each change.
25054 (decode_coding): Pay attention to undo_list. Do eol conversion for
25055 all types of coding-systems (if necessary).
25056 (Vcode_conversion_work_buf_list): Delete it.
25057 (Vcode_conversion_reused_workbuf): Rename from
25058 Vcode_conversion_reused_work_buf.
25059 (Vcode_conversion_workbuf_name): New variable.
25060 (reused_workbuf_in_use): New variable.
25061 (make_conversion_work_buffer): Delete the arg DEPTH.
25062 (code_conversion_restore): Change argument to cons.
25063 (code_conversion_save): Delete the argument BUFFER. Change callers.
25064 (detect_coding_system): New argument src_chars. Change callers.
25065 Fix for utf-16 detection.
25066 (init_coding_once): Don't use ISO_carriage_return.
25067 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25068 reused_workbuf_in_use.
25069
250702008-02-01 Kenichi Handa <handa@m17n.org>
25071
25072 * keymap.c (store_in_keymap): Pay attention to the case that idx
25073 is a cons specifying a character range.
25074
250752008-02-01 Kenichi Handa <handa@m17n.org>
25076
25077 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25078 HANDLED_RECOMPUTE_PROPS.
25079
25080 * coding.c (Fdefine_coding_system_internal): Fix checking of
25081 ascii compatibility.
25082
250832008-02-01 Kenichi Handa <handa@m17n.org>
25084
25085 * charset.c (find_charsets_in_text): Delete unused locale variable.
25086 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25087
25088 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25089 Resync charset_list to Vemacs_mule_charset_list.
25090
25091 * keymap.c (store_in_keymap): Pay attention to the case that idx
25092 is a cons specifying a character range.
25093
250942008-02-01 Kenichi Handa <handa@m17n.org>
25095
25096 * composite.c (update_compositions): Bind inhibit-read-only, etc
25097 to t before calling remove-list-of-text-properties.
25098
25099 * print.c (print_object): Always print ASCII chars as is.
25100
251012008-02-01 Kenichi Handa <handa@m17n.org>
25102
25103 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25104
25105 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25106 is a char table.
25107
251082008-02-01 Kenichi Handa <handa@m17n.org>
25109
25110 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25111
251122008-02-01 Kenichi Handa <handa@m17n.org>
25113
25114 * xfaces.c (set_lface_from_font_name): Fix for the case that
25115 FONTNAME is not fontset name.
25116
251172008-02-01 Kenichi Handa <handa@m17n.org>
25118
25119 * fns.c (base64_encode_1): Fix previous change.
25120
251212008-02-01 Kenichi Handa <handa@m17n.org>
25122
25123 * fontset.c (set_fontset_font): New function.
25124 (Fset_fontset_font): If a font is specified for a charset, use
25125 map_charset_chars to store the font spec in a fontset.
25126
251272008-02-01 Kenichi Handa <handa@m17n.org>
25128
25129 * fontset.c (fontset_face): Create a fallback fontset on demand.
25130 (make_fontset): Don't create a fallback fontset here.
25131 (free_face_fontset): Free a fallback fontset (if any) too.
25132 (n_auto_fontsets): Delete this variable.
25133 (auto_fontset_alist): New variable.
25134 (new_fontset_from_font_name): Check auto_fontset_alist.
25135 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25136 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25137 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25138 Defsubr Sfontset_list_all.
25139
251402008-02-01 Kenichi Handa <handa@m17n.org>
25141
25142 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25143
251442008-02-01 Kenichi Handa <handa@m17n.org>
25145
25146 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25147
251482008-02-01 Kenichi Handa <handa@m17n.org>
25149
25150 * editfns.c (Fgoto_char): Fix docstring.
25151
251522008-02-01 Kenichi Handa <handa@m17n.org>
25153
25154 * insdel.c (insert_from_gap): Adjust intervals correctly.
25155
251562008-02-01 Jason Rumney <jasonr@gnu.org>
25157
25158 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25159 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25160 (w32_initialize): Try to load it.
25161 (x_get_font_repertory): Use it if available.
25162 (w32_encode_char): Add shortcut for unicode output.
25163
25164 * w32fns.c (w32_load_system_font): Default charset to -1.
25165 (x_to_w32_charset): Match all fonts for unicode.
25166 (w32_to_x_charset): New parameter matching. Don't return partial
25167 or wildcard charsets.
25168 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25169 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25170 (w32_to_x_font): Match charset to real charset.
25171 (enum_font_cb2): Always list unicode versions.
25172
25173 * makefile.w32-in (temacs): Increase EMHEAP.
25174
251752008-02-01 Jason Rumney <jasonr@gnu.org>
25176
25177 * w32term.c (w32_encode_char): New charset parameter.
25178 font_info.encoding becomes encoding_type.
25179 (x_get_font_repertory): New function. Warning: stub only!
25180 (x_new_font): Return quickly if font already set.
25181 (x_new_fontset): fontsetname parameter is Lisp_Object.
25182 Use new fs_query_fontset. Try new_fontset_from_font_name.
25183 Use fontset_name for return value.
25184
25185 * w32term.h: Declare x_get_font_repertory.
25186
25187 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25188 place of find_charset_in_text. Use encode_coding_object in place
25189 of encode_coding.
25190 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25191 decode_coding.
25192
25193 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25194 of x_new_fontset.
25195 (w32_load_system_font): Initialize charset as unicode.
25196 font_info.encoding becomes encoding_type.
25197 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25198 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25199 (syms_of_w32fns): Set get_font_repertory_func.
25200
25201 * w32console.c: Include character.h. Use terminal_encode_buffer
25202 from term.c.
bba3e508
SM
25203 (write_glyphs): Use new version of encode_terminal_code.
25204 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
25205
25206 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25207 encoding becomes encoding_type.
25208
25209 * term.c (terminal_encode_buffer): Make externally visible.
25210
25211 * makefile.w32-in: Add character.h dependancies.
25212 (character.o, chartab.o): New targets.
25213
252142008-02-01 Kenichi Handa <handa@m17n.org>
25215
25216 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25217 CODING_ID_EOL_TYPE.
25218
252192008-02-01 Andreas Schwab <schwab@suse.de>
25220
25221 * coding.c (produce_chars): Revert last change.
25222
252232008-02-01 Kenichi Handa <handa@m17n.org>
25224
25225 * charset.h (charset_unicode): Extern it.
25226
25227 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
25228 (find_charsets_in_text): Change format of the arc CHARSETS.
25229 New arg MULTIBYTE.
aac0c6e3
MR
25230 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25231 change of find_charsets_in_text.
25232 (Fsplit_char): Fix doc. Never return unknown.
25233
25234 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25235
bba3e508
SM
25236 * coding.c (Fdefine_coding_system_alias):
25237 Update Vcoding_system_list.
aac0c6e3
MR
25238
25239 * fontset.c (load_font_get_repertory): Pay attention to the case
25240 that ENCODING of a font is specified by a char-table.
25241
25242 * xterm.c (x_get_font_repertory): Handle the case that the
25243 encoding of font is other than Unicode.
25244
252452008-02-01 Kenichi Handa <handa@m17n.org>
25246
bba3e508
SM
25247 * term.c (encode_terminal_code): Don't handle glyph-table.
25248 Check if a character is encodable by the terminal coding system.
25249 If not, produces proper number of `?'s. Update
aac0c6e3
MR
25250 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25251 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25252
252532008-02-01 Kenichi Handa <handa@m17n.org>
25254
bba3e508
SM
25255 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25256 New variables.
aac0c6e3
MR
25257 (encode_terminal_code): Change argument. Encode multiple
25258 characters at once. Store the result of encoding in
25259 terminal_encode_buffer.
25260 (write_glyphs, insert_glyphs): Adjust for the change of
25261 encode_terminal_code.
25262 (term_init): Initialize terminal_encode_buffer and
25263 terminal_encode_buf_size.
25264
25265 * coding.c (consume_chars): If coding->src_object is nil, don't
25266 check annotation.
25267
252682008-02-01 Kenichi Handa <handa@m17n.org>
25269
25270 * character.c (char_string): Use ASCII_CHAR_P instead of
25271 SINGLE_BYTE_CHAR_P.
25272
252732008-02-01 Kenichi Handa <handa@m17n.org>
25274
25275 * xdisp.c (handle_auto_composed_prop): Check if the last
25276 characters of auto-composed region is newly composed with the
25277 following characters.
25278 (handle_composition_prop): Fix checking of point being inside
25279 composition.
25280
252812008-02-01 Kenichi Handa <handa@m17n.org>
25282
25283 * fns.c (concat): Don't change multibyteness of the result by
25284 concatenating an 8-bit character.
25285
25286 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
25287 multibyteness of the result when newelt is an 8-bit character.
25288
252892008-02-01 Dave Love <fx@gnu.org>
25290
25291 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
25292 EMACS_INT.
25293
25294 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
25295
25296 * xfaces.c (face_numeric_value): Declare dim size_t.
25297 (Finternal_lisp_face_equal_p): Remove unused f.
25298
25299 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
25300 (MATRIX_ROW): Remove unused vars.
25301 (draw_glyphs, x_insert_glyphs, fast_find_position)
25302 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
25303 byte/char counts.
25304
25305 * regex.c (regex_compile): Remove unused var.
25306
25307 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25308
25309 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
25310 (Faccessible_keymaps, where_is_internal): Remove unused vars.
25311
25312 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
25313
25314 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
25315
25316 * fileio.c (Fwrite_region): Remove unused var.
25317
25318 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
25319 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
25320
25321 * composite.c (Fremove_list_of_text_properties): Declare.
25322
25323 * coding.c (inhibit_pre_post_conversion): Remove (unused).
25324 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
25325 (coding_inherit_eol_type): Remove unused attrs.
25326 (detect_coding): Cast arg of detect_eol.
25327
25328 * charset.c (syms_of_charset): Remove unused var p.
25329 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
25330 byte/char counts.
25331
25332 * casetab.c (set_case_table): Remove unused var.
25333
bba3e508
SM
25334 * window.c (Fdisplay_buffer, Fframe_selected_window):
25335 Remove unused vars.
aac0c6e3
MR
25336
253372008-02-01 Dave Love <fx@gnu.org>
25338
25339 * xterm.c (x_bitmap_mask): Declare.
25340
253412008-02-01 Dave Love <fx@gnu.org>
25342
25343 * xterm.c (x_term_init): Fix type error.
25344
25345 * lisp.h: Add Funibyte_char_to_multibyte.
25346
25347 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
25348 (Fset_coding_system_priority): Doc fix.
25349
25350 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
25351
25352 * indent.c (check_composition): Make start and end EMACS_INT.
25353
25354 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
25355
25356 * xdisp.c (handle_composition_prop, check_point_in_composition):
25357 Make buffer positions EMACS_INT.
25358
25359 * composite.c (find_composition, run_composition_function)
25360 (update_compositions, Ffind_composition_internal): Make buffer
25361 positions EMACS_INT.
25362
bba3e508
SM
25363 * composite.h (find_composition, update_compositions):
25364 Make position args EMACS_INT.
aac0c6e3
MR
25365
25366 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
25367
25368 * intervals.c (get_property_and_range):
25369 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
25370
25371 * unexalpha.c: Don't include varargs.h.
25372
253732008-02-01 Dave Love <fx@gnu.org>
25374
25375 * coding.h (ENCODE_UTF_8): New.
25376
25377 * Makefile.in (gtkutil.o): Depend on coding.h.
25378
25379 * coding.c (Fset_coding_system_priority): Doc fix.
25380
253812008-02-01 Kenichi Handa <handa@m17n.org>
25382
25383 * fileio.c (Finsert_file_contents): Call setup_coding_system in
25384 the case of auto saving.
25385
253862008-02-01 Andreas Schwab <schwab@suse.de>
25387
bba3e508
SM
25388 * chartab.c (map_char_table, map_char_table_for_charset):
25389 Protect `range' from GC.
aac0c6e3
MR
25390
253912008-02-01 Kenichi Handa <handa@m17n.org>
25392
25393 * coding.c (decode_coding_sjis): Check bytes more rigidly.
25394
253952008-02-01 Kenichi Handa <handa@m17n.org>
25396
25397 * fileio.c (choose_write_coding_system): Return a decided coding system.
25398 (Fwrite_region): Set Vlast_coding_system_used to the return value
25399 of choose_write_coding_system.
25400
254012008-02-01 Kenichi Handa <handa@m17n.org>
25402
25403 * charset.c (Fset_charset_priority): Pay attention to duplicated
25404 arguments.
25405
25406 * coding.c (QCcategory): New variable.
25407 (syms_of_coding): Defsym it. Set all elements of
25408 Vcoding_category_table and their symbol values.
25409 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
25410 coding-category-XXX, and coding-category-list.
25411 (Fdefine_coding_system_internal): Add category in the plist.
25412
254132008-02-01 Kenichi Handa <handa@m17n.org>
25414
25415 * callproc.c (Fcall_process): Handle carryover correctly.
25416
25417 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
25418 (raw_text_coding_system): Check NILP (coding_system).
25419 (coding_inherit_eol_type): Check NILP (coding_system) and
25420 NILP (parent).
25421 (consume_chars): Fix for the case of raw-text.
25422
25423 * process.c (read_process_output): Handle carryover correctly.
25424
254252008-02-01 Dave Love <fx@gnu.org>
25426
25427 * regex.c (re_search_2): Fix last change.
25428
254292008-02-01 Kenichi Handa <handa@m17n.org>
25430
25431 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
25432 target_multibyte. Even in a unibyte case, return a converted
25433 multibyte char.
25434 (GET_CHAR_AFTER): New macro.
25435 (PATFETCH): Translate via multibyte char.
25436 (HANDLE_UNIBYTE_RANGE): Delete this macro.
25437 (SETUP_MULTIBYTE_RANGE): New macro.
25438 (regex_compile): Setup compiled code so that its multibyteness
25439 matches that of a target. Fix the handling of "[X-YZ]" using
25440 SETUP_MULTIBYTE_RANGE.
25441 (analyse_first) <charset>: For filling fastmap for all multibyte
25442 characters, don't check by BASE_LEADING_CODE_P.
25443 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
25444 the same as RE_MULTIBYTE_P (bufp) now.
25445 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25446 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25447 (TRANSLATE_VIA_MULTIBYTE): New macro.
25448 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25449 It is the same as RE_MULTIBYTE_P (bufp) now.
25450 <exactn>: Translate via multibyte.
bba3e508
SM
25451 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25452 Don't translate it.
aac0c6e3
MR
25453 <charset, charset_not>: Fetch a character by
25454 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25455 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25456 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25457 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25458 by GET_CHAR_AFTER.
25459 (bcmp_translate): Likewise.
25460
25461 * search.c (compile_pattern): Check the member target_multibyte,
25462 not the member multibyte of buf.
25463
25464 * lread.c (read1): While reading a string, set force_singlebyte
25465 and force_multibyte correctly.
25466
25467 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25468 up of unibyte_to_multibyte_table.
25469
254702008-02-01 Kenichi Handa <handa@m17n.org>
25471
25472 * coding.c (setup_coding_system): If coding has
25473 post-read-conversion or pre-write-conversion, set
25474 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25475 respectively.
25476 (decode_coding_gap): Run post-read-conversion if any.
25477
25478 * fileio.c (Finsert_file_contents): Even if we read into a
25479 unibyte buffer, check if we must decode the result or not.
25480
254812008-02-01 Kenichi Handa <handa@m17n.org>
25482
25483 * coding.c (make_conversion_work_buffer): Change the work buffer
25484 name to the same one as that of Emacs 21.
25485
254862008-02-01 Kenichi Handa <handa@m17n.org>
25487
25488 * coding.h (make_conversion_work_buffer): Adjust prototype.
25489 (code_conversion_restore): Don't extern it.
25490
25491 * coding.c (detected_mask): Delete unused variable.
25492 (decode_coding_iso_2022): Pay attention to the byte sequence of
25493 CTEXT extended segment, and retain those bytes as is.
25494 (decode_coding_ccl): Delete unused variable `valids'.
25495 (setup_coding_system): Delete unused variable `category'.
25496 (consume_chars): Delete unused variable `category'. Make it work
25497 for non-multibyte case.
25498 (make_conversion_work_buffer): Change argument.
25499 (saved_coding): Delete unused variable.
25500 (code_conversion_restore): Don't check saved_coding->destination.
25501 (code_conversion_save): New function.
25502 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25503 instead of record_unwind_protect.
25504 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25505 (detect_coding_system): Delete unused variable `mask'.
25506 (Fdefine_coding_system_internal): Delete unused variable id.
25507
25508 * fileio.c (kill_workbuf_unwind): New function.
25509 (Finsert_file_contents): On replacing, call
25510 make_conversion_work_buffer with correct args, and call
25511 record_unwind_protect with the first arg kill_workbuf_unwind.
25512
25513 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25514
255152008-02-01 Kenichi Handa <handa@m17n.org>
25516
25517 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25518 (fontset_add): Fix for the case that TO is less than TO1.
25519 (Ffontset_info): Don't use fallback fontset on checking the
25520 default fontset.
25521 (dump_fontset): New function for debugging.
25522
25523 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25524 coding_type is Qcharset.
25525
255262008-02-01 Kenichi Handa <handa@m17n.org>
25527
25528 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25529 (map_char_table): Don't inherit the value from the parent on
25530 initializing VAL. Adjust for the above change.
25531
255322008-02-01 Kenichi Handa <handa@m17n.org>
25533
25534 * coding.c (Qsignature, Qendian): Delete these variables.
25535 (syms_of_coding): Don't initialize them.
25536 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25537 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25538 detect_info->found.
25539 (decode_coding_utf_16): Don't detect BOM here.
25540 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25541 is NOT utf_16_without_bom.
25542 (setup_coding_system): For a coding system of type utf-16, check
25543 if the attribute :endian is Qbig or not (not nil or not), and set
25544 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25545 (detect_coding): If coding type is utf-16 and BOM detection is
25546 required, detect it.
25547 (Fdefine_coding_system_internal): For a coding system of type
25548 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25549
255502008-02-01 Kenichi Handa <handa@m17n.org>
25551
25552 * coding.c (coding_set_source): Fix for the case that the current
25553 buffer is different from coding->src_object.
25554 (decode_coding_object): Don't use the conversion work buffer if
25555 DST_OBJECT is a buffer.
25556
255572008-02-01 Dave Love <fx@gnu.org>
25558
25559 * lread.c (read_emacs_mule_char) [len==2]: Index
25560 emacs_mule_charset correctly.
25561
255622008-02-01 Dave Love <fx@gnu.org>
25563
25564 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25565 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25566 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25567 treated specially.)
25568 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25569 (detected_mask): Remove Big5 bits.
25570
255712008-02-01 Kenichi Handa <handa@m17n.org>
25572
25573 The following changes are to make the font rescaling facility
25574 compatible with Emacs 21.
25575
25576 * xfaces.c (Vface_font_rescale_alist): Rename from
25577 Vface_resizing_fonts.
25578 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25579 (font_rescale_ratio): Rename from font_resizing_ratio.
25580 (split_font_name): Set font->rescale_ratio.
25581 (better_font_p): Pay attention to font->rescale_ratio.
25582 (build_scalable_font_name): Likewise. Change RESX, and RESY
25583 fields.
25584 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25585
255862008-02-01 Kenichi Handa <handa@m17n.org>
25587
25588 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25589 (Qutf_16_le): Remove these variables.
25590 (syms_of_coding): Don't DEFSYM them.
25591 (decode_coding_utf_16): Fix handling of BOM.
25592 (encode_coding_utf_16): Fix handling of BOM.
25593
255942008-02-01 Kenichi Handa <handa@m17n.org>
25595
25596 * fileio.c (Finsert_file_contents): On replacing, before decoding
25597 the file into the work buffer, set point of the work buffer to the end.
25598
255992008-02-01 Dave Love <fx@gnu.org>
25600
25601 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25602
256032008-02-01 Dave Love <fx@gnu.org>
25604
25605 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25606 and fix C types.
25607
256082008-02-01 Kenichi Handa <handa@m17n.org>
25609
25610 * xdisp.c (SKIP_GLYPHS): New macro.
25611 (set_cursor_from_row): Pay attention to string display properties.
25612
25613 * category.c (copy_category_entry): Fix for the case that RANGE
25614 is an integer.
25615
25616 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25617
25618 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25619
256202008-02-01 Kenichi Handa <handa@m17n.org>
25621
25622 * charset.c (Fcharset_id_internal): New function.
25623 (syms_of_charset): Defsubr it.
25624
25625 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25626 with the last arg charset_list acquired from coding.
25627 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25628 the attribute coding_attr_ccl_valids.
25629
25630 * coding.h (enum define_coding_ccl_arg_index): Set the first
25631 member coding_arg_ccl_decoder to coding_arg_max.
25632
25633 * ccl.h (ccl_driver): Adjust prototype.
25634
25635 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25636 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25637 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25638 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25639 last arg Qnil.
25640
256412008-02-01 Kenichi Handa <handa@m17n.org>
25642
25643 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25644 call encode_char.
25645
25646 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25647
256482008-02-01 Dave Love <fx@gnu.org>
25649
25650 * composite.c (syms_of_composite): Make composition_hash_table weak.
25651
256522008-02-01 Kenichi Handa <handa@m17n.org>
25653
25654 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25655 (font_name_registry): Don't extern them.
25656 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25657
25658 * fontset.h (Qfontset): Don't extern it.
25659 (new_fontset_from_font_name): Extern it.
25660
25661 * fontset.c: Give 8 extra slots to fontset objects.
25662 (Qfontset_info): New variable.
25663 (syms_of_fontset): Defsym it.
25664 (FONTSET_FALLBACK): New macro.
25665 (fontset_face): Try also the default fontset.
25666 (make_fontset): Realize a fallback fontset from the default fontset.
25667 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25668 using split_font_name_into_vector and build_font_name_from_vector.
25669 (Fset_fontset_font): Access the elements of font_spec by enum
25670 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25671 name by using split_font_name_into_vector.
25672 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25673 generate a proper font name from the fontset name.
25674 Update Vfontset_alias_alist.
aac0c6e3
MR
25675 (n_auto_fontsets): New variable.
25676 (new_fontset_from_font_name): New function.
25677 (Ffont_info): Store the information about fonts generated from the
25678 default fontset in the first extra slot of the returned char-table.
25679
25680 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25681 (font_name_registry): Delete function.
25682 (split_font_name_into_vector): New function.
25683 (build_font_name_from_vector): New function.
25684 (font_list): The argument REGISTRY is now a list of registry names.
25685 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25686 specifies an explicit font name, return the name as is. Make a
25687 list of registy names.
25688
25689 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25690 of x_new_fontset.
25691 (Fx_create_frame): Don't call x_new_fontset here. Just use
25692 x_list_fonts to check the existence of fonts.
25693
25694 * xterm.h (x_new_fontset): Adjust prototype.
25695
25696 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25697 string. Use new_fontset_from_font_name to create a fontset from a
25698 font name.
25699
257002008-02-01 Kenichi Handa <handa@m17n.org>
25701
25702 * syntax.c (Vfind_word_boundary_function_table): New name for
25703 Vnext_word_boundary_function_table.
25704 (find-word-boundary-function-table): New name for
25705 next-word-boundary-function-table.
25706
257072008-02-01 Dave Love <fx@gnu.org>
25708
25709 * Makefile.in: Fix some dependencies.
25710
25711 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25712 set it to nil before returning.
25713
25714 * composite.c (update_compositions): Fix type error.
25715
25716 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25717
257182008-02-01 Kenichi Handa <handa@m17n.org>
25719
25720 * xterm.c (x_new_font): Optimize for the case that the font is
25721 already set for the frame.
25722
257232008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * chartab.c (char_table_ascii): Check if the char table contents
25726 is sub-char-table or not.
25727 (char_table_set, char_table_set_range): Fix argument to
25728 char_table_ascii.
25729
25730 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25731 (detect_coding_utf_8, detect_coding_utf_16)
25732 (detect_coding_emacs_mule, detect_coding_iso_2022)
25733 (detect_coding_sjis, detect_coding_big5)
25734 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25735 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25736 sequence is valid in this coding system. Change callers.
25737 (MAX_ANNOTATION_LENGTH): New macro.
25738 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25739 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25740 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25741 (ADD_CHARSET_DATA): New macro.
25742 (emacs_mule_char): New argument ID. Change callers.
25743 (decode_coding_emacs_mule, decode_coding_iso_2022)
25744 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25745 Produce charset annotation data in coding->charbuf.
25746 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25747 to charset annotation data in coding->charbuf.
25748 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25749 coding->common_flags if the coding system is iso-2022 based and
25750 uses designation.
25751 (produce_composition): Adjust for the new annotation data format.
25752 (produce_charset): New function.
25753 (produce_annotation): Handle charset annotation.
bba3e508
SM
25754 (handle_composition_annotation, handle_charset_annotation):
25755 New functions.
aac0c6e3
MR
25756 (consume_chars): Handle charset annotation. Utilize the above two
25757 functions.
25758 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25759 buffer, get the deleted text as a string and set
25760 coding->src_object to that string.
25761 (detect_coding, detect_coding_system): Use the new struct
25762 coding_detection_info.
25763
25764 * coding.h (struct coding_detection_info): New structure.
25765 (struct coding_system): Adjust prototype of the member `detector'.
25766 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25767
257682008-02-01 Kenichi Handa <handa@m17n.org>
25769
25770 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25771
257722008-02-01 Dave Love <fx@gnu.org>
25773
25774 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25775 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25776 to new local and nullify apropos_accumulate before returning.
25777 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25778
257792008-02-01 Kenichi Handa <handa@m17n.org>
25780
25781 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25782 correctly.
e3eea1fc 25783
aac0c6e3
MR
257842008-02-01 Dave Love <fx@gnu.org>
25785
25786 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25787
257882008-02-01 Kenichi Handa <handa@m17n.org>
25789
25790 The following changes are to make character composition happen
25791 automatically on displaying.
25792
25793 * Makefile.in (lisp, shortlisp): Add composite.elc.
25794
25795 * composite.h (Qauto_composed, Vauto_composition_function)
25796 (Qauto_composition_function): Extern them.
25797
25798 * composite.c (Vcomposition_function_table)
25799 (Qcomposition_function_table): Delete variables.
25800 (Qauto_composed, Vauto_composition_function)
25801 (Qauto_composition_function): New variables.
25802 (run_composition_function): Don't call
25803 compose-chars-after-function.
25804 (update_compositions): Clear `auto-composed' text property.
25805 (compose_chars_in_text): Delete this function.
25806 (syms_of_composite): Staticpro Qauto_composed and
25807 Qauto_composition_function. Declare Vauto_composition_function as
25808 a Lisp variable.
25809
25810 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25811
25812 * xdisp.c (it_props): Add an entry for Qauto_composed.
25813 (handle_auto_composed_prop): New function.
25814
25815 * xselect.c (selection_data_to_lisp_data): Don't call
25816 compose_chars_in_text.
25817
258182008-02-01 Dave Love <fx@gnu.org>
25819
25820 * keyboard.c (read_char): Modify checking around use of
25821 Vkeyboard_translate_table.
25822
25823 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25824 and fix C types.
25825
258262008-02-01 Kenichi Handa <handa@m17n.org>
25827
25828 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25829 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25830 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25831 the case that the last byte is '\r' correctly.
25832 (decode_coding): Flush out the unprocessed data correctly.
25833 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25834
258352008-02-01 Dave Love <fx@gnu.org>
25836
25837 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25838 Add XK_ISO... case.
25839 (xaw_scroll_callback): Revert last change.
25840
258412008-02-01 Kenichi Handa <handa@m17n.org>
25842
25843 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25844
258452008-02-01 Kenichi Handa <handa@m17n.org>
25846
25847 * xfaces.c (Vface_resizing_fonts): New variable.
25848 (struct font_name): New member `resizing_ratio'.
25849 (font_resizing_ratio): New function.
25850 (split_font_name): Set font->resizing_ratio.
25851 (better_font_p): Pay attention to font->resizing_ratio.
25852 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25853 RESX, and RESY fields.
25854 (try_alternative_families): Try scalable fonts if
25855 Vscalable_fonts_allowed is not Qt.
25856 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25857
258582008-02-01 Dave Love <fx@gnu.org>
25859
25860 * xterm.c (xaw_scroll_callback): Cast correctly.
25861
258622008-02-01 Dave Love <fx@gnu.org>
25863
25864 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25865 (lispy_kana_keys): Comment out.
25866 (make_lispy_event) [XK_kana_A]: Comment out.
25867
25868 * xterm.c (xaw_scroll_callback): Cast call_data.
25869 (XTread_socket): Deal with ASCII keysyms.
25870 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25871
258722008-02-01 Dave Love <fx@gnu.org>
25873
25874 * xterm.c (Vx_keysym_table): New.
25875 (syms_of_xterm): Initialize it.
25876 (XTread_socket): Use it.
25877 From head: Eliminate incorrect optimization that tried to avoid
25878 decoding the output of X*LookupString.
25879 (x_get_font_repertory): Delete charset declaration.
25880
258812008-02-01 Kenichi Handa <handa@m17n.org>
25882
25883 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25884 return 0.
bba3e508
SM
25885 (Fdefine_coding_system_internal):
25886 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25887
258882008-02-01 Dave Love <fx@gnu.org>
25889
25890 * coding.c (Fcheck_coding_system): Doc fix.
25891
25892 * editfns.c (Finsert_byte): Return a proper value.
25893
258942008-02-01 Kenichi Handa <handa@m17n.org>
25895
bba3e508
SM
25896 * coding.c (decode_coding): Fix args to translate_chars.
25897 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25898 (encode_coding): Fix args to translate_chars. Pay attention to
25899 Vstandard_translation_table_for_encode.
25900
25901 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25902 SINGLE_BYTE_CHAR_P.
25903
25904 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25905 not by SINGLE_BYTE_CHAR_P.
25906
25907 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25908 SINGLE_BYTE_CHAR_P.
25909
25910 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25911 SINGLE_BYTE_CHAR_P.
25912
25913 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25914 by SINGLE_BYTE_CHAR_P.
25915
25916 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25917 SINGLE_BYTE_CHAR_P.
25918
259192008-02-01 Dave Love <fx@gnu.org>
25920
25921 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25922
259232008-02-01 Dave Love <fx@gnu.org>
25924
25925 * fns.c (Flanginfo): Fix typo.
25926
25927 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25928
259292008-02-01 Kenichi Handa <handa@m17n.org>
25930
25931 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25932 (detect_coding_emacs_mule, detect_coding_iso_2022)
25933 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25934 incomplete byte sequence. Don't update *mask when correctly detected.
25935 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25936 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25937 (detect_coding, detect_coding_system): Adjust for the changes above.
25938
259392008-02-01 Kenichi Handa <handa@m17n.org>
25940
25941 * character.c (char_string): Rename from
25942 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25943 (string_char): Rename from string_char.
25944
25945 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25946 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25947 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25948 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25949
259502008-02-01 Dave Love <fx@gnu.org>
25951
25952 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25953
259542008-02-01 Kenichi Handa <handa@m17n.org>
25955
25956 * keymap.c (push_key_description): Pay attention to force_multibyte.
25957
25958 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25959
259602008-02-01 Dave Love <fx@gnu.org>
25961
25962 * charset.c (define_charset_internal): Rename `supprementary'.
25963
25964 * Makefile.in (lisp, shortlisp): Remove latin-N.
25965
259662008-02-01 Dave Love <fx@gnu.org>
25967
25968 * xfns.c (x_window, x_window): Use use_xim.
25969
25970 * xterm.c (use_xim): Initialize.
25971 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25972 (x_term_init): Maybe set use_xim.
25973
25974 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25975
259762008-02-01 Kenichi Handa <handa@m17n.org>
25977
25978 * search.c (search_buffer): Fix case-fold-search of multibyte
25979 characters.
25980 (boyer_moore): Rename the last argument to char_high_bits.
25981
259822008-02-01 Kenichi Handa <handa@m17n.org>
25983
25984 * xdisp.c (display_string): Fix for the case of zero width glyph.
25985
25986 * xfns.c (x_set_font): Change the error message of the case that
25987 x_new_fontset returns Qt.
25988
25989 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25990 (Finternal_set_lisp_face_attribute): Use signal_error for the
25991 error of invalid fontset.
25992
25993 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25994 fontset, return Qt.
25995
259962008-02-01 Dave Love <fx@gnu.org>
25997
25998 * unexelf.c (unexec): Make .got handling not SGI-specific.
25999
26000 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26001
26002 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26003
26004 * keyboard.c (read_key_sequence): Fix type error.
26005
bba3e508
SM
26006 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26007 Fix type error.
aac0c6e3
MR
26008
26009 * fontset.c (fontset_add): Return Lisp_Object.
26010
260112008-02-01 Dave Love <fx@gnu.org>
26012
26013 * charset.h (charset_ordered_list_tick): Declare extern.
26014
260152008-02-01 Kenichi Handa <handa@m17n.org>
26016
26017 The following changes (and some of 2008-02-01 changes of mine) are
26018 for handling syntax, category, and case conversion for unibyte
26019 characters by converting them to multibyte on the fly. With these
26020 changes, we don't have to setup syntax and case tables for unibyte
26021 characters in each language environment.
26022
26023 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26024 multibyte if necessary.
26025
26026 * bytecode.c (Fbyte_code): Likewise.
26027
26028 * character.h (LEADING_CODE_LATIN_1_MIN)
26029 (LEADING_CODE_LATIN_1_MAX): New macros.
26030 (unibyte_to_multibyte_table): Extern it.
26031 (unibyte_char_to_multibyte): New macro.
26032 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26033 (CHAR_LEADING_CODE): New macro.
26034 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26035
26036 * character.c (unibyte_to_multibyte_table): New variable.
26037 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26038 (multibyte_char_to_unibyte): If C is an eight-bit character,
26039 convert it to the corresponding byte value.
26040
26041 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26042 not 1, signals an error. Update the elements of
26043 unibyte_to_multibyte_table.
26044 (init_charset_once): Initialize unibyte_to_multibyte_table.
26045 (syms_of_charset): Define the charset `iso-8859-1'.
26046
26047 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26048 as is without converting it to unibyte. In a unibyte buffer,
26049 convert C to multibyte before checking the syntax.
26050
26051 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26052
26053 * minibuf.c (Fminibuffer_complete_word): Use the macro
26054 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26055
26056 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26057
26058 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26059 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26060 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26061 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26062 non-emacs case.
26063 (PATFETCH): Convert an eight-bit char to multibyte.
26064 (HANDLE_UNIBYTE_RANGE): New macro.
26065 (regex_compile): Setup the compiled pattern for multibyte chars
26066 even if the given regex string is unibyte. Use PATFETCH_RAW
26067 instead of PATFETCH in many places. To handle `charset'
26068 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26069 only for ASCII chars.
26070 (analyse_first) <exactn>: Simplify because the compiled pattern
26071 is multibyte.
26072 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26073 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26074 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26075 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26076 multibyte always 1.
26077 (re_search_2): In emacs, set the locale variable multibyte to 1,
26078 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26079 to decide the multibyteness of STR1 and STR2.
26080 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26081 before translating and checking fastmap.
26082 (TARGET_CHAR_AND_LENGTH): New macro.
26083 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26084 to 1, otherwise to 0. New local variable target_multibyte.
26085 Check it to decide the multibyteness of STR1 and STR2.
26086 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26087 <charset, charset_not>: If multibyte is nonzero, check fastmap
26088 only for ASCII chars. Call bcmp_translate with
26089 target_multibyte, not with multibyte.
26090 <begline>: Declare the local variable C as `unsigned'.
26091 (bcmp_translate): Change the last arg name to target_multibyte.
26092
26093 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26094 the regexp pattern and the matching target. Set cp->buf.multibyte
26095 to the multibyteness of the regexp pattern. Set
26096 cp->but.target_multibyte to the multibyteness of the matching target.
26097 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26098 FETCH_STRING_CHAR_ADVANCE.
26099 (Freplace_match): Convert unibyte chars to multibyte.
26100
26101 * syntax.c (char_quoted, back_comment, scan_words)
26102 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26103 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26104 unibyte chars to multibyte.
26105 (skip_chars): Delete the arg syntaxp, and move the code for
26106 handling syntaxes to skip_syntaxes. Change callers.
26107 Fix the case that the multibyteness of STRING and the current
26108 buffer doesn't match.
26109 (skip_syntaxes): New function.
26110 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26111 SINGLE_BYTE_CHAR_P.
26112
261132008-02-01 Kenichi Handa <handa@m17n.org>
26114
26115 * xfaces.c (QCfontset): New variable.
26116 (LFACE_FONTSET): New macro.
26117 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26118 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26119 (Finternal_set_lisp_face_attribute)
26120 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26121 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26122 check also LFACE_FONTSET_INDEX.
26123 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26124 attrs[LFACE_FONT_INDEX].
26125 (syms_of_xfaces): Intern and staticpro QCfontset.
26126
26127 * dispextern.h (enum lface_attribute_index): New member
26128 LFACE_FONTSET_INDEX.
26129
26130 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26131
261322008-02-01 Kenichi Handa <handa@m17n.org>
26133
26134 * coding.c (coding_set_destination): Fix coding->destination for
26135 the case converting a region.
26136 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26137 (encode_coding_object): Fix coding->dst_pos and
26138 coding->dst_pos_byte for the case converting a region.
26139
26140 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26141
26142 * character.h (BYTE8_STRING): New macro.
26143
26144 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26145
261462008-02-01 Kenichi Handa <handa@m17n.org>
26147
26148 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26149 characters by octal form.
26150
26151 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26152
26153 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26154 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26155 _fetch_multibyte_char_len.
26156 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26157
26158 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26159
26160 * casefiddle.c (casify_object): Simplify. Handle the case that
26161 the case conversion change the byte length.
26162 (casify_region): Likewise.
26163
26164 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26165
26166 * character.c (_fetch_multibyte_char_len): Delete this variable.
26167 (syms_of_character): Setup Vprintable_chars.
26168
26169 * editfns.c (Fchar_equal): Fix for the unibyte case.
26170 (Finsert_byte): New function.
26171 (syms_of_editfns): Defsubr it.
26172
26173 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26174 of direct code 0x3ffff.
26175
26176 * search.c (Freplace_match): Fix for the unibyte case.
26177
261782008-02-01 Kenichi Handa <handa@m17n.org>
26179
26180 * lread.c (safe_to_load_p): Fix the logic.
26181
26182 * syntax.c (scan_words): Don't treat characters belonging to
26183 different scripts as constituting a word.
26184
26185 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26186
26187 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26188
26189 * emacs.c (main): In the case of --unibyte, instead of aborting on
26190 finding non-empty buffer, make it unibyte.
26191
261922008-02-01 Kenichi Handa <handa@m17n.org>
26193
26194 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26195 to create a fontset.
26196
261972008-02-01 Dave Love <fx@gnu.org>
26198
26199 * character.c (Funibyte_char_to_multibyte): Doc fix.
26200
26201 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26202
262032008-02-01 Kenichi Handa <handa@m17n.org>
26204
26205 * fontset.c (fontset_add): Make the type `int'.
26206 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26207
26208 * character.c (unibyte_char_to_multibyte)
26209 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26210 charset_unibyte, not charset_primary.
26211
26212 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26213
26214 * charset.c (charset_unibyte): Rename from charset_primary.
26215 (Funibyte_charset): Rename from Fprimary_charset.
26216 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26217 (syms_of_charset): Adjust for the above changes.
26218
26219 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26220 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26221 it->multibyte_p is zero.
26222
26223 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26224 Delete extern.
26225
262262008-02-01 Kenichi Handa <handa@m17n.org>
26227
26228 * coding.c (Fdefine_coding_system_internal): Fix category setting
26229 for a coding system of type iso-2022.
26230
262312008-02-01 Kenichi Handa <handa@m17n.org>
26232
26233 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26234
262352008-02-01 Kenichi Handa <handa@m17n.org>
26236
26237 * syntax.c (Vnext_word_boundary_function_table): New variable.
26238 (next-word-boundary-function-table): Declare it as a Lisp variable
26239 in syms_of_syntax.
26240 (scan_words): Call functions in Vnext_word_boundary_function_table
26241 if any.
26242
26243 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26244
26245 * fontset.c (fs_load_font): If fontp->charset is not negative,
26246 return fontp without setting its members.
26247
262482008-02-01 Dave Love <fx@gnu.org>
26249
26250 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26251
26252 * m/sparc.h (HAVE_ALLOCA): Delete.
26253
26254 * s/irix6-5.h: Don't include strings.h.
26255 (bcopy, bzero, bcmp): Don't undef.
26256
26257 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26258
26259 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26260 (TIOCSIGSEND): Don't test IRIX6.
26261 (bcopy, bzero, bcmp): Define conditionally.
26262
262632008-02-01 Kenichi Handa <handa@m17n.org>
26264
26265 * buffer.c (Qas, Qmake, Qto): New variables.
26266 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26267 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26268
26269 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26270 we are inserting a process output into a multibyte buffer.
26271
26272 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26273 multibyte_char_to_unibyte.
26274
26275 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26276 by the primary charset, make it eight-bit char.
26277 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
26278
26279 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
26280 (charset_8_bit__control, charset_8_bit_graphic)
26281 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
26282 (define_charset_internal): New function.
26283 (syms_of_charset): Call define_charset_internal for pre-defined
26284 charsets.
26285
26286 * charset.h (charset_8_bit): Extern it.
26287
26288 * coding.c (make_conversion_work_buffer): Adjust for the change
26289 of Fset_buffer_multibyte.
26290 (encode_coding_raw_text): Increment p0 in the loop.
26291
26292 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
26293
bba3e508
SM
26294 * xdisp.c (setup_echo_area_for_printing, set_message_1):
26295 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
26296
26297 * fns.c (Fstring_to_multibyte): New function.
26298 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
26299
263002008-02-01 Dave Love <fx@gnu.org>
26301
26302 * xfns.c (x_put_x_image): Declare args.
26303
26304 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
26305 (try_font_list): Declare an arg.
26306
26307 * xdisp.c (message2_nolog, set_message): Declare an arg.
26308
26309 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
26310
26311 * syntax.c (scan_sexps_forward): Declare an arg.
26312
26313 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
26314 Declare an arg.
26315
26316 * lisp.h (Fnew_fontset): Declare.
26317
26318 * keymap.c (push_key_description): Call CHARACTERP correctly.
26319
26320 * fontset.c (fontset_add): Declare args. Call make_number correctly.
26321 (face_for_char): Delete unused vars.
26322 (Fset_fontset_font): Doc fix. Delete unused vars.
26323
26324 * doc.c (Fsubstitute_command_keys): Delete unused vars.
26325
26326 * composite.c (update_compositions): Declare arg.
26327
26328 * cm.c (calccost, cmgoto): Declare args.
26329
26330 * charset.c: Remove `emacs' conditional. Doc fixes.
26331 (map_char_table_for_charset): Declare.
26332
26333 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
26334
26335 * ccl.c: Remove `emacs' conditional.
26336
263372008-02-01 Kenichi Handa <handa@m17n.org>
26338
26339 The following changes are to allow specifying multiple font
26340 patterns for a character range (specified by script or charset).
26341
26342 * Makefile.in (abbrev.o): Depend on syntax.h.
26343 (xfaces.o): Depend on charset.h.
26344
26345 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
26346 SINGLE_BYTE_CHAR_P.
26347
26348 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
26349
26350 * character.h (Vchar_script_table): Extern it.
26351
26352 * character.c (Vscript_alist): Delete.
26353 (Vchar_script_table, Qchar_script_table): New variable.
26354 (syms_of_character): Declare Vchar_script_table as a lisp variable
26355 and initialize it.
26356
26357 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
26358 have property char-table-extra-slots, make no extra slot.
26359
26360 * dispextern.h (struct face): Delete member `charset'.
26361 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
26362 SINGLE_BYTE_CHAR_P.
26363 (choose_face_font, lookup_non_ascii_face, font_name_registry):
26364 Add prototypes.
26365 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
26366 (generate_ascii_font_name): Rename from generate_ascii_font.
26367
26368 * fontset.h (get_font_repertory_func): New prototype.
26369 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
26370 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
26371
26372 * fontset.c (Qprepend, Qappend): New variables.
26373 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
26374 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
26375 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
26376 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
26377 (fontset_ref_and_range, fontset_add, reorder_font_vector)
26378 (load_font_get_repertory): New functions.
26379 (fontset_set): Delete.
26380 (fontset_face): New arg FACE. Return face ID, not face.
26381 Complete re-write to handle new fontset structure. Change caller.
26382 (free_face_fontset): Use ASET istead of AREF (X) = Y.
26383 (face_for_char): Don't call lookup_face.
26384 (make_fontset_for_ascii_face): New arg FACE.
26385 (fs_load_font): New arg CHARSET_ID. Don't check
26386 Vfont_encoding_alist here.
26387 (find_font_encoding): New function.
26388 (list_fontsets): Use STRINGP, not ! NILP.
26389 (accumulate_script_ranges): New function.
bba3e508
SM
26390 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
26391 Completely re-written to handle new fontset structure.
aac0c6e3 26392 (Ffontset_font): Return a copy of element.
bba3e508
SM
26393 (syms_of_fontset): Define symbols Qprepend and Qappend.
26394 Fix docstring of font-encoding-alist.
aac0c6e3
MR
26395
26396 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
26397 (Fset_fotset_font): Fix arguments to 5.
26398
26399 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
26400
26401 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
26402 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26403 (highlight_trailing_whitespace): Adjust for the change of
26404 lookup_named_face.
26405
26406 * xfaces.c: Include charset.h.
26407 (load_face_font): Delete argument C. Change caller.
26408 (generate_ascii_font_name): Rename from generate_ascii_font.
26409 (font_name_registry): New function.
26410 (cache_face): Store ascii faces before non-ascii faces in buckets.
26411 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
26412 Lookup only ascii faces.
26413 (lookup_non_ascii_face): New function.
26414 (lookup_named_face): Delete argument C. Change caller.
26415 (lookup_derived_face): Delete argument C. Change caller.
26416 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
26417 a string, just call font_list with it.
26418 (choose_face_font): Delete arguments FACE and C. New arg
26419 FONT_SPEC. Change caller.
26420 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
26421 Change caller.
26422 (realize_non_ascii_face): New function.
26423 (realize_x_face): Call load_face_font here.
26424 (realize_tty_face): Delete argument C. Change caller.
26425 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
26426 get a face ID.
26427 (dump_realized_face): Don't print charset of FACE.
26428
26429 * xfns.c (x_set_font): Always call x_new_fontset and
26430 store_frame_parameter.
26431 (Fx_create_frame): Call x_new_fontset, not x_new_font.
26432 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
26433
26434 * xterm.h (x_get_font_repertory): Extern it.
26435
26436 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26437 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26438 it->multibyte_p is zero.
26439 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26440 (x_new_fontset): If FONTSETNAME doesn't match any existing
26441 fontsets, create a new one.
26442 (x_get_font_repertory): New function.
26443
264442008-02-01 Kenichi Handa <handa@m17n.org>
26445
26446 * coding.c (Ffind_coding_systems_region_internal): Detect an
26447 ASCII only string correctly.
26448
26449 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26450 version is 0.
26451
264522008-02-01 Kenichi Handa <handa@m17n.org>
26453
26454 * lread.c: Include "coding.h".
26455 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26456 (load_each_byte, unread_char): New variables.
26457 (readchar_backlog): Delete.
26458 (readchar): Return a character unless load_each_byte is nonzero.
26459 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26460 cons. If unread_char is not -1, simply return it.
26461 (unreadchar): Handle the case that readcharfun is
26462 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26463 (read_multibyte): Delete.
26464 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26465 (read_emacs_mule_char): New functions.
26466 (Fload): Even if the file doesn't have the extension ".elc", if
26467 safe_to_load_p returns a positive version number, assume that the
26468 file contains bytecompiled code. If the version is less than 22,
26469 load the file while decoding multibyte sequences by emacs-mule.
26470 (readevalloop): Don't use readchar_backlog.
26471 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26472 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26473 (read_escape): Delete the arg BYTEREP.
26474 (read1): Set load_each_byte to 1 temporarily while handling
26475 #@NUMBER. Don't call read_multibyte.
26476 (read_vector): Call Fread with a cons. If readcharfun is
26477 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26478 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26479 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26480 and Qload_force_doc_strings.
26481
264822008-02-01 Kenichi Handa <handa@m17n.org>
26483
bba3e508
SM
26484 * xdisp.c (face_before_or_after_it_pos):
26485 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
26486
264872008-02-01 Kenichi Handa <handa@m17n.org>
26488
26489 * character.h (TRAILING_CODE_P): New macro.
26490 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26491 (string_char_with_unification): Fix prototype.
26492 (Vscript_alist): Extern it.
26493
26494 * character.c (Vscript_alist): New variable.
26495 (string_char_with_unification, str_as_unibyte)
26496 (string_escape_byte8): Add `const' to local variables.
26497 (syms_of_character): Declare script-alist as a Lisp variable.
26498
26499 * charset.h (Vcharset_ordered_list): Extern it.
26500 (charset_ordered_list_tick): Extern it.
26501 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26502 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26503 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26504 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26505 (Funify_charset): Adjust for the change of Funify_charset.
26506
26507 * charset.c (charset_ordered_list_tick): New variable.
26508 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26509 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 26510 deunify instead of unify a charset.
aac0c6e3
MR
26511 (string_xstring_p): Add `const' to local variables.
26512 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
26513 (encode_char): Adjust for the change of Funify_charset.
26514 Fix detecting of invalid code.
aac0c6e3
MR
26515 (Fset_charset_priority): Increment charset_ordered_list_tick.
26516 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26517 and TO_CODE.
26518
26519 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26520 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26521 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26522 (decode_coding_ccl, consume_chars)
26523 (Ffind_coding_systems_region_internal)
26524 (Fcheck_coding_systems_region): Add `const' to local variables.
26525
26526 * print.c (print_object): Use octal form for printing the
26527 contents of a bool vector.
26528
265292008-02-01 Dave Love <fx@gnu.org>
26530
26531 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26532 <version == 20>: Refuse to load.
26533
265342008-02-01 Dave Love <fx@gnu.org>
26535
26536 * fns.c: Move coding.h.
26537 (Qcodeset, Qdays, Qmonths): New.
26538 (concat): Use CHARACTERP instead of INTEGERP.
26539 (Flocale_codeset): Delete.
26540 (Flanginfo): New function.
26541 (syms_of_fns): Change accordingly.
26542
26543 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26544
265452008-02-01 Dave Love <fx@gnu.org>
26546
bba3e508
SM
26547 * casetab.c (init_casetab_once, init_casetab_once):
26548 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26549
26550 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26551
26552 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26553
26554 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26555 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26556 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26557
26558 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26559
26560 * coding.c (ENCODE_DESIGNATION, decode_eol)
26561 (make_conversion_work_buffer, code_conversion_restore)
26562 (Fdefine_coding_system_internal): Convert Lisp types.
26563 (code_conversion_restore): Use EQ, not ==.
26564 (Fencode_coding_string): Fix code_convert_string call.
26565
26566 * coding.h (code_convert_region): Fix prototype.
26567
26568 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26569
26570 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26571 (Ffontset_info): Convert Lisp types.
26572
26573 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26574
26575 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26576
26577 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26578
26579 * chartab.c: Include "...h", not <...h> in some cases.
26580
26581 * callproc.c (Fcall_process): Remove unused variables.
26582
265832008-02-01 Dave Love <fx@gnu.org>
26584
26585 * coding.c (Fset_coding_system_priority): Allow null arg list.
26586
265872008-02-01 Dave Love <fx@gnu.org>
26588
26589 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26590 (Fself_insert_and_exit): Use CHARACTERP.
26591
26592 * callproc.c (Fcall_process): Remove unused vars.
26593
26594 * xterm.c (XTread_socket): Add extra dead keysyms.
26595
26596 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26597
26598 * dispextern.h: Remove prototypes for redraw_frame,
26599 redraw_garbaged_frames.
26600
26601 * cmds.c (Fself_insert_command): Use CHARACTERP.
26602
26603 * chartab.c (make_sub_char_table): Remove unused var.
26604 (Fset_char_table_default, Fmap_char_table): Doc fix.
26605
26606 * keymap.c (access_keymap): Remove generic char code.
26607 (push_key_description): Use CHARACTERP.
26608
266092008-02-01 Dave Love <fx@gnu.org>
26610
26611 * charset.c: Doc fixes.
26612 (Funify_charset): Extra checking.
26613
266142008-02-01 Dave Love <fx@gnu.org>
26615
26616 * lread.c: Remove some unused variables.
26617 (safe_to_load_p): If safe, return the magic number version byte.
26618 (Fload): Maybe use load-with-code-conversion.
26619
266202008-02-01 Kenichi Handa <handa@m17n.org>
26621
26622 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26623 of category_set for characters out of the range.
26624 Avoid unnecessary modification.
aac0c6e3
MR
26625
26626 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26627 Vchar_unify_table. The default value of the table is now nil.
26628
26629 * character.c (syms_of_character): Setup Vchar_width_table for
26630 eight-bit-control and raw-byte chars.
26631
bba3e508
SM
26632 * charset.h (enum define_charset_arg_index):
26633 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26634 charset_arg_superset.
26635 (enum charset_attr_index): Delete charset_parents and add
26636 charset_subset and charset_superset.
26637 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26638 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26639 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26640 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26641 (CHARSET_SUPERSET): New macros.
26642 (charset_work): Extern it.
26643 (ENCODE_CHAR): Use charset_work.
26644 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26645 (map_charset_chars): Extern it.
26646
26647 * charset.c (load_charset_map): Set the default value of encoder
26648 and deunifier char-tables to nil.
bba3e508
SM
26649 (map_charset_chars): Change argument. Change callers.
26650 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26651 (Fmap_charset_chars): New optional args from_code and to_code.
26652 (Fdefine_charset_internal): Adjust for the change of
26653 `define-charset' (:parents -> :subset or :superset).
26654 (charset_work): New variable.
26655 (encode_char, syms_of_charset): Adjust for the change of
26656 Fdefine_charset_internal.
26657 (Ffind_charset_string): Setup the vector `charsets' correctly.
26658
bba3e508
SM
26659 * chartab.c (sub_char_table_ref_and_range): New arg default.
26660 Fix the previous change.
aac0c6e3
MR
26661 (char_table_ref_and_range): Adjust for the above change.
26662 (map_sub_char_table_for_charset): New function.
26663 (map_char_table_for_charset): New function.
26664
26665 * keymap.c (describe_vector): Handle a char-table directly here.
26666 (describe_char_table): Delete.
26667
26668 * lisp.h (map_charset_chars): Delete.
26669
266702008-02-01 Dave Love <fx@gnu.org>
26671
26672 * fns.c (count_combining): Comment out (unused).
26673 (Flocale_codeset): New.
26674 (syms_of_fns): Defsubr it.
26675
26676 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26677 (size_t): Remove.
26678
266792008-02-01 Dave Love <fx@gnu.org>
26680
26681 * Makefile.in (chartab.o): Depend on charset.h.
26682
266832008-02-01 Kenichi Handa <handa@m17n.org>
26684
26685 * character.c (syms_of_character): Set the default value of
26686 Vprintable_chars to Qnil.
26687
266882008-02-01 Dave Love <fx@gnu.org>
26689
26690 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26691
266922008-02-01 Kenichi Handa <handa@m17n.org>
26693
26694 * charset.c (load_charset_map): Handle the case that from < to
26695 correctly.
26696
26697 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26698 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26699 Pay attention to raw-8-bit chars.
26700
267012008-02-01 Kenichi Handa <handa@m17n.org>
26702
26703 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26704 It is not bytecompiled now.
26705
26706 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26707 (charset_jisx0208): New variables.
26708 (Fdefine_charset_internal): Setup them if appropriate.
26709 (init_charset_once): Initialize them to -1.
26710
26711 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26712 (charset_jisx0208): Extern them.
26713
26714 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26715 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26716 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26717 (setup_iso_safe_charsets): Fix arguments to Fassq.
26718 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26719 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26720 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26721 (encode_coding_iso_2022): Change the 1st arg to
26722 ENCODE_ISO_CHARACTER to a variable.
26723
267242008-02-01 Kenichi Handa <handa@m17n.org>
26725
26726 * charset.h (enum define_charset_arg_index): New enums
26727 charset_arg_min_code and charset_arg_max_code.
26728 (struct charset): New member char_index_offset.
26729
26730 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26731 Take charset->char_index_offset into account.
26732 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26733 args[charset_arg_max_code]. Setup charset.char_index_offset.
26734 (syms_of_charset): Fix args to Fdefine_charset_internal.
26735
267362008-02-01 Dave Love <fx@gnu.org>
26737
26738 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26739
267402008-02-01 Dave Love <fx@gnu.org>
26741
26742 * coding.c: Doc fixes.
26743 (Fcoding_system_aliases): Fix return value.
26744 (Qmac): Remove (duplicated) definition.
26745
267462008-02-01 Dave Love <fx@gnu.org>
26747
362654a6
JB
26748 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26749 New functions.
aac0c6e3
MR
26750
26751 * character.c (Fstring): Doc fix.
26752
26753 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26754
362654a6 26755 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26756 (font-encoding-alist): Doc fix.
26757
267582008-02-01 Dave Love <fx@gnu.org>
26759
26760 * term.c (costs_set): Declare static, non-initialized for pcc.
26761 (encode_terminal_code): Remove unused var.
26762
26763 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26764 for K&R.
26765
26766 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26767
26768 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26769 (suffixes): Move out of make_subsidiaries for K&R.
26770
26771 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26772
26773 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26774
267752008-02-01 Dave Love <fx@gnu.org>
26776
26777 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26778
26779 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26780
267812008-02-01 Yong Lu <lyongu@asia-infonet.com>
26782
26783 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26784
26785 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26786
267872008-02-01 Kenichi Handa <handa@m17n.org>
26788
26789 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26790 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26791
267922008-02-01 Kenichi Handa <handa@m17n.org>
26793
26794 * coding.c (decode_coding_charset): Adjust for the change of
26795 Fdefine_coding_system_internal.
26796 (Fdefine_coding_system_internal): For a coding system of
26797 `charset' type, store a list of charset IDs in
26798 `charset_attr_charset_valids' element of coding attributes.
26799
268002008-02-01 Kenichi Handa <handa@m17n.org>
26801
26802 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26803 (emacs_mule_char): New arg src. Delete arg `composition'.
26804 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26805 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26806 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26807 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26808 (DECODE_EMACS_MULE_21_COMPOSITION):
26809 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26810 sequence.
26811 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26812 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26813 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26814 and alt&rule composition.
26815 (decode_coding_iso_2022): Handle composition correctly.
26816 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26817
26818 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26819 re-defining a charset. If the charset has :emacs-mule-id, setup
26820 emacs_mule_bytes.
26821 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26822
268232008-02-01 Kenichi Handa <handa@m17n.org>
26824
26825 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26826 (encode_coding_big5, encode_coding_charset): If coding requires safe
26827 encoding, produce a character specified by
26828 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26829
268302008-02-01 Dave Love <fx@gnu.org>
26831
26832 * xterm.c (XSetIMValues): Declare.
26833
26834 * process.c: Conditionally include sys/wait.h, pty.h.
26835
26836 * print.c (print_object): Fix print format for 64-bit systems.
26837
26838 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26839
26840 * buffer.c (emacs_strerror): Declare.
26841
26842 * fontset.c (Fclear_face_cache): Declare.
26843 (accumulate_font_info): Comment-out (unused).
26844 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26845 variables.
26846
26847 * character.h (string_escape_byte8): Declare.
26848
bba3e508
SM
26849 * charset.c (load_charset_map, load_charset_map_from_file):
26850 Remove unused vars.
aac0c6e3
MR
26851 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26852 (Fmap_charset_chars): Doc fix.
26853
26854 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26855 (Fset_coding_system_priority, Fset_coding_system_priority)
26856 (Fdefine_coding_system_internal): Doc fix.
26857
268582008-02-01 Dave Love <fx@gnu.org>
26859
26860 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26861
268622008-02-01 Kenichi Handa <handa@m17n.org>
26863
26864 * character.c (string_escape_byte8): Make multibyte string with
26865 correct size.
26866
26867 * charset.c (Fmake_char): Delete unnecessary code.
26868
268692008-02-01 Kenichi Handa <handa@m17n.org>
26870
26871 * xfns.c (x_encode_text): Allocate coding.destination here, and
26872 call encode_coding_object with dst_object Qnil.
26873
26874 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26875 multibyte form correctly.
26876
26877 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26878 against Vfont_encoding_alist.
26879
26880 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26881 handling of charset list.
26882 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26883 (decode_coding_object): Move point to coding->dst_pos before
26884 calling post-read-conversion function.
26885 (encode_coding_object): Give correct arguments to
26886 pre-write-conversion. Ignore the return value of
26887 pre-write-conversion function. Pay attention to the case that
26888 pre-write-conversion changes the current buffer. If dst_object is
26889 Qt, even if coding->src_bytes is zero, allocate at least one byte
26890 to coding->destination.
26891
26892 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26893
26894 * charset.c (Fmake_char): Make it more backward compatible.
26895 (Fmap_charset_chars): Fix docstring.
26896
268972008-02-01 Dave Love <fx@gnu.org>
26898
26899 * coding.c: Doc fixes.
26900 (Fdefine_coding_system_alias): Use names, not symbols, in
26901 coding-system-alist.
26902
269032008-02-01 Kenichi Handa <handa@m17n.org>
26904
26905 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26906 of calling free_realized_face.
26907
269082008-02-01 Yong Lu <lyongu@asia-infonet.com>
26909
26910 * charset.c (read_hex): Don't treat SPC as a comment starter.
26911 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26912 (Fdecode_char): Fix typo.
26913
269142008-02-01 Kenichi Handa <handa@m17n.org>
26915
26916 * charset.h (struct charset): New member `code_space_mask'.
26917
26918 * coding.c (coding_set_source): Delete the local variable beg_byte.
26919 (encode_coding_charset, Fdefine_coding_system_internal):
26920 Delete the local variable charset.
bba3e508
SM
26921 (Fdefine_coding_system_internal):
26922 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26923
26924 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26925 member to check if CODE is valid or not.
26926 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26927 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26928 is within the range of charset->min_code and carset->max_code.
26929
269302008-02-01 Dave Love <fx@gnu.org>
26931
26932 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26933
26934 * dispextern.h (generate_ascii_font): Fix return type.
26935
26936 * xfaces.c (generate_ascii_font): Fix arg declaration.
26937
26938 * coding.c (coding_inherit_eol_type)
26939 (Fset_terminal_coding_system_internal)
26940 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26941
269422008-02-01 Kenichi Handa <handa@m17n.org>
26943
bba3e508
SM
26944 * coding.c (decode_coding_charset, encode_coding_charset):
26945 Handle multiple charsets correctly.
aac0c6e3
MR
26946
269472008-02-01 Kenichi Handa <handa@m17n.org>
26948
26949 * search.c (boyer_moore): Fix handling of multibyte character
26950 translation.
26951
26952 * xdisp.c (display_mode_element): When the variable `elt' is
26953 changed, update `this' and `lisp_string'.
26954
269552008-02-01 Kenichi Handa <handa@m17n.org>
26956
26957 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26958
26959 * callproc.c (Fcall_process): Be sure to give the current buffer
26960 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26961
26962 * charset.c (struct charset_map_entries): New struct.
26963 (load_charset_map): Rename from parse_charset_map. New args
26964 entries and n_entries. Change caller.
26965 (load_charset_map_from_file): Rename from load_charset_map.
26966 Change caller. New arg control_flag. Call load_charset_map at
26967 the tail.
26968 (load_charset_map_from_vector): New function.
26969 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26970 (encode_char): If the charset is compact, change a character index
26971 to a code point.
26972
26973 * coding.c (coding_alloc_by_making_gap): Check the case that the
26974 source and destination are the same correctly.
26975 (decode_coding_raw_text): Set coding->consumed_char and
26976 coding->consumed to 0.
26977 (produce_chars): If coding->chars_at_source is nonzero, update
26978 coding->consumed_char and coding->consumed before calling
26979 alloc_destination.
26980 (Fdefine_coding_system_alias): Register ALIAS in
26981 Vcoding_system_alist.
26982 (syms_of_coding): Define `no-conversion' coding system at the tail.
26983
26984 * fileio.c (Finsert_file_contents): Set coding_system instead of
26985 val. If the current buffer is multibyte, always call
26986 decode_coding_gap.
26987
26988 * xfaces.c (try_font_list): Give higher priority to fontset's
26989 family than face's family.
26990
269912008-02-01 Kenichi Handa <handa@m17n.org>
26992
26993 * callproc.c (Fcall_process): Be sure to give the current buffer
26994 to decode_coding_c_string.
26995
26996 * xfaces.c (try_font_list): Give a family specified in a fontset
26997 higher priority than a family specified in a face.
26998
269992008-02-01 Kenichi Handa <handa@m17n.org>
27000
27001 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27002 Fix arguments to insert_from_buffer.
27003
27004 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27005
270062008-02-01 Kenichi Handa <handa@m17n.org>
27007
27008 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27009 (decode_coding_gap): Set coding->dst_multibyte correctly.
27010
270112008-02-01 Kenichi Handa <handa@m17n.org>
27012
27013 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27014 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27015 (encode_coding_utf_16): Substitute coding->default_char for
27016 non-Unicode characters.
27017 (decode_coding): Don't call record_insert here.
27018 (setup_coding_system): Initialize `surrogate' of
27019 coding->spec.utf_16 to 0.
27020 (EMIT_ONE_BYTE): Fix for multibyte case.
27021
27022 * insdel.c (insert_from_gap): Call record_insert.
27023
270242008-02-01 Kenichi Handa <handa@m17n.org>
27025
27026 * casefiddle.c (casify_region): Fix multibyte case.
27027
27028 * character.c (c_string_width): Add return type `int'.
27029 (char_string_with_unification): Delete arg ADVANCED.
27030
27031 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27032 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27033 (CHAR_STRING_ADVANCE): Make it do-while statement.
27034
27035 * chartab.c (sub_char_table_set_range): Optimize for the case
27036 DEPTH == 3. Add workaround code for a GCC optimization bug.
27037
27038 * charset.c (parse_charset_map): Remove an unused variable.
27039
27040 * coding.c: Delete unused variables.
27041
27042 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27043 earlier. If inserted is zero and the coding system doesn't
27044 require flushing, don't call decode_coding_gap.
27045
27046 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27047
270482008-02-01 Kenichi Handa <handa@m17n.org>
27049
27050 The following changes are for using Unicode as an internal
27051 character model, and use UTF-8 format for buffer/string
27052 representation.
27053
27054 * .gdbinit (xchartable): Adjust for the change of char table structure.
27055 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27056
27057 * Makefile.in (obj): Add character.o and chartab.o.
27058 (lisp, shortlisp): Remove utf-8.elc.
27059 (*.o): For many files, change dependency on charset.h to
27060 character.h, and add dependency on character.h.
27061 (character.o, chartab.o): New targets.
27062
27063 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27064 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27065 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27066 of "charset.h".
27067
27068 * dired.c, filelock.c: Include "character.h".
27069
27070 * alloc.c: Include "character.h" instead of "charset.h".
27071 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27072 (syms_of_alloc): Remove defsubr for Smake_char_table.
27073
27074 * buffer.c: Include "character.h" instead of "charset.h", don't
27075 include "coding.h".
27076 (Fset_buffer_multibyte): Adjust for UTF-8.
27077
27078 * buffer.h: EXFUN Fbuffer_live_p.
27079
27080 * callproc.c: Include "character.h" instead of "charset.h".
27081 (Fcall_process): Big change for the new code-conversion APIs.
27082
27083 * casetab.c: Include "character.h" instead of "charset.h".
27084 (set_canon, set_identity, shuffle): Adjust for the new
27085 map_char_table spec.
27086 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27087 accessing the char table structure.
27088
27089 * chartab.c: New file that implements char table.
27090
27091 * category.c: Include "character.h".
27092 (copy_category_entry): New function.
27093 (copy_category_table): Call map_char_table and copy_category_entry.
27094 (Fmake_category_table): Initialize all top-level slots.
27095 (char_category_set): New function.
27096 (modify_lower_category_set): Delete.
27097 (Fmodify_category_entry): Call char_table_ref_and_range.
27098
27099 * category.h (CATEGORY_SET): Just call char_category_set.
27100
27101 * ccl.c: Include "character.h".
27102 (Qccl, Qcclp): New variables.
27103 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27104 it's less than 256.
27105 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27106 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27107 and DST type.
27108 (ccl_driver): Change types of argument, adjust code accordingly.
27109 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27110 ccl_driver.
27111 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27112
27113 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27114 New members src_multibyte, dst_multibyte, consumed, and produced.
27115 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27116 (CODING_SPEC_CCL_PROGRAM): New macro.
27117 (ccl_driver): Update prototype.
27118 (Qccl, Qcclp, Fccl_program_p): Extern them.
27119 (CHECK_CCL_PROGRAM): New macro.
27120
27121 * character.c, character.h, chartab.c: New files.
27122
27123 * charset.c: Mostly re-written. Move character and multibyte sequence
27124 handling codes to character.c.
27125
27126 * charset.h: Mostly re-written. Move character and multibyte sequence
27127 handling codes to character.h.
27128
27129 * coding.c, coding.h: Mostly re-written.
27130
27131 * composite.c: Include "character.h" instead of "charset.h".
27132 (CHAR_WIDTH): Move to character.h.
27133 (HASH_KEY, HASH_VALUE): Delete.
27134
27135 * composite.h (enum composition_method): Change order of enumeration
27136 symbols.
27137
27138 * data.c: Include "character.h" instead of "charset.h".
27139 (Faref): Call CHAR_TABLE_REF for a char table.
27140 (Faset): Call CHAR_TABLE_SET for a char table.
27141
27142 * dispextern.h (free_realized_face, check_face_attribytes)
27143 (generate_ascii_font): Extern them.
27144 (free_realized_multibyte_face): Delete extern.
27145
27146 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27147 table structure.
27148
27149 * editfns.c: Include "character.h" instead of "charset.h".
27150 (Fchar_to_string): Always call CHAR_STRING.
27151
27152 * emacs.c (main): Call init_charset_once, init_charset,
27153 syms_of_chartab, and syms_of_character.
27154
27155 * fileio.c: Include "character.h" instead of "charset.h".
27156 (Finsert_file_contents): Big change for the new code-conversion API.
27157 (choose_write_coding_system, Fwrite_region): Likewise.
27158 (build_annotations_2): Delete.
27159 (e_write): Big change for the new code-conversion API.
27160
27161 * fns.c: Include "character.h" instead of "charset.h".
27162 (copy_sub_char_table): Move to chartab.c.
27163 (Fcopy_sequence): Call copy_char_table for a char table.
27164 (concat): Delete codes calling count_multibyte.
27165 (string_char_to_byte, string_byte_to_char): Adjust for the new
27166 multibyte form.
27167 (internal_equal): Adjust for the change of char table structure.
27168 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27169 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27170 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27171 (char_table_translate, optimize_sub_char_table)
27172 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27173 chartab.c.
27174 (char_table_ref_and_index): Delete.
27175 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27176 (Fmd5): Call preferred_coding_system instead of accessing
27177 Vcoding_category_list. Adjust for the new code-conversion API.
27178 (syms_of_fns): Move defsubr for char table related functions to
27179 chartab.c.
27180
27181 * fontset.c: Mostly re-written.
27182
27183 * fontset.h (struct font_info): Change type of the member encoding_type.
27184 (enum FONT_SPEC_INDEX): New enum.
27185 (fontset_font_pattern, fs_load_font): Update prototype.
27186 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27187
27188 * indent.c: Include "character.h" instead of "charset.h".
27189 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27190
27191 * insdel.c: Include "character.h" instead of "charset.h".
27192 (copy_text): Don't refer to Vnonascii_translation_table.
27193 (insert_from_gap): New function.
27194
27195 * keyboard.c: Include "character.h" instead of "charset.h".
27196 (command_loop_1): Never call direct_output_forward_char before
27197 a non-ASCII character.
27198 (read_char): If Vkeyboard_translate_table is a char table, always
27199 translate a character.
27200
27201 * keymap.c: Include "character.h".
27202 (store_in_keymap): Handle the case that IDX is a cons.
27203 (Fdefine_key): Handle the case that KEY is a cons and the car part
27204 is also a cons (range).
27205 (push_key_description): Adjust for the new character code.
27206 (describe_vector): Call describe_char_table for a char table.
27207 (describe_char_table): New function.
27208
27209 * keymap.h (describe_char_table): Extern it.
27210
27211 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27212 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27213 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27214 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27215 Delete.
27216 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27217 structure.
27218 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27219 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27220 (CHARTAB_SIZE_BITS_3): New macros.
27221 (chartab_size): Extern it.
27222 (struct Lisp_Char_Table): Re-design.
27223 (struct Lisp_Sub_Char_Table): New structure.
27224 (HASH_KEY, HASH_VALUE): Move from fns.c.
27225 (CHARACTERBITS): Define as 22.
27226 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27227 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27228 (GC_SUB_CHAR_TABLE_P): New macro.
27229 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 27230 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
27231 (init_character_once, syms_of_character, init_charset)
27232 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27233
27234 * lread.c: Include "character.h".
27235 (read_multibyte): New arg NBYTES.
27236 (read_escape): Change the meaning of returned *BYTEREP.
27237 (to_multibyte): Delete.
27238 (read1): Adjust the handling of char table and string.
27239
27240 * print.c: Include "character.h" instead of "charset.h".
27241 (print_string): Convert 8-bit raw bytes to octal form by
27242 string_escape_byte8.
27243 (print_object): Adjust for the new multibyte form. Print 8-bit
27244 raw bytes always in octal form. Handle sub char table correctly.
27245
27246 * process.c: Include "character.h" instead of "charset.h".
27247 (read_process_output, send_process): Adjust for the new
27248 code-conversion API.
27249
27250 * puresize.h (BASE_PURESIZE): Increase.
27251
27252 * regex.c: Include "character.h" instead of "charset.h".
27253 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27254 (regex_compile): Accept a range whose starting and ending
27255 character have different leading bytes.
27256 (analyse_first): Adjust for the above change.
27257
27258 * search.c: Include "character.h" instead of "charset.h".
27259 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27260 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27261
27262 * syntax.c: Include "character.h" instead of "charset.h".
27263 (syntax_parent_lookup): Delete.
27264 (Fmodify_syntax_entry): Accept a cons as CHAR.
27265 (skip_chars): Adjust for the new multibyte form.
27266 (init_syntax_once): Call char_table_set_range instead of directly
27267 accessing the structure of a char table.
27268
27269 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27270 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27271 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27272 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27273
27274 * term.c: Include "buffer.h" and "character.h".
27275 (encode_terminal_code, write_glyphs): Adjust for the new
27276 code-conversion API.
27277 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
27278
27279 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
27280
27281 * xdisp.c: Include "character.h".
27282 (get_next_display_element): Adjust for the new multibyte form.
27283 (disp_char_vector): Adjust for the new char table structure.
27284 (decode_mode_spec_coding): Adjust for the new structure of
27285 coding system.
27286 (decode_mode_spec): Adjust for the new code-conversion API.
27287
27288 * xfaces.c: Include "character.h" instead of "charset.h".
27289 (load_face_font): Adjust for the change of choose_face_font and
27290 FS_LOAD_FONT.
27291 (generate_ascii_font): New function.
27292 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
27293 (set_font_frame_param): Adjust for the change of choose_face_font.
27294 (free_realized_face): Make it public.
27295 (free_realized_faces_for_fontset): Rename from
27296 free_realized_multibyte_face. Free also faces realized for ASCII.
27297 (choose_face_font): Change arguments. Adjust for the change of
27298 fontset_font_pattern and FS_LOAD_FONT.
27299
27300 * xfns.c: Include "character.h".
27301 (x_encode_text): Adjust for the new code-conversion API.
27302
27303 * xselect.c: Don't include "charset.h".
27304 (selection_data_to_lisp_data): Adjust for the new code conversion API.
27305
27306 * xterm.c: Include "character.h".
27307 (x_encode_char): New argument CHARSET. Change caller.
27308 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
27309 Call ENCODE_CHAR instead of SPLIT_CHAR.
27310 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
27311 CHAR_WIDTH instead of CHARSET_WIDTH.
27312 (XTread_socket): Adjust for the new code-conversion API.
27313 (x_new_font): Adjust for the change of FS_LOAD_FONT.
27314 (x_load_font): Adjust for the change of struct font.
27315
273162008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
27317
27318 * xfaces.c (face_at_buffer_position): Remove unused vars.
27319
273202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27321
27322 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
27323 Fix overflow checking.
27324
273252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27326
27327 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
27328 Cancel previous change.
27329
273302008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27331
27332 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
27333 ccl->eight_bit_control. Fix check for buffer overflow.
27334 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
27335 (ccl_driver): Initialize extra_bytes to 0.
27336
273372008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27338
27339 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
27340 return it ORed with ctrl_modifier.
27341
273422008-01-29 Miles Bader <miles@gnu.org>
27343
27344 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
27345
273462008-01-28 Jason Rumney <jasonr@gnu.org>
27347
27348 * w32.c (stat): Don't double check for networked drive.
27349
273502008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
27351
27352 * window.c (run_window_configuration_change_hook): New function.
27353 Code extracted from set_window_buffer. Set the selected frame.
27354 (set_window_buffer): Use it.
27355 * window.h (run_window_configuration_change_hook): Declare.
27356 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
27357
27358 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
27359
273602008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
27361
27362 * Makefile.in: Remove references to unused macros.
27363
273642008-01-26 Eli Zaretskii <eliz@gnu.org>
27365
27366 * w32.c (g_b_init_get_sid_sub_authority)
27367 (g_b_init_get_sid_sub_authority_count): New static variables.
27368 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
27369 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
27370 (init_user_info): Use them to retrieve uid and gid.
27371 Use 500/513, the Windows defaults, as Administrator's uid/gid.
27372 (fstat): Use pw_uid and pw_gid from the_passwd structure for
27373 st_uid and st_gid of the file.
27374
273752008-01-26 Jason Rumney <jasonr@gnu.org>
27376
27377 * w32.c (logon_network_drive): New function.
27378 (stat): Use it.
27379
273802008-01-26 Chong Yidong <cyd@stupidchicken.com>
27381
27382 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
27383 invisible text covered with an ellipsis.
27384
273852008-01-25 Richard Stallman <rms@gnu.org>
27386
27387 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
27388 jump back to beginning. Move some other initializations after that.
27389 (Qwindow_text_change_functions, Vwindow_text_change_functions):
27390 New variables.
27391 (syms_of_xdisp): Init them.
27392
27393 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
27394
27395 * buffer.c (reset_buffer_local_variables):
27396 Implement `permanent-local-hook'.
27397 (Qpermanent_local_hook): New variable.
27398 (syms_of_buffer): Init and staticpro it.
27399
274002008-01-25 Michael Albinus <michael.albinus@gmx.de>
27401
27402 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
27403
274042008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
27405
27406 * fns.c (Fclrhash): Return TABLE.
27407
274082008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27409
27410 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
27411 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
27412 is set even without positional changes.
27413 (x_scroll_bar_clear): Set bar->redraw_needed_p.
27414
27415 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
27416
274172008-01-23 Jason Rumney <jasonr@gnu.org>
27418
27419 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
27420
27421 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
27422 the unicode range available in MULE by locale-coding-system.
27423 Improve dbcs lead byte detection. Set event timestamp and modifiers
27424 earlier.
27425
274262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27427
27428 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
27429 [MAC_OSX] (init_mac_osx_environment): Initialize it.
27430 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
27431 when used on child processes.
27432
274332008-01-21 Michael Albinus <michael.albinus@gmx.de>
27434
27435 * dbusbind.c (Fdbus_method_return_internal): Rename from
27436 Fdbus_method_return.
27437 (Fdbus_unregister_object): Move to dbus.el.
27438 (Fdbus_call_method, Fdbus_method_return_internal)
27439 (Fdbus_send_signal): Improve debug messages.
27440
274412008-01-20 Martin Rudalics <rudalics@gmx.at>
27442
27443 * undo.c (undo_inhibit_record_point): New variable.
27444 (syms_of_undo): Initialize it.
27445 (record_point): Don't record point when undo_inhibit_record_point
27446 is set.
27447
274482008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27449
27450 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27451
27452 * xdisp.c (Qauto_hscroll_mode): New var.
27453 (syms_of_xdisp): Initialize it.
27454 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27455 window's buffer.
27456 (hscroll_windows): Don't check automatic_hscrolling_p here.
27457
27458 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27459 vscroll if we're setting window-buffer to the value it already has.
27460
274612008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27462
27463 * m/intel386.h: Remove references to XENIX.
27464
274652008-01-17 Andreas Schwab <schwab@suse.de>
27466
27467 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27468 instead of HAVE_X86_64_LIB64_DIR.
27469 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27470
274712008-01-17 Glenn Morris <rgm@gnu.org>
27472
27473 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27474 to HAVE_X86_64_LIB64_DIR.
27475
274762008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27477
27478 * s/irix3-3.h:
27479 * s/irix4-0.h:
27480 * s/386-ix.h:
27481 * s/domain.h:
27482 * s/hpux9-x11r4.h:
27483 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27484
27485 * sysdep.c: Remove code containing references to symbols defined
27486 by unsupported systems.
27487
274882008-01-16 Glenn Morris <rgm@gnu.org>
27489
27490 * coding.c (select-safe-coding-system-function): Doc fix.
27491
274922008-01-15 Glenn Morris <rgm@gnu.org>
27493
27494 * config.in: Revert 2008-01-13 change: this is a generated file.
27495
274962008-01-13 Tom Tromey <tromey@redhat.com>
27497
27498 * lisp.h: Fix typo.
27499
275002008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27501
27502 * m/sequent-ptx.h:
27503 * m/sequent.h:
27504 * s/ptx.h:
27505 * s/ptx4-2.h:
27506 * s/ptx4.h: Remove files for systems no longer supported.
27507
27508 * callproc.c (Fcall_process): Fix previous change.
27509
275102008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27511
27512 * unexsunos4.c: Remove file, system not supported anymore.
27513
27514 * m/mips.h:
27515 * m/intel386.h:
27516 * callproc.c:
27517 * config.in:
27518 * ecrt0.c:
27519 * emacs.c:
27520 * fileio.c:
27521 * frame.c:
27522 * getpagesize.h:
27523 * keyboard.c:
27524 * lread.c:
27525 * process.c:
27526 * puresize.h:
27527 * sysdep.c:
27528 * systty.h:
27529 * syswait.h:
27530 * unexec.c:
27531 * xdisp.c:
27532 * alloc.c: Remove code containing references to symbols defined by
27533 unsupported systems.
27534
275352008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27536
27537 * coding.c (detect_coding_mask): Fix previous change.
27538
275392008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27540
27541 * coding.c (detect_coding_iso2022): New arg
27542 latin_extra_code_state. Allow Latin extra codes only
27543 when *latin_extra_code_state is nonzero.
27544 (detect_coding_mask): If there is a NULL byte, detect the encoding
27545 as UTF-16 or binary. If Latin extra codes exist, detect the
27546 encoding as ISO-2022 only when there's no other proper encoding is
27547 found.
27548
275492008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27550
27551 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27552 #ifdef MAC_OS.
27553
275542008-01-08 Richard Stallman <rms@gnu.org>
27555
27556 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27557
275582008-01-06 Nick Roberts <nickrob@snap.net.nz>
27559
27560 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27561 menu bar in parentheses.
27562
275632008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27564
27565 * m/7300.h:
27566 * m/acorn.h:
27567 * m/alliant-2800.h:
27568 * m/alliant.h:
27569 * m/alliant1.h:
27570 * m/alliant4.h:
27571 * m/altos.h:
27572 * m/amdahl.h:
27573 * m/apollo.h:
27574 * m/att3b.h:
27575 * m/aviion-intel.h:
27576 * m/aviion.h:
27577 * m/celerity.h:
27578 * m/clipper.h:
27579 * m/cnvrgnt.h:
27580 * m/convex.h:
27581 * m/cydra5.h:
27582 * m/delta88k.h:
27583 * m/dpx2.h:
27584 * m/dual.h:
27585 * m/elxsi.h:
27586 * m/f301.h:
27587 * m/gould-np1.h:
27588 * m/gould.h:
27589 * m/i860.h:
27590 * m/ibmps2-aix.h:
27591 * m/ibmrt-aix.h:
27592 * m/ibmrt.h:
27593 * m/irist.h:
27594 * m/is386.h:
27595 * m/isi-ov.h:
27596 * m/mega68.h:
27597 * m/mg1.h:
27598 * m/news-r6.h:
27599 * m/news-risc.h:
27600 * m/news.h:
27601 * m/nh3000.h:
27602 * m/nh4000.h:
27603 * m/ns16000.h:
27604 * m/ns32000.h:
27605 * m/nu.h:
27606 * m/orion.h:
27607 * m/orion105.h:
27608 * m/paragon.h:
27609 * m/pfa50.h:
27610 * m/plexus.h:
27611 * m/pyramid.h:
27612 * m/pyrmips.h:
27613 * m/sh3el.h:
27614 * m/sps7.h:
27615 * m/sr2k.h:
27616 * m/stride.h:
27617 * m/sun1.h:
27618 * m/sun2.h:
27619 * m/sun3-68881.h:
27620 * m/sun3-fpa.h:
27621 * m/sun3-soft.h:
27622 * m/sun3.h:
27623 * m/sun386.h:
27624 * m/symmetry.h:
27625 * m/tad68k.h:
27626 * m/tahoe.h:
27627 * m/targon31.h:
27628 * m/tek4300.h:
27629 * m/tekxd88.h:
27630 * m/tower32.h:
27631 * m/tower32v3.h:
27632 * m/ustation.h:
27633 * m/wicat.h:
27634 * m/xps100.h:
27635 * s/cxux.h:
27636 * s/cxux7.h:
27637 * s/dgux.h:
27638 * s/dgux4.h:
27639 * s/dgux5-4-3.h:
27640 * s/dgux5-4r2.h:
27641 * s/esix.h:
27642 * s/esix5r4.h:
27643 * s/hiuxmpp.h:
27644 * s/hiuxwe2.h:
27645 * s/iris3-5.h:
27646 * s/iris3-6.h:
27647 * s/isc2-2.h:
27648 * s/isc3-0.h:
27649 * s/isc4-0.h:
27650 * s/isc4-1.h:
27651 * s/newsos5.h:
27652 * s/newsos6.h:
27653 * s/osf1.h:
27654 * s/osf5-0.h:
27655 * s/riscix1-1.h:
27656 * s/riscix12.h:
27657 * s/sco4.h:
27658 * s/sco5.h:
27659 * s/sunos4-0.h:
27660 * s/sunos4-1.h:
27661 * s/sunos413.h:
27662 * s/sunos4shr.h:
27663 * s/umax.h:
27664 * s/unipl5-2.h:
27665 * s/xenix.h:
27666 * cxux-crt0.s:
27667 * unexapollo.c:
27668 * unexconvex.c:
27669 * unexenix.c:
27670 * unexsni.c: Remove files for systems no longer supported.
27671
27672 * m/intel386.h: Remove references to unsupported systems.
27673
27674 * w32.c (get_emacs_configuration): Remove reference to i860.
27675
27676 * sysdep.c: Remove dead code.
27677
276782008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27679
27680 * s/rtu.h:
27681 * m/masscomp.h: Remove files. Platform is obsolete.
27682
276832008-01-04 Michael Albinus <michael.albinus@gmx.de>
27684
27685 * dbusbind.c (Fdbus_method_return): New function.
27686 (xd_read_message): Add the serial number to the event.
27687 (Fdbus_register_method): Activate the function.
27688
276892008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27690
27691 * keyboard.c (read_key_sequence): Fix typo.
27692
276932008-01-03 Michael Albinus <michael.albinus@gmx.de>
27694
27695 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27696 (xd_signature, xd_append_arg): Handle element type detection for
27697 empty arrays.
27698 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27699 SDATA () calls; this must be solved more general.
27700 (Fdbus_register_signal): Use SBYTES instead of strlen.
27701
277022008-01-03 Magnus Henoch <magnus@zemdatav>
27703
27704 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27705 unsigned int for byte values (necessary for big-endian platform).
27706 (Fdbus_call_method): Handle the case of no returned arguments.
27707
277082007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27709
27710 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27711
277122007-12-31 Magnus Henoch <mange@freemail.hu>
27713
27714 * dbusbind.c (xd_signature): Signature of variant is just "v".
27715
277162007-12-30 Michael Albinus <michael.albinus@gmx.de>
27717
27718 * dbusbind.c: Fix several errors and compiler warnings.
27719 Reported by Tom Tromey <tromey@redhat.com>.
27720 (XD_ERROR, XD_DEBUG_MESSAGE)
27721 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27722 (xd_append_arg): Part for basic D-Bus types rewritten.
27723 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27724 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27725 appropriate.
27726 (xd_read_message): Return Qnil. Don't signal an error; it is not
27727 useful during event reading.
27728 (Fdbus_register_signal): Signal an error if the check for
27729 FUNCTIONP fails.
27730 (Fdbus_register_method): New function. The implementation is not
27731 complete, the call of the function signals an error therefore.
27732 (Fdbus_unregister_object): New function, renamed from
27733 Fdbus_unregister_signal. The initial check signals an error, if
27734 the object is not well formed.
27735
277362007-12-30 Richard Stallman <rms@gnu.org>
27737
27738 * textprop.c (get_char_property_and_overlay):
27739 Signal error if POSITION is out of range in a buffer.
27740
277412007-12-29 Martin Rudalics <rudalics@gmx.at>
27742
27743 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27744 because the original parameters are in pure storage now.
27745
277462007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27747
27748 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27749
277502007-12-22 Eli Zaretskii <eliz@gnu.org>
27751
27752 * callint.c (syms_of_callint) <command-history>: Add reference to
27753 history-length in the doc string.
27754
277552007-12-17 Jason Rumney <jasonr@gnu.org>
27756
27757 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27758 before passing as wParam.
27759
277602007-12-22 Michael Albinus <michael.albinus@gmx.de>
27761
27762 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27763 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27764 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27765 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27766 as number.
27767 (Fdbus_call_method): Fix docstring.
27768
277692007-12-21 Michael Albinus <michael.albinus@gmx.de>
27770
27771 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27772 New macros.
27773 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27774 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27775 Simplify.
27776 (xd_signature): New function.
27777 (xd_append_arg): Compute also signatures. Major rewrite.
27778 (xd_retrieve_arg): Make debug messages friendly.
27779 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27780 Check for signatures of arguments.
27781
277822007-12-19 Michael Albinus <michael.albinus@gmx.de>
27783
27784 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27785 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27786 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27787 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27788 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27789 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27790 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27791 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27792 (xd_retrieve_value): Remove. Functionality included in ...
27793 (xd_append_arg): New function.
27794 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27795
277962007-12-16 Michael Albinus <michael.albinus@gmx.de>
27797
27798 * dbusbind.c (top): Include <stdio.h>.
27799 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27800 dbus_message_new_method_call and dbus_message_new_signal.
27801 (Fdbus_register_signal): Rename unique_name to uname.
27802 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27803 non-existing unique name. Fix typos in matching rule. Return an
27804 object which is useful in Fdbus_unregister_signal.
27805 (Fdbus_unregister_signal): Reimplementation, in order to remove
27806 only the corresponding entry.
27807 (Vdbus_registered_functions_table): Change the order of entries.
27808 Apply these changes in xd_read_message and Fdbus_register_signal.
27809
278102007-12-16 Andreas Schwab <schwab@suse.de>
27811
27812 * fileio.c (Finsert_file_contents): Fix overflow check to not
27813 depend on undefined integer overflow.
27814
278152007-12-14 Jason Rumney <jasonr@gnu.org>
27816
27817 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27818 for characters above 127.
27819
278202007-12-13 Jason Rumney <jasonr@gnu.org>
27821
27822 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27823 before dereferencing array.
27824 (lookup_vk_code): Remove zero comparison.
27825
278262007-12-14 Michael Albinus <michael.albinus@gmx.de>
27827
27828 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27829 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27830 Use `unsigned int' instead of `uint'.
27831 (xd_read_message, Fdbus_register_signal): Split expressions into
27832 multiple lines before operators "&&" and "||", according to the
27833 GNU Coding Standards.
27834
278352007-12-14 Eli Zaretskii <eliz@gnu.org>
27836
27837 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27838
278392007-12-12 Juri Linkov <juri@jurta.org>
27840
27841 * buffer.c (Frename_buffer): In interactive spec replace
27842 `read-buffer' with `read-string' that uses `buffer-name-history'
27843 as history, and the current buffer's name as default.
27844
278452007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27846
27847 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27848 manipulating the backtrace manually.
27849 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27850 (struct backtrace, backtrace_list): Remove.
27851 (command_loop_1): Remove dead var `no_direct'.
27852
27853 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27854 preserve non-built-in buffer-local variables.
27855 (Fkill_all_local_variables): Don't re-create&re-set permanent
27856 buffer-local variables.
27857
278582007-12-09 Juri Linkov <juri@jurta.org>
27859
27860 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27861 Lisp code that uses `read-buffer' with current buffer as default.
27862
278632007-12-08 Michael Albinus <michael.albinus@gmx.de>
27864
27865 * dbusbind.c (xd_read_message): Generate an event for every
27866 registered handler. There might be several handlers registered
27867 for the same signal.
27868 (Fdbus_register_signal): Don't overwrite a registration for the
27869 same signal. Add a new registration if handlers are different.
27870 (Vdbus_registered_functions_table): Rework doc string.
27871
278722007-12-07 Michael Albinus <michael.albinus@gmx.de>
27873
27874 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27875 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27876 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27877 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27878 Unify argument lists.
27879 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27880 arguments and hash table keys. Use unique name for service.
27881 (Fdbus_unregister_signal): Remove checks.
27882 (Vdbus_registered_functions_table): Fix doc string.
27883
278842007-12-05 Magnus Henoch <mange@freemail.hu>
27885
27886 * process.c (make_process): Initialize pty_flag to 0.
27887
278882007-12-05 Jason Rumney <jasonr@gnu.org>
27889
27890 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27891 specified XBMs.
27892
278932007-12-05 Richard Stallman <rms@gnu.org>
27894
27895 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27896
278972007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27898
27899 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27900 New variable.
27901 (mac_try_close_socket) [MAC_OSX]: New function.
27902 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27903 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27904
27905 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27906 Use mac_try_close_socket.
27907
279082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27909
27910 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27911 reloc_base.
27912 (copy_dysymtab): Compute relocation base here.
27913 (rebase_reloc_address) [__ppc64__]: New function.
27914 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27915 changed.
27916
279172007-12-05 Jason Rumney <jasonr@gnu.org>
27918
27919 * w32proc.c (sys_spawnve): Quote args with wildcards.
27920
279212007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27922
27923 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27924 __objc_* sections.
27925 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27926
279272007-12-05 Michael Albinus <michael.albinus@gmx.de>
27928
27929 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27930 Move check for Vdbus_registered_functions_table to
27931 xd_read_queued_messages.
27932 (xd_read_queued_messages): Protect xd_read_message calls by
27933 internal_condition_case_1.
27934
279352007-12-04 Michael Albinus <michael.albinus@gmx.de>
27936
27937 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27938 Qdbus_system_bus and Qdbus_session_bus, respectively.
27939 (Vdbus_intern_symbols): Remove.
27940 (Vdbus_registered_functions_table): New hash table.
27941 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27942 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27943 Rewrite in order to manage registered functions by hash table
27944 Vdbus_registered_functions_table.
27945
279462007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27947
27948 * xterm.c: Update URL to Window Manager Specification in comment.
27949
279502007-12-02 Michael Albinus <michael.albinus@gmx.de>
27951
27952 * config.in (HAVE_DBUS): Add.
27953
27954 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27955 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27956 (obj): Add $(DBUS_OBJ).
27957 (LIBES): Add $(DBUS_LIBS).
27958 (dbusbind.o): New target.
27959
27960 * dbusbind.c: New file.
27961
27962 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27963
27964 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27965 (Qdbus_event): New Lisp symbol.
27966 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27967 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27968 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27969
27970 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27971
279722007-12-01 Richard Stallman <rms@gnu.org>
27973
27974 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27975
279762007-11-30 Jason Rumney <jasonr@gnu.org>
27977
27978 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27979 (w32con_reset_terminal_modes): Clear screen buffer.
27980 (w32_face_attributes): Don't use color indexes that are out of range.
27981 Only reverse the default colors.
27982
27983 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27984 WINDOWSNT.
27985
27986 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27987
279882007-11-29 Jason Rumney <jasonr@gnu.org>
27989
27990 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27991 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27992 if the terminal colors are initialized.
27993 (unspecified_fg, unspecified_bg): Remove unused declarations.
27994
279952007-11-29 Andreas Schwab <schwab@suse.de>
27996
27997 * keyboard.c (apply_modifiers): Fix typo.
27998
279992007-11-29 Richard Stallman <rms@gnu.org>
28000
28001 * keymap.c (Fcurrent_local_map): Doc fix.
28002
280032007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28004
28005 * s/gnu-kfreebsd.h: New file.
28006
280072007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28008
28009 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28010 Don't cast redundantly.
28011
28012 * keyboard.c (KEY_TO_CHAR): New macro.
28013 (parse_modifiers, apply_modifiers): Accept integer arguments.
28014 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28015 for chars and symbol keys.
28016 After doing such remapping, apply function-key-map again.
28017
280182007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28019
28020 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28021 compiled anymore.
28022
280232007-11-26 Andreas Schwab <schwab@suse.de>
28024
28025 * process.c (list_processes_1): Fix indentation level of the
28026 command column.
28027
280282007-11-23 Andreas Schwab <schwab@suse.de>
28029
28030 * editfns.c (Fformat): Handle %c specially since it requires the
28031 argument to be of type int.
28032
280332007-11-23 Markus Triska <markus.triska@gmx.at>
28034
28035 * emacs.c (main): Call init_editfns before init_process, since
28036 init_process sets Vprocess_connection_type depending on OS release.
28037
280382007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28039
28040 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28041 (find_symbol_value): Use do_symval_forwarding.
28042
28043 * data.c (set_internal): Set the value in the `cons-cell' (for
28044 Buffer_Local_values) not only for frame-local variables.
28045
280462007-11-22 Andreas Schwab <schwab@suse.de>
28047
28048 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28049 values to sprintf.
28050 * keymap.c (Fsingle_key_description): Likewise.
28051 * print.c (print_object): Likewise.
28052
280532007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28054
28055 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28056 file for image is nil.
28057
280582007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28059
28060 * term.c: Include stdarg.h.
28061 (fatal): Implement using varargs.
28062 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28063
280642007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28065
28066 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28067 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28068 Update call to buffer_slot_type_mismatch.
28069 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28070 (buffer_slot_type_mismatch): Update.
28071 * buffer.c (buffer_local_types): Remove.
28072 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28073 (defvar_per_buffer): Set the type in the buffer_objfwd.
28074
280752007-11-21 Jason Rumney <jasonr@gnu.org>
28076
28077 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28078 CreateFileMapping returns NULL on failure.
28079
280802007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28081
28082 * search.c (Fset_match_data): Remove the `evaporate' feature.
28083 (unwind_set_match_data): Don't use the `evaporate' feature.
28084
280852007-11-21 Jason Rumney <jasonr@gnu.org>
28086
28087 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28088
28089 * w32console.c (w32con_write_glyphs): Remove unused variables.
28090
280912007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28092
28093 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28094
28095 * s/darwin.h (MULTI_KBOARD): Remove.
28096
28097 * macfns.c (x_create_tip_frame, Fx_create_frame)
28098 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28099
281002007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28101
28102 * buffer.c (Fbuffer_local_value): Remove redundant test.
28103 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28104 than in `current-buffer' to match the comment.
28105 Do the swap using swap_in_global_binding.
28106
28107 * data.c (store_symval_forwarding, set_internal):
28108 * eval.c (specbind): Remove dead code.
28109
28110 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28111 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28112 Since we do not want to see internal Lisp_*fwd objects here.
28113
281142007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28115
28116 * sysdep.c (init_system_name): Use getaddrinfo if available.
28117
28118 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28119 (x_scroll_bar_note_movement): start, end, with, height in struct
28120 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28121
281222007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28123
28124 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28125
281262007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28127
28128 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28129 This undoes Richard's change of 14-Oct-2002.
28130
28131 * alloc.c (allocate_other_vector):
28132 * lisp.h (allocate_other_vector): Remove.
28133
28134 * window.c (struct save_window_data): Move non-lisp data to the end
28135 and make it `int' rather than Lisp_Object.
28136 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28137 Done wrap/unwrap integer values.
28138 (Fset_window_configuration, compare_window_configurations):
28139 Update use of fields to their new types.
28140
28141 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28142 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28143 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28144 (SET_SCROLL_BAR_X_WINDOW): Remove.
28145 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28146 Access the new x_window field directly.
28147 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28148 Don't wrap/unwrap integers into Lisp_Objects.
28149 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28150 (x_scroll_bar_report_motion):
28151 Don't wrap/unwrap integers into Lisp_Objects.
28152 (x_term_init): Use SDATA.
28153 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28154 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28155 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28156 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28157 * xfns.c (x_set_background_color):
28158 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28159 Access the new x_window field directly.
28160
28161 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28162 (allocate_pseudovector): Make non-static.
28163
28164 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28165 (allocate_pseudovector): Declare.
28166 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28167
281682007-11-15 Andreas Schwab <schwab@suse.de>
28169
28170 * editfns.c (Fformat): Correctly format EMACS_INT values.
28171 Also take precision into account when formatting an integer.
28172
28173 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28174
281752007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28176
28177 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28178 (syms_of_keyboard): Defsubr it.
28179
28180 * data.c (swap_in_global_binding): Fix longstanding bug where
28181 store_symval_forwarding was not called with the right second argument,
28182 thus causing objfwd-ing from being dropped.
28183
281842007-11-14 Juanma Barranquero <lekktu@gmail.com>
28185
28186 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28187 (Fx_display_pixel_height, Fx_display_planes)
28188 (Fx_display_color_cells, Fx_server_max_request_size)
28189 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28190 (Fx_display_visual_class, Fx_display_save_under):
28191 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28192 (Fx_display_pixel_height, Fx_display_planes)
28193 (Fx_display_color_cells, Fx_server_max_request_size)
28194 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28195 (Fx_display_mm_height, Fx_display_mm_width)
28196 (Fx_display_backing_store, Fx_display_visual_class)
28197 (Fw32_select_font, Fx_display_save_under):
28198 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28199 (Fx_display_pixel_height, Fx_display_planes)
28200 (Fx_display_color_cells, Fx_server_max_request_size)
28201 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28202 (Fx_display_save_under): Fix typos in docstrings.
28203
282042007-11-14 Juanma Barranquero <lekktu@gmail.com>
28205
28206 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28207 corresponding to deleted entries; they are an implementation detail.
28208 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28209 Remove variables.
28210 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28211 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28212 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28213 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28214 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28215 (Fw32_define_rgb_color, Fw32_load_color_file)
28216 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28217 Fix typos in docstrings.
28218 (Fx_server_version): Reflow docstring.
28219 (Fw32_shell_execute): Doc fixes.
28220
282212007-11-13 Juanma Barranquero <lekktu@gmail.com>
28222
28223 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28224 if w32_parse_hot_key returned nil.
28225
282262007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28227
28228 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28229
282302007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 28231
aac0c6e3
MR
28232 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28233
28234 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28235
28236 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28237 Remove W32_SCROLL_BAR_CLICK_EVENT.
28238
28239 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28240 Add MULTIMEDIA_KEY_EVENT.
28241
28242 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28243 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28244 (make_lispy_event) [WINDOWSNT]: Use it to translate
28245 MULTIMEDIA_KEY_EVENT.
28246
28247 * w32term.h (WM_APPCOMMAND): Define if not already.
28248 (GET_APPCOMMAND_LPARAM): Likewise.
28249
28250 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28251 WM_APPCOMMAND.
28252
28253 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28254 (syms_of_w32fns): Export and initialize it.
28255 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28256
282572007-11-09 Chong Yidong <cyd@stupidchicken.com>
28258
28259 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28260 twice.
28261
28262 * xdisp.c (handle_face_prop): Fix last change.
28263
282642007-11-09 Richard Stallman <rms@gnu.org>
28265
28266 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28267 not just for after-strings and before-strings.
28268 Call face_for_overlay_string and pass the overlay to it.
28269 (handle_display_prop): Determine whether property came from an overlay.
28270 Pass OVERLAY arg to handle_single_display_spec.
28271 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28272 (load_overlay_strings): Fill in it->string_overlays.
28273 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28274
28275 * xfaces.c (face_for_overlay_string): Function renamed from
28276 face_at_buffer_position_no_overlays, and add arg OVERLAY.
28277
28278 * dispextern.h (struct it): New elt string_overlays.
28279 New elt from_overlay, also in stack.
28280 Rearrange a few elements.
28281 (face_for_overlay_string): Decl renamed from
28282 face_at_buffer_position_no_overlays, and add argument.
28283
282842007-11-09 Richard Stallman <rms@gnu.org>
28285
28286 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
28287 to get the base face for an overlay string.
28288
28289 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
28290
28291 * xfaces.c (face_at_buffer_position_no_overlays): New function.
28292
28293 * xdisp.c (handle_stop): Move some code out of loop.
28294
282952007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28296
28297 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
28298 Fix conversion from Lisp object to ATSUFontID.
28299
283002007-11-09 Jason Rumney <jasonr@gnu.org>
28301
28302 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
28303
283042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28305
28306 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
28307 Don't assume regions are aligned to page boundary.
28308 (print_load_command_name): Add LC_UUID if defined.
28309
283102007-11-09 Richard Stallman <rms@gnu.org>
28311
28312 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
28313
283142007-11-07 Jason Rumney <jasonr@gnu.org>
28315
28316 * s/windows95.h: Remove.
28317
283182007-11-06 Jan Djärv <jan.h.d@swipnet.se>
28319
28320 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
28321 abort with a message on unhandled store_type values.
28322
283232007-11-01 Jan Djärv <jan.h.d@swipnet.se>
28324
28325 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
28326 Remove HAVE_X11R5 and HAVE_X11R4.
28327
283282007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28329
28330 * Makefile.in: Remove references to sunfns.c and sunfns.o.
28331
283322007-11-01 Johan Bockgård <bojohan@gnu.org>
28333
28334 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
28335 Don't set s->stippled_p here, since it has already been set by
28336 x_set_glyph_string_gc from x_draw_glyph_string.
28337
283382007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28339
28340 * sunfns.c: Remove file.
28341
28342 * m/sun386.h:
28343 * m/sun2.h:
28344 * m/sparc.h: Remove Sun windows code.
28345
283462007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
28347
28348 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
28349 (init_keyboard): Set current_kboard's window-system to nil.
28350 (tty_read_avail_input): Typo.
28351 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
28352
283532007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
28354
28355 * s/usg5-4.h:
28356 * s/usg5-3.h:
28357 * s/ptx.h:
28358 * m/is386.h:
28359 * m/ibmps2-aix.h:
28360 * Makefile.in: Remove all mentions of X10.
28361
28362 * dispnew.c (syms_of_display): Don't mention version 10.
28363
283642007-10-28 Juanma Barranquero <lekktu@gmail.com>
28365
28366 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
28367 ($(BLD)/abbrev.$(O)): Remove.
28368
283692007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
28370
28371 Rewrite abbrev.c in Elisp.
28372 * image.c (Qcount): Don't declare as extern.
28373 (syms_of_image): Initialize and staticpro `Qcount'.
28374 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
28375 * emacs.c (main): Don't call syms_of_abbrev.
28376 * Makefile.in (obj): Remove abbrev.o.
28377 (abbrev.o): Remove.
28378 * abbrev.c: Remove.
28379
283802007-10-26 Martin Rudalics <rudalics@gmx.at>
28381
28382 * window.c (window_min_size_2): Don't count header-line.
28383
283842007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
28385
28386 * frame.h (struct frame): Move all bit fields after the first bit
28387 field to take advantage of the available space. Group all the
28388 chars together to reduce wasted space due to padding.
28389
283902007-10-26 Juanma Barranquero <lekktu@gmail.com>
28391
28392 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
28393
28394 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
28395 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
28396 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
28397 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
28398 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
28399 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
28400 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
28401 (last_marked, mark_object_loop_halt): Make static.
28402
28403 * frame.c (syms_of_frame) <delete-frame-functions>:
28404 Fix typo in docstring.
28405
284062007-10-25 Juanma Barranquero <lekktu@gmail.com>
28407
28408 * w32.c (init_environment): Fix tiny memory leak.
28409 (w32_get_resource): Remove unused variable `ok'.
28410
284112007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
28412
28413 Make `window-system' into a keyboard-local variable (rather than
28414 frame-local as done originally by multi-tty).
28415
28416 * keyboard.h (struct kboard): Add Vwindow_system.
28417 * keyboard.c (init_kboard): Set a default for Vwindow_system.
28418 (mark_kboards): Mark Vwindow_system.
28419
28420 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
28421 (init_display): Don't set the obsolete `window-system' frame-param.
28422
28423 * xterm.c (x_term_init):
28424 * w32term.c (w32_create_terminal):
28425 * term.c (init_tty): Set Vwindow_system.
28426 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
28427 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
28428
28429 * xfns.c (Fx_create_frame, x_create_tip_frame):
28430 * w32fns.c (Fx_create_frame, x_create_tip_frame):
28431 * macfns.c (Fx_create_frame):
28432 Don't set the obsolete `window-system' frame-param.
28433
28434 * frame.h (Qwindow_system): Remove.
28435 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
28436 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
28437
284382007-10-24 Richard Stallman <rms@gnu.org>
28439
28440 * frame.c (x_figure_window_size): For fullscreen case,
28441 set USPosition | PPosition without clobbering rest of window_prompting.
28442
28443 * keyboard.c (Fcurrent_idle_time): Doc fix.
28444
28445 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28446
284472007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28448
28449 * process.c (unwind_request_sigio): Only define if __ultrix__.
28450
28451 * callproc.c (child_setup): Remove spurious *.
28452
28453 * lisp.h (Fget_text_property): Declare.
28454 (have_menus_p): Declare it here rather than in sys-dep header files.
28455 * macterm.h (have_menus_p):
28456 * msdos.h (have_menus_p):
28457 * xterm.h (have_menus_p): Remove.
28458
28459 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28460 (Fmake_variable_frame_local): Just check the variable's const-ness
28461 rather than checking nil or t.
28462
284632007-10-22 Jason Rumney <jasonr@gnu.org>
28464
28465 * w32fns.c: Include math.h.
28466 (w32_abort): Declaration moved to nt/config.nt.
28467
28468 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28469 (abort): Redefinition moved to nt/config.nt.
28470
28471 * m/windowsnt.h: Remove.
28472
284732007-10-22 Juanma Barranquero <lekktu@gmail.com>
28474
28475 * emacs.c (Fdump_emacs): Fix typo in message.
28476 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28477 <installation-directory>: Reflow docstring.
28478
284792007-10-22 Juri Linkov <juri@jurta.org>
28480
28481 * minibuf.c: Allow minibuffer default to be a list of default values.
28482 With empty input use the first element of this list as returned default.
28483 (string_to_object)
28484 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28485 (read_minibuf): If defalt is cons, set histstring to its car.
28486 (Fread_string): If default_value is cons, set val to its car.
28487 (Fread_buffer): If def is cons, use its car.
28488 (Fcompleting_read): If defalt is cons, set val to its car.
28489
284902007-10-21 Michael Albinus <michael.albinus@gmx.de>
28491
28492 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28493
284942007-10-20 Juanma Barranquero <lekktu@gmail.com>
28495
28496 * doc.c (Fdocumentation): Check for advice in all cases.
28497
284982007-10-19 Chong Yidong <cyd@stupidchicken.com>
28499
28500 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28501
285022007-10-19 Richard Stallman <rms@gnu.org>
28503
28504 * doc.c (Fdocumentation): Check for and handle an advised function.
28505
285062007-10-19 Juanma Barranquero <lekktu@gmail.com>
28507
28508 * process.c (Fset_process_filter): Doc fix.
28509
285102007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28511
28512 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28513 which caused key-translation-map to applied repeatedly (thus breaking
28514 double-mode).
28515
285162007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28517
28518 * xselect.c (x_own_selection, x_handle_selection_clear)
28519 (x_clear_frame_selections):
28520 * w32menu.c (list_of_panes, list_of_items):
28521 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28522 * textprop.c (validate_plist, interval_has_all_properties)
28523 (interval_has_some_properties, interval_has_some_properties_list)
28524 (add_properties, text_property_list):
28525 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28526 * minibuf.c (Fassoc_string):
28527 * macselect.c (x_own_selection, x_clear_frame_selections)
28528 (Fx_disown_selection_internal):
28529 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28530 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28531
285322007-10-17 Chong Yidong <cyd@stupidchicken.com>
28533
28534 * process.c: Link to libs for calling res_init() if available.
28535 (Fmake_network_process): Call res_init() before getaddrinfo or
28536 gethostbyname, if possible.
28537
285382007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28539
28540 * lread.c (read1): Set pvectype for char_tables.
28541
28542 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28543 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28544 Add type checks.
28545 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28546
28547 * alloc.c (free_misc): Use XMISCTYPE.
28548 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28549
285502007-10-17 Glenn Morris <rgm@gnu.org>
28551
28552 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28553 (syms_of_minibuf): Add Qcompletion_ignore_case.
28554 * dired.c (Qcompletion_ignore_case): Change to external.
28555 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28556 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28557 (Fread_file_name): Use it rather than intern'ing.
28558
28559 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28560 (Fread_coding_system): Ignore case of user input.
28561
285622007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28563
28564 * xdisp.c (handle_display_prop): Ignore display specs after
28565 replacing one when string text is being replaced.
28566 (handle_single_display_spec): Pretend as if characters with display
28567 property haven't been consumed only when buffer text is being replaced.
28568
285692007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28570
28571 * xfns.c (Fx_create_frame, Fx_display_list):
28572 * window.c (window_fixed_size_p, enlarge_window)
28573 (shrink_window_lowest_first):
28574 * macterm.c (init_font_name_table):
28575 * macfns.c (Fx_create_frame, Fx_display_list):
28576 * lread.c (close_load_descs):
28577 * keyboard.c (read_char_x_menu_prompt):
28578 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28579 * coding.c (code_convert_region_unwind): Test the type of an object
28580 rather than just !NILP before extracting data from it.
28581
28582 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28583
28584 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28585 (XMISCANY): New macro.
28586 (XMISCTYPE): Use it.
28587 (struct Lisp_Misc_Any): New type.
28588 (union Lisp_Misc): Use it.
28589 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28590 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28591 (find_symbol_value, set_internal, default_value, Fset_default)
28592 (Fmake_variable_buffer_local, Fmake_local_variable)
28593 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28594 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28595 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28596 * alloc.c (allocate_buffer): Set the size and tag.
28597 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28598 Use XMISCANY.
28599 (die): Follow the GNU convention for error messages.
28600 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28601 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28602 tag any more.
28603 (set_buffer_internal_1):
28604 * frame.c (store_frame_param):
28605 * eval.c (specbind):
28606 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28607
28608 * doc.c (Fsnarf_documentation): Simplify.
28609
286102007-10-14 Juanma Barranquero <lekktu@gmail.com>
28611
28612 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28613 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28614
286152007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28616
28617 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28618
286192007-10-14 Juanma Barranquero <lekktu@gmail.com>
28620
28621 * eval.c (do_autoload): Don't save autoloads.
28622
28623 * data.c (Ffset): Save autoload of the function being set.
28624
286252007-10-07 John Paul Wallington <jpw@pobox.com>
28626
28627 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28628 parameter before setting up faces.
28629
286302007-10-13 Eli Zaretskii <eliz@gnu.org>
28631
28632 * ccl.c (Fregister_code_conversion_map):
28633 * keyboard.c (append_tool_bar_item): Reformat last change.
28634
28635 * lisp.h (eabs): Rename from `abs'. All callers changed.
28636
286372007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28638
28639 * buffer.c (add_overlay_mod_hooklist):
28640 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28641 * fontset.c (make_fontset):
28642 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28643 (append_tool_bar_item):
28644 * macmenu.c (grow_menu_items):
28645 * w32menu.c (grow_menu_items):
28646 * xmenu.c (grow_menu_items): Use larger_vector.
28647
286482007-10-13 Eli Zaretskii <eliz@gnu.org>
28649
28650 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28651 selected frame'' on MSDOS).
28652
286532007-10-12 Martin Rudalics <rudalics@gmx.at>
28654
28655 * frame.c (Qexplicit_name): New variable.
28656 (x_report_frame_params): Report it in parameter alist.
28657 (syms_of_frame): Intern and staticpro it.
28658
286592007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28660
28661 * macfns.c (x_create_tip_frame): Set terminal for frame.
28662
286632007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28664
28665 * frame.c (Qenvironment): Remove.
28666 (syms_of_frame) <Qenvironment>: Don't initialize.
28667 (Fdelete_frame): Don't treat the `environment' param specially.
28668 * frame.h (Qenvironment): Don't declare.
28669 * callproc.c (set_initial_environment): Don't set unused frame param.
28670
28671 * frame.c (Fframe_with_environment): Remove.
28672 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28673
28674 * lisp.h (Fframe_with_environment): Don't declare.
28675
286762007-10-10 Juanma Barranquero <lekktu@gmail.com>
28677
28678 * indent.c (indent_tabs_mode, last_known_column)
28679 (last_known_column_modified): Make static.
28680 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28681
286822007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28683
28684 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28685
286862007-10-09 Jason Rumney <jasonr@gnu.org>
28687
28688 * w32term.c (x_set_window_size): Disable code that attempts to tell
28689 Lisp code about a size change before it actually happens.
28690
286912007-10-09 Richard Stallman <rms@gnu.org>
28692
28693 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28694 return HANDLED_RETURN.
28695
286962007-10-08 Martin Rudalics <rudalics@gmx.at>
28697
28698 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28699 when there's an unread command event.
28700
28701 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28702 window autoselection act appropriately when leaving selected frame.
28703 (syms_of_frame): Initialize focus_follows_mouse.
28704 * frame.h (focus_follows_mouse): Extern it.
28705 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28706 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28707 * msdos.c (dos_rawgetc): Likewise.
28708 * w32term.c (w32_read_socket): Likewise.
28709 * xterm.c (handle_one_xevent): Likewise.
28710 * xdisp.c (syms_of_xdisp): In doc-string of
28711 mouse-autoselect-window mention focus-follows-mouse.
28712
287132007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28714
28715 * macterm.c (mac_load_query_font): Fix missing return value.
28716 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28717 Add BLOCK_INPUT.
28718
287192007-10-08 Richard Stallman <rms@gnu.org>
28720
28721 * xdisp.c (get_window_cursor_type): Implement documented behavior
28722 for cursor-in-non-selected-windows = t.
28723
287242007-10-08 Jason Rumney <jasonr@gnu.org>
28725
28726 * w32.c (w32_get_resource): Always close registry keys.
28727
287282007-10-08 Jason Rumney <jasonr@gnu.org>
28729
28730 * makefile.w32-in (LIBS): Add COMCTL32.
28731
28732 * w32fns.c (globals_of_w32fns): Init common controls.
28733
287342007-10-08 Richard Stallman <rms@gnu.org>
28735
28736 * image.c (our_memory_buffer): Rename from omfib_buffer.
28737
287382007-10-08 Richard Stallman <rms@gnu.org>
28739
28740 * buffer.c (Foverlays_at): Doc fix.
28741
287422007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28743
28744 * fns.c (Fplist_put): Preserve uneven tail data.
28745
287462007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28747
28748 * termhooks.h (enum event_kind): Remove trailing comma.
28749
28750 * frame.h (enum): Remove trailing comma.
28751
287522007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28753
28754 * w32proc.c (delete_child): Don't terminate threads of zombies.
28755
287562007-10-08 Martin Rudalics <rudalics@gmx.at>
28757
28758 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28759
28760 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28761 last-repeatable-command.
28762 (init_kboard): Initialize Vlast_repeatable_command.
28763 (command_loop_1): Set it to real_this_command unless that was
28764 bound to an input event.
28765 (mark_kboards): Mark it.
28766
287672007-10-08 Richard Stallman <rms@gnu.org>
28768
28769 * eval.c (condition-case): Doc fix.
28770
287712007-10-08 Masatake YAMATO <jet@gyve.org>
28772
28773 * xfaces.c (tty_supports_face_attributes_p): Fix code
28774 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28775 was copied and not edited.
28776
287772007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28778
28779 Add new `input-decode-map' keymap and use it for terminal
28780 escape sequences.
28781 * keyboard.h (struct kboard): Add Vinput_decode_map.
28782 Remove Vlocal_key_translation_map.
28783 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28784 (init_kboard): Init input-decode-map.
28785 Replace local-key-translation-map back with key-translation-map.
28786 (syms_of_keyboard): Declare input-decode-map.
28787 Remove local-key-translation-map. Update docstrings.
28788 (mark_kboards): Mark Vinput_decode_map.
28789 Don't mark Vlocal_key_translation_map.
28790 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28791 Replace local-key-translation-map back with key-translation-map.
28792 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28793 Bind in input-decode-map rather than function-key-map.
28794
28795 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28796 This was made redundant by the previous introduction of XSETPVECTYPE.
28797
287982007-10-09 Richard Stallman <rms@gnu.org>
28799
28800 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28801
288022007-09-29 Richard Stallman <rms@gnu.org>
28803
28804 * eval.c (internal_condition_case_2, internal_condition_case_1)
28805 (internal_condition_case): Reenable abort if x_catching_errors ()
28806 to see if that really happens and why.
28807
288082007-10-06 Andreas Schwab <schwab@suse.de>
28809
28810 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28811
288122007-10-04 Juanma Barranquero <lekktu@gmail.com>
28813
28814 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28815
288162007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28817
28818 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28819
288202007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28821
28822 * window.h (struct window):
28823 * window.c (struct save_window_data, struct saved_window):
28824 * termhooks.h (struct terminal):
28825 * process.h (struct Lisp_Process):
28826 * frame.h (struct frame):
28827 * buffer.h (struct buffer):
28828 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28829 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28830 The size field of (pseudo)vectors is now unsigned.
28831 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28832
28833 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28834 Turn `count' into an integer.
28835
28836 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28837 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28838 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28839 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28840 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28841
28842 * alloc.c (allocate_pseudovector): New fun.
28843 (ALLOCATE_PSEUDOVECTOR): New macro.
28844 (allocate_window, allocate_terminal, allocate_frame)
28845 (allocate_process): Use it.
28846 (mark_vectorlike): New function.
28847 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28848 (mark_terminals): Use it.
28849 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28850 (Fmake_byte_code): Use XSETPVECTYPE.
28851
28852 * frame.c (Fframe_parameters): Minor simplification.
28853
28854 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28855
28856 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28857
28858 * buffer.c (Fget_buffer_create, init_buffer_once):
28859 * lread.c (defsubr):
28860 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28861
28862 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28863 defined differently in the m/*.h files.
28864 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28865 (XSETPVECTYPE): New macro.
28866 (XSETPSEUDOVECTOR): Use it.
28867
28868 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28869 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28870
28871 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28872 * lread.c (defvar_per_buffer):
28873 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28874
28875 * window.c (candidate_window_p): Only consider as visible frames that
28876 are on the same terminal.
28877
28878 * m/ibms390x.h (MARKBIT): Remove unused macro.
28879
288802007-10-01 Juanma Barranquero <lekktu@gmail.com>
28881
28882 * lread.c (Fload): Fix typo in docstring.
28883
288842007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28885
28886 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28887 of a non-zero value can't yield zero.
28888
288892007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28890
28891 * term.c (term_clear_mouse_face, term_mouse_highlight)
28892 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28893
28894 * print.c (safe_debug_print): Use XHASH.
28895
28896 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28897 Lisp elements such as tags.
28898 (XHASH): New macro.
28899 (EQ): Use it.
28900 (SREF, SSET, STRING_COPYIN): Use SDATA.
28901 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28902
28903 * alloc.c (mark_terminal): Remove left-over declaration.
28904 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28905 (allocate_vectorlike): Remove type argument. Adjust callers.
28906 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28907 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28908
28909 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28910 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28911 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28912 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28913 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28914 Use them.
28915
28916 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28917 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28918 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28919
289202007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28921
28922 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28923 loaded by default.
28924
289252007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28926
28927 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28928 on this tty.
28929 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28930
28931 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28932 Update all users.
28933 (handle_one_term_event): Use Gpm_DrawPointer.
28934 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28935 Signal errors instead of returning nil. Always return nil.
28936 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28937 Make it a noop if gpm-mouse was not activated.
28938 (syms_of_term): Update names.
28939
289402007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28941
28942 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28943 (init_sys_modes): Check that gpm_tty is the current tty.
28944
28945 * alloc.c (allocate_terminal): Set the vector size to only count the
28946 lisp fields. Initialize those to nil.
28947 (mark_object): Don't treat terminals specially.
28948 (mark_terminal): Remove.
28949 (mark_terminals): Use mark_object instead.
28950
28951 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28952 the GC to the beginning.
28953
28954 * indent.h:
28955 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28956
28957 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28958
289592007-09-25 Jason Rumney <jasonr@gnu.org>
28960
28961 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28962
28963 * w32console.c (create_w32cons_output): Remove.
28964
28965 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28966
28967 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28968 (reset_sys_modes): Use reset_terminal_modes_hook.
28969
289702007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28971
28972 * eval.c (do_autoload): Don't output any message.
28973
289742007-09-24 Juri Linkov <juri@jurta.org>
28975
28976 * emacs.c (standard_args): Change priority of "--no-splash"
28977 from 40 to 3. Add "--no-desktop" with the same priority.
28978
289792007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28980
28981 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28982 and optimize the case where they are all 1.
28983
289842007-09-23 Johannes Weiner <hannes@saeurebad.de>
28985
28986 * lisp.h (abs): Define if not defined.
28987 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28988 Don't define `abs', since it's defined in lisp.h.
28989
289902007-09-22 Eli Zaretskii <eliz@gnu.org>
28991
28992 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28993 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28994 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28995 (init_tty): Use DEV_TTY instead of "/dev/tty".
28996 [WINDOWSNT]: No need to protect from NAME arg being null.
28997
289982007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28999
29000 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29001 up the tty state.
29002
290032007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29004
29005 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29006 (gpm_tty): Change its type.
29007 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29008 (gpm_tty): Change its type and initialize it.
29009 (Fterm_open_connection): Check the frame is indeed a tty.
29010 Use the new gpm_tty.
29011 (Fterm_close_connection): Use the new gpm_tty.
29012 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29013 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29014
290152007-09-21 Juanma Barranquero <lekktu@gmail.com>
29016
29017 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29018 underline_color, to draw strike-through.
29019
290202007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29021
29022 * lisp.h (allocate_terminal): Declare.
29023
29024 * window.c (candidate_window_p): Consider frames that are being placed
29025 by the user as somewhere between visible and iconified.
29026 (window_loop): Prefer windows on the current frame.
29027 (Fselect_window): Move the use of select-frame to the beginning so we
29028 can just delegate all the work (it'll call us back anyway).
29029
29030 * frame.c (Qdisplay_environment_variable):
29031 * frame.h (Qdisplay_environment_variable): Delete.
29032
29033 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29034 of the first arg, since that value may be a union.
29035
29036 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29037 parameter rather than Qdisplay_environment_variable. If all else
29038 fails, look for DISPLAY in initial-environment.
29039
290402007-09-21 Glenn Morris <rgm@gnu.org>
29041
29042 * Makefile.in (emacstool): Remove target.
29043 (lisp, shortlisp): Remove termdev.elc.
29044
290452007-09-21 Markus Triska <markus.triska@gmx.at>
29046
29047 * xterm.c (x_delete_display): Compile session management conditionally.
29048
290492007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29050
29051 * callproc.c (getenv_internal_1): New function.
29052 (getenv_internal): Use it.
29053 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29054
29055 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29056 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29057 (Fset_terminal_parameter): Work with dead terminals as well.
29058 (Fmodify_terminal_parameters): Remove.
29059
29060 * terminal.c (get_terminal): Handle terminals.
29061 Make sure the terminal returned is live.
29062 (create_terminal): Use allocate_terminal.
29063 (mark_terminals): Move to alloc.c.
29064 (delete_terminal): Use terminal->name as liveness status.
29065 NULL out fields after freeing their contents.
29066 Don't deallocate the object.
29067 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29068 rather than an int.
29069 (Fterminal_live_p): Accept non-integer arguments.
29070 (Fterminal_list): Return terminal objects rather than an ints.
29071
29072 * alloc.c (enum mem_type): New member for `terminal' objects.
29073 (allocate_terminal): New function.
29074 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29075 Handle terminals.
29076 (mark_terminal): New fun.
29077 (mark_terminals): Move from terminal.c.
29078
29079 * term.c (get_tty_terminal): Don't treat output_initial specially.
29080 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29081 (delete_tty): Use terminal->name as liveness status.
29082
29083 * termhooks.h (struct terminal): Make it into a pseudovector.
29084 Remove `deleted' replaced by checking `name's nullness.
29085
29086 * print.c (print_object): Handle terminals.
29087
29088 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29089 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29090
29091 * frame.c (make_terminal_frame):
29092 * keyboard.c (tty_read_avail_input):
29093 * w32term.c (x_delete_terminal):
29094 * xfns.c (Fx_create_frame, x_create_tip_frame):
29095 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29096
290972007-09-20 Glenn Morris <rgm@gnu.org>
29098
29099 * process.c (Fmake_network_process): Doc fix.
29100
291012007-09-19 Jason Rumney <jasonr@gnu.org>
29102
29103 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29104
291052007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29106
29107 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29108 Fix a C warning regarding variable constness.
29109
29110 * xterm.c (handle_one_xevent): Fix a C warning.
29111
291122007-09-18 Jason Rumney <jasonr@gnu.org>
29113
29114 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29115
291162007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29117
29118 * gtkutil.c (gdpy_def): New variable.
29119 (xg_initialize): Initialize gdpy_def.
29120 (xg_display_close): If no other display exists, set gdpy_def to a
29121 new connection.
29122
291232007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29124
29125 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29126 when we have no file name for the icon.
29127 (xg_tool_bar_expose_callback): Remove.
29128 (xg_create_tool_bar): Don't connect expose signal to
29129 xg_tool_bar_expose_callback.
29130 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29131
291322007-09-16 Andreas Schwab <schwab@suse.de>
29133
29134 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29135 values instead of zapping them.
29136
291372007-09-14 Glenn Morris <rgm@gnu.org>
29138
29139 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29140 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29141 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29142 scope and rename to omfib_buffer for clarity.
29143 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29144
291452007-09-14 Kenichi Handa <handa@m17n.org>
29146
29147 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29148
291492007-09-13 Jason Rumney <jasonr@gnu.org>
29150
29151 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29152
29153 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29154
29155 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29156 (mac_term_init): Call here instead, passing rif.
29157
291582007-09-13 Glenn Morris <rgm@gnu.org>
29159
29160 * s/hpux.h: No longer define `static' as nothing.
29161
291622007-09-13 Johan Bockgård <bojohan@gnu.org>
29163
29164 * callint.c (Fcall_interactively): Remove unused var `fun'.
29165
291662007-09-12 Romain Francoise <romain@orebokech.com>
29167
29168 * window.c (prefer_window_split_horizontally, display_buffer):
29169 Revert 2007-09-08 change.
29170
291712007-09-12 Glenn Morris <rgm@gnu.org>
29172
29173 * alloca.c: Remove file.
29174 * Makefile.in (alloca): Do not undef.
29175 (allocaobj, alloca.o): Remove.
29176 (otherobj): Remove allocaobj.
29177 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29178 * regex.c (C_ALLOCA): Remove all references and code that was only
29179 used when this was defined.
29180 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29181 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29182 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29183
29184 * Makefile.in (SOURCES, unlock, relock): Delete.
29185
29186 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29187 (menu_grab_callback): All uses changed.
29188
29189 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29190 (x_reply_selection_request): All uses changed.
29191
291922007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29193
29194 * lread.c (load_warn_old_style_backquotes): Change message to look
29195 better when it appears in the middle of byte-compiler messages.
29196
291972007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29198
29199 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29200
29201 * xterm.c (x_create_terminal): Add comment.
29202
29203 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29204
292052007-09-10 Richard Stallman <rms@gnu.org>
29206
29207 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29208
292092007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29210
29211 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29212 (DEFUN): Document `intspec', use it instead of `prompt'.
29213
29214 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29215
29216 * data.c (Finteractive_form): If the interactive specification starts
29217 with a `(', use it as a Lisp form.
29218
29219 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29220 name and file modes.
29221
29222 * callint.c (Fcall_interactively): Comment fixes.
29223
292242007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29225
29226 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29227 and compiled functions.
29228
292292007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29230
29231 * window.c (prefer_window_split_horizontally): New variable.
29232 (display_buffer): Consider splitting window horizontally depending
29233 on prefer_window_split_horizontally.
29234
292352007-09-08 Eli Zaretskii <eliz@gnu.org>
29236
29237 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29238
292392007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29240
29241 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29242
29243 * frame.c (x_set_frame_parameters): Check number is positive before
29244 using XFASTINT.
29245
29246 * window.c (freeze_window_start): Don't presume selected_window holds
29247 a window object.
29248 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29249
292502007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29251
29252 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29253
292542007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29255
29256 * window.c (Vsplit_window_preferred_function): New var.
29257 (Fdisplay_buffer): Use it.
29258 (syms_of_window): Export, and initialize it.
29259
292602007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29261
29262 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29263
292642007-09-06 Glenn Morris <rgm@gnu.org>
29265
29266 * gtkutil.c (menu_grab_callback) <cnt>:
29267 * xselect.c (x_reply_selection_request) <cnt>: Move static
29268 variable to file scope.
29269
292702007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29271
29272 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29273 consistent values of selected_frame and selected_window.
29274
292752007-09-04 Jason Rumney <jasonr@gnu.org>
29276
29277 * w32console.c (initialize_w32_display): Zero unused hooks.
29278
292792007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29280
29281 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
29282 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
29283
292842007-09-04 Jason Rumney <jasonr@gnu.org>
29285
29286 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
29287 in w32console.c. Set up input. Remove XXX comments that have been
29288 confirmed as correct.
29289
29290 * s/ms-w32.h (MULTI_KBOARD): Define.
29291
29292 * w32console.c (one_and_only_w32cons): Remove.
29293 (initialize_w32_display): Take terminal argument.
29294
29295 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
29296 initialize_w32_display.
29297 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
29298
29299 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
29300
29301 * keyboard.c (discard_mouse_events): Discard it.
29302 (make_lispy_event): Translate it to a lisp event.
29303 (lispy_wheel_names): Add wheel-left and right events.
29304 (syms_of_keyboard): Enlarge wheel_syms.
29305
29306 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
29307 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
29308
29309 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
29310
29311 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
29312 from WM_MOUSEHWHEEL.
29313 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
29314
29315 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
29316 terminal.
29317
29318 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
29319 keyboard for the terminal.
29320
293212007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29322
29323 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
29324 (Vresume_tty_hook): Rename from Vresume_tty_functions.
29325 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
29326 and resume-tty-function to resume-tty-hook.
29327 (Fsuspend_tty, Fresume_tty): Use new names.
29328
293292007-09-02 Jan Djärv <jan.h.d@swipnet.se>
29330
29331 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
29332 if it starts with "n:".
29333
293342007-08-31 Jan Djärv <jan.h.d@swipnet.se>
29335
29336 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
29337
293382007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
29339
29340 * frame.h:
29341 * frame.c (Qterm_environment_variable): Remove.
29342 (syms_of_frame): Don't init and staticpro it.
29343
29344 * callproc.c (getenv_internal): Remove special case for $TERM.
29345
29346 * callproc.c (Vinitial_environment): New variable.
29347 (set_initial_environment): Initialize it.
29348 (syms_of_callproc): Declare it.
29349 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
29350 TERM under which a process runs is never related to the TERM in which
29351 Emacs is running.
29352
293532007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29354
29355 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
29356 * s/darwin.h: ... do it here.
29357
293582007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
29359
29360 * lisp.h (set_initial_environment): Rename from set_global_environment.
29361
29362 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
29363 removed by mistake on the multi-tty branch.
29364
29365 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
29366 (Fmodify_frame_parameters): Return a value.
29367
29368 * image.c (png_load): Comment-out var only used in commented-out code.
29369
29370 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
29371 before passing it to mark_object.
29372
29373 * xfaces.c (internal_resolve_face_name): Return a value.
29374 (internal_resolve_face_name, resolve_face_name_error): Comment out.
29375
29376 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
29377 (x_icon): Comment-out var only used in commented-out code.
29378
293792007-08-29 Romain Francoise <romain@orebokech.com>
29380
29381 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
29382 QUIT hasn't been provided.
29383
293842007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29385
29386 * callproc.c (child_setup, getenv_internal): Use the
29387 display-environment-variable and term-environment-variable frame params.
29388 (set_initial_environment): Initialise Vprocess_environment.
29389
29390 * config.in: Disable multi-keyboard support on a mac.
29391
29392 * frame.c (Qterm_environment_variable)
29393 (Qdisplay_environment_variable): New variables.
29394 (syms_of_frame): Intern and staticpro them.
29395 (Fmake_terminal_frame): Disable output method test.
29396
29397 * frame.h: Declare them here.
29398
29399 * macfns.c (x_set_mouse_color): Get rif from the frame.
29400 (x_set_tool_bar_lines): Don't use updating_frame.
29401 (mac_window): Add 2 new parameters for consistency with other systems.
29402 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
29403 frame parameters following what is done in X11 and w32. Don't use
29404 FRAME_MAC_DISPLAY_INFO.
29405 (Fx_open_connection, start_hourglass): Remove window-system check.
29406 (x_create_tip_frame): Get the keyboard from the terminal.
29407
29408 * macmenu.c: Reorder includes.
29409 (Fx_popup_menu): Use terminal specific mouse_position_hook.
29410
29411 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
29412 terminal parameter.
29413 (x_clear_frame): Add a frame parameter.
29414 (note_mouse_movement): Get rif from the frame.
29415 (mac_term_init): Initialize the terminal.
29416 (mac_initialize): Make static and move terminal initialization ...
29417 (mac_create_terminal): ... to this new function.
29418
29419 * macterm.h (struct mac_display_info): Add terminal.
29420 (mac_initialize): Delete declaration.
29421
29422 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
29423
29424 * sysdep.c: Comment out text after #endif.
29425
29426 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
29427 is defined. Better initialize ttys in windows. Use terminal
29428 specific mouse_position_hook.
29429
29430 * termhooks.h (union display_info): Add mac_display_info.
29431
29432 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
29433 Set the default minibuffer frame, window_system and the rest of the
29434 frame parameters following what is done in X11.
29435
29436 * w32term.c (w32_initialize): Make static.
29437
29438 * xselect.c (x_handle_selection_clear): Only access
29439 terminal->kboard when MULTI_KBOARD is defined.
29440
29441 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
29442 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
29443
294442007-08-29 Jason Rumney <jasonr@gnu.org>
29445
29446 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29447 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29448
29449 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29450 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29451
29452 * keyboard.c (restore_kboard_configuration): Only define when
29453 MULTI_KBOARD defined.
29454
29455 * makefile.w32-in: Update dependancies from Makefile.in.
29456 (OBJ1): Add terminal.$(O)
29457
29458 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29459 Don't define function body.
29460 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29461
29462 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29463
29464 * w32.c (request_sigio, unrequest_sigio): Remove.
29465
29466 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29467 (w32con_clear_frame, w32con_clear_end_of_line)
29468 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29469 (w32con_delete_glyphs, w32con_set_terminal_window)
29470 (scroll_line, w32_sys_ring_bell): Add frame arg.
29471 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29472 Add terminal arg.
29473 (PICK_FRAME): Remove.
29474 (w32con_write_glyphs): Use frame specific terminal coding.
29475 (one_and_only_w32cons): New global variable.
29476 (initialize_w32_display): Use it for storing hooks.
29477 (create_w32cons_output): New function.
29478
29479 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29480 arg a frame.
29481
29482 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29483 Set window_system.
29484 (x_set_tool_bar_lines): Don't use updating_frame.
29485 (Fx_create_frame): Set terminal and ref count.
29486 (Fx_open_connection): Remove window-system check.
29487
29488 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29489
29490 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29491 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29492 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29493 Add frame arg.
29494 (x_delete_terminal, w32_create_terminal): New functions.
29495 (w32_term_init): Create a terminal.
29496 (w32_initialize): Move terminal specific initialization to
29497 w32_create_terminal.
29498
29499 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29500 (w32_clear_rect, w32_clear_area): Use background from frame.
29501 (w32_display_info): Add terminal.
29502 (w32_sys_ring_bell, x_delete_display): Declare here.
29503
29504 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29505
29506 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29507
295082007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29509
29510 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29511 Fix get_named_tty calls for the controlling tty.
29512
295132007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29514
194d44e7 29515 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
29516
295172007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29518
29519 * term.c (tty_insert_glyphs): Add missing first parameter.
29520
295212007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29522
29523 * buffer.c (Fbuffer_list, Fbury_buffer):
29524 Take frame->buried_buffer_list into account.
29525
29526 * cm.c (current_tty): New variable, for cmputc().
29527 (cmputc): Use it.
29528 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29529 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29530 (cmgoto): Add tty parameter. Pass it on to calccost().
29531 Use emacs_tputs() instead of tputs().
29532
29533 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29534 tputs().
29535 (current_tty): New variable, for cmputc().
29536 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29537
29538 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29539 (internal_condition_case, internal_condition_case_1)
29540 (internal_condition_case_2): Don't abort when x_catching_errors.
29541
29542 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29543 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29544 prevent crashes caused by bogus longjmps in read_char.
29545
29546 * keymap.h (Fset_keymap_parent): Add EXFUN.
29547
29548 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29549 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29550 Remove redundant definition.
29551
29552 * macfns.c (x_set_mouse_color, x_make_gc):
29553 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29554
29555 * w32term.c (x_free_frame_resources):
29556 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29557 (w32_initialize): Use the accessor macros for terminal characteristics.
29558
29559 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29560 Use the accessor macros for terminal characteristics.
29561 * msdos.c (internal_terminal_init): Use the accessor macros for
29562 terminal characteristics.
29563 (ScreenVisualBell, internal_terminal_init):
29564 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29565
29566 * termopts.h (no_redraw_on_reenter): Declare.
29567
29568 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29569 (mark_terminals, mark_ttys): Declare.
29570 (Fgarbage_collect): Call them.
29571 (mark_object): Mark buried_buffer_list.
29572
29573 * prefix-args.c: Include stdlib.h for exit.
29574
29575 * syssignal.h: Add comment.
29576
29577 * indent.c: Include stdio.h.
29578
29579 * window.h (Vinitial_window_system): Declare.
29580 (Vwindow_system): Delete declaration.
29581
29582 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29583
29584 * image.c (lookup_image): Don't initialize `c' until the xasserts
29585 have been run.
29586
29587 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29588 FRAME_FOREGROUND_PIXEL.
29589
29590 * print.c (print_preprocess): Don't lose print_depth levels while
29591 iterating.
29592
29593 * widget.c (update_from_various_frame_slots):
29594 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29595
29596 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29597 frames.
29598 (window_internal_height): Remove bogus make_number call.
29599 (init_window_once): Call make_terminal_frame with two zero parameters.
29600
29601 * fileio.c (Fread_file_name): Update comment.
29602
29603 * callint.c (Fcall_interactively):
29604 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29605 Make sure it is correctly unwound.
29606
29607 * xsmfns.c (x_session_close): New function.
29608
29609 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29610 Delete declarations.
29611
29612 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29613 (x_output): Remove background_pixel and foreground_pixel fields.
29614 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29615 (x_delete_device, x_session_close): Declare.
29616
29617 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29618 (read_filtered_event): Call `read_char' with a local
29619 `wrong_kboard_jmpbuf'.
29620
29621 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29622 Don't call single_kboard_state. Use FRAME_RIF.
29623
29624 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29625 systems.
29626
29627 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29628 (Fframe_with_environment, Fset_input_meta_mode)
29629 (Fset_quit_char): EXFUN.
29630 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29631 (init_sys_modes, reset_sys_modes): Update prototypes.
29632 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29633
29634 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29635 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29636 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29637 Delete declarations.
29638 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29639 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29640 New declarations.
29641
29642 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29643 already does that during init_display(). Call syms_of_keymap
29644 before syms_of_keyboard. Call `syms_of_terminal'.
29645 Call set_initial_environment, not set_process_environment.
29646 (shut_down_emacs): Call reset_all_sys_modes() instead of
29647 reset_sys_modes().
29648
29649 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29650 (internal_resolve_face_name, resolve_face_name_error): New functions.
29651 (resolve_face_name): Protect against loops and errors thrown by Fget.
29652 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29653 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29654
29655 * scroll.c: Replace CURTTY() with local variables throughout the
29656 file (where applicable).
29657 (calculate_scrolling, calculate_direct_scrolling)
29658 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29659 characteristics.
29660
29661 * keymap.c (Vfunction_key_map): Remove.
29662 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29663 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29664 (Vkey_translation_map): Remove.
29665 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29666 (Fdescribe_buffer_bindings)
29667 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29668 Update for terminal-local key-translation-map.
29669
29670 * Makefile.in (callproc.o): Update dependencies.
29671 (lisp, shortlisp): Add termdev.elc.
29672 (obj): Add terminal.o.
29673 (terminal.o): Add dependencies.
29674 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29675 (data.o, fns.o): Add termhooks.h dependency.
29676 (SOME_MACHINE_LISP): Add dnd.elc.
29677 (minibuf.o): Fix typo.
29678 Update dependencies.
29679
29680 * data.c (do_symval_forwarding, store_symval_forwarding)
29681 (find_symbol_value): Use the selected frame's keyboard, not
29682 current_kboard.
29683
29684 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29685 Vwindow_system.
29686
29687 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29688 Fmenu_bar_open.
29689 (syms_of_xmenu): Update defsubr.
29690 (mouse_position_for_popup, Fx_popup_menu)
29691 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29692 (set_frame_menubar, free_frame_menubar)
b97439ce 29693 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29694 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29695 an X frame.
29696
29697 * xselect.c (x_own_selection): Abort if not an X frame.
29698 (some_frame_on_display): Check if it is an X frame.
29699 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29700
29701 * coding.c: Include frame.h and termhooks.h.
29702 (terminal_coding, keyboard_coding): Delete.
29703 (Fset_terminal_coding_system_internal)
29704 (Fset_keyboard_coding_system_internal)
29705 (Fkeyboard_coding_system)
29706 (Fterminal_coding_system): Add a terminal parameter.
29707 Get terminal_coding from the terminal.
29708 (init_coding_once): Don't call setup_coding_system here.
29709
29710 * dispextern.h (set_scroll_region, turn_off_insert)
29711 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29712 (tty_clear_end_of_line, tty_setup_colors)
29713 (delete_tty, updating_frame)
29714 (produce_special_glyphs, produce_glyphs, write_glyphs)
29715 (insert_glyphs): Remove.
29716 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29717 (tty_turn_off_highlight, get_tty_size): Add declaration.
29718 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29719
29720 * frame.h (enum output_method): Add output_initial.
29721 (struct x_output): Delete.
29722 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29723 Access foreground_pixel and background_pixel directly from the frame.
29724 (tty_display): Delete.
29725 (struct frame): Add buried_buffer_list, foreground_pixel,
29726 background_pixel and terminal. Delete kboard.
29727 (union output_data): Add tty.
29728 (FRAME_KBOARD): Get the kboard from the terminal.
29729 (FRAME_INITIAL_P): New macro.
29730 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29731 (Qterm_environment_variable, Qdisplay_environment_variable)
29732 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29733 New declarations.
29734
29735 * termchar.h (tty_output, tty_display_info): New structures.
29736 (tty_list): Declare.
29737 (FRAME_TTY, CURTTY): New macros.
29738 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29739 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29740 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29741 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29742
29743 * callproc.c: Include frame.h and termhooks.h, for terminal
29744 parameters.
29745 (add_env): New function.
29746 (child_setup): Use it.
29747 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29748 (getenv_internal): Fix get_terminal_param call.
29749 (Fgetenv_internal, egetenv): Update doc.
29750 (syms_of_callproc): Initialize Vprocess_environment to nil.
29751 Register and initialize them. Remove obsolete defvars. Update doc
29752 strings.
29753 (child_setup): Handle Vlocal_environment_variables.
29754 (getenv_internal): Add terminal parameter.
29755 Handle Vlocal_environment_variables.
29756 (Fgetenv_internal): Add terminal parameter.
29757 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29758 environment in a frame (not terminal) parameter. Update doc strings.
29759 (set_initial_environment): Rename from set_global_environment.
29760 Store Emacs environment in initial frame parameter.
29761
29762 * xdisp.c (redisplay_internal): Update references to
29763 `previous_terminal_frame'.
29764 (display_mode_line, Fformat_mode_line): Replace calls to
29765 `push_frame_kboard' with `push_kboard'.
29766 (get_glyph_string_clip_rects): Add extra parentheses and
29767 braces to prevent compiler warnings.
29768 (calc_pixel_width_or_height): Add xassert to check that the
29769 frame is alive. Don't call `lookup_image' on a termcap frame.
29770 (message2_nolog, message3_nolog, redisplay_internal)
29771 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29772 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29773 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29774 (Fx_display_pixel_width, Fx_display_pixel_height)
29775 (Fx_display_planes, Fx_display_color_cells)
29776 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29777 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29778 (Fx_display_backing_store, Fx_display_visual_class)
29779 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29780 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29781
29782 * xfns.c (x_set_foreground_color x_set_background_color)
29783 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29784 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29785 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29786 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29787 terminal that is being deleted.
29788 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29789 frame parameter, and make sure it overrides any user-supplied setting.
29790 (Fx_close_connection, Fx_synchronize): Unify argument names with
29791 the rest of the DEFUNs.
29792
29793 * dispnew.c (Fsend_string_to_terminal): Update call to
29794 `get_tty_terminal'.
29795 (Fredraw_frame, Fsend_string_to_terminal)
29796 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29797 FRAME_TERMCAP_P and FRAME_TTY.
29798 (window_change_signal): Don't believe width/height values that are
29799 impossibly small.
29800 (Vinitial_window_system): Rename from Vwindow_system.
29801 (termscript, Wcm, rif): Delete.
29802
29803 * termhooks.h (struct terminal): New struct containing the
29804 previously global text display hooks and new members NAME,
29805 DELETED and PARAM_ALIST.
29806 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29807 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29808 (FRAME_RIF): New macros.
29809 (get_terminal_param, get_device): New declarations.
29810 (termscript): Delete declaration.
29811
29812 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29813 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29814 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29815 FRAME_FOREGROUND_PIXEL.
29816 (x_fully_uncatch_errors): Disable definition.
29817 (x_scroll_bar_expose): Fix reference to foreground pixel.
29818 (XTread_socket): Disable loop on all X displays.
29819 (x_delete_terminal): Don't set terminal->deleted and let
29820 delete_terminal delete the frames on the terminal.
29821 (x_delete_display): Doc update to reflect changes in
29822 delete_terminal.
29823 (x_display_info) <terminal>: Move member earlier in the struct.
29824 (deleting_tty): Remove old variable.
29825 (Fsuspend_tty): Call clear_tty_hooks.
29826 (Fresume_tty, init_tty): Call set_tty_hooks.
29827 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29828 errors on X frames.
29829 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29830 (handle_one_xevent): Initialize `f' to NULL.
29831 (x_delete_terminal, x_create_terminal): New functions.
29832 (XTset_terminal_modes, XTreset_terminal_modes)
29833 (XTread_socket, x_connection_closed, x_term_init)
29834 (x_term_init, x_delete_display): Add terminal parameter.
29835 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29836 X connections.
29837
29838 * frame.c: Include termchar.h.
29839 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29840 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29841 (Qdisplay_environment_variable): New vars.
29842 (Fframep): Deal with output_initial.
29843 (Fframe-live-p): Doc fix.
29844 (Fwindow-system): New function.
29845 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29846 (make_terminal_frame): Don't create frames on a terminal that is
29847 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29848 (store_frame_param): Check for found_for_frame before calling XFRAME.
29849 (Fmake_terminal_frame): Handle NULL tty names correctly.
29850 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29851 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29852 frames to refer to a deleted frame in their 'environment parameter.
29853 (Fframe_with_environment): New function.
29854 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29855 (get_future_frame_param): New function.
29856 (Fmake_terminal_frame): Use it.
29857 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29858
29859 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29860 * sysdep.c (reset_sys_modes): Update for renames.
29861
29862 * keyboard.c (tty_read_avail_input): New function.
29863 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29864 (syms_of_keyboard): Defsubr them.
29865 (Fset_input_meta_mode, Fset_quit_char): New functions.
29866 (Fset_input_mode): Split to above functions.
29867 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29868 parameter. Use it in call to `read_char'.
29869 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29870 Set wrong_kboard_jmpbuf correctly in recursive calls.
29871 Use current_kboard to access Vkeyboard_translate_table.
29872 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29873 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29874 Update longjmp invocations. Remember the original current_kboard,
29875 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29876 changes it. Comment out unnecessary calls to
29877 `record_single_kboard_state' and `any_kboard_state'.
29878 Update recursive calls.
29879 (wrong_kboard_jmpbuf): Remove global variable.
29880 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29881 Handle deleted interrupted_kboards correctly; that is a legal
29882 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29883 and read_char calls. Abort if interrupted_kboard died in read_char.
29884 (any_kboard_state, single_kboard_state)
29885 (push_frame_kboard): Remove function.
29886 (pop_kboard): Switch out of single_kboard mode if the kboard has
29887 been deleted. Remove unused variable. Help debugging by not
29888 changing current_kboard unnecessarily. Set current_kboard to the
29889 kboard of the selected frame when the stored kboard object has
29890 been deleted before pop_kboard.
29891 (temporarily_switch_to_single_kboard): Change first parameter to a
29892 frame pointer. Throw an error when caller wants to change kboards
29893 while in single_kboard mode. Don't push_kboard if we weren't in
29894 single kboard state. Don't pop_kboard if we popped into any
29895 kboard state.
29896 (restore_kboard_configuration): Abort if pop_kboard changed the
29897 kboard in single_kboard mode. Call pop_kboard only after setting
29898 up single_kboard mode.
29899 (Frecursive_edit): Switch to single_kboard mode only in nested
29900 command loops.
29901 (cmd_error, command_loop, command_loop_1, timer_check):
29902 Comment out unnecessary call to `any_kboard_state' and
29903 `record_single_kboard_state'.
29904 (delete_kboard): Exit single_kboard mode if we have just deleted
29905 that kboard. Use FRAME_KBOARD.
29906 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29907 `fatal_error_signal'.
29908 (record_single_kboard_state): Don't push_kboard if we weren't in
29909 single kboard state. Don't pop_kboard if we popped into any
29910 kboard state.
29911 (push_frame_kboard): Rename to push_kboard.
29912 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29913 (read_avail_input): Read input from all terminals.
29914 (mark_kboards): Also mark Vkeyboard_translate_table.
29915 (kbd_buffer_store_event_hold): Simplify condition.
29916 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29917 (Vkeyboard_translate_table): Move to struct kboard.
29918 (init_kboard): Initialize Vkeyboard_translate_table.
29919 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29920 Vkeyboard_translate_table. Update doc strings. Update docs of
29921 local-function-key-map and function-key-map.
29922
29923 * terminal.c: New file.
29924
29925 * term.c: Include errno.h.
29926 (Vring_bell_function, device_list, initial_device)
29927 (next_device_id, ring_bell, update_begin, update_end)
29928 (set_terminal_window, cursor_to, raw_cursor_to)
29929 (clear_to_end, clear_frame, clear_end_of_line)
29930 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29931 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29932 (syms_of_term): Move their initialization to terminal.c.
29933 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29934 (Ftty_display_color_cells)
29935 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29936 (clear_tty_hooks, set_tty_hooks)
29937 (init_tty, maybe_fatal): New functions.
29938 (Ftty_type): Return nil if terminal is not on a tty instead of
29939 throwing an error. Doc update.
29940 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29941 Doc update. Initialize new subrs and variables.
29942 (delete_tty): Use terminal->deleted.
29943 (tty_set_terminal_modes): Rename from set_terminal_modes.
29944 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29945 (set_scroll_region): Rename to `tty_set_scroll_region'.
29946 (turn_on_insert): Rename to `tty_turn_on_insert'.
29947 (turn_off_insert): Rename to `tty_turn_off_insert'.
29948 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29949 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29950 (toggle_highligh): Rename to `tty_toggle_highlight'.
29951 (background_highlight): Rename to `tty_background_highlight'.
29952 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29953 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29954 (tty_set_scroll_region, tty_background_highlight)
29955 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29956 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29957 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29958 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29959 Add static modifier.
29960 (tty_reset_terminal_modes, tty_set_terminal_window)
29961 (tty_set_scroll_region, tty_background_highlight)
29962 (tty_highlight_if_desired, tty_cursor_to)
29963 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29964 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29965 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29966 renames.
29967
299682007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29969
29970 * keyboard.c: Qrtl is new.
29971 (parse_tool_bar_item): Handle :rtl keyword.
29972 (syms_of_keyboard): Intern :rtl keyword.
29973
29974 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29975
29976 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29977 so no Lisp code is executed.
29978 (file_for_image, find_rtl_image): New functions.
29979 (xg_get_image_for_pixmap): Use file_for_image.
29980 (update_frame_tool_bar): If direction is RTL, use RTL image if
29981 defined. Use Gtk stock images if defined.
29982
299832007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29984
29985 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29986 for nonexistent or zero-width glyph in composition glyph.
29987
299882007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29989
29990 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29991
29992 * xdisp.c (Finvisible_p): New function.
29993 (syms_of_xdisp): defsubr it.
29994
299952007-08-24 Juanma Barranquero <lekktu@gmail.com>
29996
29997 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29998 Doc fixes.
29999
300002007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30001
30002 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30003
300042007-08-24 Martin Rudalics <rudalics@gmx.at>
30005
30006 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30007 whether decoding has modified buffer contents.
30008
300092007-08-24 Jason Rumney <jasonr@gnu.org>
30010
30011 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30012 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30013 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30014 (init_svg_functions) [HAVE_NTGUI]: New function.
30015 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30016 (svg_load_image): Use them.
30017 (svg_load_image) [HAVE_NTGUI]: Implement background.
30018
300192007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30020
30021 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30022 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30023 (LIBX): Remove @RSVG_LIBS@.
30024 (LIBES): Add $(RSVG_LIBS).
30025
30026 * image.c (svg_load_image): Blend with specified background if exists.
30027 Use IMAGE_BACKGROUND. Add Mac OS Support.
30028
30029 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30030 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30031 Remove macros.
30032 [MAC_OSX] (socket_callback): Do nothing.
30033 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30034 ReceiveNextEvent.
30035 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30036 socket_callback.
30037 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30038
300392007-08-22 Glenn Morris <rgm@gnu.org>
30040
30041 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30042
300432007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30044
30045 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30046
30047 * image.c: Add support for SVG images. Some additional comments
30048 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30049 (svg_image_p): New function to test for SVG image.
30050 (svg_load): New function to load SVG image.
30051 (svg_load_image): New function, helper for svg_load.
30052 (Qsvg): New Lisp_object.
30053 (svg_keyword_index): New enum.
30054 (svg_format): New static `image_keyword' struct.
30055 (svg_type): New static `image_type' struct.
30056 (librsvg/rsvg.h): Include it.
30057
300582007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30059
30060 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30061
300622007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30063
30064 * lread.c (Qold_style_backquotes): New var.
30065 (syms_of_lread): Init and staticpro it.
30066 (load_warn_old_style_backquotes): New fun.
30067 (Fload): Use them to warn about old style backquotes.
30068 (end_of_file_error, Fload): Remove unused vars.
30069
30070 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30071
30072 * lread.c (Vold_style_backquotes): New var.
30073 (syms_of_lread): Init and export it to Elisp.
30074 (read1): Set it when we find an old-style (back)quote.
30075
300762007-08-22 Jason Rumney <jasonr@gnu.org>
30077
30078 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30079
300802007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30081
30082 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30083
300842007-08-19 Richard Stallman <rms@gnu.org>
30085
30086 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30087
300882007-08-19 Andreas Schwab <schwab@suse.de>
30089
30090 * alloc.c (pure): Round PURESIZE up.
30091
300922007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30093
30094 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30095 active frame.
30096
300972007-08-16 Richard Stallman <rms@gnu.org>
30098
30099 * eval.c (Fcommandp): Add parens to clarify.
30100
30101 * minibuf.c (Fall_completions): Use enum for type of table.
30102
30103 * emacs.c (USAGE2): Improve text.
30104
301052007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30106
30107 * term.c (tty_default_color_capabilities): Declare static
30108 variables in file scope, to avoid HPUX compiler problem.
30109
301102007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30111
30112 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30113 to gtk_toolbar_insert.
30114
301152007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30116
30117 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30118
30119 * insdel.c (reset_var_on_error): New fun.
30120 (signal_before_change, signal_after_change):
30121 Use it to reset (after|before)-change-functions to nil in case of error.
30122 Bind inhibit-modification-hooks to t.
30123 Don't bind (after|before)-change-functions to nil while they run.
30124
301252007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30126
30127 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30128 filling pixmap with stippled background.
30129
301302007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30131
30132 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30133 Don't use invisible frame as parent window for repositioning.
30134
301352007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30136
30137 * print.c (new_backquote_output): Rename from old_backquote_output.
30138 (print): Inverse its logic (according to its name) so as to match the
30139 behavior of new_backquote_flag in lread.c.
30140
301412007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30142
30143 * gmalloc.c (posix_memalign): New function.
30144
30145 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30146 ActivateControl/DeactivateControl here.
30147 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30148 frame-notice-user-settings is non-nil.
30149 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30150 for kEventParamFMFontStyle.
30151 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30152 mac_pass_command_to_system and mac_pass_control_to_system here.
30153 (XTread_socket): Call ActivateControl/DeactivateControl here.
30154 (XTread_socket) [TARGET_API_MAC_CARBON]:
30155 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30156 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30157 for window repositioning.
30158
301592007-08-08 Glenn Morris <rgm@gnu.org>
30160
30161 * Replace `iff' in doc-strings and comments.
30162
301632007-08-07 Chong Yidong <cyd@stupidchicken.com>
30164
30165 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30166
301672007-08-07 Martin Rudalics <rudalics@gmx.at>
30168
30169 * fileio.c (Finsert_file_contents): Run format-decode and
30170 after_insert_file_functions on entire buffer when REPLACE is
30171 non-nil and inhibit modification_hooks and point_motion_hooks.
30172 For consistency, run after_insert_file_functions iff something
30173 got inserted. Move signal_after_change and update_compositions
30174 after code running after_insert_file_functions. Make sure that
30175 undo_list doesn't record intermediate steps of the decoding process.
30176
301772007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30178
30179 * emacs.c (main)
30180 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30181 Call malloc_enable_thread on interactive startup.
30182
30183 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30184 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30185 [USE_PTHREAD]: Conditionalize with it.
30186 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30187 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30188 New functions.
30189
301902007-08-06 Chong Yidong <cyd@stupidchicken.com>
30191
30192 * xdisp.c (redisplay_window): When restoring original buffer
30193 position, make sure it is still valid.
30194
30195 * image.c (png_load): Ignore png-supplied background color.
30196
301972007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30198
30199 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30200 Use kCFAbsoluteTimeIntervalSince1970.
30201
30202 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30203 New variable.
30204 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30205 event loop should be quit.
30206 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30207 Quit dialog event loop if quit_dialog_event_loop is set.
30208
30209 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30210 (Selection): New typedef. Use instead of ScrapRef.
30211 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30212 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30213 (mac_clear_selection): Rename from clear_scrap.
30214 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30215 scrap_has_target_type. All uses changed.
30216 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30217 (mac_selection_has_target_p): New functions.
30218 (mac_put_selection_value): Rename from put_scrap_string.
30219 (mac_get_selection_value): Rename from get_scrap_string.
30220 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30221 (put_scrap_private_timestamp, scrap_has_target_type)
30222 (get_scrap_private_timestamp): Remove functions.
30223 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30224 (x_own_selection, x_get_local_selection):
30225 Use mac_valid_selection_value_p.
30226 (x_own_selection): Don't use put_scrap_private_timestamp.
30227 Record OWNERSHIP-INFO into Vselection_alist instead.
30228 (x_get_local_selection): Don't check type if request is local.
30229 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30230 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30231
302322007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30233
30234 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30235 add comment explaining why.
30236
302372007-08-03 Richard Stallman <rms@gnu.org>
30238
30239 * fileio.c (Fvisited_file_modtime): Use make_time.
30240
302412007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30242
30243 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30244 build.
30245
302462007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30247
30248 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30249
302502007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30251
30252 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30253
302542007-07-30 Richard Stallman <rms@gnu.org>
30255
30256 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30257
302582007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30259
30260 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30261
302622007-07-28 Nick Roberts <nickrob@snap.net.nz>
30263
30264 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30265 remote default-directory.
30266
30267 * buffer.c (mode-line-format): Update doc string.
30268
302692007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30270
30271 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30272 scroll bar gap.
30273 (x_scroll_bar_create): Set bar->fringe_extended_p.
30274 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30275 on frame edge. Check fringe background extension. Don't clear
30276 extended fringe background area.
30277
30278 * w32term.h (struct scroll_bar): New member fringe_extended_p.
30279 (w32_fill_area): Enclose multiple statements with do ... while (0).
30280
30281 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
30282 Extend fringe background to scroll bar gap.
30283 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
30284 Set bar->fringe_extended_p.
30285 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30286 Put leftmost/rightmost scroll bars on frame edge. Check fringe
30287 background extension. Don't clear extended fringe background area.
30288
30289 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30290 New member fringe_extended_p.
30291
302922007-07-25 Glenn Morris <rgm@gnu.org>
30293
30294 * Relicense all FSF files to GPLv3 or later.
30295
30296 * COPYING: Switch to GPLv3.
30297
302982007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
30299
30300 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
30301
30302 * data.c (Finteractive_form): Check for the presence of an
30303 `interactive-form' symbol property more thoroughly.
30304
30305 * data.c (Finteractive_form): Use an `interactive-form' property if
30306 present, analogous to the function-documentation property.
30307
303082007-07-24 Jason Rumney <jasonr@gnu.org>
30309
30310 * w32fns.c (x_real_positions): Get real position from OS instead of
30311 calculating it.
30312
303132007-07-23 Jason Rumney <jasonr@gnu.org>
30314
30315 * filelock.c (current_lock_owner): Allow for @ sign in username.
30316
303172007-07-22 Nick Roberts <nickrob@snap.net.nz>
30318
30319 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
30320 remote default-directory.
30321
30322 * buffer.c (mode-line-format): Describe above case in doc string.
30323
303242007-07-20 Eli Zaretskii <eliz@gnu.org>
30325
30326 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
30327 Define if not defined.
30328
303292007-07-18 Jason Rumney <jasonr@gnu.org>
30330
30331 * w32proc.c (w32_executable_type): Handle 64 bit executables.
30332
303332007-07-18 Richard Stallman <rms@gnu.org>
30334
30335 * data.c (Fsetq_default): Doc fix.
30336
30337 * eval.c (Fsetq): Doc fix.
30338
303392007-07-18 Juanma Barranquero <lekktu@gmail.com>
30340
30341 * coding.c (Ffind_operation_coding_system):
30342 * eval.c (For, Fand): Doc fixes.
30343 Reported by Johan Bockgård.
30344
303452007-07-18 Jan Djärv <jan.h.d@swipnet.se>
30346
30347 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
30348
30349 * xterm.h: Declare x_ewmh_activate_frame.
30350
30351 * xterm.c (x_ewmh_activate_frame): New function.
30352 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
30353
303542007-07-17 Martin Rudalics <rudalics@gmx.at>
30355
30356 * window.c (Fdisplay_buffer): If largest or LRU window is the
30357 only window, split it even if it is not eligible for splitting.
30358 This restores the original behavior broken by the 2007-07-15
30359 change.
30360
303612007-07-17 Glenn Morris <rgm@gnu.org>
30362
30363 * abbrev.c (abbrev_check_chars): New function.
30364 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
30365 Call abbrev_check_chars to check abbrev characters are word
30366 constituents. Doc fix.
30367
303682007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
30369
30370 * process.c (Fstart_process, Fmake_network_process)
30371 (read_process_output): Fix up last changes.
30372
303732007-07-16 Eli Zaretskii <eliz@gnu.org>
30374
30375 * makefile.w32-in (clean): Don't delete *~.
30376
303772007-07-16 Andreas Schwab <schwab@suse.de>
30378
30379 * window.c (Fdisplay_buffer): Use NILP.
30380 (Fset_window_scroll_bars): Likewise.
30381
303822007-07-15 Martin Rudalics <rudalics@gmx.at>
30383
30384 * window.c (window_min_size_2): New function.
30385 (window_min_size_1, size_window, Fdisplay_buffer)
30386 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
30387 windows without mode- or header-lines when window-min-height is
30388 too small.
30389 (size_window): Reset nodelete_p after testing it, following an
30390 earlier note by Kim F. Storm.
30391 (display_buffer): Do not set split_height_threshold to twice the
30392 value of window_min_height to avoid changing the value of a
30393 customizable variable. Rather explicitly check whether the
30394 height of the window that shall be splitted is at least as large
30395 as split_height_threshold.
30396 (Fwindow_full_width_p): New defun.
30397 (syms_of_window): Defsubr it.
30398
30399 * window.h: Add EXFUN for Fwindow_full_width_p.
30400
304012007-07-14 Jason Rumney <jasonr@gnu.org>
30402
30403 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
30404
304052007-07-14 Richard Stallman <rms@gnu.org>
30406
30407 * eval.c (maybe_call_debugger): New function.
30408 (find_handler_clause): Use maybe_call_debugger.
30409 Call it when the handler says `debug'.
30410 Eliminate DEBUGGER_VALUE_PTR.
30411 (Fsignal): Eliminate debugger_value.
30412 (Qdebug): New variable.
30413 (syms_of_eval): Initialize it.
30414
304152007-07-14 Juanma Barranquero <lekktu@gmail.com>
30416
30417 * eval.c (Fprogn):
30418 * keyboard.c (Ftrack_mouse):
30419 * print.c (Fwith_output_to_temp_buffer):
30420 * window.c (Fsave_window_excursion): Doc fix.
30421
304222007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
30423
30424 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
30425
304262007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
30427
30428 * process.h (struct Lisp_Process): Turn slots infd, outfd,
30429 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
30430 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
30431 read_output_delay, and read_output_skip from Lisp_Objects to ints.
30432 Remove unused encoding_carryover.
30433 * process.c: Adjust all functions accordingly.
30434
304352007-07-12 Richard Stallman <rms@gnu.org>
30436
30437 * term.c: Include unistd.h only if HAVE_UNISTD_H.
30438
304392007-07-11 Jason Rumney <jasonr@gnu.org>
30440
30441 * makefile.w32-in (LIBS): Include OLE32.
30442
30443 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
30444 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
30445
304462007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30447
30448 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30449 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30450 from a Lisp_Object into a bare pointer.
30451 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30452 Adjust the code correspondingly.
30453
30454 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30455
30456 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30457 (term_show_mouse_face): Remove unused var `j'.
30458 (handle_one_term_event): Remove unused vars `i' and `j'.
30459 Don't cast return value of ttyname since it's not necessary.
30460
304612007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30462
30463 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30464 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30465
30466 * fns.c (map_char_table): Use an array of int for `indices' rather than
30467 an array of Lisp_Objects (which are only ever integers anyway).
30468 (Fmap_char_table): Update caller.
30469 * lisp.h: Update prototype.
30470 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30471 * fontset.c (Ffontset_info):
30472 * casetab.c (set_case_table): Update callers.
30473
30474 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30475
30476 * keymap.c (struct accessible_keymaps_data)
30477 (struct where_is_internal_data): New structures.
30478 (accessible_keymaps_1, where_is_internal_1): Use them to change
30479 interface to adhere to the one used by map_keymap.
30480 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30481 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30482
30483 * keymap.h (map_keymap_function_t): More informative prototype.
30484
304852007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30486
30487 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30488 (looking_at_1): Don't change search_regs and last_thing_searched
30489 if `inhibit-changing-match-data' is non-nil.
30490 (string_match_1, search_buffer, set_search_regs): Likewise.
30491 (syms_of_search): Add Lisp level definition for
30492 `inhibit-changing-match-data' and set it to nil.
30493 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30494 start and end of the match, instead of using values in search_regs.
30495
304962007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30497
30498 * minibuf.c (Fcompleting_read): New value `confirm-only'
30499 for `require-match'.
30500
305012007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30502
30503 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30504 part of the 2007-06-27 change to syms_of_fileio.
30505
305062007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30507
30508 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30509 Check WINDOWP before using XWINDOW. Consolidate return statements.
30510
305112007-06-27 Richard Stallman <rms@gnu.org>
30512
30513 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30514
305152007-06-27 Juanma Barranquero <lekktu@gmail.com>
30516
30517 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30518
305192007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30520
30521 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30522 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30523 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30524 (_free_internal, memalign): Use them.
30525 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30526 Initialize to PTHREAD_MUTEX_INITIALIZER.
30527 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30528 (morecore_nolock): Rename from morecore. All uses changed.
30529 Use only nolock versions of internal allocation functions.
30530 (_malloc_internal_nolock, _realloc_internal_nolock)
30531 (_free_internal_nolock): New functions created from
30532 _malloc_internal, _realloc_internal, and _free_internal.
30533 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30534 Copy hook value to automatic variable before its use.
30535 (memalign): Copy hook value to automatic variable before its use.
30536
305372007-06-26 Kenichi Handa <handa@m17n.org>
30538
30539 * coding.c (Ffind_operation_coding_system): Docstring improved.
30540 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30541
305422007-06-25 David Kastrup <dak@gnu.org>
30543
30544 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30545 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30546 cater for additional parameter.
30547
30548 * keymap.h: Adjust number of parameters to `current-active-maps'.
30549
30550 * doc.c (Fsubstitute_command_keys): Adjust call of
30551 `current-active-maps'.
30552
305532007-06-25 David Kastrup <dak@gnu.org>
30554
30555 * callint.c (Fcall_interactively): Make the parsing of interactive
30556 specs somewhat more readable.
30557
305582007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30559
30560 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30561 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30562 if extended background has already been filled.
30563
305642007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30565
30566 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30567 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30568
30569 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30570 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30571 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30572 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30573 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30574 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30575 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30576 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30577 Run timers during dialog popup.
30578 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30579
305802007-06-21 Jason Rumney <jasonr@gnu.org>
30581
30582 * image.c (convert_mono_to_color_image): Swap fore and background.
30583
305842007-06-20 Jason Rumney <jasonr@gnu.org>
30585
30586 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30587 (w32_free_bdf_font): Unmap memory not handle.
30588
305892007-06-20 Sam Steingold <sds@gnu.org>
30590
30591 * gmalloc.c (__morecore): Fix the declaration to comply with the
30592 definition.
30593
305942007-06-20 Juanma Barranquero <lekktu@gmail.com>
30595
30596 * w32term.c (w32_delete_display): Remove leftover declaration.
30597 (w32_define_cursor, w32_initialize): Make static.
30598
30599 * w32.c (_wsa_errlist): Fix typo in error message.
30600 (init_environment): Ignore any environment variable from the
30601 registry having a null value.
30602
306032007-06-20 Glenn Morris <rgm@gnu.org>
30604
30605 * Makefile.in (LIBGIF): Default to -lgif.
30606
306072007-06-17 Jason Rumney <jasonr@gnu.org>
30608
30609 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30610 unicode strings.
30611
306122007-06-16 Juanma Barranquero <lekktu@gmail.com>
30613
30614 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30615 Fix typo in docstring.
30616
306172007-06-16 Eli Zaretskii <eliz@gnu.org>
30618
30619 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30620 and their keybindings.
30621
306222007-06-15 Chong Yidong <cyd@stupidchicken.com>
30623
30624 * composite.c (update_compositions): Fix last fix.
30625
306262007-06-14 Jason Rumney <jasonr@gnu.org>
30627
30628 * w32.c (get_process_times_fn): New function pointer.
30629 (globals_of_w32): Intialize it if present in kernel32.dll.
30630 (w32_get_internal_run_time): New function.
30631
30632 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30633
306342007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30635
30636 * composite.c (update_compositions): Check the validness of
30637 compositions.
30638
306392007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30640
30641 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30642 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30643
30644 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30645 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30646
30647 * macgui.h (USE_MAC_TOOLBAR): New define.
30648
30649 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30650 Return immediately unless popup is activated.
30651
30652 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30653 background to scroll bar gap.
30654 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30655 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30656 scroll bars on frame edge. Check fringe background extension.
30657 Don't clear extended fringe background area.
30658 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30659 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30660 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30661 [USE_MAC_TOOLBAR]: New macros.
30662 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30663 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30664 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30665 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30666 [USE_MAC_TOOLBAR]: New functions.
30667 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30668 manually if previous repositioning has failed.
30669 (mac_handle_keyboard_event): Use precomputed event kind.
30670 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30671 as tool bar item click. Handle mouse movement over tool bar items.
30672
30673 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30674 toolbar_win_gravity.
30675 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30676 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30677 Add externs.
30678
30679 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30680 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30681
306822007-06-14 Chong Yidong <cyd@stupidchicken.com>
30683
30684 * image.c (search_image_cache): Remove unused variable.
30685
306862007-06-13 Chong Yidong <cyd@stupidchicken.com>
30687
30688 * xfns.c, xmenu.c: Link to xaw3d if available.
30689
306902007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30691
30692 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30693 frame_foreground and frame_background.
30694
30695 * image.c (lookup_image): Save frame foreground and background colors.
30696 (search_image_cache): Check if saved and current frame colors match.
30697
306982007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30699
30700 * regex.c (regex_compile): Remove the `regnum' counter.
30701 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30702
307032007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30704
30705 * term.c: Include intervals.h to declare Fget_text_property.
30706
307072007-06-10 Jason Rumney <jasonr@gnu.org>
30708
30709 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30710
307112007-06-08 Juanma Barranquero <lekktu@gmail.com>
30712
30713 * callint.c (Fcall_interactively):
30714 * editfns.c (Fdelete_and_extract_region):
30715 * fileio.c (Fread_file_name):
30716 * fns.c (Fmapconcat):
30717 * keyboard.c (cmd_error_internal):
30718 * keymap.c (Fkey_description):
30719 * lread.c (openp):
30720 * minibuf.c (read_minibuf):
30721 * search.c (wordify):
30722 * sunfns.c (sel_read):
30723 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30724 * xfns.c (x_default_scroll_bar_color_parameter):
30725 * xmenu.c (menu_help_callback):
30726 * xselect.c (Fx_get_atom_name):
30727 * xterm.c (x_term_init): Use empty_unibyte_string.
30728
307292007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30730
30731 * alloc.c (init_strings): Initialize canonical empty strings.
30732 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30733 canonical empty string when the requested size is 0.
30734
30735 * emacs.c (empty_unibyte_string): Rename from empty_string.
30736 (empty_multibyte_string): New canonical empty string.
30737 (syms_of_emacs): Don't initialize empty_string.
30738
30739 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30740 string, if appropriate.
30741 (empty_unibyte_string, empty_multibyte_string): New externs.
30742 (empty_string): Remove extern.
30743
30744 * lread.c (syms_of_lread): Use empty_unibyte_string.
30745
307462007-06-07 Jason Rumney <jasonr@gnu.org>
30747
30748 * s/ms-w32.h: Don't define HAVE_TZNAME.
30749
30750 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30751
307522007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30753
30754 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30755
30756 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30757 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30758
30759 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30760 Don't call next handler.
30761 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30762 Remove argument. Install handler to application.
30763 (set_frame_menubar): Don't change deep_p.
30764 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30765 FRAME_OUTER_TO_INNER_DIFF_Y.
30766 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30767 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30768 [HAVE_DIALOGS]: New macros.
30769 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30770 Use them.
30771 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30772
30773 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30774 init_service_handler. All callers changed. Return OSStatus value.
30775
30776 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30777 All callers changed so as not to call SetPortWindowPort.
30778 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30779 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30780 mac_draw_string_common.
30781 (mac_draw_image_string_qd): Likewise.
30782 (mac_draw_string_common): Use them. Add INLINE.
30783 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30784 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30785 GetGlobalMouse.
30786 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30787 and FRAME_OUTER_TO_INNER_DIFF_Y.
30788 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30789 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30790 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30791 repositioning window to mac_handle_window_event.
30792 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30793 saving window location to mac_handle_window_event
30794 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30795 (install_menu_target_item_handler): Remove argument in extern.
30796 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30797 Also accept command events.
30798 (do_keystroke): New function created from XTread_socket.
30799 (init_command_handler): Remove functions.
30800 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30801 and save window location by kEventWindowShowing and kEventWindowHiding
30802 handlers here. Don't call next handler for window state change and
30803 focus events.
30804 (mac_handle_application_event, mac_handle_keyboard_event)
30805 [TARGET_API_MAC_CARBON]: New functions.
30806 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30807 kEventWindowShowing and kEventWindowHiding events. Move installation
30808 of mouse, font, text input and menu target item handlers to
30809 install_application_handler.
30810 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30811 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30812 New function.
30813 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30814 Register it.
30815 (XTread_socket) [TARGET_API_MAC_CARBON]:
30816 Consolidate SendEventToEventTarget calls.
30817 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30818 Move application activation handler to mac_handle_application_event.
30819 Move keyboard handler to mac_handle_keyboard_event.
30820 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30821 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30822 init_command_handler. Call install_application_handler.
30823
30824 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30825 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30826
308272007-06-07 Glenn Morris <rgm@gnu.org>
30828
30829 * emacs.c (main): Use `emacs-copyright' in --version output.
30830
308312007-06-06 Chong Yidong <cyd@stupidchicken.com>
30832
30833 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30834
308352007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30836
30837 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30838
30839 * macgui.h: Replace WindowPtr with WindowRef.
30840
30841 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30842 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30843 Replace ControlHandle with ControlRef.
30844 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30845
30846 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30847 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30848 Replace ControlHandle with ControlRef.
30849 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30850 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30851
30852 * macterm.h (struct scroll_bar): Rename member control_handle_low
30853 and control_handle_high to control_ref_low and control_ref_high.
30854 All uses changed.
30855 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30856 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30857 respectively. All uses changed.
30858 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30859 (install_window_handler, remove_window_handler): Replace WindowPtr
30860 with WindowRef in externs.
30861
308622007-06-05 Juanma Barranquero <lekktu@gmail.com>
30863
30864 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30865
308662007-06-03 Nick Roberts <nickrob@snap.net.nz>
30867
30868 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30869
30870 * frame.c (Fmouse_position, Fmouse_pixel_position):
30871 Condition on HAVE_GPM too.
30872
30873 * term.c (term_mouse_highlight): Remove unused variables.
30874 (Fterm_open_connection): Set gpm_zerobased to 1.
30875 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30876 Use zero based co-ordinates.
30877 (handle_one_term_event): Report a drag as mouse movement too.
30878
30879 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30880
308812007-06-03 Chong Yidong <cyd@stupidchicken.com>
30882
30883 * image.c (search_image_cache): New function. Require background
30884 color match if background color is unspecified in the image spec.
30885 (uncache_image, lookup_image): Use it.
30886
308872007-06-01 Juanma Barranquero <lekktu@gmail.com>
30888
30889 * window.c (Fshrink_window): Reflow docstring.
30890
308912007-06-02 Chong Yidong <cyd@stupidchicken.com>
30892
30893 * Version 22.1 released.
30894
308952007-06-01 Richard Stallman <rms@gnu.org>
30896
30897 * xfns.c (x_encode_text): Add GCPRO.
30898
308992007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30900
30901 * xfns.c (x_set_name_internal): Save encoded name before
30902 x_encode_text in case string data is relocated.
30903
309042007-05-31 Richard Stallman <rms@gnu.org>
30905
30906 * buffer.c (syms_of_buffer): Doc fix.
30907
309082007-05-30 Nick Roberts <nickrob@snap.net.nz>
30909
30910 * sysdep.c (init_sys_modes): Add rather than replace with
30911 O_NONBLOCK.
30912
30913 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30914 term_mouse_moveto.
30915
30916 * termhooks.h (term_mouse_moveto): New extern.
30917
30918 * term.c (mouse_face_window): Rename...
30919 (Qmouse_face_window): ...to this.
30920 (term_show_mouse_face, term_clear_mouse_face)
30921 (term_mouse_highlight): Use Qmouse_face_window.
30922 (term_mouse_moveto): New function.
30923 (term_mouse_position): Make it work.
30924 (syms_of_term): Uncomment assignment to mouse_position_hook.
30925 Staticpro Qmouse_face_window.
30926
309272007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30928
30929 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30930 around current_column call.
30931
309322007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30933
30934 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30935 * xdisp.c (next_element_from_buffer):
30936 * window.c (delete_window):
30937 * term.c (term_mouse_highlight):
30938 * msdos.c (getdefdir):
30939 * macterm.c (mac_create_bitmap_from_bitmap_data)
30940 (init_font_name_table):
30941 * fns.c (Fsxhash):
30942 * data.c (Fmake_local_variable):
30943 * ccl.c (ccl_driver): Likewise.
30944
309452007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30946
30947 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30948 Call mac_wakeup_from_rne on window size change.
30949
309502007-05-25 Chong Yidong <cyd@stupidchicken.com>
30951
30952 * image.c (uncache_image): Fix typo.
30953
309542007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30955
30956 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30957
309582007-05-22 Richard Stallman <rms@gnu.org>
30959
30960 * xterm.c (x_connection_closed): Remove NO_RETURN.
30961
309622007-05-22 Martin Rudalics <rudalics@gmx.at>
30963
30964 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30965
309662007-05-21 Chong Yidong <cyd@stupidchicken.com>
30967
30968 * image.c (uncache_image): New function.
30969 (Fimage_refresh): New function.
30970
309712007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30972
30973 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30974
309752007-05-20 Nick Roberts <nickrob@snap.net.nz>
30976
30977 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30978 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30979
309802007-05-20 Nick Roberts <nickrob@snap.net.nz>
30981
30982 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30983 conditional on [HAVE_GPM_H].
30984
309852007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30986
30987 * syntax.c (skip_chars): Update syntax-table only after we checked that
30988 the new location is valid.
30989
309902007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30991
30992 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30993 mac_get_window_bounds.
30994
309952007-05-20 Nick Roberts <nickrob@snap.net.nz>
30996
30997 * Makefile.in (LIBGPM): Allow it to be set from configure.
30998 If set then link Emacs with it.
30999
31000 * config.in: Regenerate.
31001
31002 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31003 New externs.
31004
31005 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31006 Include gpm.h.
31007 (handle_one_term_event, term_gpm): New externs.
31008
31009 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31010 and allow it to be interrupted by SIGIO.
31011
31012 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31013 (wait_reading_process_output): Wait on gpm_fd too.
31014 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31015 (add_gpm_wait_descriptor_called_flag): New variable.
31016 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31017
31018 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31019 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31020 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31021 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31022 (make_lispy_event): Add case GPM_CLICK_EVENT.
31023 (read_avail_input): Handle mouse input.
31024
31025 * term.c (write_glyphs_with_face): New function.
31026 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31027 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31028 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31029 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31030 (last_mouse_x, last_mouse_y): New variables.
31031 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31032 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31033 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31034 (Fterm_close_connection): New functions.
31035 (term_init): Initialise mouse_face_window.
31036
310372007-05-19 Chong Yidong <cyd@stupidchicken.com>
31038
31039 * xdisp.c (redisplay_window): If first window line is a
31040 continuation line, recompute the new window start instead of
31041 recentering.
31042
310432007-05-18 Glenn Morris <rgm@gnu.org>
31044
31045 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31046 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31047
310482007-05-17 Glenn Morris <rgm@gnu.org>
31049
31050 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31051
310522007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31053
31054 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31055 dead key repeat and up events.
31056
310572007-05-14 Chong Yidong <cyd@stupidchicken.com>
31058
31059 * image.c (pbm_load): Check image size for monochrome pbm.
31060
310612007-05-13 Chong Yidong <cyd@stupidchicken.com>
31062
31063 * xterm.c (XTread_socket): Revert last change.
31064
310652007-05-12 Chong Yidong <cyd@stupidchicken.com>
31066
31067 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31068
31069 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31070
310712007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31072
31073 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31074 mixup (YAILOM).
31075
310762007-05-07 Andreas Schwab <schwab@suse.de>
31077
31078 * keymap.c (Flookup_key): Fix typo in last change.
31079
310802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31081
31082 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31083 mapping for unibyte strings.
31084
310852007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31086
31087 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31088 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31089
310902007-04-29 Richard Stallman <rms@gnu.org>
31091
31092 * insdel.c (replace_range): For undo, record insertion first.
31093
310942007-04-29 Andreas Schwab <schwab@suse.de>
31095
31096 * lisp.h (VECSIZE): Use OFFSETOF.
31097
310982007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31099
31100 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31101 disabled lines.
31102
311032007-04-28 Richard Stallman <rms@gnu.org>
31104
31105 * lread.c (read_escape): In a string, \s is always space.
31106
311072007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31108
31109 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31110
31111 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31112 submenu for menu bar items.
31113
31114See ChangeLog.10 for earlier changes.
31115
31116;; Local Variables:
31117;; coding: utf-8
aac0c6e3
MR
31118;; End:
31119
73b0cd50 31120 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31121
31122 This file is part of GNU Emacs.
31123
31124 GNU Emacs is free software: you can redistribute it and/or modify
31125 it under the terms of the GNU General Public License as published by
31126 the Free Software Foundation, either version 3 of the License, or
31127 (at your option) any later version.
31128
31129 GNU Emacs is distributed in the hope that it will be useful,
31130 but WITHOUT ANY WARRANTY; without even the implied warranty of
31131 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31132 GNU General Public License for more details.
31133
31134 You should have received a copy of the GNU General Public License
31135 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.