* src/print.c (print_object): Never print old-style backquotes.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
617a0e83
SM
12011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * print.c (print_object): Never print old-style backquotes.
4 Obey escapeflag for hash tables as well.
5
cce7d530 62011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
7
8 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 9 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 10
8d40723d
PE
112011-02-22 Paul Eggert <eggert@cs.ucla.edu>
12
13 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
14
aa0f73d1
WJ
152011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
16
17 * lread.c (openp): Correct Boolean typo in last commit.
18
bdaa0745
AR
192011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
20
21 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 22 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 23
f68c809d
PE
242011-02-22 Paul Eggert <eggert@cs.ucla.edu>
25
26 Assume S_ISLNK etc. work, since gnulib supports this.
27 * config.in: Regenerate.
28 * dired.c (lstat): Remove.
29 (file_name_completion): Assume S_ISDIR works.
30 (file_name_completion_stat): Assume S_ISLNK works.
31 Do not bother calling stat unless lstat says it's a symlink.
32 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
33 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
34 (check_writable, Ffile_writable_p, Fset_file_times):
35 Assume S_ISDIR works.
36 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
37 fifos exist.
2f8f196d 38 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
39 * filelock.c (S_ISLNK): Remove.
40 * lread.c (openp): Assume S_ISDIR works.
41 * xrdb.c (S_ISDIR): Remove.
42
25c51af3
EZ
432011-02-21 Eli Zaretskii <eliz@gnu.org>
44
45 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 46 lib/makefile.w32-in.
25c51af3
EZ
47 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
48 (GLOBAL_SOURCES): Remove filemode.c.
49 (OBJ1): Remove $(BLD)/filemode.$(O).
50
5c185672
PE
512011-02-21 Paul Eggert <eggert@cs.ucla.edu>
52
53 Import filemode module from gnulib.
54 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
55 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
56 (filemode.o): Remove; this is now in ../lib.
57 * dired.c: Include <filemode.h>.
58 (filemodestring): Remove now-redundant decl.
59 * config.in: Regenerate.
60
32159fc3
CS
612011-02-20 Eli Zaretskii <eliz@gnu.org>
62
63 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
64 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
65
2f8f196d 662011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
67
68 * makefile.w32-in: Remove md5.$(O).
69 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
70 lib/makefile.w32-in.
71
61353ac8 722011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 73
61353ac8
PE
74 Import crypto/md5 and stdint modules from gnulib.
75 * Makefile.in (base_obj): Remove md5.o, since this file
76 is in lib now.
77 * config.in: Regenerate.
78 * md5.h, md5.h: Move to ../lib.
79 * deps.mk (md5.o): Remove.
80 (fns.o): Depend on ../lib/md5.h, not md5.h.
81
9d9d12cd
EZ
822011-02-19 Eli Zaretskii <eliz@gnu.org>
83
f601db19
EZ
84 * termcap.c (tputs): Don't declare baud_rate.
85
9d9d12cd
EZ
86 * s/msdos.h (strtold): Define to _strtold.
87
aa56f361
SM
882011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
89
cbe81f1d
SM
90 * process.c (Fstart_process, Fmake_serial_process)
91 (Fmake_network_process, server_accept_connection):
92 Use empty_unibyte_string.
93
94 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
95
aa56f361
SM
96 * lread.c (Qdir_ok): New constant.
97 (syms_of_lread): Initialize it.
98 (openp): Don't ignore directories if the predicate returns dir-ok.
99
d6de49a1
EZ
1002011-02-18 Eli Zaretskii <eliz@gnu.org>
101
42af913d
EZ
102 * xdisp.c (display_line): Fix the change made for bug#7939.
103
d6de49a1
EZ
104 * terminal.c (create_terminal): Use default-keyboard-coding-system
105 and default-terminal-coding-system to initialize coding systems of
106 the new terminal. (Bug#7840)
107
b286858c
SM
1082011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
109
110 * lisp.h (BYTE_MARK_STACK): New macro.
111 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
112
113 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
114 (struct byte_stack): Only define `top' and `bottom' if used.
115 (mark_byte_stack): Only define if used.
116 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
117 is not set.
118 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
119
120 * term.c (OUTPUT_IF): Use OUTPUT.
121
122 * alloc.c (Fgarbage_collect): When using stack scanning, don't
123 redundantly scan byte-code stacks, catchlist, and handlerlist.
124
124c9ff0
JD
1252011-02-17 Jan Djärv <jan.h.d@swipnet.se>
126
127 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
128 (Fns_read_file_name): Replace B_ with BVAR.
129
130 * nsterm.m (ns_term_init): Use KVAR.
131
05c65251
EZ
1322011-02-16 Eli Zaretskii <eliz@gnu.org>
133
026d69ec
EZ
134 * msdos.c (internal_terminal_init): Use KVAR.
135
05c65251
EZ
136 * w32fns.c (Fx_create_frame): Use KVAR.
137
138 * w32term.c (w32_create_terminal): Use KVAR.
139
140 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 141 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
142
143 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
144
b286858c
SM
145 * fileio.c (Finsert_file_contents, Fwrite_region):
146 Remove references to buffer_file_type.
05c65251
EZ
147 (syms_of_fileio): Don't intern and staticpro
148 find-buffer-file-type.
149
150 * callproc.c (syms_of_callproc): Remove references to
151 buffer_file_type.
152
153 * buffer.c (reset_buffer_local_variables): Don't set
154 buffer_file_type.
155 (init_buffer_once): Likewise.
156 (syms_of_buffer): Don't define buffer-file-type.
157
158 * buffer.h (struct buffer): Remove buffer_file_type.
159
1344aad4
TT
1602011-02-16 Tom Tromey <tromey@parfait>
161
15f58304
EZ
162 * callint.c (Fcall_interactively): Update for change to field names.
163 * doc.c (Fsubstitute_command_keys): Update for change to field names.
164 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 165 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 166 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
167 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
168 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 169 Update for change to field names.
1344aad4
TT
170 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
171 (echo_length, echo_truncate, cmd_error, command_loop_1)
172 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
173 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
174 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
175 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
176 Update for change to field names.
177 * xfns.c (Fx_create_frame): Update for change to field names.
178 * xterm.c (x_connection_closed, x_term_init): Update for change to
179 field names.
1344aad4 180 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 181 Update for change to field names.
1344aad4 182 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 183 Update for change to field names.
1344aad4 184 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 185 (delete_frame): Update for change to field names.
1344aad4
TT
186 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
187 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
188 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
189
eb4916d7
TT
1902011-02-16 Tom Tromey <tromey@redhat.com>
191
192 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
193
4b4deea2
TT
1942011-02-16 Tom Tromey <tromey@parfait>
195
196 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
197 * xfaces.c (compute_char_face): Replace B_ with BVAR.
198 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
199 (message_dolog, update_echo_area, ensure_echo_area_buffers)
200 (with_echo_area_buffer, setup_echo_area_for_printing)
201 (set_message_1, update_menu_bar, update_tool_bar)
202 (text_outside_line_unchanged_p, redisplay_internal)
203 (try_scrolling, try_cursor_movement, redisplay_window)
204 (try_window_reusing_current_matrix, row_containing_pos)
205 (try_window_id, get_overlay_arrow_glyph_row, display_line)
206 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
207 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
208 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
209 BVAR.
210 * window.c (window_display_table, unshow_buffer, window_loop)
211 (window_min_size_2, set_window_buffer, Fset_window_buffer)
212 (select_window, Fforce_window_update, temp_output_buffer_show)
213 (Fset_window_configuration, save_window_save): Replace B_ with
214 BVAR.
215 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
216 Replace B_ with BVAR.
217 * undo.c (record_point, record_insert, record_delete)
218 (record_marker_adjustment, record_first_change)
219 (record_property_change, Fundo_boundary, truncate_undo_list)
220 (Fprimitive_undo): Replace B_ with BVAR.
221 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
222 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
223 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
224 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
225 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
226 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
227 (string_match_1, fast_looking_at, newline_cache_on_off)
228 (search_command, search_buffer, simple_search, boyer_moore)
229 (Freplace_match): Replace B_ with BVAR.
230 * process.c (get_process, list_processes_1, Fstart_process)
231 (Fmake_serial_process, Fmake_network_process)
232 (read_process_output, send_process, exec_sentinel)
233 (status_notify, setup_process_coding_systems): Replace B_ with
234 BVAR.
235 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
236 (strout, print_string, temp_output_buffer_setup, print_object):
237 Replace B_ with BVAR.
238 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
239 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
240 Replace B_ with BVAR.
4b4deea2
TT
241 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
242 (set_marker_both, set_marker_restricted_both, unchain_marker):
243 Replace B_ with BVAR.
244 * lread.c (readchar, unreadchar, openp, readevalloop)
245 (Feval_buffer, Feval_region): Replace B_ with BVAR.
246 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
247 * keymap.c (Flocal_key_binding, Fuse_local_map)
248 (Fcurrent_local_map, push_key_description)
249 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
250 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
251 (read_key_sequence): Replace B_ with BVAR.
252 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
253 * intervals.c (set_point_both, get_local_map): Replace B_ with
254 BVAR.
255 * insdel.c (check_markers, insert_char, insert_1_both)
256 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
257 (adjust_after_replace, replace_range, del_range_2)
258 (modify_region, prepare_to_modify_buffer)
259 (Fcombine_after_change_execute): Replace B_ with BVAR.
260 * indent.c (buffer_display_table, recompute_width_table)
261 (width_run_cache_on_off, current_column, scan_for_column)
262 (Findent_to, position_indentation, compute_motion, vmotion):
263 Replace B_ with BVAR.
264 * fringe.c (get_logical_cursor_bitmap)
265 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
266 with BVAR.
267 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
268 * font.c (font_at): Replace B_ with BVAR.
269 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
270 Replace B_ with BVAR.
271 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
272 (unlock_buffer): Replace B_ with BVAR.
273 * fileio.c (Fexpand_file_name, Ffile_directory_p)
274 (Ffile_regular_p, Ffile_selinux_context)
275 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
276 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
277 (Finsert_file_contents, choose_write_coding_system)
278 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
279 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
280 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
281 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
282 (save_excursion_restore, Fprevious_char, Fchar_before)
283 (general_insert_function, Finsert_char, Finsert_byte)
284 (make_buffer_string_both, Finsert_buffer_substring)
285 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
286 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
287 (Ftranslate_region_internal, save_restriction_restore)
288 (Fchar_equal): Replace B_ with BVAR.
289 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
290 * dispextern.h (WINDOW_WANTS_MODELINE_P)
291 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
292 * dired.c (directory_files_internal): Replace B_ with BVAR.
293 * data.c (swap_in_symval_forwarding, set_internal)
294 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
295 Replace B_ with BVAR.
296 * composite.c (fill_gstring_header)
297 (composition_compute_stop_pos, composition_adjust_point)
298 (Ffind_composition_internal): Replace B_ with BVAR.
299 * coding.c (decode_coding, encode_coding)
300 (make_conversion_work_buffer, decode_coding_gap)
301 (decode_coding_object, encode_coding_object)
302 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
303 (Funencodable_char_position, Fcheck_coding_systems_region):
304 Replace B_ with BVAR.
305 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
306 with BVAR.
307 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
308 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
309 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
310 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
311 * category.h (Vstandard_category_table): Replace B_ with BVAR.
312 * category.c (check_category_table, Fcategory_table)
313 (Fset_category_table, char_category_set): Replace B_ with BVAR.
314 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
315 BVAR.
316 * casefiddle.c (casify_object, casify_region): Replace B_ with
317 BVAR.
318 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
319 with BVAR.
320 * callint.c (check_mark, Fcall_interactively): Replace B_ with
321 BVAR.
322 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
323 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
324 with BVAR.
325 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
326 (get_truename_buffer, Fget_buffer_create)
327 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
328 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
329 (Fbuffer_local_value, buffer_lisp_local_variables)
330 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
331 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
332 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
333 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
334 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
335 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
336 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
337 (record_overlay_string, overlay_strings, init_buffer_once)
338 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
339
8678d9e4 3402011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
341
342 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
343 window is changed inside calls to do_pending_window_change.
344 (Bug#8020)
345
1f5d53eb
PE
3462011-02-16 Paul Eggert <eggert@cs.ucla.edu>
347
348 Remove no-longer needed getloadavg symbols.
349 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
350 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
351 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
352 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
353 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
354 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
355 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
356 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
357 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
358 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
359 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
360 (LDAV_SYMBOL): Remove.
361 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
362 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
363
364 Import getloadavg module from gnulib.
365 * deps.mk (getloadavg.o): Remove; gnulib now does this.
366 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
367 now does this.
368 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
369 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
370 * config.in: Regenerate.
371
8017fd6b
EZ
3722011-02-15 Eli Zaretskii <eliz@gnu.org>
373
374 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
375
75b43359
MWD
3762011-02-14 Michael Welsh Duggan <md5i@md5i.com>
377
378 * print.c (float_to_string): Ensure that a decimal point is
379 printed if using dtoastr (Bug#8033).
380
fc3ca113
EZ
3812011-02-14 Eli Zaretskii <eliz@gnu.org>
382
1f5d53eb 383 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
384 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
385
fc3ca113
EZ
386 * dired.c (directory_files_internal):
387 * fileio.c (Finsert_file_contents):
388 * insdel.c (prepare_to_modify_buffer):
389 * xdisp.c (pos_visible_p):
390 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
391 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
392 Use B_ for the MS-Windows build.
393
3928f2b6
JD
3942011-02-14 Jan Djärv <jan.h.d@swipnet.se>
395
396 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
397 resource that specifies helvetica for menus and dialogs.
398
399 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
400 (apply_systemfont_to_menu): Set resources *menubar*font and
401 *popup*font. Remove defflt.
b286858c
SM
402 (set_frame_menubar, create_and_show_popup_menu):
403 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 404
4bb81cc2
TT
4052011-02-14 Tom Tromey <tromey@redhat.com>
406
fc3ca113
EZ
407 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
408
4bb81cc2
TT
409 * keyboard.h: Remove obsolete comment.
410
5d8ea120
TT
4112011-02-14 Tom Tromey <tromey@parfait>
412
413 * composite.c (fill_gstring_header)
414 (composition_compute_stop_pos, composition_adjust_point)
415 (Ffind_composition_internal): Use B_.
416 * intervals.c (set_point_both, get_local_map): Use B_.
417 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
418 * process.c (get_process, list_processes_1, Fstart_process)
419 (Fmake_serial_process, Fmake_network_process)
420 (read_process_output, send_process, exec_sentinel)
421 (status_notify, setup_process_coding_systems): Use B_.
422 * bytecode.c (Fbyte_code): Use B_.
423 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
424 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
425 (skip_syntaxes, scan_lists): Use B_.
426 * lread.c (readchar, unreadchar, openp, readevalloop)
427 (Feval_buffer, Feval_region): Use B_.
428 * print.c (printchar, strout, print_string, PRINTDECLARE)
429 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
430 (print_object): Use B_.
431 * font.c (font_at): Use B_.
b286858c
SM
432 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
433 Use B_.
5d8ea120
TT
434 * callint.c (check_mark, Fcall_interactively): Use B_.
435 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
436 (save_excursion_restore, Fprevious_char, Fchar_before)
437 (general_insert_function, Finsert_char, Finsert_byte)
438 (make_buffer_string_both, Finsert_buffer_substring)
439 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
440 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
441 (Ftranslate_region_internal, save_restriction_restore)
442 (Fchar_equal): Use B_.
443 * data.c (swap_in_symval_forwarding, set_internal)
444 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
445 Use B_.
446 * undo.c (record_point, record_insert, record_delete)
447 (record_marker_adjustment, record_first_change)
448 (record_property_change, Fundo_boundary, truncate_undo_list)
449 (Fprimitive_undo): Use B_.
450 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
451 (string_match_1, fast_looking_at, newline_cache_on_off)
452 (search_command, search_buffer, simple_search, boyer_moore)
453 (Freplace_match): Use B_.
454 * indent.c (buffer_display_table, recompute_width_table)
455 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
456 (Findent_to, position_indentation, compute_motion, vmotion):
457 Use B_.
5d8ea120
TT
458 * casefiddle.c (casify_object, casify_region): Use B_.
459 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
460 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
461 * fileio.c (Fexpand_file_name, Ffile_directory_p)
462 (Ffile_regular_p, Ffile_selinux_context)
463 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
464 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
465 (Finsert_file_contents, choose_write_coding_system)
466 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
467 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
468 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
469 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
470 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
471 (set_marker_both, set_marker_restricted_both, unchain_marker):
472 Use B_.
5d8ea120
TT
473 * insdel.c (check_markers, insert_char, insert_1_both)
474 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
475 (adjust_after_replace, replace_range, del_range_2)
476 (modify_region, prepare_to_modify_buffer)
477 (Fcombine_after_change_execute): Use B_.
478 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
479 (unlock_buffer): Use B_.
480 * keymap.c (Flocal_key_binding, Fuse_local_map)
481 (Fcurrent_local_map, push_key_description)
482 (Fdescribe_buffer_bindings): Use B_.
483 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
484 (read_key_sequence): Use B_.
485 * fringe.c (get_logical_cursor_bitmap)
486 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
487 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
488 * xfaces.c (compute_char_face): Use B_.
489 * character.c (chars_in_text, Fget_byte): Use B_.
490 * category.c (check_category_table, Fcategory_table)
491 (Fset_category_table, char_category_set): Use B_.
492 * coding.c (decode_coding, encode_coding)
493 (make_conversion_work_buffer, decode_coding_gap)
494 (decode_coding_object, encode_coding_object)
495 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
496 (Funencodable_char_position, Fcheck_coding_systems_region):
497 Use B_.
5d8ea120
TT
498 * charset.c (Ffind_charset_region): Use B_.
499 * window.c (window_display_table, unshow_buffer, window_loop)
500 (window_min_size_2, set_window_buffer, Fset_window_buffer)
501 (select_window, Fforce_window_update, temp_output_buffer_show)
502 (Fset_window_configuration, save_window_save): Use B_.
503 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
504 (message_dolog, update_echo_area, ensure_echo_area_buffers)
505 (with_echo_area_buffer, setup_echo_area_for_printing)
506 (set_message_1, update_menu_bar, update_tool_bar)
507 (text_outside_line_unchanged_p, redisplay_internal)
508 (try_scrolling, try_cursor_movement, redisplay_window)
509 (try_window_reusing_current_matrix, row_containing_pos)
510 (try_window_id, get_overlay_arrow_glyph_row, display_line)
511 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
512 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
513 (get_window_cursor_type, note_mouse_highlight): Use B_.
514 * frame.c (make_frame_visible_1): Use B_.
515 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
516 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
517 (WINDOW_WANTS_MODELINE_P): Use B_.
518 * syntax.h (Vstandard_syntax_table): Update.
519 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
520 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
521 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
522 * character.h (FETCH_CHAR_ADVANCE): Update.
523 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
524 * category.h (Vstandard_category_table): Update.
525 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
526 names.
527 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
528 * buffer.c (swapfield_): New macro.
529 (Fbuffer_swap_text): Use swapfield_ where appropriate.
530 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
531 (Fget_buffer_create, clone_per_buffer_values)
532 (Fmake_indirect_buffer, reset_buffer)
533 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
534 (Fbuffer_local_value, buffer_lisp_local_variables)
535 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
536 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
537 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
538 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
539 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
540 (Fbuffer_swap_text, Fset_buffer_multibyte)
541 (swap_out_buffer_local_variables, record_overlay_string)
542 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
543 Use B_.
544 * buffer.h (struct buffer): Rename all Lisp_Object fields.
545 (BUFFER_INTERNAL_FIELD, B_): New macro.
546 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
547
42f60557
JD
5482011-02-14 Jan Djärv <jan.h.d@swipnet.se>
549
550 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
551 is null.
552
2f9a22e2
J
5532011-02-13 Jan Djärv <jan.h.d@swipnet.se>
554
555 * callproc.c (Fcall_process):
556 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
557 comment.
558
84eb0351 5592011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
560
561 * window.c (select_window): Check inhibit_point_swap argument when
562 deciding whether to return immediately.
563
84eb0351 5642011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
565
566 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
567 zero (Bug#7348).
568
84eb0351
CY
5692011-02-12 Chong Yidong <cyd@stupidchicken.com>
570
571 * config.in (TERMINFO): New definition.
572
573 * s/netbsd.h: Use it to choose between terminfo and termcap
574 (Bug#7642).
575
33d605d0
PE
5762011-02-12 Paul Eggert <eggert@cs.ucla.edu>
577
578 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
579 The difference doesn't matter here, in practice, and sizeof is
580 more portable to non-GCC compilers. Also, this makes the code
581 match the already-existing comment.
582
c0ad4ea5
AS
5832011-02-12 Andreas Schwab <schwab@linux-m68k.org>
584
585 * process.c (create_process): Reset SIGPIPE handler in the child.
586 * callproc.c (Fcall_process): Likewise. (Bug#5238)
587
50fd938f
EZ
5882011-02-12 Eli Zaretskii <eliz@gnu.org>
589
590 * xdisp.c <this_line_min_pos>: New variable.
591 (move_it_in_display_line_to): Record in this_line_min_pos the
592 smallest position iterated across.
593 (display_line): Use this_line_min_pos to record the smallest
594 position in the line even if it is not displayed due to
595 hscrolling. (Bug#7939)
596
af59aa6e
PE
5972011-02-12 Paul Eggert <eggert@cs.ucla.edu>
598
cec81b22
PE
599 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
600 * md5.h (ATTRIBUTE_ALIGNED): New macro.
601 (struct md5_ctx): Use it.
602
af59aa6e
PE
603 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
604 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
605 defined.
606 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
607 FC_HINT_STYLE is supported.
608
02c3706c
JD
6092011-02-11 Jan Djärv <jan.h.d@swipnet.se>
610
611 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
612 Make sure we don't do x_catch_errors twice.
613
5ac75e8f
GM
6142011-02-10 Glenn Morris <rgm@gnu.org>
615
616 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
617
d37f40ed
EZ
6182011-02-09 Eli Zaretskii <eliz@gnu.org>
619
5ac75e8f
GM
620 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
621 New macros.
d37f40ed
EZ
622 (globals.h, gl-stamp): New targets.
623 (clean): Clean gl-stamp and globals.h.
624
33cd3ee4
AS
6252011-02-09 Andreas Schwab <schwab@linux-m68k.org>
626
627 * Makefile.in (gl-stamp): Create globals.h here.
628 (globals.h): Don't do it here.
629 (mostlyclean): Clean globals.h and gl-stamp.
630
f9f2e7f5
PE
6312011-02-09 Paul Eggert <eggert@cs.ucla.edu>
632
633 * Makefile.in ($(otherobj)): Depend on globals.h.
634 Otherwise 'make -j10' failed on my host, because the build lacked
635 necessary dependencies, e.g., vm-limit.o depends on globals.h.
636
00b3c7ac
TT
6372011-02-08 Tom Tromey <tromey@redhat.com>
638
639 * Makefile.in (NS_OBJC_OBJ): New variable.
640 (base_obj): Rename from 'obj'.
641 (obj): New variable.
642 (globals.h, gl-stamp, $(obj)): New targets.
643 (GLOBAL_SOURCES): New variable.
644 * globals.h: Remove.
645 * nsselect.m (Vselection_alist): Define. Reverts part of
646 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
647 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
648 variable.
649 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
650
8f3b2e12
KH
6512011-02-08 Kenichi Handa <handa@m17n.org>
652
653 * font.c (Ffont_get): Do not cache :otf value.
654
4f043d0f
PE
6552011-02-07 Paul Eggert <eggert@cs.ucla.edu>
656
657 conform to C89 pointer rules
658
659 * dired.c (scmp, file_name_completion):
660 Change types between char * and unsigned char *, to satisfy C89
661 rules about pointer type compatibility.
47ce90e4 662 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 663 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
664 * alloc.c (make_string, make_specified_string, make_pure_string):
665 Likewise.
57ace6d0 666 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
667 * print.c (float_to_string, PRINTFINISH, printchar, strout):
668 (print_object): Likewise.
e7f8264d
PE
669 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
670 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
671 (Fformat): Likewise.
a2db9982 672 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
673 * fns.c (string_make_multibyte, string_to_multibyte):
674 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
675 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
676 Likewise.
4a25e32a 677 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
678 * process.c (read_process_output, send_process, Fprocess_send_region):
679 Likewise.
0ca76b1e 680 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
681 * doprnt.c (doprnt): Likewise.
682 * indent.c (compute_motion): Likewise.
efe0234f 683 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 684 * ralloc.c (resize_bloc): Likewise.
b19beacc 685 * image.c (tiff_load): Likewise.
c45e5276 686 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
687 * character.c (strwidth): Make its argument const char *, not const
688 unsigned char *, since more callers prefer it that way. All callers
689 changed.
4f043d0f 690
9eee99eb
PE
6912011-02-06 Paul Eggert <eggert@cs.ucla.edu>
692
4c83cffc
PE
693 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
694 Emacs assumes two's complement elsewhere, but the assumption is
695 easy to remove here, and this suppresses a warning with Sun C 5.8.
696
82470039
PE
697 conform to C89 pointer rules
698
699 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
700 (same_x_server, x_term_init):
9eee99eb
PE
701 Change types between char * and unsigned char *, to satisfy C89
702 rules about pointer type compatibility.
82470039
PE
703 * doc.c (get_doc_string, Fsnarf_documentation):
704 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
705 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
706 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 707 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
708 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
709 Likewise.
01c9aa3a 710 * keymap.c (Ftext_char_description): Likewise.
637de37e 711 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
712 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
713 (DRIVE_LETTER) [defined DOS_NT]:
714 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
715 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
716 (search_embedded_absfilename, Fsubstitute_in_file_name):
717 (barf_or_query_if_file_exists, Fmake_directory_internal):
718 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
719 (Finsert_file_contents, Fwrite_region):
720 Likewise.
b68864e5
PE
721 * insdel.c (insert, insert_and_inherit, insert_before_markers):
722 (insert_before_markers_and_inherit, insert_1, insert_1_both):
723 Likewise. This changes these functions' signatures, which is
724 more convenient since most callers use char *. All remaining
725 callers changed.
726 * editfns.c (general_insert_function): Change signature to
727 match changes to insert functions' signatures.
b286858c
SM
728 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
729 Use explicit cast when converting between void * and function pointer
01c9aa3a 730 types, as C89 requires this.
9eee99eb 731
32299e33
PE
7322011-02-05 Paul Eggert <eggert@cs.ucla.edu>
733
734 don't ignore chdir failure
735 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
736 failure and exit.
737 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
738 remaining unchecked chdir calls in this function; some DOS/NT
739 expert needs to fix them.
740 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
741 in this function; some NextStep expert needs to fix them.
742
233ba4d9 7432011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
744
745 * xfaces.c (Finternal_set_lisp_face_attribute):
746 Try to clarify some error messages. (Bug#2659)
747
233ba4d9 7482011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
749
750 * editfns.c (save_restriction_restore): Don't forget to invalidate the
751 current_column cache (bug#7946).
752
233ba4d9 7532011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
754
755 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
756
757 * xftfont.c (xftfont_open): Likewise.
758
233ba4d9 7592011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
760
761 * window.c (Fselect_window): Add missing return value.
762
d67985d3
PE
7632011-02-05 Paul Eggert <eggert@cs.ucla.edu>
764
25a48bd0
PE
765 xstrcasecmp: conform to C89 pointer rules
766 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
767 to const char *, since they're usually low-level C strings, and
768 this stays compatible with C89 pointer rules. All callers changed.
769
2f8f196d 770 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
771 (define_charset_internal): Switch between char * and unsigned char *.
772
2f8f196d 773 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
774 (xmenu_show, xdialog_show): Declare local var as char *, not
775 const char *, to stay compatible with C89 const rules.
776
2f8f196d 777 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
778 (store_mode_line_noprop, display_string, reseat_to_string):
779 (c_string_pos, number_of_chars, message_dolog):
780 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
781 (display_mode_element, display_string):
782 Switch between char * and unsigned char * to stay compatible wth
783 C89 pointer rules.
784
2f8f196d 785 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
786 (re_wctype): Add cast, as C89 does not allow assigning between
787 char * and unsigned char *.
788 (regex_compile): Likewise.
789
d67985d3
PE
790 sync from gnulib to remove HAVE_STDBOOL_H
791 * config.in: Regenerate.
792
a5d733f5
EZ
7932011-02-04 Eli Zaretskii <eliz@gnu.org>
794
f90e08f5
EZ
795 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
796 Replace all uses of lisp.h with $(LISP_H), and all uses of
797 process.h with $(PROCESS_H).
798 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
799 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
800
be50df37
EZ
801 * deps.mk: Update for recent changes: gnutls support, gnulib
802 imports, addition of globals.h.
803
f90e08f5
EZ
804 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
805 ../lib/ignore-value.h.
a5d733f5 806
67342916
PE
8072011-02-03 Paul Eggert <eggert@cs.ucla.edu>
808
809 allow C code to suppress warnings about ignored return values
810
811 We need to go through the code and for each such warning, either
812 fix the code to pay attention to the returned value, or tell GCC
813 that we really do want to ignore the returned value. Here is one
814 example of how to do the latter.
815 * sysdep.c: Include <ignore-value.h>.
816 (sys_subshell): Suppress an undesirable warning about not checking
817 the returned value of 'write', as there's nothing useful one can
818 do with that returned value.
819
36941b32
JD
8202011-02-03 Jan Djärv <jan.h.d@swipnet.se>
821
822 * xterm.c (x_connection_closed): Remove all calls that calls
823 XSync (Bug#7949).
824
3082f617
EZ
8252011-02-01 Eli Zaretskii <eliz@gnu.org>
826
827 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
828 TIFFClientOpen.
829
4df0af9b
JD
8302011-02-01 Jan Djärv <jan.h.d@swipnet.se>
831
832 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
833 (x_session_check_input): Change args and return type so it can be used
834 as argument to add_read_fd. Make static. Remove call to select.
835 Call kbd_buffer_store_event for emacs_event.
836 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
837 (ice_conn_watch_CB): Call add_read_fd.
838
839 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
840 x_session_check_input.
841 (x_session_initialized): Remove definition.
842 (x_initialize): Remove setting of x_session_initialized.
843
844 * xterm.h (x_session_check_input): Remove declaration.
845
a4180391
PE
8462011-02-01 Paul Eggert <eggert@cs.ucla.edu>
847
848 format-time-string now supports subsecond time stamp resolution
b286858c 849 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
850 for consistency with its new argument and with gnulib nstrftime.
851 All callers changed. New argument NS.
852 (Fformat_time_string): Check that the time argument's microseconds
853 component, if any, is in range; this avoids integer overflow and
854 also nstrftime needs this. Document %N.
855
14beddf4 8562011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
857
858 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
859 of int. All uses adjusted.
860 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
861 (svg_load_image): Remove casts.
862
14beddf4 8632011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
864
865 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
866 function definitions for compiling with libpng-1.5.
867 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
868 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
869 (Bug#7908).
870
70b0d280
EZ
8712011-01-31 Eli Zaretskii <eliz@gnu.org>
872
8b3c625b
EZ
873 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
874
70b0d280
EZ
875 * makefile.w32-in (OBJ2): Remove strftime.$(O).
876 ($(BLD)/strftime.$(O)): Remove prerequisites.
877
16fab143
PE
8782011-01-31 Paul Eggert <eggert@cs.ucla.edu>
879
880 src/emacs.c now gets version number from configure.in
881 * emacs.c (emacs_version): Set to VERSION so that it
882 is determined automatically from ../configure.in.
883
546961a9
JM
8842011-01-31 Jim Meyering <meyering@redhat.com>
885
886 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
887 Use xmalloc rather than malloc.
888
42a5b22f
PE
8892011-01-30 Paul Eggert <eggert@cs.ucla.edu>
890
16c3e636
PE
891 strftime: import from gnulib
892 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
893 * deps.mk (strftime.o): Remove.
894 * editfns.c: Include <strftime.h>, supplied by gnulib.
895 (emacs_strftimeu): Remove decl.
896 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
897 emacs_strftimeu.
898 * config.in: Regenerate.
899 * strftime.c: Remove; we now use strftime from gnulib.
900
42a5b22f
PE
901 Use SSDATA when the context wants char *.
902 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
903 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
904 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
905 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
906 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
907 Use SSDATA (not SDATA) when the context of the expression wants
908 char * (not unsigned char *).
909
2787bba3
JD
9102011-01-30 Jan Djärv <jan.h.d@swipnet.se>
911
912 * .gdbinit: Read global lisp variables as globals.f_V*.
913
4ec88040
AS
9142011-01-30 Andreas Schwab <schwab@linux-m68k.org>
915
916 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
917 All uses changed.
918 (PROP_SAVE): Likewise.
919
b6bcd048
CY
9202011-01-29 Chong Yidong <cyd@stupidchicken.com>
921
922 * keyboard.c (make_lispy_position): Fix typo in last change
923 (Bug#7935).
924
f915f0f7
EZ
9252011-01-29 Eli Zaretskii <eliz@gnu.org>
926
927 * s/ms-w32.h (HAVE_MKTIME): Remove.
928
929 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
930 (GNULIB): New variable.
931 (LIBS): Add $(GNULIB).
932 $(TEMACS): Depend on $(GNULIB).
933 <top-level>: Fix font-lock disrupted by a lone `"'.
934
497a1925
JD
9352011-01-29 Jan Djärv <jan.h.d@swipnet.se>
936
937 * nsselect.m (ns_string_from_pasteboard): Get length of string
938 and use make_string instead of build_string (Bug#7934).
939 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
940 instead of stringWithUTF8String (Bug#7934).
941
2f8f196d 9422011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 943
2f8f196d
JB
944 * nsfont.m (nsfont_open): Ensure that fonts with inexact
945 descenders would not become one pixel too tall (Bug#7887).
481ae085 946
6b918613
CY
9472011-01-28 Chong Yidong <cyd@stupidchicken.com>
948
949 * keyboard.c (make_lispy_position): For clicks on right fringe or
950 margin, compute text position using the X coordinate relative to
951 the left of the text area (Bug#7839).
952
9e269017
KH
9532011-01-28 Kenichi Handa <handa@m17n.org>
954
955 * ftfont.c (ftfont_spec_pattern): Check each extra property
956 value.
957
17dd1fc8
SM
9582011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
959
960 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
961
372fb76b
CY
9622011-01-27 Chong Yidong <cyd@stupidchicken.com>
963
964 * font.c (font_parse_fcname): Undefine a temporary macro.
965
e7f7fbaa
SM
9662011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
967
968 Let the debugger continue to the normal handler (bug#7825).
969 * eval.c (maybe_call_debugger): Declare before new use.
970 (find_handler_clause): Don't call debugger any more.
971 Ignore Vstack_trace_on_error.
972 Use XCAR/XCDR.
973 (syms_of_eval): Remove Vstack_trace_on_error.
974 (Fsignal): Only modify handlerlist when we know we need to do it.
975 Call the debugger when necessary.
976 * globals.h (Vstack_trace_on_error): Remove.
977
6608a7d8
CY
9782011-01-26 Chong Yidong <cyd@stupidchicken.com>
979
980 * font.c (font_parse_fcname): Rewrite GTK font name parser.
981
06d8ace5 9822011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
983
984 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
985 the buffer's point-max (bug#7876).
986
06d8ace5 9872011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
988
989 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 990 Remove unused case (Bug#6811).
19634648 991
8ab70320
JD
9922011-01-23 Jan Djärv <jan.h.d@swipnet.se>
993
994 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
995 setFrameTopLeftPoint is constrained.
996
51b59d79
PE
9972011-01-23 Paul Eggert <eggert@cs.ucla.edu>
998
9055082e
PE
999 Check return values of some library calls.
1000 * emacs.c (main): Check dup result.
1001 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1002 (frame_name_fnn_p): Check strtol result.
1003
5c7d01a5 1004 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1005 when calling XpmCreatePixmapFromData.
1006
51b59d79
PE
1007 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1008 * lisp.h (SSDATA): New macro.
1009 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1010 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1011 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1012 * xsmfns.c (SSDATA): Likewise.
1013
e6b84b30
MR
10142011-01-22 Martin Rudalics <rudalics@gmx.at>
1015
1016 * window.c (select_window): New function.
1017 (Fselect_window): Call it.
1018 (inhibit_point_swap): Variable deleted.
1019 (Fset_window_configuration): Call select_window directly.
1020
3fb69558
JD
10212011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1022
1023 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1024
449ab399
JD
10252011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1026
e2f79c8d
JD
1027 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1028 screen, not the window screen.
1029 (x_set_window_size): Remove constraints.
1030 Calculate origin.y only if zooming is 0 and without referring to a
1031 screen.
1032 (windowWillResize): Don't modify frameSize.
1033 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1034 (initFrameFromEmacs): Initialize ns_userRect.
1035 (windowShouldZoom): Set zooming to one. Remove all other code.
1036 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1037 Zero it after restore.
1038 (constrainFrameRect): New method for EmacsWindow.
1039 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1040 windowWillResize.
1041
1042 * nsterm.h (ns_output): Add dont_constrain and zooming.
1043 (EmacsView): Add ns_userRect.
1044
449ab399
JD
1045 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1046 if ns_alternate_modifier is none.
1047
e885315d
JD
10482011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1049
1050 * unexmacosx.c: Add comment about include order.
1051
bb1c6663
GM
10522011-01-20 Glenn Morris <rgm@gnu.org>
1053
c11136ec
GM
1054 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1055 Give it a doc string.
1056 * globals.h: Add Vread_expression_history.
1057
bb1c6663
GM
1058 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1059 Give it a doc string.
1060 * globals.h: Add Vkbd_macro_termination_hook.
1061
9aea757b
CY
10622011-01-20 Chong Yidong <cyd@stupidchicken.com>
1063
1064 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1065
e1ef0dac
PE
10662011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1067
1068 Fix X11 compilation failure.
1069 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1070 * xselect.c (Vselection_alist): Remove declaration, moving its
1071 documentation to globals.h. This fixes a compilation failure
1072 induced by the earlier change to globals.h today.
1073
fb9d0f5a
JD
10742011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1075
8beb828a
JD
1076 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1077
fb9d0f5a
JD
1078 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1079 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1080 (ns_input_spi_name, ns_input_spi_arg)
1081 (ns_alternate_modifier, ns_right_alternate_modifier)
1082 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1083 (ns_right_control_modifier, ns_function_modifier)
1084 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1085 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1086 (x_underline_at_descent_line): Remove declaration.
1087 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1088
1089 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
1090 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1091 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1092
1093 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1094 Remove declaration.
1095
1096 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1097 globals.h.
1098 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1099
1100 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1101 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1102 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1103
1104 * globals.h (struct emacs_globals): Add f_ns_input_file,
1105 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1106 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1107 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1108 f_ns_right_alternate_modifier, f_ns_command_modifier,
1109 f_ns_right_command_modifier, f_ns_control_modifier,
1110 f_ns_right_control_modifier, f_ns_function_modifier,
1111 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1112 f_Vns_version_string, f_Vns_sent_selection_hooks,
1113 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1114 and corresponding defines.
1115
4e55715e
SS
11162011-01-19 Sam Steingold <sds@gnu.org>
1117
1118 * w32.c (check_windows_init_file): Remove declarations of
1119 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 1120 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 1121
ef79d2fa
TT
11222011-01-19 Tom Tromey <tromey@redhat.com>
1123
1124 * window.c: Fix error introduced by previous patch.
1125
29208e82
TT
11262011-01-18 Tom Tromey <tromey@parfait>
1127
1128 * globals.h: New file.
1129 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1130 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1131 (Vwindow_system_version): Remove declaration.
1132 * w32term.h (Vw32_enable_palette)
1133 (Vx_pixel_size_width_font_regexp): Remove declaration.
1134 * w32menu.c (Voverriding_local_map)
1135 (Voverriding_local_map_menu_flag): Remove declaration.
1136 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1137 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1138 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1139 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1140 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1141 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1142 (w32_use_full_screen_buffer): Remove declaration.
1143 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1144 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1145 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1146 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1147 (no_redraw_on_reenter, visible_bell): Remove declaration.
1148 * sysdep.c (Vsystem_name): Remove declaration.
1149 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1150 * menu.h (Vmenu_updating_frame): Remove declaration.
1151 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1152 Remove declaration.
1153 * lisp.h (Vafter_init_time, Vafter_load_alist)
1154 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1155 (Vcompletion_regexp_list, Vcurrent_load_list)
1156 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1157 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1158 (Vexec_directory, Vexec_path, Vexec_suffixes)
1159 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1160 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1161 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1162 (Vinstallation_directory, Vinvocation_directory)
1163 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1164 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1165 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1166 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1167 (Vscalable_fonts_allowed, Vselect_active_regions)
1168 (Vshell_file_name, Vstandard_input, Vstandard_output)
1169 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1170 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1171 (Vuser_login_name, Vwindow_scroll_functions)
1172 (Vwindow_system_version, Vx_no_window_manager)
1173 (Vx_resource_class, Vx_resource_name, baud_rate)
1174 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1175 (history_delete_duplicates, inhibit_x_resources)
1176 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1177 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
1178 (use_dialog_box, use_file_dialog): Remove declaration.
1179 Include globals.h.
29208e82 1180 * keymap.h (Voverriding_local_map)
b286858c
SM
1181 (Voverriding_local_map_menu_flag, meta_prefix_char):
1182 Remove declaration.
29208e82
TT
1183 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1184 (Vinput_method_function, Vkey_translation_map)
1185 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1186 (do_mouse_tracking, extra_keyboard_modifiers)
1187 (num_nonmacro_input_events): Remove declaration.
1188 * intervals.h (Vchar_property_alias_alist)
1189 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1190 (Vtext_property_default_nonsticky): Remove declaration.
1191 * gtkutil.h (x_gtk_file_dialog_help_text)
1192 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1193 (x_gtk_whole_detached_tool_bar): Remove declaration.
1194 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1195 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1196 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1197 (focus_follows_mouse): Remove declaration.
1198 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1199 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
1200 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1201 Remove declaration.
29208e82
TT
1202 * font.h (Vfont_log): Remove declaration.
1203 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1204 (Vdos_windows_version, dos_codepage, dos_country_code)
1205 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
1206 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1207 Remove declaration.
1208 * disptab.h (Vglyph_table, Vstandard_display_table):
1209 Remove declaration.
29208e82
TT
1210 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1211 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1212 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1213 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1214 (inverse_video, mode_line_in_non_selected_windows)
1215 (tool_bar_button_relief, tool_bar_max_label_size)
1216 (underline_minimum_offset)
1217 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1218 Remove declaration.
1219 * composite.h (Vauto_composition_function)
1220 (Vcomposition_function_table): Remove declaration.
1221 * commands.h (Vexecuting_kbd_macro)
1222 (Vminibuffer_local_completion_map)
1223 (Vminibuffer_local_filename_completion_map)
1224 (Vminibuffer_local_filename_must_match_map)
1225 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1226 (Vminibuffer_local_ns_map, Vthis_command)
1227 (Vunread_command_events, cursor_in_echo_area)
1228 (last_command_event, last_nonmenu_event, unread_command_char):
1229 Remove declaration.
1230 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1231 (Vdefault_file_name_coding_system)
1232 (Vdefault_process_coding_system, Vfile_name_coding_system)
1233 (Vlast_coding_system_used, Vlocale_coding_system)
1234 (Vselect_safe_coding_system_function)
1235 (Vtranslation_table_for_input, coding_system_require_warning)
1236 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
1237 (eol_mnemonic_unix, inherit_process_coding_system):
1238 Remove declaration.
1239 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1240 Remove declaration.
29208e82
TT
1241 * character.h (Vauto_fill_chars, Vchar_direction_table)
1242 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1243 (Vscript_representative_chars, Vtranslation_table_vector)
1244 (Vunicode_category_table): Remove declaration.
1245 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1246 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1247 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1248 (inhibit_modification_hooks): Remove declaration.
1249 * xterm.c (syms_of_xterm): Update.
1250 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1251 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1252 (x_mouse_click_focus_ignore_position)
1253 (x_underline_at_descent_line)
1254 (x_use_underline_position_properties): Remove.
1255 * xsmfns.c (syms_of_xsmfns): Update.
1256 (Vx_session_id, Vx_session_previous_id): Remove.
1257 * xsettings.c (syms_of_xsettings): Update.
1258 (Vxft_settings, use_system_font): Remove.
1259 * xselect.c (syms_of_xselect): Update.
1260 (Vselection_converter_alist, Vx_lost_selection_functions)
1261 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1262 * xfns.c (syms_of_xfns): Update.
1263 (Vgtk_version_string, Vmotif_version_string)
1264 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1265 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1266 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1267 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1268 (Vx_sensitive_text_pointer_shape)
1269 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1270 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1271 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1272 Remove.
1273 * xfaces.c (syms_of_xfaces): Update.
1274 (Vface_default_stipple, Vface_font_rescale_alist)
1275 (Vface_ignored_fonts, Vface_new_frame_defaults)
1276 (Vface_remapping_alist, Vfont_list_limit)
1277 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1278 * xdisp.c (syms_of_xdisp): Update.
1279 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1280 (Vdisplay_pixels_per_inch, Vfontification_functions)
1281 (Vframe_title_format, Vglobal_mode_string)
1282 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1283 (Vicon_title_format, Vinhibit_redisplay)
1284 (Vline_number_display_limit, Vline_prefix)
1285 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1286 (Vmenu_updating_frame, Vmessage_log_max)
1287 (Vmouse_autoselect_window, Vnobreak_char_display)
1288 (Voverlay_arrow_position, Voverlay_arrow_string)
1289 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1290 (Vresize_mini_windows, Vshow_trailing_whitespace)
1291 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1292 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1293 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1294 (Vwindow_text_change_functions, Vwrap_prefix)
1295 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1296 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1297 (highlight_nonselected_windows, hscroll_margin)
1298 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1299 (inhibit_menubar_update, inhibit_try_cursor_movement)
1300 (inhibit_try_window_id, inhibit_try_window_reusing)
1301 (line_number_display_limit_width)
1302 (make_cursor_line_fully_visible_p, message_truncate_lines)
1303 (mode_line_inverse_video, multiple_frames, overline_margin)
1304 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1305 (tool_bar_max_label_size, underline_minimum_offset)
1306 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1307 Remove.
1308 * window.c (syms_of_window): Update.
1309 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1310 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1311 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1312 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1313 (mode_line_in_non_selected_windows, next_screen_context_lines)
1314 (window_min_height, window_min_width): Remove.
1315 (scroll_margin): Remove declaration.
1316 * w32term.c (syms_of_w32term): Update.
1317 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1318 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1319 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1320 (w32_use_visible_system_caret, x_underline_at_descent_line)
1321 (x_use_underline_position_properties): Remove.
1322 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1323 Remove declaration.
1324 * w32select.c (syms_of_w32select): Update.
1325 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1326 * w32proc.c (syms_of_ntproc): Update.
1327 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1328 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1329 (Vw32_start_process_inherit_error_mode)
1330 (Vw32_start_process_share_console)
1331 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1332 (Vsystem_name): Remove declaration.
1333 * w32font.c (syms_of_w32font): Update.
1334 (Vw32_charset_info_alist): Remove.
1335 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1336 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1337 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1338 (Vw32_enable_palette, Vw32_lwindow_modifier)
1339 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1340 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1341 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1342 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1343 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1344 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1345 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1346 (Vx_sensitive_text_pointer_shape)
1347 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1348 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1349 (w32_mouse_move_interval)
1350 (w32_pass_extra_mouse_buttons_to_system)
1351 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1352 (w32_strict_fontnames, w32_strict_painting): Remove.
1353 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1354 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
1355 (w32_num_mouse_buttons, w32_use_visible_system_caret):
1356 Remove declaration.
29208e82
TT
1357 * w32console.c (syms_of_ntterm): Update.
1358 (w32_use_full_screen_buffer): Remove.
1359 (Vtty_defined_color_alist): Remove declaration.
1360 * w16select.c (syms_of_win16select): Update.
1361 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1362 * undo.c (syms_of_undo): Update.
1363 (Vundo_outer_limit, Vundo_outer_limit_function)
1364 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1365 Remove.
1366 * textprop.c (syms_of_textprop): Update.
1367 (Vchar_property_alias_alist, Vdefault_text_properties)
1368 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1369 Remove.
1370 * terminal.c (syms_of_terminal): Update.
1371 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1372 * term.c (syms_of_term): Update.
1373 (Vresume_tty_functions, Vsuspend_tty_functions)
1374 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
1375 Remove.
1376 * syntax.c (syms_of_syntax): Update.
1377 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
1378 (open_paren_in_column_0_is_defun_start)
1379 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
1380 (words_include_escapes): Remove.
1381 * search.c (syms_of_search): Update.
1382 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
1383 * process.c (syms_of_process): Update.
1384 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
1385 (delete_exited_processes): Remove.
1386 * print.c (syms_of_print): Update.
1387 (Vfloat_output_format, Vprint_charset_text_property)
1388 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
1389 (Vprint_length, Vprint_level, Vprint_number_table)
1390 (Vstandard_output, print_escape_multibyte)
1391 (print_escape_newlines, print_escape_nonascii, print_quoted):
1392 Remove.
1393 * msdos.c (syms_of_msdos): Update.
1394 (Vdos_unsupported_char_glyph): Remove.
1395 (unibyte_display_via_language_environment): Remove declaration.
1396 * minibuf.c (syms_of_minibuf): Update.
1397 (Vcompletion_regexp_list, Vhistory_add_new_input)
1398 (Vhistory_length, Vminibuffer_completing_file_name)
1399 (Vminibuffer_completion_confirm)
1400 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
1401 (Vminibuffer_exit_hook, Vminibuffer_help_form)
1402 (Vminibuffer_history_position, Vminibuffer_history_variable)
1403 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
1404 (Vread_buffer_function, Vread_expression_map)
1405 (completion_ignore_case, enable_recursive_minibuffers)
1406 (history_delete_duplicates, minibuffer_allow_text_properties)
1407 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
1408 Remove.
1409 * marker.c (syms_of_marker): Update.
1410 (byte_debug_flag): Remove.
1411 * macros.c (syms_of_macros): Update.
1412 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
1413 * lread.c (syms_of_lread): Update.
1414 (Vafter_load_alist, Vbyte_boolean_vars)
1415 (Vbytecomp_version_regexp, Vcurrent_load_list)
1416 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
1417 (Vload_history, Vload_path, Vload_read_function)
1418 (Vload_source_file_function, Vload_suffixes, Vobarray)
1419 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
1420 (Vread_symbol_positions_list, Vread_with_symbol_positions)
1421 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
1422 (force_load_messages, load_convert_to_unibyte)
1423 (load_dangerous_libraries, load_force_doc_strings)
1424 (load_in_progress): Remove.
1425 * keymap.c (syms_of_keymap): Update.
1426 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
1427 (Vminibuffer_local_completion_map)
1428 (Vminibuffer_local_filename_completion_map)
1429 (Vminibuffer_local_filename_must_match_map)
1430 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1431 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
1432 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
1433 Remove.
1434 * keyboard.c (syms_of_keyboard): Update.
1435 (Vauto_save_timeout, Vcommand_error_function)
1436 (Vcommand_hook_internal, Vdeactivate_mark)
1437 (Vdeferred_action_function, Vdeferred_action_list)
1438 (Vdisable_point_adjustment, Vdouble_click_time)
1439 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
1440 (Vfunction_key_map, Vglobal_disable_point_adjustment)
1441 (Vhelp_char, Vhelp_event_list, Vhelp_form)
1442 (Vinput_method_function, Vinput_method_previous_message)
1443 (Vkey_translation_map, Vlast_event_frame)
1444 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
1445 (Vminibuffer_message_timeout, Voverriding_local_map)
1446 (Voverriding_local_map_menu_flag, Vpost_command_hook)
1447 (Vpre_command_hook, Vprefix_help_command)
1448 (Vsaved_region_selection, Vselect_active_regions)
1449 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
1450 (Vthis_command, Vthis_command_keys_shift_translated)
1451 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
1452 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
1453 (Vtty_erase_char, Vunread_command_events)
1454 (Vunread_input_method_events, Vunread_post_input_method_events)
1455 (auto_save_interval, cannot_suspend, do_mouse_tracking)
1456 (double_click_fuzz, extra_keyboard_modifiers)
1457 (inhibit_local_menu_bar_menus, last_command_event)
1458 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
1459 (menu_prompting, meta_prefix_char, num_input_keys)
1460 (num_nonmacro_input_events, polling_period, unread_command_char):
1461 Remove.
1462 * insdel.c (syms_of_insdel): Update.
1463 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
1464 * indent.c (syms_of_indent): Update.
1465 (indent_tabs_mode): Remove.
1466 * image.c (syms_of_image): Update.
1467 (Vimage_cache_eviction_delay, Vimage_types)
1468 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
1469 (cross_disabled_images): Remove.
1470 * fringe.c (syms_of_fringe): Update.
1471 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
1472 * frame.c (syms_of_frame): Update.
1473 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
1474 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
1475 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
1476 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
1477 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
1478 Remove.
1479 * fontset.c (syms_of_fontset): Update.
1480 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
1481 (Vfontset_alias_alist, Vignore_relative_composition)
1482 (Votf_script_alist, Vuse_default_ascent)
1483 (Vvertical_centering_font_regexp): Remove.
1484 * font.c (syms_of_font): Update.
1485 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
1486 (Vfont_weight_table, Vfont_width_table): Remove.
1487 * fns.c (syms_of_fns): Update.
1488 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
1489 * filelock.c (syms_of_filelock): Update.
1490 (Vtemporary_file_directory): Remove.
1491 * fileio.c (syms_of_fileio): Update.
1492 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
1493 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
1494 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
1495 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
1496 (Vinhibit_file_name_operation, Vset_auto_coding_function)
1497 (Vwrite_region_annotate_functions)
1498 (Vwrite_region_annotations_so_far)
1499 (Vwrite_region_post_annotation_function)
1500 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
1501 (Vw32_get_true_file_attributes): Remove declaration.
1502 * eval.c (syms_of_eval): Update.
1503 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
1504 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
1505 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
1506 (debug_on_next_call, debug_on_quit, debugger_may_continue)
1507 (max_lisp_eval_depth, max_specpdl_size): Remove.
1508 * emacs.c (syms_of_emacs): Update.
1509 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
1510 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
1511 (Vinstallation_directory, Vinvocation_directory)
1512 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
1513 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
1514 (Vsystem_configuration, Vsystem_configuration_options)
1515 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
1516 (inhibit_x_resources, noninteractive1): Remove.
1517 * editfns.c (syms_of_editfns): Update.
1518 (Vbuffer_access_fontified_property)
1519 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
1520 (Voperating_system_release, Vsystem_name, Vuser_full_name)
1521 (Vuser_login_name, Vuser_real_login_name): Remove.
1522 * dosfns.c (syms_of_dosfns): Update.
1523 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
1524 (dos_codepage, dos_country_code, dos_decimal_point)
1525 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
1526 (dos_super_key, dos_timezone_offset): Remove.
1527 * doc.c (syms_of_doc): Update.
1528 (Vbuild_files, Vdoc_file_name): Remove.
1529 * dispnew.c (syms_of_display): Update.
1530 (Vglyph_table, Vinitial_window_system)
1531 (Vredisplay_preemption_period, Vstandard_display_table)
1532 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
1533 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
1534 * dired.c (syms_of_dired): Update.
1535 (Vcompletion_ignored_extensions): Remove.
1536 (Vw32_get_true_file_attributes): Remove declaration.
1537 * dbusbind.c (syms_of_dbusbind): Update.
1538 (Vdbus_debug, Vdbus_registered_buses)
1539 (Vdbus_registered_objects_table): Remove.
1540 * data.c (syms_of_data): Update.
1541 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
1542 * composite.c (syms_of_composite): Update.
1543 (Vauto_composition_function, Vauto_composition_mode)
1544 (Vcompose_chars_after_function, Vcomposition_function_table):
1545 Remove.
1546 * coding.c (syms_of_coding): Update.
1547 (Vcharset_revision_table, Vcoding_category_list)
1548 (Vcoding_system_alist, Vcoding_system_for_read)
1549 (Vcoding_system_for_write, Vcoding_system_list)
1550 (Vdefault_process_coding_system, Venable_character_translation)
1551 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1552 (Vlast_coding_system_used, Vlatin_extra_code_table)
1553 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1554 (Vprocess_coding_system_alist)
1555 (Vselect_safe_coding_system_function)
1556 (Vstandard_translation_table_for_decode)
1557 (Vstandard_translation_table_for_encode)
1558 (Vtranslation_table_for_input, coding_system_require_warning)
1559 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1560 (eol_mnemonic_unix, inherit_process_coding_system)
1561 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1562 (inhibit_null_byte_detection): Remove.
1563 * cmds.c (syms_of_cmds): Update.
1564 (Vpost_self_insert_hook): Remove.
1565 * charset.c (syms_of_charset): Update.
1566 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1567 (inhibit_load_charset_map): Remove.
1568 * character.c (syms_of_character): Update.
1569 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1570 (Vchar_width_table, Vprintable_chars)
1571 (Vscript_representative_chars, Vtranslation_table_vector)
1572 (Vunicode_category_table): Remove.
1573 * ccl.c (syms_of_ccl): Update.
1574 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1575 (Vtranslation_hash_table_vector): Remove.
1576 * category.c (syms_of_category): Update.
1577 (Vword_combining_categories, Vword_separating_categories): Remove.
1578 * callproc.c (syms_of_callproc): Update.
1579 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1580 (Vexec_directory, Vexec_path, Vexec_suffixes)
1581 (Vinitial_environment, Vprocess_environment)
1582 (Vshared_game_score_directory, Vshell_file_name): Remove.
1583 * callint.c (syms_of_callint): Update.
1584 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1585 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1586 * bytecode.c (syms_of_bytecode): Update.
1587 (Vbyte_code_meter, byte_metering_on): Remove.
1588 * buffer.c (syms_of_buffer): Update.
1589 (Vafter_change_functions, Vbefore_change_functions)
1590 (Vchange_major_mode_hook, Vfirst_change_hook)
1591 (Vinhibit_read_only, Vkill_buffer_query_functions)
1592 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1593 * alloc.c (syms_of_alloc): Update.
1594 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1595 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1596 (cons_cells_consed, floats_consed, garbage_collection_messages)
1597 (gc_cons_threshold, gcs_done, intervals_consed)
1598 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1599 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1600
1601 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1602 (DEFVAR_INT): Assume global is in `globals'.
1603 * alloc.c (globals): Define.
1604
448c0820
TT
16052011-01-18 Tom Tromey <tromey@redhat.com>
1606
1607 * image.c (Vimagemagick_render_type): Remove redundant
1608 definition.
1609
8442d95d
TT
16102011-01-18 Tom Tromey <tromey@redhat.com>
1611
1612 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1613 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1614 (redisplay_window): Update.
1615 (syms_of_xdisp): Update.
1616
cab0ba98
TT
16172011-01-18 Tom Tromey <tromey@redhat.com>
1618
1619 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1620 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1621 Declare.
1622 * gtkutil.c (xg_uses_old_file_dialog):
1623 (xg_get_file_with_chooser):
1624 (xg_tool_bar_detach_callback): Don't redeclare globals.
1625
422745d0
TT
16262011-01-18 Tom Tromey <tromey@redhat.com>
1627
1628 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1629 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1630
7cae64b4
PE
16312011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1632
1633 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1634 defined __GNUC__. ../configure now checks for this GCC feature,
1635 which is now also supported by IBM and Oracle compilers.
1636 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1637 since Solaris malloc returns mult-of-8.
1638
a9faac5c 16392011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1640
1641 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1642
a3e44e79 16432011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1644
6e8e6bf2
PE
1645 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1646 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1647 * data.c (Fnumber_to_string): Use it.
1648 * print.c (float_to_string, print_object): Likewise.
1649
4004364e
PE
1650 Include <unistd.h> unilaterally.
1651 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1652 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1653 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1654 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1655 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1656 * xterm.c:
1657 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1658 unistd.h is always present now, possibly supplied by gnulib.
1659
e84aba69
PE
1660 * mktime.c: Remove; moving to ../lib.
1661
1e11dbe3
PE
1662 Use gnulib's mktime module.
1663 * deps.mk (mktime.o): Remove rule.
1664
fa2c4f56
PE
1665 Use gnulib's ftoastr module.
1666 * print.c: Include ftoastr.h.
1667 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1668 Remove; no longer needed.
1669 (float_to_string): Use dtoastr rather than rolling our own code,
1670 which had an off-by-one bug on non-IEEE hosts.
1671
9a514d4a
PE
1672 Automate syncing from gnulib.
1673 * Makefile.in (lib): New macro.
1674 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1675 ($(lib)/libgnu.a): New rule.
1676 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1677
717c30e0
PE
1678 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1679 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1680 so change the type of 'ign' to unsigned int from int.
1681
8865d794
PE
1682 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1683
4ef36a7b
PE
1684 * xterm.h (struct x_display_info): Remove stray semicolon.
1685 The extra semicolon didn't conform to the C standard.
1686 Problem reported by Sun cc.
1687
6df4097e
PE
1688 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1689 These changes make compilation easier to follow with Sun cc.
1690 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1691 EMACS_INT values without provoking overflow diagnostics.
1692 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1693 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1694 diagnostic with signed left shift.
9fba3563 1695
410ed5c3
PE
1696 * fileio.c (make_temp_name): Remove unreachable code.
1697
97be3ce3
PE
1698 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1699 Previously it was marked by preceding it with "return;", but
1700 Sun cc complains about this.
1701
9fba3563
PE
1702 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1703 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1704 which fixed Bug#2370. Caught by Sun cc.
1705
6dc1d2d3
MR
17062011-01-15 Martin Rudalics <rudalics@gmx.at>
1707
1708 * window.c (inhibit_point_swap): New variable.
1709 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1710 point this time.
1711 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1712 of setting selected_window to nil (Bug#7728).
1713
f853f599
TH
17142011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1715
8dabbfd6
SM
1716 * image.c (imagemagick_load_image, Finit_image_library):
1717 Free intermediate image after creating a MagickWand from it.
1718 Terminate MagickWand environment after image loading.
f853f599 1719
2bc92a93
MA
17202011-01-10 Michael Albinus <michael.albinus@gmx.de>
1721
1722 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1723 unexpected return values.
1724 (Fdbus_register_method): Remove connection initialization.
1725
17262011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1727
1728 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1729 used by Fdbus_register_service.
1730 (QCdbus_request_name_replace_existing): Likewise.
1731 (QCdbus_request_name_do_not_queue): Likewise.
1732 (QCdbus_request_name_reply_primary_owner): Likewise.
1733 (QCdbus_request_name_reply_in_queue): Likewise.
1734 (QCdbus_request_name_reply_exists): Likewise.
1735 (QCdbus_request_name_reply_already_owner): Likewise.
1736 (Fdbus_register_service): New function.
1737 (Fdbus_register_method): Use Fdbus_register_service to do the name
1738 registration.
1739 (syms_of_dbusbind): Add symbols dbus-register-service,
1740 :allow-replacement, :replace-existing, :do-not-queue,
1741 :primary-owner, :existing, :in-queue and :already-owner.
1742
21a76236
CY
17432011-01-09 Chong Yidong <cyd@stupidchicken.com>
1744
1745 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1746 when removing extra buttons.
1747
3d91e302
CY
17482011-01-08 Chong Yidong <cyd@stupidchicken.com>
1749
1750 * fns.c (Fyes_or_no_p): Doc fix.
1751
0d23ffb5
AS
17522011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1753
1754 * fns.c (Fyes_or_no_p): Add usage.
1755
9dc3366b
GM
17562011-01-08 Glenn Morris <rgm@gnu.org>
1757
d0981f82
GM
1758 * makefile.w32-in ($(EMACS)):
1759 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1760
9dc3366b
GM
1761 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1762 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1763
466cbae9
AS
17642011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1765
1766 * image.c (imagemagick_load_image): Fix some resource leaks and
1767 error handling.
1768
8c51d2a2
CY
17692011-01-07 Chong Yidong <cyd@stupidchicken.com>
1770
1771 * fns.c (Fyes_or_no_p): Accept format string args.
1772
66b7b0fe
GM
17732011-01-07 Glenn Morris <rgm@gnu.org>
1774
1775 * emacs.c (no_site_lisp): New int.
1776 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1777 (main): Set no_site_lisp.
1778 (standard_args): Add --no-site-lisp.
1779 * lisp.h (no_site_lisp): New int.
1780 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1781 directories to Vload_path.
1782
2018939f
AS
17832011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1784
1785 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1786
6ed843e5
MA
17872011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1788
8dabbfd6 1789 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1790 dont_register_service. Updated docstring accordingly.
1791
3f9b7090
GM
17922011-01-04 Glenn Morris <rgm@gnu.org>
1793
1794 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1795
d82bce4a
EZ
17962011-01-03 Eli Zaretskii <eliz@gnu.org>
1797
1798 * image.c (png_jmpbuf): Remove definition.
1799 (my_png_error, png_load): Don't use png_jmpbuf.
1800
7c420169
CY
18012011-01-02 Eli Zaretskii <eliz@gnu.org>
1802
1803 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1804
18052011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1806
1807 * image.c <Qlibpng_version>: New variable.
1808 (syms_of_image): Intern and staticpro it. Set its value to the
1809 version of PNG library we were compiled with.
1810 (my_png_error, png_load): Avoid GCC warnings about direct access
1811 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1812 (png_jmpbuf): New macro.
1813 (my_png_error, png_load): Use it instead of #ifdef'ing according
1814 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1815
7c420169 18162011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1817
1818 * .gdbinit (xgetptr): Fix the union+lsb case.
1819 (xbacktrace): Fix the union case.
1820
7c420169 18212011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1822
1823 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1824 different from selected-window's.
1825
7c420169 18262011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1827
71fe378d
EZ
1828 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1829 equivalent of a menu item when the key sequence is given by the
1830 `:keys' attribute. (Bug#7662)
1831
2e4ab211
EZ
1832 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1833 the basic faces are supported.
1834
7c420169 18352011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1836
1837 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1838
7c420169 18392011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1840
1841 * xdisp.c (Fformat_mode_line): Fix last change.
1842
7c420169 18432011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1844
1845 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1846 faces (Bug#7587).
1847
7c420169 18482011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1849
1850 * fileio.c (Fexpand_file_name): One more doc fix.
1851
3afff00e
CY
18522011-01-01 Chong Yidong <cyd@stupidchicken.com>
1853
1854 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1855 image or label in the container.
1856 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1857 (xg_show_toolbar_item): Function deleted.
1858 (xg_tool_item_stale_p): New function.
1859 (update_frame_tool_bar): Calculate tool-bar style once per call.
1860 Instead of hiding text labels, omit them. Don't use
1861 xg_show_toolbar_item; create new GtkToolItems from scratch if
1862 necessary, instead of trying to re-use them. This avoids an
1863 annoying animation when changing tool-bars.
1864
aeb7e951
JD
18652010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1866
1867 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1868 title and buffer filename only for RepresentedFilename.
1869 Handle bad UTF-8 in buffer name (Bug#7517).
1870
5bbb4727
JD
18712010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1872
1873 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1874
1875 * nsfns.m (ns_set_name_iconic): Remove.
1876 (ns_set_name_internal): New function (Bug#7517).
1877 (Vicon_title_format): Extern declare.
1878 (ns_set_name): Call ns_set_name_internal.
1879 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1880 (x_implicitly_set_name): Ditto.
1881 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1882 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1883
f1aab3ff
ŠN
18842010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1885
1886 * window.c (syms_of_window): Add missing defsubr for
1887 window-use-time.
1888
365525b3
AS
18892010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1890
1891 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1892 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1893
59fc5cf9
AS
18942010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1895
2f7c71a1
AS
1896 * buffer.c: Remove unused declarations.
1897 * buffer.h: Likewise.
1898 * charset.h: Likewise.
1899 * composite.h: Likewise.
1900 * dispextern.h: Likewise.
1901 * dispnew.c: Likewise.
1902 * font.h: Likewise.
1903 * fontset.c: Likewise.
1904 * fontset.h: Likewise.
1905 * intervals.h: Likewise.
1906 * keymap.h: Likewise.
1907 * lisp.h: Likewise.
1908 * syntax.c: Likewise.
1909 * syntax.h: Likewise.
1910 * termhooks.h: Likewise.
1911 * window.h: Likewise.
1912 * xsettings.h: Likewise.
1913 * xterm.c: Likewise.
1914 * xterm.h: Likewise.
1915
1916 * chartab.c (sub_char_table_ref): Make static.
1917 * dispnew.c (line_hash_code, required_matrix_height)
1918 (required_matrix_width): Likewise.
1919 * eval.c (interactive_p, apply_lambda): Likewise.
1920 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1921 Likewise.
1922 * font.c (QCadstyle, QCregistry, font_make_spec)
1923 (font_parse_fcname, font_encode_char, font_at): Likewise.
1924 * frame.c (x_frame_get_arg): Likewise.
1925 * keymap.c (get_keyelt): Likewise.
1926 * lread.c (read_filtered_event): Likewise.
1927 * print.c (write_string_1): Likewise.
1928 * window.c (delete_window, window_height, window_width)
1929 (foreach_window): Likewise.
1930 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1931 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1932 (xembed_send_message): Likewise.
1933
1934 * eval.c (run_hook_list_with_args): Delete.
1935 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1936 * terminal.c (get_terminal_param): Likewise.
1937 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1938
c4b607ed
AS
1939 * scroll.c: Fix comment.
1940
59fc5cf9
AS
1941 * dispnew.c (add_window_display_history)
1942 (add_frame_display_history, glyph_row_slice_p)
1943 (find_glyph_row_slice, flush_stdout)
1944 (check_matrix_pointer_lossage, matrix_row)
1945 (check_matrix_invariants, check_window_matrix_pointers)
1946 (check_matrix_pointers, window_to_frame_vpos)
1947 (window_to_frame_hpos): Prototize.
1948 * textprop.c (erase_properties): Likewise.
1949
a65b85b5
SM
19502010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1951
17870c01
SM
1952 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1953 (print_preprocess): Fix handling of uninterned symbols in last change.
1954
a65b85b5
SM
1955 * print.c (print, print_preprocess, print_object): Use a hash table
1956 rather than a linear table for Vprint_number_table.
1957
f13183cf
CY
19582010-12-20 Chong Yidong <cyd@stupidchicken.com>
1959
1960 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1961
94975270
CY
19622010-12-20 Chong Yidong <cyd@stupidchicken.com>
1963
1964 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1965 (parse_tool_bar_item): Use it to obtain image separators for
1966 displays not using native tool-bar separators.
1967
1968 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1969 specially, since this is now done in parse_tool_bar_item.
1970
ef1b0ba7
SM
19712010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1972
1973 Minor clean up to silence some gcc warnings.
1974 * window.c (Fset_window_buffer):
1975 * xterm.c (x_set_frame_alpha): Restructure code to silence
1976 compiler warning.
1977 (handle_one_xevent): Remove unused var `p'.
1978 (do_ewmh_fullscreen): Remove unused var `lval'.
1979 (xembed_set_info): Remove unused var `atom'.
1980 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1981 compiler warning.
1982 * fontset.c (fontset_id_valid_p, dump_fontset):
1983 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1984 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1985 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1986 label only when it's used.
1987 * image.c (x_create_bitmap_from_xpm_data):
1988 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1989 its callers.
1990 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1991 `consumed_chars'.
1992 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1993 (decode_coding_emacs_mule): Remove unused label `retry'.
1994 (detect_eol): Add parens to silence compiler warning.
1995 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1996 it's used to silence the compiler.
1997 (make_number): Modernize k&r declaration.
1998 (mark_char_table): Add parens to silence compiler warning.
1999
4039c786
CY
20002010-12-17 Chong Yidong <cyd@stupidchicken.com>
2001
2002 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2003 tool-bar maps.
2004 (menu_separator_name_p): New function, from gtkutil.c.
2005 (separator_names): Move from gtkutil.c.
2006
2007 * keyboard.h (menu_separator_name_p): Add prototype.
2008
2009 * gtkutil.c (XG_BIN_CHILD): New macro.
2010 (xg_get_menu_item_label, xg_update_menubar)
2011 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2012 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2013 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2014 (create_menus, xg_update_submenu, update_frame_tool_bar):
2015 Use menu_separator_name_p.
4039c786
CY
2016
2017 * nsmenu.m (name_is_separator): Function deleted.
2018 (addItemWithWidgetValue): Use menu_separator_name_p.
2019
2020 * w32menu.c (name_is_separator): Function deleted.
2021 (add_menu_item): Use menu_separator_name_p.
2022
aa936e8e
JD
20232010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2024
2025 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2026 same as the background, use the face forground as cursor.
2027
f49d1f52 20282010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2029
2030 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2031
f49d1f52 20322010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 2033
f0559026
EZ
2034 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2035 (face_before_or_after_it_pos, next_element_from_string)
2036 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2037 calculations of maximum string length before calling
2038 string_char_and_length and STRING_CHAR_AND_LENGTH.
2039 (string_char_and_length): Update commentary: MAXLEN is no longer
2040 needed.
2041
f49d1f52 20422010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
2043
2044 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2045 as (Qsave_session arg).
2046
2047 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2048 (smc_die_CB): Make an event with arg Qt.
2049 (Fhandle_save_session): If event has Qt as argument,
2050 call Fkill_emacs (Bug#7552).
2051
f49d1f52
SM
20522010-12-13 Chong Yidong <cyd@stupidchicken.com>
2053
2054 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2055
20562010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
2057
2058 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2059
f49d1f52 20602010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
2061
2062 * dispextern.h (struct it): New member overlay_strings_charpos.
2063
2064 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2065 charpos where we computed n_overlay_strings.
2066 (next_overlay_string): Load overlay strings at recorded position,
2067 which may not be the same as the iterator's charpos (Bug#7016).
2068
f49d1f52 20692010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
2070
2071 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2072 obscured due to a vscroll (Bug#7537).
2073
f49d1f52 20742010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
2075
2076 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2077
2078 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2079 Use FRAME_TOOLBAR_HEIGHT.
2080 (x_set_offset): Handle XNegative and YNegative in
2081 f->size_hint_flags (Bug#7510).
2082
39321b94
EZ
20832010-12-11 Eli Zaretskii <eliz@gnu.org>
2084
2085 * w32fns.c (Fx_show_tip): Call try_window with last argument
2086 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2087 solved. Round up the tip height to an integral multiple of the
2088 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2089 (Bug#7398)
2090
ec1b9b17
GM
20912010-12-08 Glenn Morris <rgm@gnu.org>
2092
2093 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2094
3c2317e8
LMI
20952010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2096
2097 * xml.c (parse_region): Ignore blank HTML nodes.
2098 (make_dom): Return CDATA sections (like <style>foo</style>) as
2099 text nodes.
2100
bba3e508
SM
21012010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2102
2103 * lread.c (read1): Allow newstyle unquote outside of backquote.
2104 Disallow old-style backquotes inside new-style backquotes.
2105 Don't count unquotes to figure out when we're "syntactically inside
2106 but semantically outside of a backquote" any more.
2107 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2108 to all contexts.
2109
d23d8608
CY
21102010-12-05 Chong Yidong <cyd@stupidchicken.com>
2111
2112 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2113
d6a003a8
AS
21142010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2115
2116 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2117 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2118 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2119
201ef780
AS
21202010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2121
2122 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2123 bit-field.
2124 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2125 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2126 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2127 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2128 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2129 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2130 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2131 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2132 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2133 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2134 * m/hp800.h: Remove file.
2135 * m/mips.h: Remove file.
2136
146490c3
JD
21372010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2138
2139 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2140 with cursor color and draw a rectangle around the image (Bug#7412).
2141
babc8f0d
AS
21422010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2143
2144 * frame.c (x_set_font): Remove unused variable.
2145
9583e9a0
JD
21462010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2147
dd723bbd
JD
2148 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2149
9583e9a0
JD
2150 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2151 drawing text under filled box cursor (Bug#7479).
2152
07976ae3 21532010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2154
2155 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2156 i.e. integer.
bba3e508 2157 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2158 (init_charset_once): Likewise.
2159
bba3e508
SM
2160 * charset.h (emacs_mule_charset): Adjust the prototype.
2161 Delete duplicated extern.
b84ae584
KH
2162
2163 * coding.c (emacs_mule_char): Adjust for the change of
2164 emacs_mule_charset.
2165
2166 * lread.c (read_emacs_mule_char): Adjust for the change of
2167 emacs_mule_charset.
2168
07976ae3 21692010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2170
2171 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2172 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2173
07976ae3 21742010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2175
2176 * alloc.c (mark_terminals): Ensure that the image cache is marked
2177 even if the terminal object was marked earlier (Bug#6301).
2178
35f1de62
CY
21792010-11-21 Chong Yidong <cyd@stupidchicken.com>
2180
2181 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2182
07976ae3 21832010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2184
2185 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2186 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2187 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2188
8547874a
EZ
21892010-11-26 Eli Zaretskii <eliz@gnu.org>
2190
228482b2
EZ
2191 * xdisp.c (set_message_1): Force paragraph direction in echo area
2192 be left-to-right.
2193
8547874a
EZ
2194 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2195 when the click is on the header or mode line.
2196
1e2dddbe
EZ
21972010-11-25 Eli Zaretskii <eliz@gnu.org>
2198
2199 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2200 `cursor' property of the first character in overlay strings.
12365240 2201 (Bug#7474) (Bug#7481)
1e2dddbe 2202
50795d1f
JD
22032010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2204
2205 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2206 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2207 (keyDown): Parse left and right keys separately (Bug#7458).
2208 Compare Left key masks exactly (Bug#7458).
50795d1f 2209
f8ab8c1f
EZ
22102010-11-23 Eli Zaretskii <eliz@gnu.org>
2211
2212 * intervals.c (temp_set_point_both): Define before calling, to
2213 avoid GCC warnings.
2214
2e8a4797
DN
22152010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2216
b29116ef
DN
2217 * nsmenu.m: Use #include <config.h> instead of "config.h".
2218
b932f8b1 2219 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2220 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2221 Move declarations ...
2222 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2223 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2224 ... here.
2225
42c8bc9b
DN
2226 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2227 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2228 (gdb_pvec_type):
2229 * print.c (print_output_debug_flag):
2230 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2231 (safe_debug_print): New declaration.
2232
2e8a4797
DN
2233 * xterm.c:
2234 * systty.h:
2235 * sound.c: Include <sys/ioctl.h> unconditionally.
2236
b609f591
YM
22372010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2238
2239 * alloc.c (mark_maybe_object): Return early if given a Lisp
2240 integer (Bug#6301).
2241
731e263a
KB
22422010-11-21 Ken Brown <kbrown@cornell.edu>
2243
2244 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2245
b7d1e144
JD
22462010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2247
2248 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2249 Define (Bug#7458).
2250 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2251 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2252 NSRightControlKeyMask also (Bug#7458).
2253 (keyDown): Ditto (Bug#7458).
2254 (syms_of_nsterm): Defvar ns-right-command-modifier and
2255 ns-right-control-modifier (Bug#7458).
2256
b7982059
DN
22572010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2258
bee3419f
DN
2259 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2260 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2261
b7982059
DN
2262 * intervals.h (temp_set_point, temp_set_point_both):
2263 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2264
01664ed1
KB
22652010-11-20 Ken Brown <kbrown@cornell.edu>
2266
2267 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2268
7c2d713b
EZ
22692010-11-20 Eli Zaretskii <eliz@gnu.org>
2270
2271 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2272 \xNNNNNN for hex-code display of glyphless characters.
2273
d2bd5189
JD
22742010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2275
2276 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2277 Set important to ! vert_only.
2278 (xg_show_toolbar_item): Don't show label horizontally if
2279 tool item isn't important.
2280 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2281 xg_make_tool_item, or update important on existing tool item.
2282
2283 * keyboard.c (QCvert_only): New variable.
2284 (parse_tool_bar_item): Check for QCvert_only.
2285 (syms_of_keyboard): Initialize QCvert_only.
2286
2287 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2288
d9a95e67
EZ
22892010-11-20 Eli Zaretskii <eliz@gnu.org>
2290
2291 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2292 same in-line.
2293
b6557553
AS
22942010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2295
2296 * xfaces.c (lookup_face): Make static.
2297 * dispnew.c (copy_row_except_pointers): Likewise.
2298 * syntax.c (dec_bytepos): Likewise.
2299 (inc_bytepos): Remove.
2300 * dispextern.h (lookup_face): Remove declaration.
2301
f48fe1f0
EZ
23022010-11-19 Eli Zaretskii <eliz@gnu.org>
2303
2304 * xdisp.c (set_cursor_from_row): Display cursor after all the
2305 glyphs that come from an overlay. Don't overstep the last glyph
2306 when skipping glyphs from an overlay. (Bug#6687)
2307
654ef137
DN
23082010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2309
84dfc8a7
DN
2310 * alloc.c (refill_memory_reserve): Move declaration ...
2311 * lisp.h (refill_memory_reserve): ... here.
2312
94fa3833
DN
2313 * strftime.c (_strftime_copytm): Add declaration.
2314
dde990a0
DN
2315 * callproc.c (syms_of_callproc): Use intern_c_string.
2316
50c77428
DN
2317 Move declarations from .c files to .h files.
2318 * process.c (timers_run):
2319 * minibuf.c (quit_char):
2320 * lread.c (read_emacs_mule_char):
2321 * keyboard.c (minibuf_level, message_enable_multibyte)
2322 (pending_malloc_warning):
2323 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2324 (Qonly): Remove declarations.
2325 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2326 (Vselect_active_regions):
2f8f196d 2327 * keyboard.h (timers_run): Add declarations.
50c77428 2328
654ef137
DN
2329 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2330 (tm_diff): Convert definitions to standard C.
2331 (extra_args_spec_iso): Remove, unused.
2332
4a47c275 23332010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
2334
2335 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2336
2337 * config.in (HAVE_G_TYPE_INIT): New symbol.
2338
4a47c275 23392010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
2340
2341 * lread.c (Fload): Mention `load-in-progress' and
2342 `load-file-name'. (Bug#7346)
2343
86520d8c
EZ
2344 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2345 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2346 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2347 subprocesses. Use buffer_free only ifdef subprocesses.
2348
2349 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2350 the subprocesses version, not in the non-subprocesses one.
2351
794a4b6d
EZ
2352 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2353
146d267b
EZ
23542010-11-17 Eli Zaretskii <eliz@gnu.org>
2355
2356 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2357 lines on text-mode terminals. (bug#7417)
2358
fad0d565
SM
23592010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2360
2361 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2362 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2363
6b4bb703
KH
23642010-11-17 Kenichi Handa <handa@m17n.org>
2365
2366 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2367 change (set charset-ID list instead of charset-symbol list).
2368
9173a8fb
CY
23692010-11-16 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * keyboard.c (make_lispy_position): For text area clicks, record Y
2372 pixel position relative to the text area, excluding header line.
2373 Also change X and Y to Lisp_Objects, not pointers; don't return
2374 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
2375 buffer_posn_from_coords counting from the start of the text area.
2376 (Fposn_at_x_y, make_lispy_event): Callers changed.
2377
2378 * window.c (coordinates_in_window): Change X and Y to ints rather
2379 than pointers; don't return coordinates via pointers.
2380 (struct check_window_data): Change X and Y from pointers to ints.
2381 (window_from_coordinates): Remove args WX and WY; don't return
2382 coordinates via pointers.
2383 (Fcoordinates_in_window_p, window_from_coordinates):
2384 (check_window_containing, Fwindow_at): Callers changed.
2385 (window_relative_x_coord): New function.
2386
2387 * window.h (window_from_coordinates, window_relative_x_coord):
2388 Update prototypes.
2389
2390 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
2391 the start of the text area.
2392
2393 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
2394 call. Use window_relative_x_coord.
2395 (note_mouse_highlight): Change window_from_coordinates call.
2396
2397 * w32term.c (w32_read_socket):
2398 * msdos.c (dos_rawgetc):
2399 * xterm.c (handle_one_xevent): Likewise.
2400
d2762c86
DN
24012010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2402
2403 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
2404 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
2405 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
2406 Convert definitions to standard C.
2407 * regex.c: Do not include <stdlib.h>, config.h does it.
2408 Include unistd.h.
2409 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
2410 (regerror, regfree): Convert definitions to standard C.
2411 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
2412 (__mktime_internal): Convert definitions to standard C.
2413
c2f0866a
DN
24142010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2415
42a7e7f1
DN
2416 * w32proc.c:
2417 * w32inevt.c:
2418 * w32heap.c:
2419 * w32.c: Remove config.h include guards.
2420
67802943
DN
2421 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
2422 No code changes.
2423
f0e1af46
DN
2424 * process.c: Include <sys/ioctl.h> unconditionally,
2425 keyboard.c already does it.
2426
c2f0866a
DN
2427 * keyboard.c (pending_malloc_warning): Add const to match
2428 definition in alloc.c.
2429 (Fset_input_interrupt_mode): Simplify #ifdefs.
2430
92d3ab7e
DN
24312010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2432
12e610e8
DN
2433 Clean up systty.h macros.
2434 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
2435 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
2436 definition in all uses.
2437 (EMACS_TTY_TABS_OK): Remove, it has a single user.
2438 * sysdep.c (discard_tty_input, child_setup_tty)
2439 (init_sys_modes, tabs_safe_p, reset_sys_modes):
2440 * emacs.c (shut_down_emacs):
2441 * callproc.c (child_setup):
2442 * term.c (dissociate_if_controlling_tty): Inline removed macros.
2443
92d3ab7e
DN
2444 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
2445
a3e6bad4
CY
24462010-11-14 Chong Yidong <cyd@stupidchicken.com>
2447
2448 * w32fns.c (Fx_create_frame):
2449 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
2450 resource here; it's now done at startup.
2451
5a232ffb
J
24522010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2453
2454 * xterm.c (set_wm_state): Add Qnil to final cons.
2455
2456 * xselect.c (x_send_client_event): Remove unused variables cons and
2457 size.
2458
24021b38
YM
24592010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2460
2f8f196d 2461 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
2462 arg NAME_TABLE.
2463 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
2464 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
2465 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
2466 Add const to array elements.
2467 (scroll_bar_parts): Make static. Fix position of const.
2468
2469 * w32fns.c (lispy_function_keys): Add const to extern.
2470
2471 * w32inevt.c (lispy_function_keys): Likewise.
2472
afa42fe3
CY
24732010-11-14 Chong Yidong <cyd@stupidchicken.com>
2474
2475 * xfns.c (Fx_create_frame): Don't check for the cursorColor
2476 resource here; it's now done at startup.
2477
53260a94
DN
24782010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2479
c865c575 2480 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 2481
c865c575 2482 Fix compilation on Solaris.
ff2e8052
DN
2483 * sysdep.c: Do not #include <term.h>.
2484 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
2485
53260a94
DN
2486 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
2487
933e29ff
J
24882010-11-13 Jan Djärv <jan.h.d@swipnet.se>
2489
2490 * xterm.c (set_wm_state): Don't put Atom in cons, call
2491 make_fixnum_or_float on them first.
2492 (x_term_init): Initialize Xatom_net_supporting_wm_check and
2493 Xatom_net_supported correctly.
2494
2495 * xselect.c (x_send_client_event): Move CHECK_STRING ...
2496 (Fx_send_client_event): to here.
2497
a048073e
MR
24982010-11-13 Martin Rudalics <rudalics@gmx.at>
2499
2500 * window.c (Fwindow_use_time): New function.
2501
0eb025fb
EZ
25022010-11-13 Eli Zaretskii <eliz@gnu.org>
2503
2504 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
2505 zero-width characters.
2506
2507 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
2508
2509 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
2510 box before drawing the glyphs inside it.
2511
2512 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
2513
bba3e508
SM
2514 * dispextern.h (enum glyphless_display_method):
2515 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
2516 All users changed.
0eb025fb 2517
bba3e508
SM
2518 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2519 Fix comments.
0eb025fb
EZ
2520 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
2521 whitespace in "[]", to simulate a box. Don't use uninitialized
2522 variable `width'.
2523
c869cc37
JD
25242010-11-11 Julien Danjou <julien@danjou.info>
2525
2d9074ba
JD
2526 * xsettings.c (init_xsettings): Use already fetch atoms.
2527
2528 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
2529 from dpyinfo.
2530
2531 * xselect.c (Fx_send_client_event): Split and create
2532 x_send_client_event.
2533
2534 * lisp.h: Do not EXFUN Fx_send_client_event.
2535
2536 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
2537 from dpyinfo.
2538 (wm_supports): Use atoms from dpyinfo.
2539 (do_ewmh_fullscreen): Use atoms from dpyinfo.
2540 (x_ewmh_activate_frame): Use atoms from dpyinfo.
2541 (xembed_set_info): Use atoms from dpyinfo.
2542 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
2543 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
2544 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
2545 Get all atoms in one round-trip.
2546 (set_wm_state): Use x_send_client_event rather than
2547 Fx_send_client_event, using Atom directly.
2548 (x_ewmh_activate_frame): Ditto.
2549 (x_set_sticky): Pass atoms to set_wm_state.
2550 (do_ewmh_fullscreen): Ditto.
2551
2d9074ba
JD
2552 * xterm.h (x_display_info): Add Xatom_net_supported,
2553 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2554 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2555
c869cc37
JD
2556 * xfns.c (Fx_show_tip): Fix typo in docstring.
2557
1a4236ea
SM
25582010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2559
2560 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2561 it's not negative.
2562
3106121c
YM
25632010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2564
2565 * font.c (font_filter_properties): Add const to array elements of
2566 properties args.
2567
2568 * font.h (font_filter_properties): Likewise.
2569
2570 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2571 elements.
2572
2573 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2574
da1fec2b
MA
25752010-11-10 Michael Albinus <michael.albinus@gmx.de>
2576
2577 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2578 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2579 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2580 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2581 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2582
bd6bc222
GM
25832010-11-10 Glenn Morris <rgm@gnu.org>
2584
2585 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2586
c0098065
EZ
25872010-11-09 Eli Zaretskii <eliz@gnu.org>
2588
bd6bc222 2589 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 2590
d607b96b 25912010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
2592
2593 * image.c (free_image): Don't garbage the frame here, since this
2594 function can be called while redisplaying (Bug#7210).
2595 (uncache_image): Garbage the frame here (Bug#6426).
2596
d607b96b 25972010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 2598
d607b96b
SM
2599 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2600 parent is the root window. Check this after traversing window tree.
184765cc 2601
d607b96b 2602 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 2603
d607b96b 2604 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 2605
d607b96b
SM
2606 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2607 before traversing window tree (Bug#5721).
c2e124a9 2608
27f92be7
J
26092010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2610
66b16767
J
2611 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2612
25f38310
SM
2613 * xdisp.c (note_mode_line_or_margin_highlight):
2614 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 2615
a971c0a7
EZ
26162010-11-06 Eli Zaretskii <eliz@gnu.org>
2617
2618 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2619 adjust width of tool-tip frame to the width of text, excluding the
2620 stretch glyph at the beginning of R2L glyph rows.
2621
2622 * w32fns.c (Fx_show_tip): Likewise.
2623
80417b95
JD
26242010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2625
2626 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2627 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2628
28118eb6
EZ
26292010-11-05 Eli Zaretskii <eliz@gnu.org>
2630
c1fc2d3a 2631 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2632
2633 * term.c: Remove static mouse_face_* variables. All users
2634 changed.
2635 (term_show_mouse_face, term_clear_mouse_face)
2636 (fast_find_position, term_mouse_highlight): Functions deleted.
2637 (tty_draw_row_with_mouse_face): New function.
2638 (term_mouse_movement): Call note_mouse_highlight instead of
2639 term_mouse_highlight.
2640
bbf534ce
EZ
2641 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2642 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2643 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2644 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2645 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2646 Replace Display_Info with Mouse_HLInfo everywhere where
2647 mouse_face_* members were accessed for mouse highlight purposes.
2648
2649 * xterm.c (x_update_window_begin, x_update_window_end)
2650 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2651 (handle_one_xevent, x_free_frame_resources, x_term_init):
2652 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2653 members were accessed for mouse highlight purposes.
2654
2655 * w32term.c (x_update_window_begin, x_update_window_end)
2656 (x_update_end, w32_read_socket, x_free_frame_resources)
2657 (w32_initialize_display_info): Replace Display_Info with
2658 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2659 for mouse highlight purposes.
2660
2661 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2662 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2663 unless the frame is on a window-system.
c1fc2d3a 2664 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2665 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2666 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2667 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2668 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2669 Replace Display_Info with Mouse_HLInfo everywhere where
2670 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2671 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2672 HAVE_WINDOW_SYSTEM conditional.
2673 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2674 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2675 (try_window_id) [HAVE_GPM || MSDOS]:
2676 Call x_clear_window_mouse_face.
d009ae66 2677 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2678 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2679 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2680 calling draw_glyphs directly.
d009ae66
EZ
2681 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2682 (cursor_in_mouse_face_p, rows_from_pos_range)
2683 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2684 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2685 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2686 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2687 fragments.
2688 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2689 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2690 integer.
2691 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2692 (x_consider_frame_title, tool_bar_lines_needed):
2693 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2694 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2695 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2696 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2697 part.
d009ae66
EZ
2698
2699 * dispnew.c (mirror_make_current): Set Y coordinate of the
2700 mode-line and header-line rows.
c1fc2d3a
EZ
2701 (init_display): Setup initial frame's output_data for text
2702 terminal frames.
d009ae66 2703
c1fc2d3a
EZ
2704 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2705 its own definition on msdos.c.
d009ae66
EZ
2706
2707 * msdos.c (show_mouse_face, clear_mouse_face)
2708 (fast_find_position, IT_note_mode_line_highlight)
2709 (IT_note_mouse_highlight): Functions deleted.
2710 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2711 instead of IT_note_mouse_highlight.
2712 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2713 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2714 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2715 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2716 where mouse_face_* members were accessed for mouse highlight
2717 purposes.
2718
2719 * msdos.h (initialize_msdos_display): Add prototype.
2720
2721 * frame.h (MOUSE_HL_INFO): New macro.
2722
2723 * lisp.h (Mouse_HLInfo): New data type.
2724
2725 * xterm.h (struct x_display_info):
2726 * w32term.h (struct w32_display_info):
2727 * nsterm.h (struct ns_display_info):
2728 * termchar.h (struct tty_display_info): Use it instead of
2729 mouse_face_* members.
2730
2731 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2732 1st argument.
2733 (frame_to_window_pixel_xy, note_mouse_highlight)
2734 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2735 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2736 HAVE_WINDOW_SYSTEM conditional.
2737 (draw_row_with_mouse_face): Declare prototype.
2738 (tty_draw_row_with_mouse_face): Declare prototype.
2739
6e8d7c47
EZ
27402010-11-05 Eli Zaretskii <eliz@gnu.org>
2741
bba3e508
SM
2742 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2743 Remove unused variables.
6e8d7c47 2744
f31ba3f0
AR
27452010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2746
2747 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2748 logic pointed out by Eli Zaretskii.
2749
448e17d6
LMI
27502010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2751
0c3a9a9f
GM
2752 * coding.c (coding-category-list): Refer to set-coding-system-priority
2753 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2754
3fdebbf9 27552010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 2756
2f8f196d 2757 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
2758 correct value.
2759 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2760 don't change the method signature, change the return.
2761
27622010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2763
2764 * nsfont.m (nsfont_draw)
2765 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2766 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2767
17c0c952
JD
27682010-11-03 Julien Danjou <julien@danjou.info>
2769
2770 * image.c (gif_load): Add support for transparency and specified
2771 :background.
2772
b18fad6d
KH
27732010-11-01 Kenichi Handa <handa@m17n.org>
2774
2775 * dispextern.h (lookup_glyphless_char_display): Extern it.
2776
2777 * termhooks.h (struct terminal): New member charset_list.
2778
2779 * coding.c (Fset_terminal_coding_system_internal): Set the
2780 `charset_list' member of struct terminal.
2781
a8039db1 2782 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2783 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2784
2785 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2786 (lookup_glyphless_char_display): Set it->what at the end.
2787 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2788 (last_glyphless_glyph_merged_face_id): Make them non-static.
2789
a8039db1
JB
2790 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2791 Fix the arg with_background for font->driver->draw.
65b6b59a 2792
a8039db1 27932010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2794
a8039db1
JB
2795 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2796 Surround chp by parentheses.
0269bd90 2797
a8039db1 27982010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2799
2800 Implement various display methods for glyphless characters.
2801
2802 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2803 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2804 (Qzero_width): New variables.
2805 (THIN_SPACE_WIDTH): New macro.
2806 (lookup_glyphless_char_display): New funciton.
2807 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2808 (last_glyphless_glyph_merged_face_id): New variables.
2809 (get_next_display_element): Check glyphless characters.
2810 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2811 last_glyphless_glyph_face_id.
2812 (fill_glyphless_glyph_string): New function.
2813 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2814 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2815 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2816 (x_produce_glyphs): If a suitable font is not found, produce a
2817 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2818 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2819 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2820 Qzero_width.
2821 (Vglyphless_char_display): Declare it as a Lisp variable.
2822
2823 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2824 (struct glyph): Change the size of the member "type" to 3.
2825 Add glyphless to the union slice and u.
b2cca856
KH
2826 (enum display_element_type): Add IT_GLYPHLESS.
2827 (enum glyphless_display_method): New enum.
2828 (struct it): New member glyphless_method.
2829 (Vglyphless_char_display): Extern it.
2830
2831 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2832 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2833
a8039db1 2834 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2835 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2836
2837 * nsterm.m (ns_draw_glyph_string): Handle the case
2838 GLYPHLESS_GLYPH (the detail is not yet implemented).
2839
c8c59954
GM
28402010-10-31 Glenn Morris <rgm@gnu.org>
2841
80696982
GM
2842 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2843
c8c59954
GM
2844 * frame.c (syms_of_frame) <tool-bar-mode>:
2845 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2846
46eadc7a
CY
28472010-10-31 Chong Yidong <cyd@stupidchicken.com>
2848
2849 * xterm.c (x_connection_closed): Print informative error message
2850 when aborting on GTK. This requires using shut_down_emacs
2851 directly instead of Fkill_emacs.
2852
ffe75e6b
EZ
28532010-10-29 Eli Zaretskii <eliz@gnu.org>
2854
2855 * emacs.c (main): Call syms_of_filelock unconditionally.
2856
2857 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2858 clause, but keep part of it conditioned on CLASH_DETECTION.
2859
9d794026
GM
28602010-10-29 Glenn Morris <rgm@gnu.org>
2861
4f4f2973
GM
2862 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2863 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2864 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2865 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2866 Sync docs between X, W32, NS.
2867
9d794026
GM
2868 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2869 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2870
d46f6bbb
JB
28712010-10-26 Juanma Barranquero <lekktu@gmail.com>
2872
2873 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2874 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2875
2e35f1a2
EZ
28762010-10-26 Eli Zaretskii <eliz@gnu.org>
2877
2878 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2879 zero or negative. (Bug#7281)
2e35f1a2 2880
8daaeda6
J
28812010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2882
2883 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2884
6a5c2175
GM
28852010-10-25 Glenn Morris <rgm@gnu.org>
2886
2887 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2888
7c051dd8
GM
28892010-10-24 Glenn Morris <rgm@gnu.org>
2890
2891 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2892 (Fx_window_property, Fx_file_dialog):
2893 * xfns.c (Fx_synchronize, Fx_change_window_property)
2894 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2895
23c261f5
CY
28962010-10-24 Chong Yidong <cyd@stupidchicken.com>
2897
2898 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2899
d414c713 29002010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2901
2902 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2903
2904 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2905 Deprecate use as a boolean flag.
2906
947f5e01
JM
29072010-10-24 Jim Meyering <jim@meyering.net>
2908
2909 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2910
65807d73
GM
29112010-10-24 Glenn Morris <rgm@gnu.org>
2912
f5f25615
GM
2913 * w16select.c (syms_of_win16select) <selection-coding-system>:
2914 <next-selection-coding-system>:
2915 * w32select.c (syms_of_w32select) <selection-coding-system>:
2916 <next-selection-coding-system>:
3646b86d
GM
2917 Sync docs with select.el.
2918
46710489
GM
2919 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2920 Lisp version.
2921
ea883883
GM
2922 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2923 Sync doc with the xterm.c version.
2924
65807d73
GM
2925 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2926 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2927
f3d87560
GM
29282010-10-23 Glenn Morris <rgm@gnu.org>
2929
66c6abf0 2930 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2931 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2932 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2933 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2934
7b7e2c18
EZ
29352010-10-23 Eli Zaretskii <eliz@gnu.org>
2936
d1d6801e 2937 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2938
2939 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2940 (mouse_face_from_string_pos): New function, replaces
2941 fast_find_string_pos.
2942 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2943 (note_mode_line_or_margin_highlight): Support bidi-reordered
2944 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2945 (note_mouse_highlight): When bidi reordering is turned on in a
2946 buffer, call next-single-property-change and
ef1b0ba7
SM
2947 previous-single-property-change with last argument nil.
2948 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2949 glyph that stands for no text beyond the line end.
1f382a02
EZ
2950 (row_containing_pos): Don't return too early when CHARPOS is in a
2951 bidi-reordered continued line. Return immediately when the first
2952 hit is found in a line that is not continued, or when an exact
2953 match for CHARPOS is found.
d1d6801e
EZ
2954 (rows_from_pos_range): New function.
2955 (mouse_face_from_buffer_pos): Use it instead of calling
2956 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2957 function to support mouse highlight in bidi-reordered lines and
2958 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2959 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2960 that the former is always above the latter or identical to it.
1554d88e 2961 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2962 (coords_in_mouse_face_p): New function, bidi-aware.
2963 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2964 Call it instead of comparing with mouse-face members of dpyinfo.
2965 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2966 usage of hpos and vpos.
544bbc31 2967
dee186b6
J
29682010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2969
2970 * xrdb.c: Include keyboard.h for MOTIF.
2971
2972 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2973 MOTIF (Bug#7263).
2974
2975 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2976 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2977 Make ANSI prototypes.
dee186b6 2978
5fb59edb
GM
29792010-10-22 Glenn Morris <rgm@gnu.org>
2980
2981 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2982 Remove ccl and duplicate mouse.
2983
8b78d5e3
CY
29842010-10-21 Chong Yidong <cyd@stupidchicken.com>
2985
2986 * insdel.c (prepare_to_modify_buffer): Don't set
2987 saved-region-selection if modification hooks are disabled.
2988
b8a47412
CY
29892010-10-19 Chong Yidong <cyd@stupidchicken.com>
2990
2991 * cmds.c (Fdelete_char): Doc fix.
2992
ca3fa302 29932010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2994
2995 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2996
ca3fa302 29972010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2998
2999 Fix incorrect font metrics when the same font is opened with
3000 different pixelsizes.
3001
3002 * xftfont.c: Include composite.h.
3003 (xftfont_shape): New function.
3004 (syms_of_xftfont): Set xftfont_driver.shape.
3005
c978536f
JD
30062010-10-18 Julien Danjou <julien@danjou.info>
3007
3008 * frame.c (Fframe_pointer_visible_p):
3009 Add `frame-pointer-visible-p' to get the pointer visibility.
3010
4b2d9ec2
LMI
30112010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3012
3013 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3014 non-"EAGAIN"-like error to signal to Emacs that the socket should
3015 be closed.
3016
9cf66cf2
EZ
30172010-10-15 Eli Zaretskii <eliz@gnu.org>
3018
c3911ead
EZ
3019 * unexcoff.c (make_hdr): Fix prototype according to changes in
3020 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3021
9cf66cf2
EZ
3022 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3023
be98da05
TH
30242010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3025
3026 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3027 made building the X menu fail.
cc98b256 3028 (really-oldXMenu): Fix my previous fix.
be98da05 3029
220d91b8 30302010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3031
3032 Fix handling of font properties on Windows (bug#6303).
3033 * font.c (font_filter_properties): New function, refactored from
3034 ftfont_filter_properties.
3035 * font.h (font_filter_properties): Declare.
3036 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3037 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3038 (w32font_filter_properties): New function.
3039 (w32font_driver): Add w32font_filter_properties.
3040
220d91b8 30412010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 3042
c0943d3d 3043 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
3044 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3045
24f981c9
JB
30462010-10-14 Juanma Barranquero <lekktu@gmail.com>
3047
3048 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3049 * w32font.c (w32_generic_family):
3050 * w32inevt.c (key_event):
3051 * w32menu.c (fill_in_menu):
3052 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3053 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3054 * w32term.c (w32_read_socket): Make static.
3055
850690cc
JB
30562010-10-13 Juanma Barranquero <lekktu@gmail.com>
3057
3058 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3059 prototypes; all callers changed.
3060
5e371708
JB
30612010-10-13 Juanma Barranquero <lekktu@gmail.com>
3062
3063 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3064 (OBJ2): New macro.
3065 (WIN32OBJ, FONTOBJ): Remove.
3066 (OBJ1): Redistribute object files with OBJ2.
3067 (LIBS, $(TEMACS)): Use TLIB2.
3068 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3069 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3070
2e288d54
JB
30712010-10-13 Juanma Barranquero <lekktu@gmail.com>
3072
3073 * emacs.c (Vdynamic_library_alist)
3074 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3075 Doc fix.
3076
3077 * lisp.h (Vdynamic_library_alist): Declare extern.
3078
3079 * image.c (Vimage_library_alist)
3080 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3081 (lookup_image_type): Use Vdynamic_library_alist.
3082 (Finit_image_library): Doc fix.
3083
aba1381b
DN
30842010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3085
3086 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3087 (lispdir): Remove trailing /, update all uses.
3088
4c14013d 30892010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
3090
3091 * nsterm.m (Qleft): Declare.
3092 (ns_right_alternate_modifier): New variable
3093 (NSRightAlternateKeyMask): New define.
3094 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3095 ns_right_alternate_modifier isn't Qleft.
3096 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3097 as emacs modifier for NSRightAlternateKeyMask.
3098 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3099
355cdaf3
LMI
31002010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3101
3102 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3103 gnutls is ready, return EAGAIN as the errno.
3104
4c620157
DN
31052010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3106
edfd76ce
DN
3107 * vm-limit.c:
3108 * unexhp9k800.c:
3109 * unexelf.c:
3110 * unexaix.c:
3111 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3112
a4daeecf
DN
3113 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3114 (PROFILING_LDFLAGS): Remove, not needed anymore.
3115
2cb72a75 3116 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
3117 (CRT_DIR): Move near potential user.
3118 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 3119
4c620157
DN
3120 * sysdep.c (LPASS8): Remove, unused.
3121 (emacs_ospeed): Change from being a global to a local in the only
3122 user: init_baud_rate.
3123
b845653d
LMI
31242010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3125
3126 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 3127 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 3128 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 3129 gnutls_read. This allows us to actually read lots of data from
b845653d 3130 the GnuTLS stream.
2e6c74c5
LMI
3131 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3132 According to the documentation, this is correct, and it seems to
3133 make things work.
b845653d 3134
3625b3e2
CY
31352010-10-09 Chong Yidong <cyd@stupidchicken.com>
3136
3137 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3138
8b1c619f
MA
31392010-10-08 Michael Albinus <michael.albinus@gmx.de>
3140
3141 * keyboard.c: Revert last change; it was not intended to be
3142 synchronized with the trunk.
3143
93d50df8
KH
31442010-10-08 Kenichi Handa <handa@m17n.org>
3145
2b7c9342 3146 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3147
4628bef1 31482010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3149
3150 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3151 (Fdbus_init_bus): ... here. (Bug#7113)
3152
4628bef1 31532010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3154
3155 * buffer.c (before-change-functions, after-change-functions):
3156 Three-year overdue doc fix following 2007-08-13 change.
3157
4628bef1 31582010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3159
3160 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3161 eol-format, inherit from the system's default.
3162 (complement_process_encoding_system): Make a new coding system
3163 inherit the original eol-format.
3164
4628bef1 31652010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3166
3167 * coding.c (complement_process_encoding_system): New function.
3168
3169 * coding.h (complement_process_encoding_system): Extern it.
3170
3171 * callproc.c (Fcall_process): Complement the coding system for
3172 encoding arguments.
3173 (Fcall_process_region): Complement the coding system for encoding
3174 the input to the process.
3175
3176 * process.c (Fstart_process): Complement the coding system for
3177 encoding arguments.
3178 (send_process): Complement the coding system for encoding what
3179 sent to the process.
3180
4628bef1 31812010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3182
3183 * xfont.c (xfont_open): Fix setting of font->average_width from
3184 :avgwidth property (Bug#7123).
3185
4628bef1 31862010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3187
3188 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3189 is more portable.
3190
3191 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3192 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3193 has not defined SIGIO.
3194
389454fb
CY
31952010-10-08 Chong Yidong <cyd@stupidchicken.com>
3196
3197 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3198 draw the outermost line using the black relief, for legibility.
3199 Omit drawing the four corner pixels.
3200
51b403bd
CY
32012010-10-04 Chong Yidong <cyd@stupidchicken.com>
3202
3203 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3204 (read_key_sequence): Inline echo_prompt.
3205 (echo_dash): Add a dash only if key is continued (Bug#7137).
3206
3e6ae1a4
DN
32072010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3208
3209 Remove O_RDONLY, O_WRONLY definitions, not needed.
3210 * unexcoff.c:
3211 * lread.c:
3212 * fileio.c:
3213 * doc.c:
3214 * callproc.c:
3215 * alloc.c:
3216 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3217
c1ae068b
LMI
32182010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3219
3220 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3221
3222 * gnutls.c: Add property list symbol holders.
3223 (emacs_gnutls_handshake): Clarify how sockets are passed to
3224 GnuTLS.
3225 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3226 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3227 and keyfiles to be a list of file names. Default to "NORMAL" for
3228 the priority string. Improve logging.
3229
e2afe435
GM
32302010-10-03 Glenn Morris <rgm@gnu.org>
3231
3232 * fileio.c (Vdirectory_sep_char): Remove.
3233
dd5ecd6b
DN
32342010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3235
b5437a05
DN
3236 * termhooks.h: Remove #ifdef CONSP.
3237
4777478a
DN
3238 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3239
a3d5088d
DN
3240 Include <fcntl.h> unconditionally.
3241 * termcap.c:
3242 * sysdep.c:
3243 * lread.c:
3244 * keyboard.c:
3245 * filelock.c:
3246 * fileio.c:
3247 * doc.c:
3248 * callproc.c:
3249 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3250 does it.
3251
82719735
DN
3252 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3253
9de940b5
DN
3254 * sysdep.c (flush_pending_output): Remove code, does not do
3255 anything on any platform.
3256
57507bf8 3257 Remove unused code.
bba3e508
SM
3258 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3259 Remove select emulation, all systems support select.
57507bf8
DN
3260 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3261 * process.c (create_process): Remove #if 0 code.
3262
dd5ecd6b
DN
3263 Remove unused arguments for unexec.
3264 The third one is never used, and the last two are always passed as zero.
3265 * emacs.c (unexec): Add declaration.
3266 (Fdump_emacs): Only pass the first two arguments to unexec.
3267 Simplify #ifdef.
3268 * unexw32.c (unexec):
3269 * unexsol.c (unexec):
3270 * unexhp9k800.c (unexec):
3271 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3272 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3273 (find_section): Use const.
3274 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3275 (unexec_error): Declare it NO_RETURN.
3276 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3277 it as an argument, remove data_start and entry_address arguments, unused.
3278 (unexec): Remove bss_start, data_start and
3279 entry_address arguments.
3280 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3281 it as an argument, remove data_start and entry_address arguments, unused.
3282 (unexec): Remove bss_start, data_start and
3283 entry_address arguments.
3284
74f1829d
JB
32852010-10-03 Juanma Barranquero <lekktu@gmail.com>
3286
7f467e14
JB
3287 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3288
74f1829d
JB
3289 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3290 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3291 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3292 Fix typos in docstrings.
3293 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3294 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3295
6926550f
CY
32962010-10-03 Chong Yidong <cyd@stupidchicken.com>
3297
3298 * keyboard.c (command_loop_1): Make sure the mark is really alive
3299 before using it (Bug#7044).
3300
54b65f7b
JB
33012010-10-02 Juanma Barranquero <lekktu@gmail.com>
3302
3303 * makefile.w32-in (tags): Rename target to full-tags.
3304
383ebd15
EZ
33052010-10-02 Eli Zaretskii <eliz@gnu.org>
3306
3307 * emacs.c (main): Remove !WINDOWSNT conditional.
3308 (Fkill_emacs): Don't mention exemption on MS-Windows.
3309
9c524fcb
GM
33102010-10-02 Glenn Morris <rgm@gnu.org>
3311
3226d6ca
GM
3312 * character.c (Fchar_bytes): Remove obsolete function.
3313 (syms_of_character): Remove Schar_bytes.
3314
9c524fcb
GM
3315 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3316 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3317 in batch-mode.
3318 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3319 (kill-emacs-hook): Doc fix.
3320
1b217849
LMI
33212010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3322
3323 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 3324 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
3325 renamed to reflect that these are the libxml functions.
3326
54cc6a83
EZ
33272010-10-01 Eli Zaretskii <eliz@gnu.org>
3328
0ebf79de
EZ
3329 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3330 screen dimensions in tty->Wcm.
3331
54cc6a83
EZ
3332 * xdisp.c (set_cursor_from_row): When the row is truncated and
3333 point is outside the range of displayed characters, position the
3334 cursor inside the scroll margin. (Bug#6349)
3335
321401d1
DN
33362010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3337
4cacd822
DN
3338 Do not include stdlib.h and string.h, config.h does it.
3339 * xfont.c:
3340 * w32term.c:
3341 * w32reg.c:
3342 * w32inevt.c:
3343 * w32heap.c:
3344 * w32console.c:
3345 * w16select.c:
3346 * unexsol.c:
3347 * term.c:
3348 * sound.c:
3349 * scroll.c (m):
3350 * gtkutil.c:
3351 * font.c:
3352 * filelock.c:
3353 * fileio.c:
3354 * dosfns.c:
3355 * dbusbind.c:
3356 * bidi.c:
3357 * callproc.c:
3358 * process.c:
3359 * msdos.c:
3360 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3361
bba3e508
SM
3362 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3363 defines it.
0781e7ab 3364
9bf58201
DN
3365 * process.c: Move #include <pty.h> earlier.
3366 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3367 (pty_name): Move definition later.
3368
088dcc3e
DN
3369 * nsselect.m (syms_of_nsselect):
3370 * nsmenu.m (syms_of_nsmenu):
3371 * nsfns.m (syms_of_nsfns):
3372 * msdos.c (syms_of_msdos):
4cacd822 3373
088dcc3e
DN
3374 * image.c (syms_of_image):
3375 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
3376
321401d1
DN
3377 * point.h: Remove, unused.
3378
73077a9a
EZ
33792010-10-01 Eli Zaretskii <eliz@gnu.org>
3380
3381 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
3382 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
3383 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
3384
55e572ef
DN
33852010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3386
3387 * xml.c (parse_string): Use const.
3388
d4b6d95d
LMI
33892010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
3390
ef1b0ba7
SM
3391 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
3392 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
3393 the level to 8 to produce more useful backtraces for bug reports.
3394
e4b6db12
DN
33952010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3396
3397 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
3398
1becef93
JB
33992010-09-30 Juanma Barranquero <lekktu@gmail.com>
3400
3401 * w32console.c (vga_stdcolor_name): Remove unused function;
3402 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
3403
df7fcaff
LMI
34042010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
3405
bac5cef8
LMI
3406 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
3407 (Fgnutls_boot): Start the handshake.
3408 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
3409 (Fgnutls_boot): Remove some debugging messages.
3410 Change indentation throughout to use the Emacs style.
3411 (emacs_gnutls_handshake): Cast the fds to something that's
3412 possibly the expected length.
3413 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 3414
df7fcaff
LMI
3415 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
3416
3417 * process.c (make_process): Set the gnutls_p field to zero by
3418 default.
3419 (read_process_output): Always call the gnutls_read function if the
3420 stream is a gnutls stream.
3421 (send_process): Ditto for writes.
3422
3423 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
3424 or write anything until the state is GNUTLS_STAGE_READY.
3425 (Fgnutls_boot): Mark the stream as being a gnutls stream.
3426
d585695f
EZ
34272010-09-29 Eli Zaretskii <eliz@gnu.org>
3428
af7ef32d
EZ
3429 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
3430 NEUTRAL_DIR.
3431 (handle_invisible_prop, iterate_out_of_display_property)
3432 (next_element_from_buffer): If bidi_it.first_elt is set, call
3433 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
3434 (Bug#7128)
3435
d585695f
EZ
3436 * print.c (print_object): Fix format string and argument types for
3437 printing a Lisp_Misc_Marker.
3438
3439 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
3440 (load_overlay_strings, get_overlay_strings_1)
3441 (get_overlay_strings, forward_to_next_line_start)
3442 (back_to_previous_visible_line_start, reseat, reseat_to_string)
3443 (get_next_display_element, next_element_from_string)
3444 (next_element_from_c_string, next_element_from_buffer)
3445 (move_it_vertically_backward, move_it_by_lines, add_to_log)
3446 (message_dolog, message_log_check_duplicate, message2_nolog)
3447 (message3, message3_nolog, vmessage, set_message, set_message_1)
3448 (hscroll_window_tree, text_outside_line_unchanged_p)
3449 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
3450 (find_last_unchanged_at_beg_row)
3451 (find_first_unchanged_at_end_row, row_containing_pos)
3452 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
3453 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
3454 Use EMACS_INT for buffer and string positions.
d585695f
EZ
3455
3456 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
3457 (row_containing_pos): Adjust prototype.
3458
3459 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
3460 (message2_nolog, set_message): Adjust prototypes.
3461
a6f3211f
SM
34622010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3463
3464 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
3465 (Fgnutls_boot): Use SDATA.
3466 (Fgnutls_handshake): Remove unused var `max_log_level'.
3467
e0720500
MA
34682010-09-27 Michael Albinus <michael.albinus@gmx.de>
3469
11a5af7c 3470 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
3471 (Bug#7113)
3472
d8a4b27a
J
34732010-09-27 Jan Djärv <jan.h.d@swipnet.se>
3474
42d3022b
J
3475 * xgselect.c (xg_select): Clear file descriptors not set from
3476 rfds and wfds.
3477
d8a4b27a
J
3478 * process.c (wait_reading_process_output): Add missing FD_CLR
3479 for write_mask (must mirror connect_wait_mask).
3480
8ed70bf3
LMI
34812010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
3482
3483 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
3484 prefix.
3485 (Fgnutls_boot): Use changed process members. Use log level with a
3486 function parameter to set it. Bring back Emacs-level debugging
3487 messages at log level 1 and 2.
3488
3489 * process.c (make_process): Initialize gnutls_log_level.
3490
3491 * process.h: Add gnutls_log_level and rename x509_cred and
3492 anon_cred to have the gnutls_ prefix for consistency.
3493
3494 * gnutls.h (GNUTLS_LOG): Add convenience macro.
3495
bedf4aab
JB
34962010-09-27 Juanma Barranquero <lekktu@gmail.com>
3497
3498 * w32.c (g_b_init_get_sid_identifier_authority)
3499 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
3500 Remove, not used.
3501 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
3502 (init_winsock): Remove useless assignment.
3503 (open_process_token, get_token_information, lookup_account_sid)
3504 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
3505 (get_security_descriptor_owner, get_security_descriptor_group)
3506 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
3507 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
3508 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
3509 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
3510 (unc_volume_file_attributes, convert_from_time_t)
3511 (create_toolhelp32_snapshot, process32_first, process32_next)
3512 (open_thread_token, impersonate_self, revert_to_self)
3513 (get_process_memory_info, get_process_working_set_size)
3514 (global_memory_status, global_memory_status_ex, socket_to_fd)
3515 (shutdown_handler): Make static.
3516
08609ffd
MA
35172010-09-27 Michael Albinus <michael.albinus@gmx.de>
3518
3519 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
3520 (xd_pending_messages): Functions removed.
3521 (xd_read_queued_messages): Add parameters fd, *data, for_read in
3522 order to be compatible with add_read_fd. Determine bus from data,
3523 and call xd_read_message just for this bus.
3524 (xd_add_watch): Use xd_read_queued_messages as callback function.
3525 Add data.
3526
3527 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
3528
d2e9d0bb
LMI
35292010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
3530
ef1b0ba7 3531 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 3532 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 3533
4be9765d
KH
35342010-09-27 Kenichi Handa <handa@m17n.org>
3535
3536 These changes are to remove restriction on the number of glyphs in
3537 one composition.
3538
3539 * dispextern.h (struct glyph): Change the member "slice" to union.
3540 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 3541 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
3542
3543 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3544 instead of glyph->slice.
3545 (marginal_area_string): Likewise.
3546
3547 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3548 glyph->u.cmp.
3549 (append_composite_glyph): Likewise.
3550
3551 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3552 glyph->u.cmp.
3553 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3554 (append_composite_glyph): Likewise.
3555 (fill_image_glyph_string): Use glyph->slice.img instead of
3556 glyph->slice.
3557 (append_glyph, produce_image_glyph, append_stretch_glyph)
3558 (note_mouse_highlight): Likewise.
3559
3fad2ad2
J
35602010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3561
bf05eed6
J
3562 * process.c (add_keyboard_wait_descriptor)
3563 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
3564 (wait_reading_process_output): Don't pass write_mask to select
3565 if SELECT_CANT_DO_WRITE_MASK is defined.
3566 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 3567
3fad2ad2
J
3568 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3569 (delete_write_fd): Declare.
3570
3571 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3572 (write_mask): New variable.
ef1b0ba7 3573 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 3574 (fd_callback_info): New variable.
70e31436
JB
3575 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3576 New functions.
3fad2ad2
J
3577 (Fmake_network_process): FD_SET write_mask.
3578 (deactivate_process): FD_CLR write_mask.
3579 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
3580 check_connect removed. check_write is new. Remove references to gpm.
3581 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
3582 NON_BLOCKING_CONNECT) instead of Connecting.
3583 Loop over file descriptors and call callbacks in fd_callback_info
3584 if file descriptor is ready for I/O.
3585 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3586 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3587 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
3588 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3589 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
3590 (init_process): Initialize write_mask and fd_callback_info.
3591
3592 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3593
3594 * dbusbind.c: Include process.h.
3595 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3596 (xd_read_message_1): New functions.
70e31436
JB
3597 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3598 Handle watch for both read and write.
3fad2ad2
J
3599 (Fdbus_init_bus): Also register xd_toggle_watch.
3600 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3601 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3602 to dbus_connection_flush.
70e31436 3603 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
3604 Call xd_read_message_1 until status is COMPLETE.
3605
dce4c2ac
DN
36062010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3607
3608 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
3609 (init_tty): Reorder code to reduce the number of #ifdefs.
3610 No code changes.
dce4c2ac 3611
8af55556
TZ
36122010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3613
3614 * process.h: Set up GnuTLS support.
3615
3616 * process.c (make_process, Fstart_process)
3617 (read_process_output, send_process): Set up GnuTLS support for
3618 process input/output file descriptors.
3619
3620 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3621
3622 * gnutls.c: The source code for GnuTLS support in Emacs.
3623
3624 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3625
3626 * config.in: Set up GnuTLS support.
3627
3628 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3629 (obj, LIBES): Set up GnuTLS support.
3630
83e245c4
JB
36312010-09-26 Juanma Barranquero <lekktu@gmail.com>
3632
3633 * w32.c (get_emacs_configuration_options): Fix previous change.
3634
d24ec09a
CY
36352010-09-25 Chong Yidong <cyd@stupidchicken.com>
3636
3637 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3638 alive before using it (Bug#6977).
3639
b7bdc47c
LMI
36402010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3641
a952d5f3
LMI
3642 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3643
3644 * dispextern.h: EMACS_INT/int fixup.
3645
3646 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3647 fixup.
3648
b7bdc47c
LMI
3649 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3650
41118bd3
EZ
36512010-09-25 Eli Zaretskii <eliz@gnu.org>
3652
2452438f
EZ
3653 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3654 (Fselect_window, window_scroll_pixel_based)
3655 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3656 Use EMACS_INT for buffer positions.
3657
3658 * textprop.c (validate_interval_range, interval_of)
3659 (property_change_between_p, Fadd_text_properties)
3660 (set_text_properties_1, Fremove_text_properties)
3661 (Fremove_list_of_text_properties, Ftext_property_any)
3662 (Ftext_property_not_all, copy_text_properties)
3663 (text_property_list, extend_property_ranges)
3664 (verify_interval_modification): Use EMACS_INT for buffer
3665 positions.
3666
f877c546
EZ
3667 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3668 for buffer positions.
3669
3670 * process.c (read_process_output, send_process)
3671 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3672 and string positions and size.
3673
da43f021
EZ
3674 * print.c (print_object, print_string, strout): Use EMACS_INT for
3675 string indices.
3676
3677 * minibuf.c (string_to_object): Use EMACS_INT for string position
3678 and size.
3679
3680 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3681
3682 * lread.c <read_from_string_index, read_from_string_index_byte>
3683 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3684 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3685 buffer positions and string length.
3686
41118bd3
EZ
3687 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3688 EMACS_INT.
3689 (echo_truncate, adjust_point_for_property, read_char)
3690 (gen_help_event, make_lispy_event, modify_event_symbol)
3691 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3692 for buffer positions and string length.
3693
3694 * keyboard.h (gen_help_event): Adjust prototype.
3695
3696 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3697
3698 * commands.h <last_point_position>: Declare EMACS_INT.
3699
3700 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3701 (truncate_echo_area): Accept EMACS_INT argument.
3702
3703 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3704
3705 * lisp.h (truncate_echo_area): Adjust prototype.
3706
3707 * composite.c (composition_adjust_point): Return EMACS_INT.
3708
3709 * composite.h (composition_adjust_point): Adjust prototype.
3710
ba3033ee
JB
37112010-09-25 Juanma Barranquero <lekktu@gmail.com>
3712
3713 * process.c (Fmake_network_process): When arg :host is 'local,
3714 use address 127.0.0.1, not name "localhost". (Bug#6781)
3715
4f3a2f8d
EZ
37162010-09-24 Eli Zaretskii <eliz@gnu.org>
3717
5816888b
EZ
3718 * indent.c (Fcurrent_indentation, indented_beyond_p)
3719 (compute_motion): Use EMACS_INT for buffer position variables.
3720
3721 * lisp.h (indented_beyond_p): Adjust prototype.
3722
3723 * buffer.c (overlay_strings): Return EMACS_INT.
3724
3725 * buffer.h (overlay_strings): Adjust prototype.
3726
3727 * region-cache.c (pp_cache): Adjust format to arguments.
3728
3729 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3730 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3731 (verror): Use EMACS_INT for size of allocated buffer.
3732
ace1712c
EZ
3733 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3734 positions.
3735
3736 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3737 (set_cursor_from_row, find_first_unchanged_at_end_row):
3738 Use EMACS_INT for buffer positions.
ace1712c 3739
f5276b75 3740 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3741
3742 * dispnew.c (increment_matrix_positions)
3743 (increment_row_positions, copy_glyph_row_contents)
3744 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3745 positions.
3746
3747 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3748 (increment_matrix_positions, increment_row_positions):
3749 Adjust prototypes.
ace1712c
EZ
3750
3751 * data.c (Faref, Faset): Use EMACS_INT for string length and
3752 positions.
3753
3754 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3755 characters to insert.
3756
3757 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3758 position and size.
3759
4f3a2f8d
EZ
3760 * syntax.c (scan_words, update_syntax_table)
3761 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3762 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3763 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3764
3765 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3766
3767 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3768 positions.
3769
db063399
LMI
37702010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3771
f0812d35
LMI
3772 * scroll.c (calculate_scrolling, line_ins_del)
3773 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3774 conversion.
3775
f5c7fc27
LMI
3776 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3777 (region_cache_backward, region_cache_forward)
3778 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3779 conversion.
3780
db063399
LMI
3781 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3782
3783 * eval.c (verror): Fix EMACS_INT/int conversion.
3784
07914cd0 3785 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3786 (print_preprocess, print_check_string_charset_prop)
3787 (print_object): Fix EMACS_INT/int conversion.
3788
3789 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3790
e6d4aefa
EZ
37912010-09-24 Eli Zaretskii <eliz@gnu.org>
3792
69481da7
EZ
3793 * callproc.c (Fcall_process): Use EMACS_INT for count of
3794 characters read from the subprocess.
3795
61bfec98
EZ
3796 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3797 positions.
3798 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3799 positions.
3800
145582a0
EZ
3801 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3802 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3803 length.
3804 (advance_to_char_boundary, Fset_buffer_multibyte)
3805 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3806 (overlay_touches_p, record_overlay_string, overlay_strings)
3807 (recenter_overlay_lists, fix_start_end_in_overlays)
3808 (modify_overlay, Fmove_overlay, report_overlay_modification)
3809 (evaporate_overlays): Use EMACS_INT for buffer positions.
3810
bba3e508
SM
3811 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3812 Adjust prototypes.
145582a0 3813
446470a9
EZ
3814 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3815 positions.
3816
e6d4aefa
EZ
3817 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3818 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3819 (Fsubstring_no_properties, substring_both, Ffillarray)
3820 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3821 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3822 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3823 (Fmd5): Use EMACS_INT for buffer and string positions and length
3824 variables and arguments.
3825
3826 * lisp.h (substring_both): Adjust prototype.
3827
eb652396
JB
38282010-09-24 Juanma Barranquero <lekktu@gmail.com>
3829
3830 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3831 * w32fns.c (clipboard_sequence_fn): Don't declare.
3832 (globals_of_w32fns): Don't initialize it.
3833
266a86bd 38342010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3835
3836 * syntax.c (back_comment): Detect the case where a 1-char comment
3837 starter is also the 2nd char of a 2-char comment ender.
3838
266a86bd 38392010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3840
3841 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3842
40283062
LMI
38432010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3844
db063399
LMI
3845 * eval.c (verror): EMACS_INT/int cleanup.
3846
faf8b5bc
LMI
3847 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3848 unwind_protect more than 2GB worth of functions.
3849
3850 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3851
40283062
LMI
3852 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3853 string and avoid compiler warnings.
3854 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3855 all users.
3856
3857 * lread.c (oblookup): EMACS_INT/int cleanup.
3858
3859 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3860
fe3537c3
EZ
38612010-09-23 Eli Zaretskii <eliz@gnu.org>
3862
3863 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3864
3865 * lisp.h (clip_to_bounds): Adjust prototype.
3866
3867 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3868
0350982f
LMI
38692010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3870
84c9ce05
LMI
3871 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3872
3873 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3874
3875 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3876 cleanup.
3877
0350982f
LMI
3878 * lisp.h: Change the definition of all marker.c functions that
3879 take and return buffer stuff to be EMACS_INT instead of int.
3880
3881 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3882 (buf_charpos_to_bytepos, bytepos_to_charpos)
3883 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3884 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3885 for all buffer positions.
3886
c50bd0d2
CY
38872010-09-23 Chong Yidong <cyd@stupidchicken.com>
3888
3889 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3890 (split_interval_right, find_interval, next_interval)
3891 (delete_node, delete_interval, interval_deletion_adjustment)
3892 (adjust_intervals_for_deletion, merge_interval_right)
3893 (merge_interval_left, graft_intervals_into_buffer)
3894 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3895
3896 * intervals.h (traverse_intervals): Update prototype.
3897
14162469
EZ
38982010-09-23 Eli Zaretskii <eliz@gnu.org>
3899
c098fdb8
EZ
3900 * indent.c (compute_motion): Use EMACS_INT for arguments to
3901 region_cache_forward.
3902
bba3e508
SM
3903 * region-cache.c (struct boundary, struct region_cache):
3904 Use EMACS_INT for positions.
c098fdb8
EZ
3905 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3906 (delete_cache_boundaries, set_cache_region)
3907 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3908 (region_cache_forward, region_cache_backward, pp_cache):
3909 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3910
3911 * region-cache.h (know_region_cache, invalidate_region_cache)
3912 (region_cache_forward, region_cache_backward): Adjust prototypes.
3913
3914 * search.c (string_match_1, fast_c_string_match_ignore_case)
3915 (looking_at_1, scan_buffer, scan_newline)
3916 (find_next_newline_no_quit, find_before_next_newline)
3917 (search_command, trivial_regexp_p, search_buffer, simple_search)
3918 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3919 and string positions and length.
3920
caefdbe7
EZ
3921 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3922 (find_before_next_newline): Adjust prototypes.
c098fdb8 3923
29cdc13e
EZ
3924 * editfns.c (transpose_markers, update_buffer_properties)
3925 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3926 (get_pos_property, Fconstrain_to_field)
3927 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3928 (Fchar_after, Fchar_before, Finsert_char)
3929 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3930 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3931 Use EMACS_INT for buffer and string position variables.
c098fdb8 3932 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3933
3934 * lisp.h (clip_to_bounds): Adjust prototype.
3935
e79123aa
EZ
3936 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3937 (balance_an_interval, split_interval_right, split_interval_left)
3938 (find_interval, next_interval, update_interval)
3939 (adjust_intervals_for_insertion, delete_node, delete_interval)
3940 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3941 (offset_intervals, merge_interval_right, merge_interval_left)
3942 (graft_intervals_into_buffer, adjust_for_invis_intang)
3943 (move_if_not_intangible, get_local_map, copy_intervals)
3944 (copy_intervals_to_string, compare_string_intervals)
3945 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3946 and for interval tree size.
e79123aa
EZ
3947
3948 * intervals.h (traverse_intervals, split_interval_right)
3949 (split_interval_left, find_interval, offset_intervals)
3950 (graft_intervals_into_buffer, copy_intervals)
3951 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3952 (update_interval): Adjust prototypes.
3953
579c18d0
EZ
3954 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3955 Use EMACS_INT for buffer position variables and arguments.
3956
3957 * composite.c (get_composition_id, find_composition)
3958 (run_composition_function, compose_text)
3959 (composition_gstring_width, autocmp_chars)
3960 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3961 for buffer positions and string length variables and arguments.
3962
3963 * composite.h (get_composition_id, find_composition, compose_text)
3964 (composition_gstring_width): Adjust prototypes.
3965
3966 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3967
bba3e508
SM
3968 * xdisp.c (store_mode_line_noprop, display_mode_element):
3969 Use EMACS_INT for string positions.
579c18d0
EZ
3970
3971 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3972 position arguments.
3973
3974 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3975
3976 * character.c (parse_str_as_multibyte, str_as_multibyte)
3977 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3978 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3979 (strwidth, lisp_string_width, multibyte_chars_in_text):
3980 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3981
3982 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3983 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3984 (c_string_width, strwidth, lisp_string_width):
3985 Adjust prototypes.
14162469 3986
579c18d0
EZ
3987 * font.c (font_intern_prop): Use EMACS_INT for string length
3988 variables.
3989
3990 * font.c (font_intern_prop): Use EMACS_INT for string length
3991 variables.
3992
14162469
EZ
3993 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3994 variables.
3995
3996 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3997 (Fmake_string): Protect against too large strings.
3998 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3999 (live_misc_p): Use ptrdiff_t instead of int for pointer
4000 differences.
4001 (string_bytes, check_sblock, check_string_free_list)
4002 (allocate_string_data, compact_small_strings, Fmake_string)
4003 (Fmake_bool_vector, make_string, make_unibyte_string)
4004 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4005 (make_specified_string_string, Fmake_list, Fmake_vector):
4006 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4007 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4008 (Fpurecopy): Use EMACS_INT for string size.
4009 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4010 for vector size.
4011
4012 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4013 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4014 (make_pure_string, string_bytes, check_point_in_composition):
4015 Adjust prototypes.
14162469 4016
c8a66ab8
EZ
40172010-09-22 Eli Zaretskii <eliz@gnu.org>
4018
4019 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4020 (check_translation): Use EMACS_INT for buffer positions and
4021 length.
4022
4023 * undo.c (record_marker_adjustment, record_delete)
4024 (record_change, record_point, record_insert)
4025 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4026 buffer positions.
4027
4028 * lisp.h (record_marker_adjustment, record_delete)
4029 (record_change, record_point, record_insert)
4030 (record_property_change, Fprimitive_undo): Adjust prototypes.
4031
38c54d9d
JB
40322010-09-22 Juanma Barranquero <lekktu@gmail.com>
4033 Eli Zaretskii <eliz@gnu.org>
4034
4035 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4036
413d18e7
EZ
40372010-09-22 Eli Zaretskii <eliz@gnu.org>
4038
4039 * minibuf.c (Fminibuffer_contents)
4040 (Fminibuffer_contents_no_properties)
4041 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4042 positions.
4043
4044 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4045 mark.
4046
4047 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4048 (allocate_string_data): Accept EMACS_INT for string length.
4049
4050 * editfns.c (Ffield_string, Ffield_string_no_properties)
4051 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4052 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4053 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4054 (Ffield_end): Use EMACS_INT for buffer positions.
4055
4056 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4057 point with mark.
4058
4059 * lisp.h (allocate_string_data, make_uninit_string)
4060 (make_uninit_multibyte_string, make_buffer_string)
4061 (make_buffer_string_both): Adjust prototypes.
4062
4b9832a6
CY
40632010-09-22 Chong Yidong <cyd@stupidchicken.com>
4064
4065 * xml.c: Switch to GNU indentation.
4066 (make_dom): Change parse tree format to match xml.el.
4067 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4068 (Fxml_parse_string_internal): Rename from xml-parse-string.
4069
86282aab
KH
40702010-09-22 Kenichi Handa <handa@m17n.org>
4071
4072 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4073 only if we are not at a composition.
4074 (set_iterator_to_next): Give it->end_charpos to
4075 composition_compute_stop_pos.
4076 (set_iterator_to_next, next_element_from_buffer): Likewise.
4077
4078 * dispnew.c (buffer_posn_from_coords): Fix position when the
4079 current display element is a grapheme cluster in bidi-reordered
4080 region.
4081
840b985a
AR
40822010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4083
4084 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4085 the regions may overlap.
4086
5bc88f4b
JB
40872010-09-21 Juanma Barranquero <lekktu@gmail.com>
4088
4089 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4090
92bc9a36
DN
40912010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4092
d19e096e
DN
4093 * emacs.c: Do not include sys/ioctl.h, not needed.
4094
92bc9a36
DN
4095 * doprnt.c: Do not include stdlib.h, config.h does it.
4096 Move #include before macro definition.
4097
15f844ac
DN
40982010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4099
48e24408
DN
4100 * Makefile.in (temacs): Link using $(CC) not $(LD).
4101 (LD_FIRSTFLAG): Define using autoconf.
4102 (LD): Remove.
4103
65539506
DN
4104 Remove HAVE_TERMIOS definitions.
4105 * s/usg5-4-common.h (HAVE_TERMIOS):
4106 * s/template.h (HAVE_TERMIOS):
4107 * s/gnu-linux.h (HAVE_TERMIOS):
4108 * s/darwin.h (HAVE_TERMIOS):
4109 * s/cygwin.h (HAVE_TERMIOS):
4110 * s/bsd-common.h (HAVE_TERMIOS):
4111 * s/aix4-2.h (HAVE_TERMIOS):
4112 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4113 defined on all non-MS platforms.
4114 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4115
15f844ac
DN
4116 * xterm.c (xt_action_hook): Use const.
4117
7d701334
JB
41182010-09-20 Juanma Barranquero <lekktu@gmail.com>
4119
4120 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4121 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4122 (gethostname) [!HAVE_SOCKETS]: Remove.
4123 (SOCK_REPLACE_HANDLE): Remove macro.
4124 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4125 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4126 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4127 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4128
f3ec267a
EZ
41292010-09-18 Eli Zaretskii <eliz@gnu.org>
4130
4131 * deps.mk (xml.o): Add dependencies.
4132
93acd23d
JB
4133 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4134 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4135
4136 * bidi.c (bidi_paragraph_init): Accept an additional argument
4137 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4138 search back until a paragraph with a strong directional character
4139 is found, and use that to determine paragraph's base direction.
4140
4141 * dispextern.h (bidi_paragraph_init): Update prototype.
4142
69e847be
EZ
41432010-09-17 Eli Zaretskii <eliz@gnu.org>
4144
4145 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4146 of w32api >= 3.15. (Bug#6989)
4147
283357a7
LMI
41482010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4149
4150 * process.c (wait_reading_process_output): Don't message about
4151 accept-process-output unless the time limit really is zero.
4152
4ddb20d6
SM
41532010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4154
4155 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4156 int/Lisp_Object mixup).
4157
e24ad6dd
J
41582010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4159
4160 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4161 not HELP.
4162
fb0cf781
J
41632010-09-17 Stephen Berman <stephen.berman@gmx.net>
4164
4165 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4166 bar's pixel width to Lisp (Bug#7048).
4167
4ddb20d6
SM
41682010-09-14 Juanma Barranquero <lekktu@gmail.com>
4169
4170 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4171
318a04c6
J
41722010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4173
4174 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4175 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4176
78a21772
KH
41772010-09-17 Kenichi Handa <handa@m17n.org>
4178
4179 * ftfont.c (ftfont_check_otf): Fix previous change.
4180
fa3f6039
KH
41812010-09-14 Kenichi Handa <handa@m17n.org>
4182
4183 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4184 existence of GSUB or GPOS.
4185
2b5491fa
JB
41862010-09-14 Juanma Barranquero <lekktu@gmail.com>
4187
4188 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4189
c97c655f
LMI
41902010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4191
ef1b0ba7 4192 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4193 what it does.
4194 (parse_string): Return nil when the document can't be parsed.
4195
6664fc59 41962010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4197
4198 * xterm.c (get_current_vm_state): New function.
4199 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4200 want_fullscreen so set_wm_state calls are few (Bug#7013).
4201 (x_handle_net_wm_state): Move code to get_current_vm_state and
4202 call that function.
4203
6664fc59 42042010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4205
4206 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4207
6664fc59 42082010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4209
4210 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4211 we may use designation or locking-shift.
4212
6664fc59 42132010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4214
4215 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4216 sequence when the source is multibyte.
4217
1da70e99
AS
42182010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4219
6664fc59
JB
4220 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4221 Don't make first argument optional. Doc fix.
1da70e99 4222
26632d8d
LMI
42232010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4224
4225 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4226 parameters for the doc string.
4227
21fa8e37
LMI
42282010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4229
4230 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4231
5616cc54
SM
42322010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4233
4234 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4235 (syms_of_fns): Don't defsubr Sy_or_n_p.
4236 * lisp.h: Don't declare Fy_or_n_p.
4237 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4238
381408e2
LMI
42392010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4240
4241 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4242
42432010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4244
4245 * xml.c: New file.
4246 (Fhtml_parse_buffer): New function to interface to the libxml2
4247 html parsing function.
4248
733946e7
JB
42492010-09-05 Juanma Barranquero <lekktu@gmail.com>
4250
4251 * biditype.h: Regenerate.
4252
7574650a
AS
42532010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4254
4255 * nsimage.m (ns_load_image): Check argument types.
4256
4257 * image.c: Remove all uses of gcpro.
4258 (xpm_load): Check all lisp types.
4259 (pbm_load): Likewise.
4260 (png_load): Likewise.
4261 (jpeg_load): Likewise.
4262 (tiff_load): Likewise.
4263 (gif_load): Likewise.
4264 (imagemagick_load_image): Likewise.
4265 (imagemagick_load): Likewise.
4266 (svg_load): Likewise.
4267 (gs_load): Likewise.
4268
6e6b8e25
EZ
42692010-09-04 Eli Zaretskii <eliz@gnu.org>
4270
bba3e508
SM
4271 * w32uniscribe.c (uniscribe_shape): Update commentary.
4272 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
4273 hold them in the logical order.
4274 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4275 return glyph codes in the logical order.
4276
dbfe4532
AS
42772010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4278
4279 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 4280 (imagemagick_load_image): Fix type mismatch.
5e5992c2 4281 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 4282
6d7cc563
JD
42832010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4284
4285 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4286
4287 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4288
4289 * xselect.c: Remove declaration of cut-buffer objects and functions.
4290 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4291 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4292 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4293 (Fx_rotate_cut_buffers_internal): Remove.
4294 (syms_of_xselect): Remove defsubr of above.
4295 Remove intern of QCUT_BUFFERn.
4296
8f4e9110
SM
42972010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4298
4299 * cmds.c (Vblink_paren_function): Remove.
4300 (internal_self_insert): Make it insert N chars at a time.
4301 Don't call blink-paren-function.
4302 (Fself_insert_command): Adjust accordingly.
4303 (syms_of_cmds): Don't declare blink-paren-function.
4304
d419e1d9
KH
43052010-08-31 Kenichi Handa <handa@m17n.org>
4306
4307 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4308 characters.
4309
4310 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
4311 (produce_glyphs): Don't set it->char_to_display here.
4312 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
4313 (produce_special_glyphs): Set temp_it.char_to_display before
4314 calling produce_glyphs.
4315
4316 * xdisp.c (get_next_display_element): Set it->char_to_display
4317 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4318 characters.
4319 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4320 calling PRODUCE_GLYPHS.
4321 (append_space_for_newline): Save and store it->char_to_display.
4322 Set it->char_to_display before calling PRODUCE_GLYPHS.
4323 (extend_face_to_end_of_line): Set it->char_to_display before
4324 calling PRODUCE_GLYPHS.
4325 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4326 character to its byte value.
4327 (get_char_glyph_code): New function.
4328 (produce_stretch_glyph): Set it2.char_to_display too before
4329 calling x_produce_glyphs.
4330 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
4331 non-ASCII characters. Don't set it->char_to_display here.
4332 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 4333 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 4334
b819f760
SM
43352010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4336
4337 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4338
07fa68a7
CY
43392010-08-31 Chong Yidong <cyd@stupidchicken.com>
4340
4341 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4342
cd196f12
SM
43432010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4344
4345 * marker.c (Fcopy_marker): Make the first arg optional.
4346
49a752bb
KH
43472010-08-30 Kenichi Handa <handa@m17n.org>
4348
4349 * composite.c (composition_update_it): Fix computing of
4350 cmp_it->width.
4351
769ae9e1
KH
43522010-08-29 Kenichi Handa <handa@m17n.org>
4353
9e69cb05 4354 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 4355 corresponding bytes.
9e69cb05 4356
4520b858
J
43572010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4358
4359 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4360
fe50eb41
KH
43612010-08-26 Kenichi Handa <handa@m17n.org>
4362
4363 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4364 on calling composition_compute_stop_pos.
4365
f6aa6ec6
KH
43662010-08-25 Kenichi Handa <handa@m17n.org>
4367
9dfdbc0a
KH
4368 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4369 :otf.
4370
f6aa6ec6
KH
4371 * composite.c (composition_compute_stop_pos): Don't break
4372 composition at PT.
4373 (composition_reseat_it): Likewise. Fix calculation of character
4374 position starting a composition.
4375 (Fcomposition_get_gstring): Don't limit the number of components
4376 for automatic composition.
4377
ff94e32c
KH
43782010-08-25 Kenichi Handa <handa@m17n.org>
4379
4380 * composite.c (composition_compute_stop_pos): In forward search,
4381 pay attention to the possibility that some character after ENDPOS
4382 will be composed with charactrs before ENDPOS.
4383
1c409d0b
CY
43842010-08-24 Chong Yidong <cyd@stupidchicken.com>
4385
4386 * keyboard.c (command_loop_1): Don't clobber primary selection
4387 during handle-switch-frame (Bug#6872).
4388
0c372655
MA
43892010-08-23 Michael Albinus <michael.albinus@gmx.de>
4390
4391 * dbusbind.c: Accept UNIX domain sockets as bus address.
4392 (Fdbus_close_bus): New function.
4393 (Vdbus_registered_buses): New variable.
4394 (xd_initialize): Implement string as bus address.
4395 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
4396 (Fdbus_get_unique_name, Fdbus_call_method)
4397 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4398 (Fdbus_method_error_internal, Fdbus_send_signal)
4399 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
4400 check. This is done in xd_initialize_bus. Adapt doc string, if
4401 necessary.
4402 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
4403 Vdbus_registered_buses.
4404 (Vdbus_registered_objects_table): Create hash.
4405
7133b7ee
JL
44062010-08-22 Juri Linkov <juri@jurta.org>
4407
4408 * keyboard.c (Fexecute_extended_command): Move reading a command name
4409 with `completing-read' to a new Elisp function `read-extended-command'.
4410 Call it to read a command to `function' (bug#5364, bug#5214).
4411
198a7a97
CY
44122010-08-22 Chong Yidong <cyd@stupidchicken.com>
4413
4414 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
4415
b0126eac 44162010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
4417
4418 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
4419 instead of SAFE_ALLOCA.
4420
b0126eac 44212010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
4422
4423 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
4424 (Bug#6214).
4425
b0126eac 44262010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
4427
4428 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
4429
b0126eac
CY
44302010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4431
4432 * doc.c (Fsnarf_documentation): Initialize skip_file before
4433 build-files test.
4434
692f3ddc 44352010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 4436
692f3ddc
JB
4437 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
4438 New definitions.
b0126eac
CY
4439 (HAVE_TERMIO): Remove.
4440
5f2f0bc1
EZ
44412010-08-22 Eli Zaretskii <eliz@gnu.org>
4442
b613941b
EZ
4443 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4444
a583bbef
EZ
4445 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
4446 for w32.
4447
4448 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
4449 it's done in nt/config.nt.
4450
4451 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
4452
5f2f0bc1
EZ
4453 * unexcoff.c (report_error, make_hdr, write_segment)
4454 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
4455 Convert argument lists and prototypes to ANSI C.
4456 (make_hdr, write_segment): Remove unused variables.
4457 (unexec): Remove commented-out line. Initialize `new' to shut up
4458 compiler warnings.
4459
a7ebc409
DN
44602010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
4461
4462 Simplify termio code.
4463 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
4464 HAVE_TERMIO code is obsolete.
4465 Replace HAVE_TERMIOS conditionals with !DOS_NT.
4466 * systty.h: Do not define HAVE_TCATTR.
4467 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
4468 Do not define EMACS_HAVE_TTY_PGRP. Only define
4469 EMACS_GET_TTY_PGRP for !DOS_NT.
4470 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
4471 sys/ioctl.h and termios.h, systty.h does it.
4472 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
4473 (init_baud_rate): Remove HAVE_TERMIO code.
4474 (child_setup_tty): Remove HAVE_TERMIO code.
4475 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
4476 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
4477 (new_ltchars, new_tchars): Remove, unused.
4478 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
4479 code. Remove special casing for __mips__, it was a no-op.
4480 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
4481 (init_sys_modes): Remove HPUX special case.
4482 * process.c: Include stdlib.h unconditionally. Do not include
4483 fcntl.h, systty.h does it. Remove conditional code for
4484 HAVE_SERIAL, it is always true.
4485 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
4486 always true when SIGNALS_VIA_CHARACTERS is true.
4487 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
4488 !WINDOWSNT means HAVE_TERMIOS.
4489 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
4490 conditional, which is true for all HAVE_TERMIOS systems.
4491 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
4492 instead of HAVE_TERMIOS.
4493 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
4494 EMACS_HAVE_TTY_PGRP.
4495 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
4496 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
4497 anyway.
4498
914f049b 44992010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
4500
4501 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
4502 mirroring pixel positions.
4503
d931da8c
DN
45042010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
4505
b5c76d0c
DN
4506 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
4507 write only.
4508 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
4509 malloc_sbrk_used, nothing uses them.
4510
74815588
DN
4511 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
4512 defined, unconditionally defined in lisp.h.
4513
f5817d1c
DN
4514 * term.c: Do not include <termios.h>, systty.h does it.
4515
d931da8c
DN
4516 * s/unixware.h (HAVE_TCATTR):
4517 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
4518 systty.h defines it when HAVE_TERMIOS is defined.
4519
ff2de6d2 45202010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 4521
b43c883c 4522 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 4523 terminals: add one-character offset for R2L lines.
b43c883c 4524
491a1546
EZ
4525 * emacs.c <emacs_version>: Add a comment regarding
4526 msdos/mainmake.v2's dependency on the syntax of this declaration.
4527
2396cbba
EZ
45282010-08-20 Eli Zaretskii <eliz@gnu.org>
4529
4530 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
4531 position for R2L lines by mirroring the pixel position wrt the
4532 text are box. Improve commentary.
4533
7df6150a
AS
45342010-08-20 Andreas Schwab <schwab@linux-m68k.org>
4535
4536 * image.c (imagemagick_clear_image): Remove debugging output.
4537
a2e5caf7
SM
45382010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4539
4540 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
4541 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
4542 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
4543 self-insert-face.
4544 (syms_of_cmds): Initialize the new vars.
4545
20d60baf
JR
45462010-08-19 Jason Rumney <jasonr@gnu.org>
4547
cc477da7
JR
4548 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4549
20d60baf
JR
4550 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4551
2c0ac867
J
45522010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4553
4554 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4555
93352106
EZ
45562010-08-18 Eli Zaretskii <eliz@gnu.org>
4557
4558 * xterm.c (x_draw_bar_cursor):
4559 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4560 R2L, draw the bar cursor on its right rather than on its left.
4561
c785836d
SM
45622010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4563
0193499f
SM
4564 * eval.c (Fdefmacro): Only obey one declaration.
4565
c785836d
SM
4566 * casefiddle.c (casify_region): Setup gl_state.
4567
9cb728a5
J
45682010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4569
4570 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4571
e1e18511
J
45722010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4573
1d77b63e 4574 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 4575
64cb6c78
J
45762010-08-18 David De La Harpe Golden <david@harpegolden.net>
4577
4578 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4579 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4580 QPRIMARY => NXPrimaryPboard.
4581 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4582 NXPrimaryPboard => QPRIMARY.
4583 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4584 NXSecondaryPboard = SecondarySelection.
4585 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4586
0c9b8993
GM
45872010-08-18 Joakim Verona <joakim@verona.se>
4588
4589 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4590 defined:
4591 (imagemagick_image_p): New function to test for ImageMagic image.
4592 (imagemagick_load): New function to load ImageMagick image.
4593 (imagemagick_load_image): New function, helper for imagemagick_load.
4594 (imagemagick-types): New function.
4595 (Qimagemagick): New Lisp_object.
4596 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 4597
c3554f68
SM
45982010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4599
4600 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4601 is a string.
4602
1ff2e434
J
46032010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4604
4605 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4606 x_set_tool_bar_position handler.
4607
0cc56427
EZ
46082010-08-17 Eli Zaretskii <eliz@gnu.org>
4609
4610 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4611 x_set_tool_bar_position handler, needed to support changes from
4612 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4613
e45a249b
JD
46142010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4615
2f8f196d 4616 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 4617 declaration (Bug#6863).
573d150b 4618 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 4619
e45a249b
JD
4620 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4621
4622 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4623
7c23dd44
CY
46242010-08-16 Chong Yidong <cyd@stupidchicken.com>
4625
4626 * keyboard.c (command_loop_1): Avoid setting selection twice,
4627 since it's done in deactivate-mark as well.
4628 (Vselect_active_regions): Change default to t. Replace `lazy'
4629 with non-default value `only', meaning only set PRIMARY for
4630 temporarily active regions.
4631
4632 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4633 select-active-regions.
4634
0005830c
J
46352010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4636
4637 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4638 isn't a string.
4639
603dfc72
AS
46402010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4641
4642 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4643
c25ce9d0
J
46442010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4645
c3554f68
SM
4646 * keyboard.c (parse_tool_bar_item): malloc buf.
4647 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4648 new_lbl (Bug#6855).
c25ce9d0 4649
5872c762
EZ
46502010-08-14 Eli Zaretskii <eliz@gnu.org>
4651
b236615c
EZ
4652 * xterm.c (x_draw_stretch_glyph_string):
4653 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4654 the cursor on the right edge of the stretch glyph.
4655
c3554f68
SM
4656 * xdisp.c (window_box_right_offset, window_box_right):
4657 Fix commentary.
b236615c 4658
5872c762
EZ
4659 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4660 direction when point is inside a run of whitespace characters.
4661
4662 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4663
e66f9a1b
JR
46642010-08-14 Jason Rumney <jasonr@gnu.org>
4665
4666 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4667
79d6f59e
CY
46682010-08-14 Chong Yidong <cyd@stupidchicken.com>
4669
4670 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4671
1c9b4129
JR
46722010-08-13 Jason Rumney <jasonr@gnu.org>
4673
4674 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4675 (MessageBoxW_Proc): New function typedef.
4676 (unicode-message-box): New function pointer.
2f8f196d 4677 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 4678
2b4e6277
J
46792010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4680
4681 * frame.h (Qtool_bar_position): Declare.
4682
4683 * xfns.c (Fx_create_frame): Call x_default_parameter for
4684 Qtool_bar_position.
4685
94c97d85
EZ
46862010-08-13 Eli Zaretskii <eliz@gnu.org>
4687
8ee81892
EZ
4688 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4689 (report_error, report_error_1): Ditto.
4690 (write_segment): Remove "#if 0" unused code.
4691 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4692 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4693 (start_of_text): Remove unused function (was used only if NO_REMAP
4694 was NOT defined).
4695
891ef8f7
EZ
4696 * msdos.c (IT_set_face): Fix format string to match argument
4697 types.
4698 (IT_write_glyphs, IT_note_mode_line_highlight)
4699 (IT_set_frame_parameters): Remove unused variables.
4700 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4701 (IT_set_terminal_modes): Disambiguate expression in if clause.
4702 (Fmsdos_remember_default_colors): Return Qnil.
4703 (IT_set_frame_parameters): Add parens to disambiguate boolean
4704 expression for logging the cursor type to termscript.
4705 (keyboard_layout_list, keypad_translate_map)
4706 (grey_key_translate_map): Add braces in inner initializers.
4707 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4708 (dos_rawgetc): Remove unused label.
4709 (XMenuActivate): Add braces to remove ambiguous `else'.
4710 (dos_ttraw): Always return a value.
4711 (spawnve): Declare.
4712 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4713
4714 * dosfns.h (x_set_title): Declare.
4715
4716 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4717 Remove unused variables.
4718
4719 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4720 variables.
4721 (init_dosfns): Declare get_lim_data.
4722 (system_process_attributes): Declare Fget_internal_run_time.
4723
38e41e0e
EZ
4724 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4725 list to be consistent with menu.h.
4726
94c97d85
EZ
4727 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4728 warnings due to mixing of "char *" and "const char *".
4729
c5683ceb
SM
47302010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4731
4732 Introduce a new comment style "c" flag.
4733 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4734 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4735 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4736 (syntax_prefix_flag_p): New function.
4737 (Fstring_to_syntax): Understand new "c" flag.
4738 (Finternal_describe_syntax_value): Recognize new flag; use the
4739 SYNTAX_FLAGS_* macros.
4740 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4741 comment style to accomodate the new styles.
4742 (back_comment, forw_comment, Fforward_comment, scan_lists)
4743 (scan_sexps_forward): Update code to obey the new comment style flag.
4744
4745 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4746
4747 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4748
7aee76f4
J
47492010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4750
3a46642b
J
4751 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4752 first.
94dff98f 4753 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4754
4755 * gtkutil.h (xg_check_special_colors): Declare.
4756
4757 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4758 (xg_create_frame_widgets): Connect theme name changes to
4759 style_changed_cb.
4760
42ca4633
J
4761 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4762 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4763 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4764 string literal. file is const char*.
42ca4633
J
4765
4766 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4767 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4768 props. Free them at the end.
4769
4770 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4771
c5683ceb
SM
4772 * xrdb.c (get_system_app): Make path const and use char *p for
4773 non-const char.
42ca4633
J
4774
4775 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4776 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4777 char *.
4778 (button_names): Is const char *.
4779 (xdialog_show): error_name and pane_string is const.
4780
4781 * process.h (synch_process_death): Is const char*.
4782
4783 * w32menu.c (w32_menu_show):
4784 * nsmenu.m (ns_menu_show): error parameter is const char **.
4785
4786 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4787 is const char **.
4788
4789 * menu.c (Fx_popup_menu): error_name is const.
4790
4791 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4792 with unsigned char and XtPointer with void *.
4793
4794 * gtkutil.h: Replace widget_value with struct _widget_value.
4795 (enum button_type, struct _widget_value): Remove and use the one from
4796 keyboard.h.
4797
4798 * gtkutil.c (get_utf8_string): Always return an allocated string.
4799 Parameter is const.
4800 (create_dialog, xg_create_one_menuitem, create_menus)
4801 (xg_item_label_same_p, xg_update_menu_item): Free result from
4802 get_utf8_string.
4803 (xg_separator_p, xg_item_label_same_p): label is const.
4804
4805 * font.h (font_open_by_name): Make name const.
4806
4807 * font.c (font_open_by_name): Make name const.
4808
4809 * floatfns.c (matherr): Use a const char* variable for x->name.
4810
4811 * emacs.c (main): Pass char[] to putenv instead of literal.
4812
4813 * callproc.c (synch_process_death): Make const.
4814 (Fcall_process): Make signame const.
4815
9c5bd55a
J
4816 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4817 (addDisplayItemWithImage): Use const char*.
4818
4819 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4820 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4821
4822 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4823
4824 * keyboard.h (_widget_value): name, value and key are const char*.
4825
7aee76f4
J
4826 * unexmacosx.c (unexec_error): Use const char *.
4827
09d93395
DN
48282010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4829
4830 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4831 (font_parse_name, font_open_by_name):
09d93395 4832 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4833 (font_parse_name, font_open_by_name): Remove const.
09d93395 4834
671d409f
AS
48352010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4836
4837 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4838 definition.
4839
4840 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4841 * m/amdx86-64.h: Likewise.
4842 * m/arm.h: Likewise.
4843 * m/hp800.h: Likewise.
4844 * m/ia64.h: Likewise.
4845 * m/ibmrs6000.h: Likewise.
4846 * m/ibms390.h: Likewise.
4847 * m/intel386.h: Likewise.
4848 * m/iris4d.h: Likewise.
4849 * m/m68k.h: Likewise.
4850 * m/macppc.h: Likewise.
4851 * m/mips.h: Likewise.
4852 * m/sh3.h: Likewise.
4853 * m/sparc.h: Likewise.
4854 * m/template.h: Likewise.
4855 * m/vax.h: Likewise.
4856 * m/xtensa.h: Likewise.
4857 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4858 WORDS_BIG_ENDIAN.
4859 * lisp.h: Likewise.
4860 * md5.c: Likewise.
4861 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4862
8ea90aa3
DN
48632010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4864
4865 Use const char* instead of char*.
4866 Reduce the number of warnings with -Wwrite-strings.
4867 * xrdb.c (get_environ_db, get_system_name):
4868 * unexelf.c (find_section):
4869 * term.c (string_cost, string_cost_one_line, per_line_cost)
4870 (get_named_tty, init_tty):
4871 * sysdep.c (sys_subshell):
4872 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4873 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4874 * search.c (Freplace_match):
4875 * process.c (Fmake_network_process, send_process, init_process):
4876 * lread.c (Fload, init_lread):
4877 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4878 * keyboard.c (parse_tool_bar_item, struct event_head):
4879 * gtkutil.h (xg_get_font_name):
4880 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4881 (make_widget_for_menu_item, make_menu_item, create_menus)
4882 (xg_make_tool_item):
4883 * font.c (parse_matrix, font_parse_name):
4884 * floatfns.c (rounding_driver, float_error_fn_name):
4885 * filelock.c (get_boot_time_1, lock_file_1):
4886 * fileio.c (barf_or_query_if_file_exists, check_writable):
4887 * editfns.c (get_system_name, get_operating_system_release)
4888 (Fencode_time, Fset_time_zone_rule):
4889 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4890 * buffer.c (defvar_per_buffer): Use const.
4891
7815fe19 48922010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4893
692f3ddc 4894 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4895 (struct charset_sort_data): New struct.
4896 (charset_compare): New function.
692f3ddc 4897 (Fsort_charsets): New function.
7a84eee5
KH
4898 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4899
4900 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4901 number in CTEXT extended segment.
4902
7815fe19 49032010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4904
4905 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4906 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4907
7815fe19 49082010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4909
4910 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4911 (Fhash_table_size): Fix typos in docstrings.
4912 (Fmake_hash_table): Doc fix.
4913
7815fe19 49142010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4915
4916 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4917 Doc fix (bug#5625).
4918
7815fe19 49192010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4920
4921 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4922 the MSDOS definition.
4923
1b6d8cf0
DN
49242010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4925
675e2c69
DN
4926 Use const char* instead of char*.
4927 * xterm.c (x_create_toolkit_scroll_bar):
4928 * xfont.c (xfont_list_pattern):
4929 * xfns.c (x_default_scroll_bar_color_parameter)
4930 (xic_create_fontsetname, x_default_font_parameter)
4931 (x_screen_planes):
4932 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4933 (store_mode_line_string, decode_mode_spec, display_string):
4934 * menu.c (digest_single_submenu):
4935 * keymap.h (initial_define_key, initial_define_lispy_key):
4936 * keymap.c (initial_define_key, initial_define_lispy_key):
4937 * image.c (image_error, image_keyword):
4938 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4939 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4940 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4941 (ftfont_list, ftfont_match):
4942 * frame.c (frame_parm_table):
4943 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4944 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4945 (font_add_log, font_deferred_log):
4946 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4947 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4948 (font_add_log, font_deferred_log):
4949 * emacs.c (argmatch):
4950 * dispextern.h (struct it):
4951 * coding.c (ENCODE_DESIGNATION):
4952 * charset.c (define_charset_internal): Use const.
4953
25717ca1
DN
4954 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4955
c5683ceb
SM
4956 * xrdb.c: Remove include guard.
4957 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4958 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4959 realloc->xrealloc instead of using #defines.
4960
efb41e21
EZ
49612010-08-08 Eli Zaretskii <eliz@gnu.org>
4962
cd21226d 4963 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4964 * editfns.c (Fline_beginning_position, Fline_end_position):
4965 State in the doc strings that start and end of line are in the
4966 logical order.
cd21226d 4967
efb41e21
EZ
4968 * xdisp.c (display_line): Move the handling of overlay arrow after
4969 the call to find_row_edges. (Bug#6699)
4970
746812d9
CY
49712010-08-07 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * keyboard.c (command_loop_1):
4974 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4975
9852377f
CY
49762010-08-07 Chong Yidong <cyd@stupidchicken.com>
4977
4978 * insdel.c (prepare_to_modify_buffer): Save active region text to
4979 Vsaved_region_selection.
4980
4981 * xselect.c (QPRIMARY): Move to keyboard.c.
4982
4983 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4984 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4985 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4986
0e9c8657
JB
49872010-08-07 Juanma Barranquero <lekktu@gmail.com>
4988
4989 * alloc.c (lisp_malloc):
4990 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4991 * charset.h (emacs_mule_charset):
4992 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4993 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4994 (bitch_at_user):
4995 * lisp.h (Fcheck_coding_system, Fget_text_property)
4996 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4997 Remove duplicate declarations.
4998
648801d1
DN
49992010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5000
32bc6709
DN
5001 * process.c: Simplify include logic.
5002
3ef1d108
DN
5003 * keyboard.h (quit_char): Add declaration.
5004 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5005 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5006 Add declarations.
3ef1d108
DN
5007 * sysdep.c:
5008 * w32.c: Remove the above declarations.
5009
97ec208f
DN
5010 Remove extern declarations in .c files, .h files have them.
5011 * xterm.c:
5012 * xdisp.c:
97ec208f
DN
5013 * msdos.c:
5014 * image.c:
5015 * gtkutil.c:
5016 * fileio.c:
5017 * eval.c: Remove declarations.
5018
94eed851
DN
5019 * frame.c (frame_params): Make const.
5020
36e053eb
DN
5021 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5022
0e843971
DN
5023 * emacs.c (emacs_copyright, emacs_version): Make static.
5024 (Vinitial_window_system, Vauto_save_list_file_name)
5025 (Vinhibit_redisplay): Remove declarations.
5026 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5027 for AIX.
5028
648801d1
DN
5029 Use const for some arrays and functions.
5030 * xterm.h (xg_set_icon_from_xpm_data):
5031 * xfns.c (xg_set_icon_from_xpm_data):
5032 * term.c (fkeys):
5033 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5034 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5035 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5036 (frame.c frame_parms):
5037 * emacs-icon.h (gnu_xpm_bits):
5038 * callint.c (callint_argfuns): Use const.
5039
8646d999
J
50402010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5041
5042 * sysdep.c: Move include term.h last of includes (Bug#6812).
5043
cb4545ad
EZ
50442010-08-06 Eli Zaretskii <eliz@gnu.org>
5045
5046 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5047
5048 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5049
5050 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5051
da7e2be6
JB
50522010-08-06 Juanma Barranquero <lekktu@gmail.com>
5053
5054 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5055
3d608a86
J
50562010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5057
7908fb60
J
5058 * xterm.h (x_get_focus_frame): Declare.
5059
5060 * keyboard.h (poll_for_input_1): Unconditionally declare.
5061
4094bf36
J
5062 * nsterm.h (x_set_menu_bar_lines): Declare.
5063
5064 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5065
3d608a86
J
5066 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5067
5068 * window.c: Include menu.h.
5069
5070 * unexmacosx.c (print_region_list, print_regions)
5071 (build_region_list, find_emacs_zone_regions)
5072 (unexec_regions_merge, read_load_commands, dump_it)
5073 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5074
5075 * term.c: Check HAVE_SYS_IOCTL_H.
5076
686b968e 5077 * sysdep.c: Check HAVE_TERM_H.
3d608a86 5078
686b968e 5079 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
5080
5081 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5082 (ns_ring_bell, ns_defined_color, hide_hourglass)
5083 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5084 Convert to ANSI C prototypes.
5085 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5086 before code.
5087
5088 * nsterm.h : Include sysselect.h.
5089 (x_sync, x_get_focus_frame, x_set_mouse_position)
5090 (x_set_mouse_pixel_position, x_make_frame_visible)
5091 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5092 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5093 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5094 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 5095 Declare.
3d608a86
J
5096
5097 * nsmenu.m (popup_activated, name_is_separator)
5098 (syms_of_nsmenu): Convert to ANSI C prototypes.
5099 (runMenuAt): Prototypes and move declarations before code.
5100
5101 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5102
5103 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5104 prototypes.
5105
5106 * nsfns.m (have_menus_p, ns_display_info_for_name)
5107 (x_set_cursor_type, ns_appkit_version_str)
5108 (ns_appkit_version_int, ns_do_applescript)
5109 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5110 (syms_of_nsfns): Convert to ANSI C prototypes.
5111
5112 * menu.h (x_set_menu_bar_line): Declare.
5113 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5114
5115 * lisp.h (fmod_float): Declare.
5116
5117 * image.c (xpm_scan, xpm_make_color_table_v)
5118 (xpm_put_color_table_v, xpm_get_color_table_v)
5119 (xpm_make_color_table_h, xpm_put_color_table_h)
5120 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5121 (xpm_load): Convert to ANSI C prototypes.
5122
5123 * emacs.c: Include nsterm.h if HAVE_NS.
5124
5125 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5126
fce70521
DN
51272010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5128
5129 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5130 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5131 (socket_options): Use const char* for name.
5132
a11889ab
JB
51332010-08-06 Juanma Barranquero <lekktu@gmail.com>
5134
5135 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5136
5137 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5138 Don't declare xmalloc_widget_value and digest_single_submenu.
5139
5140 * w32font.c (Qlatin): Remove declaration.
5141
5142 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5143
c95b508f 5144 * dired.c (compile_pattern): Restore declaration.
a11889ab 5145
6254cdda
DN
51462010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5147
04bab72c
DN
5148 Remove extern declarations in .c files, .h files have them.
5149 * data.c:
5150 * dired.c:
5151 * editfns.c:
5152 * filelock.c:
5153 * fns.c:
5154 * font.c:
5155 * fontset.c:
5156 * frame.c:
5157 * fringe.c:
5158 * ftfont.c:
5159 * gtkutil.c:
5160 * indent.c:
5161 * keyboard.c:
5162 * keymap.c:
5163 * lread.c:
5164 * menu.c:
5165 * print.c:
5166 * search.c:
5167 * sound.c:
5168 * window.c:
5169 * xdisp.c:
5170 * xfaces.c:
5171 * xfns.c:
5172 * xfont.c:
5173 * xftfont.c:
5174 * xmenu.c:
5175 * xterm.c: Remove declarations.
5176
dff94ed5
DN
5177 Cleanup syssignal.h.
5178 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5179 (main_thread): Move down to remove #ifdef.
5180 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5181 Remove conditional definition following unconditional ones.
5182
99f3388e
DN
5183 * lisp.h: Remove HAVE_SHM code, unused.
5184 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5185 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5186 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5187 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5188 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5189 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5190 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5191 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5192 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5193 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5194 (Qwindow_scroll_functions, Vafter_load_alist)
5195 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5196 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5197 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5198 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5199 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5200 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5201 (initial_argv, last_nonmenu_event, load_in_progress)
5202 (noninteractive_need_newline, scroll_margin): Add declarations.
5203
bba3e508
SM
5204 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5205 Remove declarations, menu.h has them.
99f3388e
DN
5206 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5207 (Vinput_method_function, Qinput_method_function)
5208 (Qevent_symbol_element_mask, last_event_timestamp):
5209 * dispextern.h (Voverflow_newline_into_fringe):
5210 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5211 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5212 (syms_of_w32font, syms_of_nsfont):
5213 * fontset.h (find_font_encoding, Qlatin):
5214 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5215 (Vtool_bar_mode, set_frame_menubar):
5216 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5217 * xterm.h (Qx_gtk_map_stock):
5218 * keymap.h (meta_prefix_char): Add declarations.
5219
9f5dd6f2
DN
5220 * term.c: Remove dead code.
5221
6254cdda
DN
5222 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5223 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5224 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5225 which is what was there before BSD_PGRPS was removed.
5226
29cf3e20
EZ
52272010-08-05 Eli Zaretskii <eliz@gnu.org>
5228
5229 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5230
5231 * unexcoff.c: Renamed from unexec.c.
5232
aaa0a19a
SM
52332010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5234
5235 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5236
8d1d9587
JB
52372010-08-03 Johan Bockgård <bojohan@gnu.org>
5238
5239 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5240 (Bug#6744)
8d1d9587 5241
9a747ba6
JD
52422010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5243
4d464ae4
JD
5244 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5245 to TRUE if depth of screen is < 16.
5246
ac01763e
JD
5247 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5248 USE_GTK_TOOLTIP.
e0d62a9b
JB
5249 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5250 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5251 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5252 USE_GTK_TOOLTIP.
5253 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5254
5255 * xterm.h (USE_GTK_TOOLTIP): New define.
5256 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5257
9a747ba6
JD
5258 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5259 to Control-D (Bug#6771).
5260
7b0815ba
JB
52612010-08-02 Juanma Barranquero <lekktu@gmail.com>
5262
5263 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5264 Wording by Drew Adams <drew.adams@oracle.com>.
5265
aa1859f5
J
52662010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5267
5268 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5269 ttip_lbl.
5270
5271 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5272 calling gtk_widget_queue_draw.
5273 (x_free_frame_resources): Call xg_free_frame_widgets.
5274
5275 * xfns.c (x_gtk_use_system_tooltips): New variable.
5276 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5277 new gtkutil tooltip functions to show the tooltip.
5278 (Fx_hide_tip): Call xg_hide_tooltip.
5279 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5280
5281 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5282 (xg_show_tooltip, xg_hide_tooltip): Declare.
5283
5284 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
5285 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5286 New functions.
aa1859f5
J
5287 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5288 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5289 Remove code that is commented out.
5290
76417ef4
SM
52912010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5292
5293 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5294
16041401
CY
52952010-07-31 Chong Yidong <cyd@stupidchicken.com>
5296
5297 * xselect.c (x_own_selection): Use list4.
5298
2c09a58f
DN
52992010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5300
5301 * buffer.c (Qwindow): Do not define, already defined in data.c.
5302 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5303
59df9fdd 53042010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 5305
59df9fdd
JB
5306 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5307 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5308 * config.in: Undef HAVE_DIRENT_H.
1c97e857 5309 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 5310 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 5311
1b231651
DN
53122010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5313
5314 Rename s/usg5-4.h -> s/usg5-4-common.h.
5315 * s/usg5-4.h: Rename file to ...
5316 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5317 * s/unixware.h:
5318 * s/sol2-6.h:
5319 * s/irix6-5.h: Update includes accordingly.
5320
bfeabdc3
JD
53212010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5322
2ebf1083
J
5323 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5324
bfeabdc3 5325 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
5326 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5327 Remove toolbar_height.
5328 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
5329 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5330 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5331 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5332
5333 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5334
5335 * xfns.c (x_set_tool_bar_position): New function.
5336 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5337 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 5338 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
5339
5340 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5341 and FRAME_TOOLBAR_LEFT_WIDTH.
5342
5343 * gtkutil.h (xg_change_toolbar_position): Declare.
5344
5345 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5346 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5347 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5348 (xg_create_frame_widgets): Create a hobox for placing widgets
5349 vertically. Use gtk_box_pack_start.
ef1b0ba7 5350 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
5351 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5352 (xg_update_frame_menubar, free_frame_menubar): Change to
5353 xg_height_or_width_changed.
5354 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5355 size correctly. Remove hardcoded 4, instead use handlebox size -
5356 toolbar size.
5357 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 5358 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
5359 (xg_pack_tool_bar): POS is a new parameter.
5360 Set orientation of tool bar based on pos.
5361 Only make handlebox_widget if NULL.
5362 Check if tool bar goes to vbox or hbox depending on pos.
5363 (xg_update_tool_bar_sizes): New function.
686b968e 5364 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
5365 height, call xg_update_tool_bar_sizes instead.
5366 (free_frame_tool_bar): Remove from hbox or vbox depending on
5367 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5368 (xg_change_toolbar_position): New function.
5369
5370 * frame.h (struct frame): Add tool_bar_position.
5371 (Qbottom): Declare.
5372
5373 * frame.c (Qtool_bar_position): New variable.
5374 (make_frame): Set tool_bar_position to Qtop.
5375 (frame_parms): Add tool-bar-position.
5376 (x_report_frame_params): Store tool_bar_position.
5377 (x_set_fringe_width): Reset wm size hint after fringe changes.
5378
26469a38
DN
53792010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5380
5381 Make lisp_time_argument declaration work on all systems.
5382 * lisp.h (lisp_time_argument): Move declaration ...
5383 * systime.h (lisp_time_argument): ... here
5384 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
5385
8848b728
JD
53862010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5387
5388 * vm-limit.c (POINTER): Add typedef for it.
5389 (start_of_data): Change return type from POINTER to char *.
5390
5391 * frame.h (Qtty_color_mode): Move declaration out of ifdef
5392 HAVE_WINDOW_SYSTEM.
5393
76fd1ee9
DN
53942010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5395
0441987e
DN
5396 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
5397 Remove reference to __osf__, unused.
5398
56a000c7
DN
5399 * mem-limits.h: Remove duplicated includes.
5400 (NULL): Remove definition, unused.
5401 (POINTER): Remove definition.
5402 (start_of_data): Use char* in prototype, as the function
5403 definition does.
5404
e6cba650
DN
5405 Remove extern declarations from .c files, and them to .h files.
5406 * keyboard.h (Qhelp_echo, waiting_for_input)
5407 (input_available_clear_time, ignore_mouse_drag_p)
5408 (Vdouble_click_time, real_this_command, Vthis_original_command):
5409 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
5410 (Voverriding_local_map_menu_flag):
5411 * lisp.h (Qinteractive_form, use_file_dialog)
5412 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
5413 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
5414 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5415 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
5416 (Qfunction, debug_on_next_call, Qfield)
5417 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
5418 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
5419 (Qfile_directory_p, Qinsert_file_contents)
5420 (Qcompletion_ignore_case, Qcompletion_ignore_case)
5421 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
5422 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
5423 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
5424 (Qminibuffer_prompt)
5425 (Vtemporary_file_directory,char_ins_del_vector, Qface):
5426 * xterm.h (gray_bitmap_width, gray_bitmap_height)
5427 (gray_bitmap_bits, xic_create_fontsetname):
5428 * coding.h (Vtranslation_table_for_input): Add extern declarations.
5429
5430 * xsmfns.c (Vuser_login_name):
5431 * xrdb.c (Vdouble_click_time):
5432 * xfaces.c (xic_create_fontsetname):
5433 * w32select.c (waiting_for_input):
5434 * print.c (minibuffer_auto_raise):
5435 * msdos.c (Qhelp_echo):
5436 * macros.c (real_this_command):
5437 * keymap.c (Voverriding_local_map):
5438 * xterm.c (poll_for_input_1, gray_bitmap_width)
5439 (gray_bitmap_height, gray_bitmap_bits;
5440 * xmenu.c ( Voverriding_local_map)
5441 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
5442 (use_file_dialog, Xt_app_con):
5443 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
5444 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
5445 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
5446 (Qtool_bar_lines, ignore_mouse_drag_p):
5447 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
5448 (Qrear_nonsticky, nconc2):
5449 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
5450 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
5451 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
5452 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
5453 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
5454 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
5455 (gc_in_progress):
5456 * doc.c (Voverriding_local_map, Qremap):
5457 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
5458 (Vcompletion_regexp_list):
5459 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
5460 (Qcompletion_ignore_case):
5461 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
5462 (Vhistory_length, Vthis_original_command, real_this_command)
5463 (Qface, Qminibuffer_prompt, history_delete_duplicates):
5464 * image.c (Qrisky_local_variable):
5465 * fontset.c (QCname):
5466 * fns.c (minibuffer_auto_raise, QCname):
5467 * dispnew.c (char_ins_del_cost):
5468 * composite.c (font_fill_lglyph_metrics):
5469 * cmds.c (Qface, Vtranslation_table_for_input):
5470 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
5471 * ccl.c (charset_unicode):
5472 * callproc.c (Vtemporary_file_directory):
5473 * buffer.c (emacs_strerror): Remove extern declarations.
5474
5475 * data.c (Qwindow): Make non-static, used from other files too.
5476 * frame.c (validate_x_resource_name): Remove shadow definition for i.
5477
76fd1ee9
DN
5478 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
5479 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5480 * s/usg5-4.h (COFF):
5481 * s/template.h:
5482 * s/msdos.h (COFF, NO_REMAP):
5483 * s/ms-w32.h (NO_REMAP):
5484 * s/hpux10-20.h (NO_REMAP):
5485 * m/sparc.h (SEGMENT_MASK):
5486 * m/m68k.h (NO_REMAP):
5487 * m/intel386.h (SEGMENT_MASK):
5488 * m/arm.h (NO_REMAP):
5489 * m/alpha.h (COFF):
5490 * m/template.h: Remove references to unused defines.
5491
8a52f00a
JD
54922010-07-28 Jan Djärv <jan.h.d@swipnet.se>
5493
5494 * xsettings.c (Ftool_bar_get_system_style): Also check for
5495 Qtext_image_horiz.
5496
5497 * xdisp.c (Qtext_image_horiz): Define.
5498 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 5499 to documentation of tool-bar-style.
8a52f00a
JD
5500
5501 * lisp.h (Qtext_image_horiz): Declare.
5502
5503 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
5504 style text_image_horiz.
5505
89dc303e
DN
55062010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5507
60799703
DN
5508 * emacs.c (Fkill_emacs): Remove return statement.
5509
37254dc1
DN
5510 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
5511 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
5512 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
5513 Remove local extern declarations.
37254dc1 5514
71c7345a
DN
5515 * xmenu.c: Do not included lwlib.h, not needed.
5516
6ba577cb
DN
5517 * m/iris4d.h (XUINT, XSET): Remove, not needed.
5518
fdb183d6
DN
5519 * process.c: Move definitions earlier to minimize #ifdefs.
5520
5521 * xterm.h (x_get_customization_string, x_load_resources)
5522 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
5523 (x_check_errors, x_property_data_to_lisp, defined_color)
5524 (xic_set_xfontset, x_defined_color): Use const.
5525
5526 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
5527 (x_text_icon, x_check_errors, x_connection_closed): Use const.
5528
5529 * xselect.c (selection_data_to_lisp_data)
5530 (x_property_data_to_lisp):
5531 * xrdb.c (x_get_string_resource, file_p)
5532 (x_get_customization_string, magic_file_p, search_magic_path)
5533 (get_system_app, get_user_app, x_load_resources, x_get_resource)
5534 (x_get_string_resource): Use const.
5535
5536 * xfns.c: Include xlwmenu.h when USE_LUCID.
5537 (x_defined_color, xic_set_xfontset): Use const.
5538 (Fx_hide_tip): Remove local extern declaration.
5539
5540 * xfaces.c (Qmouse_face): Remove declaration.
5541 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 5542 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
5543
5544 * xdisp.c (do_mouse_tracking): Remove declaration.
5545 (add_to_log): Use const.
5546
5547 * minibuf.c (Qmouse_face): Remove declaration.
5548
5549 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5550
5551 * keyboard.h (do_mouse_tracking): Add declaration.
5552
5553 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5554 (QCdata, QCtype, Qcenter): Remove declarations.
5555
5556 * frame.c (x_get_resource_string, x_get_string_resource)
5557 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5558 (x_default_parameter): Use const.
5559
5560 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5561 (QCheight, QCsize, QCname): Remove declarations.
5562
5563 * emacs.c (main): Remove local extern declaration.
5564
5565 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5566 declarations.
5567
5568 * dispnew.c: Remove duplicate #include <unistd.h>.
5569 (update_window, update_frame_1, init_display): Remove local extern
5570 declarations.
5571
5572 * dispextern.h (add_to_log): Remove declaration.
5573 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5574 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5575
5576 * dired.c (scmp): Add const.
5577 (directory_files_internal): Remove local extern declaration.
5578
5579 * data.c (Finteractive_form): Use const.
5580
5581 * composite.c (syms_of_composite): Remove local extern declarations.
5582
5583 * charset.c (add_to_log): Remove declaration.
5584
5585 * character.c (strwidth, parse_str_to_multibyte): Add const.
5586
5587 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5588
5589 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5590
89dc303e 5591 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
5592 (Lisp_Subr): Make doc and intspec constant.
5593 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5594 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5595 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5596 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5597 (display_arg): Add declarations.
89dc303e 5598
0ed082fe 55992010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
5600
5601 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5602
0ed082fe
JB
5603 * window.c (Fwindow_height): Doc fix (bug#6518).
5604
56052010-07-27 Juanma Barranquero <lekktu@gmail.com>
5606
5607 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5608
ccaf0336
DN
56092010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5610
977105dc
DN
5611 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5612 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5613 functions.
5614
f5ada890
DN
5615 * frame.h (Qtty_color_mode): Add declaration.
5616
ccaf0336
DN
5617 * lisp.h (Ftop_level, Fexit_recursive_edit)
5618 (Fabort_recursive_edit): Mark as NO_RETURN.
5619
dfe3c90f
KH
56202010-07-26 Kenichi Handa <handa@m17n.org>
5621
5622 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5623 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5624
7d383292
JB
56252010-07-26 Juanma Barranquero <lekktu@gmail.com>
5626
5627 * lread.c (unreadpure, mapatoms_1): Make static.
5628
da31e629
JB
56292010-07-25 Juanma Barranquero <lekktu@gmail.com>
5630
5631 * terminfo.c (tparam): Fix prototype of tparm.
5632
7bfa6d77
AS
56332010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5634
dcc19aac
AS
5635 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5636 find start of text segment.
5637 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5638 is defined.
5639
7bfa6d77
AS
5640 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5641
63f9a672
KB
56422010-07-25 Ken Brown <kbrown@cornell.edu>
5643
5644 * vm-limit.c (check_memory_limits): Fix previous change;
5645 accidentally reverted an earlier change.
5646
24933075
KB
56472010-07-25 Ken Brown <kbrown@cornell.edu>
5648
5649 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5650 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5651
361358ea
JB
56522010-07-25 Juanma Barranquero <lekktu@gmail.com>
5653
5654 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5655 * dired.c (opendir, readdir): Fix prototypes.
5656 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5657 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5658 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5659 (telldir): Remove declaration.
5660 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5661 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5662 * syssignal.h (strsignal): Fix prototype.
5663 * term.c (tparam): Fix prototype.
5664 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5665 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5666 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5667 and __morecore.
5668 * w32gui.h (XParseGeometry): Fix prototype.
5669 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5670 * w32term.c (my_set_focus): Declare inside #if 0.
5671 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5672 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5673 (drain_message_queue, get_next_msg, post_msg, parse_button)
5674 (ClipboardSequence_Proc): Fix prototypes.
5675 (wait_for_sync): Remove declaration.
5676
630b9592
JB
56772010-07-24 Juanma Barranquero <lekktu@gmail.com>
5678
5679 * w32fns.c (w32_to_x_color): Remove, unused.
5680
6a0d6611
AS
56812010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5682
5683 * lisp.h: Remove leftover P_.
5684
4e8608ff
DN
56852010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5686
5687 * ecrt0.c, unexalpha.c: Remove files, unused.
5688
c8197983
AS
56892010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5690
5691 * cmds.c (internal_self_insert): Make static.
5692 * lisp.h (internal_self_insert): Remove declaration.
5693
97b372d7
JB
56942010-07-23 Juanma Barranquero <lekktu@gmail.com>
5695
33ac0414
JB
5696 * alloc.c (free_float):
5697 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5698 * frame.c (delete_frame_handler):
5699 * ralloc.c (reorder_bloc):
5700 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5701 Remove unused static functions.
5702
94da8397
JB
5703 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5704 it is called only from NS code.
5705
2e6c8532
JB
5706 * w32term.c (my_set_focus): #ifdef away; it is called only from
5707 "#ifdef 0" code.
5708
97b372d7
JB
5709 * w32fns.c (x_edge_detection):
5710 * xfaces.c (may_use_scalable_font_p):
5711 Remove obsolete static declarations.
5712
7c3320d8
JB
57132010-07-20 Juanma Barranquero <lekktu@gmail.com>
5714
5715 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5716 (emacs_blocked_realloc, uninterrupt_malloc):
5717 * fringe.c (w32_reset_fringes):
5718 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5719 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5720 * sound.c (be2hs, do_play_sound):
5721 * vm-limit.c (get_lim_data, ret_lim_data):
5722 * w32term.c (x_free_frame_resources):
5723 * xfaces.c (x_create_gc, x_free_gc):
5724 Convert definitions to standard C.
5725
d5273788
SM
57262010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5727
5728 * eval.c (Feval, Ffuncall): Use the new names.
5729
5730 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5731 (DEFUN): Add braces around the union initialisation and use ## to
5732 specify the right union alternative and avoid a cast.
5733
8d16a259
JB
57342010-07-18 Juanma Barranquero <lekktu@gmail.com>
5735
5736 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5737
3b8eff32
CY
57382010-07-17 Chong Yidong <cyd@stupidchicken.com>
5739
5740 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5741
499322ce
J
57422010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5743
5744 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5745 is related to the menu bar (Bug#6499).
a628ad9d 5746 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5747
f6003da5 57482010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5749
5750 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5751
5752 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5753
5754 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5755 i.e. don't put back ButtonRelease (Bug#6608).
5756
5757 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5758 instead of Window. Call xg_event_is_for_menubar when
5759 USE_GTK (Bug#6499).
5760
5761 * gtkutil.h (xg_event_is_for_menubar): Declare.
5762
5763 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5764
f6003da5 57652010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5766
5767 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5768 when it's the same as the old foreground. (Bug#6609)
5769
23243f29
J
57702010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5771
5772 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5773 widget is non-null (Bug#6645).
5774
2b23d2a6
AS
57752010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5776
01b564ff
AS
5777 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5778 Convert old-style definition.
5779
2b23d2a6
AS
5780 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5781 timestamp argument.
5782
c4affd2c
EZ
57832010-07-15 Eli Zaretskii <eliz@gnu.org>
5784
5785 * fringe.c (update_window_fringes): Restore mistakenly reverted
5786 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5787
cf28cebc
J
57882010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5789
5790 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5791 (SET_SAVED_KEY_EVENT): Remove (not used).
5792 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5793 remove size parameter.
5794 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5795 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5796 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5797 ButtonRelease.
6b2c4bd9
J
5798 (x_set_window_size_1): scroll_bar_actual_width is always
5799 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5800
5801 * xdisp.c (pending_menu_activation): Remove extern declaration.
5802 (prepare_menu_bars): Remove setting of pending_menu_activation.
5803
5804 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5805 (x_activate_menubar): Set popup_activated_flag for Xt also.
5806 Remove setting of pending_menu_activation.
cf28cebc
J
5807 (set_frame_menubar): Remove check of pending_menu_activation.
5808 Declare menubar_size before code. Correct spelling in comment.
5809
f6c1c771
KH
58102010-07-14 Kenichi Handa <handa@m17n.org>
5811
5812 * font.c (font_open_entity): Cancel previous change.
5813 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5814
20477505
EZ
58152010-07-13 Eli Zaretskii <eliz@gnu.org>
5816
77defa9a
EZ
5817 Remove subprocesses #ifdefs.
5818 * process.c <inhibit_sentinels>: Move to the common part.
5819 (Fwaiting_for_user_input_p): Move to the common part; return nil
5820 if async subprocesses aren't supported.
5821 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5822 MS-DOS. Remove "#ifdef subprocesses".
5823 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5824 (gettimeofday): Remove "#ifdef subprocesses".
5825 (wait_without_blocking): Remove function.
5826 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5827 Remove "#ifdef subprocesses".
5828 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5829 compiled on MS-DOS.
5830 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5831 wait_for_termination on MS-DOS.
5832 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5833 initialization of inhibit_sentinels.
5834 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5835 subprocesses" conditional.
5836 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5837 wait_for_termination, since `buffer' cannot be an integer when
5838 async subprocesses are not supported
5839 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5840 for ifdefing away the call to Fprocess_status.
5841
20477505
EZ
5842 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5843 away the entire body of the function.
5844
b3ffc17c
DN
58452010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5846
01faa934
DN
5847 Remove subprocesses #ifdefs from term.c.
5848 * process.c (add_keyboard_wait_descriptor)
5849 (delete_keyboard_wait_descriptor): Move to common section, do
5850 nothing when subprocesses is not defined.
a628ad9d
JB
5851 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5852 Remove subprocesses #ifdefs.
01faa934 5853
b3ffc17c
DN
5854 Convert maybe_fatal to standard C.
5855 * lisp.h (verror): Declare.
5856 * eval.c (verror): New function containing the code from ...
5857 (error): ... this. Call verror.
5858 * term.c (vfatal): New function containing the code from ...
5859 (fatal): ... this. Call vfatal.
5860 (maybe_fatal): Convert to standard C, use variable number of
5861 arguments. Declare as non-return.
5862 (init_tty): Fix maybe_fatal call.
5863
0521f580
DN
58642010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5865
5866 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5867 (_scroll_bar_note_movement): Convert definitions to standard C.
5868 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5869 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5870
ebd15611
DN
58712010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5872
5873 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5874 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5875 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5876 (xaw_jump_callback, xaw_scroll_callback)
5877 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5878 (x_wm_set_size_hint, x_activate_timeout_atimer):
5879 Convert definitions to standard C.
ebd15611
DN
5880 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5881 (popup_activate_callback, popup_deactivate_callback)
5882 (menu_highlight_callback, menubar_selection_callback)
5883 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5884 (free_frame_menubar, popup_selection_callback, as)
5885 (create_and_show_popup_menu, dialog_selection_callback)
5886 (create_and_show_dialog):
5887 * xfns.c (hack_wm_protocols, x_window):
5888 * xfaces.c (x_update_menu_appearance):
5889 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5890 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5891 (set_frame_size, update_wm_hints, setup_frame_gcs)
5892 (update_various_frame_slots, update_from_various_frame_slots)
5893 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5894 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5895 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5896
de06a2dd
AS
58972010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5898
a628ad9d 5899 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5900
fc549af9
EZ
59012010-07-12 Eli Zaretskii <eliz@gnu.org>
5902
5903 * process.c (setup_process_coding_systems): Move to the part
5904 shared by non-subprocesses systems, and make its body empty when
5905 subprocesses is not defined.
5906 (close_process_descs): Move to the part shared by non-subprocesses
5907 systems.
1408902e
EZ
5908 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5909 ANSI C.
fc549af9 5910
d5a3eaaf
AS
59112010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5912
5913 * editfns.c (transpose_markers): Convert old-style definition.
5914 * emacs.c (abort, shut_down_emacs, fixup_locale)
5915 (synchronize_system_time_locale)
5916 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5917 * floatfns.c (extract_float, matherr, init_floatfns)
5918 (syms_of_floatfns): Likewise.
5919 * fns.c (make_hash_table): Likewise.
5920 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5921 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5922 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5923 (ftfont_variation_glyphs): Likewise.
5924 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5925 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5926 * lread.c (read_filtered_event): Likewise.
5927 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5928 * process.c (wait_reading_process_output): Likewise.
5929 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5930 * search.c (search_buffer, boyer_moore): Likewise.
5931 * syntax.c (scan_sexps_forward): Likewise.
5932 * xdisp.c (try_scrolling): Likewise.
5933 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5934 (face_at_string_position): Likewise.
5935 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5936 * xselect.c (x_get_window_property, receive_incremental_selection)
5937 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5938 Likewise.
5939 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5940
6f704c76
DN
59412010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5942
ded80a25
DN
5943 * callproc.c (child_setup): Remove subprocesses conditional.
5944 Remove code dealing with SET_EMACS_PRIORITY, unused.
5945
49d937f4 5946 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5947 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5948
5949 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5950 (__do_global_dtors, __main): Use void in definition.
5951 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5952 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5953 the only users from ...
5954 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5955 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5956 (HAVE_VOLATILE): Remove, unused.
5957
6f704c76
DN
5958 Convert more function definitions to standard C.
5959 * xdisp.c (window_box_edges, handle_single_display_spec)
5960 (display_string): Convert definition to standard C.
5961 * scroll.c (do_direct_scrolling, scrolling_1):
5962 * dispnew.c (allocate_matrices_for_frame_redisplay)
5963 (mirrored_line_dance):
5964 * coding.c (code_convert_string):
5965 * charset.c (map_charset_chars):
5966 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5967 (Fregister_ccl_program, Fregister_code_conversion_map):
5968 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5969 (head_table): Make static and const.
5970
e6cfa7c3
AS
59712010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5972
5973 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5974 (PROFILING_LDFLAGS): Set from substitution.
5975 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5976 CFLAGS last.
5977
892dd565
KH
59782010-07-12 Kenichi Handa <handa@m17n.org>
5979
6f2cdcd1
KH
5980 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5981 (shortlisp): Likewise.
5982
892dd565
KH
5983 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5984
5985 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5986 of FONT_ENTITY_INDEX.
5987 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5988 property, get the property value dynamically.
5989 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5990 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5991 return value changed.
bba3e508 5992 (syms_of_font): Adjust for the above change.
892dd565 5993
ae96d47a
AS
59942010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5995
c8fc18ee
AS
5996 * blockinput.h: Remove obsolete comment.
5997
89887d67
AS
5998 * lisp.h: Include <stddef.h>.
5999 (OFFSETOF): Don't define.
6000 (VECSIZE): Use offsetof instead of OFFSETOF.
6001 (PSEUDOVECSIZE): Likewise.
6002 * process.c (conv_sockaddr_to_lisp): Likewise.
6003 * alloc.c: Don't include <stddef.h>.
6004 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6005
ae96d47a
AS
6006 * process.c: Remove obsolete comment.
6007
635c0aa1
CY
60082010-07-11 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6011
a64df650
AS
60122010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6013
8966b757
AS
6014 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6015 index, rindex.
6016 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6017 * editfns.c (Fuser_full_name, Fformat): Likewise.
6018 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6019 * fileio.c (Ffile_symlink_p): Likewise.
6020 * filelock.c (current_lock_owner): Likewise.
6021 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6022 * fontset.c (fontset_pattern_regexp): Likewise.
6023 * lread.c (read1): Likewise.
6024 * sysdep.c (init_system_name): Likewise.
6025 * xfns.c (select_visual): Likewise.
6026 * s/hpux10-20.h (index, rindex): Don't define.
6027 * s/ms-w32.h (index): Likewise.
6028 * s/usg5-4.h: Likewise.
6029
cf237e27
AS
6030 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6031
a8fe7202
AS
6032 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6033 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6034 (egetenv): Likewise.
6035 * doprnt.c (doprnt): Likewise.
6036 * editfns.c (set_time_zone_rule, format2): Likewise.
6037 * emacs.c (decode_env_path): Likewise.
6038 * eval.c (signal_error, error): Likewise.
6039 * insdel.c (replace_range_2): Likewise.
6040 * keyboard.c (cmd_error_internal): Likewise.
6041 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6042 * print.c (write_string, write_string_1, print_error_message):
6043 Likewise.
6044 * vm-limit.c (warn_function, memory_warnings): Likewise.
6045 * xdisp.c (message1, message1_nolog, message_with_string)
6046 (vmessage, message, message_nolog): Likewise.
6047 * emacs.c: Remove duplicate declaration.
6048 * keyboard.h: Likewise.
6049 * lisp.h: Update prototypes.
6050
bb8e180f
AS
6051 * eval.c: Fix indentation problem.
6052
83380e65
AS
6053 * keyboard.c: Include "process.h"
6054
a64df650
AS
6055 * eval.c: Remove obsolete noinline declaration.
6056 * fns.c: Likewise.
6057
6a8033e1
KR
60582010-07-11 Ken Raeburn <raeburn@raeburn.org>
6059
6060 * doprnt.c (doprnt): Take a va_list argument instead of count and
6061 pointer.
6062 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 6063 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
6064 changed to take a va_list argument.
6065 (message): New variadic wrapper.
6066 (message_nolog): Now a variadic function, calling vmessage.
6067 * lisp.h: Include stdarg.h for va_list.
6068 (doprnt, error, message, message_nolog): Decls updated.
6069
462aa963
EZ
60702010-07-11 Eli Zaretskii <eliz@gnu.org>
6071
6072 * process.c (syms_of_process) <delete-exited-processes>: Define
6073 even if !subprocesses.
6074 (delete_exited_processes): Ditto.
6075
6076 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6077 (delete_exited_processes): Don't define.
6078
48104462
CY
60792010-07-10 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * frame.c (make_frame): Initialize menu_bar_lines and
6082 tool_bar_lines members.
bba3e508
SM
6083 (make_initial_frame, make_terminal_frame):
6084 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
6085
6086 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6087
f388c88a
EZ
60882010-07-10 Eli Zaretskii <eliz@gnu.org>
6089
6090 * process.c: Reshuffle #include's. Condition some of the global
6091 and static variables on `subprocesses'.
6092 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6093 Leave only one implementation.
6094 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6095 (kill_buffer_processes, Flist_system_processes)
6096 (Fprocess_attributes, init_process, syms_of_process): Unify the
6097 implementations for with subprocesses and without them.
6098
723f5a07
J
60992010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6100
6101 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6102 correct size for Motif.
6103 (free_frame_menubar): Call x_set_window_size to update frame size.
6104
6105 * xfns.c (x_window): Set borderWidth to 0 for pane and
6106 EmacsFrame. Frame size calculation is wrong otherwise.
6107
2536a4b7
MA
61082010-07-09 Michael Albinus <michael.albinus@gmx.de>
6109
6110 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6111 allows to suppress errors when polling in Emacs' main loop.
6112 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6113 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6114 (Fdbus_method_error_internal, Fdbus_send_signal)
6115 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6116 (Fdbus_register_method): Use it. (Bug#6579)
6117
5842a27b
DN
61182010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6119
6120 * alloc.c: Convert DEFUNs to standard C.
6121 * buffer.c:
6122 * bytecode.c:
6123 * callint.c:
6124 * callproc.c:
6125 * casefiddle.c:
6126 * casetab.c:
6127 * category.c:
6128 * character.c:
6129 * charset.c:
6130 * chartab.c:
6131 * cmds.c:
6132 * coding.c:
6133 * composite.c:
6134 * data.c:
6135 * dbusbind.c:
6136 * dired.c:
6137 * dispnew.c:
6138 * doc.c:
6139 * dosfns.c:
6140 * editfns.c:
6141 * emacs.c:
6142 * eval.c:
6143 * fileio.c:
6144 * filelock.c:
6145 * floatfns.c:
6146 * fns.c:
6147 * font.c:
6148 * fontset.c:
6149 * frame.c:
6150 * fringe.c:
6151 * image.c:
6152 * indent.c:
6153 * insdel.c:
6154 * keyboard.c:
6155 * keymap.c:
6156 * lread.c:
6157 * macros.c:
6158 * marker.c:
6159 * menu.c:
6160 * minibuf.c:
6161 * msdos.c:
6162 * nsfns.m:
6163 * nsmenu.m:
6164 * nsselect.m:
6165 * print.c:
6166 * process.c:
6167 * search.c:
6168 * sound.c:
6169 * syntax.c:
6170 * term.c:
6171 * terminal.c:
6172 * textprop.c:
6173 * undo.c:
6174 * w16select.c:
6175 * w32console.c:
6176 * w32fns.c:
6177 * w32font.c:
6178 * w32menu.c:
6179 * w32proc.c:
6180 * w32select.c:
6181 * window.c:
6182 * xdisp.c:
6183 * xfaces.c:
6184 * xfns.c:
6185 * xmenu.c:
6186 * xselect.c:
6187 * xsettings.c:
6188 * xsmfns.c: Likewise.
6189
d568829b
EZ
61902010-07-08 Eli Zaretskii <eliz@gnu.org>
6191
6192 * process.c (kbd_is_on_hold, hold_keyboard_input)
6193 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6194
52214050
J
61952010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6196
6197 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6198 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6199 unless USE_LUCID.
6200
313d9eb2
DN
62012010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6202
a628ad9d
JB
6203 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6204 declaration.
d8825aa3 6205
295d0d8f
DN
6206 Clean up include guards.
6207 * tparam.c: Remove include guards for config.h, string.h and code
6208 that assumes #ifndef emacs.
6209 * termcap.c:
6210 * unexalpha.c:
6211 * sysdep.c:
6212 * filemode.c:
6213 * filelock.c:
6214 * bidi.c: Likewise.
6215
49d9e6b0
DN
6216 Remove prefix-args.c
6217 * prefix-args.c: Remove file.
6218 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6219 * Makefile.in (temacs${EXEEXT}): Remove references to
6220 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6221 (mostlyclean): Remove reference to prefix-args.
6222 (prefix-args): Remove.
6223
313d9eb2
DN
6224 Simplify cstart_of_data, start_of_code and related code.
6225 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6226 (start_of_data): Merge into start_of_data function.
6227 * sysdep.c (start_of_text): Remove. Move simplified versions of
6228 it in the only users: unexaix.c and unexec.c.
6229 (read_input_waiting): Remove local declaration of quit_char.
6230 (start, etext): Remove declarations.
6231 (start_of_data): Merge with the version in mem-limits.h and move
6232 to vm-limits.c.
6233 * vm-limit.c (start_of_data): Merged and simplified version of the
6234 code formerly in mem-limits.h and sysdep.c.
6235 * unexec.c (start): New declaration, moved from sysdep.c.
6236 (start_of_text): Simplified version of the code formerly in sysdep.c.
6237 * unexaix.c (start_of_text): Simplified version of the code
6238 formerly in sysdep.c.
6239 * m/alpha.h (HAVE_TEXT_START): Remove.
6240 (TEXT_START): Move ...
6241 * unexalpha.c (TEXT_START): ... here.
6242 * s/hpux10-20.h (TEXT_START): Remove.
6243 * s/darwin.h (TEXT_START):
6244 * m/mips.h (TEXT_START):
6245 * m/macppc.h (HAVE_TEXT_START):
6246 * m/m68k.h (TEXT_START):
6247 * m/iris4d.h (TEXT_START):
6248 * m/intel386.h (TEXT_START):
6249 * m/ibmrs6000.h (TEXT_START):
6250 * m/ia64.h (HAVE_TEXT_START):
6251 * s/msdos.h (TEXT_START): Likewise.
6252
72af86bd
AS
62532010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6254
6255 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6256 (overrun_check_free, xstrdup, allocate_string)
6257 (allocate_string_data, compact_small_strings, Fmake_string)
6258 (make_unibyte_string, make_multibyte_string)
6259 (make_string_from_bytes, make_specified_string, make_float)
6260 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6261 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6262 memcpy, memmove, memset, memcmp.
6263 * atimer.c (start_atimer, set_alarm): Likewise.
6264 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6265 (mmap_realloc, init_buffer_once): Likewise.
6266 * callint.c (Fcall_interactively): Likewise.
6267 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6268 (getenv_internal_1): Likewise.
6269 * casefiddle.c (casify_object): Likewise.
6270 * ccl.c (ccl_driver): Likewise.
6271 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6272 * charset.c (load_charset_map_from_file)
6273 (load_charset_map_from_file, load_charset_map_from_vector)
6274 (Fdefine_charset_internal): Likewise.
6275 * cm.c (Wcm_clear): Likewise.
6276 * coding.c (decode_eol, decode_coding_object)
6277 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6278 * data.c (Faset): Likewise.
6279 * dired.c (directory_files_internal, file_name_completion_stat):
6280 Likewise.
6281 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6282 (clear_glyph_row, copy_row_except_pointers)
6283 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6284 (save_current_matrix, restore_current_matrix)
6285 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6286 (mirror_line_dance, scrolling_window): Likewise.
6287 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6288 Likewise.
6289 * doprnt.c (doprnt): Likewise.
6290 * editfns.c (Fuser_full_name, make_buffer_string_both)
6291 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6292 * emacs.c (sort_args): Likewise.
6293 * eval.c (Fapply, Ffuncall): Likewise.
6294 * fileio.c (Ffile_name_directory, make_temp_name)
6295 (Fexpand_file_name, search_embedded_absfilename)
6296 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6297 (auto_save_error): Likewise.
6298 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6299 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6300 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6301 (Fmake_hash_table): Likewise.
6302 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6303 * ftfont.c (ftfont_text_extents): Likewise.
6304 * getloadavg.c (getloadavg): Likewise.
6305 * image.c (define_image_type, make_image, make_image_cache)
6306 (x_create_x_image_and_pixmap, xbm_image_p)
6307 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6308 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6309 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6310 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6311 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6312 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6313 Likewise.
6314 * indent.c (scan_for_column, compute_motion): Likewise.
6315 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6316 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6317 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6318 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6319 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6320 (store_user_signal_events, menu_bar_items, tool_bar_items)
6321 (process_tool_bar_item, append_tool_bar_item)
6322 (read_char_minibuf_menu_prompt, read_key_sequence)
6323 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6324 Likewise.
6325 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6326 Likewise.
6327 * lisp.h (STRING_COPYIN): Likewise.
6328 * lread.c (Fload, read1, oblookup): Likewise.
6329 * msdos.c (Frecent_doskeys): Likewise.
6330 * nsfns.m (Fx_create_frame): Likewise.
6331 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6332 Likewise.
6333 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6334 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6335 Likewise.
6336 * nsmenu.m (ns_update_menubar): Likewise.
6337 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6338 * print.c (print_unwind, printchar, strout, print_string)
6339 (print_error_message): Likewise.
6340 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6341 (Fmake_network_process, Fnetwork_interface_list)
6342 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6343 (init_process): Likewise.
6344 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6345 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6346 Likewise.
6347 * scroll.c (do_scrolling, do_direct_scrolling)
6348 (scrolling_max_lines_saved): Likewise.
6349 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6350 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6351 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6352 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6353 (emacs_set_tty): Likewise.
6354 * term.c (encode_terminal_code, calculate_costs)
6355 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6356 Likewise.
6357 * termcap.c (tgetst1, gobble_line): Likewise.
6358 * termhooks.h (EVENT_INIT): Likewise.
6359 * tparam.c (tparam1): Likewise.
6360 * unexalpha.c (unexec): Likewise.
6361 * unexec.c (write_segment): Likewise.
6362 * unexmacosx.c (unexec_write_zero): Likewise.
6363 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6364 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6365 * w32font.c (w32font_list_family, w32font_text_extents)
6366 (w32font_list_internal, w32font_match_internal)
6367 (w32font_open_internal, compute_metrics, Fx_select_font):
6368 Likewise.
6369 * w32menu.c (set_frame_menubar, add_menu_item)
6370 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6371 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6372 * w32uniscribe.c (uniscribe_list_family): Likewise.
6373 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6374 * window.c (make_window, replace_window, set_window_buffer)
6375 (Fsplit_window): Likewise.
6376 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
6377 (add_to_log, message3, x_consider_frame_title)
6378 (append_space_for_newline, extend_face_to_end_of_line)
6379 (decode_mode_spec_coding, init_glyph_string): Likewise.
6380 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
6381 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
6382 (face_attr_equal_p, make_realized_face, make_face_cache)
6383 (free_realized_faces, lookup_named_face, smaller_face)
6384 (face_with_height, lookup_derived_face)
6385 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
6386 (Finternal_set_font_selection_order, realize_default_face)
6387 (compute_char_face, face_at_buffer_position)
6388 (face_for_overlay_string, face_at_string_position, merge_faces):
6389 Likewise.
6390 * xfns.c (xic_create_fontsetname, Fx_create_frame)
6391 (Fx_window_property, x_create_tip_frame)
6392 (Fx_backspace_delete_keys_p): Likewise.
6393 * xfont.c (xfont_list, xfont_match, xfont_list_family)
6394 (xfont_text_extents): Likewise.
6395 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
6396 * xrdb.c (magic_file_p, x_get_resource): Likewise.
6397 * xselect.c (x_queue_event, x_get_window_property)
6398 (receive_incremental_selection): Likewise.
6399 * xsmfns.c (x_session_check_input): Likewise.
6400 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
6401 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
6402 Likewise.
6403 * character.h (BCOPY_SHORT): Removed.
6404 * config.in: Regenerate.
6405 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
6406 * emacs.c (main) [PROFILING]: Don't declare
6407 dump_opcode_frequencies.
6408 * lisp.h (safe_bcopy): Remove declaration.
6409 (memset) [!HAVE_MEMSET]: Declare.
6410 (memcpy) [!HAVE_MEMCPY]: Likewise.
6411 (memmove) [!HAVE_MEMMOVE]: Likewise.
6412 (memcmp) [!HAVE_MEMCMP]: Likewise.
6413 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
6414 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
6415 Don't define.
6416 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
6417 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
6418 (BCOPY_DOWNWARD_SAFE): Don't define.
6419 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
6420 (memcpy) [!HAVE_MEMCPY]: Define.
6421 (memmove) [!HAVE_MEMMOVE]: Define.
6422 (memcmp) [!HAVE_MEMCMP]: Define.
6423
cb768704
J
64242010-07-07 Jan Djärv <jan.h.d@swipnet.se>
6425
6426 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
6427 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6428 New functions.
cb768704
J
6429 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
6430 select on empty input mask.
6431 (init_process): Initialize kbd_is_on_hold to 0.
6432
6433 * process.h (hold_keyboard_input, unhold_keyboard_input)
6434 (kbd_on_hold_p): Declare.
6435
6436 * keyboard.c (input_available_signal): Declare.
6437 (kbd_buffer_nr_stored): New function.
6438 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
6439 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
6440 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
6441 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
6442 (tty_read_avail_input): If input is on hold, return.
6443 Don't read more that free slots in kbd_buffer (Bug#6571).
6444
3a8ce822
EZ
64452010-07-07 Eli Zaretskii <eliz@gnu.org>
6446
6447 * msdos.h:
6448 * msdos.c:
6449 * dosfns.c:
6450 * w16select.c: Convert function definitions to ANSI C.
6451
a628ad9d
JB
6452 * msdos.h (ctrl_break_func, install_ctrl_break_check):
6453 Remove unused prototypes.
3a8ce822 6454
cf84bb53
JB
64552010-07-07 Juanma Barranquero <lekktu@gmail.com>
6456
6457 * coding.c, sysdep.c: Convert some more functions to standard C.
6458
1a4990fb
JB
64592010-07-07 Juanma Barranquero <lekktu@gmail.com>
6460
6461 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
6462 (encode_coding_object): Use SPECPDL_INDEX.
6463 (syms_of_coding): Use DOS_NT.
6464
c0f2f16b
DN
64652010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
6466
48fb6855
DN
6467 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
6468
c0f2f16b
DN
6469 Make the function member of Lisp_Subr use standard C prototypes.
6470 * lisp.h (struct Lisp_Subr): Use a union for the function member.
6471 (DECL_ALIGN): Add a cast for the function.
6472 * eval.c (Feval, Ffuncall): Use the proper type for each type
6473 function call.
6474
67aecef9
CY
64752010-07-06 Chong Yidong <cyd@stupidchicken.com>
6476
6477 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
6478 fringe face id, so face-remapping-alist works (Bug#6091).
6479
b56ceb92
JB
64802010-07-06 Juanma Barranquero <lekktu@gmail.com>
6481
6482 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
6483 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
6484 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
6485
7af07b96
AS
64862010-07-06 Andreas Schwab <schwab@linux-m68k.org>
6487
6488 * xterm.c (x_get_keysym_name): Change type of parameter to int.
6489 * lisp.h: Declare x_get_keysym_name.
6490 * keyboard.c (modify_event_symbol): Don't declare
6491 x_get_keysym_name here.
6492
69e24e34
DN
64932010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
6494
6495 * ecrt0.c: Revert conversion to standard C.
6496
d3da34e0 64972010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
6498
6499 * vm-limit.c (memory_warnings):
6500 * keyboard.c (modify_event_symbol):
6501 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6502 (round2, emacs_rint):
6503 * process.c (send_process, old_sigpipe): Convert function
6504 definitions and declarations to standard C.
6505
65062010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
6507
6508 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
6509 * xdisp.c: Convert function definitions to standard C.
6510
6511 * cm.c (cmputc): Arg C is now int, not char.
6512 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
6513
00be444c
J
65142010-07-05 James Cloos <cloos@jhcloos.com>
6515
6516 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
6517
6518 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
6519 _NET_WM_ICON_NAME atoms.
6520
6521 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
6522 and _NET_WM_ICON_NAME properties, too, matching what is
6523 done in the Gtk+ case.
6524
e4c8d29a
J
65252010-07-05 Jan Djärv <jan.h.d@swipnet.se>
6526
ff919460
J
6527 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
6528
e4c8d29a
J
6529 * xsmfns.c (SSDATA): New macro.
6530 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
6531 passed to strlen/strcpy/strcat.
bba3e508
SM
6532 (create_client_leader_window): Surround with #ifndef USE_GTK.
6533 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
6534
6535 * xsettings.c (something_changedCB, parse_settings)
6536 (apply_xft_settings): Reformat prototype.
6537 (something_changedCB, init_gconf): Remove unused variable i.
6538 (read_settings): Remove unused variable long_len.
6539
6540 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
6541 (xg_get_image_for_pixmap, create_dialog)
6542 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
6543 (menuitem_highlight_callback, make_menu_item)
6544 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6545 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6546 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6547 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6548 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6549 (xg_tool_bar_item_expose_callback): Reformat prototype.
6550 (xg_update_menubar): GList *group => GSList *group.
6551 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6552 before use.
6553 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6554 to GTK_IMAGE (wimage).
6555
dd4c5104
DN
65562010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6557
898b4c5c
DN
6558 * atimer.c: Use "" instead of <> for local includes for
6559 consistency with the rest of the code.
6560
dd4c5104
DN
6561 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6562 * xrdb.c (get_system_name):
6563 * window.c (shrink_windows):
6564 * syntax.c (forw_comment):
6565 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6566 (ins_del_costs):
6567 * mem-limits.h (start_of_data):
6568 * lread.c (readevalloop):
6569 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6570 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6571 * frame.c (x_get_focus_frame):
6572 * floatfns.c (fmod_float):
6573 * fileio.c (choose_write_coding_system):
6574 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6575 (malloc_initialize_hook, sort_args, synchronize_locale):
6576 * doprnt.c (doprnt):
6577 * dired.c (compile_pattern):
6578 * data.c (fmod_float):
6579 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6580 (map_char_table_for_charset):
6581 * charset.c (define_charset_internal):
6582 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6583 to standard C.
6584
9a39b306 65852010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 6586 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
6587
6588 * lread.c (read1): Fix up last change to not mess up `c'.
6589
e6cb2cbb
JB
65902010-07-04 Juanma Barranquero <lekktu@gmail.com>
6591
6592 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6593
438105ed
JB
65942010-07-04 Juanma Barranquero <lekktu@gmail.com>
6595
6596 Fix prototypes.
6597
e5447b22 6598 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 6599 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
6600 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6601 arg, as required by internal_condition_case_1.
dcc7404b 6602 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
6603 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6604 (analyse_first): Fix "const const".
e5447b22 6605 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 6606 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 6607 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 6608
971de7fb
DN
66092010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6610
6611 * alloc.c: Convert function definitions to standard C.
6612 * atimer.c:
6613 * bidi.c:
6614 * bytecode.c:
6615 * callint.c:
6616 * callproc.c:
6617 * casefiddle.c:
6618 * casetab.c:
6619 * category.c:
6620 * ccl.c:
6621 * character.c:
6622 * charset.c:
6623 * chartab.c:
6624 * cmds.c:
6625 * coding.c:
6626 * composite.c:
6627 * data.c:
6628 * dbusbind.c:
6629 * dired.c:
6630 * dispnew.c:
6631 * doc.c:
6632 * doprnt.c:
6633 * ecrt0.c:
6634 * editfns.c:
6635 * fileio.c:
6636 * filelock.c:
6637 * filemode.c:
6638 * fns.c:
6639 * font.c:
6640 * fontset.c:
6641 * frame.c:
6642 * fringe.c:
6643 * ftfont.c:
6644 * ftxfont.c:
6645 * gtkutil.c:
6646 * indent.c:
6647 * insdel.c:
6648 * intervals.c:
6649 * keymap.c:
6650 * lread.c:
6651 * macros.c:
6652 * marker.c:
6653 * md5.c:
6654 * menu.c:
6655 * minibuf.c:
6656 * prefix-args.c:
6657 * print.c:
6658 * ralloc.c:
6659 * regex.c:
6660 * region-cache.c:
6661 * scroll.c:
6662 * search.c:
6663 * sound.c:
6664 * strftime.c:
6665 * syntax.c:
6666 * sysdep.c:
6667 * termcap.c:
6668 * terminal.c:
6669 * terminfo.c:
6670 * textprop.c:
6671 * tparam.c:
6672 * undo.c:
6673 * unexelf.c:
6674 * window.c:
6675 * xfaces.c:
6676 * xfns.c:
6677 * xfont.c:
6678 * xftfont.c:
6679 * xgselect.c:
6680 * xmenu.c:
6681 * xrdb.c:
6682 * xselect.c:
6683 * xsettings.c:
6684 * xsmfns.c:
6685 * xterm.c: Likewise.
6686
ae492bec
EZ
66872010-07-03 Eli Zaretskii <eliz@gnu.org>
6688
76ea4cc9
EZ
6689 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6690 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6691 `reverse' is specified in the frame parameters.
6692 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6693 internal-set-lisp-face-attribute. Initialize screen colors from
6694 initial_screen_colors[] when f->default_face_done_p is zero,
6695 instead of depending on being called with default-frame-alist as
6696 the alist argument.
6697
6698 * xfaces.c (update_face_from_frame_parameter): Move out of
6699 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6700 with HAVE_WINDOW_SYSTEM.
6701
1e6255ae
EZ
6702 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6703 to menu-bar-mode, if not set in the frame parameters or in
6704 default-frame-alist.
6705
ae492bec
EZ
6706 * w32console.c (sys_tputs): Adjust argument list to prototype in
6707 term.c.
6708
3a35a84c
JB
67092010-07-03 Juanma Barranquero <lekktu@gmail.com>
6710
6711 * lisp.h (memory_warnings): Fix prototype.
6712
6713 * cm.h (evalcost): Fix prototype.
6714
6715 * cm.c (evalcost): Fix arg type.
6716
c532d349
DN
67172010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6718
6719 * term.c (term_clear_mouse_face, Fidentity):
6720 * syssignal.h (signal_handler_t):
6721 * lisp.h (memory_warnings):
6722 * coding.h (preferred_coding_system):
6723 * cm.h (evalcost):
6724 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6725
c0b36d46
EZ
67262010-07-02 Eli Zaretskii <eliz@gnu.org>
6727
6728 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6729 from prototypes.
6730
6731 * msdos.h (load_pixmap): Don't define away.
6732
383e0970
J
67332010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6734
f57e2426
J
6735 * lisp.h:
6736 * atimer.h: Remove define for P_.
6737
6738 * alloc.c: Remove __P and P_ from .c and .m files.
6739 * atimer.c:
6740 * buffer.c:
6741 * callint.c:
6742 * category.c:
6743 * charset.c:
6744 * chartab.c:
6745 * cm.c:
6746 * coding.c:
6747 * composite.c:
6748 * data.c:
6749 * dired.c:
6750 * dispnew.c:
6751 * doc.c:
6752 * editfns.c:
6753 * emacs.c:
6754 * eval.c:
6755 * fileio.c:
6756 * filelock.c:
6757 * fns.c:
6758 * font.c:
6759 * fontset.c:
6760 * frame.c:
6761 * ftfont.c:
6762 * ftxfont.c:
6763 * gmalloc.c:
6764 * gtkutil.c:
6765 * image.c:
6766 * indent.c:
6767 * intervals.c:
6768 * keyboard.c:
6769 * keymap.c:
6770 * lread.c:
6771 * marker.c:
6772 * menu.c:
6773 * minibuf.c:
6774 * print.c:
6775 * process.c:
6776 * scroll.c:
6777 * search.c:
6778 * sound.c:
6779 * strftime.c:
6780 * syntax.c:
6781 * sysdep.c:
6782 * term.c:
6783 * terminal.c:
6784 * textprop.c:
6785 * unexalpha.c:
6786 * w32console.c:
6787 * w32fns.c:
6788 * w32font.c:
6789 * w32menu.c:
6790 * w32term.c:
6791 * w32uniscribe.c:
6792 * window.c:
6793 * xdisp.c:
6794 * xfaces.c:
6795 * xfns.c:
6796 * xfont.c:
6797 * xftfont.c:
6798 * xmenu.c:
6799 * xselect.c:
6800 * xterm.c: Likewise.
6801
383e0970 6802 Remove P_ and __P macros.
f57e2426
J
6803 * atimer.h: Remove P_ and __P macros.
6804 * buffer.h:
383e0970
J
6805 * category.h:
6806 * ccl.h:
6807 * character.h:
6808 * charset.h:
6809 * cm.h:
6810 * coding.h:
6811 * composite.h:
6812 * dispextern.h:
6813 * disptab.h:
9e892c8d 6814 * dosfns.h:
383e0970
J
6815 * font.h:
6816 * fontset.h:
6817 * frame.h:
6818 * gtkutil.h:
6819 * indent.h:
6820 * intervals.h:
6821 * keyboard.h:
6822 * keymap.h:
6823 * lisp.h:
6824 * macros.h:
6825 * md5.h:
6826 * menu.h:
6827 * msdos.h:
6828 * nsterm.h:
6829 * puresize.h:
6830 * region-cache.h:
6831 * syntax.h:
6832 * syssignal.h:
6833 * systime.h:
6834 * termhooks.h:
9e892c8d 6835 * w32font.h:
383e0970
J
6836 * w32term.h:
6837 * widget.h:
6838 * window.h:
6839 * xgselect.h:
6840 * xsettings.h:
6841 * xterm.h: Likewise.
6842
98601119
DN
68432010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6844
d9170db5
DN
6845 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6846
98601119
DN
6847 Cleanup old code.
6848 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6849 * syssignal.h: Remove code for Lynx, not supported anymore.
6850 * vm-limit.c: Remove unused code the depends on emacs not being
6851 defined and NO_LIM_DATA being defined.
6852 * mem-limits.h: Remove dead code.
6853
1f984e12
J
68542010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6855
c49d071a
J
6856 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6857
9d5405ec
J
6858 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6859 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6860
7a18115b
J
6861 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6862 parameters, they are already absolute.
6863
a628ad9d
JB
6864 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6865 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6866
a628ad9d 6867 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6868
a628ad9d
JB
6869 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6870 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6871
a628ad9d
JB
6872 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6873 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6874
c1ef4455
CY
68752010-06-30 Chong Yidong <cyd@stupidchicken.com>
6876
bba3e508
SM
6877 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6878 Don't check default-frame-alist.
c1ef4455 6879
ce8f5a9a
AS
68802010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6881
6882 * process.c (create_process): Avoid using invalid file descriptors.
6883
6884 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6885
bf935339
J
68862010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6887
6888 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6889 Improve documentation. Return font regardless of use_system_font.
6890 (syms_of_xsettings): Improve documentation for font-use-system-font.
6891
7c33a057
CY
68922010-07-10 Chong Yidong <cyd@stupidchicken.com>
6893
2ec1b5ee
CY
6894 * xfaces.c (realize_face): Garbage the frame if a face is removed
6895 (Bug#6593).
6896
68972010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6898
6899 * keyboard.c: Remove duplicate <setjmp.h>.
6900 (read_key_sequence): Remove volatile qualifiers.
6901
69022010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6903
6904 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6905 (struct glyph_row): New members left_fringe_offset and
6906 right_fringe_offset.
6907
6908 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6909 specially.
6910 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6911 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6912
6913 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6914 Take account of bitmap offset.
2ec1b5ee
CY
6915 (draw_window_fringes): Take account of window vscroll.
6916 (update_window_fringes): Likewise. Extend top-aligned top indicator
6917 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6918 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6919 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6920
69212010-07-04 Juanma Barranquero <lekktu@gmail.com>
6922
6923 * w32fns.c (Qtooltip): Declare.
6924 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6925
69262010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6927
6928 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6929 grab on just Press (Bug#6499).
6930
69312010-07-02 Chong Yidong <cyd@stupidchicken.com>
6932
6933 * frame.c (Qtooltip): New var.
6934 (delete_frame): Use it. Fix faulty if statement. Don't update
6935 mode line for tooltip frames. Suggested by Martin Rudalics.
6936
6937 * xfns.c (x_create_tip_frame):
6938 * w32fns.c (x_create_tip_frame): Use it.
6939
69402010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6941
6942 * xftfont.c (xftfont_open): Check font width one by one also when
6943 spacing is dual.
6944
6945 * ftfont.c (ftfont_open): Ditto.
6946
6259c2ec
GM
69472010-06-30 Glenn Morris <rgm@gnu.org>
6948
a46007e9
GM
6949 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6950
6259c2ec
GM
6951 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6952
6953 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6954 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6955 * s/darwin.h (SYSTEM_MALLOC):
6956 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6957
5d1d3d04
J
69582010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6959
6960 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6961 (ns_get_screen): Don't assign integer to f.
6962 (Fx_display_color_cells): Declarations before statements.
6963
e547b051
J
69642010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6965
5fc8e5bc
J
6966 * xfns.c (x_default_font_parameter): Remove got_from_system
6967 (Bug#6526).
6968
e547b051 6969 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6970 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6971 New defines based on what configure finds.
e547b051
J
6972
6973 * xterm.c (XTflash): Use gtk_widget_get_window.
6974 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6975 gtk_adjustment_get_page_size.
6976 (handle_one_xevent): Use gtk_widget_get_mapped.
6977 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6978 messages.
6979
6980 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6981
6982 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6983 HAVE_GTK_FILE_SELECTION_NEW.
6984
bba3e508
SM
6985 * gtkutil.c (xg_display_open, xg_display_close):
6986 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6987 (xg_display_open): Return type is void.
6988 (gtk_widget_set_has_window)
6989 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6990 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6991 (gtk_adjustment_set_page_increment)
6992 (gtk_adjustment_get_step_increment): #define these if not found
6993 by configure.
6994 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6995 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6996 Use gtk_widget_get_window.
e547b051
J
6997 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6998 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6999 (create_dialog): Use gtk_dialog_get_action_area and
7000 gtk_dialog_get_content_area.
7001 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7002 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7003 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7004 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7005 Use g_object_ref and g_object_unref.
7006 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7007 Use gtk_widget_get_sensitive.
e547b051
J
7008 (xg_update_submenu): Use remove_submenu.
7009 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7010 properties instead to get old x and y position.
7011 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7012 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7013 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7014 (xg_get_tool_bar_widgets): New function.
7015 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7016 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7017 (toolbar_set_orientation): New #define based on if configure
7018 finds gtk_orientable_set_orientation.
7019 (xg_create_tool_bar): Call toolbar_set_orientation.
7020 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7021 instead of gtk_box_pack_start_defaults.
7022
b9229673
CY
70232010-06-28 Chong Yidong <cyd@stupidchicken.com>
7024
7025 * cmds.c (Fdelete_backward_char): Move into Lisp.
7026
bbc803b0
DN
70272010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7028
7029 * s/freebsd.h (BSD4_2): Remove redundant definition.
7030 bsd-common.h defines it already.
7031
6431f2e6
CY
70322010-06-27 Chong Yidong <cyd@stupidchicken.com>
7033
7034 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7035 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7036 tool-bar-mode, which are now set using these X resources at
7037 startup, to determine the defaults (Bug#2249).
7038
7039 * w32fns.c (Fx_create_frame):
7040 * nsfns.m (Fx_create_frame): Likewise.
7041
7042 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7043
8c079ebb
JB
70442010-06-24 Juanma Barranquero <lekktu@gmail.com>
7045
7046 * gtkutil.c (xg_update_scrollbar_pos):
7047 Avoid C99 mid-block variable declaration.
7048
e9b7ab96
JD
70492010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7050
bc869eca
JD
7051 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7052
2b7e356a 7053 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
7054
7055 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7056 if height is less than scroll bar min size.
7057 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7058
e9b7ab96
JD
7059 * xfns.c (x_default_font_parameter): Try to open font from system
7060 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7061
a628ad9d 70622010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
7063
7064 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7065
70c4cfbb
EZ
70662010-06-20 Eli Zaretskii <eliz@gnu.org>
7067
7068 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7069 most-positive-fixnum, be extra accurate when scrolling window
7070 start, to avoid missing the cursor line.
7071
ad5a12b5
EZ
70722010-06-19 Eli Zaretskii <eliz@gnu.org>
7073
7074 * xdisp.c (try_scrolling): Compute the limit for searching point
7075 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
7076 of 10 screen lines.
7077 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
7078 and
7079 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7080 for details.
7081
2a64315a 70822010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
7083
7084 * editfns.c (Fbyte_to_string): Pacify compiler.
7085
288cf4e9
SM
70862010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7087
7088 * lread.c (read1): Phase out old-style backquotes a bit more.
7089
6e6e5760
EZ
70902010-06-12 Eli Zaretskii <eliz@gnu.org>
7091
cbc4fd20
EZ
7092 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7093 bidimirror.h.
7094
7095 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7096
317fbf33
EZ
7097 * bidi.c (bidi_initialize): Remove explicit initialization of
7098 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 7099 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 7100 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
7101
7102 * biditype.h: New file.
7103
cbc4fd20
EZ
7104 * bidimirror.h: New file.
7105
6e6e5760
EZ
7106 * window.c (syms_of_window): Doc fix (bug#6409).
7107
4176cba2
RF
71082010-06-12 Romain Francoise <romain@orebokech.com>
7109
7110 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7111 ediff-hook.
7112
cb4bfcb5
GM
71132010-06-10 Glenn Morris <rgm@gnu.org>
7114
64c60c2f
GM
7115 * editfns.c (Fbyte_to_string): Pacify compiler.
7116
cb4bfcb5
GM
7117 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7118
2ec1b5ee
CY
71192010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7120
7121 * alloc.c (Fmake_byte_code): Don't access undefined argument
7122 (Bug#6517).
7123
71242010-06-25 Chong Yidong <cyd@stupidchicken.com>
7125
7126 * xdisp.c (next_element_from_image): Ensure that after-strings are
7127 read the next time we hit handle_stop (Bug#1336).
7128
71292010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7130
7131 * lread.c (read1): Signal error if #s is not followed by paren.
7132
71332010-06-19 Chong Yidong <cyd@stupidchicken.com>
7134
7135 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7136
7137 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7138
71392010-06-15 Glenn Morris <rgm@gnu.org>
7140
7141 * editfns.c (Fbyte_to_string): Pacify compiler.
7142
e454a4a3
SM
71432010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7144
7145 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7146 Check `object's type before accessing its guts.
7147
c1b1acc2
DN
71482010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7149
7150 * s/usg5-4.h: Fix previous change.
7151 Suggested by Lawrence Mitchell <wence@gmx.li>
7152
657d4c0b
AS
71532010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7154
7155 * minibuf.c (Fall_completions): Add more checks.
7156
9b27fd9f
JB
71572010-06-08 Juanma Barranquero <lekktu@gmail.com>
7158
7159 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7160
a99ebb40
DN
71612010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7162
d7c5d87d
DN
7163 * lread.c (X_OK): Remove, unused.
7164
0263a941
DN
7165 * dispnew.c: Remove obsolete comment.
7166
a99ebb40
DN
7167 Remove INCLUDED_FCNTL.
7168 * xterm.c (INCLUDED_FCNTL):
7169 * callproc.c (INCLUDED_FCNTL):
7170 * alloc.c (INCLUDED_FCNTL):
7171 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7172 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7173
13b5221f
MR
71742010-06-07 Martin Rudalics <rudalics@gmx.at>
7175
7176 * window.c (Fselect_window): Move `record_buffer' up to the
7177 beginning of this function, so the buffer gets recorded
7178 even if the selected window does not change.
7179 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7180
5220357f
JB
71812010-06-07 Juanma Barranquero <lekktu@gmail.com>
7182
7183 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7184 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7185
3085237c
DN
71862010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7187
7188 Remove BSTRING related code, all platforms define it.
7189 * s/usg5-4.h (BSTRING): Remove definition.
7190 * s/template.h (BSTRING):
7191 * s/msdos.h (BSTRING):
7192 * s/ms-w32.h (BSTRING):
7193 * s/hpux10-20.h (BSTRING):
7194 * s/gnu-linux.h (BSTRING):
7195 * s/darwin.h (BSTRING):
7196 * s/cygwin.h (BSTRING):
7197 * s/bsd-common.h (BSTRING):
7198 * s/aix4-2.h (BSTRING): Likewise.
7199 * sysdep.c: Remove code depending on BSTRING not being defined.
7200
409f2919
JB
72012010-06-05 Juanma Barranquero <lekktu@gmail.com>
7202
7203 Remove obsolete macro BASE_LEADING_CODE_P.
7204 * character.h (BASE_LEADING_CODE_P): Remove.
7205 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7206 * buffer.c (Fset_buffer_multibyte):
7207 * indent.c (scan_for_column, compute_motion):
7208 * insdel.c (count_combining_before, count_combining_after):
7209 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7210
087fc47a
JB
72112010-06-04 Juanma Barranquero <lekktu@gmail.com>
7212
7213 Turn `directory-sep-char' into a noop.
7214
7215 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7216 (DIRECTORY_SEP): Define unconditionally.
7217
7218 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7219
7220 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7221 call dostounix_filename directly.
7222
7223 * fileio.c (CORRECT_DIR_SEPS): Remove.
7224 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7225 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7226 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7227 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7228
7229 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7230 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7231
0eb7675e
AS
72322010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7233
a628ad9d
JB
7234 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7235 (Bug#6346)
0eb7675e 7236
78edd3b7
JB
72372010-06-03 Juanma Barranquero <lekktu@gmail.com>
7238
7239 * ccl.c (Fccl_program_p): Fix typo in docstring.
7240
eb697db5
DN
72412010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7242
7243 Move UNEXEC definition to autoconf.
7244 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7245 * s/sol2-10.h (UNEXEC):
7246 * s/irix6-5.h (UNEXEC):
7247 * s/hpux10-20.h (UNEXEC):
7248 * s/gnu-linux.h (UNEXEC):
7249 * s/darwin.h (UNEXEC):
7250 * s/cygwin.h (UNEXEC):
7251 * s/bsd-common.h (UNEXEC):
7252 * s/aix4-2.h (UNEXEC):
7253 * m/alpha.h (UNEXEC): Likewise.
7254 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7255
aa3830c4
JB
72562010-06-03 Juanma Barranquero <lekktu@gmail.com>
7257
7258 Remove obsolete pre-unicode2 macros.
7259 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7260 * composite.c (composition_reseat_it):
7261 * data.c (Faset):
7262 * fns.c (Ffillarray):
7263 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7264 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7265
d234d13e
JL
72662010-06-03 Juri Linkov <juri@jurta.org>
7267
7268 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7269 (Fswitch_to_buffer): Remove unused variable `err'.
7270
0d4bcf4d
GM
72712010-06-03 Glenn Morris <rgm@gnu.org>
7272
e23dc1e2
GM
7273 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7274
05b09564
GM
7275 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7276 now that AH_BOTTOM does it.
7277
824e2978
GM
7278 * m/hp800.h (HAVE_ALLOCA):
7279 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7280
0d4bcf4d
GM
7281 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7282 Remove NOT_C_CODE tests, it is always true now.
7283
c55d2abf
DN
72842010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7285
08a494a3
DN
7286 Fix config.h includes.
7287 * xsettings.c:
7288 * xgselect.c:
7289 * nsterm.m:
7290 * nsselect.m:
7291 * nsimage.m:
7292 * nsfont.m:
7293 * nsfns.m:
7294 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7295 other files do.
7296
75934b1d
DN
7297 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7298
9f32a766
DN
7299 * s/sol2-6.h: Remove obsolete comments.
7300
c55d2abf
DN
7301 Remove unnecessary alloca.h includes.
7302 * keymap.c: Do not include alloca.h, config.h does that.
7303 * sysdep.c: Likewise. Do not define fwrite, not used.
7304
06ac62b4
SM
73052010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7306
7307 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7308 the HAVE_TERMIO where it belongs (bug#6149).
7309
1ab8293c
SM
73102010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7311
7312 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7313 of bug#6305).
7314
6dcfd253
EZ
73152010-05-30 Eli Zaretskii <eliz@gnu.org>
7316
7317 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7318 state is always cached (bug#6306).
7319
6d26bbb2
EZ
73202010-05-29 Eli Zaretskii <eliz@gnu.org>
7321
06fa4a23
EZ
7322 Fix cursor motion in bidi-reordered continued lines.
7323 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7324 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
7325 over continuation lines in bidi-reordered buffers.
7326 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
7327 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7328
f5783df3
MA
73292010-05-28 Michael Albinus <michael.albinus@gmx.de>
7330
7331 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7332
7d56b2dd
KH
73332010-05-28 Kenichi Handa <handa@m17n.org>
7334
7335 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7336 Don't sheck SPEC if it is nil.
7337 (font_list_entities): Call font_delete_unmatched if
b925d231 7338 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 7339
e58d4ff7
GM
73402010-05-28 Glenn Morris <rgm@gnu.org>
7341
7342 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7343
f1a5d776
CY
73442010-05-27 Chong Yidong <cyd@stupidchicken.com>
7345
7346 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7347 whether to trash.
7348 (internal_delete_file, Frename_file): Callers changed.
7349 (delete_by_moving_to_trash): Doc fix.
7350 (Fdelete_directory_internal): Don't move to trash.
7351
7352 * callproc.c (delete_temp_file):
7353 * buffer.c (Fkill_buffer): Callers changed.
7354
7355 * lisp.h: Update prototype.
7356
f44a59e6
CY
73572010-05-27 Chong Yidong <cyd@stupidchicken.com>
7358
7359 * xdisp.c (redisplay_window): After redisplay, check if point is
7360 still valid before setting it (Bug#6177).
7361
81ac4f35
GM
73622010-05-27 Glenn Morris <rgm@gnu.org>
7363
7364 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7365 Convert comments to Makefile format.
7366
7367 * Makefile.in (bootstrap-clean): No more Makefile.c.
7368
ccd89fb3
GM
73692010-05-26 Glenn Morris <rgm@gnu.org>
7370
90278cb6
GM
7371 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7372 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7373
ccd89fb3
GM
7374 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7375 Remove.
7376 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7377
b7050583
KH
73782010-05-26 Kenichi Handa <handa@m17n.org>
7379
7380 * composite.c (composition_compute_stop_pos): Fix condition for
7381 backward scanning.
7382
e5458003
GM
73832010-05-25 Glenn Morris <rgm@gnu.org>
7384
c345fe90
GM
7385 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7386 Move before TEMACS_LDFLAGS.
7387 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7388 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7389
2e0689ab
GM
7390 * Makefile.in (NOT_C_CODE): No longer define.
7391 (config.h): No longer include.
7392
8009a5e8
GM
7393 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
7394 variables it may reference.
7395
e5458003
GM
7396 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
7397 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
7398
10f72a37
KH
73992010-05-25 Kenichi Handa <handa@m17n.org>
7400
7401 * dispextern.h (struct composition_it): New members rule_idx and
7402 charpos.
7403
7404 * xdisp.c (set_iterator_to_next): While scanning backward, assume
7405 that the character positions of IT point the last character of the
7406 current grapheme cluster.
7407 (next_element_from_composition): Don't change character positions
7408 of IT.
7409 (append_composite_glyph): Set glyph->charpos to
7410 it->cmp_it.charpos.
7411
7412 * composite.c (autocmp_chars): Change the first argument to RULE,
7413 and try composition with RULE only.
7414 (composition_compute_stop_pos): Record the index number of the
7415 composition rule in CMP_IT->rule_idx.
7416 (composition_reseat_it): Call autocmp_chars repeatedly until the
7417 correct rule of the composition is found.
7418 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
7419 is at the last character of the current grapheme cluster when
7420 CMP_IT->reversed_p is nonzero.
7421
171eda53 74222010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 7423
171eda53
SM
7424 * editfns.c (Fbyte_to_string): New function.
7425
66a9f7f4
SM
74262010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7427
7428 * process.c (Fmake_network_process): Set :host to nil if it's not used.
7429 Suggested by Masatake YAMATO <yamato@redhat.com>.
7430
d8c315d1
EZ
74312010-05-23 Eli Zaretskii <eliz@gnu.org>
7432
171eda53 7433 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 7434
f5b416d2 74352010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7436
7437 * s/netbsd.h: If terminfo is found, use it in preference to
7438 termcap. (Bug#6190) [Backport from trunk]
7439
0416466c
EZ
74402010-05-19 Eli Zaretskii <eliz@gnu.org>
7441
11117830 7442 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
7443
7444 * dispextern.h (struct glyph_row): New members minpos and maxpos.
7445 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
7446 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
7447 and maxpos members instead of start.pos and end.pos, respectively.
7448
7449 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
7450 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
7451 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
7452 (try_window_reusing_current_matrix, try_window_id):
7453 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
7454 (init_from_display_pos, init_iterator): Use EMACS_INT for
7455 character and byte positions.
66a9f7f4 7456 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
7457 arguments for minimum and maximum buffer positions seen by
7458 display_line for this row. Don't use iterator to find the
7459 position following the maximum one; instead, increment the
11117830
EZ
7460 position found by display_line directly. Fix logic; eol_pos
7461 should be tested before the rest. Handle the case of characters
7462 delivered from display vector (bug#6036). Fix tests related to
7463 it->method. Handle the truncated_on_right_p rows.
7464 (RECORD_MAX_MIN_POS): New macro.
7465 (display_line): Use it to record the minimum and maximum buffer
7466 positions for glyphs in the row being assembled. Record the
7467 position of the newline that terminates the line. If word wrap is
7468 in effect, restore minimum and maximum positions seen up to the
7469 wrap point, when iterator returns to it.
7470 (try_window_reusing_current_matrix): Give up if in bidi-reordered
7471 row and cursor not already at point. Restore original pre-bidi
7472 code for unidirectional buffers.
d36fe237
EZ
7473
7474 * dispnew.c (increment_row_positions, check_matrix_invariants):
7475 Increment and check row->start.pos and row->end.pos, in addition
7476 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
7477
11117830
EZ
7478 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
7479 Display truncated_on_left_p and truncated_on_right_p flags.
7480 Formatting fixes.
7481 (pmtxrows): Display the ordinal number of each row. Don't display
7482 rows beyond the last one.
7483
7484 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
7485 it is not copied by bidi_copy_it.
7486
6e83d800
EZ
74872010-05-22 Eli Zaretskii <eliz@gnu.org>
7488
7489 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
7490 (Bug#6237)
7491
110683ad
CY
74922010-05-22 Chong Yidong <cyd@stupidchicken.com>
7493
7494 * image.c (Fimage_flush): Rename from image-refresh.
7495
98fe5161
CY
74962010-05-21 Chong Yidong <cyd@stupidchicken.com>
7497
7498 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
7499 just one window.
7500
7501 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
7502 (clear_image_cache): If the number of cached images is unusually
7503 large, decrease the cache eviction delay (Bug#6230).
7504
e8752c66
GM
75052010-05-21 Glenn Morris <rgm@gnu.org>
7506
66dbf213
GM
7507 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
7508 Move these rules to ns.mk.
7509 * ns.mk: New file.
7510
04384b2d
GM
7511 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
7512
e8752c66
GM
7513 * Makefile.in (CANNOT_DUMP): New, set by configure.
7514 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
7515
2e2bbddb
JL
75162010-05-20 Juri Linkov <juri@jurta.org>
7517
7518 * fileio.c (Fdelete_file): Change interative spec to use
7519 `read-file-name' like in `find-file-read-args' where the default
7520 value is `default-directory' instead of `buffer-file-name'.
7521 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
7522
31c4aaf6
KR
75232010-05-20 Kevin Ryde <user42@zip.com.au>
7524
7525 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
7526 (Voverriding_terminal_local_map, Vsystem_key_alist)
7527 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
7528
9d5cf9b6
GM
75292010-05-20 Glenn Morris <rgm@gnu.org>
7530
7531 * Makefile.in (DEPDIR): New constant.
7532 (DEPFLAGS): Set with configure, not cpp.
7533 (MKDEPDIR): New, set by configure.
7534 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
7535 (clean): Use $DEPDIR.
7536 (deps_frag): Include from configure.
7537 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
7538 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
7539
bba3e508
SM
7540 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
7541 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 7542
7f34aec3
GM
75432010-05-19 Glenn Morris <rgm@gnu.org>
7544
d494e8f2
GM
7545 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7546
c1d0dcfd
GM
7547 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7548 (GNULIB_VAR): Remove.
7549 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7550
7551 * m/ibms390x.h (LINKER):
7552 * m/macppc.h (LINKER) [GNU_LINUX]:
7553 * s/aix4-2.h (ORDINARY_LINK):
7554 * s/cygwin.h (LINKER):
7555 * s/darwin.h (ORDINARY_LINK):
7556 * s/gnu.h (ORDINARY_LINK):
7557 * s/netbsd.h (LINKER):
7558 * s/usg5-4.h (ORDINARY_LINK):
7559 Move to configure.
7560
7f34aec3
GM
7561 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7562
754790b6
CY
75632010-05-18 Chong Yidong <cyd@stupidchicken.com>
7564
7565 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7566 prevent stack overflow if number of arguments is too large
7567 (Bug#6214).
7568
161e44d1
JB
75692010-05-18 Juanma Barranquero <lekktu@gmail.com>
7570
7571 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7572
be4ff9da
GM
75732010-05-18 Glenn Morris <rgm@gnu.org>
7574
9539dc5d
GM
7575 * s/gnu-linux.h: Combine two conditionals.
7576
7577 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
7578 $(POST_ALLOC_OBJ).
7579
40dc6bf4
GM
7580 * Makefile.in (RALLOC_OBJ): New, set by configure.
7581 (rallocobj): Replace with the previous variable.
7582 (otherobj): Use $RALLOC_OBJ.
7583
7584 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7585 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7586
be4ff9da
GM
7587 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7588 (gmallocobj, vmlimitobj): Replace with previous two variables.
7589 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7590
16455a85
GM
75912010-05-17 Glenn Morris <rgm@gnu.org>
7592
7593 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7594 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7595
5fdb7468
GM
75962010-05-16 Glenn Morris <rgm@gnu.org>
7597
7ca1f3f9
GM
7598 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7599
7541dad5
GM
7600 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7601
da53fab9
GM
7602 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7603 trailing "/".
7604
b02a6645
GM
7605 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7606 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7607
8877ca0f
GM
7608 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7609 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7610 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7611 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7612 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7613
5fdb7468
GM
7614 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7615 Remove ${STARTFLAGS}, nothing ever sets it.
7616
95adb4b1
DN
76172010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7618
7619 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7620
676b6304
GM
76212010-05-16 Glenn Morris <rgm@gnu.org>
7622
9beab9ce
GM
7623 * Makefile.in (LIBX_BASE): Always define.
7624
8a95f0e7
GM
7625 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7626
676b6304
GM
7627 * Makefile.in (LIBXT): Always define.
7628
6e546d18
GM
76292010-05-15 Glenn Morris <rgm@gnu.org>
7630
4235ca47 7631 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7632
6e546d18
GM
7633 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7634 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7635
8c5ff6dd
KR
76362010-05-15 Ken Raeburn <raeburn@raeburn.org>
7637
560bb7ae 7638 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7639 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7640
8b4eb796
KR
7641 * emacs.c (main): Initialize initial-environment and
7642 process-environment before generating from env, not after.
7643
8c5ff6dd
KR
7644 Handle --version reasonably in CANNOT_DUMP configuration.
7645 * emacs.c (emacs_version, emacs_copyright): New string variables.
7646 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7647 (syms_of_emacs): Defvar them, and initialize them from the C
7648 string variables.
7649 (main): If initialization hasn't been done, print initial version
7650 info from the C strings, instead of starting an interactive session.
7651
dbd3f723
EZ
76522010-05-15 Eli Zaretskii <eliz@gnu.org>
7653
d20e1419
EZ
7654 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7655 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7656 (bidi_paragraph_init): Remove redundant assertion that we are at
7657 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7658
7659 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7660 (syms_of_xdisp): Defsubr it.
7661
d36fe237
EZ
7662 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7663
dbd3f723
EZ
7664 * Makefile.in: Fix MSDOS-related comments.
7665
02be533b
GM
76662010-05-15 Glenn Morris <rgm@gnu.org>
7667
1a82cca9
GM
7668 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7669 (really-lwlib, really-oldXMenu): Always define.
7670 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7671
3df7b338
GM
7672 * Makefile.in: Simplify cpp conditional.
7673
2b5f541b
GM
7674 * Makefile.in (${ns_appdir}): Simplify using umask.
7675
02be533b
GM
7676 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7677
4e2db1fe
SM
76782010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7679
7680 * eval.c (specbind): Remove left-over duplicate test.
7681 Disallow let-binding frame-local vars. Add comment.
7682
4b292a22
EZ
76832010-05-14 Eli Zaretskii <eliz@gnu.org>
7684
2fe72643 7685 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7686 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7687 (bidi_init_it): Call it.
7688 (bidi_cache_iterator_state): Enlarge the cache if needed.
7689
4e2db1fe 7690 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7691 bidi_get_next_char_visually. All callers changed.
7692
82ebc97b
KH
76932010-05-14 Kenichi Handa <handa@m17n.org>
7694
7695 * dispextern.h (struct composition_it): New member reversed_p.
7696
7697 * composite.c (composition_compute_stop_pos): Search backward if
7698 ENDPOS < CHARPOS.
7699 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7700 Set CMP_IT->reversed_p.
b4b6e17e 7701 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7702
4e2db1fe
SM
7703 * xdisp.c (set_iterator_to_next):
7704 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7705 scanning backward. Call composition_compute_stop_pos if scan
7706 direction is changed.
7707 (next_element_from_buffer): Call composition_compute_stop_pos with
7708 negative ENDPOS if we are scanning backward.
7709 (next_element_from_composition): Pay attention to
7710 IT->cmp_it.reversed_p.
7711
0e5d7800
KH
77122010-05-14 Kenichi Handa <handa@m17n.org>
7713
560bb7ae 7714 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7715
cb027b32
GM
77162010-05-14 Glenn Morris <rgm@gnu.org>
7717
177b0288
GM
7718 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7719
fbc00890
GM
7720 * Makefile.in (mktime, X11, register): Move undefs to configure.
7721
f14d1dfd
GM
7722 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7723 (MSDOS_X_OBJ): New variable.
7724 (MSDOS_SUPPORT_REAL): New constant.
7725 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7726 (obj): Use MSDOS_X_OBJ.
7727 (lisp): Use MSDOS_SUPPORT as a variable.
7728
11842bd8
GM
7729 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7730 (GPM_MOUSE_SUPPORT): Now it's a constant.
7731 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7732 not cpp.
7733
489d31a4 7734 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7735 (ns_appresdir): Remove, unused.
e20f1f07 7736
489d31a4
GM
7737 * Makefile.in (SHELL): Move outside cpp section.
7738
cb027b32
GM
7739 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7740
5a903aa9
GM
77412010-05-13 Glenn Morris <rgm@gnu.org>
7742
3369c79f
GM
7743 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7744 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7745
d5e982a6
GM
7746 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7747 HAVE_WINDOW_SYSTEM must be too.
7748
6192e163
GM
7749 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7750 (lisp): Remove WINNT_SUPPORT.
7751
472c5d6b
GM
7752 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7753 Let configure set these variables (to empty) in this case as well.
7754
0116466b
GM
7755 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7756 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7757
5a903aa9
GM
7758 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7759 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7760 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7761 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7762 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7763 the values output by configure.
5a903aa9
GM
7764 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7765
1a0d7c06
GM
77662010-05-12 Glenn Morris <rgm@gnu.org>
7767
b5457f14
GM
7768 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7769 (LINKER_WAS_SPECIFIED): Remove.
7770
1a0d7c06
GM
7771 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7772 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7773 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7774 * s/cygwin.h (LIB_GCC):
7775 * s/freebsd.h (LIB_GCC):
7776 * s/gnu-linux.h (LIB_GCC):
7777 * s/msdos.h (LIB_GCC):
7778 * s/netbsd.h (LIB_GCC):
7779 Move to configure.
7780
d1ddd1d0 77812010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7782
7783 * ftfont.c: Fix incorrect parentheses of #if condition for
7784 definining M17N_FLT_USE_NEW_FEATURE.
7785
acddf8ae
GM
77862010-05-11 Glenn Morris <rgm@gnu.org>
7787
7788 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7789 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7790
ae5e04fa
EZ
77912010-05-10 Eli Zaretskii <eliz@gnu.org>
7792
7793 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7794 unibyte buffers. See
7795 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7796
7490175b
GM
77972010-05-10 Glenn Morris <rgm@gnu.org>
7798
97efb629
GM
7799 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7800 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7801 (LIBES): Use LIBS_SYSTEM as a variable.
7802 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7803 * s/aix4-2.h (LIBS_SYSTEM):
7804 * s/freebsd.h (LIBS_SYSTEM):
7805 * s/hpux10-20.h (LIBS_SYSTEM):
7806 * s/sol2-6.h (LIBS_SYSTEM):
7807 * s/unixware.h (LIBS_SYSTEM):
7808 Move to configure.
7809
7490175b
GM
7810 * s/aix4-2.h (MAIL_USE_LOCKF):
7811 * s/bsd-common.h (MAIL_USE_FLOCK):
7812 * s/darwin.h (MAIL_USE_FLOCK):
7813 * s/gnu-linux.h (MAIL_USE_FLOCK):
7814 * s/irix6-5.h (MAIL_USE_FLOCK):
7815 * s/template.h (MAIL_USE_FLOCK):
7816 Move to configure.
7817
0235128c 78182010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7819
7820 * Version 23.2 released.
7821
0235128c 78222010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7823
7824 * composite.c (autocmp_chars): Save point as marker before calling
7825 auto-composition-function (Bug#5984).
7826
7827 * lisp.h (restore_point_unwind): Add prototype.
7828
7829 * fileio.c (restore_point_unwind): Remove static attribute.
7830
0235128c 78312010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7832
7833 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7834 new feature of libotf and m17n-flt.
0235128c
SM
7835 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7836 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7837 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7838 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7839 that OUT is NULL. Use OTF_drive_gsub_with_log and
7840 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7841 OTF_drive_gpos.
7842 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7843 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7844 Setup mflt_enable_new_feature and mflt_try_otf.
7845
4721152c
J
78462010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7847
7848 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7849
7850 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7851 box and toolbar (Bug #6139).
7852 (xg_create_tool_bar): Remove comment (Bug #6139).
7853 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7854 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7855
ee0a16cf
JB
78562010-05-08 Juanma Barranquero <lekktu@gmail.com>
7857
7858 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7859 Update dependencies.
7860
96d79611
EZ
78612010-05-08 Eli Zaretskii <eliz@gnu.org>
7862
7863 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7864 R2L lines.
7865
40c17879
GM
78662010-05-08 Glenn Morris <rgm@gnu.org>
7867
7b42b29f
GM
7868 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7869
40c17879
GM
7870 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7871 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7872 (termcapobj): Replace with TERMCAP_OBJ.
7873 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7874 (LIBES): Use LIBS_TERMCAP as a variable.
7875
7876 * s/freebsd.h (osreldate.h): No longer include, since this file
7877 does not use __FreeBSD_version any more.
7878
7879 * s/aix4-2.h (TERMINFO):
7880 * s/cygwin.h (TERMINFO):
7881 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7882 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7883 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7884 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7885 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7886 * s/irix6-5.h (TERMINFO):
7887 * s/netbsd.h (LIBS_TERMCAP):
7888 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7889 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7890 * s/usg5-4.h (TERMINFO):
7891 Move to configure.
7892
94b612ad
SM
78932010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7894
7895 * eval.c (unbind_to): Don't unbind a local binding into the global
7896 binding when the local binding disappeared. Inversely, don't unbind
7897 a global binding into a newly created local binding.
7898 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7899 can specify the frame to use, when applicable. Adjust callers.
7900
15e12598 79012010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7902 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7903
7904 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7905
f724825e
EZ
79062010-05-07 Eli Zaretskii <eliz@gnu.org>
7907
5cba3209
EZ
7908 * w32fns.c: Include w32.h.
7909 (Fw32_shell_execute): Decode the error message before passing it
7910 to `error'. (Bug#6126)
7911
d16bdfc3
EZ
7912 * msdos.c (dos_set_window_size):
7913 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7914 instead of `XSYMBOL (foo)->value'.
7915
59d93e87
EZ
79162010-05-07 Eli Zaretskii <eliz@gnu.org>
7917
9fdec8bc
EZ
7918 Fix the MS-DOS build, broken by autoconfiscation.
7919
7920 * Makefile.in: Don't use Make-style comments past the "start of
7921 cpp stuff" line.
7922 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7923
7924 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7925 edited directly by msdos/sed1v2.inp).
f724825e 7926
2f86b22b
GM
79272010-05-07 Glenn Morris <rgm@gnu.org>
7928
7929 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7930 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7931 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7932 move out of cpp section.
7933 * s/freebsd.h (LD_SWITCH_SYSTEM):
7934 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7935 * s/netbsd.h (LD_SWITCH_SYSTEM):
7936 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7937
49ebbd65
DN
79382010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7939
7940 Define LIB_STANDARD and START_FILES using autoconf.
7941 * s/usg5-4.h (LIB_STANDARD):
7942 * s/netbsd.h (START_FILES):
7943 * s/irix6-5.h (LIB_STANDARD):
7944 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7945 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7946 * s/freebsd.h (START_FILES):
7947 * s/darwin.h (START_FILES):
7948 * s/cygwin.h (START_FILES):
7949 * s/aix4-2.h (LIB_STANDARD):
7950 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7951 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7952 autoconf, not cpp.
7953
d43c06d6
DN
79542010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7955
28823648
DN
7956 Remove NEED_BSDTTY and NEED_UNISTD_H.
7957 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7958 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7959 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7960 <sys/ptyio.h> and <unistd.h>.
7961
aca00430
DN
7962 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7963
d43c06d6
DN
7964 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7965 * s/gnu.h (START_FILES): Remove empty definition.
7966
3e56b11d
JD
79672010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7968
7969 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7970
e3cf0cde
GM
79712010-05-06 Glenn Morris <rgm@gnu.org>
7972
7973 * Makefile.in (CPP, LN_S): Remove unused variables.
7974
774b9a60
SM
79752010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7976
7977 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7978
4ab92842
LM
79792010-05-05 Lawrence Mitchell <wence@gmx.li>
7980
7981 * m/sparc.h: Fix typo in earlier change.
7982
178f2507
SM
79832010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7984
7985 Misc tweaks.
7986 * eval.c (Fdefvaralias): Remove unintended nested if.
7987 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7988
80f00217 79892010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7990
7991 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7992
ef03a4e6
DN
79932010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7994
58eb6cf0
DN
7995 Remove BSD_PGRPS.
7996 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7997 * s/gnu-linux.h (BSD_PGRPS): Remove.
7998 * term.c (dissociate_if_controlling_tty):
7999 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8000 (init_sys_modes, reset_sys_modes):
8001 * emacs.c (main):
8002 * callproc.c (Fcall_process, child_setup): Remove code depending
8003 on BSD_PGRPS.
8004
ef03a4e6
DN
8005 Remove POSIX_SIGNALS.
8006 * s/usg5-4.h (POSIX_SIGNALS):
8007 * s/netbsd.h (POSIX_SIGNALS):
8008 * s/msdos.h (POSIX_SIGNALS):
8009 * s/ms-w32.h (POSIX_SIGNALS):
8010 * s/hpux11.h (POSIX_SIGNALS):
8011 * s/gnu.h (POSIX_SIGNALS):
8012 * s/gnu-linux.h (POSIX_SIGNALS):
8013 * s/freebsd.h (POSIX_SIGNALS):
8014 * s/darwin.h (POSIX_SIGNALS):
8015 * s/cygwin.h (POSIX_SIGNALS):
8016 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8017 * s/unixware.h:
8018 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8019 * process.c (create_process):
8020 * syssignal.h:
8021 * sysdep.c (wait_for_termination, init_signals):
8022 * process.c (create_process):
8023 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8024 remove all code that assumes the contrary.
8025
49628785
GM
80262010-05-04 Glenn Morris <rgm@gnu.org>
8027
27a2cdfc
GM
8028 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8029 variable.
8030 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8031 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8032 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8033 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8034 LD_SWITCH_SYSTEM_tmp.
8035 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8036 New variables, set by configure.
8037
eb21eab5
GM
8038 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8039 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8040 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8041 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8042 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8043
49628785
GM
8044 * s/aix4-2.h (C_SWITCH_SYSTEM):
8045 * m/alpha.h (C_SWITCH_MACHINE):
8046 Move to configure.in.
8047 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8048 New variables, set by configure.
8049 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8050 $c_switch_machine and $c_switch_system.
8051
7dff330b
DN
80522010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8053
8054 * s/hpux10-20.h (LIB_STANDARD): New definition.
8055 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8056 on it, not used anymore.
8057
53967e09
CY
80582010-05-03 Chong Yidong <cyd@stupidchicken.com>
8059
8060 * eval.c (internal_condition_case_n): Rename from
8061 internal_condition_case_2.
8062 (internal_condition_case_2): New function.
8063
8064 * xdisp.c (safe_call): Use internal_condition_case_n.
8065
8066 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8067 (internal_delete_file, Frename_file): Callers changed.
8068
8069 * buffer.c (Fkill_buffer):
8070 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8071
8072 * lisp.h: Update prototypes.
8073
3dee6fdb
GM
80742010-05-03 Glenn Morris <rgm@gnu.org>
8075
8076 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8077 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8078 (LIBXT): Set with configure, not cpp.
8079 (LIBX): Remove.
8080 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8081
a101e0fb
DN
80822010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8083
8084 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8085 The FreeBSD is not needed, the default works, Solaris version is
8086 not needed, and the remaining case is not supported by configure.
8087
f63d0028
JD
80882010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8089
8090 * xsmfns.c (CHDIR_OPT): New define.
8091 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8092 restarting emacs.
8093
8094 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8095 shut_down_emacs.
8096
8097 * emacs.c (USAGE1): Mention --chdir.
8098 (main): Handle --chdir.
8099 (standard_args): Add --chdir.
8100 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8101 #5552).
8102
e4814a9f
DN
81032010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8104
cd03c74a
DN
8105 Remove LD_SWITCH_MACHINE.
8106 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8107 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8108
c3a398a1
DN
8109 Clean up IRIX code.
8110 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8111 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8112
87e7285c
DN
8113 Clean up AIX code.
8114 * m/ibmrs6000.inp: Remove file, unused.
8115 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8116 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8117 definition ...
8118 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8119
80f00217
JB
8120 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8121 unused.
e4814a9f 8122
59ca28de
EZ
81232010-05-01 Eli Zaretskii <eliz@gnu.org>
8124
197daef4
EZ
8125 Emulate POSIX_SIGNALS on MS-Windows.
8126
8127 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8128 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
8129
8130 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8131 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8132 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8133
80f00217
JB
8134 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8135 New stubs.
197daef4 8136
af7c7572
EZ
8137 Miscellaneous fixes of bidi display.
8138
59ca28de
EZ
8139 * xdisp.c (find_row_end): New function, refactored from display_line.
8140 (display_line): Use it.
017ea819
EZ
8141 (extend_face_to_end_of_line): In almost-filled rows, extend only
8142 if the row is R2L and not continued.
166e930d 8143 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8144 Preserve overlay and string info in row->end.
166e930d
EZ
8145 (insert_left_trunc_glyphs): Support addition of left truncation
8146 glyphs to R2L rows.
b47e0dcf 8147 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8148 glyph between adjacent windows. Fix a crash when a display string
8149 is continued to the next line. Don't return zero if cursor was
8150 found by `cursor' property of a display string.
b47e0dcf
EZ
8151 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8152 test for that explicitly.
59ca28de 8153
7acac9f4
GM
81542010-05-01 Glenn Morris <rgm@gnu.org>
8155
8156 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8157 for clarity.
8158 (OTHER_OBJ): Remove.
8159 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8160 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8161
45841e65
KK
81622010-05-01 Karel Klíč <kklic@redhat.com>
8163
8164 * fileio.c (Ffile_selinux_context): Context functions may return null.
8165
afc61943
DN
81662010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8167
80f00217 8168 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8169
5a1bb006
GM
81702010-04-30 Glenn Morris <rgm@gnu.org>
8171
8172 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8173 (OTHER_OBJ): Define as a separate variable, for clarity.
8174
210af043
J
81752010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8176
2f8f196d 8177 * xsettings.c: Include limits.h and update file comment.
210af043 8178
0a7df391
GM
81792010-04-30 Glenn Morris <rgm@gnu.org>
8180
d5096f16
GM
8181 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8182 Set with configure, not cpp.
8183 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8184
7eb1ac33
GM
8185 * Makefile.in (mallocobj): Remove.
8186 (otherobj): Simplify using @OTHER_OBJ@.
8187
517d086b
GM
8188 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8189 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8190 Don't bother making nsgui.h dependency platform-specific.
8191
0a7df391
GM
8192 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8193
d6d23852
SM
81942010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8195
d2630aef
SM
8196 * process.c (read_process_output, exec_sentinel): Don't burp if the
8197 sentinel/filter kills the current buffer (bug#6060).
8198
f9dddf52 8199 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8200 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8201 Remove unused var `args'.
8202 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8203 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8204 * doc.c (store_function_docstring): Use XSETCAR.
8205
f1e3642a
GM
82062010-04-28 Glenn Morris <rgm@gnu.org>
8207
faf535f8
GM
8208 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8209 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8210
c40f9449
GM
8211 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8212
658f86ca
GM
8213 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8214 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8215
bc0b5f61
GM
8216 * Makefile.in (FONT_OBJ): New, set by configure.
8217 (FONT_DRIVERS): Use $FONT_OBJ.
8218
294c50a0
GM
8219 * Makefile.in (LIBXMU): Set with configure, not cpp.
8220 * s/aix4-2.h (LIBXMU):
8221 * s/hpux10-20.h (LIBXMU):
8222 Remove definition, now set in configure.
8223
e6ec4e99
GM
8224 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8225
f1e3642a
GM
8226 * m/amdx86-64.h [i386]: Move this test to configure.in.
8227
c6ea2936
GM
82282010-04-27 Glenn Morris <rgm@gnu.org>
8229
8fdac2c3
GM
8230 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8231 * s/unixware.h (NEED_LIBW): Remove definition.
8232
986fb647
GM
8233 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8234 (TOOLKIT_LIBW): New, set by configure.
8235 (@X_TOOLKIT_TYPE@): No longer define it.
8236
c6ea2936
GM
8237 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8238 (MOTIF_LIBW): Set with configure, not cpp.
8239 * s/aix4-2.h (LIB_MOTIF):
8240 * s/gnu-linux.h (LIB_MOTIF):
8241 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8242
aaa36002
DN
82432010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8244
8245 Reduce CPP usage.
8246 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8247 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8248 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8249 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8250 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8251
b678dd8b
GM
82522010-04-27 Glenn Morris <rgm@gnu.org>
8253
76cda504
GM
8254 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8255 since the defaults (set by the system file) are fine in most cases.
8256 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8257 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8258 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8259 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8260 Remove definitions, since they are set correctly in s/gnu-linux.h.
8261 * s/freebsd.h (START_FILES, LIB_STANDARD):
8262 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8263 * s/hpux10-20.h (START_FILES):
8264 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8265 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8266
b678dd8b
GM
8267 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8268 (MOTIF_LIBW): Use $LIBXP.
8269 (otherobj): Use $WIDGET_OBJ.
8270
9452ded1
DN
82712010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8272
7e10844c
DN
8273 * Makefile.in (LIBS_MACHINE): Remove, unused.
8274
9452ded1
DN
8275 Use autoconf instead of cpp for LIB_MATH.
8276 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8277 * s/cygwin.h (LIB_MATH): Likewise.
8278 * Makefile.in (LIB_MATH): Do not define with cpp.
8279 (LIBES): Use autoconf for LIB_MATH.
8280
fcebfc6a
KH
82812010-04-26 Kenichi Handa <handa@m17n.org>
8282
8283 * composite.c (Ffind_composition_internal): Fix the return value
8284 for an automatic composition.
8285
39e2ad1b
DN
82862010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8287
8288 Remove all NO_ARG_ARRAY uses.
8289 * fns.c (concat2, concat3, nconc2):
8290 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8291 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8292 * m/xtensa.h (NO_ARG_ARRAY):
8293 * m/template.h (NO_ARG_ARRAY):
8294 * m/sparc.h (NO_ARG_ARRAY):
8295 * m/sh3.h (NO_ARG_ARRAY):
8296 * m/mips.h (NO_ARG_ARRAY):
8297 * m/macppc.h (NO_ARG_ARRAY):
8298 * m/iris4d.h (NO_ARG_ARRAY):
8299 * m/intel386.h (NO_ARG_ARRAY):
8300 * m/ibms390x.h (NO_ARG_ARRAY):
8301 * m/ibms390.h (NO_ARG_ARRAY):
8302 * m/ibmrs6000.h (NO_ARG_ARRAY):
8303 * m/ia64.h (NO_ARG_ARRAY):
8304 * m/hp800.h (NO_ARG_ARRAY):
8305 * m/arm.h (NO_ARG_ARRAY):
8306 * m/amdx86-64.h (NO_ARG_ARRAY):
8307 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8308
adf4f59c
EZ
83092010-04-25 Eli Zaretskii <eliz@gnu.org>
8310
6bdf5d65
EZ
8311 * xdisp.c (display_line): Don't assume 2nd call to
8312 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
8313 (iterate_out_of_display_property): New function, body from pop_it.
8314 (pop_it): Use it.
adf4f59c 8315
dfbbda83
GM
83162010-04-24 Glenn Morris <rgm@gnu.org>
8317
8318 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8319 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8320 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8321 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8322
2d4018aa
EZ
83232010-04-24 Eli Zaretskii <eliz@gnu.org>
8324
a49884a6
EZ
8325 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8326 use `get_next_display_element' and `set_iterator_to_next' to
8327 advance to the next character, when looking for the character that
8328 begins the next row.
8329
76db6fcc 8330 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
8331 definition of "struct Lisp_Symbol".
8332
70eab5c1
GM
83332010-04-24 Glenn Morris <rgm@gnu.org>
8334
8335 * Makefile.in (CRT_DIR): New variable, set by configure.
8336 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8337 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8338
1ad4cc3d
DN
83392010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8340
e769f484
DN
8341 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8342
4196ff33
DN
8343 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8344
879b0ee4
DN
8345 Remove redundant flags.
8346 * s/freebsd.h (C_SWITCH_SYSTEM):
8347 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8348 * s/netbsd.h (C_SWITCH_SYSTEM):
8349 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8350 of these.
8351
03cbbcb8
DN
8352 Simplify m/intel386.h.
8353 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8354 user: ecrt0.c.
8355 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8356 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8357 the only user: s/unixware.h.
8358 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8359 from m/intel386.h.
bba3e508
SM
8360 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8361 Definitions moved here from m/intel386.h.
03cbbcb8 8362
1ad4cc3d
DN
8363 * m/mips.h: Remove #if 0 code.
8364
8785b888
EZ
83652010-04-23 Eli Zaretskii <eliz@gnu.org>
8366
728588cc
EZ
8367 Fix display of composed characters from L2R scripts in bidi buffers.
8368 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8369 After advancing IT past the composition, resync the bidi iterator
8370 with IT's position. (Bug#5977)
8371
a63f80b4
DN
83722010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8373
8374 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
8375 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
8376
ff5dec5c
SM
83772010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8378
8379 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
8380
8785b888
EZ
83812010-04-23 Eli Zaretskii <eliz@gnu.org>
8382
58ccf243 8383 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
8384 * xdisp.c (pop_it): When the stack is popped after displaying
8385 from a string, bidi-iterate to exit from the text portion covered
8386 by the `display' property or overlay. (Bug#5988, bug#5920)
8387
feeb1604
DN
83882010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8389
8e324eb6
DN
8390 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
8391 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
8392
809fcaba
DN
8393 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
8394 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
8395
ed710380
DN
8396 Simplify STARTFILES definition.
8397 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
8398 relying on Makefile.in to define it.
8399 * s/cygwin.h (START_FILES): Likewise.
8400 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
8401
feeb1604
DN
8402 Clean up Solaris code.
8403 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
8404 (LIB_MOTIF): Remove, configure takes care of this.
8405 (NOT_USING_MOTIF): Remove, unused.
8406 * xrdb.c: Remove #if 0-ed #include.
8407 (SYSV): Remove conditional for old SysV.
8408 * sysdep.c (closedir): Remove conditional code for Solaris,
8409 Solaris has closedir.
8410
a0d0b563
JD
84112010-04-22 Jan Djärv <jan.h.d@swipnet.se>
8412
8413 * xsettings.c (read_and_apply_settings): Check if current_font is
8414 NULL before strcmp (Bug#6001).
8415
56bae7c7
DN
84162010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
8417
8418 Clean up HP-UX files.
8419 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
8420 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
8421 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
8422 * s/hpux10-20.h: ... to the only user, here.
8423
372b7a95
EZ
84242010-04-21 Eli Zaretskii <eliz@gnu.org>
8425
8426 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
8427 use buffer-local values of paragraph-start and paragraph-separate.
8428 <paragraph_start_re, paragraph_separate_re>: Rename from
8429 fallback_paragraph_start_re and fallback_paragraph_separate_re.
8430 (Bug#5992)
8431
f904c0f9
JD
84322010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8433
8434 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
8435 current_tool_bar_style are new.
8436 (store_config_changed_event): Rename from store_font_changed_event.
8437 (XSETTINGS_TOOL_BAR_STYLE): New define.
8438 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
8439 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
8440 HAVE_XFT.
8441 (something_changedCB): store_font_changed_event is now
c4cc8b9a 8442 store_config_changed_event.
bba3e508
SM
8443 (parse_settings): Rename from parse_xft_settings.
8444 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 8445 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
8446 (apply_xft_settings): Take current settings as parameter. Do not
8447 call read_(xft)_settings.
8448 (read_and_apply_settings): New function.
bba3e508
SM
8449 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
8450 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 8451 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
8452 Call read_and_apply_settings unconditionally.
8453 (xsettings_initialize): Call init_xsettings.
8454 (Ftool_bar_get_system_style): New function.
8455 (syms_of_xsettings): Define Qmonospace_font_name and
8456 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 8457 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 8458 dynamic-setting.
31a01b90 8459 Move misplaced HAVE_GCONF
f904c0f9
JD
8460
8461 * xsettings.h (Ftool_bar_get_system_style): Declare.
8462
8463 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
8464 Qtext, Qboth, Qboth_horiz are new.
8465 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
8466 Vtool_bar_style, tool_bar_max_label_size.
8467
8468 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
8469
8470 * keyboard.c: QClabel is new.
8471 (parse_tool_bar_item): Take out QClabel from tool bar items.
8472 Try to construct a label if ther is no QClabel.
8473 (syms_of_keyboard): Intern :label as QClabel.
8474
8475 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
8476 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
8477 New.
8478
8479 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
8480 dynamic-setting.el.
8481
8482 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
8483 (xg_make_tool_item, xg_show_toolbar_item): New function.
8484 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
8485 Call xg_make_tool_item to make a tool bar item.
8486 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
8487
8488 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
8489 into account for toolbars.
8490
c632dfda
JD
84912010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8492
8493 * data.c (make_blv): Declarations before code (Bug#5993).
8494
10efe302
GM
84952010-04-21 Glenn Morris <rgm@gnu.org>
8496
8497 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
8498 Define using autoconf, not cpp.
8499 (LIBXSM): New variable, set by autoconf.
8500 (LIBXT): Use $LIBXSM.
8501
4285ac5a
DN
85022010-04-21 Dan Nicolaescu <local_user@dannlt>
8503
3ec759e7
DN
8504 Remove NOMULTIPLEJOBS, unused.
8505 * s/template.h (NOMULTIPLEJOBS):
8506 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
8507
4285ac5a
DN
8508 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8509 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
8510 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
8511 detects -znocombreloc and passes it to the linker
8512 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
8513
2807228d
GM
85142010-04-21 Glenn Morris <rgm@gnu.org>
8515
8516 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
8517
574c05e2
KK
85182010-04-21 Karel Klíč <kklic@redhat.com>
8519
8520 * Makefile.in (LIBSELINUX_LIBS): New.
8521 (LIBES): Add $LIBSELINUX_LIBS.
8522 * eval.c, lisp.h (call7): New function.
8523 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
8524 (Ffile_selinux_context, Fset_file_selinux_context):
8525 New functions.
8526 (Fcopy_file): New parameter preserve-selinux-context.
8527 (Frename_file): Preserve selinux context when renaming by copy-file.
8528
91eac4bb 85292010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 8530 Eli Zaretskii <eliz@gnu.org>
91eac4bb 8531
50426a04
JB
8532 Don't depend on cm.c or termcap.c on Windows, use stubs.
8533 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
8534 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
8535 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
8536 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
8537 (sys_tputs, sys_tgetstr): New stubs.
8538 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
8539 (tputs, tgetstr): New; define to sys_*.
91eac4bb 8540
938efb77
JB
85412010-04-20 Juanma Barranquero <lekktu@gmail.com>
8542
8543 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8544
b4bf28b7
SM
85452010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8546
8b1e1112
SM
8547 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8548 Just signal a warning rather than an error when inside a let.
8549 (Fmake_variable_frame_local): Add the same test.
8550
933ac235
SM
8551 * font.c (syms_of_font): Make the style table vars read-only.
8552
b4bf28b7
SM
8553 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8554 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8555
8556 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8557
93d68d0c
EZ
85582010-04-20 Eli Zaretskii <eliz@gnu.org>
8559
8560 Fix R2L paragraph display on TTY.
8561
8562 * xdisp.c (unproduce_glyphs): New function.
8563 (display_line): Use it when produced glyphs are discarded from R2L
8564 glyph rows.
8565 (append_composite_glyph): In R2L rows, prepend the glyph rather
8566 than appending it.
8567
8568 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8569 rather than append it. Set up the resolved_level and bidi_type
8570 attributes of the appended glyph.
283ccc18
EZ
8571 (produce_special_glyphs): Mirror the backslash continuation
8572 character in R2L lines.
93d68d0c 8573
283ccc18 8574 Implement display of R2L paragraphs in GUI sessions.
26cdf528 8575
283ccc18
EZ
8576 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8577 append_stretch_glyph.
bba3e508
SM
8578 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8579 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
8580 (append_stretch_glyph): In reversed row, prepend the glyph rather
8581 than append it. Set resolved_level and bidi_type of the glyph.
8582 (extend_face_to_end_of_line): If the row is reversed, prepend a
8583 stretch glyph whose width is such that the rightmost glyph will be
8584 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
8585 TTY frames in testing whether a line needs face extension.
8586 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
8587 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8588 region face.
bba3e508
SM
8589 (set_cursor_from_row, display_line):
8590 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 8591 row->continuation_lines_width.
283ccc18
EZ
8592 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8593 are at ZV. Fixes a crash when reseated to ZV by
8594 try_window_reusing_current_matrix.
45903529
EZ
8595 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8596 which happens with R2L glyph rows. Fixes a crash when inserting a
8597 character at end of an R2L line.
283ccc18
EZ
8598 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8599 treat them as having zero-width characters. Improve comments.
8600 Don't reverse pos_before and pos_after for reversed glyph rows.
8601 Set cursor.x to negative value when the cursor might be on the
8602 left fringe.
8603 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8604 left fringe, not the right one.
f951a506
EZ
8605 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8606 (erase_phys_cursor): For reversed cursor_row, support cursor on
8607 the left fringe.
8608
283ccc18
EZ
8609 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8610 of continuation indicators on the fringes.
8611 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8612 left fringe.
8613
f951a506
EZ
8614 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8615 draw cursor on the left fringe.
8616
8617 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8618 cursor on the left fringe.
8619
f951a506
EZ
8620 * dispnew.c (update_text_area): Handle reversed desired rows when
8621 the cursor is on the left fringe.
8622 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8623 below, not by 0, for when the cursor is on the left fringe.
8624
3bb49aaf
JD
86252010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8626
8627 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8628 widget is a scrollbar.
8629
c0be27fd
KH
86302010-04-20 Kenichi Handa <handa@m17n.org>
8631
8632 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8633 only when the arg CHARSET_LIST is nil.
8634
ce5b453a
SM
86352010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 Make variable forwarding explicit rather the using special values.
8638 Basically, this makes the structure of buffer-local values and object
8639 forwarding explicit in the type of Lisp_Symbols rather than use
8640 special Lisp_Objects for that. This tends to lead to slightly more
8641 verbose code, but is more C-like, simpler, and makes it easier to make
8642 sure we handled all cases, among other things by letting the compiler
8643 help us check it.
8644 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8645 Removing forwarding objects.
8646 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8647 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8648 explicit rather than hiding them inside Lisp_Object "values".
8649 (XFWDTYPE): New macro.
8650 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8651 (XBUFFER_LOCAL_VALUE): Remove.
8652 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8653 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8654 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8655 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8656 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8657 Remove the Lisp_Misc_* header.
8658 (struct Lisp_Buffer_Local_Value): Redefine.
8659 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8660 (struct Lisp_Misc_Any): Add filler to get the right size.
8661 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8662 Lisp_Intfwd.
8663 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8664 (DEFVAR_KBOARD): Allocate a forwarding object.
8665 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8666 (let_shadows_global_binding_p): New function.
8667 (union Lisp_Val_Fwd): New type.
8668 (make_blv): New function.
8669 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8670 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8671 (swap_in_symval_forwarding, find_symbol_value, Fset)
8672 (let_shadows_buffer_binding_p, set_internal, default_value)
8673 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8674 (Fkill_local_variable, Fmake_variable_frame_local)
8675 (Flocal_variable_p, Flocal_variable_if_set_p)
8676 (Fvariable_binding_locus):
8677 * xdisp.c (select_frame_for_redisplay):
8678 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8679 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8680 * frame.c (store_frame_param):
8681 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8682 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8683 value structure.
8684 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8685 (clone_per_buffer_values): Only adjust markers into the current buffer.
8686 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8687 (Fbuffer_local_value, set_buffer_internal_1)
8688 (swap_out_buffer_local_variables):
8689 Adapt to the new symbol value structure.
8690 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8691 (defvar_per_buffer): Take a new arg for the fwd object.
8692 (buffer_lisp_local_variables): Return a proper alist (different fix
8693 for bug#4138).
8694 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8695 (Fgarbage_collect): Don't handle buffer_defaults specially.
8696 (mark_object): Handle new symbol value structure rather than the old
8697 special Lisp_Misc_* objects.
8698 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8699 * term.c (set_tty_color_mode):
8700 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8701 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8702 a buffer_local_flags.
8703 * print.c (print_object): Get rid of impossible forwarding objects.
8704
fd3998ff
EZ
87052010-04-19 Eli Zaretskii <eliz@gnu.org>
8706
8707 * bidi.c (bidi_get_type, bidi_get_category)
8708 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8709 (bidi_type_of_next_char, bidi_level_of_next_char):
8710 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8711
e42cd1a7
JB
87122010-04-19 Juanma Barranquero <lekktu@gmail.com>
8713
8714 * dired.c (Ffile_attributes): Fix typo in docstring.
8715
6e104790 87162010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8717
8718 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8719 NSInteger (Bug#5811).
8720
6e104790 87212010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8722
8723 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8724 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8725
6e104790 87262010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8727
8728 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8729
6e104790
SM
87302010-04-19 Chong Yidong <cyd@stupidchicken.com>
8731
8732 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8733 terminal frames (Bug#5837).
8734
37dcfea0
EZ
87352010-04-19 Eli Zaretskii <eliz@gnu.org>
8736
d1da276f
EZ
8737 * .gdbinit (xsubchartable): New command.
8738
37dcfea0
EZ
87392010-04-19 Eli Zaretskii <eliz@gnu.org>
8740
8741 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8742 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8743 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8744 and
8745 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8746
e9515805
SM
87472010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8748
8749 * alloc.c (Fpurecopy): Hash-cons if requested.
8750 (syms_of_alloc): Update purify-flag docstring.
8751
22aa44a8
JD
87522010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8753
8754 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8755 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8756
ebb5722e
EZ
87572010-04-17 Eli Zaretskii <eliz@gnu.org>
8758
8759 Fix a crash when an NSM character is inserted at BEGV.
8760
8761 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8762 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8763 NEUTRAL_B or UNKNOWN_BT.
8764
0f4442ef
EZ
87652010-04-16 Eli Zaretskii <eliz@gnu.org>
8766
8767 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8768 other rows with cursor unless they are different from this row and
8769 this row is part of a continued line. (Bug#5943)
8770
7d4e45f8
DN
87712010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8772
8773 * s/freebsd.h: Restore osreldate.h include.
8774 Suggested by Naohiro Aota.
8775
5ba5ec85
J
87762010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8777
8778 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8779
20af301d
CY
87802010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8781
8782 * s/cygwin.h: Avoid linking against static libgcc.
8783
a4b000fb
JL
87842010-04-15 Juri Linkov <juri@jurta.org>
8785
8786 * window.c: Add Qscroll_command.
8787 Remove Vscroll_preserve_screen_position_commands.
8788 (window_scroll_pixel_based, window_scroll_line_based): Check the
8789 `scroll-command' property on the last command instead of searching
8790 the last command in Vscroll_preserve_screen_position_commands.
8791 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8792 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8793 (scroll-preserve-screen-position): Doc fix.
8794 (Vscroll_preserve_screen_position_commands): Remove variable.
8795
bc319ba4
DN
87962010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8797
6bb24457
DN
8798 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8799
19d4c244
DN
88002010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8801
8802 Reduce cpp use in Makefile.in.
8803 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8804 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8805 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8806 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8807 (CRT0_COMPILE): Remove, inline it in the only user.
8808
32129746
JL
88092010-04-14 Juri Linkov <juri@jurta.org>
8810
8811 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8812 `scroll-up-command' and `M-v' from `scroll-down' to
8813 `scroll-down-command'.
8814
9013a7f8
JL
88152010-04-14 Juri Linkov <juri@jurta.org>
8816
8817 * window.c (Vscroll_preserve_screen_position_commands): New variable
8818 with the default value as the list of Qscroll_down and Qscroll_up.
8819 (window_scroll_pixel_based, window_scroll_line_based): Search the
8820 last command in the list Vscroll_preserve_screen_position_commands
8821 instead of comparing with Qscroll_up and Qscroll_down.
8822
4bef8d26
JD
88232010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8824
92848133
JD
8825 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8826 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8827 does that.
8828
4bef8d26
JD
8829 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8830 to zero.
8831
58b963f7
SM
88322010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8833
84164a0d
SM
8834 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8835
2b0a91e7
SM
8836 Try to solve the problem of spurious EOF chars in long lines of text
8837 sent to interactive subprocesses.
8838 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8839 (system_process_attributes): Remove unused var `ttotal'.
8840 * process.c (send_process): Don't bother breaking long line with EOF
8841 chars when talking to ttys any more.
8842 (wait_reading_process_output): Output a warning when called in such
8843 a way that it could block without being interruptible.
8844
58b963f7
SM
8845 Try to detect file modification within the same second.
8846 * buffer.h (struct buffer): New field modtime_size.
8847 * buffer.c (reset_buffer): Initialize it.
8848 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8849 (Fverify_visited_file_modtime): Check it.
8850 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8851 (Fset_visited_file_modtime): Set (or clear) it.
8852
01f5787b
SM
88532010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8854
8855 * process.c (status_notify): Remove unused var `ro'.
8856
83725342
JD
88572010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8858
8859 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8860 more than one visual (Bug#5938).
8861
b9465836
DN
88622010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8863
50426a04
JB
8864 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8865 Undefine.
b9465836 8866
8d9c8ece
DN
88672010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8868
b1f52161
DN
8869 Remove C_SWITCH_SYSTEM_TEMACS.
8870 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8871 (malloc, realloc, free): Use emacs, not temacs for conditional
8872 definition.
8873
8874 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8875 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8876
8d9c8ece
DN
8877 Use autoconf, not cpp for some variables.
8878 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8879 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8880 (ALL_CFLAGS): Use them as make variables.
8881 (really-lwlib, really-oldXMenu): Do not pass them.
8882
1ecb2d3f
JD
88832010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8884
8885 * xmenu.c (apply_systemfont_to_dialog): New.
8886 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8887
3a4fa2f2
SM
88882010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8889
97e53006
SM
8890 * process.c (exec_sentinel): Preserve current-buffer.
8891
3a4fa2f2
SM
8892 * process.c (read_process_output): Move the save-current-buffer to
8893 apply to both the filter and the non-filter branches.
8894
88df7221
DN
88952010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8896
8897 * s/msdos.h (UNEXEC): New definition.
8898
5634ff85
YM
88992010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8900
6eff5c3d
YM
8901 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8902 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8903
8904 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8905 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8906 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8907 TRY_WINDOW_CHECK_MARGINS.
8908
8909 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8910 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8911 width only when it is for padding.
5634ff85 8912
b13aef54
J
89132010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8914
8915 * xfns.c (Fx_show_tip): Call try_window in a loop until
8916 fonts_changed_p is zero (Bug#2423).
8917
21d28484
EZ
89182010-04-08 Eli Zaretskii <eliz@gnu.org>
8919
8920 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8921 the end of TEXT_AREA. (Bug#5856)
8922
0269ef77
JD
89232010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8924
8925 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8926 HAVE_GCONF.
8927
5930fe97
EZ
89282010-04-08 Eli Zaretskii <eliz@gnu.org>
8929
8930 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8931 prev.orig_type, for resolving type of NSM. (Bug#5858)
8932
99852628
JD
89332010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8934
8935 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8936 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8937 in current_font.
8938 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8939 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8940 New functions.
8941 (syms_of_xsettings): Initialize current_font.
8942 defsubr Sfont_get_system_normal_font.
99852628 8943
686b968e
JB
8944 * xsettings.h (Ffont_get_system_normal_font)
8945 (xsettings_get_system_normal_font): Declare.
99852628
JD
8946
8947 * xfns.c (extern xlwmenu_default_font): Remove.
8948 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8949 to xlwmenu.c.
8950
8951 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8952 menu items in UTF-8.
8953
2f8f196d 8954 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 8955 (apply_systemfont_to_menu): New function.
bba3e508
SM
8956 (set_frame_menubar, create_and_show_popup_menu):
8957 Call apply_systemfont_to_menu.
99852628 8958
7fc874c4
J
89592010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8960
8961 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8962 FRAME_LINE_TO_PIXEL_Y.
8963
8964 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8965 pixelwidth/height.
8966
863bf481
DN
89672010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8968
5e5a3b92
DN
8969 Simplify code for HP machines.
8970 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8971 for GNU_LINUX, not needed.
8972 (UNEXEC, NEED_BSDTTY): Move definitions...
8973 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8974
863bf481
DN
8975 * m/iris4d.h (UNEXEC): Move definition ...
8976 * s/irix6-5.h (UNEXEC): ... here.
8977
3e6bec3b
JD
89782010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8979
8980 * xfns.c (set_machine_and_pid_properties): New function.
8981 (Fx_create_frame): Call set_machine_and_pid_properties.
8982
2912322b
SM
89832010-04-03 Eli Zaretskii <eliz@gnu.org>
8984
bba3e508
SM
8985 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8986 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8987 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8988
2912322b
SM
8989 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8990 in this function. (Bug#5703)
8991
89922010-04-03 Chong Yidong <cyd@stupidchicken.com>
8993
8994 * nsterm.h: Fix last change.
8995
c435b432
DN
89962010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8997
a568f507
DN
8998 * m/intel386.h (NO_REMAP): Move definition ...
8999 * s/msdos.h (NO_REMAP): ... here.
9000
4cd9f6c2
DN
9001 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9002
c435b432
DN
9003 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9004 used on those platforms.
9005
42a2c622
DN
90062010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9007
9008 Remove extern errno declarations.
9009 * xterm.c:
9010 * xrdb.c:
9011 * w32term.c:
9012 * unexec.c:
9013 * unexaix.c:
9014 * sysdep.c:
9015 * process.c:
9016 * lread.c:
9017 * keyboard.c:
9018 * floatfns.c:
9019 * filelock.c:
9020 * fileio.c:
9021 * emacs.c (main):
9022 * ecrt0.c:
9023 * dispnew.c:
9024 * callproc.c:
9025 * buffer.c: Remove errno extern declarations.
9026 * s/netbsd.h (NEED_ERRNO): Remove.
9027
8224f93d
DN
90282010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9029
9030 Remove all uses of LIBX11_SYSTEM.
9031 * Makefile.in (LIBX11_SYSTEM): Remove.
9032 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9033 instead.
9034
814062c7
EZ
90352010-04-01 Eli Zaretskii <eliz@gnu.org>
9036
ed68db4d
EZ
9037 Remove support for DJGPP v1.x (bug#5813).
9038
9039 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
9040 * s/msdos.h:
9041 * unexec.c (make_hdr, copy_text_and_data):
9042 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 9043 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
9044 (IT_set_terminal_modes, __write, _rename, gethostname)
9045 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9046 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9047 the value of __DJGPP__.
ed68db4d
EZ
9048 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9049 compatibility code.
8224f93d
DN
9050 * lread.c:
9051 * gmalloc.c (memalign):
9052 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9053 * emacs.c (main):
9054 * dosfns.c (init_dosfns):
ed68db4d
EZ
9055 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9056
52f4d8d5
EZ
90572010-04-01 Eli Zaretskii <eliz@gnu.org>
9058
814062c7
EZ
9059 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9060 string with `cursor' property comes from an `after-string'
9061 overlay. (Bug#5816)
9062
0dc2e11d
GM
90632010-04-01 Glenn Morris <rgm@gnu.org>
9064
9065 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9066 Define as Makefile variables.
9067 (LIBX): Use above variables rather than directly using autoconf.
9068
1d29df59
DN
90692010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9070
9071 Clean up BSD_SYSTEM use.
9072 * xterm.c:
9073 * process.c:
9074 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9075 for including <sys/ioctl.h>.
9076 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9077 code is only used for MSDOS.
9078
1546c559
JL
90792010-03-31 Juri Linkov <juri@jurta.org>
9080
9081 * image.c: Add `Qextension_data'.
9082 (syms_of_image): Initialize and staticpro `Qextension_data'.
9083 (Fimage_metadata): Rename from `Fimage_extension_data'.
9084 (gif_load): Put GIF extension data to the property
9085 `Qextension_data'.
9086
6521c534
CY
90872010-03-31 Chong Yidong <cyd@stupidchicken.com>
9088
9089 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9090 * nsterm.h: Fix prototype.
9091
52c30783
EZ
90922010-03-31 Eli Zaretskii <eliz@gnu.org>
9093
9094 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9095 trailing whitespace in right-to-left rows.
9096
855a0da7
SM
90972010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9098
9099 Get rid of the direct_output optimizations.
9100 * keyboard.c (nonundocount): Remove extern declaration.
9101 (command_loop_1): Remove brittle optimisation for cheap and
9102 common operations.
9103 * xdisp.c (redisplay_internal): Don't bother checking
9104 redisplay_performed_directly_p any more.
9105 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9106 any more.
9107 * dispnew.c (redisplay_performed_directly_p)
9108 (direct_output_for_insert, direct_output_forward_char):
9109 * dispextern.h (redisplay_performed_directly_p)
9110 (direct_output_for_insert, direct_output_forward_char): Remove.
9111 * cmds.c (nonundocount): Make it static.
9112
85738751 91132010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
9114
9115 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9116
85738751 91172010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
9118
9119 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9120 invisible (Bug#5766).
9121
85738751 91222010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 9123
855a0da7
SM
9124 * xdisp.c (x_consider_frame_title, update_window_cursor):
9125 Remove HAVE_NS conditionals.
194d44e7 9126 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
9127
9128 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9129 filename for the title.
9130 (ns_set_doc_edited): Do nothing if the selected window is a
9131 minibuffer window.
9132
9133 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9134 ns_set_doc_edited.
9135
9136 * nsterm.m: Remove unneeded prototype.
9137
85738751 91382010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9139
9140 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9141 in the DOC file. (Bug#5336)
9142
85738751 91432010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9144
9145 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9146
75d1428c
SM
91472010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9148
9149 * window.c (keys_of_window): Remove redundant/overridden bindings.
9150
82043cfb
EZ
91512010-03-30 Eli Zaretskii <eliz@gnu.org>
9152
9153 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9154 Restore original behavior when the iterator is not bidi_p.
9155
b5dd0ae7
DN
91562010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9157
9158 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9159
bd924a5d
EZ
91602010-03-30 Eli Zaretskii <eliz@gnu.org>
9161
9162 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9163 are outside the range of cached character positions.
9164
3580374b
JB
91652010-03-30 Juanma Barranquero <lekktu@gmail.com>
9166
9167 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9168
a7b02820
EZ
91692010-03-30 Eli Zaretskii <eliz@gnu.org>
9170
9171 Initial support for bidirectional editing.
9172
9173 * Makefile.in (obj): Include bidi.o.
9174 (bidi.o): New target.
9175
9176 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9177 ($(BLD)/bidi.$(O)): New target.
9178
9179 * bidi.c: New file.
9180
9181 * buffer.h (struct buffer): New members bidi_display_reordering
9182 and bidi_paragraph_direction.
9183
9184 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9185 and bidi_paragraph_direction.
9186 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9187 and bidi-paragraph-direction.
9188 (Fbuffer_swap_text): Swap the values of
9189 bidi_display_reordering and bidi_paragraph_direction.
9190
9191 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9192 (bidi_type_t, bidi_dir_t): New types.
9193 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9194 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9195 prev_stop, base_level_stop, and eol_pos.
9196 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9197 (IT_STACK_SIZE): Enlarge to 5.
9198 (struct glyph_row): New member reversed_p.
9199 <string_buffer_position>: Update prototype.
9200 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9201 glyph_row if bidi_it.paragraph_dir == R2L.
9202 (struct glyph): New members resolved_level and bidi_type.
9203
9204 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9205 processing or buffer's direction is right-to-left.
9206 (prepare_desired_row): Preserve the reversed_p flag.
9207 (row_equal_p): Compare the reversed_p attributes as well.
9208
bba3e508
SM
9209 * xdisp.c (init_iterator): Initialize it->bidi_p.
9210 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9211 buffer's value of bidi_paragraph_direction.
9212 (reseat_1): Initialize bidi_it.first_elt.
9213 (set_iterator_to_next, next_element_from_buffer): Use the value of
9214 paragraph_embedding to determine the paragraph direction.
9215 (set_iterator_to_next): Under bidi reordering, call
9216 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9217 new_paragraph flag is set in the bidi iterator.
9218 (next_element_from_buffer): If bidi_it.first_elt is set,
9219 initialize paragraph direction and find the first character to
9220 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9221 prime the bidi iterator starting at the line's beginning.
9222 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9223 non-linearity of the bidi iteration. Likewise for when we back up
9224 beyond the previous stop_charpos. When moving across stop_charpos,
9225 record it in prev_stop.
9226 (display_line): Set row->end and it->start for the next row to the
9227 next character in logical order. Always extend reversed_p rows to
9228 the end of line, even if they end at ZV. Copy the reversed_p flag
9229 to the next glyph row. Keep calling set_cursor_from_row for
9230 bidi-reordered rows even if we already have a possible candidate
9231 for cursor position. Set row_end after all the row's glyphs have
9232 been produced, by looping over the glyphs. Record the position
9233 after EOL in it->eol_pos, and use it to set end_pos of the last
9234 row produced for a continued line.
9235 <Qright_to_left, Qleft_to_right>: New variables.
9236 (syms_of_xdisp): Initialize and staticpro them.
9237 (string_buffer_position_lim): New function.
9238 (string_buffer_position): Most of code moved to
9239 string_buffer_position_lim. Last argument and return value are
9240 now EMACS_INT; all callers changed.
9241 (set_cursor_from_row): Rewritten to support bidirectional text and
9242 reversed glyph rows.
bba3e508
SM
9243 (text_outside_line_unchanged_p, try_window_id):
9244 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9245 paragraph direction can be affected by the change.
9246 (append_glyph, append_composite_glyph)
9247 (produce_image_glyph, append_stretch_glyph): Set the
9248 resolved_level and bidi_type members of each glyph.
9249 (append_glyph): If the glyph row is reversed, prepend the glyph
9250 rather than appending it.
9251 (handle_stop_backwards): New function.
9252 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 9253 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
9254 base_level_stop for the new position.
9255 (handle_invisible_prop): Under bidi iteration, skip invisible text
9256 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9257 paragraph direction. Update IT->prev_stop after skipping
9258 invisible text.
9259 (move_it_in_display_line_to): New variables prev_method
9260 and prev_pos. Compare for strict equality in
9261 BUFFER_POS_REACHED_P.
9262 (try_cursor_movement): Examine all the candidate rows that occlude
9263 point, to return the best match. If rows are bidi-reordered
9264 and point moved backwards, back up to the row that is not a
9265 continuation line, and start looking for a suitable row from
9266 there.
9267
9268 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9269 rather than appending, if the glyph_row's reversed_p flag is set.
9270 Set the resolved_level and bidi_type members of each glyph.
9271
9272 * .gdbinit (pbiditype): New command.
9273 (pgx): Use it to display bidi level and type of the glyph.
9274 (pitx): Display some bidi information about the iterator.
9275 (prowlims, pmtxrows): New commands.
9276
32a8894e
DN
92772010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9278
9279 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9280 * s/usg5-4.h (LIBS_DEBUG):
9281 * s/irix6-5.h (C_DEBUG_SWITCH):
9282 * s/gnu-linux.h (LIBS_DEBUG):
9283 * s/darwin.h (LIBS_DEBUG):
9284 * s/bsd-common.h (LIBS_DEBUG):
9285 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9286 * m/iris4d.h (LIBS_DEBUG):
9287 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9288
9289 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9290 (LIBS_DEBUG): Remove definition.
9291
649dbf36
CY
92922010-03-27 Chong Yidong <cyd@stupidchicken.com>
9293
9294 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9295 Windows.
9296
cad4261f
YM
92972010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9298
9299 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9300 `connect' (Bug#5723).
9301
cd591dbc
HE
93022010-03-25 Helmut Eller <eller.helmut@gmail.com>
9303
9304 * process.c (Fmake_network_process): Call `select' for interrupted
9305 `connect' rather than creating new socket (Bug#5173).
9306
e867cb5d 93072010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
9308
9309 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9310
9311 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9312
9313 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9314
e867cb5d 93152010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
9316
9317 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9318 XLoadQueryFont.
9319
e867cb5d 93202010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
9321
9322 * coding.c (decode_coding_ccl): Fix previous change for the
9323 multibyte case.
fb608df3
KH
9324 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9325 case that the output buffer is fullfilled.
9326 (encode_coding): Setup ccl program here.
fbdc1721 9327
5845f0ed
DN
93282010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9329
814fb708
DN
9330 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9331
5845f0ed
DN
9332 Simplify LIBS_MACHINE definitions.
9333 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9334 * m/iris4d.h (LIBS_MACHINE): Likewise.
9335 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9336 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 9337 * s/netbsd.h: Remove commented out code.
5845f0ed 9338
b7064064
DN
93392010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9340
df7734b2
DN
9341 Remove dead code dealing with POSIX_SIGNALS.
9342 * atimer.c (set_alarm): Remove dead code, all USG systems define
9343 POSIX_SIGNALS.
9344 * data.c (arith_error): Likewise.
9345 * keyboard.c (input_available_signal, handle_user_signal)
9346 (interrupt_signal): Likewise.
9347 * process.c (sigchld_handler): Likewise.
9348 (create_process): Remove if 0 code. Remove HPUX conditional when
9349 !defined (POSIX_SIGNALS), it cannot be true.
9350 * syssignal.h: Remove USG5_4 and USG conditionals when
9351 !POSIX_SIGNALS, they cannot be true.
9352
b7064064
DN
9353 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9354 NO_SOCK_SIGIO, not used anymore.
9355
55da5ee3
DN
93562010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9357
0be96e3a
DN
9358 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9359 support vax on BSDs.
9360
55da5ee3
DN
9361 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9362 * s/aix4-2.h (ORDINARY_LINK): ... here.
9363
c0282183
AS
93642010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9365
82c3d67a
AS
9366 * Makefile.in (abs_builddir): Define.
9367 (bootstrap_exe): Use it.
9368 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 9369
3613edce
SM
93702010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9371
9372 * Makefile.in (bootstrap_exe): Use an absolute name.
9373
7f110ddc
DN
93742010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9375
22e87574
DN
9376 Remove support for old GNU/Linux using libc version 5.
9377 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
9378 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
9379
05a670e6
DN
9380 Consolidate redundant definitions in s/bsd-common.h.
9381 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9382 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9383 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
9384 doing it in all files that include this one.
9385 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9386 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9387 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9388 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9389 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9390 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9391 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9392 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9393 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9394
2968f561
DN
9395 Consolidate redundant definitions.
9396 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
9397 it's undefined in all files that include this one.
9398 (POSIX_SIGNALS): Define here instead of doing it in all files that
9399 include this one.
9400 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9401 (POSIX_SIGNALS): Do not define.
9402 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9403 (POSIX_SIGNALS): Do not define.
9404 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9405 (POSIX_SIGNALS): Do not define.
9406
15d25dc0
DN
9407 Remove support for old UNIX System V systems.
9408 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
9409 * s/usg-5-4-2.h: Remove.
9410
07e339e4
DN
9411 Remove support for Solaris on PPC and for old versions.
9412 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
9413 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
9414 that cancel each other.
9415 * s/sol2-3.h:
9416 * s/sol2-4.h:
9417 * s/sol2-5.h: Remove.
9418 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
9419 (NO_REMAP): Remove, unused.
9420 (UNEXEC): Move definition ...
9421 * s/aix4-2.h (UNEXEC): ... here.
9422
7f110ddc
DN
9423 * s/openbsd.h: Remove support for non-ELF and for systems that do
9424 not support shared libraries.
9425 * s/netbsd.h:
9426 * s/freebsd.h: Likewise.
9427
605f35cd
DN
94282010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9429
9430 Remove non-working support for lynxos 3.0.
9431 * s/lynxos.h: Remove file.
9432
9433 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
9434 COFF_BSD_SYMBOLS, nothing defines it anymore.
9435
aed71cf4
DN
94362010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9437
9438 Remove obsolete uses of HAVE_SHM.
9439 * emacs.c (standard_args):
9440 (Fdump_emacs):
9441 (syms_of_emacs): Remove code depending on HAVE_SHM.
9442
9443 * alloc.c: Remove HAVE_SHM dependent definition.
9444
9445 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
9446
aded53ff
GM
94472010-03-18 Glenn Morris <rgm@gnu.org>
9448
17284745
GM
9449 * emacs.c (USAGE4): Hard-code bug address.
9450 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
9451 (bug_reporting_address): Remove.
9452 (main): Don't call bug_reporting_address.
9453
aded53ff
GM
9454 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
9455 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
9456
303500aa
CY
94572010-03-15 Chong Yidong <cyd@stupidchicken.com>
9458
9459 * xfns.c (Fx_create_frame):
9460 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
9461 on left.
9462
cef3058f
CY
94632010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
9464
9465 * editfns.c (Fformat): Account for string precision when computing
9466 field width (Bug#5710).
9467
a647d59d
CY
94682010-03-12 Chong Yidong <cyd@stupidchicken.com>
9469
4fa42018
CY
9470 * xfns.c (Fx_create_frame): Set default to Qright.
9471
a647d59d
CY
9472 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
9473 all window systems.
9474
6da23aaa
EZ
94752010-03-12 Eli Zaretskii <eliz@gnu.org>
9476
a96f6398 9477 These changes remove termcap.c from the build on Posix platforms.
83d02def 9478 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
9479 (MSDOS_OBJ): ...to here.
9480 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
9481 now identical to when LIBS_TERMCAP is defined.
9482
9483 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9484
9485 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
9486
a96f6398 9487 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 9488
288f9fc0
CY
94892010-03-10 Chong Yidong <cyd@stupidchicken.com>
9490
9491 * Branch for 23.2.
9492
d48cd3f4
SM
94932010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9494
9495 Cleanup setup of gl_state in various parts of the code.
9496 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
9497 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
9498 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
9499 (skip_chars):
9500 * regex.c (regex_compile): Use it.
9501 (re_compile_pattern): Don't set gl_state.current_syntax_table since
9502 it's now set in regex_compile when/if we need it.
9503
618db430
SM
95042010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
9505
c0335e02
SM
9506 Make it possible to C-g in a tight bytecode loop again (bug#5680).
9507 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
9508 (QUIT): Use it to consolidate code and remove redundancy.
9509 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
9510
254c06a8
SM
9511 * regex.c (regex_compile): Setup gl_state as well.
9512
618db430
SM
9513 * syntax.c (skip_chars): Setup gl_state (bug#3823).
9514 (in_classes): Use CONSP before XCAR/XCDR.
9515
233f0c9f
CY
95162010-03-03 Chong Yidong <cyd@stupidchicken.com>
9517
9518 * keymap.c (Fwhere_is_internal): Use Fequal to compare
9519 definitions, so that keyboard macros are correctly handled
9520 (Bug#5481).
9521
75f80e63
EZ
95222010-03-02 Eli Zaretskii <eliz@gnu.org>
9523
9524 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
9525 text that could be relocated inside the call to emacs_mule_char.
9526 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
9527 (CODING_DECODE_CHAR): Add a comment describing its purpose.
9528
dcfb9bc4
KH
95292010-03-02 Kenichi Handa <handa@m17n.org>
9530
fc9a17bc
KH
9531 * character.c (parse_str_as_multibyte): Fix handling of the
9532 multibyte form of raw-bytes.
9533 (str_as_multibyte): Likewise.
9534
dcfb9bc4
KH
9535 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
9536 form of raw-bytes.
9537
412c01b6
CY
95382010-02-28 Chong Yidong <cyd@stupidchicken.com>
9539
9540 * charset.c (load_charset_map_from_file)
9541 (load_charset_map_from_vector): Zero out allocated
9542 charset_map_entries before using them.
9543
df7e1ea0
AS
95442010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9545
9546 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9547
fe69a722
CY
95482010-02-27 Chong Yidong <cyd@stupidchicken.com>
9549
4ed28cf4
CY
9550 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9551 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 9552
7379cfce
KH
95532010-02-26 Kenichi Handa <handa@m17n.org>
9554
f88cc4d6
KH
9555 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9556
7379cfce
KH
9557 * xdisp.c (reseat_to_string): Fix previous change.
9558
cf2fdcfb
CY
95592010-02-26 David Reitter <david.reitter@gmail.com>
9560
9561 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9562 Lisp_Object (Bug#4736).
9563
cc6c7c75
KH
95642010-02-25 Kenichi Handa <handa@m17n.org>
9565
9566 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9567
32e737d7
JD
95682010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9569
9570 * xterm.c (XTflash): Move declarations before statements.
9571
9572 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9573 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9574 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9575 (xg_create_tool_bar): Remove unused variables.
9576 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 9577 (xg_create_frame_widgets): Remove variable grav.
32e737d7 9578
676cae9f
CY
95792010-02-21 Chong Yidong <cyd@stupidchicken.com>
9580
9581 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9582
886cc2b8
SM
95832010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9584
9585 * term.c (fatal): Add a final \n if needed (bug#5596).
9586
ddb2d8e2
CY
95872010-02-18 Chong Yidong <cyd@stupidchicken.com>
9588
9589 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9590
2a4f8d3d
GM
95912010-02-18 Glenn Morris <rgm@gnu.org>
9592
9593 * callint.c (Finteractive): Doc fix.
9594
ebaf11b6
KH
95952010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9596
886cc2b8
SM
9597 * coding.c (record_conversion_result):
9598 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
9599 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9600 memory allocation error.
9601
d0396581
KH
96022010-02-17 Kenichi Handa <handa@m17n.org>
9603
886cc2b8
SM
9604 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9605 Fix for the case that the output buffer is fullfilled.
d0396581
KH
9606 (decode_coding): Setup ccl program here. Keep looping when the
9607 decoder stopped because the output buffer is
9608 fullfilled (bug#5534).
9609
9610 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9611
98599f74
JD
96122010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9613
471e4f04 9614 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 9615 bug #5571.
886cc2b8 9616 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 9617 overdrawn.
98599f74 9618
182659ae
JD
96192010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9620
9621 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9622 doing_interact here.
9623 (ice_connection_closed): New function.
9624 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9625 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9626 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9627 returns I/O error.
9628 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9629 bug #5512.
9630
9be32c4e 96312010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9632
9633 * nsfont.m (nsfont_open): The system's value for the font descent
9634 is negative, so round it down to avoid clipping.
9635
a2f3eb19
CY
96362010-02-06 Chong Yidong <cyd@stupidchicken.com>
9637
9638 * charset.c (load_charset_map_from_file)
9639 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9640 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9641
3088147c
CY
96422010-02-05 Chong Yidong <cyd@stupidchicken.com>
9643
9644 * charset.c (load_charset_map_from_file): Allocate large
9645 charset_map_entries structure on the heap rather than the stack.
9646 (Bug#5526).
9647
b57d9029
KH
96482010-01-31 Kenichi Handa <handa@m17n.org>
9649
9650 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9651 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9652
c67d885b
CY
96532010-01-31 Chong Yidong <cyd@stupidchicken.com>
9654
9655 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9656 <deactivated@gmail.com> (Bug#3605).
9657
8fab2362
CY
96582010-01-31 David De La Harpe Golden <david@harpegolden.net>
9659
9660 * fileio.c (Frename_file): Correctly rename symlinks to
9661 directories (Bug#5496).
9662
cb2a62f2
CY
96632010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9664
9665 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9666
944c7a26
AS
96672010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9668
9669 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9670
c024ac08
CY
96712010-01-29 Chong Yidong <cyd@stupidchicken.com>
9672
9673 * frame.c (DEFAULT_ROWS): Change default to 35.
9674
9675 * xfns.c (x_default_font_parameter): Change default XFT font to
9676 monospace-10 (Bug#3643).
9677
af93af83
EZ
96782010-01-29 Eli Zaretskii <eliz@gnu.org>
9679
9680 * w32inevt.c (key_event): Remove unnecessary comparison of
9681 event->uChar.AsciiChar with 128.
9682
ca0eb708
CY
96832010-01-28 Chong Yidong <cyd@stupidchicken.com>
9684
b242dbfc
CY
9685 * fileio.c (Frename_file): Fix last change (Bug#5487).
9686
ca0eb708
CY
9687 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9688
9689 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9690
45d45af5
JD
96912010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9692
9693 * xfns.c (Fx_create_frame): Remove window size matching code from
9694 2010-01-15.
a73f9c9d 9695 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9696
7e233730
JR
96972010-01-27 Jason Rumney <jasonr@gnu.org>
9698
9699 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9700 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9701
86e893e3
KH
97022010-01-27 Kenichi Handa <handa@m17n.org>
9703
9704 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9705 pattern string (Bug#4209).
86e893e3 9706
8719abec
CY
97072010-01-27 David De La Harpe Golden <david@harpegolden.net>
9708
9709 * fileio.c (Frename_file): Call copy-directory and
9710 delete-directory for directories, in order to handle cross-device
9711 renaming (Bug#3353).
9712
844794c8
JD
97132010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9714
aa3e13b5 9715 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9716 sizes 24 and 10. Bug #3643.
844794c8 9717
bd4b5750
SM
97182010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9719
8dc1adf6 9720 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9721 * keymap.c (shadow_lookup): Add `remap' arg.
9722 (describe_map, describe_vector): Update calls to shadow_lookup.
9723 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9724 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9725 perform remapping during shadow_lookup check of remapped_sequences.
9726
285d07e2
CY
97272010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9728
9729 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9730 png_check_sig, which has been removed in libpng 1.4.
9731
c6d09b8d
CY
97322010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9733
9734 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9735 lacks this header file).
9736
3d782998
YM
97372010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9738
9739 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9740 as in Emacs 22.
9741
2aff7c53
YM
97422010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9743
9744 * lisp.h (make_pure_string): String pointer arg now points to const.
9745
9746 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9747 args now point to const.
9748
74327f7a
EZ
97492010-01-22 Eli Zaretskii <eliz@gnu.org>
9750
9751 * lread.c (Fload): Don't treat files without .elc extension as
9752 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9753 them. (bug#5303)
9754
4d1e6632
KH
97552010-01-20 Kenichi Handa <handa@m17n.org>
9756
9757 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9758 treat the source as actual byte sequence.
9759
1fdede8f
AM
97602010-01-19 Alan Mackenzie <acm@muc.de>
9761
9762 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9763 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9764 `signal_after_change_p' to `coherent_change_p', and make the
9765 invocation of `modify_region' conditional on it.
9766
67477f30
JD
97672010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9768
9769 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9770 for debug purpose.
9771 (syms_of_xsettings): Declare xft-settings.
9772
244b023e
CY
97732010-01-18 Chong Yidong <cyd@stupidchicken.com>
9774
9775 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9776
617364fe
CY
97772010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9778
9779 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9780
4fe22cdf
CY
97812010-01-16 Chong Yidong <cyd@stupidchicken.com>
9782
9783 * emacs.c (standard_args): Adjust arg priorities to reflect how
9784 they are processed in startup.el.
9785
e118d2be
AS
97862010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9787
9788 * Makefile.in (lisp, shortlisp): Update.
9789
523ae620
SM
97902010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9791
9792 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9793 code, link the new kboard into all_kboard before running Lisp code,
9794 and protect the new terminal with GCPRO (Bug#5365).
9795 (x_term_init): Remove unused var `atom'.
9796 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9797
f0d13888
JD
97982010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9799
9800 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9801 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9802 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9803 this. Bug #3643.
f0d13888 9804
cc320f07
KH
98052010-01-15 Kenichi Handa <handa@m17n.org>
9806
9807 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9808
7ffdf101
CY
98092010-01-15 Chong Yidong <cyd@stupidchicken.com>
9810
9811 * nsterm.m (Qnone): Define.
9812
9813 * nsfns.m (Qnone): Move definition to nsterm.m.
9814
d12bd917
KH
98152010-01-14 Kenichi Handa <handa@m17n.org>
9816
9817 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9818 systems.
9819
d9a7c140
KH
98202010-01-14 Kenichi Handa <handa@m17n.org>
9821
9822 Make auto-composition work on all buffers even if they are
9823 fundamental mode.
9824
9825 * composite.c (Vauto_composition_mode): New variable.
9826 (composition_compute_stop_pos): Check Vauto_composition_mode
9827 instead of Vauto_composition_function.
9828 (composition_adjust_point, Ffind_composition_internal): Likewise.
9829 (syms_of_composite): Declare Lisp variable
9830 "auto-composition-mode" here.
9831
63286bb2
CY
98322010-01-13 Chong Yidong <cyd@stupidchicken.com>
9833
9834 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9835 during call to vendor-specific-keysyms (Bug#5365).
9836
c2623ee7
YM
98372010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9838
9839 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9840 Call SIGNAL_THREAD_CHECK (Bug#5333).
9841
9842 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9843 Call SIGNAL_THREAD_CHECK.
9844
0b5397c2
SM
98452010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9846
9847 Try to fix bug#5314. This is probably not the final word, tho.
9848 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9849 recent-auto-save-p as a side-effect.
9850 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9851 * buffer.c (Fkill_buffer, reset_buffer):
9852 * editfns.c (Fsubst_char_in_region):
9853 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9854 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9855
dc954cb2
KH
98562010-01-13 Kenichi Handa <handa@m17n.org>
9857
9858 Display buffer name, etc. in mode line by composing correctly.
9859
9860 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9861 STRING is not nil.
0b5397c2 9862 (display_mode_element): Adjust for the change of
dc954cb2
KH
9863 decode_mode_spec and display_line.
9864 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9865 (display_string): Handle the case that STRING is non-null and
9866 LISP_STRING is not nil.
9867
0b5397c2
SM
9868 * xterm.c (x_draw_composite_glyph_string_foreground):
9869 Pay attention to s->face->overstrike.
dc954cb2
KH
9870
9871 * composite.c (composition_reseat_it): Don't check PT if STRING is
9872 non nil.
9873
4a00eaca
YM
98742010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9875
9876 * keyboard.c (read_char): Don't apply previous change when current
9877 buffer is unchanged by command execution.
9878
60abb287
JD
98792010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9880
9881 * keyboard.c (read_char): Return after executing from special map.
9882
893db5bc
GM
98832010-01-12 Glenn Morris <rgm@gnu.org>
9884
9885 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9886 bug-gnu-emacs rather than emacs-pretest-bug.
9887
4d03ece0
CY
98882010-01-11 Chong Yidong <cyd@stupidchicken.com>
9889
9890 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9891 initializing the Lisp variables that depend on them.
9892
1df47e38
YM
98932010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9894
9895 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9896 Clear areas that will not be updated after change of menu bar lines.
9897 Clear the menu bar window's current matrix when the window gets empty.
9898
2f1c6384
CY
98992010-01-09 Chong Yidong <cyd@stupidchicken.com>
9900
e398c61c
CY
9901 * intervals.h, textprop.c (extend_property_ranges): Return value
9902 and args changed. Discard properties that begin at or after the
9903 new end (Bug#5306).
9904
9905 * editfns.c (Fformat): Caller changed.
9906
e5a29a10
CY
9907 * nsterm.m (ns_set_default_prefs): Delete function.
9908 (syms_of_nsterm): Initialize ns_command_modifier,
9909 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9910 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9911
2f1c6384
CY
9912 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9913 position (Bug#4040).
9914
d427a9fa
EZ
99152010-01-09 Eli Zaretskii <eliz@gnu.org>
9916
9917 * editfns.c (Ffloat_time): Doc fix.
9918
21b9df2f
JD
99192010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9920
9921 * xfns.c (Fx_create_frame): Don't create frame larger than display
9922 by default bug#3643.
9923
4b00d3b1
YM
99242010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9925
9926 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9927 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9928 windows above internal border.
9929
9930 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9931 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9932 windows above internal border.
9933
9934 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9935 tool bar windows specially.
9936
9937 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9938
9939 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9940 specially.
9941 (XTflash): Take account of menu bar height.
9942
9943 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9944 specially.
9945
5075d853
JD
99462010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9947
ac146f82 9948 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9949 also be true before we can return early (bug #5339).
9950
474217c8
CY
99512010-01-06 David Reitter <david.reitter@gmail.com>
9952
9953 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9954 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9955 (Bug#3233).
9956
c0e6d47d
JD
99572010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9958
d0cf45b7
JD
9959 * font.c (font_open_entity): Enable chache and call cached_font_ok
9960 for the driver if defined.
9961 (QCuser_spec): New symbol.
9962 (font_spec_from_name): Save name as user-spec.
9963 (font_load_for_lface): Keep user-spec instead of name.
9964 (font_open_by_name): Save name as user-spec.
9965 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9966 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9967
9968 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9969 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9970 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9971
9972 * font.h (struct font_driver): Add cached_font_ok.
9973
c0e6d47d
JD
9974 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9975
7c583cd8
JD
99762010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9977
9978 * xterm.c (x_new_font): Move code for setting rows/cols before
9979 resizing ...
ac146f82 9980 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9981
9982 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9983 (xg_frame_resized, xg_frame_set_char_size):
9984 Call xg_clear_under_internal_border.
7c583cd8 9985 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9986
03f77f0a
CY
99872010-01-05 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * keyboard.c (read_key_sequence): Catch keyboard switch after
9990 making a new tty frame (Bug#5095).
9991
2a1ef5be
KH
99922010-01-05 Kenichi Handa <handa@m17n.org>
9993
9994 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9995
e3eb1dae
SM
99962010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9997
9998 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9999 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10000 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10001
777013f2
MA
100022010-01-03 Michael Albinus <michael.albinus@gmx.de>
10003
10004 * dbusbind.c (xd_add_watch): Improve debug message.
10005 (xd_remove_watch): Improve debug message. If DATA is the session
10006 bus, unset D-Bus session environment.
10007 (Fdbus_init_bus): Pass the bus as argument to
10008 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10009
8932b1c2
CY
100102010-01-01 Chong Yidong <cyd@stupidchicken.com>
10011
87231e2c
CY
10012 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10013
4801c5fa
CY
10014 * lread.c (syms_of_lread): Make it clearer that these are the
10015 names of loaded files (Bug#5068).
10016
8932b1c2
CY
10017 * eval.c (run_hook_with_args): Handle the case where the global
10018 value has the obsolete single-function form (Bug#5026).
10019
11e3c684
CY
100202009-12-27 Chong Yidong <cyd@stupidchicken.com>
10021
10022 * minibuf.c (Fall_completions): Minor optimization.
10023
5b28ce35
EZ
100242009-12-26 Eli Zaretskii <eliz@gnu.org>
10025
5ce6e4f4
JB
10026 * .gdbinit (pgx): Fix display of composite glyphs.
10027 Display cmp.from and cmp.to as well.
10028 (pitx): Fix last change.
5b28ce35 10029
bcffff46
KH
100302009-12-25 Kenichi Handa <handa@m17n.org>
10031
10032 * composite.h (composition_adjust_point): Update prototype.
10033
10034 * composite.c (composition_reseat_it): Don't make a composition
10035 spanning over point.
10036 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10037 composable characters.
10038 (composition_adjust_point): New arg NEW_PT. Callers changed.
10039
10040 * keyboard.c (command_loop_1): Force redisplay if the last point
10041 was within a composition.
10042 (adjust_point_for_property): Don't adjust point for automatic
10043 composition when called after buffer modification.
10044
3f670e9a
EZ
100452009-12-19 Eli Zaretskii <eliz@gnu.org>
10046
5ce6e4f4
JB
10047 * .gdbinit (pitx): Don't use enum names, use their values.
10048 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
10049 (pgx): Don't use enum names, use their values.
10050 (pitmethod): New helper command.
10051 (pitx): Use it to display iteration method.
10052 (pgrowit): New command.
10053
ad903955
EZ
10054 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10055
3f670e9a
EZ
10056 Update dependencies in Makefile.in.
10057
10058 * Makefile.in (alloc.o): Depend on termhooks.h.
10059 (atimer.o): Depend on blockinput.h.
10060 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10061 and frame.h.
10062 (callint.o): Depend on systime.h, coding.h, and composite.h.
10063 (callproc.o): Depend on buffer.h.
10064 (casefiddle.o): Don't depend on charset.h.
10065 (casetab.o): Depend on character.h.
10066 (ccl.o): Depend on composite.h.
10067 (chartab.o): Depend on ccl.h.
10068 (cm.o): Depend on dispextern.h.
10069 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10070 (coding.o): Don't depend on $(INTERVALS_H).
10071 (composite.o): Don't depend on dispextern.h explicitly (it's in
10072 $(INTERVALS_H)). Depend on ccl.h.
10073 (data.o): Depend on systime.h, coding.h, composite.h,
10074 dispextern.h, font.h, and ccl.h.
10075 (dired.o): Depend on composite.h.
10076 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10077 composite.h (it's in $(INTERVALS_H)).
10078 (doc.o): Depend on systime.h, coding.h, and composite.h.
10079 (editfns.o): Don't depend explicitly on dispextern.h.
10080 (emacs.o): Depend on frame.h and coding.h.
10081 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10082 (fileio.o): Depend on frame.h and commands.h. Don't depend
10083 explicitly on dispextern.h.
10084 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10085 composite.h.
10086 (fns.o): Don't depend on termhooks.h.
10087 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10088 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10089 coding.h, $(INTERVALS_H), window.h, xterm.h.
10090 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10091 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10092 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10093 fontset.h, ccl.h, and ftfont.h.
10094 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10095 (gtkutil.o): Depend on dispextern.h and composite.h.
10096 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10097 termhooks.h, and ccl.h.
10098 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10099 (intervals.o): Depend on systime.h and coding.h.
10100 (keyboard.o): Depend on composite.h and coding.h.
10101 (keymap.o): Depend on coding.h and frame.h.
10102 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10103 (macros.o): Depend on systime.h, coding.h, and composite.h.
10104 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10105 and atimer.h.
10106 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10107 dispextern.h explicitly.
0b5397c2
SM
10108 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10109 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
10110 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10111 (regex.o): Don't depend on charset.h.
10112 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10113 (search.o): Don't depend explicitly on composite.h.
10114 (sound.o): Depend on atimer.h and systime.h.
10115 (syntax.o): Don't depend explicitly on composite.h.
10116 (sysdep.o): Depend on coding.h and composite.h.
10117 (term.o): Depend on xterm.h and buffer.h.
10118 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10119 (textprop.o): Don't depend on dispextern.h explicitly.
10120 (undo.o): Depend on dispextern.h.
10121 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10122 dispextern.h and composite.h explicitly.
10123 (xdisp.o): Depend on ccl.h.
10124 (xfaces.o): Depend on coding.h and ccl.h.
10125 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10126 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10127 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10128 ftfont.h.
10129 (xgselect.o): New dependency.
10130 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10131 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10132 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10133 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10134 (xsmfns.o): Depend on frame.h and dispextern.h.
10135 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10136 sysselect.h.
10137
7a6f7fea
AS
101382009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10139
10140 * font.c (Fclear_font_cache): Pass correct cache argument to
10141 font_clear_cache.
10142
f4c21026
AS
101432009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10144
10145 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10146 twice.
10147
f7ab0997
CY
101482009-12-15 Chong Yidong <cyd@stupidchicken.com>
10149
10150 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10151 calling file-remote-p. Reported by Jim Meyering.
10152
fa8e045a
MA
101532009-12-15 Michael Albinus <michael.albinus@gmx.de>
10154
10155 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10156 avoid compiler warnings. (Bug #5217)
fa8e045a 10157
a63dba42
KH
101582009-12-14 Kenichi Handa <handa@m17n.org>
10159
10160 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10161 in 8-bit encoding.
10162
5ce6e4f4 101632009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10164
10165 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10166 tooltip windows.
10167
223e5fc6
JD
101682009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10169
36acb2a7
JD
10170 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10171 Xatom_net_window_type.
10172
10173 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10174 Xatom_net_window_type.
10175
b8f00677
JD
10176 * xterm.c (my_log_handler): New function.
10177 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10178 so we can filter out buggy messages. (Bug #5120).
b8f00677 10179
e5f0bc9a
JD
10180 * xterm.c (xg_scroll_callback): Parameter list changed,
10181 use parameter GtkScrollType to determine scroll/line/page.
10182 Only allow dragging if a button < 4 is grabbed (bug #5177).
10183 (xg_end_scroll_callback): New function.
10184 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10185 xg_create_scroll_bar.
10186
10187 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10188 (scroll_end_callback): Remove.
10189 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10190 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10191 bug #5177.
e5f0bc9a
JD
10192 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10193 bug #5177.
10194
10195 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10196 (xg_create_scroll_bar): Add GCallback end_callback.
10197
223e5fc6
JD
10198 * xftfont.c (QClcdfilter): New variable.
10199 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10200 (syms_of_xftfont): Initialize QClcdfilter.
10201
3c055b77
JD
102022009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10203
10204 * xsettings.c (struct xsettings): Add member seen.
10205 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10206 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10207 (apply_xft_settings): Only update Xft settings with what member seen
10208 indicates as new.
10209
05fe33ff
EZ
102102009-12-12 Eli Zaretskii <eliz@gnu.org>
10211
c4cc8b9a 10212 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10213 (struct glyph): Use EMACS_INT for charpos.
10214 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10215 region_beg_charpos, region_end_charpos,
10216 redisplay_end_trigger_charpos, and also for
10217 iterator_stack_entry.end_charpos and
10218 iterator_stack_entry.stop_charpos.
10219
e8d7886a
JD
102202009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10221
5ce6e4f4 10222 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10223 (xg_create_scroll_bar): Call scroll_end_callback on button release
10224 event (bug #5177).
10225 (xg_event_is_for_scrollbar): != replaced with ==.
10226
d0db2ec8
KH
102272009-12-12 Kenichi Handa <handa@m17n.org>
10228
10229 * ftfont.c (struct ftfont_info): New member matrix.
10230 (ftfont_open): Setup xftfont_info->matrix.
10231 (MFLTFontFT): New member matrix.
10232 (FLOOR, CEIL, ROUND): New macros.
10233 (ftfont_get_metrics): Handle matrix transformation.
10234 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10235
10236 * xftfont.c (struct xftfont_info): New member matrix.
10237 (xftfont_open): Setup xftfont_info->matrix.
10238
102392009-12-10 Kenichi Handa <handa@m17n.org>
10240
10241 * xdisp.c (append_space_for_newline): Consider face-remapping.
10242
2cc7b62f
AS
102432009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10244
b87dd913
AS
10245 * xsettings.c: Include "keyboard.h".
10246
eba5eb94
AS
10247 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10248
2cc7b62f
AS
10249 Fix implicit function declarations.
10250 * cmds.c: Include "frame.h".
10251 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10252 * frame.h: Move declaration of delete_frame outside of
10253 HAVE_WINDOW_SYSTEM.
10254
a4ef73c8
CY
102552009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10256
10257 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10258
10259 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10260 GTK builds.
10261
944a300c
AS
102622009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10263
10264 * unexelf.c (unexec): Don't search for .data twice.
10265
022eef62
CY
102662009-12-05 Chong Yidong <cyd@stupidchicken.com>
10267
426ac949
CY
10268 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10269 if push failed.
10270 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10271 of push_display_prop (Bug#5000).
10272
022eef62
CY
10273 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10274 value of font_list_entities (Bug#5085).
10275
be95bee9
JB
102762009-12-04 Juanma Barranquero <lekktu@gmail.com>
10277
10278 Fix `string-to-number' to deal consistently with integers and floats.
10279 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10280 trailing characters, not just whitespace.
10281 (read1): Pass new arg 0 to keep old behavior.
10282 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10283 trailing chars, as it is already done for integers. Doc fixes.
10284 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10285
24c2d7ce
EZ
102862009-12-04 Eli Zaretskii <eliz@gnu.org>
10287
0b5397c2
SM
10288 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10289 Delete unused enumeration value.
24c2d7ce 10290
7e694795
EZ
102912009-12-03 Eli Zaretskii <eliz@gnu.org>
10292
10293 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10294
84b31826
SM
102952009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10296
10297 * process.c (Fmake_network_process): Fix up the tests for
10298 "connectionless socket", so they DTRT for seqpacket sockets as well.
10299
f00c449b
SM
103002009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10301
10302 * process.c (Qseqpacket): New symbol.
10303 (HAVE_SEQPACKET): New macro.
10304 (Fmake_network_process): Accept new :type `seqpacket'.
10305 (init_process): Add `seqpacket' feature when applicable.
10306 (syms_of_process): Initialize Qseqpacket.
10307
8096a0ff
YM
103082009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10309
10310 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10311 if entity is Qnil.
10312
3e0de07f
SM
103132009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10314
10315 * print.c (print_preprocess): Preprocess the key_and_value table of
10316 hashtables, even tho they're "hidden" (bug#5082).
10317
abeafb2a
JD
103182009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10319
10320 * frame.c (frame_make_pointer_invisible)
10321 (frame_make_pointer_visible): Declare f before statements.
10322
4bf47195
EZ
103232009-11-28 Eli Zaretskii <eliz@gnu.org>
10324
10325 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10326 omitted dependencies on lisp.h.
10327
c525b3f2
JD
103282009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10329
ece2d4ed
JD
10330 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10331 is NULL.
10332
10333 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10334
10335 * frame.c (frame_make_pointer_invisible)
3e0de07f 10336 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
10337 frame.
10338
c525b3f2
JD
10339 * search.c (simple_search): Remove warning by making *p const.
10340
2f00e299
DN
103412009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10342
10343 * xdisp.c (power_letter): Remove duplicate const.
10344
084b049b
JD
103452009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10346
a1fadc6f
JD
10347 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10348
5ce6e4f4 10349 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
10350 defaults (bug #5025).
10351
28259cac
SM
103522009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10353
10354 * insdel.c (adjust_markers_for_delete): Move it in the
10355 right direction! (bug#4803)
10356
e8e14166
YM
103572009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10358
10359 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10360
10361 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10362
86677b58
GM
103632009-11-24 Glenn Morris <rgm@gnu.org>
10364
10365 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10366
581e51e8
JD
103672009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10368
cfc86c7a
JD
10369 * Makefile.in: Must create deps for ecrt0.o in its rule.
10370
581e51e8
JD
10371 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10372 because that is what Gtk+ font dialog understands.
10373
10374 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
10375 of Fcopy_sequence.
10376 (font_open_by_name): Put name given into QCname for font-object returned.
10377
10378 * frame.c (x_set_font): Save original font name as frame parameter
10379 font-parameter.
10380
10381 * xsettings.c (set_default_xft_settings): New function.
10382 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
10383 is found.
10384
8b264ecb
AS
103852009-11-22 Andreas Schwab <schwab@linux-m68k.org>
10386
10387 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
10388 searching backwards through multibyte buffer.
10389
872870b2
JD
103902009-11-21 Jan Djärv <jan.h.d@swipnet.se>
10391
10392 * xterm.c: #include xgselect.h.
10393 (x_initialize): Call xgselect_initialize.
10394
10395 * xsettings.c (something_changedCB): C++ comments => C comments.
10396 (init_gconf): Do not deal with any GLib file descriptors, xg_select
10397 does that now.
10398
10399 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
10400 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
10401 (scroll_bar_button_cb): Remove.
5ce6e4f4 10402 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
10403 event.
10404 (xg_create_scroll_bar): Don't bind button-press-event and
10405 button-release-event.
10406
10407 * process.c: Include xgselect.h if defined (USE_GTK) ||
10408 defined (HAVE_GCONF).
10409 (wait_reading_process_output): Call xg_select for the same condition.
10410
10411 * xgselect.c (xg_select): New function to better integrate with
10412 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
10413
10414 * xgselect.h: New file, declare xg_select, xgselect_initialize.
10415
10416 * Makefile.in (XOBJ): Add xgselect.o.
10417
62a6e103
AS
104182009-11-21 Andreas Schwab <schwab@linux-m68k.org>
10419
0b5397c2
SM
10420 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
10421 Remove ignored second argument. All callers changed.
62a6e103
AS
10422 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
10423 (RE_STRING_CHAR_AND_LENGTH): Likewise.
10424 * xdisp.c (string_char_and_length): Likewise.
10425
b0ca0f33
DN
104262009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10427
10428 * xterm.c (x_new_font):
10429 * print.c (print_object):
10430 * cmds.c (Fself_insert_command): Move declarations before statements.
10431
dd5a6279
CY
104322009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
10433
10434 * s/cygwin.h: Remove unneeded linker flags.
10435
4a8e097d
JD
104362009-11-20 Jan Djärv <jan.h.d@swipnet.se>
10437
0d1d0d26
JD
10438 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
10439
10440 * xsettings.h: Declare xsettings_get_system_font.
10441
10442 * xsettings.c (xsettings_get_system_font): New function.
10443 (init_gconf): No use initiating gconf unless we have Xft also.
10444 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
10445 HAVE_GCONF.
10446
4a8e097d
JD
10447 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
10448 add a blank entry so it doesn't collapse into nothing.
10449
8ab1650e
SM
104502009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10451
10452 * lread.c (Funintern): Comment out last change.
10453
82c602f0
RS
104542009-11-19 Richard Stallman <rms@gnu.org>
10455
10456 * lread.c (Funintern): Error if symbol is t or nil.
10457
87e32266
SM
104582009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10459
10460 * insdel.c (make_gap_larger): Don't make as many assumptions about the
10461 representation of Lisp integers.
10462 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10463
1b9ac145
AS
104642009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10465
10466 * lisp.h: Remove declaration of Ffont_get_system_font.
10467 * xfns.c: Move include of "xsettings.h".
10468 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
10469
dfb3c4c6
JD
104702009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10471
87e32266
SM
10472 * xsettings.c (something_changedCB, Ffont_get_system_font):
10473 Check use_system_font.
dfb3c4c6
JD
10474 (syms_of_xsettings): DEFVAR font-use-system-font.
10475
9370c1d8
AS
104762009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10477
25fe851a
AS
10478 * xfns.c (x_default_font_parameter): Remove dead assignment.
10479
9370c1d8
AS
10480 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
10481
637fa988
JD
104822009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10483
87e32266 10484 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 10485 not have FC_LCD_*. #define them if not there.
a6eb20d8 10486
87e32266 10487 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 10488
637fa988
JD
10489 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
10490
10491 * xterm.c (handle_one_xevent): Call xft_settings_event for
10492 ClientMessage, PropertyNotify and DestroyNotify.
10493 (x_term_init): If we have XFT, get DPI from Xft.dpi.
10494 Call xsettings_initialize.
10495
10496 * xftfont.c (xftfont_fix_match): New function.
10497 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
10498 Call xftfont_fix_match after XftFontMatch.
10499
10500 * xfont.c (xfont_driver): Initialize all members.
10501
87e32266
SM
10502 * xfns.c (x_default_font_parameter):
10503 Try font from Ffont_get_system_font.
637fa988
JD
10504 Do not get font from x_default_parameter if we got one from
10505 Ffont_get_system_font.
87e32266 10506 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
10507
10508 * w32font.c (w32font_driver): Initialize all members.
10509
10510 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
10511
10512 * lisp.h: Declare syms_of_xsettings.
10513
87e32266
SM
10514 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
10515 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
10516
10517 * ftfont.c (ftfont_filter_properties): New function.
10518
10519 * frame.c (x_set_font): Remove unused variable lval.
10520
87e32266 10521 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
10522
10523 * font.c (font_put_extra): Don't return if val is nil, it means
10524 boolean option is off.
10525 (font_parse_fcname): Collect all extra properties in extra_props
10526 and call filter_properties for all drivers with extra_props and
10527 font as parameter.
87e32266
SM
10528 (font_open_entity): Do not use cache, it does not pick up new
10529 fontconfig settings like hinting.
637fa988
JD
10530 (font_load_for_lface): If spec had a name in it, store it in entity.
10531
a73f9c9d 10532 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
10533
10534 * config.in: HAVE_GCONF is new.
10535
10536 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
10537 xsettings.o is new.
10538
5a942932
KH
105392009-11-17 Kenichi Handa <handa@m17n.org>
10540
10541 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
10542 back to the default font in case that no suitable font is found.
10543
b7c7a4d1
SM
105442009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10545
10546 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10547 Suggested by Chad Brown <yandros@mit.edu>.
10548 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10549
072f1e39
JD
105502009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10551
10552 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10553
5d1e70a2
AS
105542009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10555
87e32266 10556 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 10557
a53cfbe5
JD
105582009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10559
473a99b7
JD
10560 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10561 has a parent.
10562
a53cfbe5 10563 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 10564 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
10565
10566 * config.in: Generated (AUTO_DEPEND).
10567
f04bb9b2
MA
105682009-11-13 Michael Albinus <michael.albinus@gmx.de>
10569
b7c7a4d1 10570 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
10571 Vdbus_registered_functions_table, because it contains also
10572 properties. Fix docstring.
b7c7a4d1 10573 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 10574
8f11f7ec
SM
105752009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10576
10577 * alloc.c (mark_object): Don't reprocess marked strings.
10578 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10579 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10580
8a605fe8
KH
105812009-11-13 Kenichi Handa <handa@m17n.org>
10582
8f11f7ec 10583 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
10584 semantics of Vword_combining_categories.
10585 (Vword_combining_categories): Describe the slight change of the
10586 semantics.
10587
241c4680
EZ
105882009-11-13 Eli Zaretskii <eliz@gnu.org>
10589
10590 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10591
10592 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10593
5d58e44c
SM
105942009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10595
10596 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10597
5e13f9d3
JB
105982009-11-12 Juanma Barranquero <lekktu@gmail.com>
10599
10600 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10601
cf54c754
DR
106022009-11-11 David Reitter <david.reitter@gmail.com>
10603
10604 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10605 variables to fix 2009-11-09 change.
10606
a4ada374
DN
106072009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10608
91433552
DN
10609 * process.c (ifflag_def): Make flag_sym constant.
10610 (Fnetwork_interface_info): Use a constant pointer.
10611 (ifflag_table):
10612 * xfns.c (cursor_bits):
10613 * xdisp.c (power_letter):
10614 * termcap.c (speeds, esctab):
10615 * sysdep.c (baud_convert):
10616 * keyboard.c (lispy_accent_codes, modifier_names):
10617 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10618 (jpeg_format, tiff_format, gif_format, svg_format)
10619 (interlace_start, interlace_increment, gs_format):
10620 * gtkutil.c (separator_names):
10621 * fringe.c (swap_nibble):
10622 * fns.c (base64_value_to_char, base64_char_to_value):
10623 * fileio.c (make_temp_name_tbl):
10624 * coding.c (suffixes): Make constant.
10625
f4265f6c
DN
10626 * frame.c (make_initial_frame):
10627 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10628 build_string.
10629 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10630
04420943
DN
10631 * s/freebsd.h:
10632 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10633
0a5d24ae
DN
10634 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10635 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10636
a4ada374
DN
10637 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10638 * xterm.c (syms_of_xterm):
10639 * xfaces.c (syms_of_xfaces):
10640 * xdisp.c (syms_of_xdisp):
10641 * lread.c (syms_of_lread):
10642 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10643 build_string.
91433552 10644
a4ada374
DN
10645 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10646
af98fc7f
SM
106472009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10648
8ab1650e 10649 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10650
e90292a9
JD
106512009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10652
10653 * keyboard.h: Declare timer_check.
10654
10655 * keyboard.c (timer_check_2): New function that does what the old
10656 timer_check did.
10657 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10658 returned, i.e. don't return -1 with timers pending.
10659
10660 * process.c: Remove extern declaration of timer_check.
10661
10662 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10663 even if timer_check returned -1.
10664
af98fc7f
SM
10665 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10666 xg_dialog_data.
e90292a9
JD
10667 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10668 the event loop.
10669 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10670 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10671 Destroy the dialog after xg_dialog_run.
10672
045b83c0
SM
106732009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10674
10675 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10676
1fb99a3a
JD
106772009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10678
10679 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10680
04e452cb
JB
106812009-11-09 Juanma Barranquero <lekktu@gmail.com>
10682
10683 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10684
ef7417fd
SM
106852009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10686
10687 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10688 w32menu.c, and nsmenu.m.
10689 Simplify the obsolete case where position is nil.
10690 (cleanup_popup_menu): New function, moved from nsmenu.m.
10691 (struct skp): Remove slot `notreal'.
10692 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10693 adjust callers.
10694 (single_menu_item): Adjust call to parse_menu_item.
10695 (syms_of_menu): Defsubr x-popup-menu.
10696 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10697 (keymap_panes): Don't export any more.
10698 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10699 (xmenu_show): Declare.
10700 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10701 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10702 * keyboard.h (parse_menu_item): Update declaration.
10703 * xmenu.c (Fx_popup_menu): Remove.
10704 (syms_of_xmenu): Don't defsubr x-popup-menu.
10705 * w32menu.c (Fx_popup_menu): Remove.
10706 (syms_of_w32menu): Don't defsubr x-popup-menu.
10707 * nsmenu.m (cleanup_popup_menu): Remove.
10708 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10709 moved to menu.c's Fx_popup_menu.
10710 (Fx_popup_menu): Remove.
10711 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10712 menu_items (it's done in menu.c already).
10713
424d6179
SM
107142009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10715
10716 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10717 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10718
c0df13a6 107192009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10720
10721 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10722 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10723 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10724 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10725
2de9f71c
SM
107262009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10727
10728 Let integers use up 2 tags to give them one extra bit and thus double
10729 their range.
10730 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10731 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10732 New macros.
10733 (enum Lisp_Type): Use them. Give explicit values.
10734 (Lisp_Type_Limit): Remove.
10735 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10736 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10737 Pay attention to USE_2_TAGS_FOR_INTS.
10738 (INTEGERP): Use LISP_INT_TAG_P.
10739 * fns.c (internal_equal): Simplify the default case.
10740 (sxhash): Use case_Lisp_Int.
10741 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10742 any more.
10743 (Ftype_of): Use case_Lisp_Int.
10744 (store_symval_forwarding): Take into account the fact that Ints can
10745 now have more than one tag.
10746 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10747 (buffer_slot_type_mismatch):
2de9f71c
SM
10748 * xfaces.c (face_attr_equal_p):
10749 * print.c (print_object):
10750 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10751 Use case_Lisp_Int.
10752
323637a2
EZ
107532009-11-06 Eli Zaretskii <eliz@gnu.org>
10754
7ac65b38
EZ
10755 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10756
323637a2
EZ
10757 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10758 warning.
10759
e511451f
JD
107602009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10761
10762 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10763
10764 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10765
10766 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10767 ButtonPressRelease and MotionNotify (bug#4870).
10768
5e2327cf
DN
107692009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10770
5adc433e
DN
10771 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10772
d67b4f80
DN
10773 * xterm.c (syms_of_xterm):
10774 * xselect.c (syms_of_xselect):
10775 * xmenu.c (syms_of_xmenu):
10776 * xfns.c (syms_of_xfns):
10777 * xfaces.c (syms_of_xfaces):
10778 * xdisp.c (syms_of_xdisp):
10779 * window.c (syms_of_window):
10780 * w32fns.c (syms_of_w32fns):
10781 * undo.c (syms_of_undo):
10782 * textprop.c (syms_of_textprop):
10783 * terminal.c (syms_of_terminal):
10784 * syntax.c (syms_of_syntax):
10785 * sound.c (syms_of_sound):
10786 * search.c (syms_of_search):
10787 * print.c (syms_of_print):
10788 * minibuf.c (syms_of_minibuf):
10789 * macros.c (syms_of_macros):
10790 * keymap.c (syms_of_keymap, initial_define_key)
10791 (initial_define_lispy_key):
10792 * keyboard.c (syms_of_keyboard):
10793 * insdel.c (syms_of_insdel):
10794 * image.c (syms_of_image):
10795 * fringe.c (syms_of_fringe):
10796 * frame.c (syms_of_frame):
10797 * fontset.c (syms_of_fontset):
10798 * fns.c (syms_of_fns):
10799 * fns.c (syms_of_fns):
10800 * fileio.c (syms_of_fileio):
10801 * fileio.c (syms_of_fileio):
10802 * eval.c (syms_of_eval):
10803 * doc.c (syms_of_doc):
10804 * dispnew.c (syms_of_display):
10805 * dired.c (syms_of_dired):
10806 * dbusbind.c (syms_of_dbusbind):
10807 * data.c (syms_of_data):
10808 * composite.c (syms_of_composite):
10809 * coding.c (syms_of_coding):
10810 * cmds.c (syms_of_cmds):
10811 * charset.c (define_charset_internal, syms_of_character):
10812 * ccl.c (syms_of_ccl):
10813 * category.c (syms_of_category, init_category_once):
10814 * casetab.c (syms_of_casetab):
10815 * casefiddle.c (syms_of_casefiddle):
10816 * callint.c (syms_of_callint):
10817 * bytecode.c (syms_of_bytecode):
10818 * buffer.c (keys_of_buffer, syms_of_buffer):
10819 * alloc.c (syms_of_alloc):
10820 * process.c (syms_of_process, init_process):
10821 * lread.c (syms_of_lread, init_obarray):
10822 * font.c (build_style_table):
10823 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10824 intern_c_string, calls to make_pure_string with
10825 make_pure_c_string. Use pure_cons instead of Fcons.
10826
5e2327cf
DN
10827 * process.c (socket_options): Make it const.
10828 (set_socket_option, init_process): Use a const pointer.
10829
10830 * lread.c (intern_c_string): New function.
10831 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10832 (defvar_int): Uset it. Make the name const char*.
10833
10834 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10835 (defvar_int): Update prototypes.
10836 (DEFUN, EXFUN): Support for prototypes is now required.
10837 (intern_c_string): New prototype.
10838 (struct Lisp_Subr): Make symbol_name constant.
10839
10840 * font.c (struct table_entry): Remove unused member. Make NAMES
10841 constant.
10842 (weight_table, slant_table, width_table): Make constant.
10843
10844 * emacs.c (struct standard_args): Make name and longname constant.
10845
10846 * character.h (DEFSYM): Use intern_c_string.
10847
a56eaaef
DN
108482009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10849
10850 * alloc.c (make_pure_c_string): New function.
10851
10852 * eval.c (Fautoload): Purecopy all arguments.
10853
f6a07420
KH
108542009-11-05 Kenichi Handa <handa@m17n.org>
10855
10856 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10857 the buffer in case of replace.
10858
5d28d4b1
DN
108592009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10860
10861 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10862
b349d111
SM
108632009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10864
d528b1ce
SM
10865 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10866 when applicable (bug#4851).
10867
b349d111
SM
10868 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10869 (P_): Support for prototypes is now required.
10870
c38eb027
CY
108712009-10-31 Chong Yidong <cyd@stupidchicken.com>
10872
10873 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10874 (Bug#4827).
10875
0405f8d9
EZ
108762009-10-30 Eli Zaretskii <eliz@gnu.org>
10877
d528b1ce 10878 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10879
ca0a881a
DN
108802009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10881
10882 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10883
d528b1ce
SM
10884 * lread.c (Fload): Purecopy the file name when building
10885 Vpreloaded_file_list.
ca0a881a 10886
47e0e0e4
JR
108872009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10888
10889 * w32fns.c (syms_of_w32fns): Change default value of
10890 w32-scroll-lock-modifier to nil. (Bug#2827)
10891
057bce6f
JB
108922009-10-26 Juanma Barranquero <lekktu@gmail.com>
10893
782a943e 10894 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10895
242bc74c
AS
108962009-10-26 Andreas Schwab <schwab@redhat.com>
10897
10898 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10899
522d013a
JB
109002009-10-26 Juanma Barranquero <lekktu@gmail.com>
10901
10902 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10903 For delta < 0, skip check that only makes sense when the mini-window
10904 is going to be enlarged. (Bug#4534)
10905
18060980
CY
109062009-10-25 Chong Yidong <cyd@stupidchicken.com>
10907
10908 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10909 string in menu maps (Bug#4471).
10910
fec8f0fe
CY
109112009-10-24 Chong Yidong <cyd@stupidchicken.com>
10912
10913 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10914 FRAME_NS_VIEW on terminal frames (Bug#4765).
10915
10d66ec0
AS
109162009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10917
1cae01f7
AS
10918 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10919 DBUS_TYPE_UINTnn separately to get proper sign extension.
10920
58a12889
AS
10921 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10922 can properly handle unsigned types.
d528b1ce 10923 (make_uid, make_gid): Remove.
58a12889 10924
987c9327
AS
10925 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10926 types again.
10927
522d013a 10928 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10929 (system_process_attributes): Likewise.
10930
905a9ed3
DN
109312009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10932
10933 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10934
10935 * eval.c (Fautoload): Purecopy the filename. Simplify.
10936
10937 * category.c (Fdefine_category): Purecopy docstring.
10938
a599b3e8
AS
109392009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10940
7b792fc9
AS
10941 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10942
a599b3e8
AS
10943 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10944
b35ac83e
CY
109452009-10-23 Chong Yidong <cyd@stupidchicken.com>
10946
10947 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10948 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10949 (Bug#4775).
10950
e8903e00
SM
109512009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10952
10953 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10954 (init_fileio_once):
10955 * lisp.h (init_fileio_once): Remove.
10956 * emacs.c (main): Don't call init_fileio_once.
10957
8f43cbf3
DN
109582009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10959
10960 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10961
26898943
AS
109622009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10963
10964 * doprnt.c (doprnt): Fix overflow check.
10965
5c646d5a
JD
109662009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10967
3132a7ea
JD
10968 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10969
5c646d5a
JD
10970 * xterm.h (x_wait_for_event): Declare it.
10971
10972 * xterm.c (pending_event_wait): New variable.
10973 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10974 see pending_event_wait.eventtype.
10975 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10976 (x_new_font): Call change_frame_size with new rows/columns before we
10977 try to resize the frame.
5c646d5a 10978 (x_wait_for_event): New function.
d528b1ce
SM
10979 (x_set_window_size_1): Don't change gravity unless change_gravity
10980 is set.
5c646d5a
JD
10981 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10982 don't change frame size, instead wait for the ConfigureNotify.
10983 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10984 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10985 (x_initialize): Initialize pending_event_wait.
10986
10987 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10988 size.
10989
10990 * widget.c (EmacsFrameSetValues): Add comment.
10991 (EmacsFrameSetCharSize): Just call x_set_window_size.
10992
10993 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10994 x_wait_for_event.
d528b1ce 10995 (flush_and_sync): Remove again.
5c646d5a
JD
10996 (xg_get_font_name): Suggest monospace if no previous font is known.
10997
e9c1637d
SM
109982009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10999
11000 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11001 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11002
5a72cccb
YM
110032009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11004
11005 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11006 processing pending events when event is filtered for input method.
ab04798f 11007 (Bug#3681)
5a72cccb 11008
2629aa37
JB
110092009-10-20 Juanma Barranquero <lekktu@gmail.com>
11010
11011 * fns.c: Add #endif accidentally removed in previous change.
11012
c3417a74
DN
110132009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11014
11015 * fns.c: Remove code for unsupported system: MAC_OS.
11016 * image.c: Likewise. Include setjmp.h.
11017
9685cef2
JD
110182009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11019
11020 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11021 pixel -1 (bug #4742).
11022
d7306fe6
DN
110232009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11024
019d2c4c
DN
11025 * process.c (create_pty): Remove conditionals for no longer
11026 supported systems: UNIPLUS and RTU.
11027
ee6bacd4
DN
11028 * xterm.c:
11029 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11030
d7306fe6
DN
11031 * alloc.c: Do not define struct catchtag.
11032 * eval.c: Move struct catchtag definition ...
11033 * lisp.h: ... here.
11034
11035 * image.c: Move png.h #include earlier to avoid warnings.
11036
11037 * xterm.c:
11038 * xsmfns.c:
11039 * xselect.c:
11040 * xrdb.c:
11041 * xmenu.c:
11042 * xftfont.c:
11043 * xfont.c:
11044 * xfns.c:
11045 * xfaces.c:
11046 * xdisp.c:
11047 * window.c:
11048 * widget.c:
11049 * w32xfns.c:
11050 * w32uniscribe.c:
11051 * w32term.c:
11052 * w32select.c:
11053 * w32reg.c:
11054 * w32proc.c:
11055 * w32menu.c:
11056 * w32inevt.c:
11057 * w32heap.c:
11058 * w32font.c:
11059 * w32fns.c:
11060 * w32console.c:
11061 * w32.c:
11062 * w16select.c:
11063 * vm-limit.c:
11064 * unexsol.c:
11065 * unexec.c:
11066 * unexcw.c:
11067 * unexaix.c:
11068 * undo.c:
11069 * tparam.c:
11070 * textprop.c:
11071 * terminfo.c:
11072 * terminal.c:
11073 * termcap.c:
11074 * term.c:
11075 * syntax.c:
11076 * sound.c:
11077 * sheap.c:
11078 * search.c:
11079 * scroll.c:
11080 * region-cache.c:
11081 * regex.c:
11082 * ralloc.c:
11083 * process.c:
11084 * print.c:
b024548b
DN
11085 * nsterm.m:
11086 * nsselect.m:
11087 * nsmenu.m:
11088 * nsimage.m:
11089 * nsfont.m:
11090 * nsfns.m:
d7306fe6
DN
11091 * msdos.c:
11092 * minibuf.c:
11093 * menu.c:
11094 * marker.c:
11095 * macros.c:
11096 * keymap.c:
11097 * keyboard.c:
11098 * intervals.c:
11099 * insdel.c:
11100 * indent.c:
11101 * gtkutil.c:
11102 * ftxfont.c:
11103 * ftfont.c:
11104 * fringe.c:
11105 * frame.c:
11106 * fontset.c:
11107 * font.c:
11108 * fns.c:
11109 * floatfns.c:
11110 * filelock.c:
11111 * fileio.c:
11112 * emacs.c:
11113 * editfns.c:
11114 * dosfns.c:
11115 * doprnt.c:
11116 * doc.c:
11117 * dispnew.c:
11118 * dired.c:
11119 * dbusbind.c:
11120 * data.c:
11121 * composite.c:
11122 * coding.c:
11123 * cmds.c:
11124 * cm.c:
11125 * chartab.c:
11126 * charset.c:
11127 * character.c:
11128 * ccl.c:
11129 * category.c:
11130 * casetab.c:
11131 * casefiddle.c:
11132 * callproc.c:
11133 * callint.c:
11134 * bytecode.c:
11135 * buffer.c:
11136 * atimer.c: Include setjmp.h. (Bug#4643)
11137
fd5f21e6
SM
111382009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11139
4c0354d7
SM
11140 Remove leftover table unibyte_to_multibyte_table.
11141 * character.c (unibyte_to_multibyte_table): Remove.
11142 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11143 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11144 * character.h (UNIBYTE_TO_CHAR): New macro.
11145 (MAKE_CHAR_MULTIBYTE): Use it.
11146 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11147 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11148 (message_dolog, set_message_1):
11149 * search.c (Freplace_match):
11150 * editfns.c (Fcompare_buffer_substrings):
11151 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11152 (concat):
11153 * insdel.c (copy_text, count_size_as_multibyte):
11154 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11155 * term.c (produce_glyphs):
11156 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11157 * regex.c (RE_CHAR_TO_MULTIBYTE):
11158 * cmds.c (internal_self_insert):
11159 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11160
fd5f21e6
SM
11161 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11162
4418646e
DN
111632009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11164
11165 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11166
35f5c1d2
JB
111672009-10-16 Juanma Barranquero <lekktu@gmail.com>
11168
11169 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11170
a0cd8f6b
AR
111712009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11172
11173 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11174 still needed under Tiger.
11175
11176 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11177
11178 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11179 __Apple__.
11180
11181 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11182
01a8d3fa
KH
111832009-10-15 Kenichi Handa <handa@m17n.org>
11184
11185 * print.c (print_object): Escape a symbol like "2E10" too.
11186
bf6c75c9 111872009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11188
11189 Cleanups and changes for 64-bit compile under Snow Leopard.
11190 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11191
11192 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11193
c5959062 11194 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11195 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11196 cast argument.
11197 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11198 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11199
11200 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11201
11202 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11203 where appropriate.
11204
11205 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11206 where appropriate.
6e4780c5
JB
11207 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11208 Use stringWithUTF8String.
bf6c75c9
AR
11209 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11210
6e4780c5
JB
11211 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11212 Add formal protocol mention to inheritance.
bf6c75c9
AR
11213 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11214
6e4780c5
JB
11215 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11216 Fix printf format.
bf6c75c9
AR
11217 (ns_query_color): Use CGFloat where appropriate.
11218 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11219 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11220 argument.
11221
3d87f118
AR
11222 * config.in (NS_HAVE_NSINTEGER): Drop.
11223
a95c8102
AR
11224 * dbusbind.c (dbus-method-return-internal)
11225 (dbus-method-error-internal): Use long format in printf, and cast
11226 argument.
11227
11228 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11229 in printf, and cast argument.
11230
6873acca 11231 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11232 cast argument.
11233
9ec6f100
GM
112342009-10-11 Glenn Morris <rgm@gnu.org>
11235
11236 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11237
5be883cd
JD
112382009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11239
11240 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11241 menu bar with a small width so it doesn't enlarge the frame.
11242
d7a39b51
JB
112432009-10-08 Juanma Barranquero <lekktu@gmail.com>
11244
11245 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11246
0c2b6f8e
GM
112472009-10-06 Glenn Morris <rgm@gnu.org>
11248
11249 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11250 SOME_MACHINE_LISP (this enters indirectly via DOC).
11251
e02131a2
EZ
112522009-10-05 Eli Zaretskii <eliz@gnu.org>
11253
11254 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11255
b4744254
EZ
112562009-10-04 Eli Zaretskii <eliz@gnu.org>
11257
11258 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11259 Doc fix.
11260
dbf64827
JB
112612009-10-03 Martin Rudalics <rudalics@gmx.at>
11262
11263 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11264
e9a0aef8
MA
112652009-10-02 Michael Albinus <michael.albinus@gmx.de>
11266
d528b1ce 11267 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
11268 used anymore outside fileio.c.
11269
11270 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11271
64eb2b56
JB
112722009-10-01 Juanma Barranquero <lekktu@gmail.com>
11273
11274 * lisp.h (Qdelete_directory_internal):
11275 Declare, instead of Qdelete_directory.
11276
11277 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11278
9d28c33e
SM
112792009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11280
11281 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11282
9d8f3bd9
MA
112832009-10-01 Michael Albinus <michael.albinus@gmx.de>
11284
9d28c33e 11285 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
11286 Fdelete_directory. It is not a command anymore. It has no file
11287 name handler.
11288
9694740b
SM
112892009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11290
11291 * xdisp.c (get_next_display_element): Use an enum in last change.
11292
748e162f
KH
112932009-09-28 Kenichi Handa <handa@m17n.org>
11294
9694740b 11295 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
11296 unibyte_display_via_language_environment in handling
11297 Vnobreak_char_display.
11298
17efd58d
AR
112992009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11300
11301 * nsterm.h (ns_app_name): New extern variable.
11302
11303 * nsterm.m (ns_app_name): New variable.
11304 (ns_term_init): Set and use it.
11305 (ns_term_shutdown): Use it.
11306
11307 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11308 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11309
11310 * nsfns.m (ns_set_name_iconic, ns_set_name)
11311 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11312 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11313
9694740b
SM
11314 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11315 Remove double-casting in client_data comparison.
31c2d412 11316
3208cb35
YM
113172009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11318
11319 * keyboard.c (make_lispy_event): Remember last wheel direction.
11320 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11321
b7d552d6
GM
113222009-09-26 Glenn Morris <rgm@gnu.org>
11323
11324 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11325 internal.elc. Add term/pc-win.elc.
11326 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11327 term/x-win.elc.
11328 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11329 term/w32-win.elc.
11330 (NS_SUPPORT): New.
11331 (lisp): Add NS_SUPPORT.
11332 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11333
4ff670a8
DR
113342009-09-25 David Reitter <david.reitter@gmail.com>
11335
11336 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11337 on Mac OS X 10.6+ (bug#4513).
11338
feabfb6c
JB
113392009-09-24 Juanma Barranquero <lekktu@gmail.com>
11340
11341 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
11342 some parts of Emacs code (like font selection) don't grok them.
11343 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 11344
de59072a
AS
113452009-09-24 Andreas Schwab <schwab@redhat.com>
11346
11347 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11348
a489517b
JB
113492009-09-24 Juanma Barranquero <lekktu@gmail.com>
11350
11351 * dired.c (Fdirectory_files): Fix typo in docstring.
11352
0592970c
AR
113532009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11354
11355 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11356 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11357 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11358 under GNUstep.
11359 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11360
11361 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11362 glyph advancement.
11363
48e8a88b
AR
113642009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11365
11366 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 11367 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
11368
11369 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11370 deleted (bug #4492).
11371
e14f0a78
AR
11372 * nsfont.m (Vns_reg_to_script): New lisp variable.
11373 (syms_of_nsfont): Declare it.
11374 (ns_registry_to_script): New function.
11375 (ns_get_req_script): Call it.
11376 (ns_findfonts): Don't give up on non-unicode registry.
11377
11378 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
11379
5b650faa
SM
113802009-09-20 Tom Tromey <tromey@redhat.com>
11381
11382 * eval.c (find_handler_clause): Make stack-trace-on-error work in
11383 batch mode (bug#4228).
11384
a489517b 113852009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
11386
11387 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 11388 carefully. (Bug #4339)
0bae4e09 11389
fcfe06f3
CY
113902009-09-18 Chong Yidong <cyd@stupidchicken.com>
11391
d798ba87 11392 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 11393
31642728
AR
113942009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11395
11396 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
11397 (main) [HAVE_NS]: Don't process --no-init-file option.
11398 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
11399
11400 * nsterm.h (ns_no_defaults): Remove.
11401
11402 * nsterm.m (ns_no_defaults): Remove.
11403 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
11404 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
11405 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
11406 don't update the NSWindow itself.
bba3e508
SM
11407 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
11408 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
11409
11410 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
11411 ns_use_qd_smoothing.
11412
11413 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
11414 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 11415 (x-close-connection): Drop PSFlush() under OS X.
a489517b 11416 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 11417
8686ac71
JB
114182009-09-17 Juanma Barranquero <lekktu@gmail.com>
11419
11420 * emacs.c (inhibit_x_resources): New variable.
11421 (main) [HAVE_NS]: Don't process --quick command line option.
11422 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
11423
11424 * lisp.h (inhibit_x_resources): Declare it extern.
11425
11426 * w32reg.c (x_get_string_resource):
11427 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
11428
e227ba05
EZ
114292009-09-17 Eli Zaretskii <eliz@gnu.org>
11430
362654a6
JB
11431 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
11432 Add lisp/term/internal.elc.
e227ba05 11433
742d40e8
SM
114342009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11435
11436 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
11437 (bug#4461).
11438
005bd5a2
DN
114392009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
11440
11441 * puresize.h (BASE_PURESIZE): Increase to 1290000.
11442
11443 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
11444 (OBJECTS_MACHINE): Remove, unused.
11445
f9af9719
SM
114462009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
11447
11448 * frame.c (x_get_resource_string): Remove unused.
11449
0307c7d2
JD
114502009-09-15 Jan Djärv <jan.h.d@swipnet.se>
11451
11452 * xterm.c (x_new_font): Call change_frame_size before calling
11453 x_set_window_size, in case frame size won't change.
11454
11455 * frame.c (x_set_font): Remove dead code.
11456
428b13d6
SM
114572009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
11458
11459 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
11460
5766c380
SM
114612009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11462
11463 * lread.c (Fload): Don't output a message after loading an obsolete
11464 package any more (done in Lisp now).
11465
2fd0161b
CY
114662009-09-12 Chong Yidong <cyd@stupidchicken.com>
11467
11468 * fns.c (syms_of_fns): Doc fix (Bug#4227).
11469
bc5e75b6
SM
114702009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11471
11472 * keymap.c (Fwhere_is_internal): Use nconc2.
11473
c31c985e
AM
114742009-09-11 Alan Mackenzie <acm@muc.de>
11475
11476 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
11477 batch mode.
11478
78012bd2
AS
114792009-09-11 Andreas Schwab <schwab@linux-m68k.org>
11480
11481 * xdisp.c (display_mode_element): Detect cycles.
11482
9d889332
SM
114832009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11484
11485 * keymap.c (where_is_internal): Don't erroneously return nil right after
11486 filling the cache.
11487 (where_is_internal_1): Fix up typo.
11488
7ab5d780
GM
114892009-09-11 Glenn Morris <rgm@gnu.org>
11490
11491 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
11492 share a common doc-string.
11493
5238a749
SM
114942009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11495
66d77eda
SM
11496 * keymap.c (get_keymap): Return the actual keymap symbol rather than
11497 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
11498
5238a749
SM
11499 * keymap.c (QCadvertised_binding): New constant.
11500 (syms_of_keymap): Initialize it.
11501 (Fwhere_is_internal): Try and use bindings from :advertised-binding
11502 if applicable.
11503
19f48442
SM
115042009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11505
50d4ba39
SM
11506 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
11507 (parse_menu_item): Streamline since bindings are recomputed all the
11508 time anyway. Don't bother checking Vdefine_key_rebound_commands any
11509 more and don't support lmenu's menu-alias any more either.
11510
a88a5372
SM
11511 * keymap.c (where_is_internal_data): Make noindirect a boolean.
11512 (where_is_internal): Strip it down to only traverse the keymaps.
11513 Move the cache handling from Fwhere_is_internal to here.
11514 (Fwhere_is_internal): Move the handling of remapping and the choice of
11515 the best binding from where_is_internal to here.
11516 Unify the cached/noncached paths, so remapping is also handled
11517 correctly when the cache is used, and so the cache can be used to
11518 speed up remap-handling when applicable.
11519 Give preference to non-remapped bindings.
11520 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
11521 non-remapped bindings.
11522 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
11523 command remapping.
11524
19f48442
SM
11525 * xdisp.c (display_mode_element): Move list length limit from 50 to
11526 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
11527
599498c3 115282009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
11529
11530 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
11531
f9b7b5ac
SM
115322009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
11533
a53af587
JB
11534 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
11535 (Bug#4334)
11536
f9b7b5ac
SM
11537 * keymap.c (where_is_internal): Filter out shadowed remappings.
11538 Assume that where_is_internal returns unshadowed bindings to simplify
11539 the code and get rid of the gotos. Use ASIZE.
11540
04f4b72d
JD
115412009-09-04 Jan Djärv <jan.h.d@swipnet.se>
11542
4da146f2
JD
11543 * xterm.c (x_focus_changed): If we get a focusout and pointer
11544 is invisible, make it visible.
11545
04f4b72d
JD
11546 * xterm.h: Remove condition for declaration of
11547 x_*_window_to_frame.
11548
7cef7ce3
SM
115492009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11550
11551 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11552 initial terminal as well.
11553
a54fa5b7
JD
115542009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11555
11556 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 11557 x_menubar_window_to_frame.
a54fa5b7 11558
50426a04 11559 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
11560 (XTmouse_position): Do not return valid positions
11561 for clicks in the menubar and the toolbar for Gtk+.
11562
11563 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11564 if the widget for the event has the same top level as a frame,
11565 return the frame.
11566 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11567 internal windows, bug #4122.
11568 (x_non_menubar_window_to_frame): Remove.
11569
5a021dd0
GM
115702009-09-02 Glenn Morris <rgm@gnu.org>
11571
11572 * buffer.c (default-major-mode): Move most of the doc from here...
11573 (major-mode): ... to here.
11574
548fe2f3
NR
115752009-08-30 Nick Roberts <nickrob@snap.net.nz>
11576
11577 * process.c (wait_reading_process_output): Keep the descriptor
11578 when pty is used by a non-child process, e.g., in I/O buffer of
11579 GDB this allows inferior to be restarted.
11580
e0840eef
EZ
115812009-08-29 Eli Zaretskii <eliz@gnu.org>
11582
11583 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11584 both branches into one.
11585
82e98df4
SM
115862009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11587
11588 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11589 (main): Use enable-multibyte-characters rather than
11590 default-enable-multibyte-characters. Output a warning message when
11591 running a unibyte session.
11592
890617cb
YM
115932009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11594
11595 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11596 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11597 (copy_data_segment): Also copy __program_vars section.
11598 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11599 (dump_it) [LC_DYLD_INFO]: Use it.
11600
11601 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11602
e7adeadc
EZ
116032009-08-28 Eli Zaretskii <eliz@gnu.org>
11604
11605 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11606 $(SRC)/buildobj.h.
ef1b0ba7 11607 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
11608 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11609 $(SRC)/buildobj.h.
11610 (clean): Add buildobj.h.
11611
3ed8bbdc
TZ
116122009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11613
11614 * print.c (print_object): Set escapeflag to 1 when printing
11615 hashtable keys and values.
11616
155a6764
SM
116172009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11618
11619 * lread.c (read_integer): Use doubles (and potentially return a float
11620 number) as we do in string-to-number.
11621 (read1): Use strtol to read integers, signal errors on strtol's
11622 overflow and use floats if strtol's output is too large for
11623 Elisp integers.
11624
877610de
EZ
116252009-08-27 Eli Zaretskii <eliz@gnu.org>
11626
11627 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11628 (make-buildobj-SH): Fix last change.
11629 (SRC): Move to before where it's first used.
11630
ef73e7be
KH
116312009-08-27 Kenichi Handa <handa@m17n.org>
11632
550c8289
KH
11633 * process.c (send_process): Use encode_coding_object instead of
11634 encode_coding_string to perform eol-conversion even if the string
11635 is unibyte.
11636
60afa08d
KH
11637 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11638 character.
11639
ef73e7be 11640 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11641 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11642
7b3a82d7
DN
116432009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11644
5654bf63
DN
11645 * callproc.c (Fcall_process): Remove always true #if.
11646
7b3a82d7
DN
11647 * lisp.h: Replace #if 0 code for checking with text pointing to
11648 the --enable-checking configure flag.
11649
11650 * emacs.c (main): Mention the --enable-profiling configure flag
11651 instead of using CFLAGS.
11652
878bde49
KR
116532009-08-26 Ken Raeburn <raeburn@raeburn.org>
11654
11655 * Makefile.in (buildobj.h): New target.
11656 (doc.o): Depend on it.
11657 (temacs${EXEEXT}): Don't generate buildobj.lst.
11658 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11659 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11660 ($(BLD)/doc.$(O)): Depend on it.
11661 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11662 provided by Eli Zaretskii.)
11663 ($(TEMACS)): Don't generate buildobj.lst.
11664 * doc.c: Include buildobj.h.
11665 (buildobj): New static variable.
11666 (Fsnarf_documentation): Use it, instead of opening and reading
11667 buildobj.lst.
11668
1574224c
MA
116692009-08-25 Michael Albinus <michael.albinus@gmx.de>
11670
11671 * dbusbind.c (Fdbus_call_method)
11672 (Fdbus_call_method_asynchronously): Use English numeric format for
11673 timeout values in doc string.
11674
d9da2f45
KH
116752009-08-25 Kenichi Handa <handa@m17n.org>
11676
ef73e7be
KH
11677 * alloc.c (mark_char_table): New function.
11678 (mark_object): Use mark_char_table for a char-table.
11679
d9da2f45
KH
11680 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11681 (CHAR_TABLE_REF): Use it.
11682
c8edcc01
KR
116832009-08-23 Ken Raeburn <raeburn@raeburn.org>
11684
11685 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11686 before invoking the newly build emacs to check for load-path
11687 shadowing.
11688
7763401b
GM
116892009-08-22 Glenn Morris <rgm@gnu.org>
11690
11691 * Makefile.in (bootstrap_exe): New variable.
11692 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11693 Use ${bootstrap_exe}.
11694
729eadda
EZ
116952009-08-22 Eli Zaretskii <eliz@gnu.org>
11696
11697 * coding.h (encode_coding_string): Don't encode unibyte strings.
11698 (Bug#4047)
11699
eb4c6ace
MA
117002009-08-22 Michael Albinus <michael.albinus@gmx.de>
11701
11702 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11703
11704 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11705 intended as hotfix only.
11706 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11707
36e34d1b
AR
117082009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11709
11710 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11711 change, and clean up loose ends in the code left by it.
11712 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11713 yet another X11 format (rgb:r/g/b) for compatibility.
11714 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11715 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11716
f983eb8a
SM
117172009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11718
11719 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11720
3f56d3c6
MA
117212009-08-20 Michael Albinus <michael.albinus@gmx.de>
11722
11723 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11724 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11725 (xd_initialize, xd_pending_messages): Check, whether
11726 $DBUS_SESSION_BUS_ADDRESS is set.
11727
fb641d68
YM
117282009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11729
11730 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11731
11732 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11733
cf59a374
GM
117342009-08-20 Glenn Morris <rgm@gnu.org>
11735
11736 * emacs.c (system-type): Doc fix.
11737
1373f3be
SM
117382009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11739
11740 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11741 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11742
058ed861
MA
117432009-08-18 Michael Albinus <michael.albinus@gmx.de>
11744
1373f3be
SM
11745 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11746 New functions.
058ed861
MA
11747 (xd_initialize): Revert change from 2009-08-16.
11748
563a866e 117492009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11750
11751 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11752 font-group vector, return nil.
5fc05db0 11753
e42bdf01
CY
117542009-08-17 Chong Yidong <cyd@stupidchicken.com>
11755
11756 * process.c (status_notify): Don't perform redisplay.
11757 (Fdelete_process, list_processes_1, process_send_signal):
11758 Expliticly perform redisplay.
11759 (wait_reading_process_output): Always check process status, but
11760 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11761
4230ab74
KR
117622009-08-17 Ken Raeburn <raeburn@raeburn.org>
11763
1373f3be 11764 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11765 (XFLOAT_INIT): New macro for storing a float value.
11766 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11767 * fns.c (sxhash): Copy out the value of a float in order to
11768 examine its bytes.
11769 * dbusbind.c (xd_append_arg): Likewise.
11770
4230ab74
KR
11771 * emacs.c (main): Don't call syms_of_data twice.
11772
a0645cdd
MA
117732009-08-16 Michael Albinus <michael.albinus@gmx.de>
11774
11775 * dbusbind.c (xd_initialize): Add connection file descriptor to
11776 input_wait_mask, in order to let select() detect, whether a new
11777 message has been arrived.
ca4f31ea 11778 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11779
485db0ba
MA
117802009-08-15 Michael Albinus <michael.albinus@gmx.de>
11781
1373f3be
SM
11782 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11783 New functions.
485db0ba
MA
11784
11785 * lisp.h (xd_pending_messages): Declare.
11786
11787 * keyboard.c (readable_events): Call xd_pending_messages.
11788
b5b98ff4
CY
117892009-08-15 Chong Yidong <cyd@stupidchicken.com>
11790
1373f3be 11791 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11792
f8354c6e
CY
11793 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11794
b5b98ff4
CY
11795 * buffer.c (set_buffer_internal_1)
11796 (swap_out_buffer_local_variables): Check for unbound local
11797 variables (Bug#4138).
11798
8b9fc636
EZ
117992009-08-14 Eli Zaretskii <eliz@gnu.org>
11800
11801 * process.c (create_pty): Fix last change.
11802
ce959360
CY
118032009-08-13 Chong Yidong <cyd@stupidchicken.com>
11804
11805 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11806 (xbm_load_image): Caller changed.
64b807c9 11807 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11808
c7baf7e9
NR
118092009-08-13 Nick Roberts <nickrob@snap.net.nz>
11810
11811 * process.c (create_pty): New function.
11812 (Fstart_process): Use it to allow Emacs to just associate a pty
11813 with the buffer. See associated change in gdb-mi.el.
11814 (list_processes_1): Deal with no program name.
11815 (start_process_unwind): Use pid == -2 to mean no process.
11816
1ac9108a
SM
118172009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11818
11819 * cmds.c (nonundocount): New global variable.
11820 (keys_of_cmds): Initialize it.
11821 (Fself_insert_command): Use it to combine upto 20 sequential chars
11822 into a single undo entry, just like the Qself_insert_command code in
11823 keyboard.c does.
11824 Call frame_make_pointer_invisible, also like the Qself_insert_command
11825 code in keyboard.c does.
11826 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11827 than its own local replacement for it.
11828
e267324c
KR
118292009-08-10 Ken Raeburn <raeburn@raeburn.org>
11830
1ac9108a 11831 * fns.c (concat): Don't re-set string length to its current value.
77437343 11832
1ac9108a
SM
11833 * coding.h (decode_coding_string, encode_coding_string):
11834 Use SBYTES macro.
f0bed503 11835
1ac9108a 11836 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11837 (doprnt): Merge with doprnt1, discarding lispstrings code.
11838 * lisp.h (doprnt_lisp): Don't declare.
11839
416e006d
JL
118402009-08-07 Juri Linkov <juri@jurta.org>
11841
11842 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11843
6f7d5780
DN
118442009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11845
11846 * print.c (syms_of_print): Undo previous change.
11847
f19a0f5b
TZ
118482009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11849
11850 * lread.c (read1, syms_of_lread): Read hashtables back from the
11851 readable format.
11852
11853 * print.c (print_preprocess, print_object): Print hashtables fully
11854 and readably.
11855 (syms_of_print): Provide 'hashtable-print-readable.
11856
b9173dc2
AR
118572009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11858
11859 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11860 no family set.
11861 (nsfont_open): Handle case when entity has no family.
11862
1586503c
AR
118632009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11864
11865 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11866 element, not a list, for match case.
11867
087048cd
KH
118682009-07-28 Kenichi Handa <handa@m17n.org>
11869
11870 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11871 rigidly.
11872
11873 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11874 font_parse_xlfd. Check font properties more rigidly.
11875
780c2506
DN
118762009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11877
31fd7c5c
JB
11878 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11879 bsd-common.h.
780c2506 11880
a8c0cc18
KH
118812009-07-27 Kenichi Handa <handa@m17n.org>
11882
11883 * xfaces.c (face_with_height): Call font_clear_prop.
11884
4fbe2306
CY
118852009-07-26 Chong Yidong <cyd@stupidchicken.com>
11886
111d9af3
CY
11887 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11888
11889 * xterm.c (x_term_init): Use Qx.
11890
4fbe2306
CY
11891 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11892
1ac9108a 11893 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11894 (ns_get_color): Revert 2009-07-16 change.
11895
beb0b7f9
EZ
118962009-07-25 Eli Zaretskii <eliz@gnu.org>
11897
11898 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11899 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11900
2baf5e76
KR
119012009-07-25 Ken Raeburn <raeburn@raeburn.org>
11902
1ac9108a
SM
11903 * coding.h (decode_coding_string, encode_coding_string):
11904 Use SCHARS macro.
8890e5f5 11905
2baf5e76 11906 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11907 (load_depth): Delete.
2baf5e76
KR
11908 (Qload_in_progress): New variable.
11909 (load_unwind): Don't reference load_depth or load_in_progress.
11910 (Fload): Likewise; specbind Qload_in_progress instead.
11911 (init_lread): Don't initialize load_depth.
11912 (syms_of_lread): Initialize and protect Qload_in_progress.
11913
1395c6f5
AR
119142009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11915
11916 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11917
4e2f36cf
AR
119182009-07-23 Yavor Doganov <yavor@gnu.org>
11919
11920 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11921
5dd9a6f7
AR
119222009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11923
11924 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11925 Bugs 3792, 3720, 2402.
11926 (ns_lookup_indexed_color): Check for bad index.
11927 (ns_index_color): Init unused slot to 0.
11928 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11929 Bug 3714, possibly 3082.
5dd9a6f7 11930
c902b920
JR
119312009-07-22 Jason Rumney <jasonr@gnu.org>
11932
1ac9108a
SM
11933 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11934 Position IME window at cursor (Bug#2570).
c902b920
JR
11935 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11936 (globals_of_w32fns): Dynamically load functions required above.
11937
11938 * w32term.c (w32_draw_window_cursor): Send message to reposition
11939 any IME window.
11940
090101cf
CY
119412009-07-21 Chong Yidong <cyd@stupidchicken.com>
11942
11943 * fileio.c: Revert 2009-07-16 changes.
11944 (Vauto_save_include_big_deletions): New variable.
11945 (Fdo_auto_save): Disable auto-save only if
11946 auto-save-include-big-deletions is nil.
11947
e6583e3d
CY
119482009-07-21 Chong Yidong <cyd@stupidchicken.com>
11949
11950 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11951 the overflowed pixels into account (Bug#3879).
11952
ece435a5
KR
119532009-07-21 Ken Raeburn <raeburn@raeburn.org>
11954
11955 * lread.c (load_depth): New variable.
11956 (Fload, load_unwind, init_lread): Set it to the load recursion
11957 depth; set load_in_progress as a simple boolean based on the
11958 current load_depth. (Bug#3892)
11959
40b2d973
AR
119602009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11961
11962 * nsfont.m (ns_has_attribute): Remove.
11963 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11964
10be7e0d
JL
119652009-07-18 Juri Linkov <juri@jurta.org>
11966
11967 * process.c (Fset_process_query_on_exit_flag): Mention killing
11968 a buffer in docstring.
11969
fa055055
KH
119702009-07-17 Kenichi Handa <handa@m17n.org>
11971
11972 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11973
042f7b69
YM
119742009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11975
11976 * nsfns.m (Fns_set_alpha): Remove function.
11977 (syms_of_nsfns): Don't defsubr it.
11978
11979 * nsterm.m (ns_get_color): Remove incompatible color formats.
11980 (ns_color_to_lisp): Generate #rrggbb color format string.
11981
4be941e3
RS
119822009-07-16 Richard Stallman <rms@gnu.org>
11983
11984 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11985 (Fset_buffer_auto_saved): Handle save_length = -2.
11986
4e6b227d
CY
119872009-07-16 Chong Yidong <cyd@stupidchicken.com>
11988
11989 * xterm.c (Qx_gtk_map_stock): New var.
11990
11991 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11992 of calling intern each time.
11993
a1856973
YM
119942009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11995
11996 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11997 does tiling.
11998
11999 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12000
497e54d8
KH
120012009-07-14 Kenichi Handa <handa@m17n.org>
12002
72d36834
KH
12003 * font.c (font_vconcat_entity_vectors): New function.
12004 (struct font_sort_data): New member font_driver_preference.
12005 (font_compare): Check font_driver_preference.
12006 (font_sort_entities): The format of the first argument changed.
12007 (font_delete_unmatched): Likewise.
12008 (font_list_entities): The return type changed.
12009 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12010 (font_find_for_lface): Adjuste for the above changes.
12011 Don't suppress the checking of C even if the repertory supports it.
12012 (Flist_fonts): Adjust for the above changes.
72d36834 12013
1ac9108a
SM
12014 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12015 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12016 Reject a font who has adstyle property that is different from a
12017 langname derived from registry property.
1ac9108a 12018 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12019
b6046155
EZ
120202009-07-13 Eli Zaretskii <eliz@gnu.org>
12021
12022 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12023 local copy of dirfilename.
12024
fb6b6049
KH
120252009-07-13 Kenichi Handa <handa@m17n.org>
12026
e2402a5e
KH
12027 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12028 against max_char.
12029
fb6b6049
KH
12030 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12031 calling XSYMBOL (sym).
12032
65156807
EZ
120332009-07-11 Eli Zaretskii <eliz@gnu.org>
12034
1ac9108a
SM
12035 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12036 New function.
12037 (directory_files_internal) [WINDOWSNT]:
12038 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
12039 the filesystem of the directory is fast or slow.
12040
12041 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12042 file name.
12043 (is_slow_fs): New function.
12044 (stat): Use it to determine whether to issue more system calls to
12045 get accurate file attributes, when w32-get-true-file-attributes is
12046 `local'.
12047
e0ab5fcf
JD
120482009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12049
12050 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 12051 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
12052 parameter font-parameter as default to the font dialog.
12053
784ceded
KH
120542009-07-10 Kenichi Handa <handa@m17n.org>
12055
12056 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12057
fb8edc0b
EZ
120582009-07-09 Eli Zaretskii <eliz@gnu.org>
12059
1ac9108a 12060 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 12061
fb8edc0b
EZ
12062 * w32.c (stat): Treat UNC file names as residing on remote
12063 drives. (Bug#3542)
12064
635c75b1
KH
120652009-07-09 Kenichi Handa <handa@m17n.org>
12066
12067 * fontset.c (fontset_find_font): Fix previous change.
12068
c1d5ce94
MA
120692009-07-08 Michael Albinus <michael.albinus@gmx.de>
12070
12071 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12072 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12073 error flag.
12074
edb61b39
KH
120752009-07-08 Kenichi Handa <handa@m17n.org>
12076
374bf7e4
KH
12077 * fontset.c (fontset_find_font): Fix the logic of handling
12078 charset_matched.
12079 (font_for_char): Delete unused var.
12080 (generate_ascii_font_name): Delete it.
12081
edb61b39
KH
12082 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12083
12084 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12085 (encode_coding_sjis): Fix the code range check.
12086
0f3f018c
CY
120872009-07-07 Chong Yidong <cyd@stupidchicken.com>
12088
12089 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12090 (Fexpand_file_name): Copy string data properly (Bug#3772).
12091
fcaf6f3a
JD
120922009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12093
12094 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12095 first MapNotify.
12096
6809ca75
KH
120972009-07-07 Kenichi Handa <handa@m17n.org>
12098
12099 * character.h (unibyte_has_multibyte_table): Delete extern.
12100 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12101
12102 * charset.c (Fset_charset_priority): Update charset_unibyte.
12103 (syms_of_charset): Initialize charset_unibyte.
12104
12105 * character.c (unibyte_has_multibyte_table): Delete it.
12106 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12107 charset_unibyte.
12108 (multibyte_char_to_unibyte_safe): Likewise.
12109 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12110
1ac9108a 12111 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
12112 (x_produce_glyphs): Likewise.
12113
12114 * .gdbinit (xcharset): Fix the treating $arg0.
12115
ad9e2d54
EZ
121162009-07-04 Eli Zaretskii <eliz@gnu.org>
12117
12118 Emulation of `getloadavg' on MS-Windows.
50426a04 12119 * w32.c: Include float.h.
ad9e2d54
EZ
12120 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12121 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12122 (get_native_system_info, get_system_times): New functions.
12123 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12124 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12125 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12126 g_b_init_get_system_times, and num_of_processors.
12127
0a3472c7
JR
121282009-07-03 Jason Rumney <jasonr@gnu.org>
12129
12130 * w32term.c (w32_initialize): Use standard types.
12131
80904120
EZ
121322009-07-03 Eli Zaretskii <eliz@gnu.org>
12133
12134 * dired.c (Ffile_attributes): Decode user and group names by the
12135 locale's encoding. (Bug#3443)
12136
6978862d
DN
121372009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12138
f8d23104
DN
12139 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12140 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12141
12142 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12143
12144 * term.c (init_tty): Remove spurious #ifdef.
12145
6978862d
DN
12146 * m/mips.h: Mention this file is also used for netbsd.
12147 * m/pmax.h: Remove file.
12148
e044e4fc
JD
121492009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12150
12151 * xterm.h (struct x_display_info): Add invisible_cursor.
12152 (struct x_output): Add current_cursor.
12153
12154 * xterm.c (XTtoggle_invisible_pointer): New function.
12155 (x_define_frame_cursor): Don't define cursor if invisible or the
12156 same as before. Set current_cursor.
12157 (x_create_terminal): Set toggle_invisible_pointer_hook.
12158
12159 * xfns.c (make_invisible_cursor): New function.
12160 (x_set_mouse_color): Call make_invisible_cursor.
12161 Set current_cursor.
12162 (x_window): Set current_cursor.
12163
12164 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12165
12166 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12167 inserting a character.
12168 (read_avail_input): Call frame_make_pointer_visible.
12169
12170 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12171 (frame_make_pointer_invisible, frame_make_pointer_visible):
12172 New functions.
e044e4fc
JD
12173 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12174
12175 * frame.h: Declare frame_make_pointer_invisible and
12176 frame_make_pointer_visible.
12177 (struct frame): Add pointer_invisible.
12178
574c8efa
JD
121792009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12180
7b507248
JD
12181 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12182 frame isn't visible.
12183 (xg_frame_resized): If width/height is -1, get size of window
12184 from X server.
12185
12186 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12187 for MapNotify.
12188
835bdaa7 12189 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12190 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12191 (flush_and_sync): Reintroduce.
574c8efa 12192
3f1c6666 121932009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12194
31fd7c5c 12195 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12196
12197 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12198 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12199
12200 * frame.h: Declare Qsticky.
12201
cad9ef74
JD
12202 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12203
12204 * nsfns.m (ns_frame_parm_handlers): Ditto.
12205
12206 * frame.c: Declare Qsticky.
12207 (frame_parms): Add sticky.
12208
12209 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12210
12211 * xterm.h: Declare x_set_sticky.
12212
12213 * xterm.c (x_set_sticky): New function.
12214
69b16610
JD
12215 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12216 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12217 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12218
12219 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12220
12221 * frame.c: Qmaximized is new.
12222 (x_set_frame_parameters): Do not handle fullscreen specially.
12223 Only set width and height if explicitly set.
12224 (x_set_fullscreen): Handle Qmaximized.
12225 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12226 (syms_of_frame): Initialize Qmaximized.
12227
1ac9108a
SM
12228 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12229 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12230
12231 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12232 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12233 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12234 set gravity to NorthWestGravity when USE_GTK.
12235 (set_wm_state): New function.
31fd7c5c 12236 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12237 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12238 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12239 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12240 to x_real_positions and x_fullscreen_adjust.
12241
12242 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12243 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12244 flush_and_sync.
12245 (xg_height_changed): New function.
12246 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12247 and gtk_window_set_policy. Set frame gravity after parsing the
12248 geometry string.
3f1c6666
JD
12249 (xg_update_frame_menubar, free_frame_menubar)
12250 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12251 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12252 Remove calls to xg_frame_set_char_size.
12253
fd503d99
KH
122542009-07-01 Kenichi Handa <handa@m17n.org>
12255
12256 * keyboard.c (decode_keyboard_code): New function.
12257 (tty_read_avail_input): Decode the input bytes if necessary.
12258
1ac9108a
SM
12259 * coding.c (setup_coding_system):
12260 Initialize coding->carryover_bytes to 0.
fd503d99
KH
12261 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12262 use Qno_conversion.
12263
24ed93fb
YM
122642009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12265
12266 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12267
99061dfc
CY
122682009-06-30 Chong Yidong <cyd@stupidchicken.com>
12269
1ac9108a 12270 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 12271
ff90fbde
JR
122722009-06-30 Jason Rumney <jasonr@gnu.org>
12273
12274 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12275 is already loaded.
12276 Set user model ID if supported (bug#1849).
12277
5f445726
JM
122782009-06-29 Jim Meyering <meyering@redhat.com>
12279
12280 Remove useless if-before-xfree test.
12281 * nsfont.m (nsfont_close): Remove useless test.
12282 * term.c (delete_tty): Likewise.
12283 * w32.c (system_process_attributes): Likewise.
12284 * w32font.c (w32font_close): Likewise.
12285 * xfaces.c (x_free_gc): Likewise.
12286 * xselect.c (buffer): Likewise.
12287
b9607587
AS
122882009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12289
12290 * process.c (send_process): Keep decoded string in a local
12291 variable and protect it from GC. (Bug#3521)
12292
89ba96f4
EZ
122932009-06-28 Eli Zaretskii <eliz@gnu.org>
12294
12295 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12296 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12297
098a1589
CY
122982009-06-28 Chong Yidong <cyd@stupidchicken.com>
12299
485422be
CY
12300 * xdisp.c (start_display, handle_face_prop)
12301 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
12302 (redisplay_window, try_window_id, produce_image_glyph):
12303 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 12304
098a1589
CY
12305 * xterm.c (x_update_window_begin, x_new_focus_frame)
12306 (x_scroll_bar_handle_click, handle_one_xevent)
12307 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12308 (x_make_frame_visible, x_make_frame_invisible)
12309 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12310 code chunks that are now obsolete.
12311
78c38319
MA
123122009-06-28 Michael Albinus <michael.albinus@gmx.de>
12313
12314 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12315 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12316 for hours, when optimzation is enabled.
12317 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12318 (xd_read_message): Make them static.
12319
4189ed40
CY
123202009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12321
12322 * term.c (turn_on_face): Allow simultaneously bold and dim
12323 terminal faces (Bug#3530).
12324
cd9b5e16
CY
123252009-06-27 Chong Yidong <cyd@stupidchicken.com>
12326
4e23bedb
CY
12327 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12328
cd9b5e16
CY
12329 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12330 truncation glyphs (Bug#3686).
12331
07cc3c35
GM
123322009-06-27 Glenn Morris <rgm@gnu.org>
12333
12334 * m/pmax.h: Restore file, with only netbsd portions.
12335
31fd7c5c 123362009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 12337
cd9b5e16 12338 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 12339
42d4a64f
KH
123402009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12341
12342 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12343 the arg FORCE_SYMBOL.
12344
930fe55b 123452009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
12346
12347 * fontset.c (fontset_find_font): When a usable rfont_def is found
12348 in a fallback font-group, make it the first element of the group.
12349
57ebc3fd
CY
123502009-06-24 Chong Yidong <cyd@stupidchicken.com>
12351
12352 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12353
f084f942
KH
123542009-06-24 Kenichi Handa <handa@m17n.org>
12355
12356 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12357 set for C.
12358 (fontset_font): Record the availability of a font for C both in
12359 the realized fontsets of the current one and the default one.
12360
2f686c87
DN
123612009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12362
12363 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12364 conditional, it is always defined on AIX.
12365
666e158e
MB
123662009-06-23 Miles Bader <miles@gnu.org>
12367
12368 * window.c (Vrecenter_redisplay): New variable.
12369 (syms_of_window): Initialize it.
12370 (Qtty): New extern declaration.
12371 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12372
c6da7cd2
JM
123732009-06-23 Jim Meyering <meyering@redhat.com>
12374
1ac9108a
SM
12375 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
12376 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 12377 pointer dereferences are guaranteed to be valid.
c6da7cd2 12378
678dca3d
KH
123792009-06-23 Kenichi Handa <handa@m17n.org>
12380
74d75424
KH
12381 * emacs.c (main): Call init_font ().
12382
12383 * font.h (Vfont_log): Extern it.
12384 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
12385
12386 * font.c (font_sort_entities, font_list_entities)
12387 (font_matching_entity, font_open_entity)
12388 (font_close_object): Change font_add_log to FONT_ADD_LOG.
12389 (Vfont_log): Delete static.
12390 (font_log_env_checked): Delete this variable.
12391 (font_add_log): Don't check font_log_env_checked.
12392 (font_deferred_log): Check Vfont_log.
12393 (init_font): New function.
12394
678dca3d
KH
12395 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
12396
12397 * w32font.c: Change font_add_log to FONT_ADD_LOG.
12398
12399 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
12400
12401 * xfont.c: Change font_add_log to FONT_ADD_LOG.
12402
12403 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
12404 (face_for_char): Don't call font_deferred_log here.
12405 (font_for_char): Likewise.
12406
8a668709
CY
124072009-06-22 Chong Yidong <cyd@stupidchicken.com>
12408
9a01ee33
CY
12409 * w32term.c (x_draw_glyph_string): Use the glyph string's width
12410 rather than its background_width for drawing the overline and
12411 underline (Bug#489).
12412
12413 * xterm.c (x_draw_glyph_string): Use the glyph string's width
12414 rather than its background_width for drawing the overline and
12415 underline (Bug#489).
ec7c9926
CY
12416 (xg_default_icon_file): New variable.
12417 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
12418 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 12419
8a668709
CY
12420 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
12421 (load_overlay_strings): Remove externs.
12422 (fast_find_position): Function deleted.
12423 (mouse_face_from_buffer_pos): New function, based on
12424 fast_find_position. Correctly handle before-strings,
12425 display-strings, and after-strings (Bug#1220).
12426 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
12427
4d4c02d8
CY
124282009-06-21 Chong Yidong <cyd@stupidchicken.com>
12429
1ac9108a 12430 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
12431 (move_it_in_display_line_to, move_it_in_display_line_to)
12432 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
12433
70243478
CY
124342009-06-21 Chong Yidong <cyd@stupidchicken.com>
12435
12436 * Branch for 23.1.
12437
13087e59
JR
124382009-06-21 Jason Rumney <jasonr@gnu.org>
12439
12440 * w32term.c (keyboard_codepage): New static variable.
12441 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
12442 (w32_read_socket) [WM_CHAR]: Use it to decode character
12443 input (bug#3237).
12444 (w32_initialize): Initialize it.
12445 (codepage_for_locale): New function.
12446
4735b74e
KR
124472009-06-20 Ken Raeburn <raeburn@raeburn.org>
12448
12449 * process.c (status_message): Pass Faset index argument as a lisp
12450 object, so as to work with USE_LISP_UNION_TYPE.
12451
0e727afa
YM
124522009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12453
12454 * coding.c (Ffind_coding_systems_region_internal):
12455 Cache checked characters.
12456
cf299835
KH
124572009-06-18 Kenichi Handa <handa@m17n.org>
12458
1ac9108a 12459 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 12460
90f20d94
AS
124612009-06-18 Andreas Schwab <aschwab@redhat.com>
12462
12463 * xdisp.c (redisplay_internal): Check that the frame is still
12464 live after redisplay of its windows.
12465 (redisplay_windows): Check that the window is still live.
12466
7f1faf1c
KH
124672009-06-17 Andreas Schwab <schwab@linux-m68k.org>
12468
12469 * coding.c (detect_coding_utf_16): Fix previous change.
12470
cc13543e
KH
124712009-06-16 Kenichi Handa <handa@m17n.org>
12472
12473 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
12474 UTF-16 by checking the dispersion of Eth and Oth bytes.
12475
977b85f4
AS
124762009-06-15 Andreas Schwab <schwab@linux-m68k.org>
12477
12478 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
12479
66bd43d1
KH
124802009-06-15 Kenichi Handa <handa@m17n.org>
12481
12482 * process.c (status_message): Fix previous change. Be sure to
12483 decode a localized string.
12484
cb5ca9c5
YM
124852009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12486
12487 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
12488 add comment explaining why.
12489
ec7709ba 124902009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 12491
ec7709ba 12492 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 12493
4b7f335c
AR
124942009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
12495
12496 * nsfont.m (ns_attribute_value): Remove.
12497 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
12498 (ns_has_attribute): Shrink the normal range.
12499 (ns_findfonts): Don't worry about requested spec in determining
12500 need for synthItal.
e41820ee 12501 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 12502
73b26103
SZ
125032009-06-14 Seiji Zenitani <zenitani@mac.com>
12504
12505 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
12506
5753e4da
KH
125072009-06-11 Kenichi Handa <handa@m17n.org>
12508
12509 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12510 overhang for the static composition case.
12511
3561b671
KH
125122009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12513
5753e4da
KH
12514 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12515 overhang for the automatic composition case.
12516
3561b671
KH
12517 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
12518 composition case.
12519
852bbd41
CY
125202009-06-10 Chong Yidong <cyd@stupidchicken.com>
12521
12522 * xdisp.c (get_next_display_element): When handling wrap-prefix
12523 and line-prefix, treat \n as a control character (bug#3502).
12524
9903d1e6
KH
125252009-06-10 Kenichi Handa <handa@m17n.org>
12526
12527 * font.c (font_parse_family_registry): Fix for one-char foundry.
12528 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
12529
0bcbaaaa
CY
125302009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
12531
12532 * process.c (status_message): Fix handling of multibyte signal
12533 string (Bug#3499).
12534
40aa3f13
JM
125352009-06-09 Jim Meyering <meyering@redhat.com>
12536
1f80c7e2
CY
12537 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
12538 color name is missing.
40aa3f13 12539
72d51285
KH
125402009-06-09 Kenichi Handa <handa@m17n.org>
12541
12542 * charset.c (Fmap_charset_chars): In docstring, state clearly that
12543 FROM-CODE and TO-CODE are codepoints of CHARSET.
12544
c1d04d84
AR
125452009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12546
12547 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12548
125492009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12550
12551 Changes to support :script/:lang/:otf in NS font driver.
12552 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12553 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12554 indicate not part of font driver interface, and change callers.
12555 (ns_get_family): Remove pointless null check.
12556 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12557 ns_spec_to_descriptor, ns_descriptor_to_entity.
12558 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12559 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12560 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12561 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12562 (ns_get_req_script, ns_accumulate_script_ranges)
12563 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12564 New functions.
12565 (nsfont_list, nsfont_match): Use ns_findfonts.
12566 (nsfont_open): Use font descriptor instead of traits.
12567 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12568 (dump_glyphstring): Rename to ns_dump_glyphstring.
12569
c7eb9816
AR
12570 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12571
c1d04d84
AR
12572 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12573
12574 * fontset.c (fontset_from_font): Remove NS-specific code.
12575
ec7709ba 125762009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
12577
12578 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12579 nonactive windows.
12580
31fd7c5c 125812009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 12582
1ac9108a 12583 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 12584
68852c13 125852009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
12586
12587 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12588
6756cd1d
CY
125892009-06-07 Chong Yidong <cyd@stupidchicken.com>
12590
12591 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12592 account for the overflowing of newlines into the last glyph on the
12593 display line (Bug#3482).
12594
28bf482a
DR
125952009-06-05 David Reitter <david.reitter@gmail.com>
12596
ec7709ba
JB
12597 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12598 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
12599 Fns_selection_exists_p, Fns_selection_owner_p.
12600
fdb55376
JR
126012009-06-03 Jason Rumney <jasonr@gnu.org>
12602
12603 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12604 available. (Bug#3379)
12605
05129fbe
KH
126062009-05-29 Kenichi Handa <handa@m17n.org>
12607
1ac9108a
SM
12608 * coding.c (get_translation_table):
12609 Check Venable_character_translation.
05129fbe 12610
ec7709ba 126112009-05-26 David Reitter <david.reitter@gmail.com>
15891144 12612
ec7709ba
JB
12613 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12614 (x_make_frame_visible): Move frame to front rather than calling
15891144 12615 ns_raise_frame().
ec7709ba 12616 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 12617 isn't key window.
ec7709ba 12618 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
12619 drawRect may be called by NSView even if the frame is hidden.
12620
ec7709ba
JB
12621 * nsfns.m (Fx_create_frame): Follow other ports in
12622 determining visibility; default to t. Ensure async_visible is set.
15891144 12623
21f73755
EZ
126242009-05-23 Eli Zaretskii <eliz@gnu.org>
12625
12626 * dired.c (Ffile_attributes): Doc fix.
12627
34001e41
CY
126282009-05-22 Chong Yidong <cyd@stupidchicken.com>
12629
12630 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12631
46306a17
SM
126322009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12633
12634 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12635 and xfont_scratch_props.
12636 (syms_of_xfont): Do it here instead.
12637 (xfont_find_ccl_program): Delete, unused.
12638 (xfont_open): Delete unused var `i'.
12639
ef6e0694
KH
126402009-05-21 Kenichi Handa <handa@m17n.org>
12641
12642 * fontset.c (Qlatin): Don't make it static.
12643
46306a17
SM
12644 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12645 New functions.
ef6e0694
KH
12646 (xfont_scripts_cache, xfont_scratch_props): New variables.
12647 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12648 (xfont_list_pattern): Argument changed. Callers changed.
12649 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12650 (xfont_list): Don't reject a font spec with :script property.
12651 (xfont_has_char): Fix setting of encoding.
12652 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12653 xfont_scratch_props.
12654
126552009-05-19 Kenichi Handa <handa@m17n.org>
12656
46306a17 12657 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12658 Callers changed.
12659
126602009-05-18 Kenichi Handa <handa@m17n.org>
12661
12662 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12663
ac71ced7
SM
126642009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12665
12666 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12667 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12668
1c6d1051
YM
126692009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12670
12671 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12672 (x_delete_terminal): Dissociate resource database from display and
12673 then call XrmDestroyDatabase before closing display.
12674
9b9b779c
AR
126752009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12676
12677 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12678 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12679 whether selected frame is viable before raising it (based on patch
12680 by David Reitter), and improve commentary.
12681 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12682
cccd42d5
KH
126832009-05-15 Kenichi Handa <handa@m17n.org>
12684
12685 * font.c (Ffont_spec): Check arguments.
12686
337fbd17
CY
126872009-05-14 Chong Yidong <cyd@stupidchicken.com>
12688
12689 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12690 weight when testing attributes (Bug#3282).
12691
47a6002f
JD
126922009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12693
12694 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12695 what we expect to get in the next ConfigureNotify event.
12696
9cb363db
YM
12697 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12698 before Xft one (Bug#1696).
12699
b9126609
CY
127002009-05-07 David Reitter <david.reitter@gmail.com>
12701
12702 * nsfns.m (Fx_display_planes): Compute bitplanes using
12703 NSBitsPerPixelFromDepth (Bug#3207).
12704
27a69fd9
CY
127052009-05-10 Chong Yidong <cyd@stupidchicken.com>
12706
12707 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12708
00f37552
TTN
127092009-05-10 Ulrich Mueller <ulm@gentoo.org>
12710
12711 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12712
2d82a920
DR
127132009-05-07 David Reitter <david.reitter@gmail.com>
12714
ec7709ba
JB
12715 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12716 Respect mouse face background.
2d82a920 12717
46b0d52d
DR
127182009-05-07 David Reitter <david.reitter@gmail.com>
12719
ec7709ba
JB
12720 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12721 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12722 in ns_update_begin and ns_update_end.
12723
ce1b23bb
SM
127242009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12725
5996e1b7
SM
12726 * nsfns.m (ns_get_screen): Rewrite.
12727 Don't presume selected-frame is of type `ns'.
12728
ba98e3a0
SM
12729 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12730 all drivers.
12731
ce1b23bb
SM
12732 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12733
bcda200f
YM
127342009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12735
12736 * keyboard.h (add_user_signal): Fix typo in extern.
12737
12738 * lisp.h (add_user_signal): Remove extern.
12739
12740 * unexelf.c (unexec): Consider a section to precede the .bss section
12741 if its addresses overlap that of .bss.
12742 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12743 instead of dumping process.
12744
864660a2
SM
127452009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12746
12747 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12748
50da4e56
SM
127492009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12750
12751 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12752
51520a1a
DN
127532009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12754
12755 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12756 any statements.
12757
409ea3a1
AS
127582009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12759
59c4c60f
AS
12760 * process.c (read_process_output): Make sure the current buffer is
12761 always restored.
12762
409ea3a1
AS
12763 * coding.c (record_conversion_result): Don't modify
12764 Vlast_code_conversion_error for successful result.
12765 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12766
56f00ed2
KH
127672009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12768
12769 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12770 (load_charset_map): Remove unnecessary code.
56f00ed2 12771
4491c9d2
DR
127722009-04-30 David Reitter <david.reitter@gmail.com>
12773
35f5b128 12774 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12775 through f24.
12776
6970f632
CY
127772009-04-30 Chong Yidong <cyd@stupidchicken.com>
12778
12779 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12780
12781 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12782 face_at_buffer_position.
12783 (face_before_or_after_it_pos, get_next_display_element)
12784 (note_mouse_highlight): Update face_at_buffer_position call.
12785
12786 * term.c (term_mouse_highlight):
12787 * msdos.c (IT_note_mouse_highlight):
12788 * fontset.c (Finternal_char_font):
35f5b128 12789 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12790
12791 * dispextern.h (face_at_buffer_position): Update prototype.
12792
0c616f63
KH
127932009-04-30 Kenichi Handa <handa@m17n.org>
12794
35f5b128 12795 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12796
ad3aaf33
AS
127972009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12798
12799 * callproc.c (Fcall_process): Fix GC protection. Make sure
12800 current buffer is always restored.
12801
c3c963a0
YM
128022009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12803
12804 * atimer.c (init_atimer): Also clear stopped_atimers.
12805
12806 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12807
7e3386cb
YM
12808 * process.c (create_process): Clean up merger residues of
12809 2008-07-17 change.
12810
91f68422
CY
128112009-04-29 Ulrich Mueller <ulm@gentoo.org>
12812
12813 * lread.c (Vread_circle): New variable.
12814 (read1): Disable recursive read if Vread_circle is nil.
12815
24b34550
KH
128162009-04-29 Kenichi Handa <handa@m17n.org>
12817
12818 * fontset.h (set_default_ascii_font): Delete extern.
12819
12820 * fontset.c (set_default_ascii_font): Delete this unused function.
12821
12822 * frame.c (x_set_font): When ARG is a font-object, check if the
12823 font-object matches with the ASCII font-spec of the frame's
9c358bda 12824 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12825
77bf07e1
AS
128262009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12827
12828 * fns.c (Flocale_info): Protect vector from GC during decoding.
12829
12830 * process.c (Fstart_process): Protect argv strings from GC during
12831 encoding.
12832
2c55aacf
AS
128332009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12834
12835 * sysdep.c: Include <ctype.h>.
12836
b892d3c9
DR
128372009-04-27 David Reitter <david.reitter@gmail.com>
12838
35f5b128 12839 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12840 Remove commented-out code.
12841
9d0644c4
JB
128422009-04-26 Johan Bockgård <bojohan@gnu.org>
12843
12844 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12845
b7053016
JR
128462009-04-25 Jason Rumney <jasonr@gnu.org>
12847
12848 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12849
4e8231f3
YM
128502009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12851
12852 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12853 Swap bytes in short integer if fringe bitmap width > 8.
12854
493dcf2c
KH
128552009-04-23 Kenichi Handa <handa@m17n.org>
12856
12857 * xfaces.c (Fx_list_fonts): If a font size is specified in
12858 PATTERN, set it in returned scalable fonts.
12859
401e9e57
CY
128602009-04-22 Chong Yidong <cyd@stupidchicken.com>
12861
708e05dc
CY
12862 * keyboard.c (Fset_input_meta_mode): Doc fix.
12863
12864 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12865
1ac9108a 12866 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12867
12868 * coding.c (Fterminal_coding_system): Doc fix.
12869
12870 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12871 (Fx_display_pixel_height, Fx_display_planes)
12872 (Fx_display_color_cells, Fx_server_max_request_size)
12873 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12874 (Fx_display_mm_height, Fx_display_mm_width)
12875 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12876 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12877 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12878 (check_x_display_info): Handle terminal objects instead of
12879 terminal ids.
12880
401e9e57
CY
12881 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12882 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12883 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12884 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12885
df80c7f0
KH
128862009-04-21 Kenichi Handa <handa@m17n.org>
12887
5a8f12af 12888 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12889 (font_score): Check AVGWIDTH too.
908567ef 12890
df80c7f0
KH
12891 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12892 worst case.
1ac9108a
SM
12893 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12894 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12895
705af33f
JR
128962009-04-19 Jason Rumney <jasonr@gnu.org>
12897
12898 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12899 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12900
12901 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12902 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12903 get_phys_cursor_geometry.
12904
b71ac3dd 12905 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12906 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12907 using get_phys_cursor_geometry.
12908
12909 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12910 correctly calculated.
12911
dc2933eb
JD
129122009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12913
1ac9108a
SM
12914 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12915 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12916 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12917 is deprecated.
12918
973e7849
AS
129192009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12920
12921 * font.c (font_put_frame_data): Use xfree instead of free.
12922
314d66f4
JB
129232009-04-17 Juanma Barranquero <lekktu@gmail.com>
12924
12925 * w32font.c (Qja, Qko): Remove declarations.
12926 (syms_of_w32font): Don't DEFSYM them.
12927
cf702558
CY
129282009-04-17 Chong Yidong <cyd@stupidchicken.com>
12929
12930 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12931
12932 * font.h (Qja, Qko): Extern them.
12933
12934 * ftfont.c (Qja, Qko): Remove declarations.
12935
12936 * xfont.c (Qja, Qko): Remove declarations.
12937
b50504f5
KH
129382009-04-17 Kenichi Handa <handa@m17n.org>
12939
bde25748
KH
12940 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12941 string from a vector to handle Latin-1 characters correctly.
12942
b50504f5
KH
12943 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12944 entity even if the cache hits.
12945
f4646fff
AS
129462009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12947
12948 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12949 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12950
e7deaab0
AS
12951 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12952 * lisp.h: Adjust prototypes.
12953
0a0e7d49
CY
129542009-04-16 Chong Yidong <cyd@stupidchicken.com>
12955
12956 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12957 change (Bug#3003).
12958
3c908a57
KH
129592009-04-16 Kenichi Handa <handa@m17n.org>
12960
1ac9108a 12961 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12962
12963 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12964 adstyle.
12965
12966 * ftfont.c (Qja, Qko): Don't make them static.
12967 (enum ftfont_cache_for): New enum.
12968 (fc_charset_table): Undo the previous change.
12969 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12970 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12971 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12972 non-scarable font, try to get AVERAGE_WIDTH.
12973 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12974 Change ft_face_cache from a list of a hash-table. Don't check
12975 `ja' and `ko' adstyle here.
12976 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12977 FTFONT_CACHE_FOR_CHARET.
12978 (ftfont_get_charset): Undo the previous change.
1ac9108a 12979 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12980 (ftfont_close): Likewise.
12981 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12982
12983 * font.c (font_sort_entites): Change the meaning of the arg
12984 BEST-ONLY. Don't optimize for VEC of lenght 1.
12985 (font_select_entity): Just return the value of font_sort_entites.
12986
12987 * xfaces.c (merge_face_vectors): Reflect font properties in
12988 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12989 font_clear_prop if a face attribute doesn't change.
12990
3c908a57
KH
12991 * charset.h (charset_ksc5601): Extern it.
12992
12993 * charset.c (charset_ksc5601): New variable.
12994 (Fdefine_charset_internal): Set charset_ksc5601.
12995 (init_charset_once): Initialize charset_ksc5601 to -1.
12996
d65859c3
DN
129972009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12998
12999 * fileio.c (history_delete_duplicates): Remove unused declaration.
13000
13001 * callint.c (history_delete_duplicates): New declaration.
13002 (Fcall_interactively): Remove command history duplicates when
13003 history_delete_duplicates is true.
13004
3ba010e5
EZ
130052009-04-14 Eli Zaretskii <eliz@gnu.org>
13006
13007 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13008
06f19b91
KH
130092009-04-14 Kenichi Handa <handa@m17n.org>
13010
13011 * font.c (Ffont_info): Fix docstring. Fix the second element of
13012 the returned value (bug#2949).
13013
2cce8bfc
CY
130142009-04-14 Chong Yidong <cyd@stupidchicken.com>
13015
13016 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13017
d156542d
KH
130182009-04-14 Kenichi Handa <handa@m17n.org>
13019
13020 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13021 encoding charset is ascii_compatible.
13022
13023 * charset.c (Fdefine_charset_internal): Make charset
13024 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13025 code_offset is 0, and covers all ASCII characters.
13026
86fa089e
SM
130272009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13028
13029 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13030 (ns_string_to_pasteboard_internal):
13031 * nsmenu.m (process_dialog):
13032 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13033 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13034 * lisp.h (Fx_load_color_file): Declare.
13035
a8a3728b
KH
130362009-04-13 Kenichi Handa <handa@m17n.org>
13037
1ac9108a 13038 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
13039 (font_select_entity): Suppress the code to optimize for the same
13040 kind of fonts.
13041 (font_load_for_lface): Get a font that supports at least ASCII
13042 characters.
13043
13044 * ftfont.c (Qja, Qko): New variables.
13045 (fc_charset_table): Delete uniquifier data for iso8859-1.
13046 (ftfont_get_latin1_charset): New function.
13047 (get_adstyle_property): New function.
13048 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13049 bitmap fonts.
13050 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13051 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13052 `ko' or `ja'.
13053 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 13054 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
13055 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13056 property.
13057 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13058 (syms_of_ftfont): DEFSYM Qja and Qko.
13059
483670b5
KH
130602009-04-09 Kenichi Handa <handa@m17n.org>
13061
12b55765
KH
13062 * charset.c (map_charset_chars): For a charset of `superset'
13063 method, fix calculation of code range.
13064
483670b5
KH
13065 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13066 from the list of extra properties.
13067 (font_clear_prop): Be sure to delete `:name' font property.
13068
57d3b93b
KH
130692009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13070
b4b2c2ca
YM
13071 * dispnew.c (redraw_overlapping_rows): Fix detection of
13072 overlapping for topmost and bottommost rows.
13073
1ac9108a 13074 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 13075
472c3609
JR
130762009-04-06 Jason Rumney <jasonr@gnu.org>
13077
13078 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13079
ab193662
KH
130802009-04-06 Kenichi Handa <handa@m17n.org>
13081
13082 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13083
13084 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13085
0c26f026
KH
130862009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13087
13088 * ftfont.c (ftfont_open): Fix checking of the return value of
13089 FT_Load_Char. Fix setting font->underline_thickness.
13090
e173bbce
CY
130912009-04-04 Chong Yidong <cyd@stupidchicken.com>
13092
13093 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13094 (Fterminal_parameters, Fterminal_parameter)
13095 (Fset_terminal_parameter): In doc string, refer to terminal
13096 objects rather than terminal ids.
13097
693a2698
EZ
130982009-04-04 Eli Zaretskii <eliz@gnu.org>
13099
13100 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13101 ret_lim_data. (Bug#2867)
13102
d5221487
CY
131032009-04-03 Chong Yidong <cyd@stupidchicken.com>
13104
13105 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13106 so they don't get wider than the window, matching 2006-01-23
13107 change to the partner function in xdisp.c (Bug#2800).
13108
223509a3
KH
131092009-04-03 Kenichi Handa <handa@m17n.org>
13110
13111 * print.c (print_object): Make each lowest sub_char_table start a
13112 new line (Bug#2866).
13113
74fcd0b1
KH
131142009-04-02 Kenichi Handa <handa@m17n.org>
13115
13116 * fontset.c (fontset_font): Record no-font when a fontset
13117 explicitly tells not to try another font-specs.
13118
c542407d
SM
131192009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13120
13121 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13122
e3869731
KH
131232009-03-30 Kenichi Handa <handa@m17n.org>
13124
d8d2f142
KH
13125 * fontset.c (fontset_from_font): Specify only registry in a
13126 font-spec for all characters supported by that registry.
13127
e3869731
KH
13128 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13129 even if HAVE_M17N_FLT is not defined.
13130
5da5f805
CY
131312009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13132
13133 * ftfont.c: Conditionalize prototyping and use of
13134 ftfont_variation_glyphs.
13135
ab226c50
SM
131362009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13137
9628fed7
SM
13138 * frame.c (delete_frame): Work around compiler bug.
13139
13140 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13141 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13142 Some more EMACS_INT.
13143 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13144
13145 * xdisp.c (dump_glyph): Fix typo.
13146
ae19ba7c
SM
13147 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13148 (adjust_markers_gap_motion, adjust_markers_for_delete)
13149 (adjust_markers_for_insert, adjust_point)
13150 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13151 (make_gap, copy_text, count_size_as_multibyte, insert)
13152 (insert_and_inherit, insert_before_markers)
13153 (insert_before_markers_and_inherit, insert_1)
13154 (count_combining_before, count_combining_after, insert_1_both)
13155 (insert_from_string, insert_from_string_before_markers)
13156 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13157 (insert_from_buffer_1, adjust_after_replace)
13158 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13159 (replace_range_2, del_range, del_range_1, del_range_byte)
13160 (del_range_both, del_range_2, modify_region)
13161 (prepare_to_modify_buffer, signal_before_change)
13162 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13163 for buffer positions and sizes.
13164 * lisp.h: Adjust prototypes accordingly.
13165
13166 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13167 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13168 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13169
ab226c50
SM
13170 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13171
46dfb8fb
JD
131722009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13173
13174 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13175 lines and columns so we keep the same pixel height and width.
13176
13177 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13178 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13179 (x_handle_net_wm_state): New function to update frame parameter
13180 fullscreen.
13181 (x_term_init): Initialize atoms for _NET_WM_STATE.
13182
13183 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13184
d347e494
SM
131852009-03-27 Kevin Ryde <user42@zip.com.au>
13186
13187 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13188 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13189 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13190 (Fgpm_mouse_stop): Pass that new parameter.
13191 * termhooks.h (close_gpm): Adjust prototype.
13192
84db11d6
SM
131932009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13194
c95a5008
SM
13195 * lisp.h (Fx_focus_frame): Declare.
13196
84db11d6
SM
13197 * callint.c (Fcall_interactively): For '^' just delegate the work to
13198 handle-shift-selection.
13199 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13200
0a1958d6
CY
132012009-03-24 Chong Yidong <cyd@stupidchicken.com>
13202
0bfdff23
CY
13203 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13204
0a1958d6
CY
13205 * data.c (Qinteractive_form): New variable.
13206 (Finteractive_form): Use it.
13207
13208 * eval.c (Fcommandp): Use Qinteractive_form.
13209
58aec0d6
JR
132102009-03-24 Jason Rumney <jasonr@gnu.org>
13211
13212 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13213 Calculate total size precisely. Decode environment variables
13214 before substituting. (Bug#38)
13215
553dd618
KH
132162009-03-24 Kenichi Handa <handa@m17n.org>
13217
13218 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13219 encoding (Bug#2722).
553dd618 13220
c39ea606
JD
132212009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13222
13223 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13224 that gdpy is set.
13225
bc9b2b5e
AM
132262009-03-22 Alan Mackenzie <acm@muc.de>
13227
13228 * callint.c (Finteractive): Clarify the doc string - even
13229 promptless elements need \n separators.
13230
9f995a76
JR
132312009-03-22 Jason Rumney <jasonr@gnu.org>
13232
13233 * w32term.c (syms_of_w32term): Doc fix for
13234 x-use-underline-position-properties.
13235
22749e9a
EZ
132362009-03-21 Eli Zaretskii <eliz@gnu.org>
13237
13238 * w32.c (getpwuid): Change argument type to unsigned.
13239 (struct w32_id): Change type of `rid' member to unsigned.
13240 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13241 argument ID to unsigned. All callers changed.
13242 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13243
e00553bf
EZ
132442009-03-20 Eli Zaretskii <eliz@gnu.org>
13245
13246 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13247 negative, produce a float value.
13248
13249 * dired.c (make_uid, make_gid): New functions.
13250 (Ffile_attributes): Use them to avoid negative UID and GID.
13251
f761d6b6
JB
132522009-03-20 Juanma Barranquero <lekktu@gmail.com>
13253
13254 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13255 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13256 Fix typos in docstrings.
13257
d507f8d7
KH
132582009-03-19 Kenichi Handa <handa@m17n.org>
13259
13260 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
13261 changed, use font_load_for_lface to get a new font object.
13262 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
13263
13264 * frame.c (x_set_font): Handle the case that ARG is a cons.
13265
c68845e0
GM
132662009-03-19 Glenn Morris <rgm@gnu.org>
13267
13268 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13269
bfa49dd1
CY
132702009-03-19 Chong Yidong <cyd@stupidchicken.com>
13271
13272 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13273
8458d4c1
KH
132742009-03-19 Kenichi Handa <handa@m17n.org>
13275
13276 * charset.c (load_charset_map_from_file): When a mapfile can't be
13277 loaded, signal an error.
13278
78e7d1fe
EZ
132792009-03-18 Eli Zaretskii <eliz@gnu.org>
13280
13281 * dired.c (Ffile_attributes): Make sure UID and GID are always
13282 positive, even if the value is too large for a positive EMACS_INT.
13283 Doc fix.
13284
13285 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13286
5da9fdfa
YM
132872009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13288
13289 * xmenu.c (xdialog_show): Move Fredisplay call ...
13290 (Fx_popup_dialog): ... here.
13291
7519c40d
SM
132922009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13293
13294 * dired.c (file_name_completion): Disable the first optimization just
13295 installed, since it is not implemented correctly.
13296
2cd298e2
SM
132972009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13298
13299 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 13300 only if the entry can affect bestmatch.
2cd298e2
SM
13301 Stop the search early, as Ftry_completion already does.
13302
48d37adf
CY
133032009-03-17 Chong Yidong <cyd@stupidchicken.com>
13304
e10c9c93 13305 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 13306
9286b16a
CY
133072009-03-15 Chong Yidong <cyd@stupidchicken.com>
13308
13309 * keyboard.c (parse_menu_item): Don't display remappings as menu
13310 equivalent bindings (Bug#788).
13311
f7b146dc
JR
133122009-03-15 Jason Rumney <jasonr@gnu.org>
13313
13314 * w32term.h (WM_EMACS_PAINT): New message.
13315 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13316 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13317 before passing to lisp thread. (Bug#950)
13318
f761d6b6 133192009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 13320
d93f9575
CY
13321 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13322 variable as it was never reset.
13323 (ns_term_init): Remove initialization of Lisp-settable defaults
13324 and ns_expand_space.
13325 (-setPanelFromDefaultValues): Remove ns_expand_space.
13326 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13327 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
13328 i.e. no additional spacing, similar to Carbon port.
13329
d93f9575
CY
13330 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13331 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 13332
305018ec
JD
133332009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13334
13335 * sound.c (alsa_configure): Remove call to deprecated
13336 snd_pcm_sw_params_set_xfer_align.
13337
f761d6b6 133382009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
13339
13340 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13341 after clicking in a detached tool bar.
13342 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13343
46e722a9
SM
133442009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13345
348db3dd
SM
13346 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13347 int/Lisp_Object mixup).
46e722a9 13348
a3d16f39
KH
133492009-03-13 Kenichi Handa <handa@m17n.org>
13350
13351 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 13352 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
13353 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13354 (set_fontset_font): Change ARG to a vector. Handle range_list in
13355 ARG correctly.
13356 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 13357 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
13358 the above change.
13359 (fontset_from_font): Fix previous change.
fe24f56a 13360 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
13361 entry. If FONTSET is the default fontset, don't set the extra
13362 slot of the returning char-table.
13363
b066e6b6
JB
133642009-03-12 Juanma Barranquero <lekktu@gmail.com>
13365
13366 * nsfns.m (Fx_close_connection): Doc fix.
13367 (Fns_do_applescript): Reflow docstring.
13368 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13369 (Fx_display_pixel_width, Fx_display_pixel_height)
13370 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13371 Fix typos in docstrings.
13372 (Fns_set_alpha): Fix typos in error messages.
13373
d472514e 133742009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 13375
d472514e 13376 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
13377 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
13378 were used for such events.
13379
d472514e
JB
13380 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
13381 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 13382
d472514e 13383 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
13384 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
13385
fb930676
KH
133862009-03-11 Kenichi Handa <handa@m17n.org>
13387
ff85581a
KH
13388 * font.h (font_open_by_spec): Extern it.
13389
c50b7e98
KH
13390 * font.c (font_open_by_spec): New function.
13391 (font_open_by_name): Use font_open_by_spec.
13392
fb930676
KH
13393 * frame.c (x_set_font): When ARG is a font-object, don't alter the
13394 fontset of the frame.
13395
13396 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
13397 modify the default font of frames that use this fontset.
13398 (num_auto_fontsets): New variable.
13399 (fontset_from_font): Use num_auto_fontsets to decide a fontset
13400 name. Be sure to set FONTSET_ASCII to the correct font name.
13401 (update_auto_fontset_alist): New function.
13402
df4e8455
JB
134032009-03-11 Juanma Barranquero <lekktu@gmail.com>
13404
13405 * makefile.w32-in: Update dependencies.
13406
0a375797
AR
134072009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13408
13409 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
13410
61313fa3
SM
134112009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13412
13413 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
13414
b55103fb
CY
134152009-03-10 Chong Yidong <cyd@stupidchicken.com>
13416
13417 * lread.c (Feval_buffer): Doc fix.
13418
dde2559c
KH
134192009-03-09 Kenichi Handa <handa@m17n.org>
13420
13421 * charset.c (Qfile_name_handler_alist): Extern it.
13422 (load_charset_map_from_file): Temporarily bind
13423 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
13424
df4e8455 134252009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 13426
47f588bb
GM
13427 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
13428 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 13429
4ddf94bd
AR
134302009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13431
4c9bdfc2
AR
13432 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
13433 (x_set_window_size): Change back to calculated method of setting
13434 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
13435 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
13436 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
13437
fe41ae9e
AR
13438 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
13439
4c9bdfc2
AR
13440 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
13441 accelerator in parens under GNUstep.
13442
825d0875
KH
134432009-03-06 Kenichi Handa <handa@m17n.org>
13444
13445 These changes are to detect incorrect composition sequence without
f3b3be74 13446 looking ahead the source. (Bug#2370)
825d0875
KH
13447
13448 * coding.h: Include "composite.h".
13449 (enum compisition_state): New enum.
13450 (struct compisition_status): New struct.
13451 (struct iso_2022_spec): New member cmp_status.
13452 (struct emacs_mule_spec): New struct.
13453 (struct coding_system): New members ctext_extended_segment_len and
13454 embedded_utf_8. Change the union member
13455 spec.emacs_mule_full_support to spec.emacs_mule.
13456
13457 * coding.c (CODING_ISO_CMP_STATUS): New macro.
13458 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 13459 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
13460 (ADD_COMPOSITION_DATA): New arg nbytes.
13461 (emacs_mule_char): New arg cmp_status.
13462 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
13463 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
13464 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
13465 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
13466 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
13467 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
13468 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
13469 (EMACS_MULE_COMPOSITION_END): New macro.
13470 (emacs_mule_finish_composition): New function.
13471 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
13472 (decode_coding_emacs_mule): Avoid long looking ahead while
13473 handling composition.
13474 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
13475 (ENCODE_COMPOSITION_RULE): New macro.
13476 (finish_composition): New function.
13477 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
13478 (DECODE_COMPOSITION_START): New implementation.
13479 (DECODE_COMPOSITION_END): Likewise.
13480 (STORE_COMPOSITION_RULE): New macro.
13481 (decode_coding_iso_2022): Avoid long looking ahead while handling
13482 composition, CTEXT extended segment, and embedded UTF-8.
13483 (setup_coding_system): For a coding of type iso-2022, reset
13484 CODING_ISO_EXTSEGMENT_LEN (coding) and
13485 CODING_ISO_EMBEDDED_UTF_8 (coding).
13486 (get_translation): Delete arguments last_block, from_nchars,
13487 to_nchars. Callers changed.
13488 (produce_chars): Don't modify charbuf. Adjusted for the change of
13489 get_translation.
98a326f7 13490 (produce_composition): Adjust for the new annotation sequence.
825d0875 13491 (handle_composition_annotation): Likewise.
98a326f7 13492 (consume_chars): Adjust for the change of get_translation.
825d0875 13493
ccbc4452
AR
134942009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
13495
4ddf94bd 13496 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 13497
988a7ddb
KH
134982009-03-05 Kenichi Handa <handa@m17n.org>
13499
13500 * font.c (font_select_entity): New function.
13501 (font_find_for_lface): Use font_select_entity to select a font.
13502
13503 * fontset.c (fontset_find_font): If a font found without
a8a3728b 13504 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
13505 font with C restriction.
13506
98a326f7 135072009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 13508
be1bce46 13509 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 13510
10ea2b82
JR
135112009-03-04 Jason Rumney <jasonr@gnu.org>
13512
2c93b248 13513 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 13514 characters that have already been read. (Bug#2569)
2c93b248 13515
10ea2b82
JR
13516 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
13517 Log an error message if check_image_size failed.
13518 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 13519 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 13520
71a0c011
EZ
135212009-03-02 Eli Zaretskii <eliz@gnu.org>
13522
13523 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
13524 when decoding process output.
13525
2f63bba8
RS
135262009-03-01 Richard M Stallman <rms@gnu.org>
13527
13528 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
13529
13530 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
13531
0a9564cb
EZ
135322009-02-28 Eli Zaretskii <eliz@gnu.org>
13533
13534 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
13535 (decode_coding_emacs_mule, decode_coding_iso_2022)
13536 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13537 (decode_coding_raw_text, decode_coding_charset)
13538 (setup_coding_system, decode_eol, decode_coding, consume_chars):
13539 Honor inhibit-eol-conversion. (Bug #2186)
13540
449148b3
JR
135412009-02-28 Jason Rumney <jasonr@gnu.org>
13542
13543 * coding.c (detect_coding_charset): If not checking latin extra,
13544 fail on characters between 0x80 and 0xA0. (Bug#2354)
13545
a4aee864
EZ
135462009-02-28 Eli Zaretskii <eliz@gnu.org>
13547
13548 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 13549 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 13550
d88bee5a
GM
135512009-02-27 Glenn Morris <rgm@gnu.org>
13552
13553 * callint.c (Finteractive): Doc fix.
13554
a808f22d
KH
135552009-02-27 Kenichi Handa <handa@m17n.org>
13556
13557 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13558
caf8d60c
CY
135592009-02-27 Chong Yidong <cyd@stupidchicken.com>
13560
13561 * font.c (font_style_to_value): Set value for unknown symbols to
13562 100 instead of 255.
b61137ea
CY
13563 (weight_table, slant_table, width_table): Treat "unspecified" as
13564 the default value.
caf8d60c 13565
1a0de25c
JB
135662009-02-26 Juanma Barranquero <lekktu@gmail.com>
13567
13568 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13569
8fc45744
JB
135702009-02-25 Juanma Barranquero <lekktu@gmail.com>
13571
107bd7d1
JB
13572 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13573 error as soon as a recursive load is detected.
8fc45744 13574
f097e223
AR
135752009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13576
13577 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13578 before caching.
13579
8810a12f
KH
135802009-02-24 Kenichi Handa <handa@m17n.org>
13581
13582 * fontset.c (fontset_find_font): Fix the condition for checking
13583 unavailable font.
13584
2c7d1565
GM
135852009-02-24 Glenn Morris <rgm@gnu.org>
13586
13587 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13588 whitespace that confuses documentation.
13589
a20878b6
MB
135902009-02-23 Miles Bader <miles@gnu.org>
13591
13592 * process.c (Flist_system_processes, Fprocess_attributes)
13593 (syms_of_process): Rename `system-process-attributes' to
13594 `process-attributes'.
13595
b3b58c01
AS
135962009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13597
1b3b981b
AS
13598 * coding.h (struct coding_system): Make safe_charsets a pointer to
13599 unsigned char.
13600 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13601 being 255.
13602 (SAFE_CHARSET_P): Likewise.
13603 (setup_iso_safe_charsets): Properly setup safe_charsets.
13604 (Fdefine_coding_system_internal): Likewise.
13605 (setup_coding_system): Likewise. Remove unneeded casts.
13606 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
13607 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13608 Remove unneeded casts.
1b3b981b 13609
b3b58c01
AS
13610 * insdel.c (del_range_2): Don't modify gap contents when called
13611 from decode_coding_object. (Bug#1809)
13612
0b6f228c
CY
136132009-02-21 Chong Yidong <cyd@stupidchicken.com>
13614
13615 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13616 Qfont_object.
13617 (Ftype_of): Recognize font objects.
13618
13619 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13620
bba3e508
SM
13621 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13622 Definitions moved to data.c.
0b6f228c 13623
52f8870b
AR
136242009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13625
13626 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13627 async_iconified. Based on a patch by Christian Lynbech
13628 <christian.lynbech@tieto.com>.
13629 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13630
7087d5e9
GM
136312009-02-20 Glenn Morris <rgm@gnu.org>
13632
13633 * syntax.c (Fskip_chars_forward): Fix doc typo.
13634
41d2ceef
CY
136352009-02-20 Chong Yidong <cyd@stupidchicken.com>
13636
13637 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13638
1a3b7ca6
CY
136392009-02-19 Chong Yidong <cyd@stupidchicken.com>
13640
13641 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13642
73cce38d
KH
136432009-02-19 Kenichi Handa <handa@m17n.org>
13644
13645 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13646 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13647
a51092ee
DN
136482009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13649
13650 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13651
c423ecca
KH
136522009-02-18 Kenichi Handa <handa@m17n.org>
13653
13654 * font.c (font_check_otf_features): Fix handling of `nil' element.
13655 (Ffont_spec): Describe :lang and :otf in the docstring.
13656
4c1958f4
AS
136572009-02-16 Andreas Schwab <schwab@suse.de>
13658
13659 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13660 string.
13661
5704f39a
KH
136622009-02-16 Kenichi Handa <handa@m17n.org>
13663
13664 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13665 (Bug#1723)
5704f39a 13666
8f0085aa
CY
136672009-02-14 Chong Yidong <cyd@stupidchicken.com>
13668
a057d86a 13669 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13670
13671 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13672 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13673
aff01dd9
EZ
136742009-02-14 Eli Zaretskii <eliz@gnu.org>
13675
13676 * msdos.c (MAX_SCREEN_BUF): New macro.
13677 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13678 Encode the entire run of glyphs sharing the same face, instead of
13679 doing that one glyph at a time (fixes a bug with displaying
13680 double-size characters).
13681
ba301db3
AR
136822009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13683
13684 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13685
13686 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13687 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13688 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13689
13690 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13691 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13692
51d861de
SM
136932009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13694
ac146f82 13695 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13696 invisible areas.
13697
7fed8996
JR
136982009-02-12 Jason Rumney <jasonr@gnu.org>
13699
631ea4fb
JR
13700 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13701 (add_font_entity_to_list): Call check_face_name even when family
13702 is unspecified.
13703
cb4a3e42
JR
13704 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13705 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13706 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13707
7fed8996 13708 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13709 raster fonts. (Bug#2219)
7fed8996 13710
895416e3
KH
137112009-02-12 Kenichi Handa <handa@m17n.org>
13712
13713 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13714 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13715 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13716 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13717 (find_automatic_composition): While looking forward and backward,
13718 check static composition. Fix where to stop looking forward.
13719 (composition_adjust_point): Fix checking of static composition.
13720 (Fcomposition_get_gstring): Pay attention to
1dacf998 13721 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13722
13723 * lisp.h (fast_looking_at): Extern it.
13724
13725 * search.c (fast_looking_at): New function.
13726
51d861de 13727 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13728 <struct glyph>.u.cmp.to.
13729 (append_composite_glyph): Likewise.
13730
51d861de 13731 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13732 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13733 composition.
51d861de 13734 (append_composite_glyph): Adjust for the change of
895416e3
KH
13735 <strcut glyph>.u.cmp.to.
13736
8510724d
JB
137372009-02-11 Juanma Barranquero <lekktu@gmail.com>
13738
13739 * casetab.c (init_casetab_once):
13740 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13741 * font.c (font_update_lface):
13742 * fontset.c (Fnew_fontset):
13743 * ftfont.c (ftfont_drive_otf):
13744 * xfont.c (xfont_open):
13745 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13746
294fa707
SM
137472009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13748
13749 * fileio.c (Fwrite_region): !NILP -> CONSP.
13750
b5bfebec
AS
137512009-02-10 Andreas Schwab <schwab@suse.de>
13752
13753 * process.c (send_process): Properly relocate pointer into data
adab88bd 13754 when using encoded data. (Bug#2272)
b5bfebec 13755
cb84a2be
KH
137562009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13757
13758 * coding.c (detect_coding_charset): Fix previous change.
13759
89e09428
JR
137602009-02-08 Jason Rumney <jasonr@gnu.org>
13761
13762 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13763 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13764
4470a277
AS
137652009-02-07 Andreas Schwab <schwab@suse.de>
13766
13767 * unexelf.c (unexec): Fix error message.
13768
3175b12a
AR
137692009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13770
13771 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13772 when modal window is active. (Bug #2152)
3175b12a
AR
13773 (applicationShouldTerminate:): Remove now-unneeded while loop
13774 around NSRunAlertPanel.
13775
13776 * nsmenu.m (popupSession): New file-global variable.
13777 (pop_down_menu): End the popupSession before closing dialog.
13778 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13779 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13780 don't query NSApp for events (just sleep instead).
13781
8434d0b8
EZ
137822009-02-07 Eli Zaretskii <eliz@gnu.org>
13783
51d861de
SM
13784 * coding.c (syms_of_coding) <translation-table-for-input>:
13785 Modify doc string to discourage use for character code unification.
8434d0b8 13786
aa82edfd
CY
137872009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13788
13789 * atimer.c (run_timers): Update pending_atimers.
13790
2d283c7c
CY
137912009-02-06 Chong Yidong <cyd@stupidchicken.com>
13792
eb306cab
CY
13793 * image.c (svg_load_image): Fix last change.
13794
2d283c7c
CY
13795 * xfns.c (Fx_create_frame): Signal an error if no font is
13796 found (Bug#2147).
13797
4d8e170e
JB
137982009-02-05 Juanma Barranquero <lekktu@gmail.com>
13799
13800 * character.c (syms_of_character) <script-representative-chars>:
13801 Fix typo in docstring.
13802
c96169a0
AR
138032009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13804
13805 * nsmenu.m (pop_down_menu): New function.
13806 (ns_popup_dialog): Call it on unwind.
13807 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13808 call timer_check() (Bug#2154).
13809 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13810 handling_signal is set.
13811 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13812
31fd7c5c 13813 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13814
13815 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13816
13817 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13818
51d861de
SM
13819 * keyboard.c (poll_for_input_1, handle_async_input):
13820 Set handling_signal under HAVE_NS.
c96169a0 13821
aacd8ba1
GM
138222009-02-04 Glenn Morris <rgm@gnu.org>
13823
13824 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13825
4cb75c4b
KH
138262009-02-04 Kenichi Handa <handa@m17n.org>
13827
13828 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13829
13830 * charset.c (Fchar_charset): New optional arg restriction.
13831
13832 * coding.h (coding_system_charset_list): Extern it.
13833
13834 * coding.c (coding_system_charset_list): New function.
13835
13836 * composite.c: Include coding.h and termhooks.h.
13837 (composition_gstring_p): Fix for the terminal case.
13838 (composition_gstring_width): Likewise.
13839 (fill_gstring_body): Likewise.
13840 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13841 the frame.
13842 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13843 is within a composition.
867d4bb3 13844 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13845
13846 * term.c (encode_terminal_code): Fix handling of composition.
13847 (produce_composite_glyph): For static composition, get pixel_width
13848 from struct composition.
13849
826ba17e
AS
138502009-02-02 Andreas Schwab <schwab@suse.de>
13851
13852 * unexelf.c (unexec): Handle unaligned bss offset.
13853
8ad093db
AR
138542009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13855
13856 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13857 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13858
8ad093db
AR
13859 * keyboard.c (handle_interrupt): Don't call
13860 quit_throw_to_read_char() under NS.
d0a76a6e 13861
8ad093db
AR
13862 * blockinput.h: Remove NS-specific code.
13863
4d18a7a2
DN
138642009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13865
db878925
DN
13866 * dispnew.c (window_change_signal): Don't try to get the size of a
13867 suspended tty frame.
13868 * term.c (Fresume_tty): Resize if the size has changed while the
13869 tty was suspended.
13870
4d18a7a2
DN
13871 * alloc.c (mark_stack): Properly conditionalize previous change.
13872
8984df7c
JB
138732009-01-30 Juanma Barranquero <lekktu@gmail.com>
13874
13875 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13876 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13877 Remove; this code is not used on Windows.
13878
75f4f1ac
EZ
138792009-01-30 Eli Zaretskii <eliz@gnu.org>
13880
13881 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13882 EOLs that also has stray ^M characters.
13883
07a1e794
JB
138842009-01-30 Juanma Barranquero <lekktu@gmail.com>
13885
13886 * atimer.c (run_timers, alarm_signal_handler):
13887 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13888 * w32inevt.c (w32_console_read_socket):
13889 * w32term.c (w32_read_socket):
13890 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13891
a8b11cc9
CY
138922009-01-30 Chong Yidong <cyd@stupidchicken.com>
13893
13894 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13895 Initialize it as a relative filename pattern.
13896 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13897 (Fcall_process_region): Simplify temp file creation using
13898 temporary-file-directory.
13899
c279587b
EZ
139002009-01-29 Eli Zaretskii <eliz@gnu.org>
13901
13902 * msdos.c: Rename pending_signals to msdos_pending_signals.
13903 (sig_suspender, sigprocmask): Adjust.
13904
a8fe3242
CY
139052009-01-29 Chong Yidong <cyd@stupidchicken.com>
13906
13907 * keyboard.c (pending_signals): New var.
13908 (poll_for_input, input_available_signal, init_keyboard): Set it.
13909 (process_pending_signals): New function.
13910
13911 * lisp.h (QUIT): Check pending_signals instead of
13912 interrupt_input_pending. Use process_pending_signals.
13913
51d861de 13914 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13915
51d861de 13916 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13917
13918 * sysdep.c (emacs_write): Use process_pending_signals.
13919
13920 * xterm.c (XTread_socket): Update pending_signals.
13921
13922 * w32term.c (w32_read_socket): Update pending_signals.
13923
13924 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13925
6570a1c4
KH
139262009-01-29 Kenichi Handa <handa@m17n.org>
13927
13928 * xftfont.c (xftfont_has_char): New function.
13929 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13930
d72a4afa
AR
139312009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13932
13933 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13934 under GNUstep.
13935 (ns_query_color): New declaration.
13936
13937 * nsterm.m (ns_confirm_quit): New variable.
13938 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13939 (EmacsApp-applicationShouldTerminate:): Use it.
13940 (EmacsPrefsController): Let user set it.
13941 (ns_query_color): New function.
13942 (ns_defined_color): Use it.
13943 (ns_initialize): Drop.
13944 (ns_term_init): Add two lines from ns_initialize(), and set
13945 input_interrupt_mode to nil.
13946
13947 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13948 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13949
9fe78804
KH
139502009-01-28 Kenichi Handa <handa@m17n.org>
13951
13952 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13953 (fontset_get_font_group): Remember that no font-group is specified
13954 for C.
9fe78804 13955
fa57de36
CY
139562009-01-27 Chong Yidong <cyd@stupidchicken.com>
13957
930600e9
CY
13958 * fns.c (concat): Check for string overflow (bug#1787).
13959
fa57de36
CY
13960 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13961 Quadruple undo limits (bug#1501).
13962
7179ce7b
KH
139632009-01-27 Kenichi Handa <handa@m17n.org>
13964
13965 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13966 directly use GT_Get_Char_index.
13967
13968 * xftfont.c (struct xftfont_info): New member `index'.
13969
13970 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13971 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13972
5be8fcc0
CY
139732009-01-26 Kenichi Handa <handa@m17n.org>
13974
13975 * fontset.c (fontset_find_font): Fix handling of non-cons return
13976 value of fontset_get_font_group.
13977 (fontset_font): Revert last change.
13978
19ae3e61
JR
139792009-01-26 Jason Rumney <jasonr@gnu.org>
13980
13981 * w32font.c (w32font_list_internal): Return quickly if registry is
13982 unknown. Simplify final return.
13983 (add_font_entity_to_list): Break complex logic down into more
13984 manageable chunks. Move unknown registry check to
13985 w32font_list_internal.
13986
8612b71a
AR
139872009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13988
13989 Changes to remove Feval calls from GUI under NS.
13990
d8038940
JB
13991 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13992 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13993 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13994
13995 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13996 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13997 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13998 instead of NON_ASCII_KEYSTROKE_EVENT.
13999 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14000 (EmacsApp-applicationShouldTerminate:): Query user.
14001 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14002 instead of Feval.
14003
14004 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14005
14006 * keyboard.c (kbd_buffer_get_event): Check for it.
14007 (keys_of_keyboard): Define lispy keys for
14008 ns-put/unput-working-text.
14009
14010 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14011 versions.
14012 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14013
6288ae55
CY
140142009-01-25 Chong Yidong <cyd@stupidchicken.com>
14015
14016 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14017 setting current_buffer directly. (Bug#2044)
6288ae55 14018
289e7f8f
CY
140192009-01-24 Chong Yidong <cyd@stupidchicken.com>
14020
5ce87308 14021 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14022 any work. (Bug#1952, bug#1990).
5ce87308 14023
64cc3cf6 14024 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14025
b3243e6f
AR
140262009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14027
14028 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14029 (ns_no_defaults): New declaration.
14030 (main): Use it.
e0d2e69a 14031
d900b2af 14032 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 14033
d900b2af 14034 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 14035
d900b2af
AR
14036 * nsterm.m (ns_no_defaults): New variable.
14037 (ns_initialize): Don't read defaults when ns_no_defaults.
14038 (EmacsView-readSelectionFromPasteboard:)
14039 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 14040 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
14041 (ns_dumpglyphs_stretch): New function.
14042 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 14043 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 14044
e0d2e69a
AR
14045 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14046
3ac71f5d
CY
140472009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14048
14049 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14050 call for Sparc64.
14051
3fe53a83
AR
140522009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14053
14054 * nsfns.m:
14055 * nsgui.h:
14056 * nsmenu.m:
14057 * nsselect.m:
14058 * nsterm.h:
14059 * nsterm.m: Remove '23' comments that indicated code added during
14060 update from emacs-20 -> emacs-23.
14061
10f87c6f 140622009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
14063
14064 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 14065 ns_alternate_modifier. (Bug#1217)
a3b53a85 14066
c7cef62d
AR
14067 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14068 Display all shortcuts, including those w/o super modifier.
14069
575fb8bd
AR
14070 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14071
918b848b
CY
140722009-01-22 Chong Yidong <cyd@stupidchicken.com>
14073
14074 * fileio.c (Vwrite_region_post_annotation_function)
14075 (Vwrite_region_annotation_buffers): New vars.
14076 (build_annotations_unwind): Just reset
14077 Vwrite_region_annotation_buffers.
14078 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14079 Call write-region-post-annotation-function.
14080 (build_annotations): Add to Vwrite_region_annotation_buffers if
14081 buffer changes.
14082
a39e2539
AR
140832009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14084
14085 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14086 Tiger.
51d861de
SM
14087 * nsfns.m (ns_do_applescript):
14088 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 14089
35ed44db
AR
140902009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14091
14092 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14093
cbe0b5bf
AR
140942009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14095
14096 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 14097
6049d3a0
AR
14098 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14099
14100 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
14101 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14102 handle Ctrl-tab. (Bug#1841)
14103 (ns_get_color): Use unsigned long long for scanned hex string value.
14104 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 14105 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 14106 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 14107 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 14108 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 14109 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 14110 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 14111
d3810c21 14112 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 14113 DPI. (Bug#1316)
d3810c21
AR
14114 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14115 values in onTiger section.
4c7077c3 14116
e301e634
CY
141172009-01-19 Chong Yidong <cyd@stupidchicken.com>
14118
7f82490b
CY
14119 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14120 Check return value of font_spec_from_name.
64cc3cf6 14121 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
14122
14123 * font.c (font_spec_from_name): Return Qnil if font name could not
14124 be parsed.
14125 (font_parse_name): Treat a `?' character as part of an XLFD.
14126
e301e634
CY
14127 * fns.c (Fsubstring): Doc fix.
14128
1c0db158
KH
141292009-01-19 Kenichi Handa <handa@m17n.org>
14130
51d861de 14131 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14132 (ftfont_list): Likewise.
14133
acf20901
JB
141342009-01-18 Juanma Barranquero <lekktu@gmail.com>
14135
fff4e459
JB
14136 * dbusbind.c (Fdbus_register_signal):
14137 * process.c (conv_sockaddr_to_lisp):
14138 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14139
acf20901
JB
14140 * callproc.c (Fgetenv_internal): Doc fix.
14141
e7abcdfb
CY
141422009-01-16 Chong Yidong <cyd@stupidchicken.com>
14143
14144 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14145 it is not even used.
14146
b60861e6
GM
141472009-01-16 Glenn Morris <rgm@gnu.org>
14148
14149 * font.c (Ffont_variation_glyphs): Silence compiler.
14150
8db52afe
JB
141512009-01-15 Juanma Barranquero <lekktu@gmail.com>
14152
14153 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14154 Reported by David Robinow <drobinow@gmail.com>.
14155
4cddb209
KH
141562009-01-15 Kenichi Handa <handa@m17n.org>
14157
51d861de 14158 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14159
f247f67b
JR
141602009-01-14 Jason Rumney <jasonr@gnu.org>
14161
14162 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14163 never a fontset. (Bug#1562)
f247f67b 14164
f56a4450
KH
141652009-01-14 Kenichi Handa <handa@m17n.org>
14166
14167 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14168 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14169
4e99855e
CY
141702009-01-13 Chong Yidong <cyd@stupidchicken.com>
14171
14172 * font.c (font_clear_prop): If clearing the family, clear the font
14173 width index too.
14174
fff4e459 14175 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14176
24f01470
JB
141772009-01-12 Juanma Barranquero <lekktu@gmail.com>
14178
14179 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14180 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14181 functions, use sizeof.
14182
a41240a3
MR
141832009-01-12 Martin Rudalics <rudalics@gmx.at>
14184
14185 * keyboard.c (read_char): Fix case where last_nonmenu_event
14186 returned a bad value with submenus. (Bug#447)
14187
944636b8
CY
141882009-01-12 Chong Yidong <cyd@stupidchicken.com>
14189
14190 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14191 family, clear the font width index too.
14192
0dad7c6f
JR
141932009-01-11 Jason Rumney <jasonr@gnu.org>
14194
14195 * keyboard.c (cmd_error_internal): Exit when errors occur before
14196 frame creation and not in daemon mode. (Bug#1836)
14197
7c2363af
CY
141982009-01-10 Chong Yidong <cyd@stupidchicken.com>
14199
14200 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14201 of a display vector, backtrack.
14202 (try_window_reusing_current_matrix): Check glyph type before
14203 referencing charpos member.
14204
97b1b294
EZ
142052009-01-10 Eli Zaretskii <eliz@gnu.org>
14206
14207 Fix Bug #876:
14208
14209 * coding.c (inhibit_null_byte_detection): New variable.
14210 (detect_coding, detect_coding_system): Don't pay attention to null
14211 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14212 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14213 <inhibit-iso-escape-detection>: Doc fix.
14214
4624b6e3
JR
142152009-01-09 Jason Rumney <jasonr@gnu.org>
14216
14217 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14218 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14219 Only report Unicode Plane 2 fonts as unicode-sip.
14220
323b840c
CY
142212009-01-09 Chong Yidong <cyd@stupidchicken.com>
14222
51d861de
SM
14223 * xfaces.c (Fx_font_family_list): Delete function.
14224 Move compatibility version to faces.el.
323b840c 14225
51d861de 14226 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14227
eba7400d
MR
142282009-01-09 Martin Rudalics <rudalics@gmx.at>
14229
14230 * frame.c (x_set_frame_parameters): Remember requested value for
14231 fullscreen before it's reset by the parameter handler.
14232
4b09796d
GM
142332009-01-09 Glenn Morris <rgm@gnu.org>
14234
14235 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14236 (last_command_event): ... and update all users.
4b09796d
GM
14237 (last_input_char): For clarity, rename to...
14238 (last_input_event): ... and update all users.
14239 (last-command-char, last-input-char): Move to subr.el as aliases.
14240 * cmds.c, commands.h: Update for last_command_char rename.
14241
14ccea62
CY
142422009-01-08 Chong Yidong <cyd@stupidchicken.com>
14243
51d861de 14244 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14245
5f004711
JR
142462009-01-08 Jason Rumney <jasonr@gnu.org>
14247
14248 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14249 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14250 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14251 Don't declare.
fff4e459 14252 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
14253 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14254
b71f6f73
KH
142552009-01-07 Kenichi Handa <handa@m17n.org>
14256
50b06221 14257 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 14258 remember the coding system used for decoding in
50b06221
KH
14259 coding_system (Bug#1039).
14260
b71f6f73 14261 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 14262 breaking the loop. (Bug#870)
b71f6f73
KH
14263 (decode_coding_utf_16, decode_coding_emacs_mule)
14264 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14265 (decode_coding_charset): Likewise.
14266
56f668f7
MR
142672009-01-05 Martin Rudalics <rudalics@gmx.at>
14268
14269 * frame.c (x_set_frame_parameters): Make sure height (width) get
14270 applied when fullwidth (fullheight) is set. (Bug#1522)
14271
5da9424d
JB
142722009-01-04 Juanma Barranquero <lekktu@gmail.com>
14273
14274 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14275 (utc_base): Declare as ULONGLONG, not long double.
14276 (convert_time_raw): Delete.
14277 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14278 (initialize_utc_base): New function.
14279 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14280 (convert_from_time_t): Use initialize_utc_base; compute result with
14281 64-bit arithmetic.
14282 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14283
c4605e09
EZ
142842009-01-03 Eli Zaretskii <eliz@gnu.org>
14285
9acef61c 14286 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
14287 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14288 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14289 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14290 [!subprocesses]: Define.
14291 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14292 (Flist_system_processes, Fsystem_process_attributes)
14293 [!subprocesses]: Call list_system_processes and
14294 system_process_attributes instead of returning Qnil.
14295
9acef61c
JB
14296 * dosfns.c (system_process_attributes, list_system_processes):
14297 New functions.
c4605e09
EZ
14298
14299 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14300
14301 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14302 Don't use the default (no-op) implementation.
14303
8b7d0a16
JR
143042009-01-03 Jason Rumney <jasonr@gnu.org>
14305
a6d46bc1
JR
14306 * keyboard.c (parse_modifiers_uncached): Wheel events are
14307 clicks (bug#687).
14308
8b7d0a16
JR
14309 * w32term.c (x_query_colors, x_query_color): New functions.
14310
14311 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14312 (svg_load_image): Cast returned pointers from dynamically loaded
14313 functions. Eliminate W32 specific code.
14314
bfe11752
DN
143152009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14316
89e2438a
DN
14317 * nsfns.m (x_set_foreground_color, x_set_background_color)
14318 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14319 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14320 x_ prefix instead of ns_. Update references.
14321 (syms_of_nsfns): Add a FIXME comment.
14322
14323 * nsterm.m (x_set_cursor_type): New prototype.
14324 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14325
bfe11752
DN
14326 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14327 for Solaris instead of incorrectly providing Qutime and Qcutime.
14328
031da700
EZ
143292009-01-02 Eli Zaretskii <eliz@gnu.org>
14330
14331 * w32.c (process_times): Compute sum of utime and stime.
14332 (system_process_attributes): Add Qtime to the alist.
14333
14334 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14335 and add them to the alist.
14336
14337 * process.c (top level) <Qtime, Qctime>: New variables.
14338 (syms_of_process): staticpro them.
14339 (Fsystem_process_attributes): Add their documentation to the doc
14340 string.
14341
14342 * process.h: Declare Qtime and Qctime.
14343
df23bf08
JR
143442009-01-02 Jason Rumney <jasonr@gnu.org>
14345
9acef61c 14346 * image.c (Qgobject): New symbol.
df23bf08
JR
14347 (syms_of_image): Initialize it.
14348 (init_svg_functions): Load some functions from gobject library.
14349
5bbdf7aa
DN
143502009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14351
14352 * frame.c (make_terminal_frame): Remove redundant code and useless
14353 block.
14354
63136da6
AS
143552009-01-01 Andreas Schwab <schwab@suse.de>
14356
14357 * process.c (conv_sockaddr_to_lisp): Add workaround for
14358 getsockname bug on BSD.
14359
9ef69046
CY
143602009-01-01 Chong Yidong <cyd@stupidchicken.com>
14361
d6fafbe0
CY
14362 * xfns.c (x_create_tip_frame): Set border width of the X window.
14363
51d861de 14364 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 14365
f9c34147
JR
143662009-01-01 Jason Rumney <jasonr@gnu.org>
14367
9acef61c 14368 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
14369 Don't block input, as per earlier xterm.c changes.
14370
f5497e45
AR
143712008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14372
14373 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14374 (ns_appkit_version_int): New function.
14375 (x-server-version): Use ns_appkit_version_int and follow 21+
14376 convention of returning 3 integers.
14377
c19cab20
KH
143782008-12-30 Kenichi Handa <handa@m17n.org>
14379
14380 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
14381 (CHAR_SURROGATE_PAIR_P): New macro.
14382
14383 * font.h (struct font_driver): New member get_variation_glyphs.
14384
9acef61c 14385 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
14386 (Ffont_variation_glyphs): New function.
14387 (syms_of_font): Defsubr it.
14388
14389 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
14390 ftfont_variation_glyphs.
14391 (setup_otf_gstring): New function.
14392 (ftfont_drive_otf): Use it.
14393 (ftfont_shape_by_flt): Handle variation selector.
14394 (ftfont_variation_glyphs): New function.
14395
28cd591f
MR
143962008-12-30 Martin Rudalics <rudalics@gmx.at>
14397
14398 * frame.c (Vemacs_iconified): Remove.
14399
7f714baf
JR
144002008-12-30 Jason Rumney <jasonr@gnu.org>
14401
14402 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 14403 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 14404
9d2d22ab
CY
144052008-12-30 Chong Yidong <cyd@stupidchicken.com>
14406
14407 * indent.c (Fvertical_motion): Don't advance iterator if we have
14408 reseated to the desired position.
14409
14410 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
14411 checking for pos match.
14412
545312c2
KH
144132008-12-30 Kenichi Handa <handa@m17n.org>
14414
1ede3eb6
KH
14415 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
14416 just get the low 8-bit of the code.
14417
545312c2
KH
14418 * font.c (font_intern_prop): Validate str as multibyte.
14419
bd7bbf29
DN
144202008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14421
31e0750e
DN
14422 * dispextern.h (struct face): Move lface and hash from the middle
14423 of bitfields.
14424
bd7bbf29
DN
14425 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
14426
b5672e7c
DN
144272008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14428
14429 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
14430 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
14431 instead of intervals.h.
14432
d704470f
AS
144332008-12-26 Andreas Schwab <schwab@suse.de>
14434
14435 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
14436 cons.
14437
54b33868
MR
144382008-12-26 Martin Rudalics <rudalics@gmx.at>
14439
14440 * textprop.c (Qminibuffer_prompt): New variable.
14441 (syms_of_textprop): Initialize it.
14442 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
14443 in minibuffer-prompt face. (Bug#1662)
14444
40b615d6
JR
144452008-12-25 Jason Rumney <jasonr@gnu.org>
14446
14447 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
14448
baae5c2d
JR
144492008-12-24 Jason Rumney <jasonr@gnu.org>
14450
14451 * ralloc.c (r_alloc_reset_variable): New function.
14452
14453 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 14454 record of what points where. (Bug#716)
baae5c2d 14455
a9051c88
DN
144562008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
14457
14458 * minibuf.c (read_minibuf): Follow the non-interactive case when
14459 running as a daemon, before detaching.
14460
8b146312
AS
144612008-12-22 Andreas Schwab <schwab@suse.de>
14462
14463 * buffer.c (init_buffer): Use realloc instead of xrealloc.
14464 * gtkutil.c (free_widget_value): Use xfree instead of free.
14465
56f2de10
MR
144662008-12-22 Martin Rudalics <rudalics@gmx.at>
14467
14468 * frame.c (delete_frame): New function derived from
14469 Fdelete_frame to handle Qnoelisp value for FORCE argument.
14470 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
14471 (Fdelete_frame): Call delete_frame. Remove line from doc-string
14472 saying that FORCE non-nil doesn't run `delete-frame-functions'.
14473 * frame.h: Extern delete_frame.
14474 * window.c (window_loop):
14475 * terminal.c (delete_terminal):
14476 * xterm.c (x_connection_closed):
14477 * xfns.c (Fx_hide_tip):
9acef61c 14478 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 14479
1fc200d6
JR
144802008-12-21 Jason Rumney <jasonr@gnu.org>
14481
14482 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
14483 when character maps to .notdef character.
14484
5e252df2
SM
144852008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
14486
14487 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
14488
99b72cc4
JR
144892008-12-20 Jason Rumney <jasonr@gnu.org>
14490
14491 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 14492 a graphical frame on Windows. (Bug#1325)
99b72cc4 14493
acc49a52
JD
144942008-12-20 Jan Djärv <jan.h.d@swipnet.se>
14495
14496 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
14497
6ea15123
CY
144982008-12-20 Chong Yidong <cyd@stupidchicken.com>
14499
14500 * minibuf.c (Fread_buffer): Doc fix.
14501
b2dab6c8
JR
145022008-12-20 Jason Rumney <jasonr@gnu.org>
14503
54ea0c87 14504 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 14505 server name in UNC paths. (Bug#719)
54ea0c87 14506
b2dab6c8 14507 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 14508 charbuf. (Bug#1035)
b2dab6c8 14509
6d1921be
DN
145102008-12-19 Daniel Engeler <engeler@gmail.com>
14511
14512 * sysdep.c (serial_configure): Fix typo.
14513
53934c98
DN
145142008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14515
14516 * sysdep.c: Include alloca.h.
f4f634e8
DN
14517 (system_process_attributes): Add implementation for Solaris.
14518
14519 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 14520
06e111a6
DN
145212008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14522
14523 Reorganize implementation of Flist_system_processes and
14524 Fsystem_process_attributes. No functional changes.
14525 * process.c: Don't #include pwd.h, grp.h and limits.h.
14526 (Flist_system_processes): Just call list_system_processes.
14527 (Fsystem_process_attributes): Just call system_process_attributes.
14528 (procfs_list_system_processes, time_from_jiffies)
14529 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14530 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
14531
14532 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
14533 (list_system_processes): Rename from
14534 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
14535 Provide a do nothing implementation.
14536 (system_process_attributes): Rename from
14537 procfs_list_system_processes.
14538 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 14539 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
14540
14541 * w32.c (list_system_processes): Rename from
14542 w32_list_system_processes.
14543 (system_process_attributes): Rename from
14544 w32_system_process_attributes.
14545
14546 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14547
14548 * process.h (w32_list_system_processes)
14549 (w32_system_process_attributes): Remove.
362654a6
JB
14550 (list_system_processes, system_process_attributes):
14551 New prototypes.
06e111a6 14552
6a705b23
KH
145532008-12-19 Kenichi Handa <handa@m17n.org>
14554
14555 * xfont.c (xfont_decode_coding_xlfd): New function.
14556 (xfont_encode_coding_xlfd): New function.
14557 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14558 (xfont_list): Decode and encode XLFD by iso-8859-1.
14559 (xfont_match): Likewise.
14560 (xfont_list_family): Likewise.
14561 (xfont_open): Likewise.
14562
d66c0241 14563 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
14564 names are utf-8.
14565
d66c0241 14566 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
14567 names are utf-8.
14568
5a130941
JD
145692008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14570
14571 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14572 changed.
bfd20325
JD
14573 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14574 clicked on a detached tool bar button.
5a130941 14575
fd95644b
DN
145762008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14577
14578 * emacs.c (main): Print and error and exit when no data is read
14579 from the pipe.
14580
e6eee6ae
JR
145812008-12-17 Jason Rumney <jasonr@gnu.org>
14582
14583 * w32font.c (w32font_has_char): Always return -1.
14584
a35dd56b
KH
145852008-12-16 Kenichi Handa <handa@m17n.org>
14586
14587 * font.c (font_open_entity): Fix previous change.
14588
0e3635c2
DN
145892008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14590
14591 * process.c: Include <limits.h>.
14592
d4835507 145932008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
14594
14595 * font.c (font_update_drivers): Fix mistake in reconstructing the
14596 driver list.
14597
145982008-12-16 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * font.c (font_clear_cache): Fix format of font cache data.
14601
e2cbc401
CY
146022008-12-15 Chong Yidong <cyd@stupidchicken.com>
14603
14604 * xftfont.c (xftfont_open): Free Xft font pattern if
14605 XftFontOpenPattern fails.
14606
14607 * xterm.c (x_free_frame_resources): Remove extraneous call to
14608 free_frame_faces.
14609
b131d535
CY
146102008-12-13 Chong Yidong <cyd@stupidchicken.com>
14611
14612 * xterm.c (x_delete_display): Move xim_close_dpy call to
14613 x_delete_terminal.
14614 (x_delete_terminal): Call xim_close_dpy.
14615
e6df5336
JR
146162008-12-13 Jason Rumney <jasonr@gnu.org>
14617
14618 * w32font.c (intern_font_name): New function.
14619 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14620 (w32font_open_internal, Fx_select_font): Decode font name.
14621 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14622
14623 * w32font.h (intern_font_name): Declare new function.
14624
14625 * w32uniscribe.c (add_opentype_font_name_to_list):
14626 Use intern_font_name.
14627
20d68145
CY
146282008-12-13 Chong Yidong <cyd@stupidchicken.com>
14629
9f2554de
CY
14630 * frame.c (Fdelete_frame): Call free_font_driver_list.
14631
3d9bec9a
CY
14632 * font.c (free_font_driver_list): Implement missing function.
14633
20d68145
CY
14634 * w32term.c (w32_term_init): Don't initialize the image cache
14635 here; it will be done in init_frame_faces.
14636
14637 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14638 (struct x_display_info): Remove unused member null_pixel.
14639 New member xim_callback_data.
20d68145
CY
14640
14641 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14642 (xim_initialize): Save pointer to callback function data.
14643 (xim_close_dpy): Free callback function data. Call XCloseIM,
14644 reverting 2008-11-04 change by David Smith.
14645 (x_term_init): Don't initialize the image cache here; it will be
14646 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14647 (x_delete_display): Free x_dnd_atoms member.
14648
96f9306b
KH
146492008-12-13 Kenichi Handa <handa@m17n.org>
14650
ef1b0ba7 14651 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14652 Argument type changed. Handle a font-spec too.
96f9306b 14653 (font_score): Check Vface_font_rescale_alist.
6dec9044 14654 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14655
ef1b0ba7 14656 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14657
8d5b4964
CY
146582008-12-13 Chong Yidong <cyd@stupidchicken.com>
14659
14660 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14661
e6df5336
JR
146622008-12-12 Jason Rumney <jasonr@gnu.org>
14663
bba3e508
SM
14664 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14665 Set Vwindow_system_version to the real w32 major version.
e6df5336 14666
97c6058a
DN
146672008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14668
14669 * term.c (init_tty): Move setting the terminal name before the
14670 potential user: maybe_fatal.
14671
ec4e88d7
CY
146722008-12-11 Chong Yidong <cyd@stupidchicken.com>
14673
ef1b0ba7 14674 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14675 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14676
b4233ec9
JR
146772008-12-11 Jason Rumney <jasonr@gnu.org>
14678
8ec71e23 14679 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14680 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14681
b4233ec9 14682 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14683 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14684
011a0143
JB
146852008-12-11 Juanma Barranquero <lekktu@gmail.com>
14686
14687 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14688
3c309f34
JB
146892008-12-11 Juanma Barranquero <lekktu@gmail.com>
14690
14691 * process.c (Fsystem_process_attributes, syms_of_process):
14692 Fix typo in name of Ssystem_process_attributes.
14693 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14694
fedc6ab5
JB
146952008-12-11 Juanma Barranquero <lekktu@gmail.com>
14696
14697 * syntax.c (Fmodify_syntax_entry): Doc fix.
14698
ba3de0e8
JB
146992008-12-10 Juanma Barranquero <lekktu@gmail.com>
14700
14701 * font.c (Ffont_spec): Move usage to end of docstring.
14702
174f1c74
JR
147032008-12-10 Jason Rumney <jasonr@gnu.org>
14704
14705 * w32font.c (Qcham): New symbol.
14706 (font_supported_scripts): Add cham, and comments for other new
14707 scripts in bitfield from OpenType spec.
9d32f818
JR
14708 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14709 contain characters beyond the bmp.
174f1c74 14710
7b649478
KH
147112008-12-10 Kenichi Handa <handa@m17n.org>
14712
14713 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14714 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14715 Qunicode_sip.
14716
2133e2d1
JB
147172008-12-10 Juanma Barranquero <lekktu@gmail.com>
14718
14719 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14720 (Fcoding_system_put): Use QCdefault_char.
14721 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14722
9af886ee
CY
147232008-12-09 Chong Yidong <cyd@stupidchicken.com>
14724
74d819eb
CY
14725 * xftfont.c (syms_of_xftfont): Fix typo.
14726
4ccfa1c0 14727 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14728
7c19d3ae
DN
147292008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14730
14731 * emacs.c (main): Close daemon_pipe on exec.
14732
567826bb
CY
147332008-12-08 Chong Yidong <cyd@stupidchicken.com>
14734
14735 * termchar.h (struct tty): New members termcap_term_buffer and
14736 termcap_strings_buffer.
14737
14738 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14739 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14740 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14741 All callers changed.
14742 (init_tty): Store termcap data and string buffers in new struct
14743 tty members termcap_term_buffer and termcap_strings_buffer.
14744 (delete_tty): Free them.
4ccfa1c0 14745 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14746
aa96c42b
SZ
147472008-12-07 Seiji Zenitani <zenitani@mac.com>
14748
14749 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14750 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14751
b7e1d896
CY
147522008-12-06 Chong Yidong <cyd@stupidchicken.com>
14753
14754 * coding.c (make_conversion_work_buffer): Disable buffer
14755 modification hooks in the work buffer.
14756
b5ec91a5
EZ
147572008-12-05 Eli Zaretskii <eliz@gnu.org>
14758
14759 * process.c (procfs_system_process_attributes): If `nread' has a
14760 negative value, assign zero to it.
14761
a5d2a52b
CY
147622008-12-05 Chong Yidong <cyd@stupidchicken.com>
14763
68c5540b 14764 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14765
7bf1bb21
KH
147662008-12-05 Kenichi Handa <handa@m17n.org>
14767
14768 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14769 second character is a combining character.
14770
2fdc7d00
EZ
147712008-12-05 Eli Zaretskii <eliz@gnu.org>
14772
14773 * process.c (procfs_system_process_attributes): Don't use cmd,
14774 cmdsize, and q without initializing them first.
14775
bf6bfba8
JR
147762008-12-04 Jason Rumney <jasonr@gnu.org>
14777
14778 * w32font.c (w32font_draw): Initialize orig_clip before getting
14779 it, and delete it when finished.
14780
a3b1a468
DN
147812008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14782
14783 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14784 case when running as a daemon before detaching.
14785
8b8be8eb
JB
147862008-12-03 Juanma Barranquero <lekktu@gmail.com>
14787
805f2638 14788 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14789
b1bde622
KH
147902008-12-03 Kenichi Handa <handa@m17n.org>
14791
e500c47d
KH
14792 * font.c (font_at): Set `multibyte' at first.
14793
ca516334
KH
14794 * coding.c (decode_coding_charset): Check type of an element of
14795 vector VALIDS.
7bf1bb21 14796 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14797
4ccfa1c0 14798 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14799 (font_for_char): Likewise.
14800
1e5ecd37
CY
148012008-12-03 Chong Yidong <cyd@stupidchicken.com>
14802
d5b01609 14803 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14804 (font_update_lface): Handle fonts with corrupted size specs,
14805 i.e. non-int and non-float.
d5b01609 14806
11e3a6e4 14807 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14808 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14809 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14810
ab06788b
CY
14811 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14812
1e5ecd37 14813 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14814 underline_minimum_offset for underline position.
1e5ecd37 14815
63c125ab
DN
148162008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14817
14818 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14819
14820 * character.c (c_string_width): Specify the type for LEN.
14821
3a8406e1
KH
148222008-12-03 Kenichi Handa <handa@m17n.org>
14823
4ccfa1c0 14824 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14825 (decode_coding_utf_8): Likewise.
4ccfa1c0 14826 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14827 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14828
651df7d9
CY
148292008-12-02 Chong Yidong <cyd@stupidchicken.com>
14830
14831 * keyboard.c (make_lispy_position): Only use PT if the selected
14832 window is current.
14833
1f625c6c
AS
148342008-12-02 Andreas Schwab <schwab@suse.de>
14835
f7741ce9
AS
14836 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14837
1f625c6c
AS
14838 * doprnt.c (doprnt1): Fix size of charbuf.
14839
92bc2678
CY
148402008-12-02 Chong Yidong <cyd@stupidchicken.com>
14841
14842 * keyboard.c (timer_check): Revert last change.
14843
93b9e8cc
JB
148442008-12-02 Juanma Barranquero <lekktu@gmail.com>
14845
14846 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14847
fd7a37d5
JB
148482008-12-01 Juanma Barranquero <lekktu@gmail.com>
14849
14850 * makefile.w32-in: Update dependencies.
14851 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14852
c115043b
AS
148532008-12-01 Andreas Schwab <schwab@suse.de>
14854
14855 * font.c (register_font_driver): Use xmalloc.
14856 (font_put_frame_data): Likewise.
14857
f5668d2a
CY
148582008-12-01 Chong Yidong <cyd@stupidchicken.com>
14859
860d96be
CY
14860 * xfaces.c (realize_x_face): Make abort condition clearer.
14861
f5668d2a
CY
14862 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14863
379c17e7
CY
148642008-11-30 Chong Yidong <cyd@stupidchicken.com>
14865
14866 * keyboard.c (timer_check): After a timer runs, ensure that the
14867 selected window's buffer is current.
14868
35f36d65
JB
148692008-11-30 Juanma Barranquero <lekktu@gmail.com>
14870
f952c61c
JB
14871 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14872 It was accidentally restored by the Unicode merge.
14873
35f36d65
JB
14874 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14875
b23077df
JB
148762008-11-29 Juanma Barranquero <lekktu@gmail.com>
14877
14878 * w32proc.c: Include "coding.h".
14879 (Fw32_short_file_name): Encode filename passed to Windows API.
14880 (Fw32_long_file_name): Encode filename passed to Windows API and
14881 decode back the result. (Bug#1433)
14882
b8ebe9dd
KH
148832008-11-29 Kenichi Handa <handa@m17n.org>
14884
8cc53f96
KH
14885 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14886 not before accessing it.
14887
b8ebe9dd
KH
14888 * charset.c (Fdefine_charset_internal): After calculating
14889 min_char, max_char, and fastmap, copy the charset structure again.
14890 (encode_char): Fix the previous change.
14891
59bc82c0
SZ
148922008-11-28 Seiji Zenitani <zenitani@mac.com>
14893
14894 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14895
14896 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14897
14898 * nsterm.m (x_set_frame_alpha): New function.
14899
32247e3d
EZ
149002008-11-27 Eli Zaretskii <eliz@gnu.org>
14901
14902 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14903
b003e5ff
JB
149042008-11-27 Juanma Barranquero <lekktu@gmail.com>
14905
14906 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14907 pointer to check_face_name.
14908
708550f5
KH
149092008-11-27 Kenichi Handa <handa@m17n.org>
14910
14911 * category.h (SET_CATEGORY_SET): Call set_category_set.
14912 (set_category_set): Extern it.
14913
14914 * category.c (hash_get_category_set): New function.
bba3e508 14915 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14916 char_table_ref_and_range. Call hash_get_category_set to get a
14917 category set to store in the table.
14918
14919 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14920 Funify_charset.
14921
2ae37cf0 14922 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14923 (DECODE_CHAR): Check if the decoder vector is ready.
14924 (ENCODE_CHAR): Check if the encoder char-table is ready.
14925 (maybe_unify_char): Extern it.
14926
14927 * charset.c (Vchar_unified_charset_table): Delete it.
14928 (inhibit_load_charset_map): New variable.
14929 (temp_charset_work): New variable.
14930 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14931 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14932 New macros.
bba3e508
SM
14933 (load_charset_map): Meaning of control_flag changed.
14934 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14935 temp_charset_work.
14936 (load_charset): New argument control_flag.
14937 (map_charset_for_dump): New function.
14938 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14939 map_charset_for_dump.
14940 (Fdefine_charset_internal): If the charset method is MAP, load
14941 mapping tables by calling load_charset.
14942 (Funify_charset): Don't load a mapping table but directly set
14943 Vchar_unify_table.
14944 (maybe_unify_char): New function.
14945 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14946 Handle the case of inhibit_load_charset_map being nonzero.
14947 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14948 Handle the case of inhibit_load_charset_map being nonzero.
14949 (Fclear_charset_maps): Just free temp_charset_work.
14950 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14951 variable.
14952
bba3e508 14953 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14954 change of char_table_ref_and_range.
14955 (char_table_ref_and_range): Change the meaning of argument FROM
14956 and TO. Now the caller must provide initial values for *FROM
14957 and *TO.
14958
bba3e508 14959 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14960 char_table_ref_and_range.
14961 (fontset_get_font_group): Likewise.
14962 (Ffontset_info): Likewise.
14963
bba3e508 14964 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14965 char_table_ref_and_range. For char-table, put boundary between
14966 non-ASCII and 8-bit characters.
14967
14968 * print.c (print_object): For bool-vector, delete unnecessary
14969 check of ASCII_BYTE_P.
14970
9196133b
JR
149712008-11-26 Jason Rumney <jasonr@gnu.org>
14972
14973 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14974 leading in font height. (Bug#879)
9196133b 14975
9f688acf
GM
149762008-11-26 Glenn Morris <rgm@gnu.org>
14977
14978 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14979 redefinition with ifdef. (Bug#1383)
14980
90d19aff
AR
149812008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14982
14983 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14984
4ccfa1c0 149852008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14986
14987 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14988 New EmacsView methods.
14989 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14990 Fixes bug #1048,1357,1414.
14991
149922008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14993
14994 Fix bug #1362.
14995 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14996 is not an indexed color.
14997 * nsterm.m (free_indexed_color): Add argument checking.
14998 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14999
e7d5ecb3
CY
150002008-11-24 Chong Yidong <cyd@stupidchicken.com>
15001
15002 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15003 Document confirm-after-completion value for
15004 minibuffer-completion-confirm.
15005
c285743c
JR
150062008-11-24 Jason Rumney <jasonr@gnu.org>
15007
15008 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15009 warning.
15010
b0857706
JR
150112008-11-23 Jason Rumney <jasonr@gnu.org>
15012
15013 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15014 restored before returning.
15015
15016 * w32font.c (check_face_name): New function.
15017 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15018 fonts. (Bug#642)
b0857706 15019
ee50ff07
MR
150202008-11-22 Martin Rudalics <rudalics@gmx.at>
15021
15022 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15023 confirm-nonexistent-file-or-buffer in doc-string.
15024
b8ff72fa
SM
150252008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15026
15027 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15028 Fix copy/paste typo. Add checks.
15029
cee53ed4
KH
150302008-11-21 Kenichi Handa <handa@m17n.org>
15031
15032 * coding.c (detect_coding_iso_2022): Reject invalid composition
15033 sequence.
15034 (DECODE_COMPOSITION_START): If the current source is the last
15035 block, and the current composition doesn't end, regard this
15036 sequence as invalid.
15037 (decode_coding_iso_2022): Handle invalid composition sequence.
15038
f6ef1e65
MR
150392008-11-20 Martin Rudalics <rudalics@gmx.at>
15040
15041 * window.c (coordinates_in_window): Don't return
15042 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15043 line when the window is not the rightmost one. (Bug#1372)
15044
e08b1705
MR
150452008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15046
15047 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15048
ad98e89f
EZ
150492008-11-15 Eli Zaretskii <eliz@gnu.org>
15050
15051 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15052 and bright_bg if noninteractive is non-zero.
15053
fb098a4b
CY
150542008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15055
15056 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15057 x_draw_glyph_string_background.
15058
15059 * w32term.c (x_draw_glyph_string): Likewise.
15060
ce952b6e
CY
150612008-11-15 Chong Yidong <cyd@stupidchicken.com>
15062
15063 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15064 the next glyph string once past the overhang width.
15065
15066 * nsterm.m (ns_draw_glyph_string): Likewise.
15067
15068 * w32term.c (x_draw_glyph_string): Likewise.
15069
26ea7079
CY
150702008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15071
15072 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15073 double file close.
15074
1c33c906
MR
150752008-11-14 Martin Rudalics <rudalics@gmx.at>
15076
15077 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15078 dedicated status of window before attempting to display another
15079 buffer in it.
15080
8fc29035
JB
150812008-11-14 Juanma Barranquero <lekktu@gmail.com>
15082
15083 * msdos.c (Fmsdos_long_file_names):
15084 (syms_of_msdos) <dos-unsupported-char-glyph>:
15085 * dosfns.c (Fint86): Fix typos in docstrings.
15086
55fb4286
EZ
150872008-11-14 Eli Zaretskii <eliz@gnu.org>
15088
15089 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15090
3fda0315
KY
150912008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15092
15093 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15094
7e849c17
CY
150952008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15096
15097 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15098
15099 * frame.h: Negative alpha means "don't touch".
15100
15101 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15102
15103 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15104
b9fd67bd
DN
151052008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15106
15107 * hftctl.c:
15108 * chpdef.h:
15109 * acldef.h: Remove files used only for systems no longer supported.
15110
15111 * Makefile.in: Fix .o alphabetical ordering.
15112 (hftctl.o): Remove dependency, file removed.
15113 (keymap.o, print.o): Depend on charset.h.
15114
d5998e03
KH
151152008-11-10 Kenichi Handa <handa@m17n.org>
15116
2ae37cf0 15117 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 15118
be70e183
CY
151192008-11-08 Chong Yidong <cyd@stupidchicken.com>
15120
15121 * dired.c (file_name_completion): If completion_ignore_case is
15122 enabled, ignore case when checking completion-regexp-list.
15123
7cf94eac
EZ
151242008-11-08 Eli Zaretskii <eliz@gnu.org>
15125
15126 * vm-limit.c (get_lim_data): Fix last change.
15127
ee107a89
KH
151282008-11-08 Kenichi Handa <handa@m17n.org>
15129
15130 * character.c (Fget_byte): New function.
15131 (syms_of_character): Defsubr Fget_byte.
15132
5fd15622
CY
151332008-11-07 Chong Yidong <cyd@stupidchicken.com>
15134
15135 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15136 cursor position is valid after scrolling.
15137
13d62fad
JB
151382008-11-06 Juanma Barranquero <lekktu@gmail.com>
15139
15140 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15141
a1dd2936
GM
151422008-11-06 Glenn Morris <rgm@gnu.org>
15143
15144 * xterm.c (handle_one_xevent): Don't let popup menus cause
15145 mouse-autoselect-window related window switching. (Bug#1261)
15146
860cd236
CY
151472008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15148
15149 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15150
653a3150
AS
151512008-11-04 Andreas Schwab <schwab@suse.de>
15152
15153 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15154
870f5cac
CY
151552008-11-03 Chong Yidong <cyd@stupidchicken.com>
15156
15157 * xfns.c (Fx_wm_set_size_hint): New function.
15158
1e02f3cb
MR
151592008-11-03 Martin Rudalics <rudalics@gmx.at>
15160
15161 * textprop.c (Fprevious_single_char_property_change): Return 0
15162 when there's no change in a string. (Bug#1301)
15163
e630dfc6
MR
151642008-11-02 Martin Rudalics <rudalics@gmx.at>
15165
15166 * frame.c (do_switch_frame): New argument NORECORD passed to
15167 Fselect_window.
15168 (Fselect_frame): New argument NORECORD passed to
15169 do_switch_frame.
15170 (Fset_frame_selected_window): New argument NORECORD passed to
15171 Fselect_frame.
15172 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15173 in call of do_switch_frame.
15174 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15175 Handle NORECORD argument in call of Fselect_frame.
15176 * lisp.h (do_switch_frame, Fselect_frame)
15177 (Fset_frame_selected_window): Adjust declarations.
15178 * window.c (select_frame_norecord): New function.
15179 (run_window_configuration_change_hook): Use it and call
15180 Fselect_frame with NORECORD set.
15181 (Fselect_window): Pass NORECORD to Fselect_frame.
15182 (Fset_window_configuration): Handle NORECORD argument in call of
15183 do_switch_frame.
15184 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15185 Fset_frame_selected_window.
15186 * keyboard.c (command_loop_1): Handle NORECORD in call of
15187 Fselect_frame (currently ifdefd).
15188
9020b223
GM
151892008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15190
15191 * emacs.c (USAGE2): Untabify.
15192
793ffee8
SM
151932008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15194
15195 * composite.c (fill_gstring_header): Fix copy/paste typo.
15196
ab6d1131
MR
151972008-10-31 Martin Rudalics <rudalics@gmx.at>
15198
15199 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15200 (Fother_window): Rename argument and rewrite doc-string.
15201 (select_window_norecord): Fix return value. (Bug#1276)
15202
601a9cf1
JB
152032008-10-30 Juanma Barranquero <lekktu@gmail.com>
15204
15205 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15206 new frames overriding foreground for tooltips. Based on similar patch
15207 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15208
813b0652
CY
152092008-10-29 Chong Yidong <cyd@stupidchicken.com>
15210
15211 * emacs.c (Fdaemon_initialized): Initialize nfd.
15212
4414f58f
MR
152132008-10-29 Martin Rudalics <rudalics@gmx.at>
15214
15215 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15216 (Fwindow_text_height): Clarify doc-strings.
15217 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15218 doc-string of window-scroll-functions.
15219
ecdcaa09
RS
152202008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15221
15222 * category.c (syms_of_category): Fix typo in docstring.
15223
23fe745a
JB
152242008-10-28 Juanma Barranquero <lekktu@gmail.com>
15225
15226 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15227 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15228 Fix typos in docstrings.
15229
ff808935
DN
152302008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15231
15232 * emacs.c (daemon_pipe): Make non-static.
15233 (IS_DAEMON): Move definition ...
15234 * lisp.h (IS_DAEMON): ... here.
15235 (daemon_pipe): Declare.
15236 (is_daemon): Remove.
15237 * dispnew.c (init_display): Use IS_DAEMON.
15238
fc012771
SM
152392008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15240
15241 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15242 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15243
15244 * emacs.c (is_daemon): Remove.
15245 (main): Don't set is_daemon.
15246 (IS_DAEMON): New macro.
15247 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15248 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15249 parent exits.
15250 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15251
d8bdbe6f
CY
152522008-10-27 Chong Yidong <cyd@stupidchicken.com>
15253
d1a072bf
CY
15254 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15255 over-sized glyph, draw it with the default glyph width.
15256
e2e325aa
CY
15257 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15258 glyph, draw it with the default glyph width.
15259
15260 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15261 glyph, draw it with the default glyph width.
15262
d8bdbe6f
CY
15263 * xdisp.c (try_scrolling): When computing the distance from the
15264 scroll margin to PT, try moving some distance past the window
15265 bottom before giving up.
15266
7bfac547
MR
152672008-10-27 Martin Rudalics <rudalics@gmx.at>
15268
15269 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15270 (Fset_window_buffer): Explain in doc-string that a window can be
15271 "strongly" dedicated to its buffer.
15272
4ff029f6
DN
152732008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15274
15275 * emacs.c (daemon_name): New variable.
15276 (main): Deal with --daemon=SERVER_NAME.
15277 (Fdaemonp): Return a name if one was passed to --daemon.
15278
5790ef40
DN
152792008-10-26 Romain Francoise <romain@orebokech.com>
15280
f9bd0df9 15281 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
15282 (main): Create a pipe before forking, make the parent exit only after
15283 the child has closed its end of the pipe. Move closing the
15284 descriptors ...
15285 (Fdaemon_initialized): ... here. New function.
15286
f5385255
SM
152872008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15288
4d632321
SM
15289 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15290 the previous unoptimized table.
15291
f5385255
SM
15292 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15293 the distinction between non-nil and non-t value of `dedicated'.
15294
6c56a0f3
CY
152952008-10-25 Chong Yidong <cyd@stupidchicken.com>
15296
15297 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 15298 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 15299
fec89261
MR
153002008-10-25 Martin Rudalics <rudalics@gmx.at>
15301
15302 * window.c (Fget_buffer_window, Fdelete_windows_on)
15303 (Freplace_buffer_in_windows): Make buffer argument optional and
15304 rename to buffer_or_name.
15305
34fcddd0
CY
153062008-10-24 Chong Yidong <cyd@stupidchicken.com>
15307
f5385255
SM
15308 * xdisp.c (handle_single_display_spec, handle_display_prop):
15309 Undo 2005-05-16 change.
34fcddd0
CY
15310 (handle_stop): Pop iterator if it's loaded with an empty string.
15311 (get_overlay_strings_1): Don't save iterator if it's loaded with
15312 an empty string (bug#1201).
15313
064766f2
KH
153142008-10-24 Kenichi Handa <handa@m17n.org>
15315
15316 * ftfont.c (ftfont_otf_features): Fix previous change.
15317 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15318 calling ftfont_otf_features.
15319
f9bd0df9 153202008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
15321
15322 * font.c (font_match_p): Fix for the case that a vector of
15323 characters is in script-representative-chars.
15324
1dae9197
MA
153252008-10-24 Michael Albinus <michael.albinus@gmx.de>
15326
15327 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 15328 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
15329 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15330 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 15331 macro. (Bug#1186)
1dae9197 15332
f9bd0df9 153332008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
15334
15335 * s/sol2-10.h: New file.
15336
878a4584
JB
153372008-10-23 Juanma Barranquero <lekktu@gmail.com>
15338
15339 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15340 poor beast has survived 9+ years and the jump from xterm.c!).
15341
cd265ca6
MR
153422008-10-23 Martin Rudalics <rudalics@gmx.at>
15343
15344 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15345 Reword doc-string.
f5385255 15346 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 15347
472a4dc9
JB
153482008-10-23 Juanma Barranquero <lekktu@gmail.com>
15349
15350 * character.c (syms_of_character) <script-representative-chars>:
15351 <unicode-category-table>: Doc fixes.
15352
159bd5a2
NF
153532008-10-23 Noah Friedman <friedman@splode.com>
15354
15355 * coding.c (make_conversion_work_buffer): Check that
15356 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15357 Fget_buffer_create.
15358
49f9c344
KH
153592008-10-23 Kenichi Handa <handa@m17n.org>
15360
15361 * font.c (font_add_log): Check the values of extra properties.
15362
12bb3111
MR
153632008-10-22 Martin Rudalics <rudalics@gmx.at>
15364
15365 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15366 Reword doc-string.
15367 (Fset_window_parameter): Use NILP.
15368 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 15369 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 15370
bbeb4e99
JB
153712008-10-22 Juanma Barranquero <lekktu@gmail.com>
15372
15373 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15374
153752008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
15376
15377 * nsfns.m (ns_appkit_version): New function.
15378 (x-server-version): Use it.
15379 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
15380 (x-server-vendor): Don't check_ns().
15381
15382 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
15383
a9b555d3
JB
153842008-10-22 Juanma Barranquero <lekktu@gmail.com>
15385
15386 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
15387 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
15388
4626499f
KH
153892008-10-22 Kenichi Handa <handa@m17n.org>
15390
e3681952
KH
15391 * syntax.c (scan_words): Call word_boundary_p instead of comparing
15392 scripts.
15393
4626499f
KH
15394 * category.c (word_boundary_p): Check scripts instead of charset.
15395 Handle nil value in word-separating-categories and
15396 word-combining-categories.
15397 (syms_of_category): Fix docstrings of word-separating-categories
15398 and word-combining-categories.
15399
1560f91a
EZ
154002008-10-21 Eli Zaretskii <eliz@gnu.org>
15401
15402 * coding.c (Fencode_coding_region, Fdecode_coding_region)
15403 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
15404
f4668441
MR
154052008-10-21 Martin Rudalics <rudalics@gmx.at>
15406
15407 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
15408 Rename arg "buffer" to "buffer_or_name".
15409 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
15410 it optional.
15411 (no_switch_window): Remove since the return value is not used.
a9b555d3 15412 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
15413 Consider window as dedicated when Fwindow_dedicated_p returns a
15414 non-nil value.
15415 * lisp.h: Remove prototype for no_switch_window.
15416
fd75ddb2
JD
154172008-10-21 Jan Djärv <jan.h.d@swipnet.se>
15418
15419 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 15420 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 15421
07295713
KH
154222008-10-21 Kenichi Handa <handa@m17n.org>
15423
15424 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
15425 check Vlatin_extra_code_table.
15426
712adc82
EZ
154272008-10-20 Eli Zaretskii <eliz@gnu.org>
15428
15429 * fileio.c (Fset_file_modes): Doc fix.
15430
f549eb0b
MA
154312008-10-19 Michael Albinus <michael.albinus@gmx.de>
15432
15433 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
15434 in arrays.
15435
aac0c6e3
MR
154362008-10-19 Martin Rudalics <rudalics@gmx.at>
15437
15438 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15439 Mention kill-buffer in doc-string.
15440 (Fset_window_buffer): Reinsert tem check removed in last commit.
15441 (Fenlarge_window, Fshrink_window): Have argument names and
15442 doc-string follow Elisp manual more closely.
15443
154442008-10-18 Eli Zaretskii <eliz@gnu.org>
15445
15446 * fileio.c (Fset_file_modes): Doc fix.
15447
154482008-10-18 Martin Rudalics <rudalics@gmx.at>
15449
15450 * window.c (Fwindow_width, Fset_window_start)
15451 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
15452 (Fdelete_windows_on, Freplace_buffer_in_windows):
15453 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
15454 (Fwindow_dedicated_p): Make window argument optional.
15455 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
15456 (Fset_window_buffer): Respect any non-nil dedicated value for
15457 window. Rename "buffer" argument to "buffer_or_name".
15458
154592008-10-18 Ulrich Mueller <ulm@gentoo.org>
15460
15461 * m/sh3.h: New file, machine description for SuperH.
15462
154632008-10-17 Martin Rudalics <rudalics@gmx.at>
15464
15465 * window.c (Fsplit_window): Rename arg horflag to horizontal.
15466
154672008-10-17 Kenichi Handa <handa@m17n.org>
15468
15469 * ftfont.c (ftfont_otf_features): Fix indexing
15470 gsub_gpos->FeatureList.Feature. Check the validity of indices.
15471
154722008-10-16 Magnus Henoch <mange@freemail.hu>
15473
15474 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
15475 (Fdbus_call_method_asynchronously): Ditto.
15476 This change makes C-h f display the argument list.
15477
154782008-10-16 Chong Yidong <cyd@stupidchicken.com>
15479
15480 * fileio.c (Fexpand_file_name): Doc fix.
15481
15482 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
15483 of :foreground and :background equivalent to unspecified (20.x
15484 compatibility).
15485
154862008-10-15 Eli Zaretskii <eliz@gnu.org>
15487
15488 * buffer.c (syms_of_buffer): Doc fix.
15489
154902008-10-14 Kenichi Handa <handa@m17n.org>
15491
15492 * font.c (font_clear_prop): When clearing font width, clear the
15493 average width field too.
15494
154952008-10-12 Andreas Schwab <schwab@suse.de>
15496
15497 * ftfont.c (ftfont_shape_by_flt): Make static.
15498 * ftfont.h (ftfont_shape_by_flt): Don't declare.
15499
15500 * font.c: Don't include <m17n-flt.h>.
15501
155022008-10-10 Eli Zaretskii <eliz@gnu.org>
15503
15504 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
15505
155062008-10-09 Eli Zaretskii <eliz@gnu.org>
15507
15508 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
15509 away code.
15510
155112008-10-09 Chong Yidong <cyd@stupidchicken.com>
15512
15513 * dispnew.c (update_text_area): Avoid looping due to large glyph
15514 overhangs (bug#1070).
15515
155162008-10-09 Kenichi Handa <handa@m17n.org>
15517
15518 * fontset.c (face_for_char): If face->fontset is negative, just
15519 return ascii_face.
15520
f5385255
SM
15521 * font.c (font_delete_unmatched): Fix previous change.
15522 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
15523
155242008-10-09 Martin Rudalics <rudalics@gmx.at>
15525
15526 * frame.c (Fraise_frame): On text-only terminals select frame in
15527 order to make it visible. (Bug#1061)
15528
155292008-10-08 Chong Yidong <cyd@stupidchicken.com>
15530
15531 * fontset.c (fontset_find_font): Check frame validity.
15532
155332008-10-07 Chong Yidong <cyd@stupidchicken.com>
15534
a9b555d3 15535 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
15536 (xg_display_close): Allow Emacs to close all displays (bug#985).
15537
155382008-10-06 Andreas Schwab <schwab@suse.de>
15539
f5385255 15540 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
15541
155422008-10-06 Chong Yidong <cyd@stupidchicken.com>
15543
f5385255 15544 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 15545
a9b555d3 15546 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
15547
15548 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15549 during initialization.
15550
155512008-10-04 Eli Zaretskii <eliz@gnu.org>
15552
15553 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15554 whole thing on MSDOS frames as well as on a TTY.
15555
15556 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15557 well as for TTY.
15558 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15559 well as on a TTY.
15560
15561 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15562 as well as for TTY.
15563
15564 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15565
15566 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15567 MSDOS frames as well.
15568
155692008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15570
15571 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15572 correct arguments.
b71ac3dd 15573 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
15574
155752008-10-03 Glenn Morris <rgm@gnu.org>
15576
15577 * emacs.c (USAGE1): Add --daemon.
15578
155792008-10-02 Eli Zaretskii <eliz@gnu.org>
15580
15581 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15582 100, so it's in percents as advertised.
15583
155842008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15585
15586 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15587 (ns_output.current_cursor, ns_output.desired_cursor)
15588 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15589 (FRAME_NEW_CURSOR_COLOR): Remove.
15590
15591 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 15592 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
15593 enumeration (HOLLOW_BOX_CURSOR, etc.).
15594
15595 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15596 (draw_window_cursor): Simplify code.
f5385255
SM
15597 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15598 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 15599 updates manually.
a9b555d3
JB
15600 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15601 Use core Emacs cursor types.
aac0c6e3 15602
b8ff72fa 15603 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
15604
156052008-10-02 Martin Rudalics <rudalics@gmx.at>
15606
15607 * process.c (Faccept_process_output): Fix doc-string.
15608
156092008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15610
15611 * gmalloc.c (__sbrk): Also define for uClibc.
15612
15613 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15614 for uClibc.
15615
156162008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15617
15618 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15619 styles.
15620 (nsfont_open): Reenable the cache.
15621
156222008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15623
15624 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15625 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15626
156272008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15628
15629 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15630 a suspended terminal.
15631
156322008-09-30 Michael Albinus <michael.albinus@gmx.de>
15633
15634 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15635
156362008-09-30 Eli Zaretskii <eliz@gnu.org>
15637
15638 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15639
156402008-09-30 Chong Yidong <cyd@stupidchicken.com>
15641
15642 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15643 in a continued line coincides with a line beginning.
15644
156452008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15646
15647 * nsfont.m (nsfont_trait_distance): Fix bug.
15648 (nsfont_list): Return a list rather than a vector (syncs with Handa
15649 changes of 2008-05-14).
15650 (nsfont_open): Improve logging.
15651
156522008-09-29 Andreas Schwab <schwab@suse.de>
15653
15654 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15655
156562008-09-28 Martin Rudalics <rudalics@gmx.at>
15657
15658 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15659 name as char-resolve-modifiers.
15660 Reported by: Markus Triska <markus.triska@gmx.at>
15661
156622008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15663
15664 * dispnew.c (init_display): Return earlier when running as a daemon.
15665
156662008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15667
15668 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15669
156702008-09-27 Eli Zaretskii <eliz@gnu.org>
15671
15672 * composite.c (Fcomposition_get_gstring)
15673 (Fcompose_region_internal, Fcompose_string_internal)
15674 (Ffind_composition_internal): Doc fix.
15675 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15676 (syms_of_composite) <auto-composition-function>: Doc fix.
15677 (syms_of_composite) <composition-function-table>: Doc fix.
15678
156792008-09-25 Chong Yidong <cyd@stupidchicken.com>
15680
15681 * search.c (wordify): New argument for lax word-ends.
15682 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15683
156842008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15685
15686 * lisp.h (is_daemon): Declare.
15687 * dispnew.c (init_display): Do not try to initialize the terminal
15688 when running as a daemon.
15689
156902008-09-22 Chong Yidong <cyd@stupidchicken.com>
15691
15692 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15693 x_display_pixel_height.
15694
156952008-09-22 Martin Rudalics <rudalics@gmx.at>
15696
15697 * undo.c (record_point): Don't call Fundo_boundary for first
15698 change. (Bug#731)
15699
157002008-09-22 Juanma Barranquero <lekktu@gmail.com>
15701
15702 * emacs.c (Fdaemonp): Doc fix.
15703
157042008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15705
15706 * emacs.c (main): Place #ifdef in the proper place.
15707
157082008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15709
15710 * emacs.c (standard_args): Add --daemon.
15711 (main): Disconnect from the terminal when --daemon is passed.
15712 (is_daemon): New variable.
15713 (Fdaemonp): New function.
15714 (syms_of_emacs): Defsubr it.
15715
157162008-09-20 Chong Yidong <cyd@stupidchicken.com>
15717
15718 * xdisp.c (get_next_display_element): Handle string display
15719 correctly when checking for the end of a box run.
15720
157212008-09-20 Glenn Morris <rgm@gnu.org>
15722
15723 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15724 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15725 (Frename_file): Avoid copying to trash if a rename involves
15726 a delete. (Bug#964).
15727
157282008-09-20 Eli Zaretskii <eliz@gnu.org>
15729
15730 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15731 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15732 frames as well as termcap frames.
15733 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15734 get_named_tty.
15735
157362008-09-19 Eli Zaretskii <eliz@gnu.org>
15737
15738 * process.c (procfs_system_process_attributes): Fix cmdline in
15739 case /proc/PID/cmdline is empty.
15740
15741 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15742 x_display_pixel_height.
15743
157442008-09-19 Juanma Barranquero <lekktu@gmail.com>
15745
15746 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15747
15748 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15749 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15750
157512008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15752
15753 * dispextern.h (struct it): Move line_wrap away from the middle of
15754 bitfields. Move voffset in struct iterator_stack_entry after the
15755 bitfields. Move tab_width near after another short.
15756
157572008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15758
15759 * frame.h (struct frame): Move alpha from the middle of bitfields.
15760
15761 * window.h (struct window): Move frozen_window_start_p after the
15762 rest of the bitfields to reduce padding.
15763
157642008-09-18 Chong Yidong <cyd@stupidchicken.com>
15765
15766 * xterm.h (x_display_info): Remove `height' and `width' members.
15767
15768 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15769
15770 * w32term.h (w32_display_info): Remove `height', `width',
15771 `height_in', and `width_in' members.
15772
b8ff72fa
SM
15773 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15774 New functions.
aac0c6e3
MR
15775 (x_calc_absolute_position): Use them.
15776 (x_term_init): Omit removed `height' and `width' members.
15777
b8ff72fa
SM
15778 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15779 New functions.
aac0c6e3
MR
15780 (w32_read_socket, x_calc_absolute_position): Use them.
15781 (w32_initialize_display_info, w32_term_init): Omit removed members
15782 of w32_display_info.
15783
b8ff72fa
SM
15784 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15785 New functions.
15786 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15787
b8ff72fa
SM
15788 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15789 New functions.
aac0c6e3
MR
15790 (x_calc_absolute_position): Use them.
15791 (x_term_init): Omit removed `height' and `width' members.
15792
15793 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15794 (compute_tip_xy):
15795 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15796 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15797 x_display_pixel_width.
15798
157992008-09-18 Kenichi Handa <handa@m17n.org>
15800
15801 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15802 (composition_compute_stop_pos): Fix handling of static composition.
15803 (Fcomposition_get_gstring): Check FROM and TO at first.
15804
158052008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15806
46e722a9 15807 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15808 mixup (YAILOM).
15809
158102008-09-17 Chong Yidong <cyd@stupidchicken.com>
15811
15812 * indent.c (Fvertical_motion): Use position reported by iterator
15813 instead of PT for determining screen motion (bug#943).
15814
158152008-09-17 Romain Francoise <romain@orebokech.com>
15816
15817 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15818
158192008-09-17 Kenichi Handa <handa@m17n.org>
15820
15821 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15822
15823 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15824 if necessary.
15825
158262008-09-16 Kenichi Handa <handa@m17n.org>
15827
15828 * coding.c (make_conversion_work_buffer): Avoid calling
15829 Fget_buffer_create if it is not necessary.
15830
158312008-09-15 Martin Rudalics <rudalics@gmx.at>
15832
15833 * window.c (Fselect_window): Don't update window_select_count and
15834 use_time when norecord is not nil.
15835
158362008-09-14 Kenichi Handa <handa@m17n.org>
15837
15838 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15839 specpdl_ptr.
15840
158412008-09-12 Kenichi Handa <handa@m17n.org>
15842
15843 * indent.c (scan_for_column): Don't handle automatic composition
15844 if the current buffer is not associated with a window.
15845
15846 * composite.c (composition_reseat_it): If the current buffer is
15847 not associated with a window, ignore the automatic composition.
15848 (find_automatic_composition): Likewise.
15849
158502008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15851
15852 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15853 (Fgpm_mouse_stop): Use it.
15854 * termhooks.h (close_gpm): Declare.
15855 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15856 connection if Gpm_GetEvent fails.
15857
15858 * window.c (set_window_buffer): Always preserve current-buffer.
15859
158602008-09-12 Glenn Morris <rgm@gnu.org>
15861
15862 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15863
158642008-09-11 Glenn Morris <rgm@gnu.org>
15865
15866 * charset.c (charset-map-path): Doc fix.
15867
158682008-09-10 Kenichi Handa <handa@m17n.org>
15869
15870 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15871
15872 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15873 compose a grapheme cluster with the preceding base glyph.
15874
15875 * composite.c (composition_compute_stop_pos): Fix previous change.
15876 Reset cmp_it->id to -1 at first.
15877
158782008-09-10 Glenn Morris <rgm@gnu.org>
15879
15880 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15881
158822008-09-09 Chong Yidong <cyd@stupidchicken.com>
15883
15884 * keyboard.c (read_key_sequence): Reapply translation maps when
15885 switching keyboards.
15886
158872008-09-09 Kenichi Handa <handa@m17n.org>
15888
15889 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15890 characters.
15891
15892 * composite.c (FORWARD_CHAR): Fix calculation
15893 of (POSITION).pos_byte.
15894 (composition_compute_stop_pos): Limit the search of composition to
15895 at most 500 characters ahead. If we reach the limit or find a
15896 newline, set cmp_it->ch to -2 and return 0.
15897 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15898
158992008-09-08 Kenichi Handa <handa@m17n.org>
15900
15901 * indent.c (Fvertical_motion): Be sure to set
15902 it_overshoot_expected if it.cmp_it.id is non-negative.
15903
159042008-09-07 Andreas Schwab <schwab@suse.de>
15905
15906 * callproc.c (Fcall_process): Don't hold references to string data
15907 across garbage collection. Move initialisation of new_argv down
15908 to avoid compiler bug.
15909
159102008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15911
15912 * process.c (Fsystem_process_attributes): Doc fix.
15913
159142008-09-07 Chong Yidong <cyd@stupidchicken.com>
15915
15916 * callproc.c (Fcall_process): Canonicalize current directory name.
15917
15918 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15919 iterator advances to the next line if the current line ends in a
15920 continued tab.
15921
159222008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15923
15924 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15925 member to point to cmp_from.
15926
15927 * xdisp.c: Doc fix for references to gidx data member.
15928
159292008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15930
15931 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15932
159332008-09-07 Kenichi Handa <handa@m17n.org>
15934
15935 * composite.c (FORWARD_CHAR): Check STOP after
15936 incrementing (POSITION).pos.
15937
159382008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15939
15940 * process.c (Fsystem_process_attributes): Doc fix.
15941
159422008-09-06 Chong Yidong <cyd@stupidchicken.com>
15943
15944 * keyboard.c (Ftop_level): Doc fix.
15945
159462008-09-06 Eli Zaretskii <eliz@gnu.org>
15947
15948 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15949 minibuffer, don't let lower part of menu invade the echo area.
15950
15951 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15952 "char *q" to access menu text and advance through it. Revert the
15953 change that displayed ">" instead of ASCII character 0x10.
15954
159552008-09-05 Eli Zaretskii <eliz@gnu.org>
15956
15957 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15958 toggle boxes and radio buttons on MS-DOS as well.
15959
159602008-09-05 Kenichi Handa <handa@m17n.org>
15961
15962 * composite.c (autocmp_chars): Check lookback count.
15963 (composition_compute_stop_pos): Set cmp_it->lookback.
15964 (composition_reseat_it): Check lookback count.
15965 (struct position_record): New struct.
15966 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15967 (find_automatic_composition): New function.
15968 (composition_adjust_point): Use find_automatic_composition.
15969
15970 * dispextern.h (struct composition_it): New member lookback.
15971
159722008-09-02 Chong Yidong <cyd@stupidchicken.com>
15973
15974 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15975 if moving by a single line.
15976
159772008-09-02 Andreas Schwab <schwab@suse.de>
15978
15979 * xterm.c (x_delete_display): Fix merge error.
15980
15981 * fileio.c (Fexpand_file_name): Remove unused variables.
15982
159832008-09-02 Eli Zaretskii <eliz@gnu.org>
15984
15985 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15986 storage on all platforms, not just on DOS_NT.
15987
159882008-09-02 Jason Rumney <jasonr@gnu.org>
15989
b8ff72fa
SM
15990 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15991 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15992
159932008-09-01 Chong Yidong <cyd@stupidchicken.com>
15994
15995 * xfaces.c (Finternal_set_alternative_font_family_alist)
15996 (Finternal_set_alternative_font_registry_alist): Properly copy
15997 entire alist structure.
15998
159992008-09-01 Kenichi Handa <handa@m17n.org>
16000
d66c0241 16001 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16002 representative chars of the script is a vector.
d66c0241
JB
16003 (ftfont_list): Handle the case where the representative chars of
16004 the script is a vector.
aac0c6e3
MR
16005
16006 * character.c (syms_of_character): Docstring of
16007 script-representative-chars fixed.
16008
160092008-08-31 Eli Zaretskii <eliz@gnu.org>
16010
16011 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16012 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16013 the menu. Allocate larger buffer for `text', to account for
16014 possible ^C characters.
16015
160162008-08-31 Martin Rudalics <rudalics@gmx.at>
16017
16018 * xdisp.c (prepare_menu_bars): Don't call
16019 Vwindow_size_change_functions with arg Qt.
16020
160212008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16022
16023 * font.h (font_range):
16024 * fileio.c (report_file_error):
46e722a9
SM
16025 * composite.c (composition_update_it): Yet another int/Lisp_Object
16026 mixup (YAILOM).
aac0c6e3
MR
16027
160282008-08-30 Glenn Morris <rgm@gnu.org>
16029
16030 * data.c (Fmake_variable_frame_local): Doc fix.
16031
16032 * frame.c (Fmodify_frame_parameters): Doc fix.
16033
160342008-08-30 Eli Zaretskii <eliz@gnu.org>
16035
16036 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16037 needed by GetTokenInformation.
16038 (w32_system_process_attributes): Check return values of all system
16039 APIs.
16040
16041 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16042 only when the state changes.
16043 (IT_update_begin, IT_update_end): Add termscript trace.
16044
16045 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16046 clipboard is unavailable. Set dst to NULL if it doesn't point to
16047 malloc'ed data.
16048 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16049 passing random values to xfree.
16050
16051 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 16052 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
16053
160542008-08-29 Jason Rumney <jasonr@gnu.org>
16055
16056 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16057
160582008-08-29 Eli Zaretskii <eliz@gnu.org>
16059
16060 * composite.c (fill_gstring_body): Avoid compiler warnings.
16061
16062 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16063 LGLYPH_SET_CODE to avoid compiler warnings.
16064
2ae37cf0 16065 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
16066
16067 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16068
16069 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16070 LGLYPH_SET_CODE.
16071
160722008-08-29 Kenichi Handa <handa@m17n.org>
16073
16074 * fileio.c (report_file_error): Don't downcase the first character
16075 of errstring if it is still unibyte.
16076
160772008-08-29 Kenichi Handa <handa@m17n.org>
16078
16079 These changes are to re-implement the automatic composition so
16080 that it doesn't use text properties.
16081
16082 * Makefile.in (ftfont.o): Depend on composite.h.
16083 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16084
16085 * character.h (Vunicode_category_table): Extern it.
16086
16087 * character.c (Vunicode_category_table): New variable.
16088 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16089
16090 * chartab.c (optimize_sub_char_table): Perform more greedy
16091 optimization.
16092
b8ff72fa
SM
16093 * composite.h (enum composition_method):
16094 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
16095 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16096 (Vcomposition_function_table): Extern it.
16097 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16098 (composition_gstring_put_cache, composition_gstring_from_id)
16099 (composition_gstring_p, composition_gstring_width)
16100 (composition_compute_stop_pos, composition_reseat_it)
16101 (composition_update_it, composition_adjust_point): Extern them.
16102 (Fcomposition_get_gstring): EXFUN it.
16103
d66c0241 16104 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
16105 (Vcomposition_function_table)
16106 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
16107 (gstring_hash_table, gstring_work, gstring_work_headers):
16108 New variables.
aac0c6e3
MR
16109 (gstring_lookup_cache, composition_gstring_put_cache)
16110 (composition_gstring_from_id, composition_gstring_p)
16111 (composition_gstring_width, fill_gstring_header)
16112 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16113 (composition_reseat_it, composition_update_it)
b8ff72fa 16114 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
16115 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16116 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 16117 Defsubr composition_get_gstring.
aac0c6e3
MR
16118
16119 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16120 cmp_id.
16121 (struct glyph_string): Delete the member gidx. New members
16122 cmp_id, cmp_from, and cmp_to.
16123 (enum it_method): Delete GET_FROM_COMPOSITION.
16124 (struct composition_it): New struct.
16125 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16126 Delete c, len, cmp_id, cmp_len in u.comp.
16127
16128 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 16129 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16130 (enum lglyph_indices): Likewise.
b8ff72fa 16131 (font_range): Adjust extern.
aac0c6e3
MR
16132 (font_fill_lglyph_metrics): Extern it.
16133
16134 * font.c (QCf): New variable.
16135 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16136 (font_prepare_composition): Delete this function.
16137 (font_range): Type and arguments changed.
16138 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16139 (font_fill_lglyph_metrics): New function.
b8ff72fa 16140 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16141 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16142 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16143 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16144
16145 * fontset.h (font_for_char): Extern it.
16146
16147 * fontset.c (font_for_char): New function.
16148
16149 * ftfont.c: Include composite.h.
16150 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16151 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16152
16153 * indent.c: Include composite.h and dispextern.h.
16154 (check_composition): Delete this function.
16155 (scan_for_column): Handle composition by
16156 composition_compute_stop_pos, composition_reseat_it, and
16157 composition_update_it.
16158 (compute_motion): Likewise.
16159 (Fvertical_motion): Fix checking of composition.
16160
16161 * keyboard.c (adjust_point_for_property): Check composition by
16162 composition_adjust_point.
16163
b8ff72fa 16164 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16165 struct glyph_string.
16166
b8ff72fa
SM
16167 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16168 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16169 struct glyph.
16170 (produce_composite_glyph): Likewise.
16171
b8ff72fa
SM
16172 * w32term.c (x_draw_composite_glyph_string_foreground):
16173 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16174 (x_draw_glyph_string): Likewise.
16175
16176 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16177 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16178
16179 * xdisp.c: Include font.h.
16180 (it_props): Delete the entry for Qauto_composed.
16181 (init_iterator): Initialize it->cmp_it.id to -1.
16182 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16183 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16184 (handle_auto_composed_prop): Delete it.
16185 (handle_composition_prop): Handle only static composition.
16186 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16187 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16188 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16189 (pop_it): Likewise.
16190 (get_next_element): Delete next_element_from_composition.
16191 (CHAR_COMPOSED_P): New macro.
16192 (get_next_display_element): For automatic composition, get a face
16193 from the font in the glyph-string.
16194 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16195 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16196 (next_element_from_string): Check if the character at the current
16197 position is composed by CHAR_COMPOSED_P.
16198 (next_element_from_buffer): Likewise.
d66c0241
JB
16199 (next_element_from_composition): Adjust for the change of struct it.
16200 Update it->cmp_it.
b8ff72fa
SM
16201 (dump_glyph): Adjust for the change of struct glyph.
16202 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16203 it and struct glyph. Don't handle automatic composition here.
16204 (fill_gstring_glyph_string): New function.
16205 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16206 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16207 (BUILD_GSTRING_GLYPH_STRING): New macro.
16208 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16209 automatic composition.
b8ff72fa 16210 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16211 struct glyph.
b8ff72fa 16212 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16213
b8ff72fa 16214 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16215 the change of struct glyph_string.
16216 (x_draw_glyph_string): Likewise.
16217
162182008-08-29 Glenn Morris <rgm@gnu.org>
16219
16220 * buffer.c (word-wrap): Doc fix.
16221 * xdisp.c (truncate-partial-width-windows): Doc fix.
16222 Increase default to 50.
16223
162242008-08-29 Chong Yidong <cyd@stupidchicken.com>
16225
16226 * xdisp.c (update_tool_bar_unwind): New function.
16227 (update_tool_bar): Temporarily set selected frame before building
16228 tool-bar items.
16229
162302008-08-28 Michael Albinus <michael.albinus@gmx.de>
16231
16232 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16233 snprintf, respectively.
16234 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16235
162362008-08-28 Chong Yidong <cyd@stupidchicken.com>
16237
16238 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16239 LDFLAGS to GNUstep CC invocation.
16240
162412008-08-27 Chong Yidong <cyd@stupidchicken.com>
16242
16243 * indent.c (Fvertical_motion): Revert last change. Handle the
16244 general case where we are moving forward, and PT spans multiple
16245 screen lines.
16246
16247 * eval.c (find_handler_clause): Temporarily increase
16248 max-lisp-eval-depth while printing the backtrace buffer, to
16249 guarantee that help-mode code can run.
16250
162512008-08-27 Eli Zaretskii <eliz@gnu.org>
16252
16253 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16254 colors under -rv.
16255 (IT_set_frame_parameters): Don't swap foreground and background
16256 colors if `(reverse . t)' is present in the frame properties.
16257 (internal_terminal_init): Call init_frame_faces only for the
16258 initial frame.
16259
162602008-08-27 Andreas Schwab <schwab@suse.de>
16261
16262 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16263
162642008-08-27 Andreas Schwab <schwab@suse.de>
16265
16266 * search.c (search_buffer): Set char_base to zero only at the end.
16267
162682008-08-27 Kenichi Handa <handa@m17n.org>
16269
b8ff72fa 16270 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
16271
162722008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16273
16274 * xterm.c (x_term_init): Temporarily hide the partially
16275 initialized terminal while calling vendor-specific-keysyms.
16276
162772008-08-26 Eli Zaretskii <eliz@gnu.org>
16278
16279 * msdos.c (internal_terminal_init): Most initializations done only
16280 once, especially initial_screen_colors[] and termscript open.
16281
162822008-08-26 Chong Yidong <cyd@stupidchicken.com>
16283
16284 * eval.c (Fcondition_case): Doc fix.
16285
16286 * widgetprv.h (EmacsFramePart): Change font member to the new font
16287 struct.
16288
16289 * widget.c: Include character.h and font.h for XSETFONT.
16290 (setup_frame_gcs): Compute X font id from font struct, just once.
16291
162922008-08-26 Eli Zaretskii <eliz@gnu.org>
16293
16294 * term.c (get_named_tty): Fix last change.
16295
162962008-08-26 Chong Yidong <cyd@stupidchicken.com>
16297
16298 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 16299 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
16300
163012008-08-25 Eli Zaretskii <eliz@gnu.org>
16302
16303 * frame.c (do_switch_frame): Mark previously displayed frame as
16304 obscured for FRAME_MSDOS_P frames as well.
16305
163062008-08-24 Eli Zaretskii <eliz@gnu.org>
16307
16308 * frame.c (make_terminal_frame): Initialize f->terminal,
16309 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16310 Set the top frame to newly created frame.
16311 (Fmake_terminal_frame): Reuse the_only_display_info.
16312
16313 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16314 estimating available memory.
16315
b97439ce 163162008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
16317
16318 * nsterm.m (ns_draw_window_cursor): Don't call
16319 NSDisableScreenUpdates and NSEnableScreenUpdates on
16320 non-NS_IMPL_COCOA systems.
16321
163222008-08-23 Andreas Schwab <schwab@suse.de>
16323
16324 * process.c (procfs_system_process_attributes): Fix use of
16325 uninitialized variables.
16326
163272008-08-23 Eli Zaretskii <eliz@gnu.org>
16328
16329 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16330
16331 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16332 calling tty-set-up-initial-frame-faces.
16333
b8ff72fa
SM
16334 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16335 Allow MSDOS frames along with X frames.
aac0c6e3
MR
16336
16337 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16338 addition to output_termcap.
16339
16340 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16341
16342 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16343 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16344 highlight.
16345
16346 * process.c [!subprocesses]: Define QCname.
16347 (syms_of_process): Intern and staticpro it.
16348
16349 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
16350 Adjust for changes in encoding/decoding routines.
16351 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
16352 encode_coding and decode_coding.
16353
b8ff72fa 16354 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
16355
16356 * dosfns.c: Include frame.h before termhooks.h.
16357 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16358 variable termscript.
16359
16360 * s/msdos.h (USER_FULL_NAME): Define.
16361 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16362
16363 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16364 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16365 pw->pw_gecos.
16366
16367 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16368 SELECTED_FRAME as additional (1st) argument.
16369 (tty_read_avail_input): Handle output_msdos_raw in
16370 addition to output_termcap.
16371
16372 * msdos.c: Include frame.h before termhooks.h.
16373 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16374 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
16375 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
16376 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
16377 (IT_set_terminal_modes, IT_reset_terminal_modes)
16378 (IT_set_frame_parameters): Use tty->termscript instead of a global
16379 variable termscript.
16380 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
16381 global variable terminal_coding. Don't refer to
16382 Vnonascii_translation_table.
16383 (internal_terminal_init): Set Vwindow_system in current_kboard.
16384 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
16385 Announce date and time of session start, if termscript is open.
16386 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
16387 term.c:init_tty). Open termscript only of not already open.
16388 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
16389 here instead of dos_ttraw. Don't initialize display if this is an
16390 initial tty. Don't set FRAME_FONT.
16391 (Vwindow_system_version): Bump to 23.
16392 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
16393 is available, set up mouse_position_hook.
16394 (dos_ttraw, IT_set_terminal_modes): If called with initial
16395 terminal, do nothing.
16396 (IT_set_frame_parameters): Handle the Qtty_type frame
16397 parameter by calling internal_terminal_init.
16398 (dos_set_window_size, show_mouse_face)
16399 (clear_mouse_face, IT_note_mode_line_highlight)
16400 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
16401 (dos_rawgetc): Use tty_display_info instead of x_display_info.
16402 (initialize_msdos_display): New function.
16403 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
16404 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
16405 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
16406 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 16407 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
16408 (request_sigio, unrequest_sigio): Don't define, now defined on
16409 sysdep.c.
16410 (IT_write_glyphs): Rewrite to use encode_terminal_code.
16411
16412 * term.c [MSDOS]: Include msdos.h.
16413 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
16414 conditional to DOS_NT. Allow only one call to this function in a
16415 session. Don't allocate a new struct tty_display_info; instead,
16416 reuse the_only_display_info. Call get_tty_size to get screen
16417 dimensions. Call init_baud_rate to set bad_rate.
16418 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
16419 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 16420 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
16421 (get_tty_terminal, get_named_tty, Ftty_type)
16422 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
16423 output_termcap.
b8ff72fa
SM
16424 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
16425 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 16426 only when subprocesses are supported.
aac0c6e3
MR
16427
16428 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
16429 f->output_data.x.
16430 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
16431 terminal devices.
16432
5582fbc7 16433 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
16434 x_output.
16435 (FRAME_FONT): Use output_data.tty.
16436 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
16437 (struct x_display_info): Rename from display_info. Update all users in
16438 msdos.c.
aac0c6e3 16439 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 16440 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
16441 (dos_ttraw): Update prototype.
16442
16443 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
16444 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
16445
164462008-08-23 Jason Rumney <jasonr@gnu.org>
16447
16448 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
16449 (fn_TIFFSetDirectory): New library function used.
16450 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
16451 (tiff_load): Use :index to select among multiple images. Set count
16452 property when multiple images exist.
16453 (gif_format): Use :index, not :image.
16454
164552008-08-23 Chong Yidong <cyd@stupidchicken.com>
16456
16457 * xdisp.c (try_scrolling): Check INT_MAX instead of
16458 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
16459 to obtain INT_MAX.
16460
164612008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
16462
16463 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
16464
164652008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
16466
16467 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
16468 GNUstep library location.
16469
164702008-08-21 Chong Yidong <cyd@stupidchicken.com>
16471
16472 * xfaces.c (x_update_menu_appearance): Check validity of menu font
16473 before using it.
16474
16475 * puresize.h (BASE_PURESIZE): Increase to 1250000.
16476
164772008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16478
16479 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
16480 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
16481 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
16482 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
16483 (EmacsApp-cursor_blink_handler): Remove declaration.
16484 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
16485 match 01 Feb 2008 changes in xterm.c.
16486 (ns_read_socket): Add cast to avoid warning.
16487 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
16488 GNUstep.
16489
164902008-08-20 Chong Yidong <cyd@stupidchicken.com>
16491
16492 * xselect.c (x_get_foreign_selection): Return nil if desired
16493 selection could not be obtained, instead of signalling an error.
16494
164952008-08-20 David Reitter <david.reitter@gmail.com>
16496
16497 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
16498 * nsterm.m: Remove ns-specific code for cursor blinking.
16499 (ns_draw_window_cursor): Clear cursor properly rather than
16500 redrawing the area. Respect width of bar cursors.
16501 These changes enable the use of generic blink-cursor-mode and
16502 generic cursor types in NS and support smooth cursor movements (do
16503 not blink off after command).
16504 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
16505 Nextstep, too.
16506
165072008-08-19 Kenichi Handa <handa@m17n.org>
16508
16509 * font.c (Vfont_log_deferred): New variable.
16510 (font_add_log): Check Vfont_log_deferred.
16511 (font_deferred_log): New function.
16512
16513 * font.h (font_deferred_log): Extern it.
16514
16515 * fontset.c (reorder_font_vector): Use encoding charset of fonts
16516 for sorting.
16517 (face_for_char): Use deferred log.
16518
165192008-08-18 Kenichi Handa <handa@m17n.org>
16520
16521 * fontset.c (face_for_char): Add font log.
16522
16523 * font.c (font_add_log): Add the font properties :script, :lang,
16524 and :otf in the log.
16525
165262008-08-17 Chong Yidong <cyd@stupidchicken.com>
16527
16528 * xdisp.c: Remove dead code.
16529 (handle_invisible_prop, next_overlay_string): Defer call to
16530 setup_for_ellipsis.
16531 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
16532
165332008-08-15 Chong Yidong <cyd@stupidchicken.com>
16534
16535 * xfaces.c (lookup_derived_face): Properly handle possible zero
16536 return value of get_lface_attributes.
16537 (merge_faces): Don't tell lookup_derived_face to signal an error
16538 if face is not found.
16539
16540 * dired.c (Fdirectory_files): Doc fix.
16541
16542 * process.c (make_process): Initialize kill_without_query struct
16543 member.
16544
165452008-08-15 Eli Zaretskii <eliz@gnu.org>
16546
16547 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16548 Alternative calculation of totphys for Visual Studio 6.
16549
16550 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16551
16552 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16553 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16554 All users changed.
16555 (stat): Only root directory passed to GetDriveType. Allow RAM
16556 disk as well as local fixed disk when w32-get-true-file-attributes
16557 is set to `local'.
16558 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16559 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16560 (w32_cached_id, w32_add_to_cache): New functions.
16561 (get_name_and_id): Look account names in the cache before calling
16562 lookup_account_sid.
16563 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16564 New initialization flags.
16565 (globals_of_w32): Initialize them to zero.
16566 (w32_system_process_attributes): Use w32_cached_id and
16567 w32_add_to_cache.
16568
165692008-08-14 Lawrence Mitchell <wence@gmx.li>
16570
16571 * lread.c (Fread_char, Fread_char_exclusive): If no character
16572 event is read before timeout is reached, return nil, rather than
16573 converting to a number.
16574
165752008-08-14 Chong Yidong <cyd@stupidchicken.com>
16576
16577 * fns.c (use_dialog_box): Doc fix.
16578
16579 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16580 on OS X.
16581
165822008-08-13 Chong Yidong <cyd@stupidchicken.com>
16583
16584 * frame.c (Qns_parse_geometry): New var.
16585 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16586
165872008-08-11 Chong Yidong <cyd@stupidchicken.com>
16588
16589 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16590 space character in calculating tabs.
16591
165922008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16593
16594 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16595
165962008-08-10 Glenn Morris <rgm@gnu.org>
16597
16598 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16599 silence gcc "limited range of data type" warnings in some
16600 make_fixnum_or_float calls.
16601
166022008-08-09 Eli Zaretskii <eliz@gnu.org>
16603
16604 * w32.c (w32_system_process_attributes): If the process does not
16605 exist, return nil.
16606
16607 * w32.c: Include thelp32.h, psapi.h and coding.h.
16608 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16609 declarations.
16610 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16611 (Process32Next_Proc): New typedefs.
16612 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16613 (g_b_init_process32_next, g_b_init_open_thread_token)
16614 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16615 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16616 (g_b_init_get_process_working_set_size)
16617 (g_b_init_global_memory_status_ex): New static variables.
16618 (globals_of_w32): Initialize them.
16619 (create_toolhelp32_snapshot, process32_first, process32_next)
16620 (open_thread_token, impersonate_self, revert_to_self)
16621 (get_process_memory_info, get_process_working_set_size)
16622 (global_memory_status, global_memory_status_ex): New wrapper
16623 functions.
16624 (w32_list_system_processes, w32_system_process_attributes)
16625 (enable_privilege, restore_privilege, ltime, process_times):
16626 New functions.
16627 (convert_time_raw): New function.
16628 (convert_time): Remove conversion of FILETIME into time in 100
16629 nsec units, call convert_time_raw instead.
16630
16631 * process.h (w32_list_system_processes, w32_system_process_attributes):
16632 Add prototypes.
16633 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16634 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16635 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16636 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16637
16638 * process.c (Fsystem_process_attributes): Doc fix.
16639
166402008-08-08 Chong Yidong <cyd@stupidchicken.com>
16641
16642 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16643 a continued multi-char glyph; if so, advance to the actual glyph.
16644
166452008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16646
16647 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16648
16649 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16650 (.m.o): Use it.
16651 * config.in: Regenerate.
16652
166532008-08-07 Chong Yidong <cyd@stupidchicken.com>
16654
16655 * xdisp.c (redisplay_window): Revert last change.
16656 (try_window): Check bottom scroll margin too.
16657
166582008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16659
16660 * config.in: Regenerate.
16661
16662 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16663 -list-load-path-shadows'.
16664 (nsgui.h): Reduce number of things depending on it.
16665
166662008-08-06 Chong Yidong <cyd@stupidchicken.com>
16667
16668 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16669 instead of window-end which does the wrong thing at eob.
16670 (try_cursor_movement): Minor optimization.
16671 (redisplay_window): If scroll margin is defined, don't assume
16672 window doesn't need scrolling.
16673
166742008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16675
16676 * config.in: Regenerate.
16677
16678 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16679 (mostlyclean): Don't delete *.d under NS.
16680
16681 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16682
166832008-08-06 Kenichi Handa <handa@m17n.org>
16684
16685 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16686
166872008-08-06 Andreas Schwab <schwab@suse.de>
16688
16689 * config.in: Regenerate.
16690
166912008-08-05 Chong Yidong <cyd@stupidchicken.com>
16692
16693 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16694 forcing a window start.
16695
16696 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16697 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16698
166992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16700
16701 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16702 argument.
16703
167042008-08-05 Juanma Barranquero <lekktu@gmail.com>
16705
16706 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16707 <scroll-down-aggressively, before-change-functions>:
16708 <after-change-functions>: Reflow docstrings.
16709
167102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16711 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16712
16713 Dock menu customization, based on a patch by Ken Raeburn, plus some
16714 other fixes.
16715 * nsmenu.m (dockMenu): New variable.
16716 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16717
16718 * nsterm.h (dockMenu): Declare.
16719
16720 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16721 (ns_term_init): Initialize dockMenu.
16722 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16723 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16724 left.
16725
16726 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16727
167282008-08-04 Chong Yidong <cyd@stupidchicken.com>
16729
16730 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16731
16732 * config.in: Regenerate.
16733
167342008-08-04 Seiji Zenitani <zenitani@mac.com>
16735
16736 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16737
167382008-08-04 Chong Yidong <cyd@stupidchicken.com>
16739
16740 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16741
167422008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16743
16744 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16745
16746 * keyboard.h: Comment an #endif.
16747
16748 * lisp.h (have_menus_p): Adjust comment.
16749
16750 * menu.c (find_and_return_menu_selection): Fix comparison with
16751 client_data.
16752
16753 * nsmenu.m (popup_activated_flag): New variable.
16754 (popup_activated): New function.
16755 (menu-or-popup-active-p): New exported lisp definition.
16756 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16757 when popup done.
16758 (ns_popup_dialog): Set popup_activated_flag.
16759
16760 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16761 version for GNUstep (handled by conditional typedef in nsterm.m).
16762 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16763 in rgb.txt).
16764
16765 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16766
16767 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16768
16769 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16770
16771 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16772 shortcircuit if popup_activated like GTK and X toolkit.
16773
16774 * m/inter386.h: Change DARWIN to DARWIN_OS.
16775
16776 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16777 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16778 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16779 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16780
167812008-08-03 Chong Yidong <cyd@stupidchicken.com>
16782
16783 * nsterm.m (windowDidResize): Remove stopModal call.
16784
167852008-08-03 Andreas Schwab <schwab@suse.de>
16786
16787 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16788 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16789
167902008-08-02 Chong Yidong <cyd@stupidchicken.com>
16791
16792 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16793 Don't use uninitialized pointer variable when using getrlimit.
16794
167952008-08-02 Jason Rumney <jasonr@gnu.org>
16796
16797 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16798
167992008-08-02 Eli Zaretskii <eliz@gnu.org>
16800
16801 * alloc.c (NSTATICS): Bump to 0x640.
16802
16803 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16804
16805 * lisp.h: Add prototype for directory_files_internal.
16806
16807 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16808 New functions.
16809 (syms_of_process): Defsubr them. Add initializations for various
16810 Q* symbols used in procfs_system_process_attributes.
16811 (procfs_list_system_processes, procfs_system_process_attributes)
16812 [HAVE_PROCFS]: New functions.
16813 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16814 (procfs_get_total_memory): New functions.
16815
168162008-08-01 Juanma Barranquero <lekktu@gmail.com>
16817
16818 * xfaces.c (Fx_load_color_file): Fix previous change;
16819 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16820
168212008-08-01 Michael Albinus <michael.albinus@gmx.de>
16822
16823 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16824
168252008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16826
16827 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16828
168292008-08-01 Chong Yidong <cyd@stupidchicken.com>
16830
16831 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16832
16833 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16834 define NSApplicationDelegateReplySuccess.
16835 (EmacsView -converstationIdentifier): Use long instead of
16836 NSInteger for GNUstep, since it doesn't have NSInteger.
16837
16838 * xmenu.c: Revert last change.
16839
16840 * keyboard.h: Fix last change.
16841
168422008-08-01 Juanma Barranquero <lekktu@gmail.com>
16843
16844 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16845 on Windows.
16846
168472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16848
16849 Warning clearing and clean-up in NS port.
16850 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16851 Add prototypes.
16852 * nsgui.h (FACE_DEFAULT): Remove, unused.
16853 (XGCValues): Change colors to unsigned long.
16854 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16855 nsterm.m.
16856 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16857 (ns_list_fonts): Remove, unused.
16858 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16859 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16860 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16861 (nsfont_draw): Compare face colors to 0, not nil.
16862 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16863 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16864 (-addSubmenuWithTitle:): Use NSMenuItem class.
16865 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16866 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16867 (ns_clip_to_row): Make gc arg a BOOL.
16868 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16869 ns_clip_to_row() call.
16870 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16871 used). Cast FRAME_FONT assignments.
16872 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16873 (ns_string_to_lispmod): Change arg to const char.
16874 (ns_term_init): Use NSMenuItem class.
16875 (EmacsApp -openFile:): Move to different section of file.
16876 (EmacsApp -application:openFiles:): Don't return a value, call
16877 -replyToOpenOrPrint:.
16878 (EmacsView -keyDown:): Fix up cast.
16879 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16880 (EmacsView -menuDown:): Cast tag in call to
16881 find_and_call_menu_selection().
16882 (ns_list_fonts): Remove, unused.
16883 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16884 (ns_fontname_to_xlfd): Make static.
16885 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16886 Remove prototypes (now in keyboard.h).
16887 (next_menubar_widget_id): Remove, unused.
16888 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16889 Remove prototypes (now in keyboard.h).
16890 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16891
168922008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16893
16894 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16895 (floatfns.o): Depend on syssignal.h.
16896 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16897
16898 * systty.h: Fix previous change that removed BSD_TERMIOS.
16899 Add comments to #ifdefs.
16900
169012008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16902
16903 * w32fns.c (w32-load-color-file): Remove.
16904 (x-open-connection): Use renamed Fx_load_color_file.
16905 * xfaces.c (x-load-color-file): Add.
16906 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16907 Emacs.clr.
16908 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16909
169102008-07-31 Michael Albinus <michael.albinus@gmx.de>
16911
16912 * dbusbind.c (Fdbus_call_method_asynchronously)
16913 (Fdbus_method_error_internal): New defuns.
16914 (xd_read_message): Handle also reply messages.
16915 (Vdbus_registered_functions_table): Extend docstring.
16916
169172008-07-31 Juanma Barranquero <lekktu@gmail.com>
16918
16919 * keyboard.c (gobble_input): Fix previous change.
16920
169212008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16922
16923 * bitmaps/README:
16924 * xfns.c:
16925 * termcap.c:
16926 * term.c:
16927 * syswait.h:
16928 * systty.h:
16929 * systime.h:
16930 * syssignal.h:
16931 * sysdep.c:
16932 * process.h:
16933 * process.c:
16934 * print.c:
16935 * ndir.h:
16936 * lread.c:
16937 * keyboard.c:
16938 * getpagesize.h:
16939 * floatfns.c:
16940 * fileio.c:
16941 * emacs.c:
16942 * doc.c:
16943 * dispnew.c:
16944 * dired.c:
16945 * data.c:
16946 * callproc.c:
16947 * buffer.c:
16948 * README:
16949 * Makefile.in:
16950 * s/template.h:
16951 * s/msdos.h:
16952 * m/vax.h: Remove VMS support.
16953 * s/vms.h:
16954 * vlimit.h:
16955 * uaf.h:
16956 * temacs.opt:
16957 * param.h:
16958 * ioctl.h: Remove file.
16959
169602008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16961
16962 * s/ms-w32.h (MULTI_KBOARD): Remove.
16963 * xterm.c:
16964 * xselect.c:
16965 * xfns.c:
16966 * window.c:
16967 * w32term.c:
16968 * w32fns.c:
16969 * terminal.c:
16970 * termhooks.h:
16971 * term.c:
16972 * sysdep.c:
16973 * keyboard.h:
16974 * keyboard.c:
16975 * frame.h:
16976 * frame.c:
16977 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16978 * config.in: Regenerate.
16979
169802008-07-30 Jason Rumney <jasonr@gnu.org>
16981
16982 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16983
16984 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16985 (w32font_open_internal): Get unicode version of textmetrics.
16986 Don't enable or disable glyph indices here.
16987 (w32font_open): Disable use of glyph indices.
16988
16989 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16990
169912008-07-30 Chong Yidong <cyd@stupidchicken.com>
16992
16993 * minibuf.c (Vread_buffer_function): Doc fix.
16994
169952008-07-30 John Paul Wallington <jpw@pobox.com>
16996
16997 * minibuf.c (read_buffer_completion_ignore_case): New var.
16998 (Fread_buffer): Use it.
16999
170002008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17001
17002 * systty.h (sensemode): Remove empty #if. Remove reference to
17003 BSD_TERMIOS, unused.
17004
17005 * sysdep.c: Remove reference to DGUX.
17006 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17007
17008 * config.in: Regenerate.
17009
170102008-07-30 Jason Rumney <jasonr@gnu.org>
17011
17012 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17013
170142008-07-29 Jason Rumney <jasonr@gnu.org>
17015
17016 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17017 is populated.
17018 (uniscribe_encode_char): Always use uniscribe.
17019 Avoid using context if cache is populated.
17020
170212008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17022
17023 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17024 open menu.
17025
17026 * gtkutil.c (menu_nav_ended): Remove.
17027 (create_menus): Remove signal connect for menu_nav_ended.
17028
170292008-07-28 Chong Yidong <cyd@stupidchicken.com>
17030
17031 * xdisp.c (redisplay_window): Check return value of
17032 compute_window_start_on_continuation_line before forcing a window
17033 start.
17034
170352008-07-28 Jason Rumney <jasonr@gnu.org>
17036
17037 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17038
17039 * w32term.c (w32_enable_unicode_output, cleartype_active):
17040 Remove obsolete display options.
17041 (x_draw_glyph_string_background): Don't use old cleartype_active
17042 workaround.
17043 (w32_initialize): Remove cleartype_active initialization.
17044 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17045
170462008-07-28 Andreas Schwab <schwab@suse.de>
17047
17048 * lisp.h (init_weak_hash_tables, syms_of_font)
17049 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17050 (remove_hash_entry): Don't declare.
17051 * eval.c (maybe_call_debugger): Make static and move before use.
17052 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17053 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17054 * xterm.h (x_set_frame_alpha): Declare.
17055
170562008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17057
17058 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17059 (create_menus): Connect selection-done to menu_nav_ended.
17060
170612008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17062
17063 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17064 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17065 parameter with read of 'alpha' one.
17066 (Qns_frame_parameter): Remove.
5582fbc7 17067 * nsselect.m (selection-coding-system)
aac0c6e3
MR
17068 (next-selection-coding-system, Vselection_coding_system)
17069 (Vnext_selection_coding_system): Drop.
17070
170712008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17072
17073 * nsfns.m (do-applescript, do_applescript): Rename to
17074 ns-do-applescript, ns_do_applescript, and move within file.
17075
170762008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17077
17078 Remove support for Mac Carbon.
17079 * mactoolbox.c:
17080 * macterm.h:
17081 * macterm.c:
17082 * macselect.c:
17083 * macmenu.c:
17084 * macgui.h:
17085 * macfns.c:
17086 * mac.c: Remove file.
17087 * s/darwin.h:
17088 * m/intel386.h:
17089 * xfaces.c:
17090 * xdisp.c:
17091 * window.c:
17092 * tparam.c:
17093 * termhooks.h:
17094 * termcap.c:
17095 * term.c:
17096 * syssignal.h:
17097 * sysselect.h:
17098 * sysdep.c:
17099 * process.c:
17100 * lread.c:
17101 * lisp.h:
17102 * keyboard.c:
17103 * image.c:
17104 * fringe.c:
17105 * frame.h:
17106 * frame.c:
17107 * fontset.c:
17108 * font.h:
17109 * font.c:
17110 * fns.c:
17111 * fileio.c:
17112 * emacs.c:
17113 * dispnew.c:
17114 * dispextern.h:
17115 * config.in:
17116 * atimer.c:
2ae37cf0 17117 * Makefile.in: Remove code for Carbon.
aac0c6e3 17118
f0131492 171192008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
17120
17121 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17122
171232008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17124
17125 * macterm.h (kCGBitmapByteOrder32Host): New define for
17126 non-universal SDKs.
17127
17128 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17129 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17130
17131 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17132 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17133
171342008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17135
17136 * w32inevt.c: Include dispextern.h.
17137
171382008-07-26 Andreas Schwab <schwab@suse.de>
17139
17140 * print.c (print_object): Fix off-by-one in last change.
17141
171422008-07-25 Juanma Barranquero <lekktu@gmail.com>
17143
17144 * term.c (syms_of_term): Don't initialize default_orig_pair,
17145 default_set_foreground and default_set_background on Windows.
17146
171472008-07-25 Jason Rumney <jasonr@gnu.org>
17148
17149 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17150 ScriptItemize. Clean up return value checking. Remove unused
17151 variables.
17152 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17153 shaping engine.
17154
17155 * w32font.c (w32font_has_char): Handle the case where we can't
17156 determine the script for a character.
17157
171582008-07-25 Chong Yidong <cyd@stupidchicken.com>
17159
17160 * term.c (syms_of_term): Initialize default_orig_pair,
17161 default_set_foreground, and default_set_background.
17162
17163 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17164 clash (bug#86).
17165 (getloadavg): Callers changed.
17166
17167 * image.c (svg_load_image): Fix last change.
17168 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17169 image size is valid. Use g_object_unref instead of deprecated
17170 rsvg_handle_free to free rsvg handle.
17171 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17172
171732008-07-25 Jason Rumney <jasonr@gnu.org>
17174
17175 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17176 surrogates before looking up glyph index.
17177 (w32font_text_extents): Encode as surrogates if falling back to
17178 functions that need UTF-16 wide chars.
17179
17180 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17181 BMP as surrogates before looking up glyph index.
17182
171832008-07-25 Chong Yidong <cyd@stupidchicken.com>
17184
17185 * image.c (svg_load_image): Check for failure in return value of
17186 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17187
171882008-07-25 Jason Rumney <jasonr@gnu.org>
17189
17190 * w32font.c (Fx_select_font): Reverse sense of second arg.
17191
171922008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17193
17194 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17195 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17196
17197 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17198 (PURESIZE): Use it.
17199
172002008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17201
17202 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17203 * m/alpha.h (TEXT_END):
17204 * m/ibmrs6000.h (TEXT_END):
17205 * m/macppc.h (TEXT_END):
17206 * s/darwin.h (TEXT_END):
17207 * s/msdos.h (TEXT_END): Remove, unused.
17208 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17209 * s/cygwin.h: Remove comment.
17210
17211 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17212 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17213 * m/intel386.h (DOT_GLOBAL_START):
17214 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17215 (USG): Remove, file not used on USG platforms.
17216
17217 * Makefile.in (HAVE_X11): Remove empty #else.
17218
172192008-07-24 Andreas Schwab <schwab@suse.de>
17220
17221 * fileio.c (Finsert_file_contents): Properly adjust undo list
17222 after format conversion.
17223
172242008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17225
17226 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17227 (menu_nav_ended): Remove.
17228 (create_menus): Remove signal connect for menu_nav_ended.
17229 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17230 create_menus.
17231 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17232
172332008-07-23 Jason Rumney <jasonr@gnu.org>
17234
17235 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17236 with opened font.
17237 (w32font_open): Set font type to gdi.
17238
17239 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17240
172412008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17242
17243 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17244 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17245 defines it.
17246 * unexec.c (ADDR_CORRECT): Define unconditionally.
17247
17248 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17249
17250 * unexec.c: Remove code depending on !COFF and USG, the file is
17251 not used for such systems.
17252
17253 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17254 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17255 (LD_SWITCH_SYSTEM_1): Remove, update users.
17256
17257 * s/darwin.h (DATA_END):
17258 * m/intel386.h (DATA_END):
17259 * m/ibmrs6000.h (DATA_END):
17260 * m/alpha.h (DATA_END): Remove, unused.
17261
17262 * config.in: Regenerate.
17263 * s/ms-w32.h (subprocesses): Define unconditionally.
17264 * s/template.h (subprocesses): Update comment.
17265 * s/vms.h (subprocesses):
17266 * s/usg5-4.h (subprocesses):
17267 * s/hpux10-20.h (subprocesses):
17268 * s/gnu-linux.h (subprocesses):
17269 * s/cygwin.h (subprocesses):
17270 * s/bsd-common.h (subprocesses):
17271 * s/aix4-2.h (subprocesses):
17272 * s/darwin.h (subprocesses): Do not define, defined by default now.
17273
17274 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17275 Remove all references.
17276 (temacs): Add GNUstep specific ld flags.
17277
17278 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17279 similarly to what X does.
17280
172812008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17282
17283 * nsfns.m (x-list-fonts): Remove.
17284 (syms_of_nsfns): Drop the x-list-fonts declaration.
17285 * nsterm.m: Get rid of remaining "//" comments.
17286
172872008-07-22 Chong Yidong <cyd@stupidchicken.com>
17288
17289 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17290
17291 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17292 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17293 (Fns_own_selection_internal, Fx_disown_selection_internal)
17294 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17295
17296 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17297 ... */' style of docstrings. Doc fixes.
17298
172992008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17300
17301 * terminfo.c (UP, BC, PC): Undo previous change.
17302
17303 * nsfns.m: Rename ns prefixed functions/variables to the
17304 corresponding x versions. Update references.
17305
173062008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17307
17308 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17309
173102008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17311
17312 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17313 Remove forwarding functions.
17314 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17315 non-static.
17316 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17317 non-static.
17318 (ns_frame_parm_handlers): Use the new names.
17319 (syms_of_nsfns): Move to the end of file.
17320
17321 * nsterm.m (syms_of_nsterm): Move to the end of file.
17322
17323 * dispnew.c (init_display): Remove code for X10.
17324
173252008-07-22 Jason Rumney <jasonr@gnu.org>
17326
17327 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17328 bare drive.
17329
173302008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17331
17332 * nsterm.m (syms_of_nsterm): Remove debugging println.
17333
173342008-07-22 David Reitter <david.reitter@gmail.com>
17335
17336 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17337 Carbon implementation of the same functionality: execute arbitrary
17338 AppleScript code.
17339
173402008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17341
17342 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17343 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17344 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17345 (Fx_display_mm_height, Fx_display_mm_width)
17346 (Fx_display_backing_store, Fx_display_visual_class)
17347 (Fx_display_save_under, Fx_open_connection)
17348 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17349 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17350 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17351 (Fx_display_pixel_width, Fx_display_pixel_height)
17352 (Fx_display_usable_bounds, Fx_display_planes)
17353 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17354 ... */' style of docstrings.
17355
173562008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17357
17358 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17359 on this platform.
17360 (mips):
17361 * m/iris4d.h (mips): Do not define.
17362 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17363
17364 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17365
17366 * image.c:
17367 * nsfns.m:
17368 * nsselect.m:
17369 * nsterm.h:
17370 * nsterm.m: Rename ns prefixed functions/variables to the
17371 corresponding x versions. Update references.
17372
17373 * m/ibms390x.h (NO_REMAP): Do not undefine.
17374
17375 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
17376
173772008-07-21 Chong Yidong <cyd@stupidchicken.com>
17378
17379 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
17380 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
17381 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
17382 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
17383 (Fns_display_mm_height, Fns_display_mm_width)
17384 (Fns_display_backing_store, Fns_display_visual_class)
17385 (Fns_display_save_under, Fns_open_connection)
17386 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
17387 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
17388 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17389 (Fns_display_pixel_width, Fns_display_pixel_height)
17390 (Fns_display_usable_bounds, Fx_display_planes)
17391 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
17392
173932008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
17394
17395 * print.c (print_object): Check print_depth before searching for
17396 circularities.
17397
173982008-07-21 Michael Albinus <michael.albinus@gmx.de>
17399
17400 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
17401 only sprintf.
17402
174032008-07-21 Kenichi Handa <handa@m17n.org>
17404
17405 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
17406
174072008-07-20 Andreas Schwab <schwab@suse.de>
17408
17409 * syntax.c (find_start_pos, find_start_value)
17410 (find_start_value_byte, find_start_begv, find_defun_start)
17411 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
17412
174132008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17414
17415 * s/sol2-3.h: Insert contents of s/sol2.h.
17416 (LD_SWITCH_SYSTEM): Remove redundant definition.
17417 * s/sol2.h: Remove, unused.
17418
174192008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17420
17421 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
17422
174232008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17424
17425 * Makefile.in (ns_appdir): Fix typo in find command.
17426
174272008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17428
17429 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
17430
17431 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
17432 added not supported anymore.
17433
17434 * s/usg5-4-2.h (LIBS_SYSTEM):
17435 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
17436
17437 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17438 * s/lynxos.h (GETPGRP_NO_ARG):
17439 * s/hpux10-20.h (NO_SIOCTL_H):
17440 * s/gnu.h (GETPGRP_NO_ARG):
17441 * s/gnu-linux.h (NO_SIOCTL_H):
17442 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17443 * s/cygwin.h (GETPGRP_NO_ARG):
17444 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17445 (C_DEBUG_SWITCH): Remove duplicate definition.
17446
17447 * m/ibms390.h: Remove boilerplate comments.
17448
17449 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
17450
17451 * process.c (HAVE_SERIAL): Consolidate ifdefs.
17452 (wait_reading_process_output): Remove code for SunOS, platform not
17453 supported anymore. Use SOLARIS2 instead of sun.
17454
174552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17456
17457 * font.c (font_open_by_name): Under NS, default lface height to zero.
17458 (font_open_for_lface): Under NS, set size based on frame fontsize.
17459 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
17460 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
17461
174622008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17463
17464 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
17465 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
17466 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
17467 YES/NO.
17468 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
17469 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
17470 * Makefile.in (clean): Clear out build destination dir.
17471
174722008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17473
17474 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
17475 xterm, xselect.
17476 * lisp.h: Remove declaration of hash_remove.
17477 * nsgui.h: Remove redefinitions of hash_remove.
17478 * fns.c (hash_remove): Rename to hash_remove_from_table.
17479
174802008-07-19 Seiji Zenitani <zenitani@mac.com>
17481
17482 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
17483 strdup() the family UTF8String before modifying it.
17484
174852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17486
17487 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
17488 NS_FACE_BACKGROUND with 0 instead of nil.
17489 * nsfont.m (nsfont_draw): Same.
17490
174912008-07-19 Chong Yidong <cyd@stupidchicken.com>
17492
17493 * nsfns.m (ns_set_background_color): Fix crash.
17494
174952008-07-18 Chong Yidong <cyd@stupidchicken.com>
17496
17497 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
17498
174992008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
17500
17501 * puresize.h (BASE_PURESIZE): Increase to 1240000.
17502
175032008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17504
17505 * gtkutil.c: Include <config.h> instead of "config.h".
17506
17507 * lisp.h (Foverlay_buffer): Add EXFUN.
17508
17509 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
17510 child process to complete child_setup. Undo 2005-09-21 change.
17511
17512 * s/darwin.h: Mention setsid after vfork.
17513
175142008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17515
17516 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
17517 Depend on macgui.h.
17518
17519 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
17520 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
17521
17522 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
17523 and f19.
17524 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
17525
17526 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
17527 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
17528 Remove enumerators.
17529
17530 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
17531 Check if FACE_FROM_ID returns NULL.
17532
175332008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
17534
17535 * w32inevt.c (change_frame_size): Remove extern declaration.
17536 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
17537 change_frame_size.
17538
175392008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17540
17541 * getloadavg.c: Revert last change (2008-07-15).
17542
175432008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17544
17545 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 17546 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
17547 from configure.
17548
175492008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17550
17551 * s/sol2.h:
17552 * s/sol2-4.h: Reorganize conditionals.
17553
17554 * ecrt0.c: Remove code depending on m68000, not used anymore.
17555
17556 * fns.c (hash_remove): Make static.
17557 * lisp.h (hash_remove): Don't prototype.
17558
17559 * m/ibmrs6000.h:
17560 * m/ibms390x.h:
17561 * m/macppc.h: Remove boilerplate comments.
17562
17563 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17564 Solaris, which does not need them.
17565
17566 * m/vax.h: Remove comments about unsupported systems.
17567
17568 * s/darwin.h: Reorganize ifdefs.
17569
175702008-07-17 Andreas Schwab <schwab@suse.de>
17571
17572 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17573
175742008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17575
17576 Use SDATA. Follow coding convention of placing operators at
17577 beginning of next line rather than end of previous line, and placing
17578 spaces around infix operators.
17579
17580 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17581 in case it was defined already.
17582 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17583 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17584 ns_default.
17585 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17586 Lisp_Objects.
17587 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17588 (ns_defined_color, ns_color_to_lisp): Declare.
17589 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17590 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17591 it's accepted even with USE_LISP_UNION_TYPE.
17592 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17593 (update_frame_tool_bar): Remove apparently obsolete tests for
17594 non-integerness of f->tool_bar_lines.
17595 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17596 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17597 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17598 (nsfont_open): Don't confuse NULL for Qnil.
17599 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17600 * menu.h (find_and_call_menu_selection):
17601 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17602 (find_and_return_menu_selection): Always return something.
17603 * frame.h: Include dispextern.h for Display_Info.
17604 (display_x_get_resource): Declare.
17605
176062008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17607
17608 * syntax.c: Remove stdio.h include accidentally introduced in
17609 Emacs.app commit.
17610 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17611 NS_IMPL_COCOA.
17612 * keyboard.c (handle_async_input, input_available_signal): Remove
17613 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17614
176152008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17616
17617 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17618 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17619 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17620 Use SDATA.
17621
17622 * keymap.c: Remove all NS-specific code.
17623 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17624 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17625 where_is_preferred_modifier, return a different value depending on how
17626 preferred is the binding.
17627 (where_is_internal): Adjust accordingly.
17628 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17629 Adjust to new preferred_sequence_p.
17630 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17631 * keyboard.c (parse_solitary_modifier): Not static any more.
17632 * keyboard.h (parse_solitary_modifier): Declare.
17633
176342008-07-16 Andreas Schwab <schwab@suse.de>
17635
17636 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17637 of easymenu.
17638
176392008-07-16 Chong Yidong <cyd@stupidchicken.com>
17640
17641 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17642 that we don't move off the line.
17643
176442008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17645
17646 * keyboard.c (Qsuper): Remove.
17647 (parse_menu_item): Don't call where_is_internal specially for NS.
17648
176492008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17650
17651 * s/gnu-linux.h: Remove boilerplate comments.
17652
17653 * m/alpha.h (__ELF__): Consolidate conditions.
17654
17655 * m/m68k.h (linux): Use GNU_LINUX instead.
17656 Remove boilerplate comments.
17657
17658 * m/intel386.h: Undo refactoring from previous change.
17659 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17660 too, remove dead code.
17661 (linux): Use GNU_LINUX instead.
17662
176632008-07-16 Jason Rumney <jasonr@gnu.org>
17664
17665 * w32gui.h: Repeat 26 June changes lost by last change.
17666
176672008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17668
17669 * systty.h: Remove code for Aix on 386, unsupported platform.
17670
17671 * s/ms-w32.h: Remove boilerplate comments.
17672 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17673
17674 * s/gnu-linux.h (TERM): Remove support.
17675 (HAVE_SYSVIPC): Remove, unused.
17676 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17677 for this system.
17678
17679 * process.c: Remove support for IRIS, unused.
17680 Remove support for TERM, not relevant anymore.
17681
17682 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17683 used with the definition.
17684
17685 * s/aix4-2.h (static): Do not undef.
17686
17687 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17688 only used on Aix.
17689 (HAVE_SYSVIPC): Remove, unused.
17690
17691 * m/hp800.h (CANNOT_DUMP): Do not undef.
17692
17693 * m/alpha.h: Fix comment.
17694
17695 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17696 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17697 used by this configuration.
17698 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17699 * unexec.c: Remove code depending on HPUX and
17700 USG_SHARED_LIBRARIES, not used with this file. Remove code
17701 depending on IRIS, unused. Remove if 0-ed code.
17702
17703 * s/template.h: Remove comments about static.
17704
17705 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17706 Remove if 0-ed code.
17707 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17708 were the same as the default.
17709 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17710 Remove boilerplate comments.
17711 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17712 (HAVE_SYSVIPC): Remove, unused.
17713 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17714
17715 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17716 Remove boilerplate comments.
17717 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17718 Remove boilerplate comments.
17719 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17720 Remove boilerplate comments.
17721 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17722
17723 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17724 USG systems which do not use DATA_SEG_BITS.
17725 Refactor code. Remove boilerplate comments.
17726
17727 * m/ibms390.h:
17728 * m/m68k.h:
17729 * s/bsd-common.h:
17730 * s/cygwin.h:
17731 * s/darwin.h:
17732 * s/freebsd.h:
17733 * s/gnu.h:
17734 * s/msdos.h: Remove boilerplate comments.
17735
17736 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17737 do not use this file.
aac0c6e3
MR
17738 (IRIS_4D): Remove, unused.
17739
17740 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17741 do not use this file.
aac0c6e3
MR
17742 (SIGN_EXTEND_CHAR):
17743 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17744 * unexmips.c: Remove file, unused.
17745
17746 * editfns.c (Fuser_full_name): Replace the only use of
17747 USER_FULL_NAME with its value.
17748 * config.in: Regenerate.
17749
177502008-07-16 David Reitter <david.reitter@gmail.com>
17751
17752 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17753 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17754
177552008-07-16 Glenn Morris <rgm@gnu.org>
17756
17757 * emacs.c (system-type): Doc fix.
17758
177592008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17760
17761 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17762 If the cache doesn't work, let's fix it, rather than work around it.
17763
177642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17765
17766 * Makefile.in: Correct additions for nsfont.o in last commit.
17767 * nsfont.m: New file (forgot last commit).
17768
177692008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17770
bba3e508
SM
17771 * callproc.c (set_initial_environment):
17772 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17773 batch-compiling for bootstrap).
17774
177752008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17776 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17777
c4cc8b9a
JB
17778 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17779 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17780
177812008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17782
17783 Changes and additions for NeXTstep windowing system (Cocoa and
17784 GNUstep) support.
17785
17786 * Makefile.in:
17787 * config.in: Support defines and build commands for NS port.
17788 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17789 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17790 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17791 windowing.
17792 (struct face): Add synth_ital field.
17793 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17794 (init_display): Initialize Vinitial_window_system to "ns" when so
17795 compiled.
17796 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17797 (display_arg): Use under NS.
17798 (main): Under NS, allocate autorelease pool and handle command line
17799 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17800 (standard_args): Add NS-specific args.
17801 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17802 * font.c (DEFAULT_ENCODING): New variable.
17803 (font_find_for_lface): Use it.
17804 (syms_of_font): Load syms_of_nsfont under NS.
17805 * font.h: Declare nsfont_driver when compiled under NS.
17806 * fontset.c: When compiling under NS, include nsterm.h.
17807 (fontset_from_font): Autoconstruct fontset under NS.
17808 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17809 symbol, document and use it.
17810 (do_switch_frame): When for_deletion under Cocoa, add
17811 Fraise_frame(Qnil).
17812 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17813 (x_get_arg): Allow "yes" and "no" as boolean values.
17814 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17815 Qright under Cocoa.
17816 (focus-follows-mouse): Default to 0 under NS.
17817 * frame.h (enum output_method): Add output_ns.
17818 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17819 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17820 (FRAME_WINDOW_P): NS-specific definition.
17821 * fringe.c (max_used_fringe_bitmap): Make public.
17822 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17823 (getloadavg): Use NeXT code under descendant OS's.
17824 * image.c (includes and header section, x_create_bitmap_from_data)
17825 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17826 (image_background_transparent, x_clear_image_1)
17827 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17828 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17829 (x_to_xcolors, x_from_xcolors, x_disable_image)
17830 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17831 other GUIs, including XPM support using code originally written for
17832 Carbon GUI.
17833 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17834 using NS API.
17835 (image_ascent): Use font metrics macros instead of direct struct field
17836 access.
17837 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17838 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17839 Also, handle NS as GTK for menu bar purposes.
17840 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17841 toolkit where they differ.
17842 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17843 use cachelist, still needed under NS.
17844 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17845 (struct widget_value): Define it here for menu.c.
17846 * keymap.c (includes): Include modifier internals.
17847 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17848 NS.
17849 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17850 support for preferring sequences using certain modifiers, specified by
17851 the FIRSTONLY argument.
17852 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17853 under NS GNUstep implementation.
17854 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17855 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17856 * menu.c: Include nsterm.h under NS.
17857 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17858 (free_menubar_widget_tree_value, update_submenu_strings)
17859 (find_and_call_menu_selection): Treat NS as X and NT.
17860 (find_and_return_menu_selection): New function, used for popup menus.
17861 * nsgui.h:
17862 * nsterm.h:
17863 * nsfns.m:
17864 * nsimage.m:
17865 * nsmenu.m:
17866 * nsselect.m:
17867 * nsterm.m: New files.
17868 * process.c (wait_reading_process_output): Under NS, call ns_select()
17869 instead of plain select().
17870 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17871 beginning of buffer.
17872 * sysselect.h (init_process): Rename when compiling under Cocoa to
17873 avoid name conflict.
17874 * termhooks.h (display_info): Add ns_display_info to union.
17875 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17876 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17877 COCOA environment.
17878 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17879 unexec() signature. (Note, this will dump, but the resulting file
17880 crashes; unexosx is used instead; keeping around for reference and
17881 possible aid in getting dump working under GNUstep.)
17882 * w32gui.h (button_type, widget_value): Remove definitions (now in
17883 keyboard.h).
17884 * window.c: Include nsterm.h when compiling under NS.
17885 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17886 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17887 other GUI windowing systems.
17888 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17889 GTK.
17890 (x_consider_frame_title): Under NS, set icon type and frame
17891 modified-state indicator; use ns_set_name_as_filename() when using
17892 formatted title.
17893 (update_window_cursor): Make public when compiling under NS.
17894 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17895 (hourglass_atimer, Vhourglass_delay
17896 * xfaces.c (header section, init_frame_faces, clear_font_table)
17897 (defined_color, unload_color, x_face_list_fonts)
17898 (prepare_face_for_display): Add NS support parallel to other GUIs.
17899 Emulate GCs like other non-X GUIs.
17900 (split_font_name): Don't lowercase font name under NS.
17901 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17902 under NS.
17903 * s/darwin.h: Add support for compilation under NS.
17904
179052008-07-15 Jason Rumney <jasonr@gnu.org>
17906
17907 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17908 (w32_show_hourglass): Rename from show_hourglass.
17909 (w32_hide_hourglass): Rename from hide_hourglass.
17910 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17911 (Vhourglass_delay): Declare extern.
17912 (hourglass_started): Remove.
17913
17914 * xdisp.c (Vhourglass_delay): Remove static.
17915 (hourglass_started, start_hourglass, cancel_hourglass):
17916 Don't include these versions on WINDOWSNT.
17917
179182008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17919
17920 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17921 variables (formerly in xfns.c).
17922 (show_hourglass, hide_hourglass): New prototypes (same).
17923 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17924 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17925 in xfns.c).
17926 (syms_of_xdisp): Declare/initialize display-hourglass,
17927 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17928 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17929 formerly in xfns.c.
17930 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17931 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17932 (start_hourglass, cancel_hourglass): Remove.
17933 (show_hourglass, hide_hourglass): Remove prototypes and static
17934 modifiers.
17935 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17936 hourglass_atimer, hourglass_shown_p declaration/initialization.
17937 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17938 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17939 (start_hourglass, cancel_hourglass): Remove.
17940 (show_hourglass, hide_hourglass): Remove prototypes and static
17941 modifiers.
17942 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17943 hourglass_atimer, hourglass_shown_p declaration/initialization.
17944 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17945 (DEFAULT_HOURGLASS_DELAY): Remove.
17946 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17947 hourglass_shown_p declaration/initialization.
17948
179492008-07-14 Jason Rumney <jasonr@gnu.org>
17950
17951 * w32fns.c (w32_get_arg): Remove wrapper function.
17952 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17953 directly.
17954 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17955
179562008-07-14 Kenichi Handa <handa@m17n.org>
17957
17958 * xfont.c (xfont_open): Add workaround for X's bug.
17959
179602008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17961
17962 * fontset.c: Include <stdio.h> unconditionally.
17963
179642008-07-13 Michael Albinus <michael.albinus@gmx.de>
17965
17966 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17967 for filtering.
17968
179692008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17970
17971 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17972
17973 * m/macppc.h:
17974 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17975
c4cc8b9a 17976 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17977 (SPECIAL_EMACS_INT):
17978 * m/ia64.h (SPECIAL_EMACS_INT):
17979 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17980 * s/gnu.h (NLIST_STRUCT):
17981 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17982 * s/gnu-linux.h (LINUX):
17983 * s/msdos.h (HAVE_FACES):
17984 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17985
17986 * systty.h:
17987 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17988 anymore.
17989
179902008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17991
17992 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17993 always defined as int.
17994
17995 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17996 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17997 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17998 * s/freebsd.h (HAVE_WAIT_HEADER):
17999 * s/bsd-common.h (HAVE_UNION_WAIT):
18000 * s/aix4-2.h (HAVE_WAIT_HEADER):
18001 * m/mips.h (HAVE_UNION_WAIT):
18002 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18003 (COFF, static): Do not define, they are undefined later in the file.
18004
18005 * process.c (update_status): Don't use a union.
18006 (status_convert):
18007 (sigchld_handler): Use int instead of WAITTYPE.
18008
180092008-07-12 Chong Yidong <cyd@stupidchicken.com>
18010
18011 * indent.c (Fvertical_motion): Restore hscroll before moving to
18012 goal column.
18013
180142008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18015
18016 * lisp.h: Remove left over code.
18017
180182008-07-11 Andreas Schwab <schwab@suse.de>
18019
18020 * lisp.h: Fix logic in last change.
18021
18022 * menu.h: New file.
18023 * menu.c: Include it.
18024 * xmenu.c: Likewise.
18025 * Makefile.in: Update dependencies.
18026
180272008-07-11 Kenichi Handa <handa@m17n.org>
18028
18029 * fontset.c (fontset_from_font): Cancel the previous change.
18030
180312008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18032
18033 * lisp.h:
18034 * w32heap.c:
18035 * emacs.c:
18036 * alloc.c: Replace all references of NO_UNION_TYPE with
18037 USE_LISP_UNION_TYPE.
18038
18039 * m/xtensa.h (NO_UNION_TYPE):
18040 * m/vax.h (NO_UNION_TYPE):
18041 * m/template.h (NO_UNION_TYPE):
18042 * m/sparc.h (NO_UNION_TYPE):
18043 * m/mips.h (NO_UNION_TYPE):
18044 * m/macppc.h (NO_UNION_TYPE):
18045 * m/m68k.h (NO_UNION_TYPE):
18046 * m/iris4d.h (NO_UNION_TYPE):
18047 * m/intel386.h (NO_UNION_TYPE):
18048 * m/ibms390x.h (NO_UNION_TYPE):
18049 * m/ibms390.h (NO_UNION_TYPE):
18050 * m/ibmrs6000.h (NO_UNION_TYPE):
18051 * m/ia64.h (NO_UNION_TYPE):
18052 * m/hp800.h (NO_UNION_TYPE):
18053 * m/arm.h (NO_UNION_TYPE):
18054 * m/amdx86-64.h (NO_UNION_TYPE):
18055 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18056 defining it the same.
18057
180582008-07-10 Chong Yidong <cyd@stupidchicken.com>
18059
18060 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18061
180622008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18063
18064 * fileio.c:
50426a04 18065 * sysdep.c:
aac0c6e3
MR
18066 * systty.h:
18067 * m/ibmrs6000.h:
18068 * m/iris4d.h:
18069 * s/aix4-2.h:
18070 * s/freebsd.h:
18071 * s/gnu-linux.h:
18072 * s/hpux10-20.h:
18073 * s/hpux11.h:
18074 * s/netbsd.h:
18075 * s/sol2-3.h:
18076 * s/sol2-4.h:
18077 * s/sol2.h:
18078 * s/usg5-4.h:
18079 * s/vms.h: Remove references to unused variables.
18080
180812008-07-10 Andreas Schwab <schwab@suse.de>
18082
18083 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18084 pattern before matching the generic family.
18085
180862008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18087
18088 * unexec.c:
18089 * s/vms.h:
18090 * s/usg5-4-2.h:
18091 * s/sol2-5.h:
18092 * s/freebsd.h:
18093 * s/darwin.h: Remove dead code.
18094
18095 * m/template.h:
18096 * m/sparc.h:
18097 * m/mips.h:
18098 * m/m68k.h:
18099 * m/iris4d.h:
18100 * m/intel386.h:
18101 * m/ibms390x.h:
18102 * m/ibms390.h:
18103 * m/ia64.h:
18104 * m/hp800.h:
18105 * m/arm.h:
18106 * m/amdx86-64.h: Remove dead code and references to unused
18107 and compiler defined symbols.
18108
18109 * unexmips.c:
18110 * unexelf.c: Remove references to desupported systems.
18111
18112 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18113
18114 * m/powermac.h: Remove boilerplate comments.
18115 (NO_REMAP): Remove unused definition.
18116
18117 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18118 define them.
18119
181202008-07-10 Kenichi Handa <handa@m17n.org>
18121
18122 * xfont.c (xfont_open): Log the reason of failure.
18123
181242008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18125
18126 * fontset.c (fontset_get_font_group):
18127 * font.c (font_check_otf): Specify argument types.
18128
181292008-07-09 Kenichi Handa <handa@m17n.org>
18130
18131 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18132 non-ASCII char is found.
18133
18134 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18135 (reorder_font_vector): Change the arg preferred_family to font.
18136 Prefer the spec matching with font.
18137 (fontset_get_font_group): New function.
18138 (fontset_find_font): Change the format of an element of a realized
18139 fontset. Use fontset_get_font_group.
18140 (fontset_font): Try the current fontset, the default fontset, the
18141 fallbacks of the current fontset, and the fallbacks of the default
18142 fontset in this order.
18143 (face_for_char): Delete the shortcut to use the current font.
18144 (fontset_from_font): Don't set fonts for Latin in the fontset.
18145
18146 * font.h (font_make_object, font_match_p): Adjust prototypes.
18147
18148 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18149
18150 * font.c (font_make_object): New arg entity and pixelsize.
18151 (font_check_otf_features, font_check_otf): New functions.
18152 (font_match_p): Check :lang, :script, and :otf properties.
18153
18154 * xfont.c (xfont_open): Adjust it for the change of
18155 font_make_object.
18156 (xfont_text_extents): Fix initial setting of metrics.
18157
18158 * ftfont.c (struct ftfont_info): New member index, delete member
18159 fc_charset_idx. Make the member order compatible with struct
18160 xftfont_info.
18161 (fc_charset_table): Change charset names to registry names.
18162 (ftfont_pattern_entity): Delete the args registry and
18163 fc_charset_idx. Change the value of :font-entity property
18164 to (FONTNAME . INDEX). Always set :registry property to
18165 `iso10646-1'.
18166 (struct ftfont_cache_data): New struct.
18167 (ftfont_lookup_cache): New arg for_face.
18168 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18169 (ftfont_driver): Set the member otf_capability.
18170 (ftfont_get_charset): Adjust it for the change of
18171 fc_charset_table.
18172 (OTF_TAG_SYM): New macro.
18173 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18174 for the change of fc_charset_table.
18175 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18176 ftfont_pattern_entity. Add FC_INDEX to objset.
18177 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18178 and ftfont_pattern_entity.
18179 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18180 font_make_object, struct ftfont_info.
18181 (ftfont_has_char): Use ftfont_get_fc_charset.
18182 (ftfont_otf_features, ftfont_otf_capability): New functions.
18183 (ftfont_shape): Use ftfont_get_otf.
18184 (ftfont_text_extents): Fix initial setting of metrics.
18185
18186 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18187 member order compatible with struct ftfont_info.
bba3e508
SM
18188 (xftfont_open): Add FC_CHARSET to the pattern.
18189 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18190 properties if appropriate.
18191 (xftfont_close): Unlock the face.
18192 (xftfont_anchor_point, xftfont_shape): Deleted.
18193 (syms_of_xftfont): Don't set members anchor_point and shape of
18194 xftfont_driver.
18195
18196 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18197 font_make_object.
18198
18199 * w32font.c (w32font_open): Adjust it for the change of
18200 font_make_object.
18201 (w32font_open_internal): Don't set properties of font_object here.
18202
182032008-07-08 Chong Yidong <cyd@stupidchicken.com>
18204
18205 * macfns.c (x_create_tip_frame):
18206 * w32fns.c (x_create_tip_frame):
18207 * xfns.c (x_create_tip_frame): Pass parameter argument to
18208 face-set-after-frame-default.
18209
18210 * xfaces.c (Finternal_merge_in_global_face): Save merged
18211 attributes for the default face back into the face vector.
18212
182132008-07-08 Andreas Schwab <schwab@suse.de>
18214
18215 * fontset.h: Declare fontset_from_font. Don't declare
18216 new_fontset_from_font and fontset_from_font_name.
18217 * xterm.c: Include "fontset.h".
18218 * Makefile.in (xterm.o): Update dependencies.
18219
182202008-07-08 Glenn Morris <rgm@gnu.org>
18221
18222 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18223 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18224
182252008-07-07 Chong Yidong <cyd@stupidchicken.com>
18226
18227 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18228 (x_set_frame_parameters): Don't bind it.
18229
182302008-07-07 Juanma Barranquero <lekktu@gmail.com>
18231
18232 * w32fns.c (map_w32_filename): Declare extern.
18233
182342008-07-07 Jason Rumney <jasonr@gnu.org>
18235
18236 * w32term.c (WS_EX_LAYERED): Define if not already.
18237
182382008-07-06 Chong Yidong <cyd@stupidchicken.com>
18239
18240 * xfaces.c (set_font_frame_param): Don't try to set the font
18241 parameter if it is still unspecified in the lface.
18242
182432008-07-05 Chong Yidong <cyd@stupidchicken.com>
18244
18245 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18246 face if it didn't already exist.
18247
18248 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18249
182502008-07-05 Andreas Schwab <schwab@suse.de>
18251
18252 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18253
182542008-07-05 Chong Yidong <cyd@stupidchicken.com>
18255
18256 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18257 word-wrapping.
18258 (IT_DISPLAYING_WHITESPACE): New macro.
18259 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18260 when word-wrapping. Simplify word-wrapping logic. Use correct
18261 pixel positions when saving copies of the iterator.
18262 (display_line): Use proper wrap point if the last character on a
18263 line was preceded by whitespace.
18264
182652008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18266
18267 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18268
182692008-07-04 Kenichi Handa <handa@m17n.org>
18270
18271 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18272
18273 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18274
182752008-07-02 Jason Rumney <jasonr@gnu.org>
18276
18277 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 18278 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
18279
18280 * xdisp.c (next_element_from_display_vector): Move assignment out
18281 of if statement.
18282
182832008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18284
18285 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18286
18287 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18288 (syms_of_fileio): Initialize and export them.
18289 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18290
18291 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18292 (Fsystem_move_file_to_trash): New function.
18293 (syms_of_w32fns): Export it to lisp.
18294
182952008-07-01 Jason Rumney <jasonr@gnu.org>
18296
18297 * w32font.c (w32font_text_extents): Don't count overhang as part
18298 of width.
18299
183002008-06-30 Miles Bader <miles@gnu.org>
18301
18302 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18303 Add `avoid_cursor_p' field.
18304
18305 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18306 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18307 (append_glyph, append_composite_glyph, produce_image_glyph)
18308 (append_stretch_glyph): Initialize avoid_cursor_p.
18309 (get_it_property): Rename from `get_line_height_property'.
18310 (x_produce_glyphs): Use get_it_property.
18311 (handle_line_prefix, push_display_prop): New functions.
18312 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18313 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18314 New variables.
18315 (syms_of_xdisp): Initialize them.
18316
183172008-06-30 Kenichi Handa <handa@m17n.org>
18318
18319 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18320 XftDefaultSubstitute (they are called in XftFontMatch).
18321 (xftfont_open): Fix args to ftfont_font_format.
18322
18323 * ftfont.c (fc_charset_table): New member lang.
18324 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 18325 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
18326 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18327 (ftfont_open): Fix args to ftfont_font_format.
18328 (ftfont_font_format): New arg filename.
18329
183302008-06-30 Chong Yidong <cyd@stupidchicken.com>
18331
18332 * xfaces.c (Finternal_merge_in_global_face): If default face was
18333 modified, realize it again. Update the font face attribute.
18334
183352008-06-29 Jason Rumney <jasonr@gnu.org>
18336
18337 * w32term.c (x_set_frame_alpha): Fix logic.
18338
183392008-06-29 Kenichi Handa <handa@m17n.org>
18340
18341 * fontset.c (Finternal_char_font): Return font-object instead of
18342 font-name.
18343
18344 * composite.c (get_composition_id): Fix the width calculation for TAB.
18345
183462008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18347
18348 * indent.c (Fvertical_motion): Properly handle float column arg.
18349
183502008-06-28 Jason Rumney <jasonr@gnu.org>
18351
18352 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18353 (pfnSetLayeredWindowAttributes): New function pointer.
18354 (w32_initialize): Initialize it when supported.
18355 (x_set_frame_alpha): New function.
18356
18357 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18358 (w32_frame_parm_handlers): Set alpha handler.
18359
18360 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18361
183622008-06-27 Jason Rumney <jasonr@gnu.org>
18363
18364 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18365 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18366 (w32_to_x_charset, x_to_w32_charset)
18367 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18368 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18369 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18370 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18371 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18372 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18373 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18374 (Qw32_charset_unicode): Remove.
18375 (syms_of_w32fns): Update for above changes.
18376
18377 * w32font.c (w32_to_x_charset, x_to_w32_charset)
18378 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18379 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18380 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18381 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18382 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18383 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18384 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
18385 (syms_of_w32font): Update for above changes.
18386
183872008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
18388
18389 * s/usg5-4.h: Fix previous change: keep the correct branch of a
18390 removed #if.
18391 (USG_SHARED_LIBRARIES): Remove duplicate definition.
18392
183932008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 18394 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
18395
18396 * makefile.w32-in (LOCAL_FLAGS):
18397 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
18398
18399 * sysdep.c (_spawnlp, _getpid):
18400 Declare with explicit _cdecl instead of _CRTAPI1.
18401
18402 * editfns.c (Fget_internal_run_time):
18403 Check for WINDOWSNT with #ifdef, not #if.
18404
184052008-06-26 Jason Rumney <jasonr@gnu.org>
18406
18407 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
18408
18409 * w32term.c (x_draw_glyph_string_foreground)
18410 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
18411 Use FONT_HANDLE macro.
18412 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
18413
18414 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18415 (uniscribe_encode_char): Use FONT_HANDLE macro.
18416
18417 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
18418 (w32font_text_extents): Use precast w32_font.
18419 (w32font_close): Free cached metrics.
18420 (w32font_open_internal): Allocate space for name on stack.
18421
184222008-06-26 Chong Yidong <cyd@stupidchicken.com>
18423
18424 * xdisp.c (extend_face_to_end_of_line): Fix last change.
18425
184262008-06-26 Jason Rumney <jasonr@gnu.org>
18427
18428 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
18429 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
18430
184312008-06-26 Juanma Barranquero <lekktu@gmail.com>
18432
18433 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
18434
184352008-06-26 Jason Rumney <jasonr@gnu.org>
18436
18437 * w32bdf.c, w32bdf.h: Remove obsolete files.
18438
18439 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
18440
18441 * w32gui.h: Don't include w32bdf.h.
18442 (XCharStruct, enum w32_char_font_type, W32FontStruct):
18443 Remove obsolete font support.
18444
18445 * w32font.h (struct w32font_info): Remove compat_w32_font.
18446 Add hfont member.
18447 (FONT_COMPAT): Remove obsolete macro.
18448
18449 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
18450 (w32font_encode_char, w32font_text_extents): Use new hfont member.
18451 (w32font_open_internal): Remove compat code. Set new hfont member.
18452 (Fx_select_font): Use new hfont member.
18453
18454 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18455 (uniscribe_encode_char): Use new hfont member.
18456
18457 * w32term.c (x_draw_glyph_string_foreground)
18458 (x_draw_composite_glyph_string_foreground): Use new hfont member.
18459 (x_draw_glyph_string): Use metrics in w32font_info.
18460
184612008-06-26 Kenichi Handa <handa@m17n.org>
18462
18463 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
18464
184652008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
18466
18467 * unexnext.c:
18468 * m/ews4800.h:
18469 * m/hp9000s300.h:
18470 * m/ibm370aix.h:
18471 * m/mips-siemens.h:
18472 * m/ncr386.h:
18473 * m/next.h:
18474 * m/pmax.h:
18475 * m/powerpcle.h:
18476 * m/tandem-s2.h:
18477 * s/386bsd.h:
18478 * s/bsd386.h:
18479 * s/bsd4-1.h:
18480 * s/bsd4-2.h:
18481 * s/bsdos2-1.h:
18482 * s/bsdos2.h:
18483 * s/bsdos3.h:
18484 * s/bsdos4.h:
18485 * s/nextstep.h:
18486 * s/ultrix4-3.h:
18487 * s/usg5-0.h:
18488 * s/usg5-2-2.h:
18489 * s/usg5-2.h:
18490 * s/usg5-4-3.h:
18491 * s/ux4800.h:
18492 * s/uxpds.h:
18493 * s/uxpv.h: Remove support for obsolete systems.
18494 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 18495 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
18496 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
18497 Remove, insert contents in s/aix4-2.h.
18498 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
18499 * s/bsd4-3.h: Rename to ...
18500 * s/bsd-common.h: ... this.
18501 * data.c:
18502 * doc.c:
18503 * ecrt0.c:
18504 * emacs.c:
18505 * fileio.c:
18506 * floatfns.c:
18507 * keyboard.c:
18508 * mem-limits.h:
18509 * print.c:
18510 * process.c:
18511 * sysdep.c:
18512 * syssignal.h:
18513 * systty.h:
18514 * syswait.h:
18515 * term.c:
18516 * unexec.c:
18517 * unexelf.c:
18518 * unexhp9k800.c:
18519 * m/hp800.h:
18520 * m/ibmrs6000.h:
18521 * m/mips.h:
18522 * m/vax.h:
18523 * s/darwin.h:
18524 * s/freebsd.h:
18525 * s/gnu.h:
18526 * s/ms-w32.h:
18527 * s/msdos.h:
18528 * s/netbsd.h:
18529 * s/template.h: Remove references to obsolete variables.
18530
18531 * Makefile.in: Add dependencies for all unexec files.
18532 (admindir): Remove unused variable.
18533 (UNEXEC_SRC): Remove references.
18534
185352008-06-25 Chong Yidong <cyd@stupidchicken.com>
18536
18537 * xfns.c (x_default_font_parameter): If Xft is available, first
18538 try Monospace-12 for the default font.
18539
185402008-06-25 Jason Rumney <jasonr@gnu.org>
18541
18542 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
18543
185442008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18545
18546 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18547
18548 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18549
185502008-06-25 Juanma Barranquero <lekktu@gmail.com>
18551
18552 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18553 <scroll-conservatively>: Fix typo in docstring.
18554
18555 * xselect.c (Fx_send_client_event): Doc fix.
18556
185572008-06-25 Kenichi Handa <handa@m17n.org>
18558
18559 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18560
18561 * font.c (font_parse_fcname): Remove unused variables.
18562 (font_sort_entites): Delete the arg SPEC. Caller changed.
18563 Fix for the case of ! best_only.
18564 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18565
18566 * lisp.h (Fstring_to_unibyte): EXFUN it.
18567
18568 * character.h (str_to_unibyte): Extern it.
18569
18570 * character.c (str_to_unibyte): New function.
18571
18572 * fns.c (Fstring_to_unibyte): New function.
18573 (syms_of_fns): Defsubr it.
18574
185752008-06-24 Kenichi Handa <handa@m17n.org>
18576
18577 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18578 DPI too.
18579 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18580
185812008-06-24 Andreas Schwab <schwab@suse.de>
18582
18583 * Makefile.in (${lispsource}loaddefs.el): Rename from
18584 ../lisp/loaddefs.el.
18585 (bootstrap-clean): Do what distclean does but don't remove
18586 Makefile.
18587 (distclean): Depend on bootstrap-clean and remove Makefile.
18588
185892008-06-24 Chong Yidong <cyd@stupidchicken.com>
18590
18591 * buffer.h (struct buffer): New member word_wrap.
18592
18593 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18594 word-wrap.
18595 (init_buffer_once): Initialize them.
18596
18597 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18598 line_wrap enum possessing three possible values.
18599
18600 * termopts.h: Replace truncate_partial_width_windows with
18601 Vtruncate_partial_width_windows.
18602
18603 * dispnew.c (direct_output_for_insert): Avoid direct output when
18604 inserting a space with word wrap on.
18605
18606 * indent.c (compute_motion): Obey integer values of
18607 truncate-partial-width-windows.
18608
18609 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18610 replacing truncate_partial_width_windows.
18611 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18612 truncate only if the window width is below that integer.
18613 (start_display, resize_mini_window, produce_stretch_glyph)
18614 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
18615 (back_to_previous_visible_line_start, reseat_1):
18616 Reset string_from_display_prop_p.
aac0c6e3
MR
18617 (display_line): Extend default face to end of line when wrapping.
18618
186192008-06-24 Kim F. Storm <storm@cua.dk>
18620
18621 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18622 to wrap continued lines at word boundaries.
18623
186242008-06-24 Jason Rumney <jasonr@gnu.org>
18625
18626 * font.c (Ffont_face_attributes): Multiply pixel size before point
18627 conversion to avoid multiplying rounding error.
18628
186292008-06-23 Jason Rumney <jasonr@gnu.org>
18630
18631 * w32term.c (x_draw_glyph_string_background)
18632 (x_draw_glyph_string): Remove old bdf font code.
18633
18634 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18635
186362008-06-22 Kenichi Handa <handa@m17n.org>
18637
18638 * font.c (font_find_for_lface): Try the adstyle specified in
18639 the property of LFACE_FONT of LFACE (if any).
18640
186412008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18642 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18643
18644 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18645
186462008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18647
18648 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18649 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18650 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18651 (witness-emacs): Remove.
18652 (lisp, shortlisp): Move loaddefs.el earlier.
18653 (mostlyclean): Forget about witness-emacs.
18654
186552008-06-22 Glenn Morris <rgm@gnu.org>
18656
18657 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18658 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18659
186602008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18661
18662 * Makefile.in (PRECOMP): Remove.
18663 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18664 (witness-emacs): Run `compile-first'.
18665 (.el.elc): Use the new compile-onefile target.
18666
186672008-06-21 Kenichi Handa <handa@m17n.org>
18668
18669 * xftfont.c (xftfont_open): Handle QCembolden only when
18670 FC_EMBOLDEN is defined.
18671
186722008-06-21 Andreas Schwab <schwab@suse.de>
18673
18674 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18675 (.el.elc): Likewise.
18676
186772008-06-21 Miles Bader <miles@gnu.org>
18678
18679 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18680 build dir, not the lisp source dir.
18681
186822008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18683
18684 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18685 (bootstrapclean): Remove.
18686 (.el.elc): New rule.
18687 (PRECOMP): New var.
18688 (../lisp/subdirs.el): Remove.
18689 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18690 (witness-emacs): New target.
18691 (mostlyclean): Remove witness-emacs as well.
18692 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18693 Add witness-emacs dependency.
18694
186952008-06-20 Chong Yidong <cyd@stupidchicken.com>
18696
18697 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18698 defined by the font.
18699
187002008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18701
18702 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18703 (bootstrap-clean): New target that keeps TAGS around.
18704 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18705 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18706
187072008-06-20 Jason Rumney <jasonr@gnu.org>
18708
18709 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18710 Remove obsolete font code.
18711
18712 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18713 to determine language support.
18714
187152008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18716
18717 * sysdep.c (cfsetspeed): New fun extracted from the code.
18718 (cfmakeraw): Move before first use.
18719
187202008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18721
18722 * sysdep.c (cfmakeraw): Provide fallback implementation.
18723 (serial_configure): Provide fallback implementation of cfsetspeed.
18724
187252008-06-20 Kenichi Handa <handa@m17n.org>
18726
18727 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18728 the pattern.
18729
18730 * fontset.c (fontset_from_font): Copy font_spec before changing
18731 the elements.
18732
18733 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18734
187352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18736
18737 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18738 for explicit `font' parameters.
18739
18740 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18741
187422008-06-19 Kenichi Handa <handa@m17n.org>
18743
18744 * frame.c: Include <ctype.h>.
18745 (x_set_font_backend): Allow spacing characters in the X resource
18746 for FontBackend.
18747
187482008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18749
18750 * w32fns.c, xfns.c (Qfont_param): New var.
18751 (syms_of_w32fns): Initialize it.
18752 (x_default_font_parameter): Record explicit `font' into
18753 `font-parameter'.
18754
187552008-06-18 Kenichi Handa <handa@m17n.org>
18756
18757 * font.c (font_parse_xlfd): Fix previous change.
18758 (font_parse_fcname): Don't use :fc-unknown-spec.
18759 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18760 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18761 (font_add_log): Prepend the driver name to the resulting fonts.
18762
18763 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18764 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18765 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18766
18767 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18768 (QCembolden): New variables.
18769 (syms_of_xftfont): DEFSYM them.
18770 (xftfont_open): Call XftFontMatch. Don't trust the result of
18771 XftTextExtents8 if the pixel_size is less than 5.
18772
187732008-06-18 Andreas Schwab <schwab@suse.de>
18774
18775 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18776 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18777
187782008-06-18 Jason Rumney <jasonr@gnu.org>
18779
18780 * w32font.c (w32font_list, w32font_match): Add logging.
18781
18782 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18783
187842008-06-17 Chong Yidong <cyd@stupidchicken.com>
18785
18786 * font.c (font_parse_fcname): Store divider characters for
18787 unknown-spec list. For known key symbols, intern using correct
18788 symbol name.
18789
187902008-06-17 Kenichi Handa <handa@m17n.org>
18791
18792 * xfaces.c (realize_default_face): If the frame is not on window
18793 system, set the fontset of face to nil.
18794
187952008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18796
18797 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18798
187992008-06-16 Juanma Barranquero <lekktu@gmail.com>
18800
18801 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18802 (build_font_name_from_vector): Delete externs.
18803
18804 * xfaces.c (struct font_name): Don't declare.
18805
188062008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18807
18808 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18809
188102008-06-16 Chong Yidong <cyd@stupidchicken.com>
18811
18812 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18813
188142008-06-16 Juanma Barranquero <lekktu@gmail.com>
18815
18816 * font.c (Ffont_spec): Fix usage in docstring.
18817 (Ffont_face_attributes): Doc fix.
18818
188192008-06-16 Andreas Schwab <schwab@suse.de>
18820
18821 * font.c (Ffont_face_attributes): Fix definition.
18822
188232008-06-16 Jason Rumney <jasonr@gnu.org>
18824
18825 * font.h (font_style_symbolic_from_value): Remove.
18826
18827 * font.c (font_style_symbolic_from_value): Remove.
18828 (font_style_symbolic): Revert to pre 2008-06-13 version.
18829
18830 * w32font.c (w32_to_fc_weight): New function.
18831 (w32font_full_name, logfont_to_fcname): Use it.
18832
188332008-06-16 Kenichi Handa <handa@m17n.org>
18834
18835 * font.c (font_check_object): Delete it.
18836 (font_clear_cache): Check if a font-object is alive.
18837 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18838 font-object to nil.
18839 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18840 (font_at): Don't call font_check_object.
18841 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18842
188432008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18844
18845 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18846
188472008-06-16 Chong Yidong <cyd@stupidchicken.com>
18848
18849 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18850
188512008-06-15 Chong Yidong <cyd@stupidchicken.com>
18852
18853 * font.c (font_parse_fcname): Only one decimal point.
18854 (font_unparse_fcname): Handle data in family and foundry indices
18855 as symbols, not strings.
18856 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18857
18858 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18859
18860 * font.h (font_unparse_gtkname): Add prototype.
18861
188622008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18863
18864 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18865
188662008-06-15 Andreas Schwab <schwab@suse.de>
18867
18868 * font.c (font_update_drivers): Fix crash when no drivers match.
18869
188702008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18871
18872 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18873 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18874
188752008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18876
18877 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18878
188792008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18880
18881 * process.c (Fserial_process_configure, Fprocess_send_eof):
18882 Use EQ to compare Lisp_Objects.
18883
188842008-06-13 Jason Rumney <jasonr@gnu.org>
18885
18886 * w32fns.c (Fw32_select_font): Remove old font API function.
18887
18888 * w32font.c (logfont_to_fcname): New function.
18889 (Fx_select_font): New font dialog function compatible with
18890 GTK/fontconfig version.
18891
18892 * font.c (font_style_symbolic_from_value): New function.
18893 (font_style_symbolic): Use it.
18894
18895 * font.h (font_style_symbolic_from_value): Declare new function.
18896
188972008-06-13 Juanma Barranquero <lekktu@gmail.com>
18898
18899 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18900 <font-width-table>: Fix typos in docstrings.
18901
189022008-06-13 Daniel Engeler <engeler@gmail.com>
18903
18904 These changes add serial port access.
18905 * process.c: Add HAVE_SERIAL.
18906 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18907 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18908 (list_processes_1, select_wrapper, Fstop_process)
18909 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18910 (status_notify): Modify to handle serial processes.
18911 [HAVE_SERIAL] (Fserial_process_configure)
18912 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18913 New functions.
18914 * process.h (struct Lisp_Process): Add `type'.
18915 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18916 New functions.
18917 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18918 serial ports.
b71ac3dd 18919 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18920 * w32.h: Add FILE_SERIAL.
18921 (struct _child_process): Add ovl_read, ovl_write.
18922
189232008-06-13 Kenichi Handa <handa@m17n.org>
18924
18925 * dispextern.h (enum lface_attribute_index): New member
18926 LFACE_FOUNDRY_INDEX.
18927
18928 * font.c (font_score): Delete arg alternate_families. Check only
18929 weight, slant, width, and size. Ignore the difference of alias
18930 style symbols.
18931 (font_sort_entites): Adjust for the above change. Reflect the
18932 order of font-driver to scores.
18933 (font_list_entities): Don't check alternate_familes here.
18934 (font_clear_prop): Handle foundry.
18935 (font_update_lface): Don't parse "foundry-family" form here.
18936 Handle FONT_FOUNDRY_INDEX.
18937 (font_find_for_lface): Likewise. Handle alternate families here.
18938 If registry is nil, try iso8859-1 and ascii-0.
18939 (font_open_for_lface): Pay attention to size in ENTITY.
18940 (font_open_by_name): Simplify by calling font_load_for_lface.
18941 (free_font_driver_list): Delete it.
18942 (font_update_drivers): Preserve the order of backends.
18943 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18944 of font_score and font_sort_entites.
18945 (font_update_sort_order): Likewise.
18946
18947 * xfaces.c (LFACE_FOUNDRY): New macro.
18948 (check_lface_attrs): Check foundry.
18949 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18950 (merge_face_vectors): Check foundry.
18951 (merge_face_ref): Likewise.
18952 (Finternal_set_lisp_face_attribute): Likewise.
18953 (x_update_menu_appearance): Likewise.
18954 (Finternal_get_lisp_face_attribute): Likewise.
18955 (lface_hash): Likewise.
18956 (lface_same_font_attributes_p): Likewise.
18957 (x_supports_face_attributes_p): Likewise.
18958 (tty_supports_face_attributes_p): Likewise.
18959 (Finternal_set_alternative_font_family_alist): Intern strings.
18960 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18961 (realize_default_face): Set LFACE_FOUNDRY (lface).
18962
18963 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18964 font-driver at first.
18965
18966 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18967
189682008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18969
18970 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18971
189722008-06-12 Jim Meyering <meyering@redhat.com>
18973
18974 Make unexec_free handle NULL the same way free does.
18975 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18976
189772008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18978
18979 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18980 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18981 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18982 (WEAK_ALIAS): Simplify.
18983 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18984 when searching a unibyte buffer.
18985
189862008-06-12 Chong Yidong <cyd@stupidchicken.com>
18987
18988 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18989
189902008-06-12 Juanma Barranquero <lekktu@gmail.com>
18991
18992 * w32font.c: Include ctype.h.
18993
189942008-06-11 Jason Rumney <jasonr@gnu.org>
18995
18996 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18997 misreported as space.
18998 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18999 as aliases for registry iso10646-1.
19000
190012008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19002
19003 * buffer.c (clone_per_buffer_values): Skip `name'.
19004
190052008-06-11 Chong Yidong <cyd@stupidchicken.com>
19006
19007 * font.c (font_parse_fcname): Fix last change; accept decimal
19008 points in font size.
19009
190102008-06-10 Jason Rumney <jasonr@gnu.org>
19011
19012 * w32uniscribe.c (add_opentype_font_name_to_list):
19013 Skip non unicode fonts.
19014
190152008-06-10 Chong Yidong <cyd@stupidchicken.com>
19016
19017 * xfns.c (Fx_font_dialog): New function.
19018
19019 * gtkutil.c (xg_dialog_response_cb): Rename from
19020 xg_file_response_callback.
19021 (pop_down_dialog): Rename from pop_down_file_dialog.
19022 (xg_get_file_name): Callers changed.
19023 (xg_get_font_name): New function.
19024
19025 * gtkutil.h (xg_get_font_name): Insert prototype.
19026
190272008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19028
19029 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19030 x_underline_minimum_display_offset.
19031 (syms_of_xdisp): Declare it here rather than in xterm.c.
19032 * dispextern.h (underline_minimum_offset): Declare it.
19033 * w32term.c (x_draw_glyph_string): Use it.
19034 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19035 (syms_of_xterm): Don't declare it any more.
19036 (x_draw_glyph_string): Adjust to the new name.
19037
8719abec 190382008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
19039
19040 * xterm.c (x_underline_minimum_display_offset): New var.
19041 (x_draw_glyph_string): Use it.
19042 (syms_of_xterm): Declare it.
19043
190442008-06-10 Chong Yidong <cyd@stupidchicken.com>
19045
19046 * font.c (font_parse_fcname): Accept GTK-style font names too.
19047
190482008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19049
19050 * dired.c (file_name_completion): Don't return t if the match is exact
19051 but with different capitalization.
19052 * minibuf.c (Ftry_completion): Simplify.
19053
19054 * window.c (Vwindow_point_insertion_type): New var.
19055 (set_window_buffer): Use it.
19056 (syms_of_window): Init and export it to Lisp.
19057
190582008-06-10 Kenichi Handa <handa@m17n.org>
19059
19060 * font.h (font_intern_prop): Prototype adjusted.
19061
19062 * font.c (font_intern_prop): New arg force_symbol.
19063 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19064 Adjust for the change of font_intern_prop.
19065
19066 * ftfont.c (ftfont_pattern_entity):
19067 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19068 (w32_registry):
19069 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19070 the change of font_intern_prop.
19071
190722008-06-09 Juanma Barranquero <lekktu@gmail.com>
19073
19074 * w32menu.c (digest_single_submenu): Declare extern.
19075
190762008-06-09 Jason Rumney <jasonr@gnu.org>
19077
19078 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19079
19080 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19081 (parse_single_submenu): Remove.
19082 (digest_single_submenu): Remove.
19083 (syms_of_w32menu): Don't initialise variables that have moved
19084 to menu.c.
19085 (set_frame_menubar): Sync with version in xmenu.c.
19086 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19087
19088 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19089 Make static again.
19090
190912008-06-09 Jason Rumney <jasonr@gnu.org>
19092
19093 Changes to w32 files related to the move of common menu code
19094 to menu.c on 2008-06-08 by Chong Yidong.
19095
19096 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19097 defs to w32gui.h.
19098 (single_keymap_panes, push_menu_item, push_menu_pane):
19099 Make globally visible.
19100
19101 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19102 (local_free, malloc_widget_value, free_widget_value)
19103 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19104 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19105 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19106 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19107 (menu_items, menu_items_allocated, menu_items_used)
19108 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19109 (init_menu_items, finish_menu_items, discard_menu_items)
19110 (grow_menu_items, push_submenu_start, push_submenu_end)
19111 (push_left_right_boundary, push_menu_pane, push_menu_item)
19112 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19113 (free_menubar_widget_tree_value, parse_single_submenu)
19114 (update_submenu_strings): Remove functions.
19115 (xmalloc_widget_value): Remove and declare extern.
19116
19117 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19118 (OBJ1): Build it.
19119
19120 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19121 (local_heap, local_alloc, local_free, malloc_widget_value)
19122 (free_widget_value): Define here.
19123
191242008-06-09 Kenichi Handa <handa@m17n.org>
19125
19126 * font.h (Qascii_0): Extern it.
19127
19128 * font.c (Qascii_0): New variable.
19129 (syms_of_font): DEFSYM it.
19130 (font_open_by_name): If the registry "iso8859-1" fails, try also
19131 "ascii-0".
19132
19133 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19134
191352008-06-08 Kenichi Handa <handa@m17n.org>
19136
19137 * .gdbinit (xfont): New command.
19138
191392008-06-08 Andreas Schwab <schwab@suse.de>
19140
19141 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19142 * Makefile.in (menu.o): Update dependencies.
19143
19144 * Makefile.in (obj): Always add menu.o.
19145 * emacs.c (main): Always call syms_of_menu.
19146 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19147
191482008-06-08 Chong Yidong <cyd@stupidchicken.com>
19149
19150 * Makefile.in: Compile menu.c.
19151
19152 * lisp.h: Declare syms_of_menu.
19153
19154 * emacs.c (main): Call syms_of_menu.
19155
19156 * keyboard.h: Relocate platform-independent menu definitions from
19157 xmenu.c.
19158
19159 * menu.c: New file. Relocate platform-independent menu
19160 definitions from xmenu.c. Suggested by Adrian Robert.
19161
19162 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19163 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19164 (menu_items_used, menu_items_n_panes)
19165 (menu_items_submenu_depth): Move to keyboard.h.
19166 (init_menu_items, finish_menu_items, unuse_menu_items)
19167 (discard_menu_items, restore_menu_items, save_menu_items)
19168 (grow_menu_items, push_submenu_start, push_submenu_end)
19169 (push_left_right_boundary, push_menu_pane, push_menu_item)
19170 (keymap_panes, single_keymap_panes, single_menu_item)
19171 (list_of_panes, list_of_items, find_and_call_menu_selection)
19172 (xmalloc_widget_value, free_menubar_widget_value_tree)
19173 (parse_single_submenu, digest_single_submenu)
19174 (update_submenu_strings): Move to menu.c.
19175
191762008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19177
19178 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19179
191802008-06-06 Miles Bader <miles@gnu.org>
19181
19182 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19183 face, not frame default.
19184
191852008-06-05 Martin Rudalics <rudalics@gmx.at>
19186
19187 * window.c (pop_up_windows, pop_up_frames)
19188 (display_buffer_reuse_frames, Vpop_up_frame_function)
19189 (Vdisplay_buffer_function, Veven_window_heights)
19190 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19191 (Vspecial_display_function, Vsame_window_buffer_names)
19192 (Vsame_window_regexps, split_height_threshold)
19193 (Vsplit_window_preferred_function): Move those vars to window.el.
19194 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19195 (Fdisplay_buffer): Move those functions to window.el.
19196 (syms_of_window): Remove corresponding declarations.
19197 (display_buffer): New function.
19198 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19199 * dispnew.c (Flast_nonminibuf_frame): New function.
19200 * buffer.c (Fpop_to_buffer): Move to window.el.
19201
192022008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19203
19204 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19205
192062008-06-05 Kenichi Handa <handa@m17n.org>
19207
19208 * coding.c (detect_coding): Fix previous change.
19209 (detect_coding_system): Likewise.
19210
192112008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19212
19213 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19214
19215 * keymap.c (Vminibuffer_local_filename_must_match_map):
19216 Rename from Vminibuffer_local_must_match_filename_map.
19217 (syms_of_keymap):
19218 * minibuf.c (Fcompleting_read): Adjust accordingly.
19219 * commands.h: Rename declaration as well.
19220
192212008-06-05 Kenichi Handa <handa@m17n.org>
19222
19223 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19224 family name.
19225 (Ffont_put): Likewise.
19226
19227 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19228 current font-spec.
19229
19230 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19231 is unspecified.
19232
19233 * xfaces.c (realize_x_face): If the font-related face attributes
19234 are the same as those of default face, realize a new fontset from
19235 default->fontset.
19236 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19237
192382008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19239
19240 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19241 (move_it_in_display_line): New wrapper.
19242
19243 * window.c (window_scroll_pixel_based_preserve_x)
19244 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19245 (window_scroll_pixel_based, window_scroll_line_based):
19246 Use them to preserve column positions.
19247 (syms_of_window): Initialize them.
19248
19249 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19250 (HPOS . VPOS) pair.
19251
19252 * dispextern.h (move_it_in_display_line): Declare.
19253
192542008-06-05 Juanma Barranquero <lekktu@gmail.com>
19255
19256 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19257 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19258 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19259
192602008-06-04 Juanma Barranquero <lekktu@gmail.com>
19261
19262 * window.c (Fset_window_parameter): Doc fix.
19263 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19264
192652008-06-04 Joakim Verona <joakim@verona.se>
19266
19267 * window.h (struct window): Add new member window_parameters.
19268
19269 * window.c (Fwindow_parameters, Fwindow_parameter)
19270 (Fset_window_parameter): New defuns.
19271 (syms_of_window): Defsubr the new defuns.
19272 (make_window): Initialize window_parameters to nil.
19273
192742008-06-04 John Paul Wallington <jpw@pobox.com>
19275
19276 * eval.c (Fdefmacro): Doc fix.
19277
192782008-06-04 Kenichi Handa <handa@m17n.org>
19279
19280 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19281 Be sure to call setup_coding_system when we find a proper coding system.
19282 (detect_coding_system): Fix handling of coding->head_ascii.
19283
192842008-06-03 Andreas Schwab <schwab@suse.de>
19285
19286 * font.c (font_prop_validate_spacing): Fix last change.
19287
192882008-06-03 Kenichi Handa <handa@m17n.org>
19289
19290 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19291 (font_parse_fcname): Fix handling of unknown key.
19292
19293 * xfont.c (xfont_list): Try an alias.
19294
19295 * charset.c (char_charset): Return NULL if the arg charset_list is
19296 specified and C doesn't belong to any of them.
19297
192982008-06-02 Chip Coldwell <coldwell@redhat.com>
19299
19300 * font.c (font_pixel_size): Don't take cdr of an integer.
19301
193022008-06-02 Jim Meyering <meyering@redhat.com>
19303
19304 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19305 * alloc.c (xfree): Return right away for a NULL arg.
19306 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19307 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19308 * mac.c (create_apple_event_from_event_ref): Likewise.
19309 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19310 Likewise.
19311 * doprnt.c (doprnt1): Likewise.
19312 * frame.c (frame): Likewise.
19313 * keyboard.c (wipe_kboard): Likewise.
19314 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19315 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19316 * term.c (tty_default_color_capabilities, maybe_fatal)
19317 (delete_tty): Likewise.
19318 * w16select.c (string): Likewise.
19319 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19320 * w32bdf.c (w32_free_bdf_font): Likewise.
19321 * w32fns.c (w32_unload_font): Likewise.
19322 * w32font.c (w32font_close): Likewise.
19323 * window.c (size_window): Likewise.
19324 * xselect.c (receive_incremental_selection): Likewise.
19325 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19326 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19327 * w32.c (stat): Likewise.
19328
19329 Remove useless if-before-free tests.
19330 * editfns.c (Fset_time_zone_rule): Likewise.
19331 * lread.c (nosuffix): Likewise.
19332 * ralloc.c (get_bloc): Likewise.
19333 * regex.c (reg_free): Likewise.
19334 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19335 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19336 * xsmfns.c (smc_save_yourself_CB): Likewise.
19337
193382008-06-02 Kenichi Handa <handa@m17n.org>
19339
19340 * font.c (font_find_for_lface): Handle float font size.
19341 (font_open_for_lface): Likewise.
19342
19343 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19344 comparing the properties.
19345
193462008-06-01 Jason Rumney <jasonr@gnu.org>
19347
19348 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19349 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19350 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19351 Don't add empty script list.
19352 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19353
193542008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19355
19356 * Makefile.in (dot, dotdot): Remove, update users.
19357 ".." has been used elsewhere in the file for a long time.
19358 (LIBXT_STATIC): Remove conditional based on unused variable.
19359
193602008-06-01 Miles Bader <miles@gnu.org>
19361
19362 * xfaces.c (Vface_remapping_alist): New variable.
19363 (syms_of_xfaces): Initialize it.
19364 (enum named_merge_point_kind): New type.
19365 (struct named_merge_point): Add `named_merge_point_kind' field.
19366 (push_named_merge_point): Make cycle detection respect different
19367 named-merge-point kinds.
19368 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19369 Remove face-name alias resolution.
19370 (lface_from_face_name): New definition using
19371 `lface_from_face_name_no_resolve'.
19372 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19373 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19374 (get_lface_attributes): New definition that layers face-remapping on
19375 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
19376 (lookup_basic_face): New function.
19377 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
19378 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
19379 `get_lface_attributes'.
19380 (face_at_buffer_position): Use `lookup_basic_face' to lookup
19381 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
19382 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
19383
19384 * xdisp.c (init_iterator): Pass base_face_id through
19385 `lookup_basic_face' when we actually use it as a face-id.
19386 (handle_single_display_prop): Use `lookup_basic_face' to lookup
19387 DEFAULT_FACE_ID.
19388
19389 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
19390 lookup the initial face-id.
19391
19392 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
19393
193942008-06-01 Juanma Barranquero <lekktu@gmail.com>
19395
19396 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
19397 (Fremove_text_properties): Fix typos in docstrings.
19398
193992008-05-31 Kenichi Handa <handa@m17n.org>
19400
19401 * font.c (font_list_entities): Fix the car part of data to be
19402 stored in the cache.
19403
19404 * ftfont.c (ftfont_font_format): Don't use strcasestr.
19405
194062008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19407
19408 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
19409 Add a `test' argument so another predicate than `equal' can be used.
19410 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
19411 (map_char_table): Remove unused vars `c' and `i'.
19412 * lisp.h (Foptimize_char_table): Adjust declaration.
19413 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
19414
194152008-05-30 Kenichi Handa <handa@m17n.org>
19416
19417 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
19418 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
19419 defined.
19420
194212008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19422
19423 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19424 (Fmake_variable_frame_local): Disallow mixing buffer-local and
19425 frame-local settings for the same variable.
19426
194272008-05-30 Kenichi Handa <handa@m17n.org>
19428
19429 * fontset.c (Ffont_info): Move to font.c.
19430 (syms_of_fontset): Delete defsubr of Sfont_info.
19431
19432 * font.c (font_style_to_value, font_score): Delete casting of the
19433 args to xstcasecmp.
19434 (register_font_driver): Increment num_font_drivers only when
19435 registering the driver globally.
19436 (Ffont_info): Move from fontset.c. Handle a font object too.
19437 (syms_of_font): Defsubr Sfont_info.
19438
194392008-05-29 Kenichi Handa <handa@m17n.org>
19440
19441 * coding.h (enum define_coding_utf8_arg_index): New enum.
19442 (enum coding_attr_index): Change coding_attr_utf_16_bom to
19443 coding_attr_utf_bom.
19444 (enum utf_bom_type): Rename from utf_16_bom_type.
19445 (struct utf_16_spec): Adjust for the above change.
19446 (struct coding_system): Add utf_8_bom in `spec' union.
19447
19448 * coding.c (CODING_UTF_8_BOM): New macro.
19449 (enum coding_category): Delete coding_category_utf_8, add
19450 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
19451 coding_category_utf_8_sig.
19452 (CATEGORY_MASK_UTF_8): Delete it.
19453 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
19454 (CATEGORY_MASK_UTF_8_SIG): New macros.
19455 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
19456 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
19457 CATEGORY_MASK_UTF_8_SIG.
19458 (CATEGORY_MASK_UTF_8): New macro.
19459 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
19460 (detect_coding_utf_8): Check BOM.
19461 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
19462 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
19463 (encode_coding_utf_16): Likewise.
19464 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
19465 (detect_coding, detect_coding_system): Handle utf-8-auto.
19466 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
19467 (syms_of_coding): Fix setting up of Vcoding_category_table.
19468
194692008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
19470
19471 * process.c (Faccept_process_output): If `millisec' is non-nil,
19472 `seconds' default to 0.
19473 (wait_reading_process_output): Also return non-nil if we read output
19474 from a non-running process.
19475
194762008-05-29 Jason Rumney <jasonr@gnu.org>
19477
19478 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
19479 `raster' specified.
19480 (add_font_entity_to_list): Allow non-opentype truetype fonts back
19481 in the uniscribe backend, but disallow any font that has no
19482 unicode subrange support.
19483
194842008-05-29 Juanma Barranquero <lekktu@gmail.com>
19485
19486 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
19487 Fix typos in docstrings.
19488
194892008-05-29 Kenichi Handa <handa@m17n.org>
19490
19491 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
19492 (Fx_family_fonts): Set frame correctly.
19493
194942008-05-28 Jason Rumney <jasonr@gnu.org>
19495
19496 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
19497
194982008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
19499
19500 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
19501 calling build_annotations.
19502
195032008-05-28 Juanma Barranquero <lekktu@gmail.com>
19504
19505 * coding.c (Fdecode_coding_region, Fencode_coding_region)
19506 (Fencode_coding_string):
19507 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
19508 <latin-extra-code-table>: Fix typos in docstrings.
19509 (syms_of_coding) <coding-system-alist>: Doc fix.
19510 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
19511
195122008-05-28 Kenichi Handa <handa@m17n.org>
19513
19514 * fontset.c (Ffont_info): Don't call font_close_object.
19515
19516 * font.c (font_parse_family_registry): Use Ffont_put to validate
19517 foundry and family.
19518 (font_delete_unmatched): Don't check spacing.
19519 (font_list_entities): Add spacing to the spec to list fonts.
19520
19521 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
19522 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
19523
19524 * coding.c (encode_coding_raw_text): Fix previous change.
19525 (encode_coding_object): When the dst_object is a buffer and is
19526 different from src_object, move gap to PT.
19527
195282008-05-27 Chong Yidong <cyd@stupidchicken.com>
19529
19530 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
19531
195322008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19533
19534 * coding.c (encode_coding_raw_text): Set coding->produced_char for
19535 all branches. Compute it differently.
19536
19537 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
19538
195392008-05-27 Juanma Barranquero <lekktu@gmail.com>
19540
19541 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
19542 into "else if () ... else ...".
19543
195442008-05-27 Jason Rumney <jasonr@gnu.org>
19545
19546 * w32font.c (w32font_open_internal): Determine if glyph indices
19547 are likely to work here.
19548
195492008-05-27 Chong Yidong <cyd@stupidchicken.com>
19550
19551 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19552 draw overlap glyphs with appropriate highlighting.
19553
195542008-05-27 Kenichi Handa <handa@m17n.org>
19555
19556 * xfont.c (xfont_open): Fix calculation of font->average_width.
19557
195582008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19559
19560 * casefiddle.c (casify_object): Try to guess better whether the
19561 argument is a byte or a char.
19562
195632008-05-26 Andreas Schwab <schwab@suse.de>
19564
19565 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19566 Always send multiples of format size.
19567
19568 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19569
195702008-05-26 Jason Rumney <jasonr@gnu.org>
19571
19572 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19573 (compute_metrics): Don't set failure if we just cleared the cache.
19574 (w32_weight_table): Remove unused variable.
19575 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19576 backwards compatibility.
19577
195782008-05-25 Kenichi Handa <handa@m17n.org>
19579
19580 * w32term.c (x_draw_glyph_string):
19581 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19582
19583 * xfaces.c: Delete unused function prototypes.
19584 (xstrlwr, font_frame): Delete them.
19585 (clear_face_cache): Delete unused variable.
19586
19587 * xftfont.c (xftfont_open): Delete unused variable.
19588 If underline_thickness is not 1, adjust underline_position.
19589
19590 * ftxfont.c (ftxfont_open): Delete unused variable.
19591
19592 * fontset.c (face_for_char): Optimize for the case of no charset
19593 property.
19594
19595 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19596 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19597 (otf_open, font_otf_capability, generate_otf_features)
19598 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19599 Comment out by surrounding "#if 0" and "#endif" for the moment.
19600 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19601 (syms_of_font): Codes for accessing above commented out.
19602
196032008-05-24 Eli Zaretskii <eliz@gnu.org>
19604
19605 * w32proc.c: Include dispextern.h.
19606
19607 * w32.c: Include dispextern.h.
19608
196092008-05-23 Juanma Barranquero <lekktu@gmail.com>
19610
19611 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19612 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19613 Fix typos in docstrings.
19614
196152008-05-23 Jason Rumney <jasonr@gnu.org>
19616
19617 * xsmfns.c: Remove includes that are already included by config.h.
19618
196192008-05-23 Kenichi Handa <handa@m17n.org>
19620
19621 * charset.c (Qemacs, charset_emacs): New variables.
19622 (char_charset): Fix for non-Unicode characters.
19623 (syms_of_charset): Define charset_emacs.
19624
19625 * w32term.c (x_draw_glyph_string): Be sure to update
19626 s->underline_thickness and s->underline_position. Be sure to draw
19627 underline within the current line area.
19628
19629 * xterm.c (x_draw_glyph_string): Be sure to update
19630 s->underline_thickness and s->underline_position. Be sure to draw
19631 underline within the current line area.
19632
19633 * fontset.c: Delete unused variables and add casting for char *
19634 throughout the file.
19635 (fontset_font): Try the fallback fonts of the current fontset
19636 before consulting the default fontset.
19637
19638 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19639
19640 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19641
196422008-05-22 Jason Rumney <jasonr@gnu.org>
19643
19644 * font.c: Don't include strings.h.
19645
19646 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19647
19648 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19649 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19650 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19651 to call xstrcasecmp.
19652
19653 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19654
19655 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19656
19657 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19658
19659 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19660
196612008-05-22 Kenichi Handa <handa@m17n.org>
19662
19663 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19664
19665 * font.c (font_prop_validate_style): Adjust for the format
19666 change of font_style_table.
19667
19668 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19669 two args.
19670
19671 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19672 two args.
19673
196742008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19675
19676 * minibuf.c (keys_of_minibuf): Delete.
19677 * lisp.h (keys_of_minibuf): Delete.
19678 * emacs.c (main): Don't call keys_of_minibuf.
19679
196802008-05-22 Kenichi Handa <handa@m17n.org>
19681
19682 * ftfont.c (ftfont_resolve_generic_family): Rename from
19683 ftfont_list_generic_family. Return a single family for each
19684 generic family.
19685 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19686 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19687 Call font_add_log.
19688 (ftfont_match): Call font_add_log.
19689
19690 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19691 (FONT_DEBUG): Define it.
19692 (font_add_log): Extern it.
19693 (font_assert): Rename from xassert.
19694
19695 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19696 (xfont_list_family): Call font_add_log.
19697 (xfont_match): Likewise.
19698 (memq_no_quit): Delete.
19699
19700 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19701 call of Ffont_xlfd_name.
19702
19703 * xfaces.c (struct table_entry, slant_table, weight_table)
19704 (swidth_table): Move to font.c.
19705
19706 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19707 xassert are changed to font_assert. Delete many unused variables.
19708 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19709 New variables.
19710 (struct table_entry): Move from xfaces.c and modified.
19711 (weight_table, slant_table, width_table): Move from xfaces.c and
19712 contents adjusted for the change of struct table_entry.
19713 (font_style_to_value, font_style_symbolic): Adjust for the
19714 format change of font_style_table.
19715 (font_parse_family_registry): Don't overwrite existing foundry and
19716 family of font_spec.
19717 (font_score): Fix calculation of diff for sizes.
19718 (font_sort_entites): Call font_add_log.
19719 (font_delete_unmatched): Return a newly created list.
19720 (font_list_entities): Fix previous change. Call font_add_log.
19721 (font_matching_entity, font_open_entity, font_close_entity):
19722 Call font_add_log.
19723 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19724 (Finternal_set_font_style_table): Delete.
19725 (BUILD_STYLE_TABLE): New macro.
19726 (build_style_table): New function.
19727 (Vfont_log, font_log_env_checked): New variables.
19728 (font_add_log): New function.
19729 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19730 Declare Lisp variables "font-weight-table", "font-slant-table",
19731 "font-width-table", and "font-log". Initialize font_style_table.
19732
197332008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19734
19735 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19736
197372008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19738 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19739
19740 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19741 (Vframe_alpha_lower_limit): New variable.
19742 (x_set_alpha): New function.
19743
19744 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19745
19746 * xfns.c (x-create-frame, Qalpha):
19747 Initialize the frame parameter `alpha'.
19748 * xterm.c (OPAQUE, OPACITY): New.
19749 (x_set_frame_alpha): New function.
19750 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19751
19752 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19753 * w32fns.c (w32_frame_parm_handlers): Likewise.
19754
197552008-05-20 Jason Rumney <jasonr@gnu.org>
19756
19757 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19758 truetype fonts to opentype list.
19759
197602008-05-20 Juanma Barranquero <lekktu@gmail.com>
19761
19762 * fontset.c (Ffontset_info): Doc fix.
19763 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19764 <ignore-relative-composition>: Fix typos in docstrings.
19765
19766 * font.c (syms-of-font) <font-encoding-alist>:
19767 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19768 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19769 (Ffont_otf_alternates): Doc fixes.
19770
197712008-05-20 Kenichi Handa <handa@m17n.org>
19772
19773 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19774 font.h through out the file.
19775 (FONT_DRIVERS): Rename from FONTOBJ.
19776 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19777 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19778
19779 * emacs.c (main): Call syms_of_font unconditionally.
19780
19781 * font.h (find_font_encoding): Extern it.
19782
19783 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19784 fontset.c.
194d44e7 19785 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19786 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19787 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19788 only when HAVE_WINDOW_SYSTEM is defined.
19789 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19790 when HAVE_WINDOW_SYSTEM is defined.
19791
19792 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19793 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19794
19795 * xfaces.c: Include font.h unconditionally.
19796 (merge_face_ref, merge_face_vectors)
19797 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19798
197992008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19800
19801 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19802 indirect_variable.
19803 * eval.c (lisp_indirect_variable): New fun.
19804 (Fuser_variable_p): Use it.
19805
198062008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19807
19808 * lisp.h (indirect_variable):
19809 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19810 Use Lisp_Symbol pointers rather than Lisp_Object.
19811 Adjust callers.
19812 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19813 To this end, change calling-convention.
19814
19815 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19816 if some non-hidden buffers are selected by string&pred.
19817
198182008-05-19 Chong Yidong <cyd@stupidchicken.com>
19819
19820 * process.c (wait_reading_process_output): Always check status
19821 when in batch mode.
19822
198232008-05-19 Kenichi Handa <handa@m17n.org>
19824
19825 * font.c (font_list_entities): Fix handling of cache.
19826 (font_matching_entity): Likewise.
19827
19828 * ftfont.c (cs_iso8859_1): Delete.
19829 (ft_face_cache): New variable.
19830 (struct ftfont_info): New member fc_charset_idx.
19831 (ftfont_build_basic_charsets): Delete.
19832 (fc_charset_table): New variable.
19833 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19834 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19835 Callers changed.
19836 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19837 (ftfont_spec_pattern): New argument fc_charset_idx.
19838 Check registry more rigidly. Change callers.
19839 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19840 change of :font-entity property of the font.
19841
19842 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19843 property of the font.
19844
198452008-05-18 Juanma Barranquero <lekktu@gmail.com>
19846
19847 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19848 (Funencodable_char_position, Fcheck_coding_systems_region)
19849 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19850 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19851 (Ffind_operation_coding_system, Fset_coding_system_priority)
19852 (Fcoding_system_eol_type): Doc fixes.
19853
198542008-05-17 Glenn Morris <rgm@gnu.org>
19855
19856 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19857
198582008-05-16 Eli Zaretskii <eliz@gnu.org>
19859
19860 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19861 and st_gid.
19862
19863 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19864 HAVE_WINDOW_SYSTEM is not defined.
19865
19866 * xfaces.c (merge_face_ref, merge_face_vectors)
19867 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19868 HAVE_WINDOW_SYSTEM is defined.
19869 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19870
198712008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19872
19873 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19874
198752008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19876
19877 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19878
198792008-05-15 Kenichi Handa <handa@m17n.org>
19880
19881 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19882 preference.
19883
198842008-05-15 Glenn Morris <rgm@gnu.org>
19885
19886 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19887
198882008-05-15 Chong Yidong <cyd@stupidchicken.com>
19889
19890 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19891 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19892
19893 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19894
198952008-05-15 Kenichi Handa <handa@m17n.org>
19896
19897 * ftfont.c (ftfont_list): Downcase family name to check generic
19898 families.
19899
19900 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19901 font-spec for QCfont value.
19902
19903 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19904 buffer. Check the return value of it.
19905
199062008-05-14 Jason Rumney <jasonr@gnu.org>
19907
19908 * w32term.c (w32_get_glyph_overhangs): Remove.
19909 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19910
199112008-05-14 Kenichi Handa <handa@m17n.org>
19912
19913 * font.c (font_prop_validate): Make nil a valid value.
19914 (font_clear_cache): Check if the cached vector of entities is nil
19915 or not.
19916
199172008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19918
19919 * emacs.c (main_thread): Conditionalize on
19920 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19921 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19922
19923 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19924 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19925 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19926
199272008-05-14 Kenichi Handa <handa@m17n.org>
19928
19929 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19930 has no corresponding coding system.
19931
199322008-05-14 Jason Rumney <jasonr@gnu.org>
19933
19934 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19935
19936 * w32font.h (w32font_open_internal): Update declaration.
19937
19938 * w32font.c (w32font_open_internal): Change last argument from
19939 w32font_info struct to font object. Fill in font object from
19940 font_entity. Get Outline metrics if possible. Use them to
19941 calculate underline position and thickness. Use xlfd name as name
19942 property. Don't set codepage.
19943 (w32font_open): Pass font_object to w32font_open_internal. Don't
19944 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19945 (w32font_draw): Use s->font.
19946 (clear_cached_metrics): Don't clear non-existent blocks.
19947
19948 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19949 font was not found.
19950 (x_draw_glyph_string): Use underline position and thickness from font.
19951
19952 * w32uniscribe.c (uniscribe_open): Pass font_object to
19953 w32font_open_internal.
19954
199552008-05-14 Kenichi Handa <handa@m17n.org>
19956
19957 These changes are to delete all legacy font-handling codes, and
19958 make Emacs use only font-backends.
19959
19960 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19961 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19962
19963 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19964
19965 * charset.h (Vcharset_non_preferred_head)
19966 (Vcurrent_iso639_language): Extern them.
19967
19968 * charset.c (Vcharset_non_preferred_head): New variable.
19969 (Vcurrent_iso639_language): New variable.
19970 (syms_of_charset): Declare it as a Lisp variable.
19971 (char_charset): Don't check non preferred charsets. As a last
19972 resort, return charset_unicode.
19973 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19974
19975 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19976 conditionals. Don't check enable_font_backend. Delete all codes
19977 used only when USE_FONT_BACKEND is not defined.
19978
19979 * dispextern.h (struct glyph_string): Change type of `font' to
19980 `struct font *'.
19981 (struct glyph_string): New member underline_position and
19982 underline_thickness.
19983 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19984 (struct face): Change type of `font' to `struct font *'.
19985 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19986 (per_char_metric, encode_char): Delete externs.
19987 (calc_pixel_width_or_height): Adjust the prototype.
19988
19989 * emacs.c (enable_font_backend): Delete extern.
19990 (main): Don't set enable_font_backend. Don't check the command
19991 line argument "-disable-font-backend".
19992
19993 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19994 (enum font_property_index): New members FONT_DPI_INDEX,
19995 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19996 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19997 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19998 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19999 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20000 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20001 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20002 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20003 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20004 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20005 (struct font): Many members from old "struct font_info" moved to
20006 here. Members font and entity deleted.
20007 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20008 the new font-related objects.
20009 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20010 (CHECK_FONT_GET_OBJECT): Likewise.
20011 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20012 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20013 (struct font_driver): New members case_sensitive anc check.
20014 Type of the member list and open changed.
aac0c6e3
MR
20015 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20016 (font_symbolic_width, font_find_object, font_get_spec)
20017 (font_set_lface_from_name): Delete extern.
20018 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20019
20020 * font.c: Include <strings.h>.
20021 (enable_font_backend): Delete it.
20022 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20023 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20024 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20025 (null_string): Delete it.
20026 (null_vector): Make it static.
20027 (font_family_alist): Delete it.
20028 (Qnormal): Extern it.
20029 (QCextra, QClanguage): Delete it.
20030 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20031 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20032 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 20033 the string. Callers changed.
bba3e508 20034 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
20035 objects.
20036 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20037 (font_style_to_value, font_style_symbolic): New function.
20038 (build_font_family_alist): Delete it.
20039 (font_registry_charsets): Use Fassoc_string instead of
20040 assq_no_quit.
20041 (font_prop_validate_symbol): Don't return null_string.
bba3e508 20042 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
20043 style-related values in a font vector.
20044 (font_property_table): Delete entries for QClanguage and
20045 QCantialias, add entries for QCavgwidth.
20046 (get_font_prop_index): Delete the 2nd argument FROM.
20047 (font_prop_validate): Arguments changed.
bba3e508 20048 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
20049 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20050 (font_parse_fcname, font_unparse_fcname)
20051 (font_prepare_composition): Likewise.
ef1b0ba7 20052 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 20053 (otf_open): Delete the 1st arg entity.
bba3e508 20054 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
20055 (font_score): New arg alternate_families. Adjusted for the change
20056 of font-related objects.
20057 (font_sort_entites): New arg best_only.
20058 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20059 Delete them.
20060 (font_match_p): Check alternate families.
20061 (font_find_object): Delete it.
20062 (font_check_object): New function.
bba3e508 20063 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
20064 (font_delete_unmatched): New arg.
20065 (font_list_entities): Call font_driver->list with a spec that
20066 doesn't specify style-related properties.
20067 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 20068 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
20069 (font_close_object, font_has_char, font_encode_char)
20070 (font_get_name, font_get_spec): Likewise.
20071 (font_spec_from_name, font_clear_prop, font_update_lface):
20072 New functions.
20073 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20074 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 20075 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
20076 (font_range): New function.
20077 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 20078 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 20079 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 20080 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
20081 (Finternal_set_font_style_table): Arguments changed.
20082 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 20083 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
20084 change of font-related objects.
20085 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20086
20087 * fontset.h (struct font_info): Delete it. Most members go to
20088 struct font.
ef1b0ba7 20089 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
20090 (enum FONT_SPEC_INDEX): Delete it.
20091 (font_info, list_fonts_func, load_font_func, query_font_func)
20092 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
20093 (get_font_repertory_func, new_fontset_from_font_name):
20094 Delete externs.
aac0c6e3
MR
20095 (fontset_from_font_name): Extern it.
20096 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20097 (FONT_INFO_FROM_FACE): Deleted.
20098 (face_for_font): Adjust prototype.
20099
20100 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20101 conditionals. Don't check enable_font_backend. Delete all codes
20102 used only when USE_FONT_BACKEND is not defined.
20103 (get_font_info_func, list_font_func, load_font_func)
20104 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20105 (get_font_repertory_func): Delete them.
20106 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20107 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20108 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20109 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20110 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20111 (fontset_compare_rfontdef): New function.
20112 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20113 rfont-defs by qsort. Adjusted for the change of font-group vector.
20114 (load_font_get_repertory): Deleted.
20115 (fontset_find_font): Use new macros to ref/set elements of
20116 font-def and rfont-def.
20117 (fontset_font): Fix the timing of remembering that no font for C.
20118 (free_face_fontset): Do nothing if the face has no fontset.
20119 (face_suitable_for_char_p): Use new macros to ref/set elements of
20120 rfont-def.
20121 (face_for_char): Likewise. Call face_for_char with font_object.
20122 (fs_load_font): Delete. Delete #pragma surrounding it.
20123 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 20124 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
20125 font-spec.
20126 (Fset_fontset_font): Likewise. Use new macros to set elements of
20127 font-def.
20128 (Fnew_fontset): Use font_unparse_xlfd to generate
20129 FONTSET_ASCII (fontset).
20130 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20131 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20132 a fontset is already created for the font. FIx updating of
20133 Vfontset_alias_alist.
20134 (fontset_ascii_font): Deleted.
bba3e508 20135 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20136 (Finternal_char_font): Likewise.
20137 (Ffontset_info): Likewise.
20138 (syms_of_fontset): Don't check load_font_func.
20139
20140 * fns.c (internal_equal): Handle PREV_FONT.
20141
20142 * frame.h: Delete USE_FONT_BACKEND conditional.
20143
20144 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20145 conditionals. Don't check enable_font_backend. Delete all codes
20146 used only when USE_FONT_BACKEND is not defined.
20147 (x_set_font): Call x_new_font, not x_new_fontset2.
20148 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20149 already set for the frame.
20150
bba3e508
SM
20151 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20152 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20153 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20154 font property. If a font is scalable, set avgwidth property to 0.
20155 Set font-entity property by font_put_extra.
20156 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20157 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20158 (ftfont_spec_pattern): New function.
20159 (ftfont_list): Return a list, not vector.
20160 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20161 (ftfont_list_family): Don't downcase names.
20162 (ftfont_free_entity): Deleted.
20163 (ftfont_open): Return a font-object. Adjusted for the change of
20164 struct font. Get underline_thickness and underline_position from
20165 font property. Don't update dpyinfo->smallest_font_height and
20166 dpyinfo->smallest_char_width.
20167 (ftfont_close): Don't free `struct font'.
bba3e508 20168 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20169 (ftfont_encode_char, ftfont_text_extents): Likewise.
20170
20171 * ftxfont.c (ftxfont_list): Return a list, not vector.
20172 (ftxfont_open): Return a font-object. Adjusted for the change of
20173 struct font. Get underline_thickness and underline_position from
20174 font property. Don't update dpyinfo->smallest_font_height and
20175 dpyinfo->smallest_char_width.
20176 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20177 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20178
bba3e508
SM
20179 * image.c (image_ascent): Don't include "charset.h".
20180 Include "character.h" and "font.h".
aac0c6e3
MR
20181
20182 * lisp.h (enum pvec_type): New member PREV_FONT.
20183 (Fassoc_string): EXFUN it.
20184
20185 * print.c: Include font.h.
20186 (print_object): Handle font-related objects.
20187
20188 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20189 conditionals. Don't check enable_font_backend. Delete all codes
20190 used only when USE_FONT_BACKEND is not defined.
20191 (handle_auto_composed_prop): Do nothing if it->f is not on a
20192 window system. Check how many following characters can be
20193 displayed by the same font.
20194 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20195 'struct font *'.
20196 (get_char_face_and_encoding): Assign the whole encoding task to
20197 the `encode-char' method of a font driver.
bba3e508 20198 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20199 face' and `struct glyph_string'.
20200 (fill_glyph_string): Likewise.
20201 (get_per_char_metric): Arguments changed.
bba3e508 20202 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20203 and `struct glyph_string'.
20204 (produce_stretch_glyph, calc_line_height_property)
20205 (x_produce_glyphs): Likewise.
20206
20207 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20208 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20209 used only when USE_FONT_BACKEND is not defined.
20210 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20211 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20212 (Qp): Extern them.
20213 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20214 Deleted.
20215 (struct font_name): Deleted.
20216 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20217 (compare_fonts_by_sort_order): New function.
20218 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20219 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20220 Deleted.
20221 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20222 compare_fonts_by_sort_order.
20223 (Fx_font_family_list): Call Ffont_family_list.
20224 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20225 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20226 (face_symbolic_slant, face_symbolic_swidth)
20227 (split_font_name_into_vector, build_font_name_from_vector)
20228 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20229 (font_rescale_ratio, split_font_name, build_font_name)
20230 (free_font_names, sort_fonts, x_face_list_fonts)
20231 (face_font_available_p, sorted_font_list, cmp_font_names)
20232 (font_list_1, concat_font_list, font_list, remove_duplicates):
20233 Deleted.
20234 (Fx_list_fonts): Use Ffont_list.
20235 (LFACE_AVGWIDTH): Deleted.
20236 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20237 by FONTP.
20238 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20239 (set_lface_from_font_name): Delete it.
ef1b0ba7 20240 (set_lface_from_font): Rename from
aac0c6e3
MR
20241 set_lface_from_font_and_fontset. Caller changed. Don't set
20242 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20243 for face.
20244 (merge_face_vectors): Copy font-spec if necessary.
20245 Clear properties of the font-spec if necessary.
20246 (merge_face_ref): Clear properties of the font-spec if necessary.
20247 (Finternal_set_lisp_face_attribute): Likewise.
20248 (set_font_frame_param): Use font_load_for_lface to load a
20249 font-object, and call Fmodify_frame_parameters with it.
20250 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20251 font name by Ffont_xlfd_name.
20252 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20253 QCslant, and QCwidth.
20254 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20255 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20256 Compare fonts by EQ.
20257 (lookup_non_ascii_face): Deleted.
20258 (face_for_font): The 2nd argument changed.
20259 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20260 Check atomic font properties by case insensitive.
20261 (realize_non_ascii_face): Set face->overstrike correctly.
20262 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20263 (dump_realized_face): Get font name from
20264 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20265
20266 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20267 conditionals. Don't check enable_font_backend. Delete all codes
20268 used only when USE_FONT_BACKEND is not defined.
20269 (xic_create_xfontset): Original code deleted and renamed from
20270 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20271 (x_make_gc): Don't set GCFont in GCs.
20272 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20273 opened by "fixed".
20274 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20275 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20276 get_font_repertory_func.
20277
20278 * xfont.c: Include <stdlib.h> and "ccl.h".
20279 (struct xfont_info): New structure.
20280 (xfont_query_font): Deleted.
ef1b0ba7 20281 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 20282 moved from xterm.c.
bba3e508 20283 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 20284 (compare_font_names): New function.
ef1b0ba7
SM
20285 (xfont_list_pattern): Sort font names case insensitively.
20286 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
20287 (xfont_list): Return a list, not vector.
20288 (xfont_match): If the font doesn't have QCname property, generate
20289 a name from the other font properties.
20290 (xfont_open): Return a font-object. Adjusted for the change of
20291 struct font. Get underline_thickness and underline_position from
20292 font property. Don't update dpyinfo->smallest_font_height and
20293 dpyinfo->smallest_char_width.
20294 (xfont_close): Don't free struct font.
bba3e508 20295 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 20296 (xfont_done_face): Deleted.
bba3e508 20297 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
20298 (xfont_encode_char, xfont_draw): Likewise.
20299 (xfont_check): New function.
20300
bba3e508 20301 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 20302 callback function.
bba3e508
SM
20303 (xftfont_match): Adjust for the format change of font-entity.
20304 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
20305 font-object. Adjusted for the change of struct font. Return a
20306 font-object. Don't update dpyinfo->smallest_font_height and
20307 dpyinfo->smallest_char_width.
20308 (xftfont_close): Block input while calling XftFontClose.
20309 (xftfont_prepare_face): Don't block input while calling
20310 xftfont_get_colors. Adjusted for the change of struct font.
20311 (xftfont_shape): Return value of error case fixed.
20312
20313 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20314
20315 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20316 conditionals.
20317 (FONT_WIDTH): Return (f)->max_width.
20318 (struct x_display_info): Delete member `font'.
20319 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20320 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20321 (struct x_output): Change type of `font' to `struct font *'.
20322
20323 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20324 conditionals. Don't check enable_font_backend. Delete all codes
20325 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20326 (x_per_char_metric, x_encode_char): Deleted.
20327 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 20328 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
20329 `struct face'.
20330 (x_draw_glyph_string_foreground)
20331 (x_draw_composite_glyph_string_foreground): Likewise.
20332 (x_draw_glyph_string): Likewise. Use font->underline_position and
20333 font->underline_thickness.
ef1b0ba7 20334 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
20335 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20336 (x_check_font): Call `check' method of a font driver.
20337 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20338 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 20339 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 20340 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
20341 redisplay_interface'.
20342
20343 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20344 conditionals. Don't check enable_font_backend. Delete all codes
20345 used only when USE_FONT_BACKEND is not defined. Surround non-used
20346 code by "#ifdef OLD_FONT" and "endif".
20347 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20348
20349 * w32font.h (struct w32font_info): New member.
20350 (FONT_COMPAT): New macro.
20351 (w32font_open_internal): Prototype adjusted.
20352
20353 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20354 OLD_FONT" and "endif".
20355
20356 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20357 conditionals. Don't check enable_font_backend. Delete all codes
20358 used only when USE_FONT_BACKEND is not defined.
20359 (w32font_open): Return a font-object. Make a font-object by
20360 font_make_object. Adjusted for the change of struct w32font_info.
20361 (w32font_close): Don't free struct font. Adjusted for the change
20362 of struct w32font_info.
20363 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 20364 Adjust for the change of struct w32font_info.
aac0c6e3
MR
20365 (w32font_draw): Likewise.
20366 (w32font_list_internal): Return a list, not vector.
20367 (w32font_open_internal): Change the 4th arg to font-object.
20368 Adjusted for the change of struct w32font_info and font-object format.
20369 (add_font_name_to_list): Don't downcase names.
20370 (w32_enumfont_pattern_entity): Make a font-entity by
20371 font_make_entity. Adjusted for the format change of font-entity.
20372 Use FONT_SET_STYLE to set a style-related font property. If a
20373 font is scalable, set avgwidth property to 0. Set font-entity
20374 property by font_put_extra.
bba3e508 20375 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
20376 (w32_weight_table, w32_decode_weight): New variables.
20377 (w32_encode_weight): New function.
bba3e508 20378 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
20379 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
20380 weight value.
bba3e508 20381 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20382
20383 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
20384 conditionals. Don't check enable_font_backend. Surround non-used
20385 code by "#ifdef OLD_FONT" and "endif".
20386 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 20387 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
20388
20389 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
20390 conditionals. Don't check enable_font_backend. Delete all codes
20391 used only when USE_FONT_BACKEND is not defined. Surround non-used
20392 code by "#ifdef OLD_FONT" and "endif".
20393
20394 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
20395 (uniscribe_open): Return value changed to font-object.
20396 Adjusted for the format change of font-object.
bba3e508 20397 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 20398 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 20399 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
20400 font_driver.
20401
204022008-05-13 Chong Yidong <cyd@stupidchicken.com>
20403
20404 * dispnew.c (update_frame_1): Check if tty output is still valid
20405 before flushing it.
20406
204072008-05-13 Jan Djärv <jan.h.d@swipnet.se>
20408
20409 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
20410 to Gtk+ menus.
20411
204122008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
20413
20414 * dired.c (file_name_completion): Tweak the code so as to always do it
20415 in a single pass. Tighten the scope of some variables.
20416
20417 * dired.c (Qdefault_directory): New var.
20418 (file_name_completion): Use it instead of Fexpand_file_name.
20419 (syms_of_dired): Initialize it.
20420
204212008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
20422
20423 * fileio.c (double_dollars): Remove dead code.
20424
204252008-05-10 Eli Zaretskii <eliz@gnu.org>
20426
20427 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
20428 Mention w32-get-true-file-attributes in doc string.
20429
20430 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
20431
204322008-05-09 Glenn Morris <rgm@gnu.org>
20433
20434 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
20435 2008-04-23.
20436
204372008-05-09 Eli Zaretskii <eliz@gnu.org>
20438
20439 Support for reporting owner and group of each file on MS-Windows:
20440 * dired.c (stat_uname, stat_gname): New functions, with special
20441 implementation for w32.
20442 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
20443
20444 * w32.c: Rename the_passwd_* to dflt_passwd_*.
20445 (dflt_group_name): New static variable.
20446 (dflt_group): Rename from the_group.
20447 (init_user_info): Init dflt_group fields. Get user's group name
20448 from LookupAccountSid.
20449 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
20450 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
20451 New initialization states.
20452 (globals_of_w32): Initialize them to zero. Initialize the default
20453 group name to "None".
20454 (GetFileSecurity_Name): New global var, the name of the function
20455 to call for GetFileSecurity.
20456 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
20457 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
20458 (get_file_security, get_security_descriptor_owner)
20459 (get_security_descriptor_group, is_valid_sid)
20460 (get_file_security_desc, get_rid, get_name_and_id)
20461 (get_file_owner_and_group): New functions.
20462 (stat): Use get_file_security_desc and get_file_owner_and_group to
20463 report the owner and primary group of each file. Don't ignore the
20464 high 32 bits of file's size, now that st_size is 64-bit wide.
20465 Fix test when to get true file attributes.
20466 (init_user_info): Use get_rid instead of equivalent inline code.
20467 (fstat): Don't ignore the high 32 bits of file's size.
20468
204692008-05-09 Chong Yidong <cyd@stupidchicken.com>
20470
20471 * image.c (png_load): Use correct bit-depth for setting background
20472 color.
20473
204742008-05-08 Eli Zaretskii <eliz@gnu.org>
20475
20476 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
20477 epa-hook.elc.
20478
204792008-05-08 Juanma Barranquero <lekktu@gmail.com>
20480
20481 * font.c (Ffont_match_p): Don't use `iff' in docstring.
20482
204832008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
20484
20485 * macfns.c (Fx_create_frame): Make a copy of frame parameters
20486 because the original parameters are in pure storage now.
20487 (mac_window): Remove unused params. Update callers.
20488
204892008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
20490
20491 * lread.c (substitute_object_recurse): Use lower-level primitives.
20492 Don't signal errors when traversing sub-char-tables.
20493 Don't loop over all the possible characters when traversing char-tables.
20494
20495 * print.c (print_preprocess): Add sub-char-tables to the print-table,
20496 just like we do in print.c.
20497
204982008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
20499
20500 * minibuf.c (Ftry_completion): Remove code left over from when we used
20501 scmp instead of Fcompare_strings.
20502
205032008-05-04 Juanma Barranquero <lekktu@gmail.com>
20504
20505 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
20506
205072008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20508
20509 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
20510 Create bitmap context in native byte order.
20511
20512 * macterm.c (XDrawLine)
20513 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
20514 context in native byte order.
20515
205162008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20517
20518 * config.in: Regenerate.
20519
20520 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
20521 New definitions for Image I/O support.
20522 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
20523 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
20524 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20525 (mac_data_provider_release_data, image_load_image_io)
20526 [USE_MAC_IMAGE_IO]: New functions.
20527 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
20528 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
20529 (init_image_func_pointer) [MAC_OSX]: Remove function.
20530 (image_load_quartz2d) [MAC_OSX]: Check availability of
20531 CGImageCreateWithPNGDataProvider at compile time.
20532 Use lowercase `false' for boolean constant.
20533 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
20534 Use image_load_image_io.
20535 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
20536 Don't check MyCGImageCreateWithPNGDataProvider.
20537 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
20538 Don't call init_image_func_pointer.
20539
20540 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
20541
20542 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
20543 Make variable non-static.
20544 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20545 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20546
20547 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20548 (RED_FROM_ULONG): Mask off higher bits.
20549 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20550
20551 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20552 Include AvailabilityMacros.h.
20553 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20554 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20555
205562008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20557
20558 * chartab.c (Fset_char_table_range): If range is t, really set all
20559 chars to that value.
20560
205612008-05-03 Eli Zaretskii <eliz@gnu.org>
20562
20563 * dired.c (Ffile_attributes): Don't allow the device number become
20564 negative.
20565
205662008-05-02 Daiki Ueno <ueno@unixuser.org>
20567
20568 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20569
205702008-05-02 Juri Linkov <juri@jurta.org>
20571
20572 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20573 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20574 DEFAULT argument as a list of default values in docstrings.
20575
205762008-05-01 Chong Yidong <cyd@stupidchicken.com>
20577
20578 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20579
205802008-05-01 Martin Rudalics <rudalics@gmx.at>
20581
20582 * dispnew.c (change_frame_size_1): Preserve small windows when
20583 shrinking frames by calling set_window_height|width with third
20584 arg 2.
20585
20586 * window.h (struct window): Replace field too_small_ok by field
20587 resize_proportionally.
20588
20589 * window.c (make_window): Initialize resize_proportionally.
20590 (enlarge_window): Temporarily set resize_proportionally to make
20591 sure that shrink_windows does scale the window proportionally.
20592 (shrink_windows): When window has resize_proportionally set try
20593 to shrink it proportionally by stealing from other windows.
20594 (struct saved_window, Fset_window_configuration)
20595 (compare_window_configurations): Handle resize_proportionally.
20596 (WINDOW_TOTAL_SIZE): New macro.
20597 (window_min_size, shrink_windows, size_window): Use it.
20598 (check_min_window_sizes): Remove. Invalid values of
20599 window-min-height|width are handled by window_min_size_2 now.
20600 (size_window, Fsplit_window, enlarge_window)
20601 (adjust_window_trailing_edge, grow_mini_window): Don't call
20602 check_min_window_sizes.
20603 (window_min_size_2, window_min_size_1, window_min_size):
20604 New argument safe_p for retrieving "safe" minimum sizes.
20605 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20606 (adjust_window_trailing_edge, grow_mini_window):
20607 Adjust arguments of window_min_size... functions.
20608 (shrink_windows): Argument min_size removed. New argument
20609 safe_p allows shrinking windows to their safe minimum sizes.
20610 Calculate minimum size and decide whether a window shall be
20611 deleted for each window individually.
20612 (size_window): When nodelete_p equals 2, tell shrink_windows to
20613 delete windows only if their new minimum size is no more safe.
20614 (shrink_window_lowest_first): Call window_min_size_1 to make
20615 sure to preserve modeline of bottom-most window when resizing
20616 the minibuffer.
20617 (Fset_window_configuration, Fcurrent_window_configuration)
20618 (compare_window_configurations): Do not handle
20619 window-min-height|width any more.
20620 (syms_of_window): Clarify window-min-height|width doc-strings.
20621
206222008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20623
20624 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20625 some more. Copy some of the code from Ftry_completions.
20626 Remove special case code that dates back to initial revision when the
20627 slash was only added when necessary and that can't trigger nowadays.
20628
206292008-04-27 Kenichi Handa <handa@m17n.org>
20630
20631 * font.c (font_prop_validate): Signal `error' instead of `font'.
20632
206332008-04-29 Jason Rumney <jasonr@gnu.org>
20634
20635 * w32fns.c (Fw32_battery_status): New defun.
20636 (syms_of_w32fns): Defsubr it.
20637
206382008-04-28 Andreas Schwab <schwab@suse.de>
20639
20640 * dired.c (file_name_completion): Fix another mixing of encoded
20641 and decoded names.
20642
206432008-04-28 Juanma Barranquero <lekktu@gmail.com>
20644
20645 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20646
206472008-04-27 Juanma Barranquero <lekktu@gmail.com>
20648
20649 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20650
206512008-04-27 Andreas Schwab <schwab@suse.de>
20652
20653 * dired.c (file_name_completion): Fix inappropriate mixing of
20654 encoded and decoded names.
20655
20656 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20657
20658 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20659
206602008-04-26 Eli Zaretskii <eliz@gnu.org>
20661
20662 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20663 2008-03-31, it's not needed anymore with `struct stat' definition
20664 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20665 for the same reasons.
20666
206672008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20668
20669 * m/sparc.h: Additional redefinitions for GNU/Linux.
20670
206712008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20672
20673 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20674 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20675 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20676 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20677 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20678 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20679 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20680 Likewise.
20681
20682 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20683 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20684 (mac_ax_number_of_characters): Add externs.
20685 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20686 [USE_MAC_TSM]: Likewise.
20687 (mac_handle_text_input_event) [MAC_OSX]:
20688 Handle kEventTextInputOffsetToPos for no active input area case.
20689 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20690 (mac_handle_document_access_event)
20691 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20692 (install_application_handler) [MAC_OSX]: Register handlers for
20693 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20694 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20695 Register mac_handle_document_access_event.
20696
20697 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20698 Make functions non-static.
20699
207002008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20701
20702 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20703 (read_file_name_completion_ignore_case, insert_default_directory)
20704 (Qdefault_directory): Move to minibuffer.el.
20705 (Fread_file_name): Call the new `read-file-name' instead.
20706
207072008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20708
20709 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20710 Make function non-static.
20711 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20712 Remove function.
20713 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20714 Move to mactoolbox.c.
20715 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20716
20717 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20718 (mac_rect_make): New macro.
20719
20720 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20721 instead of float.
20722 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20723 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20724 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20725 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20726 CGRectMake.
20727 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20728 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20729 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20730 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20731 instead of WindowRef in argument type.
20732 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20733 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20734 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20735 instead of DISPLAY. All uses changed.
20736 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20737 (x_calc_absolute_position): Simplify so as not to use
20738 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20739
20740 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20741 instead of WindowRef in argument type.
20742 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20743 [TARGET_API_MAC_CARBON]: Remove externs.
20744 (create_apple_event, mac_event_parameters_to_lisp)
20745 [TARGET_API_MAC_CARBON]: Add externs.
20746
20747 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20748 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20749 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20750 is clicked.
20751 (x_activate_menubar): Remove extern for saved_menu_event_location.
20752 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20753 Move from mac.c.
20754
207552008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20756
20757 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20758 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20759
207602008-04-23 Jason Rumney <jasonr@gnu.org>
20761
20762 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20763 attributes only for local files.
20764
20765 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20766 default to Qlocal.
20767
207682008-04-22 Juri Linkov <juri@jurta.org>
20769
20770 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20771 read-buffer-to-switch instead of using the letter "B".
20772
207732008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20774
20775 * fileio.c (Qdefault_directory): New variable.
20776 (Fread_file_name): Use it to pass `dir' to the completion functions.
20777
207782008-04-20 Chong Yidong <cyd@stupidchicken.com>
20779
20780 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20781
207822008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20783
20784 * keyboard.c (Vpre_help_message): Remove.
20785 (show_help_echo): Remove default C code.
20786
20787 * dired.c (directory_files_internal, file_name_completion):
20788 Only call ENCODE_FILE if the string is indeed decoded.
20789
207902008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20791
20792 * Makefile.in (TOOLKIT_DEFINES): Remove.
20793 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20794
207952008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20796
20797 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20798 (mactoolbox.o): New target.
20799
20800 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20801 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20802
20803 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20804 Use mac_set_frame_window_background instead of XSetWindowBackground.
20805 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20806 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20807 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20808 instead of SetWindowTitleWithCFString.
20809 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20810 Move function to mactoolbox.c.
20811 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20812 Use mac_set_window_modified instead of SetWindowModified.
20813 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20814 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20815 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20816 FrontNonFloatingWindow. Use mac_activate_window instead of
20817 ActivateWindow. Use mac_active_non_floating_window instead of
20818 ActiveNonFloatingWindow.
20819 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20820 Use mac_show_hourglass and mac_hide_hourglass.
20821 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20822 instead of GetGlobalMouse.
20823 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20824 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20825 Use mac_bring_window_to_front instead of BringToFront.
20826 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20827 mactoolbox.c.
20828 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20829 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20830 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20831 mactoolbox.c.
20832
20833 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20834 (XtPointer): Move typedef from macmenu.c.
20835 (enum button_type): Move enum from macmenu.c.
20836 (widget_value): Move typedef from macmenu.c.
20837 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20838 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20839 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20840 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20841 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20842 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20843 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20844 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20845 (Selection): Move typedef from macselect.c.
20846 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20847 macterm.c.
20848 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20849 (mac_is_window_collapsed, mac_bring_window_to_front)
20850 (mac_send_window_behind, mac_hide_window, mac_show_window)
20851 (mac_collapse_window, mac_front_non_floating_window)
20852 (mac_active_non_floating_window, mac_activate_window)
20853 (mac_move_window_structure, mac_move_window, mac_size_window)
20854 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20855
20856 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20857 (enum mac_menu_kind): Move enum to mactoolbox.c.
20858 (min_menu_id): Move variable to mactoolbox.c.
20859 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20860 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20861 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20862 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20863 [TARGET_API_MAC_CARBON]: Likewise.
20864 (XtPointer): Move typedef to macgui.h.
20865 (enum button_type): Move enum to macgui.h.
20866 (widget_value): Move typedef to macgui.h.
20867 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20868 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20869 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20870 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20871 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20872 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20873 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20874 (popup_activated_flag): Make variable non-static.
20875 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20876 (add_menu_item, fill_menu, dispose_menus):
20877 Move functions to mactoolbox.c.
20878 (restore_show_help_function, menu_target_item_handler)
20879 (install_menu_target_item_handler, mac_handle_dialog_event)
20880 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20881 [TARGET_API_MAC_CARBON]: Likewise.
20882 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20883 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20884 (find_and_call_menu_selection, name_is_separator): Make function
20885 non-static.
20886 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20887 to mactoolbox.c.
20888 (set_frame_menubar): Don't call install_menu_quit_handler.
20889 (menu_item_selection): New variable.
20890 (mac_menu_show): Use create_and_show_popup_menu.
20891 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20892 selection but set variable menu_item_selection. All uses changed.
20893 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20894 Call install_menu_quit_handler. Move to mactoolbox.c.
20895
20896 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20897 (Selection): Move typedef to macgui.h.
20898 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20899 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20900 Make variables non-static.
20901 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20902 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20903 Make functions non-static.
20904 (Vmac_service_selection) [MAC_OSX]: Likewise.
20905 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20906 (mac_valid_selection_target_p, mac_clear_selection)
20907 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20908 (mac_put_selection_value, mac_selection_has_target_p)
20909 (mac_get_selection_value, mac_get_selection_target_list)
20910 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20911 Move functions to mactoolbox.c.
20912 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20913 Likewise.
20914 (copy_scrap_flavor_data, mac_handle_service_event)
20915 (install_service_handler) [MAC_OSX]: Likewise.
20916 (syms_of_macselect) <Vmac_dnd_known_types>:
20917 Use mac_dnd_default_known_types.
20918
20919 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20920 Move to mactoolbox.c.
20921 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20922 (Fx_selection_owner_p): Add EXFUN.
20923 (install_window_handler, remove_window_handler, XSetWindowBackground):
20924 Remove externs.
20925 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20926 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20927 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20928 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20929 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20930 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20931 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20932 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20933 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20934 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20935 (mac_valid_selection_target_p, mac_clear_selection)
20936 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20937 (mac_put_selection_value, mac_selection_has_target_p)
20938 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20939 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20940 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20941 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20942 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20943 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20944 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20945 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20946 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20947
20948 * mactoolbox.c: New file.
20949
209502008-04-18 Jason Rumney <jasonr@gnu.org>
20951
20952 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20953
209542008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20955
20956 * character.c (Fmultibyte_char_to_unibyte):
20957 Return latin1 chars unchanged.
20958
20959 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20960 relocated if it points to `name'.
20961
209622008-04-17 Kenichi Handa <handa@m17n.org>
20963
20964 * data.c (Faset): Allow setting a multibyte character in an
20965 ASCII-only unibyte string.
20966
20967 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20968
209692008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20970
20971 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20972 done in config.h.
20973
209742008-04-16 Juanma Barranquero <lekktu@gmail.com>
20975
20976 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20977 (Fchar_direction): Add usage in the docstring.
20978
209792008-04-15 Chong Yidong <cyd@stupidchicken.com>
20980
20981 * keyboard.c (read_key_sequence): Remove always-true checks.
20982
209832008-04-14 Jason Rumney <jasonr@gnu.org>
20984
20985 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20986 compatibility struct, for better underline positioning.
20987
209882008-04-13 David Hansen <david.hansen@gmx.net>
20989
20990 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20991 string.
20992
209932008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20994
20995 * m/hp800.h (XUINT, XSET): Remove.
20996
209972008-04-12 Juanma Barranquero <lekktu@gmail.com>
20998
20999 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21000 previous change.
21001
210022008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21003
21004 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21005 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21006
210072008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21008
21009 * keymap.h (map_keymap_canonical): Declare.
21010 * xmenu.c (single_keymap_panes): Use it.
21011
210122008-04-11 Glenn Morris <rgm@gnu.org>
21013
21014 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21015 set the target's value to that of the alias.
21016
210172008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21018
21019 * term.c (set_tty_color_mode): Left over typo.
21020
210212008-04-10 Michael Albinus <michael.albinus@gmx.de>
21022
21023 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21024 only after check for file name handler functions. Signal, when
21025 native functionality is not supported.
21026 (syms_of_fileio): Declare it unconditionally.
21027
210282008-04-10 Jason Rumney <jasonr@gnu.org>
21029
21030 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21031 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21032
21033 * w32.c (logon_network_drive): Also logon to remote drives that
21034 are mapped to drive letters.
21035
210362008-04-10 Glenn Morris <rgm@gnu.org>
21037
21038 * xdisp.c (truncate-partial-width-windows): Doc fix.
21039
210402008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21041
21042 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21043 Move functions to minibuffer.el.
21044 (syms_of_fileio): Don't declare them.
21045
210462008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21047
21048 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21049 (syms_of_minibuf): Remove its initialization.
21050
21051 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21052
210532008-04-09 Juanma Barranquero <lekktu@gmail.com>
21054
21055 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21056
210572008-04-09 Jason Rumney <jasonr@gnu.org>
21058
21059 * makefile.w32-in (distclean): Delete makefile too.
21060 (maintainer-clean): New target.
21061
21062 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21063
21064 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21065 for new font backend and composite cases.
21066
210672008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21068
21069 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21070 Most of the code moved to run_timers.
21071 (do_pending_atimers): Call run_timers.
21072 (run_timers): New function.
21073
21074 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21075 run atimers.
21076
21077 * process.c (wait_reading_process_output): The same as above.
21078
210792008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21080
21081 * minibuf.c (last_exact_completion): Remove variable.
21082 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21083 (complete_and_exit_1, complete_and_exit_2)
21084 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21085 (Fdisplay_completion_list, display_completion_list_1)
21086 (Fminibuffer_completion_help, Fself_insert_and_exit)
21087 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21088 minibuffer.el.
21089 (syms_of_minibuf): Remove corresponding initializations.
21090
21091 * keyboard.c (Qdeactivate_mark): New var.
21092 (command_loop_1): Use it to call `deactivate-mark'.
21093 (syms_of_keyboard): Initialize it.
21094
21095 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21096 to another frame.
21097 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21098 Don't call set_tty_color_mode.
21099 (store_frame_param): Reset previous_frame rather than call
21100 set_tty_color_mode.
21101 * term.c (set_tty_color_mode): Rewrite.
21102 * dispextern.h (set_tty_color_mode): New type.
21103 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21104
211052008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21106
21107 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21108 for generic chars, which do not exist any more in emacs-unicode.
21109
211102008-04-08 Michael Albinus <michael.albinus@gmx.de>
21111
21112 * coding.c (detect_coding_emacs_mule)
21113 (Ffind_operation_coding_system): Fix typo.
21114
211152008-04-08 Jason Rumney <jasonr@gnu.org>
21116
21117 * w32uniscribe.c (SNAME): Extract only symbol name.
21118
21119 * w32font.h (struct w32_metric_cache): New struct.
21120 (w32font_info): Use it.
21121 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21122 (CACHE_BLOCKSIZE): New constants.
21123
21124 * w32font.c (Qja, Qko, Qzh): New symbols.
21125 (syms_of_w32font): Initialise them.
21126 (font_matches_spec): Use them to filter by language.
21127 (recompute_cached_metrics): Remove function.
21128 (compute_metrics, clear_cached_metrics): New functions.
21129 (w32font_encode_char): Use them to manage metric cache.
21130 (w32font_text_extents): Cache metrics for all glyphs on demand.
21131 Delay converting glyph indices to WORD until needed.
21132 (w32font_open_internal): Initialize metric cache to empty.
21133 (registry_to_w32_charset): Charset should always be a symbol.
21134 (fill_in_logfont, list_all_matching_fonts): Family should
21135 always be a symbol.
21136
211372008-04-06 Jason Rumney <jasonr@gnu.org>
21138
21139 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21140 Give up if glyph indices not supported. Use uniscribe obtained
21141 ABC widths for individual metrics. Map glyph clusters back to
21142 characters using fClusterStart flag. Return number of glyphs
21143 produced, not chars processed.
21144 (uniscribe_shape): Map char at FROM to current glyph.
21145
211462008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21147
21148 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21149 Use SetMenuItemHierarchicalMenu.
21150
211512008-04-05 Jason Rumney <jasonr@gnu.org>
21152
21153 * image.c (pbm_load): Allow color values up to 65535.
21154 Throw an error if max_color_idx is outside the supported range.
21155 Report an error when image size is invalid.
21156 Read two bytes at a time when raw images have max_color_idx above 255.
21157
aac0c6e3
MR
211582008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21159
21160 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21161 append "CCL: Quitted" when the CCL program is quitted.
21162 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21163
21164 * ccl.h (struct ccl_program): New member quit_silently.
21165
211662008-04-05 Chong Yidong <cyd@stupidchicken.com>
21167
21168 * search.c (compile_pattern_1): Treat non-nil and non-string of
21169 search-spaces-regexp as nil.
21170
21171 * minibuf.c (Fassoc_string): Tweak docstring.
21172
211732008-04-05 Eli Zaretskii <eliz@gnu.org>
21174
21175 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21176 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21177 2008-03-14 to force inode be positive.
21178
21179 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21180 _S_* ones, since we now use our own sys/stat.h.
21181 (stat, fstat): Don't mangle the inode number.
21182 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21183
211842008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21185
21186 * frame.h (struct frame): Give one more bit to `visible' since we use
21187 values larger than 1 to indicate obscured frames on ttys.
21188
21189 * keymap.c (Qkeymap_canonicalize): New var.
21190 (Fmap_keymap_internal): New fun.
21191 (describe_map): Use keymap-canonicalize.
21192
21193 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21194 (Fundo_boundary): Set them.
21195 (syms_of_undo): Initialize them.
21196 (record_point): Use them instead of last_point_position*.
21197 (last_undo_buffer): Change type.
21198
211992008-04-04 Jason Rumney <jasonr@gnu.org>
21200
21201 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21202 (recompute_cached_metrics): Don't set ascent and descent per char.
21203
21204 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21205 (uniscribe_check_otf): Add GC protection before consing.
21206 Rearrange loop for counting features.
21207
212082008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21209
21210 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21211 buffer with byte-size of source buffer.
21212
212132008-04-03 Chong Yidong <cyd@stupidchicken.com>
21214
21215 * callint.c (Fcall_interactively): Handle temporary region even
21216 when shift-select-mode is off.
21217
212182008-04-03 Jason Rumney <jasonr@gnu.org>
21219
21220 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21221
212222008-04-03 Kenichi Handa <handa@m17n.org>
21223
21224 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21225 (CATEGORY_MASK_UTF_16): Likewise.
21226 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21227 binary file.
21228 (detect_coding): Add null-byte detection for a binary file.
21229 (detect_coding_system): Likewise.
21230
212312008-04-03 Jason Rumney <jasonr@gnu.org>
21232
21233 * w32uniscribe.c: New file.
21234
21235 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21236
21237 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21238
21239 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21240 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21241 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21242 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21243 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21244 (Qphonetic): New symbols.
21245 (syms_of_w32font): Initialize them.
21246 (font_supported_scripts): Use them.
21247 (w32font_list_family): List all charsets.
21248 (w32font_text_extents, recompute_cached_metrics): Fix metric
21249 calculations.
21250 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21251 Give opentype fonts their own format.
21252 (font_matches_spec): New arguments backend and logfont.
21253 Handle :otf spec for uniscribe backend.
21254 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21255 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21256
21257 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21258 font backend.
21259 (globals_of_w32fns): Initialize uniscribe font backend.
21260
21261 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21262 dependencies.
21263 (w32uniscribe.$(O)): New file to build.
21264 (FONT_OBJ): Include w32uniscribe.$(O).
21265 (LIBS): Add uniscribe libraries.
21266
21267 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21268
212692008-04-02 Chong Yidong <cyd@stupidchicken.com>
21270
21271 * callint.c (Vshift_select_mode): New var.
21272 (Finteractive): Document new ^ spec.
21273 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21274 is present.
21275
21276 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21277 (command_loop_1): Avoid running the direct display versions of
21278 forward-char and backward-char if shift-selection may occur.
21279 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21280 shift-translation takes place.
21281
21282 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21283 avoid clobbering by define-minor-mode.
21284
21285 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21286 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21287
21288 * syntax.c (Fforward_word): Add ^ interactive spec.
21289
21290 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21291 (Fscroll_right): Add ^ interactive spec.
21292
212932008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21294
21295 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21296
21297 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21298
21299 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21300
213012008-03-31 Juri Linkov <juri@jurta.org>
21302
21303 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21304
213052008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21306
21307 * gtkutil.c (xg_set_geometry): Fix indentation.
21308 (xg_resize_outer_widget): Remove.
21309 (x_wm_size_hint_off): Fix indentation.
21310 (xg_frame_set_char_size): Call flush_and_sync after
21311 gtk_window_resize.
21312 (x_wm_set_size_hint): Pass NULL as geometry window to
21313 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21314 Add menu bar and tool bar height to base height.
21315 (xg_update_frame_menubar, free_frame_menubar)
21316 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21317 (update_frame_tool_bar, free_frame_tool_bar):
21318 Change xg_resize_outer_widget to xg_frame_set_char_size.
21319
213202008-03-30 Michael Albinus <michael.albinus@gmx.de>
21321
21322 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21323 (Fdbus_call_method): New parameter TIMEOUT.
21324 (dbus-send-signal): Optimize UNGCPRO call.
21325
213262008-03-29 Juri Linkov <juri@jurta.org>
21327
21328 * window.c (Fdisplay_buffer): Move call to
21329 Vsplit_window_preferred_function out of conditions that check
21330 if window is eligible for vertical splitting.
21331 When Vsplit_window_preferred_function is non-nil, call it and use
21332 its non-nil return value as window. Otherwise, continue doing
21333 vertical splitting using Fsplit_window with arg horflag=nil.
21334 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21335 default value from `split-window' to nil.
21336
213372008-03-29 Juri Linkov <juri@jurta.org>
21338
21339 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21340 for interactive code letters 'b' and 'B'.
21341
213422008-03-29 Eli Zaretskii <eliz@gnu.org>
21343
21344 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21345 multibyte string.
21346
213472008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21348
21349 * keyboard.c (pending_funcalls): New var.
21350 (timer_check): Run it.
21351 (syms_of_keyboard): Initialize it.
21352 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21353 (Vdelete_terminal_functions): New vars.
21354 (syms_of_terminal): Initialize them.
21355 (Fdelete_terminal): Run delete-terminal-functions.
21356 * xdisp.c (safe_eval): Rewrite.
21357 (safe_call2): New fun.
21358 * frame.c (Qdelete_frame_functions): New var.
21359 (syms_of_frame): Initialize it.
21360 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21361 * lisp.h (safe_call2, pending_funcalls): Declare.
21362
213632008-03-28 Andreas Schwab <schwab@suse.de>
21364
21365 * indent.c (Fmove_to_column): Move declaration before statements.
21366
213672008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21368
21369 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21370 (struct frame): Use bit fields for boolean vars.
21371
21372 * process.c (server_accept_connection): Simplify naming.
21373 (emacs_get_tty_pgrp): Use SDATA.
21374
21375 * coding.c (decode_coding_object): Fix last change.
21376
213772008-03-27 Jason Rumney <jasonr@gnu.org>
21378
21379 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
21380
213812008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
21382
21383 * charset.c (Fdefine_charset_internal): Change the way of
21384 registering charsets in Vcharset_order_list.
21385 (syms_of_charset): Make the charset `eight-bit' supplementary.
21386
213872008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
21388
21389 * regex.c (EXTEND_BUFFER): Change order of pointer addition
21390 operations, to avoid having the difference between pointers
21391 overflow.
21392
213932008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
21394
21395 * indent.c (check_display_width): New fun.
21396 (scan_for_column): Use it.
21397
21398 * data.c (syms_of_data): Mark most-positive-fixnum and
21399 most-negative-fixnum as constants.
21400
21401 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
21402
21403 * indent.c (scan_for_column): Extract from current_column_1.
21404 Merge with the same code from Fmove_to_column.
21405 (current_column_1, Fmove_to_column): Use it.
21406
214072008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
21408
21409 * keymap.c (map_keymap_internal): New fun.
21410 (map_keymap): Use it.
21411 (Fmap_keymap_internal): New fun.
21412 (Fmap_keymap): Remove left-out test from before make_save_value.
21413
21414 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
21415
21416 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
21417 Use XCAR/XCDR.
21418
21419 * process.h (struct Lisp_Process): Remove filter_multibyte.
21420 * process.c (QCfilter_multibyte): Remove.
21421 (setup_process_coding_systems): Don't use filter_multibyte.
21422 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
21423 (read_process_output): Don't adjust multibyteness to filter_multibyte.
21424 (Fset_process_filter_multibyte): Change the coding-system to
21425 approximate the previous behavior.
21426 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
21427 coding-system.
21428
21429 * coding.c (decode_coding_object): When not decoding into a buffer,
21430 obey the coding system's preference of (uni|multi)byte.
21431
214322008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
21433
21434 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
21435 every char is changed and has a different byte-length.
21436 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
21437 Fix int -> EMACS_INT.
21438
214392008-03-23 David Hansen <david.hansen@gmx.net>
21440
21441 * dbusbind.c (xd_read_message): Remove extra copying of message
21442 strings. Check for NULL `interface' or `member'.
21443
214442008-03-22 Eli Zaretskii <eliz@gnu.org>
21445
21446 * w32.c (readdir): If FindFirstFile/FindNextFile return in
21447 cFileName a file name that includes `?' characters, use the 8+3
21448 alias in cAlternateFileName instead.
21449
214502008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
21451
21452 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
21453
214542008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21455
21456 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
21457 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
21458 work on current_buffer only instead (that was already the case
21459 for some of the code anyway).
21460 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
21461 (temp_set_point, temp_set_point_both): Use EMACS_INT.
21462 (SET_PT, SET_PT_BOTH): Adjust.
21463 * intervals.h (set_point, temp_set_point, set_point_both)
21464 (temp_set_point_both): Remove redundant declarations.
21465
214662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21467
21468 * fileio.c (Finsert_file_contents):
21469 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
21470 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
21471 when buffer != current_buffer anyway.
21472
214732008-03-20 Andreas Schwab <schwab@suse.de>
21474
21475 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
21476 as default.
21477
214782008-03-19 Jason Rumney <jasonr@gnu.org>
21479
21480 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
21481 (syms_of_w32fns): Initialize them.
21482 (HOURGLASS_ID): New constant.
21483 (x_window_to_frame): Don't check hourglass_window.
21484 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
21485 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
21486 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
21487 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
21488 Only change the cursor if hourglass is not active.
21489 (Fx_create_frame): Initialize frame's current_cursor.
21490 (hourglass_atimer): Remove.
21491 (hourglass_started): New function.
21492 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
21493 (show_hourglass): Adapt to w32, changing argument to frame.
21494
21495 * w32term.h (struct w32_output): Remove hourglass_window.
21496 Add current_cursor.
21497
21498 * eval.c (call_debugger, Fsignal):
21499 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
21500 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
21501 (Fexecute_extended_command, cancel_hourglass_unwind):
21502 * minibuf.c (read_minibuf):
21503 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
21504
215052008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
21506
21507 * window.c (run_funs): New fun.
21508 (run_window_configuration_change_hook): Use it to run the buffer-local
21509 and the global part of the hook.
21510
21511 * xdisp.c (format_mode_line_unwind_data): Add window argument.
21512 (unwind_format_mode_line): Restore selected window.
21513 (x_consider_frame_title, Fformat_mode_line): Set selected window.
21514
215152008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
21516
21517 * editfns.c (Fchar_equal): Check they are valid characters.
21518
21519 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
21520
215212008-03-17 Andreas Schwab <schwab@suse.de>
21522
21523 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
21524 against a charset.
21525
21526 * lisp.h (Fbuffer_list): Declare.
21527
215282008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 21529
aac0c6e3
MR
21530 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
21531 handlebox_widget is != 0.
21532
215332008-03-16 Juri Linkov <juri@jurta.org>
21534
21535 * callint.c (Fcall_interactively): For interactive code letters
21536 'b' and 'B' put the buffer list into the list of default "future"
21537 values of the minibuffer.
21538
215392008-03-16 Andreas Schwab <schwab@suse.de>
21540
21541 * keyboard.c (read_key_sequence): Fix downcasing of letters with
21542 modifiers.
21543
21544 * regex.c (re_match_2_internal): Correct matching of a charset
21545 against latin-1 characters.
21546
215472008-03-16 Kenichi Handa <handa@m17n.org>
21548
21549 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21550 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21551 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21552 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21553 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21554 CHAR_STRING_ADVANCE.
21555 (produce_chars): Fix for the case that the source and the
21556 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21557 instead of CHAR_STRING_ADVANCE.
21558 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21559 STRING_CHAR_ADVANCE.
21560
215612008-03-15 Andreas Schwab <schwab@suse.de>
21562
21563 * regex.c (re_match_2_internal): Correct matching of eight bit
21564 characters in unibyte strings.
21565
215662008-03-15 Martin Rudalics <rudalics@gmx.at>
21567
21568 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21569 at end of range when it coincides with the end of the buffer.
21570
215712008-03-14 Eli Zaretskii <eliz@gnu.org>
21572
21573 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21574
21575 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21576
215772008-03-14 Jason Rumney <jasonr@gnu.org>
21578
21579 * editfns.c (initial_tz): New variable.
21580 (syms_of_editfns): Initialize it.
21581 (Fset_time_zone_rule): Set it when first called.
21582 Use it when TZSTRING is nil.
21583
21584 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21585 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21586 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21587 (globals_of_w32fns): Initialize them.
21588 (compute_tip_xy): Use them to position tooltips.
21589
215902008-03-14 Glenn Morris <rgm@gnu.org>
21591
21592 * emacs.c (main): Revert previous change.
21593 (standard_args): Revert -internal-script back to -scriptload,
21594 and remove the long-option form.
21595
215962008-03-13 Glenn Morris <rgm@gnu.org>
21597
21598 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21599 Remove option -enable-font-backend.
21600
216012008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21602
21603 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21604
216052008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21606
21607 * xterm.c (x_connection_closed): For GTK: If this is the last
21608 terminal just exit without closing the display.
21609
216102008-03-11 Jason Rumney <jasonr@gnu.org>
21611
21612 * w32font.c (w32font_full_name): Use floor to round.
21613
f0131492 216142008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
21615
21616 * sound.c (alsa_configure): Declare vol at beginning of block.
21617
21618 * fontset.c (Ffontset_info): Remove extra semicolon.
21619
216202008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21621
21622 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21623 size of resulting string.
21624
216252008-03-10 Jason Rumney <jasonr@gnu.org>
21626
21627 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21628
216292008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21630
21631 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21632 Don't pretend as if characters with display property haven't been
21633 consumed for string-replacing-string case.
21634
216352008-03-08 Kim F. Storm <storm@cua.dk>
21636
21637 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21638 (get_next_display_element, next_element_from_string)
21639 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21640
216412008-03-08 Andreas Schwab <schwab@suse.de>
21642
21643 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21644
216452008-03-06 Jason Rumney <jasonr@gnu.org>
21646
21647 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21648 when charset not specified. Only translate ANSI to unicode when
21649 font_type is truetype.
21650 (w32font_coverage_ok): New function.
21651 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21652
216532008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21654
21655 * lread.c (Fread_char): Resolve modifiers.
21656 (Fread_char_exclusive): Likewise.
21657
21658 * character.c (char_resolve_modifier_mask): New function.
21659 (char_string): Use char_resolve_modifier_mask.
21660 (Fchar_resolve_modifiers): New function.
21661 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21662 function.
21663
216642008-03-04 Jason Rumney <jasonr@gnu.org>
21665
21666 * makefile.w32-in: Always include w32font.c in the build.
21667 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21668
216692008-03-04 Andreas Schwab <schwab@suse.de>
21670
21671 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21672 (versionclean): Likewise.
21673
216742008-03-04 Juanma Barranquero <lekktu@gmail.com>
21675
21676 * .cvsignore: Add oo.
21677
216782008-03-03 Andreas Schwab <schwab@suse.de>
21679
21680 * coding.c (decode_coding_object): Inhibit gap shrinking while
21681 decoding in place.
21682
216832008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21684
21685 * w32term.c: Remove unused include "gnu.h".
21686 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21687
21688 * gnu.h: Rename to ...
21689 * emacs-icon.h: ... this.
21690 * xterm.c: Use emacs-icon.h instead of gnu.h.
21691 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21692
216932008-03-03 Juanma Barranquero <lekktu@gmail.com>
21694
21695 * w32font.c: Include math.h.
21696
216972008-03-03 Jason Rumney <jasonr@gnu.org>
21698
21699 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21700 Compute options separately.
21701 (w32font_open_internal): Set glyph_idx before caching metrics.
21702
21703 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21704 Define if system headers don't.
21705 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21706 (w32font_encode_char): Don't declare here.
21707
21708 * w32font.c (Quniscribe, QCformat): New symbols.
21709 (syms_of_w32font): Define them.
21710 (w32font_has_char): Indicate uncertainty.
21711 (w32font_encode_char): Encode as glyph point. Make static.
21712 (recompute_cached_metrics): New function.
21713 (w32font_open_internal): Use it. Set font to use glyph points
21714 initially. Set format based on type of font.
21715 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21716 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21717 on it. Set format based on information available here.
21718 (add_font_entity_to_list): Identify backend based on opentype_only.
21719
217202008-03-02 Andreas Schwab <schwab@suse.de>
21721
21722 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21723
21724 * coding.c (decode_coding_big5, produce_chars):
21725 Fix typos in last change.
21726
217272008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21728
21729 * gnu.h: New icon.
21730
217312008-03-02 Kenichi Handa <handa@m17n.org>
21732
21733 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21734 `dos', don't decode '\r' if that is the last in the source.
21735 (decode_coding_utf_16, decode_coding_emacs_mule)
21736 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21737 (decode_coding_raw_text, decode_coding_charset): Likewise.
21738 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21739
217402008-03-01 Jason Rumney <jasonr@gnu.org>
21741
21742 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21743
217442008-03-01 Kim F. Storm <storm@cua.dk>
21745
21746 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21747
217482008-03-01 Jason Rumney <jasonr@gnu.org>
21749
21750 * w32font.c (w32font_full_name): New function.
21751 (w32font_open_internal): Use it.
21752
217532008-03-01 Kim F. Storm <storm@cua.dk>
21754
21755 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21756
217572008-03-01 Jason Rumney <jasonr@gnu.org>
21758
21759 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21760
217612008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21762
21763 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21764 xg_frame_resized when the event is for the edit widget.
21765
ef1b0ba7 21766 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21767
21768 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21769 set_char_size.
ef1b0ba7 21770 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21771 operations on widgets here. Just set frame size if needed.
21772 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21773 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21774 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21775 the whole frame.
21776 (xg_create_tool_bar): Move attachment of the tool bar to
21777 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21778 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21779
217802008-03-01 Jason Rumney <jasonr@gnu.org>
21781
21782 * w32fns.c (w32_msg_pump): Disable debug code.
21783
217842008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21785
21786 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21787
217882008-02-29 Chong Yidong <cyd@stupidchicken.com>
21789
21790 * xdisp.c (next_overlay_string): Don't set
21791 overlay_strings_at_end_processed_p if we're currently reading from
21792 a display string.
21793
217942008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21795
21796 * xdisp.c (get_overlay_strings_1): Fix typo.
21797
217982008-02-29 Chong Yidong <cyd@stupidchicken.com>
21799
21800 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21801
218022008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21803
21804 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21805
21806 * xdisp.c (display_mode_element): Cancel the previous change.
21807 (decode_mode_spec): Likewise.
21808 (handle_auto_composed_prop): Don't make composition if it->string
21809 is a string.
21810
218112008-02-27 Kim F. Storm <storm@cua.dk>
21812
21813 * lisp.h (GLYPH): Change type from int to struct with separate char
21814 and face_id members.
21815 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21816 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21817 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21818 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21819 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21820 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21821 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21822 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21823 handle new Lisp glyph code encoding, either an integer or a cons.
21824
21825 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21826 (GLYPH_ALIAS): Delete.
21827 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21828 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21829 (GLYPH_FROM_CHAR): Replace macro by ...
21830 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21831
21832 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21833 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21834 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21835 (GLYPH_INVALID_P): New macro.
21836 (spec_glyph_lookup_face): Update prototype.
21837
21838 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21839 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21840 new glyph code encoding.
21841 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21842 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21843
21844 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21845 Adapt to new glyph type and new glyph code encoding.
21846
21847 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21848
21849 * indent.c (current_column, current_column_1, Fmove_to_column)
21850 (compute_motion): Adapt to new glyph code encoding.
21851
21852 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21853
218542008-02-27 Chong Yidong <cyd@stupidchicken.com>
21855
21856 * process.c (wait_reading_process_output): Check for window
21857 changes caused by timers.
21858 Suggested by Johan Bockgård.
21859
218602008-02-27 Glenn Morris <rgm@gnu.org>
21861
21862 * emacs.c (USAGE1): Add `--disable-font-backend'.
21863
218642008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21865
21866 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21867 is made to the buffer.
21868
218692008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21870
21871 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21872 (face_at_string_position):
21873 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21874 (face_at_string_position):
21875 * xdisp.c (display_string, next_overlay_change):
21876 * buffer.h (overlays_at):
21877 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21878 Update callers.
21879
218802008-02-26 Chong Yidong <cyd@stupidchicken.com>
21881
21882 * editfns.c (Fformat): Doc fix.
21883
218842008-02-26 Juanma Barranquero <lekktu@gmail.com>
21885
21886 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21887 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21888 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21889
218902008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21891
21892 * buffer.c (Fbuffer_swap_text): New function.
21893 (syms_of_buffer): Defsubr it.
21894
218952008-02-25 Chong Yidong <cyd@stupidchicken.com>
21896
21897 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21898
218992008-02-25 Jason Rumney <jasonr@gnu.org>
21900
21901 * w32font.c (w32font_draw): Draw one character at a time when padding.
21902
219032008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21904
21905 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21906 Handle a nil arg. Use run_window_configuration_change_hook.
21907 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21908 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21909 Use run_window_configuration_change_hook.
21910
219112008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21912
21913 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21914 1-pixel width.
21915
219162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21917
21918 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21919 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21920 if the glyph in the font is zero pixel with.
21921
21922 * dispextern.h (struct glyph_string): New member padding_p.
21923
21924 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21925
21926 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21927
21928 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21929
21930 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21931
21932 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21933
219342008-02-25 Jason Rumney <jasonr@gnu.org>
21935
21936 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21937
219382008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21939
21940 Allow fine-grained image-cache flushing.
21941 * dispextern.h (struct image): Add `dependencies' field.
21942 (clear_image_caches): Change arg to Lisp_Object.
21943 * image.c (make_image): Initialize `dependencies' field.
21944 (clear_image_cache): Change arg to allow fine-grained flushing.
21945 Perform the flush even if image-cache-eviction-delay is nil.
21946 (clear_image_caches): Change arg to Lisp_Object.
21947 (Fclear_image_cache): Expand meaning of the argument.
21948 (mark_image): Mark `dependencies' field.
21949 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21950 (lface_hash): Use XHASH rather than XFASTINT.
21951 (face_at_buffer_position): Fix int -> EMACS_INT position.
21952 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21953 (select_frame_for_redisplay): Remove code duplication.
21954 (redisplay_internal): Adapt arg to call to clear_image_caches.
21955
219562008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21957
21958 * s/vms4-0.h:
21959 * s/vms4-2.h:
21960 * s/vms4-4.h:
21961 * s/vms5-5.h: Remove, unused.
21962
21963 * s/irix5-2.h:
21964 * s/irix6-0.h:
21965 * s/riscos5.h:
21966 * s/mach-bsd4-3.h:
21967 * m/mips4.h: Remove files for obsolete systems.
21968
21969 * Makefile.in:
21970 * filelock.c:
21971 * unexmips.c:
21972 * m/hp9000s300.h:
21973 * m/iris4d.h:
21974 * s/aix3-1.h:
21975 * s/hpux.h:
21976 * s/msdos.h:
21977 * s/usg5-0.h:
21978 * s/usg5-2-2.h:
21979 * s/usg5-2.h:
21980 * s/usg5-3.h: Remove references to obsolete variables.
21981
21982 * s/irix5-0.h: Remove, move all the contents ...
21983 * s/irix6-5.h: ... here. Simplify.
21984 * config.in: Regenerate.
21985
219862008-02-24 Jason Rumney <jasonr@gnu.org>
21987
21988 * w32term.c (x_draw_glyph_string_background): Clear the background
21989 manually when cleartype is in use.
21990 (x_draw_glyph_string_foreground): Draw text transparently when
21991 cleartype is in use.
21992
21993 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21994 a font into it unless we have to.
21995
219962008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21997
21998 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21999 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22000
aac0c6e3
MR
220012008-02-18 Jason Rumney <jasonr@gnu.org>
22002
22003 * w32fns.c (Fw32_shell_execute): Encode parameters.
22004
220052008-02-09 Eli Zaretskii <eliz@gnu.org>
22006
22007 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22008
220092008-02-05 Juanma Barranquero <lekktu@gmail.com>
22010
22011 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22012
220132008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22014
22015 * xterm.c (x_set_offset): Don't change the gravity if
22016 CHANGE_GRAVITY is -1.
22017
220182008-02-23 Chong Yidong <cyd@stupidchicken.com>
22019
22020 * fileio.c (auto_save_error_occurred): New var.
22021 (auto_save_error): Set it.
22022 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22023 error occurred.
22024
220252008-02-23 Eli Zaretskii <eliz@gnu.org>
22026
22027 * w32.c (globals_of_w32): Add initializations for
22028 g_b_init_get_sid_sub_authority and
22029 g_b_init_get_sid_sub_authority_count.
22030
220312008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22032
22033 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22034 (font_parse_xlfd): Use them for sanity check.
22035 (Finternal_set_font_style_table): Make sure the table is bijective.
22036
22037 Consolidate the image_cache to the terminal struct.
22038 * termhooks.h (P_): Remove redundant def.
22039 (struct terminal): New field `image_cache'.
22040 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22041 of FRAME_X_IMAGE_CACHE.
22042 * xterm.h (struct x_display_info): Remove image_cache field.
22043 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22044 * w32term.h (struct w32_display_info): Remove image_cache field.
22045 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22046 * macterm.h (struct mac_display_info): Remove image_cache field.
22047 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22048 * xterm.c (x_term_init):
22049 * w32term.c (w32_term_init):
22050 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22051 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22052 Remove declarations.
22053 (clear_image_caches, mark_image_cache): New declarations.
22054 * xfaces.c (clear_face_cache):
22055 * xdisp.c (redisplay_internal): Use clear_image_caches.
22056 * image.c (clear_image_cache): Don't check that a frame is on
22057 a window-system before checking if it shares the same cache.
22058 (clear_image_caches): New function.
22059 (Fclear_image_cache): Use it.
22060 (mark_image): Move from allo.c.
22061 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22062 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22063 (mark_object): Don't call mark_image_cache for frames.
22064 (mark_terminals): Call mark_image_cache.
22065
22066 * lisp.h (Fdelete_terminal): Declare.
22067
22068 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22069 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22070 wrong_type_argument.
22071
220722008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22073
22074 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22075 malayalam.el, and tamil.el. Add sinhala.el.
22076
220772008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22078
22079 * xterm.c (x_connection_closed): Consolidate identical tests.
22080 (x_delete_terminal): Don't crash if called via x_connection_closed.
22081
220822008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22083
22084 * xdisp.c (decode_mode_spec): New arg string.
22085 (display_mode_element): Adjust for the above change.
22086
220872008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22088
22089 * callint.c (Fcall_interactively): Use AREF.
22090
220912008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22092
22093 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22094
220952008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22096
22097 * xfns.c (Fx_show_tip): Set string to " " if empty.
22098
220992008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22100
22101 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22102 with Qt.
22103
221042008-02-17 Kenichi Handa <handa@m17n.org>
22105
22106 * ftfont.c (ftfont_shape): Return Lispy number.
22107
22108 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22109 for GCs.
22110 (Finternal_set_font_selection_order): Call font_update_sort_order
22111 only when enable_font_backend is set.
22112 (realize_x_face): Set face->font_info to that of default face only
22113 when enable_font_backend is set.
22114
22115 * xdisp.c (handle_composition_prop): Set it->c to the fist
22116 character of the composed region.
22117 (fill_composite_glyph_string): Set base_face->font_info to
22118 s->font_info. Get a face for ascii from base_face->ascii_face.
22119 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22120 with a face already decided.
22121 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22122 non-negative.
22123 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22124 call font_prepare_composition unconditionally.
22125
22126 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22127
22128 * xterm.h (struct x_display_info): New member font.
22129
22130 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22131 (x_set_mouse_face_gc, x_new_font): Likewise.
22132 (x_term_init): Setup display_info->font.
22133 (x_delete_terminal): Free display_info->font.
22134
22135 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22136
22137 * ftxfont.c (ftxfont_default_fid): Delete it.
22138 (ftxfont_open): Set xfont->fid to 0.
22139 (ftxfont_end_for_frame): Clear data specific to the frame and the
22140 font-driver.
22141
22142 * xftfont.c (xftfont_default_fid): Delete it.
22143 (xftfont_open): Set xfont->fid to 0.
22144
22145 * fontset.c (FONTSET_OBJLIST): New macro.
22146 (fontset_find_font): Update font-object list of the fontset.
22147 (free_realized_fontset): New function.
22148 (free_face_fontset): Call free_realized_fontset.
22149 (Ffont_info): Call font_close_object only when enable_font_backend
22150 is set.
22151
22152 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22153 [HAVE_NTGUI]: Include w32term.h.
22154 [MAC_OS]: Include macterm.ch.
22155 (font_otf_ValueRecord): Use make_number.
22156 (font_finish_cache): Fix handling of reference count.
22157 (font_clear_cache): Update num_fonts.
22158 (font_open_entity): Update smallest_char_width and
22159 smallest_font_height of the frame.
22160 (font_close_object): Update num_fonts.
22161 (Fclear_font_cache): Fix finding the target cache data.
22162
221632008-02-16 Glenn Morris <rgm@gnu.org>
22164
22165 * fontset.c (Finternal_char_font): Fix compilation warning.
22166
221672008-02-16 Eli Zaretskii <eliz@gnu.org>
22168
22169 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22170 instead of char arrays. Enlarge the size of array passed to
22171 get_token_information.
22172
22173 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22174 warnings.
22175
221762008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22177
22178 * .gdbinit: Don't set `args', it breaks gdb --args.
22179
221802008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22181
22182 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22183 within a narrowed buffer.
22184
221852008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22186
22187 * coding.c (decode_coding_object, encode_coding_object):
22188 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22189
221902008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22191
22192 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22193 hardcoding 1.
22194 (detect_coding_system):
22195 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22196 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22197 * insdel.c (insert_from_gap):
22198 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22199 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22200 (string_to_multibyte):
22201 * character.c (chars_in_text, multibyte_chars_in_text):
22202 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22203
22204 * character.h (FETCH_STRING_CHAR_ADVANCE)
22205 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22206 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22207 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22208
22209 * casefiddle.c (casify_region): Only call after-change and composition
22210 functions on the part of the region that was changed.
22211
22212 * keyboard.c (read_avail_input):
22213 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22214
222152008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22216
22217 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22218 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22219
222202008-02-11 Juanma Barranquero <lekktu@gmail.com>
22221
22222 * w32menu.c (push_submenu_start, push_submenu_end)
22223 (push_left_right_boundary, push_menu_pane, push_menu_item):
22224 * keyboard.c (read_key_sequence): Don't pass args with side effects
22225 to AREF, it fails when compiling with -DENABLE_CHECKING.
22226
222272008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22228
22229 * Makefile.in (${lispsource}international/charprop.el):
22230 Delete this target.
22231
22232 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22233 emacs-unicode-2.
22234
222352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22236
22237 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22238
222392008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22240
22241 * frame.c (Qnoelisp): New symbol.
22242 (syms_of_frame): Initialize it.
22243 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22244 harmless Elisp code, from a strong `force' from x_connection_closed.
22245 * frame.h (Qnoelisp): Declare.
22246 * xterm.c (x_connection_closed): Pass `noelisp'.
22247
22248 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22249 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22250 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22251 rather than `int' for the type of `type'.
22252
222532008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22254
22255 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22256
22257 * Makefile.in (GNUC): Remove support for gcc-1.x.
22258
222592008-02-10 Richard Stallman <rms@gnu.org>
22260
22261 * lisp.h (ASET): Use AREF, not ASLOT.
22262
222632008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22264
22265 * lisp.h (ASET): Check bounds.
22266
222672008-02-10 Glenn Morris <rgm@gnu.org>
22268
22269 * buffer.c (mode-name): Doc fix.
22270
222712008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22272
22273 * Makefile.in:
22274 * emacs.c:
22275 * gmalloc.c:
22276 * keyboard.c:
22277 * lisp.h:
22278 * m/ibm370aix.h:
22279 * process.c:
22280 * regex.c:
22281 * s/hpux.h:
22282 * sysdep.c:
22283 * sysselect.h:
22284 * systty.h:
22285 * unexec.c:
22286 * w32term.c:
22287 * xsmfns.c:
22288 * xterm.c: Remove code that deals with obsolete variables.
22289
22290 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22291
22292 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22293 nothing else needs it anymore.
22294
222952008-02-09 Eli Zaretskii <eliz@gnu.org>
22296
22297 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22298 instead of unibyte_char_to_multibyte.
22299
223002008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22301
22302 * s/gnu-linux.h: Remove commented out code.
22303
22304 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22305
22306 * Makefile.in: Update what RMS says about using autoconf.
22307 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22308 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22309 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22310 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22311
223122008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22313
22314 * keymap.c (Fkey_description): Move side effect outside of macro call.
22315
22316 * xfaces.c (Finternal_make_lisp_face):
22317 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22318
22319 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22320 (syms_of_fontset): Use ASET.
22321
22322 * fns.c (concat): Move side effect outside of macro call.
22323 (hash_clear): Use ASET.
22324
223252008-02-08 Richard Stallman <rms@gnu.org>
22326
22327 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22328 If FORCE, and frame has a surrogate minibuffer for another frame,
22329 delete the other frame first.
22330
223312008-02-07 Timo Savola <timo.savola@iki.fi>
22332
22333 * xterm.c (x_detect_focus_change): Handle embed client message.
22334 (handle_one_xevent): Ditto.
22335 (handle_one_xevent): If embedded and we get a button press/release,
22336 request focus.
22337 (xembed_set_info, xembed_send_message): New functions.
22338 (x_make_frame_visible): Call xembed_set_info if embedded.
22339 (x_make_frame_invisible): Call xembed_set_info if embedded.
22340 (x_term_init): Initialize Xatom_XEMBED.
22341 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22342 (x_iconify_frame): Ditto.
22343
22344 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22345 (enum xembed_info, enum xembed_message, enum xembed_focus)
22346 (enum xembed_modifier, enum xembed_accelerator): New.
22347 (xembed_set_info, xembed_send_message): Declare.
22348 (FRAME_X_EMBEDDED_P): New.
22349
22350 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22351 gtk_plug_new.
22352
22353 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22354 window ID of a frame.
22355 (x_window): Reparent frame if embedded.
22356 (Fx_create_frame): Don't set border width if embedded.
22357
22358 * emacs.c (USAGE3): Add --parent-id.
22359 (standard_args): Ditto.
22360
223612008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22362
22363 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22364
223652008-02-07 Jim Meyering <meyering@redhat.com>
22366
22367 Use "do...while (0)", not "if (1)...else" in macro definitions.
22368 The latter provokes a warning from gcc about the empty else, when
22369 followed by ";". Also, without that trailing semicolon, it would
22370 silently swallow up any following statement.
22371 * syntax.h (SETUP_SYNTAX_TABLE)
22372 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22373 * buffer.h (DECODE_POSITION): Likewise.
22374 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
22375 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
22376 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
22377 (FETCH_CHAR_ADVANCE): Likewise.
22378 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
22379
223802008-02-07 Jim Meyering <meyering@redhat.com>
22381
22382 * lread.c [lint]: Don't include <sys/inode.h>.
22383
223842008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
22385
22386 * xselect.c (x_handle_dnd_message):
22387 * xmenu.c (digest_single_submenu, xmenu_show):
22388 * xdisp.c (with_echo_area_buffer_unwind_data)
22389 (format_mode_line_unwind_data, unwind_format_mode_line)
22390 (display_menu_bar):
22391 * eval.c (Ffetch_bytecode):
22392 * doc.c (store_function_docstring):
22393 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
22394 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
22395 * buffer.c (add_overlay_mod_hooklist): Use ASET.
22396
223972008-02-07 Kenichi Handa <handa@m17n.org>
22398
22399 * ftxfont.c (ftxfont_open): Don't set
22400 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
22401
22402 * ftfont.c (ftfont_open): Fix previous change.
22403
224042008-02-06 Jason Rumney <jasonr@gnu.org>
22405
22406 * w32font.c (w32font_text_extents): Fill in lbearing metric.
22407 Use cached metrics for ASCII characters.
22408 (w32font_open_internal): Don't set font's owning_frame.
22409 Cache metrics for ASCII characters.
22410
22411 * w32font.h (struct w32font_info): Add ascii_metrics.
22412 Remove owning_frame.
22413
224142008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
22415
22416 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
22417 to negative value.
22418
22419 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
22420
22421 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
22422
22423 * charset.c (syms_of_charset): Set QCtest and Qeq.
22424
224252008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
22426
22427 * process.c (Fstart_process):
22428 * callproc.c (Fcall_process): Handle the case where
22429 Funhandled_file_name_directory returns nil.
22430
22431 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
22432 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
22433 * font.c (check_gstring): Use them and AREF to access the vector before
22434 we know it's really a gstring.
22435 (Ffont_shape_text): Fix typo.
46e722a9 22436 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
22437
22438 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
22439 Declare.
22440
22441 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
22442
224432008-02-05 Jason Rumney <jasonr@gnu.org>
22444
22445 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
22446 Set smallest_font_height and smallest_char_width in display info.
22447
224482008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
22449
22450 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
22451
224522008-02-05 Miles Bader <miles@gnu.org>
22453
22454 * xfaces.c (get_lface_attributes, merge_named_face)
22455 (lookup_named_face, lookup_derived_face, realize_named_face):
22456 Revert 2008-02-01 change by cyd@stupidchicken.com.
22457
224582008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
22459
22460 * fontset.c (Ffontset_info): Handle the case of inhibitting the
22461 fallback fonts.
22462 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
22463
224642008-02-04 Jason Rumney <jasonr@gnu.org>
22465
22466 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
22467 set full_name.
22468 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
22469
224702008-02-03 Jason Rumney <jasonr@gnu.org>
22471
22472 * makefile.w32-in (OBJ1): Include font.o here.
22473 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
22474
224752008-02-02 Jason Rumney <jasonr@gnu.org>
22476
22477 * makefile.w32-in (temacs): Bump EMHEAP to 21.
22478
224792008-02-01 Jason Rumney <jasonr@gnu.org>
22480
22481 * s/cygwin.h: Define VIRT_ADDR_VARIES.
22482
22483 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
22484
224852008-02-01 Andreas Schwab <schwab@suse.de>
22486
22487 * Makefile.in (shortlisp, lisp): Update for rename of
22488 ../lisp/language/myanmar.el.
22489
224902008-02-01 Chong Yidong <cyd@stupidchicken.com>
22491
22492 * xfaces.c (get_lface_attributes): Delete function.
22493 (merge_named_face, lookup_named_face, lookup_derived_face)
22494 (realize_named_face): Call lface_from_face_name directly, and use
22495 the fact that merge_face_vectors does not alter its FROM argument.
22496
224972008-02-01 Jason Rumney <jasonr@gnu.org>
22498
22499 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
22500 input in the default locale. Handle non-Unicode multibyte input.
22501
225022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22503
22504 * fontset.c (reorder_font_vector): Exclude nil elements from the
22505 font group. Don't try multiple fonts.
22506 (fontset_font): Adjust for the above change.
22507 (Finternal_char_font): Return nil if the found font doesn't
22508 contain the character ch.
22509
22510 * Makefile.in (lisp, shortlisp): Add cham.el.
22511
225122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22513
22514 * font.h (FONTP): Make it return 1 also for a font-object.
22515
22516 * .gdbinit (xfontset): New function.
22517
22518 * font.c (font_find_for_lface): Check if the character C is
22519 supported or not only for the first font.
22520
22521 * fontset.c (reorder_font_vector): Fix typo.
22522 (fontset_find_font): Don't add a font-spec specifying a script.
22523 Use 0 (not Qt) for the indication of empty font-group. Change the
22524 format of RFONT-DEF. Return Qt if no font in the font-group
22525 support the character.
22526 (fontset_font): Adjust for the above change. If no font was
22527 found the character, remember that.
22528 (face_for_char): Adjust for the change of RFONT-DEF.
22529 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
22530 no font for the target.
22531 (Finternal_char_font): Adjust for the change of RFONT-DEF.
22532
225332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22534
22535 * font.c (font_load_for_face): Handle the case that the font in
22536 face->lface is a string.
22537
225382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22539
22540 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
22541
225422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22543
22544 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22545 Fix previous change. If the frame is not on a window system,
22546 signal an error.
22547
225482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22549
bba3e508
SM
22550 * coding.c (decode_coding_object, encode_coding_object):
22551 Adjust marker positions after conversion.
aac0c6e3
MR
22552
22553 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22554
225552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22556
22557 * font.c (font_find_for_lface): Fix the handling of the return
22558 value of font_has_char.
22559 (Ffont_shape_text): Fix previous change.
22560
22561 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22562 (fontset_ref_and_range): Delete it.
22563 (fontset_find_font): Call char_table_ref_and_range instead of
22564 FONTSET_REF_AND_RANGE.
22565 (make_fontset): Don't setup font groups of Latin here.
22566 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22567 (new_fontset_from_font): Make the specified font the default for
22568 all Latin characters.
22569
225702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22571
22572 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22573 is on a window system before accessing the fontset of the frame.
22574
225752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22576
22577 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22578
22579 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22580 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22581
22582 * font.c (Ffont_shape_text): If the font driver doesn't have a
22583 shaper function, make zero-width glyphs to have at least one-pixel
22584 width. Fix setting of `to' field of glyphs.
22585
225862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22587
22588 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22589 glyphs.
22590
22591 * font.h (struct font_driver): Improve docstring of member `shape'.
22592
225932008-02-01 Kenichi Handa <handa@m17n.org>
22594
22595 * composite.c (syms_of_composite): Fix docstring of
22596 auto-composition-function.
22597
22598 * font.h (LGLYPH_SIZE): New macro.
22599
22600 * font.c (Ffont_fill_gstring): Stop filling when a character not
22601 supported by the font is found.
22602 (Ffont_shape_text): When a shape callback function returns nil,
22603 try at most two more times with larger gstring.
22604 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22605
22606 * xdisp.c (handle_auto_composed_prop): Change the argument to
22607 auto-composition-function.
22608
22609 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22610 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22611 Lispy glyph and store it in the lgstring.
22612
22613 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22614
22615 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22616
226172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22618
22619 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22620
22621 * fontset.c (Vfont_encoding_charset_alist): New variable.
22622 (syms_of_fontset): DEFVAR it.
22623 (reorder_font_vector, fontset_find_font): Optimize for the case of
22624 no need of reordering.
22625 (face_for_char): Map the charset property by
22626 Vfont_encoding_charset_alist.
22627
226282008-02-01 Jason Rumney <jasonr@gnu.org>
22629
22630 * w32font.c (logfonts_match): Don't check adstyle here.
22631 (font_matches_spec): Check here against physical font instead.
22632 (add_font_entity_to_list): Avoid some substitutions.
22633
22634 * font.c (font_parse_fcname): Default weight and slant to normal.
22635 (font_score): Prefer normal fonts if weight or slant unspecified.
22636 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22637 match freetype scores.
22638
226392008-02-01 Jason Rumney <jasonr@gnu.org>
22640
22641 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22642 font, as it may have been deleted.
22643 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22644 most common hyphenless variation.
22645 (logfonts_match): Check generic family.
22646 (font_matches_spec): Don't check generic family here.
22647 (fill_in_logfont): Set generic family based on adstyle.
22648
22649 * w32font.h (w32font_get_cache): Update declaration.
22650
226512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22652
22653 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22654
22655 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22656 If none of the new drivers are available, call font_update_drivers
22657 with the old drivers.
22658
22659 * w32font.c (w32font_get_cache): Adjust the argument type.
22660
22661 * xfont.c (xfont_get_cache): Adjust the argument type.
22662
22663 * font.h (struct font_driver): Change argument type of get_cache.
22664
22665 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22666
22667 * font.c (Ffont_get): Fix arguments to Fassoc.
22668 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22669 (font_clear_cache): New function.
22670 (font_list_entities, font_matching_entity): Use font_get_cache.
22671 (font_update_drivers): Call font_clear_cache when finishing a driver.
22672
22673 * fontset.c (fontset_find_font): Fix previous change.
22674
226752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22676
22677 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22678 dpyinfo->font_table.
22679 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22680 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22681
22682 * font.c (font_at): Handle the case that the arg C is negative.
22683 Handle the unibyte case.
22684 (Ffont_at): Call font_at with the arg C -1.
22685
22686 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22687 the position here, and call font_at with the arg C -1.
22688 Don't check the range of the existing composition at the point.
22689
226902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22691
22692 * fontset.c (fontset_add): New args charset_id and family.
22693 Change caller.
22694 (load_font_get_repertory, fontset_find_font): Assume that
22695 font_spec is always a font-spec object.
22696 (Fset_fontset_font): Always store a font-spec object in a fontset.
22697
22698 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22699 instead of get_property_and_range.
22700
227012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22702
22703 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22704 (xftfont_open): Don't keep locking face.
22705 (xftfont_close): Don't unlock face.
22706 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22707
22708 * fontset.c (fontset_find_font): Don't prefer a font of
22709 supplementary charset.
22710
227112008-02-01 Kenichi Handa <handa@m17n.org>
22712
22713 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22714 script, langsys_tag to langsys, new member script.
22715 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22716 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22717 listing to the script specified in that property. Fix arg to
22718 OTF_check_features.
22719
227202008-02-01 Jason Rumney <jasonr@gnu.org>
22721
22722 * w32font.h: New file.
22723
22724 * w32font.c: Include it.
22725 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22726 (w32font_open): Set owning_frame.
22727 (w32font_text_extents): Use owning_frame.
22728 (struct font_callback_data): Add opentype_only field.
22729 (add_font_entity_to_list): Use it to filter fonts.
22730 Don't check against full name.
22731 (w32font_list_internal): New function.
22732 (w32font_list): Use it.
22733 (w32font_match_internal): New function.
22734 (w32font_match): Use it.
22735 (w32font_open_internal): New function.
22736 (w32font_open): Use it.
22737 (w32font_get_cache, w32font_close, w32font_has_char)
22738 (w32font_encode_char, w32font_text_extents, w32font_draw):
22739 Make non-static.
22740
22741 * makefile.w32-in (w32font.o): Depend on w32font.h.
22742
227432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22744
22745 * charset.c (Fdefine_charset_internal): Record a supplementary
22746 charset at the tail of Vcharset_order_list.
22747
22748 * font.c (Ffont_shape_text): Fix the return value.
22749
22750 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22751
22752 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22753
227542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22755
22756 * ftfont.c (struct OpenTypeSpec): New struct.
22757 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22758 (ftfont_get_open_type_spec): New function.
22759 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22760
22761 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22762
227632008-02-01 Jason Rumney <jasonr@gnu.org>
22764
22765 * w32font.c (add_font_entity_to_list): Compare only the beginning
22766 of full name.
22767
227682008-02-01 Kenichi Handa <handa@m17n.org>
22769
22770 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22771 Never return HANDLED_RECOMPUTE_PROPS.
22772
227732008-02-01 Kenichi Handa <handa@m17n.org>
22774
22775 * font.c (font_gstring_produce): Delete it.
22776
22777 * composite.h (COMPOSITION_METHOD):
22778 Handle COMPOSITION_WITH_GLYPH_STRING.
22779
227802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22781
22782 * xfont.c (Qx): Delete.
22783 (syms_of_xfont): Don't initialize Qx.
22784
22785 * composite.h (enum composition_method):
22786 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22787
227882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22789
22790 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22791 (choose_face_font): Accept new form of font-spec.
22792
22793 * frame.h (font_driver_list): Declare it unconditionally.
22794 (struct frame): Define members font_driver_list and font_data_list
22795 unconditionally.
22796
22797 * fontset.c: Include "font.h" unconditionally.
22798 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22799 (Fset_fontset_font): Accept a font-spec object.
22800
22801 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22802 PIXEL_SIZE part a wild card.
22803
22804 * dispextern.h (struct glyph_string): Define members clip and
22805 num_clips unconditionally.
22806 (struct face): Define members font_info and extra unconditionally.
22807
22808 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22809 ftfont_info only when HAVE_LIBOTF is defined.
22810
228112008-02-01 Andreas Schwab <schwab@suse.de>
22812
22813 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22814 and end.
22815
228162008-02-01 Jason Rumney <jasonr@gnu.org>
22817
22818 * w32font.c (w32font_driver): Add new fields.
22819
228202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22821
22822 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22823 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22824 (LIBES): Add @M17N_FLT_CFLAGS@.
22825
22826 * composite.c (compose_text): Don't treat the new style
22827 composition specially.
22828
22829 * emacs.c (main): Call syms_of_font unconditionally.
22830
22831 * font.h (FONT_ENTITY_NOT_LOADABLE)
22832 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22833 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22834 (struct font_driver): New member shape.
22835 (font_registry_charsets): Extern it.
22836 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22837 (font_otf_capability, font_drive_otf): Delete their externs.
22838
22839 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22840 (font_charset_alist, font_registry_charsets): Move from xfont.c
22841 and rename.
22842 (font_prop_validate_otf): New function.
22843 (font_property_table): Register it for QCotf.
22844 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22845 (font_drive_otf): Delete.
22846 (font_prepare_composition): New arg F. Adjust for the change of
22847 lispy gstring.
22848 (font_find_for_lface): New arg C.
22849 (font_load_for_face): Adjust for the change of font_find_for_lface.
22850 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22851 lispy gstring.
22852 (Ffont_shape_text): New function.
22853 (Fopen_font): If the font size is not given, use 12-pixel.
22854 (Ffont_at): New arg STRING.
40b1a3a9 22855 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22856 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22857 conditionally.
22858
22859 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22860 fonts of the same font-spec. Change the format of RFONT-DEF.
22861 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22862 Adjust for the change of RFONT-DEF.
22863 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22864
22865 * ftfont.h: New file.
22866
22867 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22868 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22869 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22870 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22871 font_otf_capability and font_drive_otf, set ftfont_shape.
22872 (ftfont_list): Adjust for the change of :otf property value.
22873 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22874 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22875 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22876 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22877 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22878 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22879
22880 * w32term.c (x_draw_composite_glyph_string_foreground):
22881 Adjust for the change of lispy gstring.
22882
22883 * xdisp.c (handle_composition_prop): Adjust for the change of
22884 lispy gstring. Call a function for auto-composition with the
22885 third arg it->window.
22886 (fill_composite_glyph_string): Adjust for the change of lispy string.
22887 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22888
22889 * xfaces.c (set_font_frame_param): Adjust for the change of
22890 font_find_for_lface.
22891
22892 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22893 (xfont_registry_charsets): Likewise. Change caller.
22894 (syms_of_xfont): Don't handle x_font_charset_alist.
22895
22896 * xftfont.c: Include "ftfont.h".
22897 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22898 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22899 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22900 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22901 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22902 Set xftfont_driver.shape to xftfont_shape.
22903
22904 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22905 the change of lispy gstring.
22906
229072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22908
22909 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22910
229112008-02-01 Jason Rumney <jasonr@gnu.org>
22912
22913 * w32font.c (w32font_draw): Fill background manually.
22914
229152008-02-01 Jason Rumney <jasonr@gnu.org>
22916
22917 * font.c (Qfontp): Remove unused symbol.
22918 (QCantialias): New symbol.
22919 (syms_of_font): Define it.
22920 (font_property_table): Set a validator for QCantialias.
22921
22922 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22923 Define if not already.
22924 (QCfamily): Share with xfaces.c.
22925 (Qstandard, Qsubpixel, Qnatural): New symbols.
22926 (syms_of_w32font): Define them. Don't define QCfamily here.
22927 (w32_antialias_type, lispy_antialias_type): New functions.
22928 (w32_enumfont_pattern_entity): New arg requested_font.
22929 Set antialias parameter if non-default was requested.
22930 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22931
229322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22933
22934 * lread.c (read1): Undo the previous change.
22935
229362008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22937
22938 * frame.c (Fdelete_frame): Call font_update_drivers only when
22939 USE_FONT_BACKEND is defined.
22940
229412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22942
22943 * font.h (struct font_bitmap): New member bits_per_pixel.
22944 (struct font_driver): New members start_for_frame and end_for_frame.
22945 (struct font_data_list): New struct.
22946 (font_put_frame_data, font_get_frame_data): Extern them.
22947
22948 * frame.h (struct frame): New member font_data_list.
22949
22950 * font.c (font_update_drivers): Call driver->start_for_frame and
22951 driver->end_for_frame at proper timings.
22952 (font_put_frame_data, font_get_frame_data): New functions.
22953 (Ffont_spec): Add usage in the docstring.
22954
22955 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22956 (Fdelete_frame): Call font_update_drivers.
22957
22958 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22959 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22960 (xftfont_get_xft_draw): New function.
22961 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22962 (xftfont_end_for_frame): New function.
22963 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22964
22965 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22966 Change argument. Cache GCs in the per-frame data.
22967 (struct ftxfont_frame_data): New struct.
22968 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22969 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22970 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22971 (ftxfont_end_for_frame): New function.
22972 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22973
22974 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22975
229762008-02-01 Kenichi Handa <handa@m17n.org>
22977
22978 * xselect.c (Vselection_coding_system)
22979 (Vnext_selection_coding_system): Delete them.
22980 (syms_of_xselect): Don't declare selection-coding-system and
22981 next-selection-coding-system. They are declared in select.el.
22982
229832008-02-01 Jason Rumney <jasonr@gnu.org>
22984
22985 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22986
22987 * w32fns.c: Include imm.h.
22988 (get_composition_string_fn, get_ime_context_fn): New optional
22989 system functions.
22990 (globals_of_w32fns): Load them from imm32.dll.
22991 (ignore_ime_char): New flag.
22992 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22993 WM_IME_ENDCOMPOSITION messages.
22994
22995 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22996 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22997
229982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22999
23000 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23001 (READCHAR_REPORT_MULTIBYTE): New macro.
23002 (readchar): New 2nd arg MULTIBYTE.
23003 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23004 Make symbol's name multibyte according to the multibyteness of the
23005 source.
23006
230072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23008
23009 * xfaces.c (face_for_overlay_string): Call lookup_face with
23010 correct arguments (fix of synching with the trunk).
23011
230122008-02-01 Kenichi Handa <handa@m17n.org>
23013
23014 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23015 (font_prop_validate_non_neg, font_prop_validate_spacing):
23016 Delete argument prop_index.
23017 (font_property_table): Change arguments to validater. Change Callers.
23018 (font_lispy_object): Delete.
23019 (font_at): Use font_find_object instead fo font_lispy_object.
23020
230212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23022
23023 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23024 and file names.
23025
230262008-02-01 Jason Rumney <jasonr@gnu.org>
23027
23028 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23029 (font_matches_spec): Remove debug output.
23030 (add_font_entity_to_list): Avoid using substituted fonts.
23031
230322008-02-01 Jason Rumney <jasonr@gnu.org>
23033
23034 * doc.c (Fsnarf_documentation):
23035 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23036
230372008-02-01 Miles Bader <miles@gnu.org>
23038
23039 * dispextern.h (struct glyph_row): Only define "clip" field if
23040 HAVE_WINDOW_SYSTEM is defined.
23041
230422008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23043
23044 Fix up multi-tty merge.
23045
23046 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23047 and indentation.
23048
23049 * xfaces.c (free_realized_face, clear_face_gcs):
23050 Include font_done_for_face in the input_blocked section, just in case.
23051
23052 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23053 (get_char_face_and_encoding): Undo last change and remove the *other*
23054 duplicate definition (i.e. keep the one that's better scoped and that
23055 includes code for the font-backend).
23056
23057 * terminal.c (create_terminal): Default keyboard_coding to
23058 `no-conversion' and terminal_coding to `undecided'.
23059
23060 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23061
23062 * fontset.c (free_realized_fontsets): Check that the table entry does
23063 contain a fontset before trying to compare it to `base'.
23064
23065 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23066 syms_of_charset, and syms_of_coding earlier because init_window_once
23067 now needs Vcoding_system_hash_table to be setup.
23068
23069 * coding.h (default_buffer_file_coding): Remove.
23070
23071 * coding.c (default_buffer_file_coding): Remove.
23072 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23073 than ->symbol, and use the terminal-local coding system.
23074 (syms_of_coding): Don't setup the coding-systems that are not
23075 terminal-local.
23076 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23077
23078 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23079 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23080
23081 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23082 in chartab.c and were re-added here by mistake.
23083 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23084
23085 * doc.c (Fsnarf_documentation):
23086 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23087 src to etc.
23088
23089 * ChangeLog.10: Add mistakenly removed entry.
23090
230912008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23092
23093 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23094
230952008-02-01 Miles Bader <miles@gnu.org>
23096
23097 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23098 Add extra args to FACE_FOR_CHAR.
23099
231002008-02-01 Kenichi Handa <handa@m17n.org>
23101
23102 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23103 in sequence.
23104
23105 * chartab.c (map_sub_char_table, map_char_table): If the range
23106 contains just one character, call the function with that character
23107 even if the depth is not 3.
23108
231092008-02-01 Jason Rumney <jasonr@gnu.org>
23110
23111 * w32font.c (w32font_text_extents): Calculate metrics for the
23112 whole string.
23113
231142008-02-01 Jason Rumney <jasonr@gnu.org>
23115
23116 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23117
231182008-02-01 Jason Rumney <jasonr@gnu.org>
23119
bba3e508
SM
23120 * w32term.c (x_set_glyph_string_clipping):
23121 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23122 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23123 Adjust for the change of struct glyph_string.
23124
23125 * w32font.c (w32font_draw): Do clipping here.
23126
231272008-02-01 Kenichi Handa <handa@m17n.org>
23128
23129 * xftfont.c (xftfont_draw): Adjust for the change of struct
23130 glyph_string.
23131
bba3e508
SM
23132 * xterm.c (x_set_glyph_string_clipping):
23133 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23134 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23135 Adjust for the change of struct glyph_string.
23136
23137 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23138 the resulting clip(s}.
23139 (expose_overlaps): Add arg r. Change callers. Set it to
23140 row->clip temporarily.
23141 (expose_window): Redraw rows overlapping the exposed area.
23142
23143 * dispextern.h (struct glyph_row): New member clip.
23144 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23145 clip_height, new member clip, and num_clips.
23146
231472008-02-01 Kenichi Handa <handa@m17n.org>
23148
23149 * data.c (Fchar_or_string_p): Fix docstring.
23150
231512008-02-01 Kenichi Handa <handa@m17n.org>
23152
23153 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23154 create a temporary XftDraw object.
23155
231562008-02-01 Kenichi Handa <handa@m17n.org>
23157
23158 * font.c (Ffontp): Fix docstring.
23159
23160 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23161 strong evidence of ISO-2022.
23162
231632008-02-01 Kenichi Handa <handa@m17n.org>
23164
23165 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23166 SYNTAX_ENTRY_FOLLOW_PARENT.
23167
231682008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23169
23170 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23171 its type.
23172 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23173 Update to the new type of weak_hash_tables and next_weak.
23174
23175 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23176 a plain C pointer to Lisp_Hash_Table.
23177
23178 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23179 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23180 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23181 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23182 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23183 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23184 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23185 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23186 (GC_EQ): Remove since they've been identical to their non-GC_
23187 alter-egos ever since the markbit was eradicated.
23188
23189 * alloc.c:
23190 * buffer.c:
23191 * buffer.h:
23192 * data.c:
23193 * fileio.c:
23194 * filelock.c:
23195 * fns.c:
23196 * frame.h:
23197 * lisp.h:
23198 * macterm.c:
23199 * print.c:
23200 * process.c:
23201 * w32fns.c:
23202 * w32menu.c:
23203 * w32term.c:
23204 * xfns.c:
23205 * xmenu.c:
23206 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23207
232082008-02-01 Kenichi Handa <handa@m17n.org>
23209
23210 * chartab.c (map_sub_char_table): Make it work for the top-level
23211 char-table. Fix handling of parent char-table.
23212 (map_char_table): Adjust for the above change.
23213
232142008-02-01 Jason Rumney <jasonr@gnu.org>
23215
23216 * w32font.c (Qgdi): Rename from Qw32.
23217
232182008-02-01 Jason Rumney <jasonr@gnu.org>
23219
23220 * w32bdf.c (get_quoted_string): Make function static.
23221
232222008-02-01 Kenichi Handa <handa@m17n.org>
23223
23224 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23225 bigger ascent and descent than those of the font, use them as
23226 font's ascent and descent.
23227
232282008-02-01 Kenichi Handa <handa@m17n.org>
23229
23230 * Makefile.in (${lispsource}international/charprop.el): Move this
23231 target within "#ifdef HAVE_UNIDATA" and "#endif".
23232
232332008-02-01 Kenichi Handa <handa@m17n.org>
23234
23235 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23236 (shortlisp): Add ../lisp/language/tai-viet.el.
23237
232382008-02-01 Ulrich Mueller <ulm@gentoo.org>
23239
23240 * Makefile.in (${lispsource}international/charprop.el): Depend on
23241 temacs${EXEEXT}.
23242
232432008-02-01 Jason Rumney <jasonr@gnu.org>
23244
23245 * w32font.c (w32font_close): Delete the GDI font object.
23246
23247 * w32menu.c: Include character.h.
23248
23249 * w32proc.c: Likewise.
23250
23251 * w32select.c: Likewise.
23252
23253 * makefile.w32-in (w32proc.o): Depend on character.h.
23254
232552008-02-01 Jason Rumney <jasonr@gnu.org>
23256
23257 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23258
23259 * w32menu.c (syms_of_w32menu): Likewise.
23260
23261 * w32proc.c (syms_of_ntproc): Likewise.
23262
23263 * w32select.c (syms_of_w32select): Likewise.
23264
23265 * w32term.c (syms_of_w32term): Likewise.
23266
232672008-02-01 Jason Rumney <jasonr@gnu.org>
23268
23269 * w32font.c (w32font_draw): Delete brush after using it.
23270
232712008-02-01 Jason Rumney <jasonr@gnu.org>
23272
23273 * w32font.c (w32font_open): Don't set font_idx.
23274 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23275 to font settings.
23276 (w32font_draw): Fill background explicitly.
23277
232782008-02-01 Jason Rumney <jasonr@gnu.org>
23279
23280 * w32term.c (w32_initialize): Don't call w32font_initialize.
23281
23282 * w32font.c (w32font_info): Remove subranges.
23283 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23284 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23285 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23286 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23287 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23288 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23289 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23290 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23291 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23292 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23293 New symbols.
23294 (font_callback_data): New struct.
23295 (w32font_list, w32font_match): Use it.
23296 (w32font_open): Don't populate subranges.
23297 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23298 (w32font_encode_char): Always return unicode code-point as-is.
23299 (w32font_text_extents): Supply a transformation matrix to
23300 GetGlyphOutline. Never look up by glyph index. Avoid looping
23301 twice. Use unicode version of GetTexExtentPoint32 instead of
23302 glyph index version.
23303 (set_fonts_frame): Remove.
23304 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23305 set frame parameter. Use backward compatible fake foundries.
23306 Save generic family in extra slot under QCfamily. Make width slot
23307 constant. Save QCspacing value. Save list of scripts instead of
23308 binary subranges.
23309 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
23310 (add_font_entity_to_list): Use font_callback_data struct.
23311 Filter unwanted fonts.
aac0c6e3
MR
23312 (add_one_font_entity_to_list): Use font_callback_data struct.
23313 (w32_registry): Default to iso10646_1.
23314 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23315 string font registries. Don't fill in font name if it is a generic
23316 family name, fill family instead. Use spacing, family and script
23317 extra info to fill pitch, family and charset fields.
23318 (list_all_matching_fonts): Use font_callback_data struct.
23319 (unicode_range_for_char): Remove.
23320 (font_supported_scripts): New function.
23321 (w32font_initialize): Remove.
23322 (syms_of_w32font): Update which symbols are defined.
23323
233242008-02-01 Jason Rumney <jasonr@gnu.org>
23325
23326 * font.c (font_pixel_size): Reverse assq_no_quit args.
23327
23328 * w32term.h (FONT_WIDTH): Report max width, not average.
23329 (FONT_MAX_WIDTH): Remove.
23330 (FONT_AVG_WIDTH): New macro.
23331
23332 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23333 redefinition of FONT_WIDTH.
23334
23335 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23336 (w32_cache_char_metrics): Use FONT_WIDTH.
23337
23338 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23339
233402008-02-01 Jason Rumney <jasonr@gnu.org>
23341
23342 * w32font.c (w32font_open): Make lfHeight negative.
23343
23344 * w32fns.c (x_default_font_parameter): Use new style font name.
23345 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23346
233472008-02-01 Jason Rumney <jasonr@gnu.org>
23348
23349 * w32font.c (QCsubranges): New symbol.
23350 (w32font_open, w32font_has_char): Get subranges from subproperty
23351 of extra.
23352 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23353 (syms_of_w32font): Define :subranges symbol.
23354
23355 * font.c (font_put_extra): Expose externally.
23356
23357 * font.h (font_put_extra): Move declaration from font.c.
23358
23359 * font.c (Ffont_get): Use font driver to determine otf capability.
23360 (adjust_anchor): Check if driver defines anchor_point before using.
23361
23362 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23363 (w32font_draw): Use options.
23364 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23365 Fix detection of truetype fonts.
23366 (registry_to_w32_charset): Handle charsets other than iso8859-1
23367 expressed as lisp symbols.
23368 (w32_registry): Express charset as lisp symbol.
23369 (fill_in_logfont): Reverse pixel and point height logic.
23370 Don't set width here. Set quality to default.
23371
23372 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23373 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23374
23375 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23376 Remove redundant loop and allocation.
23377
23378 * makefile.w32-in (font.o, w32font.o): New objects.
23379 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
23380 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
23381
23382 * xdisp.c (fill_composite_glyph_string): Make the first arg to
23383 STORE_XCHARB a valid l-value.
23384
23385 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
23386 calculations for non-Truetype fonts.
23387 (x_draw_glyph_string): Sync with xterm.c.
23388 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23389 Remove redundant code.
23390 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
23391
23392 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
23393 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
23394
23395 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
23396 (x_to_w32_charset, w32_to_x_charset): Expose externally.
23397
23398 * w32font.c: New file for w32 font backend.
23399
234002008-02-01 Kenichi Handa <handa@m17n.org>
23401
23402 * term.c: Don't include "buffer.h" twice.
23403
234042008-02-01 Kenichi Handa <handa@m17n.org>
23405
23406 * character.c (Funibyte_string): New function.
23407 (syms_of_character): Defsubr it.
23408
234092008-02-01 Jason Rumney <jasonr@gnu.org>
23410
23411 * w32term.c [USE_FONT_BACKEND]:
23412 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
23413 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
23414 (x_draw_glyph_string, x_draw_glyph_string_foreground)
23415 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
23416 (x_free_frame_resources): Sync with xterm.c.
23417
234182008-02-01 Andreas Schwab <schwab@suse.de>
23419
23420 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
23421 char-table size.
23422
234232008-02-01 Kenichi Handa <handa@m17n.org>
23424
23425 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
23426
234272008-02-01 Kenichi Handa <handa@m17n.org>
23428
23429 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
23430 font_otf_gpos, add font_drive_otf.
23431
23432 * fontset.c (fontset_find_font): Pay attention to font size
23433 specified for a font.
23434 (reorder_font_vector): Check contents of font_def.
23435
23436 * font.c (struct otf_list): Delete it.
23437 (otf_list): Make it a lisp variable.
23438 (otf_open): Use lispy otf_list.
23439 (generate_otf_features): Rename from parse_gsub_gpos_spec.
23440 (check_otf_features): New function.
23441 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
23442 New functions.
23443 (font_drive_otf): New function merging font_otf_gsub and
23444 font_otf_gpos.
23445 (font_open_for_lface): New arg spec. Change argument order.
23446 (font_load_for_face): Adjust for the change of font_open_for_lface.
23447 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
23448 Ffont_otf_gpos.
23449 (syms_of_font): Staticpro otf_list. Delete defsubr of
23450 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
23451
23452 * xfaces.c (set_font_frame_param): Adjust for the change of
23453 font_open_for_lface.
23454
23455 * font.h (font_open_for_lface): Adjust prototype.
23456 (struct font_driver): Delete members otf_gsub and otf_gpos, add
23457 member otf_drive.
23458 (font_otf_gsub, font_otf_gpos): Delete externs.
23459 (font_drive_otf): Extern it.
23460
234612008-02-01 Kenichi Handa <handa@m17n.org>
23462
23463 * font.c (font_at): If the window W is not on a window system,
23464 return Qnil.
23465
23466 * coding.c (produce_chars, encode_coding): Don't call
23467 insert_from_gap if no characters to produce.
23468
234692008-02-01 Kenichi Handa <handa@m17n.org>
23470
23471 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
23472 Fclear_face_cache.
23473
23474 * xfaces.c (face_for_font): Check also face->font==font->font.font.
23475
234762008-02-01 Miles Bader <miles@gnu.org>
23477
23478 * emacs.c (main): Change default value of `enable_font_backend' to 1.
23479 Parse "--disable-font-backend" option.
23480 (standard_args): Add "--disable-font-backend" option.
23481
234822008-02-01 Kenichi Handa <handa@m17n.org>
23483
23484 * fontset.c (fontset_find_font): New function.
23485 (fontset_font): Use fontset_find_font.
23486 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
23487 Register the specified font for all Latin characters.
23488 (new_fontset_from_font): Register the specified font for all Latin
23489 characters.
23490 (dump_fontset): For a realized fontset, include the base fontset
23491 name in the returned vector.
23492
234932008-02-01 Kenichi Handa <handa@m17n.org>
23494
23495 * character.h (CHAR_STRING): Cast C to unsigned on calling
23496 char_string.
23497
23498 * character.c (char_string): Type of arg C changed to unsigned.
23499 Signal an error if C is an invalid character code.
23500
23501 * editfns.c (general_insert_function, Fchar_to_string):
23502 Use CHARACTERP, not INTEGERP.
23503
235042008-02-01 Kenichi Handa <handa@m17n.org>
23505
23506 * character.h (MIN_MULTIBYTE_LEADING_CODE)
23507 (MAX_MULTIBYTE_LEADING_CODE): New macros.
23508
23509 * regex.c (analyse_first): Fix for multibyte characters in "case
23510 charset:" and "case categoryspec:".
23511
235122008-02-01 Andreas Schwab <schwab@suse.de>
23513
23514 * Makefile.in (LIBES): Move standard libraries to the end.
23515
235162008-02-01 Kenichi Handa <handa@m17n.org>
23517
23518 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
23519 nonzero, don't shrink the buffer nextb.
23520
23521 * buffer.h (struct buffer_text): New member inhibit_shrinking.
23522
23523 * coding.c (coding_alloc_by_making_gap): New arg offset.
23524 (alloc_destination): Call coding_alloc_by_making_gap with the arg
23525 offset.
23526 (decode_coding_iso_2022): Update coding->safe_charsets.
23527 (decode_coding_gap): Temporarily set
23528 current_buffer->text->inhibit_shrinking to 1.
23529
235302008-02-01 Kenichi Handa <handa@m17n.org>
23531
bba3e508
SM
23532 * xterm.c (x_draw_composite_glyph_string_foreground):
23533 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
23534
235352008-02-01 Juanma Barranquero <lekktu@gmail.com>
23536
23537 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
23538
235392008-02-01 Kenichi Handa <handa@m17n.org>
23540
23541 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
23542 target_multibyte instead of multibyte.
23543 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23544 (bcmp_translate): Change the argument name from multibyte to
23545 target_multibyte.
23546
235472008-02-01 Kenichi Handa <handa@m17n.org>
23548
23549 These changes are to compile a regexp into a pattern that can be
23550 used both for multibyte and unibyte targets.
23551
23552 * Makefile.in (search.o): Depend on charset.h.
23553
23554 * character.c (multibyte_char_to_unibyte_safe): New function.
23555
23556 * search.c: Include "charset.h".
23557 (compile_pattern_1): Delete argument multibyte. Don't set
23558 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23559 (compile_pattern): Don't compare cp->buf.target_multibyte.
23560 Compare cp->buf.charset_unibyte.
23561 (compile_pattern): Set cp->buf.target_multibyte.
23562
23563 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23564
23565 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23566
23567 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23568 multibyte. Change callers.
23569 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23570 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23571 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23572 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23573 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23574 (regex_compile): Make the compiled pattern usable both for
23575 multibyte and unibyte targets.
23576 (analyse_first): Make the fastmap usable both for multibyte and
23577 unibyte targets.
23578 (TRANSLATE_VIA_MULTIBYTE): Delete.
23579 (re_match_2_internal): Pay attention to the case that the
23580 multibyteness of bufp and target may be different.
23581
235822008-02-01 Kenichi Handa <handa@m17n.org>
23583
23584 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23585 empty box occupy at least one column width.
23586
235872008-02-01 Miles Bader <miles@gnu.org>
23588
23589 * Makefile.in: Remove redundant HAVE_XFT clause.
23590
235912008-02-01 Kenichi Handa <handa@m17n.org>
23592
23593 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23594
235952008-02-01 Kenichi Handa <handa@m17n.org>
23596
23597 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23598 being nil.
23599
236002008-02-01 Kenichi Handa <handa@m17n.org>
23601
23602 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23603
236042008-02-01 Kenichi Handa <handa@m17n.org>
23605
23606 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23607
236082008-02-01 Kenichi Handa <handa@m17n.org>
23609
23610 * search.c (simple_search): Fix previous change.
23611
236122008-02-01 Kenichi Handa <handa@m17n.org>
23613
23614 * xftfont.c (ftfont_font_format): Extern declaration.
23615
23616 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23617
23618 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23619 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23620
23621 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23622 (ftfont_font_format): Fix previous change.
23623
23624 * font.h (Ffont_xlfd_name): EXFUN it.
23625
23626 * font.c (font_parse_xlfd): Fix the array size of `f'.
23627 (register_font_driver): Use EQ to compare driver->type.
23628
23629 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23630 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23631 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23632
236332008-02-01 Kenichi Handa <handa@m17n.org>
23634
23635 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23636 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23637
236382008-02-01 Kenichi Handa <handa@m17n.org>
23639
23640 * xfont.c (xfont_open): Set font->format.
23641
23642 * xftfont.c (xftfont_open): Set font->format.
23643
23644 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23645 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23646 (ftfont_open): Set font->format.
23647 (ftfont_font_format): New function.
23648
23649 * font.h (struct font): New member format.
23650
23651 * font.c (Qopentype): New variable.
23652 (syms_of_font): Defsym it.
23653 (Fquery_font): Change the format of the last element of the return
23654 value.
23655
236562008-02-01 Kenichi Handa <handa@m17n.org>
23657
23658 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23659 last resort.
23660
236612008-02-01 Kenichi Handa <handa@m17n.org>
23662
23663 * coding.c (detect_coding_charset): Fix detection of multi-byte
23664 charset.
23665
236662008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23667
23668 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23669
236702008-02-01 Kenichi Handa <handa@m17n.org>
23671
23672 * xdisp.c (get_next_display_element): Set it->face_id for the
23673 first component of a composition.
23674 (x_produce_glyphs): Check if the font is changed or not for composition.
23675
236762008-02-01 Kenichi Handa <handa@m17n.org>
23677
23678 * fontset.c (Qlatin): New variable.
23679 (syms_of_fontset): Define it as a lisp symbol.
23680 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23681
236822008-02-01 Kenichi Handa <handa@m17n.org>
23683
23684 * font.c (font_unparse_fcname): Pay attention to the case that
23685 some of font property is a null string.
23686
236872008-02-01 Kenichi Handa <handa@m17n.org>
23688
23689 * term.c: Include "composite.h".
23690 (encode_terminal_code): Output all components of composition.
23691 Check the size of encode_terminal_src.
23692 (produce_glyphs): For composition, call produce_composite_glyph.
23693 (append_composite_glyph, produce_composite_glyph): New functions.
23694
23695 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23696 is not found, get font_info from the current ascii face.
23697
236982008-02-01 Kenichi Handa <handa@m17n.org>
23699
23700 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23701 buffer-file-name to Qnil before calling insert_from_buffer.
23702
23703 * font.c (font_unparse_fcname): Pay attention to the case that
23704 foundry is a null string.
23705
237062008-02-01 Kenichi Handa <handa@m17n.org>
23707
23708 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23709
23710 * font.c (Qunicode_sip): New variable.
23711 (syms_of_font): Declare it as a Lisp symbol.
23712
23713 * font.h (Qunicode_sip): Extern it.
23714
237152008-02-01 Kenichi Handa <handa@m17n.org>
23716
23717 * composite.c (get_composition_id): Pay attention to TAB component.
23718
23719 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23720 TAB. Adjust for the change of s->char2b which always points to
23721 the first element of allocated memory.
23722
23723 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23724
23725 * xdisp.c (handle_composition_prop): Set it->c to the first
23726 non-TAB component.
23727 (fill_composite_glyph_string): Change argument.
23728 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23729 (x_produce_glyphs): Fix handling of left/right padding.
23730
237312008-02-01 Kenichi Handa <handa@m17n.org>
23732
23733 * coding.c (detect_coding_system): Fix for handling off
23734 inhibit_iso_escape_detection. Fix for the case that no coding
23735 system is defined for a specific coding category.
23736
237372008-02-01 Kenichi Handa <handa@m17n.org>
23738
23739 * font.c (font_matching_entity): Delete unused local var.
23740
23741 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23742 opening a font.
23743
23744 * fileio.c (Finsert_file_contents): On recovering a file, assume
23745 Unix-like eol.
23746 (choose_write_coding_system): On auto-saving a file, force
23747 Unix-like eol.
23748
23749 * coding.c (setup_coding_system): Fix setting of
23750 coding->common_flags based on eol_type.
23751 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23752 inherit from it.
23753
237542008-02-01 Kenichi Handa <handa@m17n.org>
23755
23756 * alloc.c (NSTATICS): Increas to 0x600.
23757
237582008-02-01 Kenichi Handa <handa@m17n.org>
23759
23760 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23761 (ftfont_list): Don't check :name property.
23762 (ftfont_match): New function.
23763 (ftfont_pattern_entity): If the pattern doesn't contain
23764 FC_SPACING, don't assume FC_MONO.
23765
23766 * font.h (struct font_driver): New member `match'.
23767 (font_update_drivers): Adjust prototype.
23768
23769 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23770 property of FONT.
bba3e508
SM
23771 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23772 Define them unconditionally.
aac0c6e3
MR
23773 (font_matching_entity): New function.
23774 (font_open_by_name): Try font_matching_entity if exact match is
23775 not found.
23776 (font_update_drivers): Delete the arg FONT. Return a list of
23777 actually used backends. Don't free faces, font caches here.
23778 Don't store data in frame parameters. Don't call x_set_font.
23779 (Ffont_spec): Store :name property as is.
23780 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23781 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23782 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23783 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23784 Call font->driver->otf_gsub instead of font_otf_gsub.
23785
23786 * frame.c (x_set_font_backend): Do more works that were done in
23787 font_update_drivers before.
23788
23789 * xfont.c (xfont_match): New function.
23790 (xfont_driver): Set xfont_driver.match to xfont_match.
23791 (xfont_draw): Set font in GC if necessary.
23792
23793 * ftxfont.c (ftxfont_match): New function.
23794 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23795
23796 * xftfont.c (xftfont_match): New function.
23797 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23798
237992008-02-01 Kenichi Handa <handa@m17n.org>
23800
23801 * font.h (struct font): New member scalable.
23802 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23803 (font_otf_gsub): Adjust prototype.
23804
23805 * font.c (font_otf_capability): Fix handling of the default langsys.
23806 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23807 Check the contents of SPEC.
23808 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23809 (check_gstring): New function.
23810 (REPLACEMENT_CHARACTER): New macro.
23811 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23812 glyph codes of GSTRING.
23813 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23814 (font_prepare_composition): Set cmp->glyph_len.
23815 (font_open_entity): Set font->scalable.
23816 (Ffont_get): Handle :otf property.
bba3e508
SM
23817 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23818 New functions.
aac0c6e3
MR
23819 (Fquery_font): Use font->font.full_name.
23820 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23821 Sfont_otf_alternates.
23822
23823 * ftfont.c (ftfont_open): Set font->font.full_name and
23824 font->font.name properly. Fix calculation of font->font.height
23825 and font->min_width.
23826
23827 * ftxfont.c (ftxfont_create_gcs): New function.
23828 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23829 (ftxfont_draw_backgrond): Fix filling region.
23830 (ftxfont_default_fid): New function.
23831 (ftxfont_open): Set xfont->fid to the return value of
23832 ftxfont_default_fid.
23833 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23834 (ftxfont_done_face): Free only GCs that are created by
23835 ftxfont_create_gcs.
23836 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23837
23838 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23839 Clip to src->width, etc (not src->clip_XXX).
23840
23841 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23842 FontBackend frame parameter.
23843
238442008-02-01 Kenichi Handa <handa@m17n.org>
23845
23846 * font.h (struct font_driver_list): New member `on'.
23847 (Fclear_font_cache): EXFUN it.
23848 (font_update_drivers): Extern it.
23849
23850 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23851 (font_list_entities): Check driver_list->on.
40b1a3a9 23852 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23853 (font_update_drivers): New function.
23854 (Fclear_font_cache): Check driver_list->on.
23855
23856 * frame.h (Qfont_backend): Extern it.
23857 (x_set_font_backend): Extern it.
23858
23859 * frame.c (Qfont_backend): New variable.
23860 (frame_parms): New element for font-backend.
23861 (x_set_font_backend): New function.
23862
23863 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23864 FontBackend frame parameter.
23865 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23866 x_set_font_backend.
23867
23868 * xfont.c (xfont_list): Don't try listing by :name property if the
23869 name is not for XLFD.
23870
238712008-02-01 Kenichi Handa <handa@m17n.org>
23872
23873 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23874 (LGLYPH_SET_TO): New macros.
23875 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23876 element of G is vector or not.
23877 (font_at): Extern it.
23878
23879 * font.c: Include window.h.
23880 (font_lispy_object): New function.
23881 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23882 end of valid glyph.
23883 (font_close_object): Fix getting (struct font *).
23884 (font_at): New function.
23885 (Ffont_get): If FONT is a font-object, get entity from it.
23886 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23887 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23888 Fix range check.
aac0c6e3
MR
23889 (Ffont_at): New function.
23890 (syms_of_font): Defsubr Sfont_at.
23891
23892 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23893 before the entry for Qcomposition.
23894 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23895 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23896 the font in gstring.
23897 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23898 LGLYPH_FORM (g) to detect the end of valid glyph.
23899 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23900 we are composing with gstring.
23901
23902 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23903 Check if adjustment is vector or not.
23904
23905 * Makefile.in (font.o): Make it depends on window.h.
23906
239072008-02-01 Kenichi Handa <handa@m17n.org>
23908
23909 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23910 adjustment is vector or not.
23911
239122008-02-01 Miles Bader <miles@gnu.org>
23913
23914 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23915
239162008-02-01 Kenichi Handa <handa@m17n.org>
23917
23918 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23919 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23920 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23921
23922 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23923 (DEVICE_DELTA): Fix typo.
23924 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23925 LGLYPH format.
23926
23927 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23928 the change of LGLYPH format.
23929
239302008-02-01 Kenichi Handa <handa@m17n.org>
23931
23932 * ftfont.c (ftfont_list): Fix typo.
23933 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23934
239352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23936
23937 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23938
23939 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23940 xftface_info is non-NULL.
23941
239422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23943
23944 * ftfont.c (ftfont_list): Move misplaced #endif.
23945
239462008-02-01 Kenichi Handa <handa@m17n.org>
23947
23948 * ftfont.c (ftfont_list): Pay attention to the case that
23949 FC_CAPABILITY is not defined.
23950
239512008-02-01 Kenichi Handa <handa@m17n.org>
23952
23953 * xftfont.c (xftfont_open): Set charset related members to -1.
23954
23955 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23956 QCname.
23957 (ftfont_open): Set charset related members to -1.
23958
23959 * fontset.c (Votf_script_alist): New variable.
23960 (syms_of_fontset): Initialize it.
23961 (fontset_font): Delete unused variable.
23962
23963 * fontset.h (Votf_script_alist): Extern it.
23964
23965 * font.c (font_find_for_lface): Optimize code.
23966
23967 * font.h (font_close_object, font_merge_old_spec): Extern them.
23968
239692008-02-01 Kenichi Handa <handa@m17n.org>
23970
23971 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23972 (syms_of_font): Initialize them.
23973 (font_pixel_size): Allow float value in dpi.
23974 (font_prop_validate_type): Delete.
23975 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23976 Change caller.
23977 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23978 (font_prop_validate_extra): Delete.
23979 (font_prop_validate_spacing): New function.
23980 (font_property_table): Add elements for all known properties.
bba3e508
SM
23981 (get_font_prop_index): Rename from check_font_prop_name.
23982 New argument FROM. Change caller.
aac0c6e3
MR
23983 (font_prop_validate): Validate all known properties.
23984 (font_put_extra): Delete argument force. Change caller.
23985 (font_expand_wildcards): Make it static. Fix the way of shrinking
23986 the possible range.
23987 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23988 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23989 Change caller.
23990 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23991 (font_parse_fcname): Delete argument merge. Fix parsing of point
23992 size. Don't validate properties values here. Change caller.
23993 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23994 (font_open_by_name): Delete unused variable.
23995 (Ffont_spec): Likewise. Validate property values.
23996 (Ffont_match_p): New function.
23997
23998 * font.h (QCscalable): Extern it.
23999 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24000
24001 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24002
24003 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24004 (xfont_list_pattern): New function.
24005 (xfont_list): Use xfont_list_pattern.
24006
240072008-02-01 Kenichi Handa <handa@m17n.org>
24008
24009 * font.h (Flist_fonts): EXFUN it.
24010
240112008-02-01 Jason Rumney <jasonr@gnu.org>
24012
24013 * w32term.c (w32_initialize): Add back smoothing_type and
24014 smoothing_enabled definitions.
24015
240162008-02-01 Kenichi Handa <handa@m17n.org>
24017
24018 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24019 s->face->font on determining underline position.
24020
240212008-02-01 Kenichi Handa <handa@m17n.org>
24022
24023 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24024 (font_has_char): Accept font-object too.
24025 (font_find_for_lface): Try at first with a size specified in face.
24026
240272008-02-01 Kenichi Handa <handa@m17n.org>
24028
24029 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24030 font_open_by_name.
24031
240322008-02-01 Kenichi Handa <handa@m17n.org>
24033
24034 * font.h (QCspacing, QCdpi): Extern them.
24035 (enum font_spacing): New enum.
24036 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24037
24038 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24039 (QCspacing, QCdpi): New variables.
24040 (syms_of_font): Initialize them.
24041 (font_pixel_size): New function.
24042 (font_put_extra): New function.
24043 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24044 in FONT_EXTRA.
24045 (font_parse_fcname): Handle enumerated values (e.g. bold).
24046 Fix handling font size. Add QCname property that contains only
24047 unknown properties.
24048 (font_score): Change argument. Change caller. Pay attention to
24049 FONT_PIXEL_SIZE_QUANTUM.
24050 (font_sort_entites, font_list_entities, font_find_for_lface)
24051 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24052 (Ffont_spec): Add QCname property that contains only unknown properties.
24053
bba3e508
SM
24054 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24055 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
24056 listed font. Don't include scalable in pattern. Pay attention to
24057 FONT_PIXEL_SIZE_QUANTUM.
24058
240592008-02-01 Kenichi Handa <handa@m17n.org>
24060
24061 * font.c (font_parse_fcname): Fix parsing of point-size.
24062 (font_unparse_fcname): Produce symbolic names for style properties.
24063 (font_list_entities): Handle float size correctly.
24064 (font_open_by_name): Prefer `normal' property values if the name
24065 doesn't specify them.
24066
24067 * fontset.c (Finternal_char_font): Use font_get_name, not
24068 Ffont_xlfd_name.
24069
24070 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24071 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24072 pattern. Don't force scalable.
24073
24074 * xftfont.c (xftfont_open): For generating a name, start from
24075 96-byte buffer.
24076
240772008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24078
24079 * frame.h (x_new_fontset2): Fix prototype.
24080
240812008-02-01 Kenichi Handa <handa@m17n.org>
24082
24083 * font.h (struct font_driver): Delete member parse_name.
24084 (font_match_p, font_get_spec, font_parse_fcname)
24085 (font_unparse_fcname): Extern them.
24086 (font_get_name): Adjust prototype.
24087
24088 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24089 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
24090 (font_expand_wildcards): Fix handling ENCODING field.
24091 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
24092 (font_parse_fcname): New function.
24093 (font_unparse_fcname): New function.
24094 (font_parse_name): New function.
24095 (font_match_p): New function.
24096 (font_get_name): Change return value to Lisp string.
24097 (font_get_spec): New function.
24098 (Qunspecified, Qignore_defface): Don't extern them.
24099 (font_find_for_lface): Assume that LFACE is fully specified.
24100 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24101 object, use it for FACE.
24102 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24103 driver->parse_name.
24104 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24105
24106 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24107 prototype.
24108
24109 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24110 argument F. Don't call Fnew_fontset. Instead, directly call
24111 make_fontset.
24112
24113 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24114
24115 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24116 of x_new_fontset2.
24117
24118 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24119 (Qsans__serif): New variables.
24120 (ftfont_generic_family_list): New variable.
24121 (syms_of_ftfont): Initialize the above variables.
24122 (ftfont_pattern_entity): Delete argument NAME.
24123 (ftfont_list_generic_family): New function.
24124 (ftfont_parse_name): Delete this function.
24125 (ftfont_list): Try generic family only when FcFontList found no font.
24126 (ftfont_list_family): Fix args to FcObjectSetBuild.
24127
24128 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24129 object in attrs[LFACE_FONT_INDEX].
24130 (set_lface_from_font_name): Cancel all changes for font-backend.
24131 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24132 function.
24133 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24134 font object in QCfont attribute.
24135 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24136 (realize_default_face) [USE_FONT_BACKEND]: Call
24137 set_lface_from_font_and_fontset.
24138
24139 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24140 "fixed", and signal error here if no suitable font was found.
24141
24142 * xfont.c (xfont_parse_name): Delete this function.
24143
24144 * xftfont.c (xftfont_open): Change coding style of error
24145 handling. Generate fontconfig's fontname pattern.
24146
24147 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24148 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24149
24150 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24151 Both args FONTSET and FONT_OBJECT must be existing ones.
24152
241532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24154
24155 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24156
241572008-02-01 Kenichi Handa <handa@m17n.org>
24158
24159 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24160
24161 * font.h (struct font): Fix typo.
24162
24163 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24164 XLFD_XXX_INDEX.
24165 (enum xlfd_field_mask): New enum.
ef1b0ba7 24166 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24167 are followed by non-digits, return a symbol.
24168 (font_expand_wildcards): New function.
24169 (font_parse_xlfd): Fix wildcard handling.
24170 (Ffont_spec): If :name is specified, reflect the info in the other
24171 properties.
24172
24173 * ftfont.c (ftfont_pattern_entity): Fix typo.
24174 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24175 locale.
24176
241772008-02-01 Kenichi Handa <handa@m17n.org>
24178
24179 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24180
24181 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24182 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24183 registry doesn't specify encoding part.
24184 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24185 (font_open_by_name): At first try parsing the name.
24186 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24187 as Lisp symbols.
24188
24189 * fontset.c (reorder_font_vector): Pay attention to the case that
24190 the 3rd element of font_def is nil.
24191 (fontset_font): For the default fontset, append one more fontset
24192 elements for a script-based font specification. Don't add script
24193 attribute on finding a font.
24194 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24195 font name.
24196 (fontset_ascii_font): If a font can't be opened, return nil.
24197
24198 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24199 (ftfont_pattern_entity): New function.
24200 (ftfont_get_cache): Assume that freetype_font_cache is already
24201 initialized.
24202 (ftfont_list): Handle the case that a file is specified in font
24203 name. Use ftfont_pattern_entity to generate entities.
24204 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24205 (syms_of_ftfont): Initialize freetype_font_cache.
24206
24207 * xftfont.c (xftfont_open): Make the font name fontconfig's
24208 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24209 (xftfont_close): Free font->font.name if not NULL.
24210
24211 * xfont.c (xfont_list): If script is specified for a font, return
24212 null_vector.
24213 (xfont_list_family): Declare argument type.
24214
24215 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24216 name, set LFACE_FONT (lface) to nil.
24217
24218 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24219 return Qnil.
24220
242212008-02-01 Kenichi Handa <handa@m17n.org>
24222
24223 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24224 (standard_args): Add "-enable-font-backend".
24225
242262008-02-01 Kenichi Handa <handa@m17n.org>
24227
24228 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24229 (struct xftdraw_list, xftdraw_list): Delete them.
24230 (register_xftdraw, check_xftdraw): Delete them.
24231 (xftfont_prepare_face): Don't call register_xftdraw.
24232 (xftfont_done_face): Don't call check_xftdraw.
24233 (xftfont_draw): Get background color only when with_background is
24234 nonzero.
24235
24236 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24237
242382008-02-01 Kenichi Handa <handa@m17n.org>
24239
24240 These changes are for the new font handling codes.
24241
24242 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24243 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24244 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24245 (FONTSRC, FONTOBJ): New variables.
24246 (obj): Add $(FONTOBJ).
24247 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24248 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24249 @LIBOTF_LIBS@.
24250 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24251 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24252
24253 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24254
24255 * character.h (Vscript_representative_chars): Extern it.
24256
24257 * character.c (Vscript_representative_chars): New variable.
24258 (syms_of_character): Declare it as a Lisp variable.
24259
24260 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24261 enable_font_backend is nonzero, accept the composition method
24262 COMPOSITION_WITH_GLYPH_STRING.
24263
24264 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24265 enumeration COMPOSITION_WITH_GLYPH_STRING.
24266
24267 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24268 members clip_x, clip_y, clip_width, and clip_height.
24269 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24270
24271 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24272 --enable-font-backend. Call syms_of_font.
24273
24274 * fns.c (assoc_no_quit): New function.
24275
24276 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24277 (face_for_font, new_fontset_from_font)
24278 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24279
24280 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24281 (fontset_font, fontset_ascii, face_for_char)
24282 (make_fontset_for_ascii_face, Ffont_info)
24283 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24284 is nonzero, use font-backend mechanism.
24285 (find_font_encoding): Make it non-static.
24286 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24287 New functions.
24288
24289 * frame.h (struct frame): New members resx and resy.
24290 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24291 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24292
24293 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24294 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24295
24296 * lisp.h (assoc_no_quit): Extern it.
24297
24298 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24299 Through out the file, use FONT_INFO_FROM_FACE instead of
24300 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24301 rif->per_char_metric.
24302 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24303 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24304 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24305 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24306 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24307 nonzero, use font-backend mechanism.
24308 (get_per_char_metric): New function.
24309
24310 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24311 (set_lface_from_font_name)
24312 (set_font_frame_param, free_realized_face)
24313 (prepare_face_for_display, clear_face_gcs)
24314 (Finternal_set_font_selection_order, realize_x_face)
24315 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24316 font-backend mechanism.
24317 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24318 (load_face_font) [USE_FONT_BACKEND]: Abort.
24319 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24320 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24321
24322 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24323 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24324 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
24325 nonzero, register all available font drivers.
24326 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
24327 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24328
24329 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24330 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24331 (x_set_glyph_string_clipping_exactly)
24332 (x_compute_glyph_string_overhangs)
24333 (x_draw_glyph_string_foreground)
24334 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24335 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24336 enable_font_backend is nonzero, use font-backend mechanism.
24337 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24338
243392008-02-01 Kenichi Handa <handa@m17n.org>
24340
24341 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24342 system_eol_type.
24343 (syms_of_coding): Initialize system_eol_type.
24344
24345 * process.c (Fset_process_coding_system): Inherit system's eol
24346 format if necessary.
24347
243482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24349
24350 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24351
243522008-02-01 Kenichi Handa <handa@m17n.org>
24353
24354 * coding.c (decode_eol): Pay attention to buffer relocation in
24355 del_range_2.
24356 (decode_coding): Call decode_eol before restoring undo_list.
24357
243582008-02-01 Kenichi Handa <handa@m17n.org>
24359
24360 * charset.c (Fdefine_charset_internal): Fix setting of
24361 emacs_mule_bytes.
24362
243632008-02-01 Kenichi Handa <handa@m17n.org>
24364
24365 * keyboard.c (read_char): Check if C is a character or not before
24366 looking up Vkeyboard_translate_table.
24367
243682008-02-01 Kenichi Handa <handa@m17n.org>
24369
bba3e508
SM
24370 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24371 Fix condition to terminate the loop.
aac0c6e3
MR
24372
243732008-02-01 Kenichi Handa <handa@m17n.org>
24374
24375 * coding.c (produce_composition): Compare charbuf[i] instead of
24376 args[i] against 0.
24377 (Fterminal_coding_system): Use EQ to compare Lisp objects.
24378
243792008-02-01 Kenichi Handa <handa@m17n.org>
24380
24381 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
24382 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
24383 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
24384 detect_coding.
24385 (emacs_mule_char): Handle old style (Emacs 20) component character
24386 of a composition.
24387 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
24388 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
24389 composition rule.
24390 (decode_coding_emacs_mule): Handle invalid bytes correctly.
24391
243922008-02-01 Kenichi Handa <handa@m17n.org>
24393
24394 * coding.c (encode_coding_ccl): Allocate destination dynamically
24395 when necessary.
24396
243972008-02-01 Kenichi Handa <handa@m17n.org>
24398
24399 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
24400 the loop. When quitted, show a proper error message.
24401
244022008-02-01 Kenichi Handa <handa@m17n.org>
24403
bba3e508
SM
24404 * xterm.c (x_set_glyph_string_clipping_exactly):
24405 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
24406
24407 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
24408 character sequence.
24409 (Fccl_execute_on_string): Use ASET, not XSET.
24410
244112008-02-01 Kenichi Handa <handa@m17n.org>
24412
24413 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
24414
244152008-02-01 Kenichi Handa <handa@m17n.org>
24416
24417 * coding.c (decode_coding): Fix the condition of terminating the
24418 decoding loop.
24419
244202008-02-01 Kenichi Handa <handa@m17n.org>
24421
24422 * data.c (Faset): On setting a character bigger than 255 in a
24423 unibyte string, signal an error instead of make the string multibyte.
24424
244252008-02-01 Kenichi Handa <handa@m17n.org>
24426
24427 * charset.c (map_charset_chars): Fix for ascii-compatible charset
24428 made by a mapping table.
24429
244302008-02-01 Kenichi Handa <handa@m17n.org>
24431
24432 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
24433 not.
24434 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
24435 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
24436
bba3e508
SM
24437 * xterm.c (x_draw_composite_glyph_string_foreground):
24438 Check s->face is NULL or not.
aac0c6e3
MR
24439
244402008-02-01 Kenichi Handa <handa@m17n.org>
24441
24442 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
24443 (x_draw_glyph_string): Fix drawing of right_overhang and
24444 left_overhang around/on cursor.
24445
24446 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
24447
244482008-02-01 Kenichi Handa <handa@m17n.org>
24449
24450 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
24451
244522008-02-01 Kenichi Handa <handa@m17n.org>
24453
24454 * coding.c (Fdefine_coding_system_internal)
24455 (Fdefine_coding_system_alias): Avoid a duplicated element in
24456 Vcoding_system_alist.
24457
244582008-02-01 Kenichi Handa <handa@m17n.org>
24459
24460 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
24461
24462 * coding.c (Qcoding_system_define_form): New variable.
24463 (syms_of_coding): Intern and staticpro it.
24464 (Fcoding_system_p): Check Qcoding_system_define_form.
24465 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
24466
24467 * coding.h (CODING_SYSTEM_P): If ID is not available, call
24468 Fcoding_system_p.
24469 (CHECK_CODING_SYSTEM): If ID is not available, call
24470 Fcheck_coding_system.
24471 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
24472 Try also Fcheck_coding_system.
24473
244742008-02-01 Kenichi Handa <handa@m17n.org>
24475
24476 * coding.c (code_conversion_restore): GCPRO arg.
24477
244782008-02-01 Kenichi Handa <handa@m17n.org>
24479
24480 * character.c (lisp_string_width): Check multibyteness of STRING.
24481
244822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24483
24484 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
24485 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
24486 (decode_mac_font_name): Use decode_coding_c_string instead of
24487 decode_coding.
bba3e508
SM
24488 (x_load_font): Initialize fontp->fontset to -1.
24489 Set fontp->encoding_type.
aac0c6e3
MR
24490
244912008-02-01 Kenichi Handa <handa@m17n.org>
24492
24493 * search.c (search_buffer): Give up BM search on case-fold-search
24494 if one of a target character has a case-equivalence of different
3b59c351 24495 byte length even if that target character is an ASCII.
aac0c6e3
MR
24496 (simple_search): Fix calculation of byte length of matched text.
24497 (boyer_moore): Fix handling of case-equivalent multibyte characters.
24498
244992008-02-01 Kenichi Handa <handa@m17n.org>
24500
24501 * coding.c (decode_coding): Fix handling of invalid bytes.
24502
245032008-02-01 Kenichi Handa <handa@m17n.org>
24504
24505 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
24506 Unicode characters.
24507
245082008-02-01 Kenichi Handa <handa@m17n.org>
24509
24510 * coding.c (encode_coding_object): If a pre-write-conversion
24511 function makes a new buffer, kill it.
24512
245132008-02-01 Kenichi Handa <handa@m17n.org>
24514
24515 * coding.c (QCascii_compatible_p): New variable.
24516 (syms_of_coding): Initialize it.
24517 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
24518 calling string_char.
24519 (record_conversion_result): Add `default:' case.
24520 (coding_charset_list): Delete unused variable `coding_type'.
24521 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
24522 property in the plist of the coding system.
24523 (Fcoding_system_put): Check QCascii_compatible_p.
24524
245252008-02-01 Miles Bader <miles@gnu.org>
24526
24527 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
24528 removed calculation of frame `f', as it's now used.
24529
245302008-02-01 Kenichi Handa <handa@m17n.org>
24531
24532 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
24533 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
24534 (UNIDATA): New variable.
24535 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
24536 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
24537 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
24538
245392008-02-01 Kenichi Handa <handa@m17n.org>
24540
24541 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
24542 (admindir): New variable.
24543 ($(lispsource)international/charprop.el): New target.
24544
245452008-02-01 Miles Bader <miles@gnu.org>
24546
24547 * character.c (chars-in-region): Remove obsolete function.
24548 (syms_of_character): Remove its initialization.
24549
245502008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24551
24552 * w32select.c (validate_coding_system)
24553 (setup_windows_coding_system): New functions.
bba3e508
SM
24554 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24555 Use setup_windows_coding_system.
24556 (setup_config, Fw32_get_clipboard_data):
24557 Use validate_coding_system.
aac0c6e3
MR
24558 (Fx_selection_exists): Move call to setup_config to a place
24559 where signals are allowed.
24560
24561 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24562 (Fcheck_coding_system): Add declarations.
24563
245642008-02-01 Kenichi Handa <handa@m17n.org>
24565
24566 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24567
245682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24569
24570 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24571 string as the second argument for x_new_fontset.
24572
245732008-02-01 Kenichi Handa <handa@m17n.org>
24574
24575 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24576 (encode_coding_object): Use safe_call instead of call2.
24577
245782008-02-01 Kenichi Handa <handa@m17n.org>
24579
24580 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24581
24582 * Makefile.in (lisp): Include charprop.el.
24583
245842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24585
24586 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24587 Not sure if it's unnecessary.
24588
245892008-02-01 Steven Tamm <steventamm@mac.com>
24590
24591 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24592 some possibly unnecessary fontset checking code that crashed
24593 when creating a new frame.
24594
245952008-02-01 Kenichi Handa <handa@m17n.org>
24596
24597 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24598 lookup_face.
24599
24600 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24601
24602 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24603
246042008-02-01 Kenichi Handa <handa@m17n.org>
24605
24606 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24607 (coding_charset_list): New function.
24608
24609 * coding.h (coding_charset_list): Extern it.
24610
246112008-02-01 Kenichi Handa <handa@m17n.org>
24612
24613 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24614 concatenation of family and registry.
24615
246162008-02-01 Kenichi Handa <handa@m17n.org>
24617
24618 * character.h (BYTE8_STRING): Fix typo.
24619
24620 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24621 string to multibyte (sync to HEAD).
24622
24623 * casefiddle.c (casify_region): Handle changes in byte-length
24624 using replace_range_2 (sync to HEAD).
24625
246262008-02-01 Andreas Schwab <schwab@suse.de>
24627
24628 * chartab.c (map_char_table): GCPRO table and arg.
24629
246302008-02-01 Kenichi Handa <handa@m17n.org>
24631
24632 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24633 already at limit.
24634
246352008-02-01 Kenichi Handa <handa@m17n.org>
24636
24637 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24638 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24639 (find_font_encoding): Change argument to Lisp_Object.
24640 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24641 fast_c_string_match_ignore_case. Change caller.
24642
246432008-02-01 Kenichi Handa <handa@m17n.org>
24644
24645 * xdisp.c (get_next_display_element): In unibyte case, decide to
24646 display in octal form by checking a character by
24647 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24648
24649 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24650
24651 * character.c (unibyte_has_multibyte_table): New variable.
24652
24653 * character.h (unibyte_has_multibyte_table): Extern it.
24654 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24655
246562008-02-01 Kenichi Handa <handa@m17n.org>
24657
24658 * coding.c (encode_coding_iso_2022): Fix handling of charset
24659 annotation.
24660
246612008-02-01 Kenichi Handa <handa@m17n.org>
24662
24663 * coding.c (setup_coding_system): If coding_system is nil, use
24664 Qundecided.
24665 (Fterminal_coding_system): Return nil if terminal coding system is
24666 `undecided'.
bba3e508
SM
24667 (syms_of_coding): Define coding-system `undecided' here.
24668 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24669
246702008-02-01 Kenichi Handa <handa@m17n.org>
24671
bba3e508
SM
24672 * xdisp.c (message_dolog, set_message_1):
24673 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24674
24675 * lread.c (read1): Fix reading of a char-table.
24676
24677 * print.c (print_object): Include sub char-table in circularities
24678 detection.
24679
246802008-02-01 Kenichi Handa <handa@m17n.org>
24681
24682 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24683 Append the found sequences in car of ARGS instead of prepending.
24684
246852008-02-01 Kenichi Handa <handa@m17n.org>
24686
24687 * fileio.c (report_file_error): Make a unibyte string from
24688 strerror (errorno).
24689 (Fsubstitute_in_file_name): Fix the arg to
24690 unibyte_char_to_multibyte. It is evaluated twice.
24691
246922008-02-01 Kenichi Handa <handa@m17n.org>
24693
24694 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24695
246962008-02-01 Kenichi Handa <handa@m17n.org>
24697
24698 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24699 BOM is not found.
24700 (detect_coding, detect_coding_system): Optimization for ISO-2022
24701 when no 8-bit data is found.
24702
247032008-02-01 Jason Rumney <jasonr@gnu.org>
24704
24705 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24706
247072008-02-01 Kenichi Handa <handa@m17n.org>
24708
24709 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24710 CHARS.
24711
247122008-02-01 Steven Tamm <steventamm@mac.com>
24713
24714 * macterm.c (mac_encode_char): Add charset argument and update
24715 to use encoding_type.
24716 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24717 switch to pure fontset.
24718 (decode_mac_font_name): Temporarily remove decoding.
24719 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24720 (x_load_font): Temporarily remove encoding.
24721
247222008-02-01 Kenichi Handa <handa@m17n.org>
24723
24724 * xfaces.c (Fface_font): If frame is not on a window system,
24725 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24726 refer to face->font.
24727 (split_font_name_into_vector, build_font_name_from_vector)
24728 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24729 when HAVE_WINDOW_SYSTEM is defined.
24730
247312008-02-01 Kenichi Handa <handa@m17n.org>
24732
24733 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24734 (x_produce_glyphs): Fix setting of members of cmp in case
24735 cmp->glyph_len is zero.
24736
24737 * fontset.c (Fset_fontset_font): Fix docstring.
24738 (Ffontset_info): Make it backward compatible. New arg ALL.
24739
247402008-02-01 Kim F. Storm <storm@cua.dk>
24741
24742 * process.c (read_process_output): Grow decoding_buf when needed;
24743 this could cause a crash in allocate_string and compact_small_strings.
24744
247452008-02-01 Kenichi Handa <handa@m17n.org>
24746
24747 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24748
247492008-02-01 Kenichi Handa <handa@m17n.org>
24750
24751 * coding.c (setup_coding_system): Set coding->common_flags
24752 correctly for raw-text.
24753 (consume_chars): On encoding unibyte text by raw-text, don't check
24754 multibyte form.
24755 (encode_coding): On encoding by raw-text, never use translation tables.
24756
24757 * fileio.c (e_write): Short cut for the case of no encoding.
24758
247592008-02-01 Kenichi Handa <handa@m17n.org>
24760
24761 * coding.c (detect_coding, detect_coding_system): Delete unused
24762 variables.
24763
247642008-02-01 Kenichi Handa <handa@m17n.org>
24765
24766 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24767 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24768
247692008-02-01 Kenichi Handa <handa@m17n.org>
24770
bba3e508
SM
24771 * coding.c (Ffind_coding_systems_region_internal):
24772 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24773
247742008-02-01 Kenichi Handa <handa@m17n.org>
24775
24776 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24777 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24778 FONT_DEF.
24779 (font_def_arg, add_arg, from_arg, to_arg): New args.
24780 (set_fontset_font): Change argument.
24781 (Fset_fontset_font): Fix for the case that TARGET is a script
24782 name and charset name.
24783 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24784
247852008-02-01 Kenichi Handa <handa@m17n.org>
24786
24787 * fontset.c (fontset_font): Rename from fontset_face. Change return
24788 value.
24789 (face_suitable_for_char_p, face_for_char): Adjust for the change
24790 of fontset_font.
24791 (make_fontset_for_ascii_face): Fix setting of the fontset element
24792 for ASCII.
24793 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24794 to get a font name.
24795 (Ffontset_info): Adjust for the change of fontset_font.
24796
24797 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24798
24799 * character.h (LEADING_CODE_LATIN_1_MIN)
24800 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24801
248022008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * editfns.c (check_translation): New function.
24805 (Ftranslate_region_internal): Handle M:N mapping.
24806
248072008-02-01 Kenichi Handa <handa@m17n.org>
24808
24809 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24810
248112008-02-01 Kenichi Handa <handa@m17n.org>
24812
24813 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24814 goto invalid_code.
24815 (decode_coding_iso_2022): Fix handling of invalid designation.
24816
24817 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24818 after calling code_conversion_save.
24819
248202008-02-01 Kenichi Handa <handa@m17n.org>
24821
24822 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24823
24824 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24825
24826 * fontset.c: Include "intervals.h".
24827 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24828 (free_face_fontset, new_fontset_from_font_name):
24829 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24830
24831 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24832
24833 * coding.c: Add many prototypes for static functions.
24834 (get_translation_table): Allow max_lookup to be NULL.
24835 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24836 (Funencodable_char_position, Fcheck_coding_systems_region):
24837 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24838
248392008-02-01 Kenichi Handa <handa@m17n.org>
24840
24841 * coding.c (get_translation_table): Declare it as Lisp_Object.
24842 (LOOKUP_TRANSLATION_TABLE): New macro.
24843 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24844 instead of CHAR_TABLE_REF.
24845
248462008-02-01 Kenichi Handa <handa@m17n.org>
24847
24848 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24849 annotation data format.
24850 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24851 Change arguments FROM and TO to single argument NCHARS. Change caller.
24852 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24853 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24854 (decode_coding_ccl, decode_coding_charset): Pay attention to
24855 coding->charbuf_used.
24856 (get_translation): New function.
24857 (produce_chars): New arguments translation_table and last_block.
24858 Translate characters here. Return number of carryover chars.
24859 Change caller.
24860 (produce_composition): New argument pos. Change caller.
24861 Adjust for the change of annotation data format.
24862 (produce_charset, produce_annotation): Likewise.
24863 (decode_coding, encode_coding): Don't call translate_chars.
24864 (consume_chars): New arg translation_table. Change caller.
24865 (translate_chars): Delete.
24866 (syms_of_coding): Make translation-table's number of extra slots 2.
24867
248682008-02-01 Kenichi Handa <handa@m17n.org>
24869
24870 * search.c (simple_search): Fix setting this_pos_byte in backward
24871 search.
24872
24873 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24874 byte sequence.
24875 (detect_coding_ccl): Fix setting of the variable valids.
24876
248772008-02-01 Kenichi Handa <handa@m17n.org>
24878
24879 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24880
24881 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24882
24883 * editfns.c (Ftranslate_region_internal): Rename from
24884 Ftranslate_region. Accept a char-table in TABLE.
24885 (syms_of_editfns): Defsubr Stranslate_region_internal.
24886
24887 * xfaces.c (set_lface_from_font_name): If a font is specified for
24888 a frame, generate a fontset from the font.
24889 (build_scalable_font_name): If the scalable font is requested for
24890 a specific size, don't change that size.
24891 (try_font_list): Try a scalable font also in the case that a
24892 pattern string is specified.
24893
248942008-02-01 Kenichi Handa <handa@m17n.org>
24895
24896 * xfaces.c (Fface_font): New optional arg CHARACTER.
24897
248982008-02-01 Kenichi Handa <handa@m17n.org>
24899
24900 * charset.h (CHARSET_OFFSET): New macro.
24901
249022008-02-01 Kenichi Handa <handa@m17n.org>
24903
24904 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24905
24906 * fontset.c (fontset_face): Handle the case that repertory is a
24907 char-table.
24908 (find_font_encoding): Return nil for unknown encoding.
24909 (Fset_fontset_font): Ignore a font of unknown encoding.
24910
249112008-02-01 Kenichi Handa <handa@m17n.org>
24912
24913 * keymap.c (describe_vector): Handle default value of a char table.
24914
24915 * fontset.c (fontset_face): Handle fallback fonts correctly.
24916 (Ffontset_info): Return infomation about fallback fonts.
24917
249182008-02-01 Kenichi Handa <handa@m17n.org>
24919
24920 * fontset.c (FONTSET_DEFAULT): New macro.
24921 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24922 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24923 the case that it is nil.
24924 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24925 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24926
24927 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24928 subset or superset.
24929
249302008-02-01 Kenichi Handa <handa@m17n.org>
24931
24932 * emacs.c (main): Call init_charset after syms_of_XXX.
24933
24934 * charset.c (Vcharset_map_directory): Delete.
24935 (Vcharset_map_path): New variable.
24936 (load_charset_map_from_file): Use Vcharset_map_path instead.
24937 (init_charset): Initialize Vcharset_map_path.
24938 (syms_of_charset): Delete declaration of "charset-map-directory",
24939 add declaration of "charset-map-path".
24940
249412008-02-01 Kenichi Handa <handa@m17n.org>
24942
24943 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24944 ASCII only string.
24945
24946 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24947
24948 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24949 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24950
249512008-02-01 Kenichi Handa <handa@m17n.org>
24952
24953 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24954
24955 * coding.c (QCmnemonic, QCdefalut_char)
24956 (QCdecode_translation_table, QCencode_translation_table)
24957 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24958 (get_translation_table): Return a list of translation tables if
24959 necessary.
24960 (decode_coding): Call get_translation_table with ENCODEP 0.
24961 (char_encodable_p): If translation_table is non-nil, always call
24962 translate_char.
24963 (Fdefine_coding_system_internal): Accept list of translation
24964 tables as :encode-translation-table and :decode-translation-table.
24965 (Fcoding_system_put): New function.
bba3e508
SM
24966 (syms_of_coding): Declare new symbols.
24967 Defsubr Scoding_system_put.
aac0c6e3
MR
24968 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24969 typically JISX0212.
24970
24971 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24972 when the charset is superset type.
24973
24974 * character.c (translate_char): Accept list of translation tables.
24975
249762008-02-01 Kenichi Handa <handa@m17n.org>
24977
24978 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24979 (CODING_ATTR_TRANS_TBL): New macro.
24980
24981 * coding.c (get_translation_table): New function.
24982 (translate_chars): Fix the bug of skipping annotation data.
24983 (decode_coding, encode_coding): Utilize get_translation_table.
24984 (char_encodable_p, Funencodable_char_position): Translate char if
24985 necessary.
24986 (Ffind_coding_systems_region_internal)
24987 (Fcheck_coding_systems_region): Setup translation table for encode
24988 in a coding system attribute vector in advance.
24989 (Fdefine_coding_system_internal): Allow a symbol as translation
24990 table. For shift-jis type coding system, allow 4th charset.
24991
249922008-02-01 Kenichi Handa <handa@m17n.org>
24993
24994 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24995
24996 * xdisp.c (get_next_display_element): Pass -1 as POS to
24997 FACE_FOR_CHAR if displaying a C-string.
24998
249992008-02-01 Kenichi Handa <handa@m17n.org>
25000
25001 * composite.c (get_composition_id): Handle xoff and yoff in a
25002 composition rule.
25003
25004 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25005 (struct composition): New member lbearing and rbearing.
25006
25007 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25008 (x_get_glyph_overhangs): Handle a composition glyph.
25009 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25010
25011 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25012 composition glyph.
25013
250142008-02-01 Kenichi Handa <handa@m17n.org>
25015
25016 * print.c: Include charset.h.
25017 (Vprint_charset_text_property): New variable.
25018 (Qdefault): Extern it.
25019 (PRINT_STRING_NON_CHARSET_FOUND)
25020 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25021 (print_check_string_result): New variable.
25022 (print_check_string_charset_prop): New function.
25023 (print_prune_charset_plist): New variable.
25024 (print_prune_string_charset): New function.
25025 (print_object): Call print_prune_string_charset if
25026 Vprint_charset_text_property is not t.
25027 (print_interval): Print nothing if interval->plist is nil.
25028 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25029 variable. Init and staticpro print_prune_charset_plist.
25030
250312008-02-01 Kenichi Handa <handa@m17n.org>
25032
25033 * fontset.c (new_fontset_from_font_name): Use the specified font
25034 for all characters in the new fontset.
25035
25036 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25037 OBJECT args.
25038
25039 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25040 OBJECT args for composition too.
25041
25042 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25043 OBJECT args.
25044
250452008-02-01 Kenichi Handa <handa@m17n.org>
25046
25047 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25048
25049 * fontset.c (reorder_font_vector): Adjust for the change of
25050 FONT_DEF format.
25051 (fontset_face): New arg id. Change caller.
25052 (face_for_char): New args pos and object.
25053 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25054 (fs_query_fontset): Check NAME by Fassoc too.
25055 (Fset_fontset_font): Allow non-XLFD font name.
25056 (Ffontset_info): Adjust for the change of FONT_DEF format.
25057
25058 * fontset.h (face_for_char): Adjust prototype.
25059
25060 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25061 (append_space, extend_face_to_end_of_line)
25062 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25063 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25064
25065 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25066 POS and OBJECT args.
25067
25068 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25069 POS and OBJECT args.
25070
250712008-02-01 Jason Rumney <jasonr@gnu.org>
25072
25073 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25074 of GlobalAlloc'ed memory.
25075
250762008-02-01 Kenichi Handa <handa@m17n.org>
25077
25078 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25079
25080 * charset.h (charset_table_used): Delete extern.
25081
25082 * charset.c (charset_table_used): Make it static.
25083 (map_charset_chars): Fix args to c_function with.
25084
25085 * chartab.c (map_sub_char_table_for_charset): Fix args to
25086 c_function with.
25087
bba3e508
SM
25088 * coding.h (enum coding_result_code):
25089 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
25090
25091 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25092 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25093 (Vlast_code_conversion_error): New variables.
25094 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25095 (ONE_MORE_BYTE): Record error if any instead of signaling an
25096 error. If non-ASCII multibyte char is found, return the negative
25097 value of the code. All callers changed to check it.
25098 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25099 (record_conversion_result): New function. Change all codes setting
25100 coding->result to call this function.
25101 (detect_coding_utf_8, decode_coding_utf_8)
25102 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25103 Don't use the local variable incomplete.
25104 (emacs_mule_char): Change the second arg to `const'.
25105 (decode_coding): Fix of flushing out unprocessed data.
25106 (make_conversion_work_buffer): Fix making of a work buffer.
25107 (decode_coding_object): Return coding->dst_object.
25108
25109 * fontset.c (set_fontset_font): Fix args.
25110
25111 * lisp.h (CHARACTERBITS): Define as 22.
25112
25113 * process.c (send_process): Be sure to set coding->src_multibyte.
25114
25115 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25116
251172008-02-01 Kenichi Handa <handa@m17n.org>
25118
25119 * xdisp.c (handle_auto_composed_prop): Give limit to
25120 Fnext_single_char_property_change.
25121
251222008-02-01 Kenichi Handa <handa@m17n.org>
25123
25124 * composite.c (syms_of_composite): Don't make the composition hash
25125 table weak.
25126
25127 * fontset.c (Fset_fontset_font): Fix docstring.
25128
25129 * lisp.h (detect_coding_system): Adjust prototype.
25130
25131 * fileio.c (kill_workbuf_unwind): Delete this function.
25132 (Finsert_file_contents): Adjust the call of detect_coding_system.
25133 Get conversion_buffer by code_conversion_save. Use the macro
25134 CODING_MAY_REQUIRE_DECODING. After decoding, update
25135 coding_system.
25136
25137 * coding.h (make_conversion_work_buffer): Delete extern.
25138 (code_conversion_save): Extern it.
25139
25140 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25141 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25142 (decode_coding_utf_8): Don't do eol converion.
25143 (detect_coding_utf_16): Check coding->src_chars, not
25144 coding->src_bytes. Add heuristics for those that have no signature.
25145 (decode_coding_emacs_mule, decode_coding_iso_2022)
25146 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25147 Don't do eol converion.
25148 (adjust_coding_eol_type): Return a new coding system.
25149 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25150 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25151 each change.
25152 (decode_coding): Pay attention to undo_list. Do eol conversion for
25153 all types of coding-systems (if necessary).
25154 (Vcode_conversion_work_buf_list): Delete it.
25155 (Vcode_conversion_reused_workbuf): Rename from
25156 Vcode_conversion_reused_work_buf.
25157 (Vcode_conversion_workbuf_name): New variable.
25158 (reused_workbuf_in_use): New variable.
25159 (make_conversion_work_buffer): Delete the arg DEPTH.
25160 (code_conversion_restore): Change argument to cons.
25161 (code_conversion_save): Delete the argument BUFFER. Change callers.
25162 (detect_coding_system): New argument src_chars. Change callers.
25163 Fix for utf-16 detection.
25164 (init_coding_once): Don't use ISO_carriage_return.
25165 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25166 reused_workbuf_in_use.
25167
251682008-02-01 Kenichi Handa <handa@m17n.org>
25169
25170 * keymap.c (store_in_keymap): Pay attention to the case that idx
25171 is a cons specifying a character range.
25172
251732008-02-01 Kenichi Handa <handa@m17n.org>
25174
25175 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25176 HANDLED_RECOMPUTE_PROPS.
25177
25178 * coding.c (Fdefine_coding_system_internal): Fix checking of
25179 ascii compatibility.
25180
251812008-02-01 Kenichi Handa <handa@m17n.org>
25182
25183 * charset.c (find_charsets_in_text): Delete unused locale variable.
25184 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25185
25186 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25187 Resync charset_list to Vemacs_mule_charset_list.
25188
25189 * keymap.c (store_in_keymap): Pay attention to the case that idx
25190 is a cons specifying a character range.
25191
251922008-02-01 Kenichi Handa <handa@m17n.org>
25193
25194 * composite.c (update_compositions): Bind inhibit-read-only, etc
25195 to t before calling remove-list-of-text-properties.
25196
25197 * print.c (print_object): Always print ASCII chars as is.
25198
251992008-02-01 Kenichi Handa <handa@m17n.org>
25200
25201 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25202
25203 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25204 is a char table.
25205
252062008-02-01 Kenichi Handa <handa@m17n.org>
25207
25208 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25209
252102008-02-01 Kenichi Handa <handa@m17n.org>
25211
25212 * xfaces.c (set_lface_from_font_name): Fix for the case that
25213 FONTNAME is not fontset name.
25214
252152008-02-01 Kenichi Handa <handa@m17n.org>
25216
25217 * fns.c (base64_encode_1): Fix previous change.
25218
252192008-02-01 Kenichi Handa <handa@m17n.org>
25220
25221 * fontset.c (set_fontset_font): New function.
25222 (Fset_fontset_font): If a font is specified for a charset, use
25223 map_charset_chars to store the font spec in a fontset.
25224
252252008-02-01 Kenichi Handa <handa@m17n.org>
25226
25227 * fontset.c (fontset_face): Create a fallback fontset on demand.
25228 (make_fontset): Don't create a fallback fontset here.
25229 (free_face_fontset): Free a fallback fontset (if any) too.
25230 (n_auto_fontsets): Delete this variable.
25231 (auto_fontset_alist): New variable.
25232 (new_fontset_from_font_name): Check auto_fontset_alist.
25233 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25234 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25235 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25236 Defsubr Sfontset_list_all.
25237
252382008-02-01 Kenichi Handa <handa@m17n.org>
25239
25240 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25241
252422008-02-01 Kenichi Handa <handa@m17n.org>
25243
25244 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25245
252462008-02-01 Kenichi Handa <handa@m17n.org>
25247
25248 * editfns.c (Fgoto_char): Fix docstring.
25249
252502008-02-01 Kenichi Handa <handa@m17n.org>
25251
25252 * insdel.c (insert_from_gap): Adjust intervals correctly.
25253
252542008-02-01 Jason Rumney <jasonr@gnu.org>
25255
25256 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25257 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25258 (w32_initialize): Try to load it.
25259 (x_get_font_repertory): Use it if available.
25260 (w32_encode_char): Add shortcut for unicode output.
25261
25262 * w32fns.c (w32_load_system_font): Default charset to -1.
25263 (x_to_w32_charset): Match all fonts for unicode.
25264 (w32_to_x_charset): New parameter matching. Don't return partial
25265 or wildcard charsets.
25266 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25267 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25268 (w32_to_x_font): Match charset to real charset.
25269 (enum_font_cb2): Always list unicode versions.
25270
25271 * makefile.w32-in (temacs): Increase EMHEAP.
25272
252732008-02-01 Jason Rumney <jasonr@gnu.org>
25274
25275 * w32term.c (w32_encode_char): New charset parameter.
25276 font_info.encoding becomes encoding_type.
25277 (x_get_font_repertory): New function. Warning: stub only!
25278 (x_new_font): Return quickly if font already set.
25279 (x_new_fontset): fontsetname parameter is Lisp_Object.
25280 Use new fs_query_fontset. Try new_fontset_from_font_name.
25281 Use fontset_name for return value.
25282
25283 * w32term.h: Declare x_get_font_repertory.
25284
25285 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25286 place of find_charset_in_text. Use encode_coding_object in place
25287 of encode_coding.
25288 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25289 decode_coding.
25290
25291 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25292 of x_new_fontset.
25293 (w32_load_system_font): Initialize charset as unicode.
25294 font_info.encoding becomes encoding_type.
25295 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25296 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25297 (syms_of_w32fns): Set get_font_repertory_func.
25298
25299 * w32console.c: Include character.h. Use terminal_encode_buffer
25300 from term.c.
bba3e508
SM
25301 (write_glyphs): Use new version of encode_terminal_code.
25302 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
25303
25304 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25305 encoding becomes encoding_type.
25306
25307 * term.c (terminal_encode_buffer): Make externally visible.
25308
25309 * makefile.w32-in: Add character.h dependancies.
25310 (character.o, chartab.o): New targets.
25311
253122008-02-01 Kenichi Handa <handa@m17n.org>
25313
25314 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25315 CODING_ID_EOL_TYPE.
25316
253172008-02-01 Andreas Schwab <schwab@suse.de>
25318
25319 * coding.c (produce_chars): Revert last change.
25320
253212008-02-01 Kenichi Handa <handa@m17n.org>
25322
25323 * charset.h (charset_unicode): Extern it.
25324
25325 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
25326 (find_charsets_in_text): Change format of the arc CHARSETS.
25327 New arg MULTIBYTE.
aac0c6e3
MR
25328 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25329 change of find_charsets_in_text.
25330 (Fsplit_char): Fix doc. Never return unknown.
25331
25332 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25333
bba3e508
SM
25334 * coding.c (Fdefine_coding_system_alias):
25335 Update Vcoding_system_list.
aac0c6e3
MR
25336
25337 * fontset.c (load_font_get_repertory): Pay attention to the case
25338 that ENCODING of a font is specified by a char-table.
25339
25340 * xterm.c (x_get_font_repertory): Handle the case that the
25341 encoding of font is other than Unicode.
25342
253432008-02-01 Kenichi Handa <handa@m17n.org>
25344
bba3e508
SM
25345 * term.c (encode_terminal_code): Don't handle glyph-table.
25346 Check if a character is encodable by the terminal coding system.
25347 If not, produces proper number of `?'s. Update
aac0c6e3
MR
25348 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25349 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25350
253512008-02-01 Kenichi Handa <handa@m17n.org>
25352
bba3e508
SM
25353 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25354 New variables.
aac0c6e3
MR
25355 (encode_terminal_code): Change argument. Encode multiple
25356 characters at once. Store the result of encoding in
25357 terminal_encode_buffer.
25358 (write_glyphs, insert_glyphs): Adjust for the change of
25359 encode_terminal_code.
25360 (term_init): Initialize terminal_encode_buffer and
25361 terminal_encode_buf_size.
25362
25363 * coding.c (consume_chars): If coding->src_object is nil, don't
25364 check annotation.
25365
253662008-02-01 Kenichi Handa <handa@m17n.org>
25367
25368 * character.c (char_string): Use ASCII_CHAR_P instead of
25369 SINGLE_BYTE_CHAR_P.
25370
253712008-02-01 Kenichi Handa <handa@m17n.org>
25372
25373 * xdisp.c (handle_auto_composed_prop): Check if the last
25374 characters of auto-composed region is newly composed with the
25375 following characters.
25376 (handle_composition_prop): Fix checking of point being inside
25377 composition.
25378
253792008-02-01 Kenichi Handa <handa@m17n.org>
25380
25381 * fns.c (concat): Don't change multibyteness of the result by
25382 concatenating an 8-bit character.
25383
25384 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
25385 multibyteness of the result when newelt is an 8-bit character.
25386
253872008-02-01 Dave Love <fx@gnu.org>
25388
25389 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
25390 EMACS_INT.
25391
25392 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
25393
25394 * xfaces.c (face_numeric_value): Declare dim size_t.
25395 (Finternal_lisp_face_equal_p): Remove unused f.
25396
25397 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
25398 (MATRIX_ROW): Remove unused vars.
25399 (draw_glyphs, x_insert_glyphs, fast_find_position)
25400 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
25401 byte/char counts.
25402
25403 * regex.c (regex_compile): Remove unused var.
25404
25405 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25406
25407 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
25408 (Faccessible_keymaps, where_is_internal): Remove unused vars.
25409
25410 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
25411
25412 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
25413
25414 * fileio.c (Fwrite_region): Remove unused var.
25415
25416 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
25417 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
25418
25419 * composite.c (Fremove_list_of_text_properties): Declare.
25420
25421 * coding.c (inhibit_pre_post_conversion): Remove (unused).
25422 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
25423 (coding_inherit_eol_type): Remove unused attrs.
25424 (detect_coding): Cast arg of detect_eol.
25425
25426 * charset.c (syms_of_charset): Remove unused var p.
25427 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
25428 byte/char counts.
25429
25430 * casetab.c (set_case_table): Remove unused var.
25431
bba3e508
SM
25432 * window.c (Fdisplay_buffer, Fframe_selected_window):
25433 Remove unused vars.
aac0c6e3
MR
25434
254352008-02-01 Dave Love <fx@gnu.org>
25436
25437 * xterm.c (x_bitmap_mask): Declare.
25438
254392008-02-01 Dave Love <fx@gnu.org>
25440
25441 * xterm.c (x_term_init): Fix type error.
25442
25443 * lisp.h: Add Funibyte_char_to_multibyte.
25444
25445 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
25446 (Fset_coding_system_priority): Doc fix.
25447
25448 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
25449
25450 * indent.c (check_composition): Make start and end EMACS_INT.
25451
25452 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
25453
25454 * xdisp.c (handle_composition_prop, check_point_in_composition):
25455 Make buffer positions EMACS_INT.
25456
25457 * composite.c (find_composition, run_composition_function)
25458 (update_compositions, Ffind_composition_internal): Make buffer
25459 positions EMACS_INT.
25460
bba3e508
SM
25461 * composite.h (find_composition, update_compositions):
25462 Make position args EMACS_INT.
aac0c6e3
MR
25463
25464 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
25465
25466 * intervals.c (get_property_and_range):
25467 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
25468
25469 * unexalpha.c: Don't include varargs.h.
25470
254712008-02-01 Dave Love <fx@gnu.org>
25472
25473 * coding.h (ENCODE_UTF_8): New.
25474
25475 * Makefile.in (gtkutil.o): Depend on coding.h.
25476
25477 * coding.c (Fset_coding_system_priority): Doc fix.
25478
254792008-02-01 Kenichi Handa <handa@m17n.org>
25480
25481 * fileio.c (Finsert_file_contents): Call setup_coding_system in
25482 the case of auto saving.
25483
254842008-02-01 Andreas Schwab <schwab@suse.de>
25485
bba3e508
SM
25486 * chartab.c (map_char_table, map_char_table_for_charset):
25487 Protect `range' from GC.
aac0c6e3
MR
25488
254892008-02-01 Kenichi Handa <handa@m17n.org>
25490
25491 * coding.c (decode_coding_sjis): Check bytes more rigidly.
25492
254932008-02-01 Kenichi Handa <handa@m17n.org>
25494
25495 * fileio.c (choose_write_coding_system): Return a decided coding system.
25496 (Fwrite_region): Set Vlast_coding_system_used to the return value
25497 of choose_write_coding_system.
25498
254992008-02-01 Kenichi Handa <handa@m17n.org>
25500
25501 * charset.c (Fset_charset_priority): Pay attention to duplicated
25502 arguments.
25503
25504 * coding.c (QCcategory): New variable.
25505 (syms_of_coding): Defsym it. Set all elements of
25506 Vcoding_category_table and their symbol values.
25507 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
25508 coding-category-XXX, and coding-category-list.
25509 (Fdefine_coding_system_internal): Add category in the plist.
25510
255112008-02-01 Kenichi Handa <handa@m17n.org>
25512
25513 * callproc.c (Fcall_process): Handle carryover correctly.
25514
25515 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
25516 (raw_text_coding_system): Check NILP (coding_system).
25517 (coding_inherit_eol_type): Check NILP (coding_system) and
25518 NILP (parent).
25519 (consume_chars): Fix for the case of raw-text.
25520
25521 * process.c (read_process_output): Handle carryover correctly.
25522
255232008-02-01 Dave Love <fx@gnu.org>
25524
25525 * regex.c (re_search_2): Fix last change.
25526
255272008-02-01 Kenichi Handa <handa@m17n.org>
25528
25529 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
25530 target_multibyte. Even in a unibyte case, return a converted
25531 multibyte char.
25532 (GET_CHAR_AFTER): New macro.
25533 (PATFETCH): Translate via multibyte char.
25534 (HANDLE_UNIBYTE_RANGE): Delete this macro.
25535 (SETUP_MULTIBYTE_RANGE): New macro.
25536 (regex_compile): Setup compiled code so that its multibyteness
25537 matches that of a target. Fix the handling of "[X-YZ]" using
25538 SETUP_MULTIBYTE_RANGE.
25539 (analyse_first) <charset>: For filling fastmap for all multibyte
25540 characters, don't check by BASE_LEADING_CODE_P.
25541 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
25542 the same as RE_MULTIBYTE_P (bufp) now.
25543 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25544 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25545 (TRANSLATE_VIA_MULTIBYTE): New macro.
25546 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25547 It is the same as RE_MULTIBYTE_P (bufp) now.
25548 <exactn>: Translate via multibyte.
bba3e508
SM
25549 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25550 Don't translate it.
aac0c6e3
MR
25551 <charset, charset_not>: Fetch a character by
25552 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25553 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25554 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25555 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25556 by GET_CHAR_AFTER.
25557 (bcmp_translate): Likewise.
25558
25559 * search.c (compile_pattern): Check the member target_multibyte,
25560 not the member multibyte of buf.
25561
25562 * lread.c (read1): While reading a string, set force_singlebyte
25563 and force_multibyte correctly.
25564
25565 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25566 up of unibyte_to_multibyte_table.
25567
255682008-02-01 Kenichi Handa <handa@m17n.org>
25569
25570 * coding.c (setup_coding_system): If coding has
25571 post-read-conversion or pre-write-conversion, set
25572 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25573 respectively.
25574 (decode_coding_gap): Run post-read-conversion if any.
25575
25576 * fileio.c (Finsert_file_contents): Even if we read into a
25577 unibyte buffer, check if we must decode the result or not.
25578
255792008-02-01 Kenichi Handa <handa@m17n.org>
25580
25581 * coding.c (make_conversion_work_buffer): Change the work buffer
25582 name to the same one as that of Emacs 21.
25583
255842008-02-01 Kenichi Handa <handa@m17n.org>
25585
25586 * coding.h (make_conversion_work_buffer): Adjust prototype.
25587 (code_conversion_restore): Don't extern it.
25588
25589 * coding.c (detected_mask): Delete unused variable.
25590 (decode_coding_iso_2022): Pay attention to the byte sequence of
25591 CTEXT extended segment, and retain those bytes as is.
25592 (decode_coding_ccl): Delete unused variable `valids'.
25593 (setup_coding_system): Delete unused variable `category'.
25594 (consume_chars): Delete unused variable `category'. Make it work
25595 for non-multibyte case.
25596 (make_conversion_work_buffer): Change argument.
25597 (saved_coding): Delete unused variable.
25598 (code_conversion_restore): Don't check saved_coding->destination.
25599 (code_conversion_save): New function.
25600 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25601 instead of record_unwind_protect.
25602 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25603 (detect_coding_system): Delete unused variable `mask'.
25604 (Fdefine_coding_system_internal): Delete unused variable id.
25605
25606 * fileio.c (kill_workbuf_unwind): New function.
25607 (Finsert_file_contents): On replacing, call
25608 make_conversion_work_buffer with correct args, and call
25609 record_unwind_protect with the first arg kill_workbuf_unwind.
25610
25611 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25612
256132008-02-01 Kenichi Handa <handa@m17n.org>
25614
25615 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25616 (fontset_add): Fix for the case that TO is less than TO1.
25617 (Ffontset_info): Don't use fallback fontset on checking the
25618 default fontset.
25619 (dump_fontset): New function for debugging.
25620
25621 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25622 coding_type is Qcharset.
25623
256242008-02-01 Kenichi Handa <handa@m17n.org>
25625
25626 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25627 (map_char_table): Don't inherit the value from the parent on
25628 initializing VAL. Adjust for the above change.
25629
256302008-02-01 Kenichi Handa <handa@m17n.org>
25631
25632 * coding.c (Qsignature, Qendian): Delete these variables.
25633 (syms_of_coding): Don't initialize them.
25634 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25635 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25636 detect_info->found.
25637 (decode_coding_utf_16): Don't detect BOM here.
25638 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25639 is NOT utf_16_without_bom.
25640 (setup_coding_system): For a coding system of type utf-16, check
25641 if the attribute :endian is Qbig or not (not nil or not), and set
25642 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25643 (detect_coding): If coding type is utf-16 and BOM detection is
25644 required, detect it.
25645 (Fdefine_coding_system_internal): For a coding system of type
25646 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25647
256482008-02-01 Kenichi Handa <handa@m17n.org>
25649
25650 * coding.c (coding_set_source): Fix for the case that the current
25651 buffer is different from coding->src_object.
25652 (decode_coding_object): Don't use the conversion work buffer if
25653 DST_OBJECT is a buffer.
25654
256552008-02-01 Dave Love <fx@gnu.org>
25656
25657 * lread.c (read_emacs_mule_char) [len==2]: Index
25658 emacs_mule_charset correctly.
25659
256602008-02-01 Dave Love <fx@gnu.org>
25661
25662 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25663 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25664 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25665 treated specially.)
25666 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25667 (detected_mask): Remove Big5 bits.
25668
256692008-02-01 Kenichi Handa <handa@m17n.org>
25670
25671 The following changes are to make the font rescaling facility
25672 compatible with Emacs 21.
25673
25674 * xfaces.c (Vface_font_rescale_alist): Rename from
25675 Vface_resizing_fonts.
25676 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25677 (font_rescale_ratio): Rename from font_resizing_ratio.
25678 (split_font_name): Set font->rescale_ratio.
25679 (better_font_p): Pay attention to font->rescale_ratio.
25680 (build_scalable_font_name): Likewise. Change RESX, and RESY
25681 fields.
25682 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25683
256842008-02-01 Kenichi Handa <handa@m17n.org>
25685
25686 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25687 (Qutf_16_le): Remove these variables.
25688 (syms_of_coding): Don't DEFSYM them.
25689 (decode_coding_utf_16): Fix handling of BOM.
25690 (encode_coding_utf_16): Fix handling of BOM.
25691
256922008-02-01 Kenichi Handa <handa@m17n.org>
25693
25694 * fileio.c (Finsert_file_contents): On replacing, before decoding
25695 the file into the work buffer, set point of the work buffer to the end.
25696
256972008-02-01 Dave Love <fx@gnu.org>
25698
25699 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25700
257012008-02-01 Dave Love <fx@gnu.org>
25702
25703 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25704 and fix C types.
25705
257062008-02-01 Kenichi Handa <handa@m17n.org>
25707
25708 * xdisp.c (SKIP_GLYPHS): New macro.
25709 (set_cursor_from_row): Pay attention to string display properties.
25710
25711 * category.c (copy_category_entry): Fix for the case that RANGE
25712 is an integer.
25713
25714 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25715
25716 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25717
257182008-02-01 Kenichi Handa <handa@m17n.org>
25719
25720 * charset.c (Fcharset_id_internal): New function.
25721 (syms_of_charset): Defsubr it.
25722
25723 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25724 with the last arg charset_list acquired from coding.
25725 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25726 the attribute coding_attr_ccl_valids.
25727
25728 * coding.h (enum define_coding_ccl_arg_index): Set the first
25729 member coding_arg_ccl_decoder to coding_arg_max.
25730
25731 * ccl.h (ccl_driver): Adjust prototype.
25732
25733 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25734 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25735 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25736 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25737 last arg Qnil.
25738
257392008-02-01 Kenichi Handa <handa@m17n.org>
25740
25741 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25742 call encode_char.
25743
25744 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25745
257462008-02-01 Dave Love <fx@gnu.org>
25747
25748 * composite.c (syms_of_composite): Make composition_hash_table weak.
25749
257502008-02-01 Kenichi Handa <handa@m17n.org>
25751
25752 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25753 (font_name_registry): Don't extern them.
25754 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25755
25756 * fontset.h (Qfontset): Don't extern it.
25757 (new_fontset_from_font_name): Extern it.
25758
25759 * fontset.c: Give 8 extra slots to fontset objects.
25760 (Qfontset_info): New variable.
25761 (syms_of_fontset): Defsym it.
25762 (FONTSET_FALLBACK): New macro.
25763 (fontset_face): Try also the default fontset.
25764 (make_fontset): Realize a fallback fontset from the default fontset.
25765 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25766 using split_font_name_into_vector and build_font_name_from_vector.
25767 (Fset_fontset_font): Access the elements of font_spec by enum
25768 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25769 name by using split_font_name_into_vector.
25770 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25771 generate a proper font name from the fontset name.
25772 Update Vfontset_alias_alist.
aac0c6e3
MR
25773 (n_auto_fontsets): New variable.
25774 (new_fontset_from_font_name): New function.
25775 (Ffont_info): Store the information about fonts generated from the
25776 default fontset in the first extra slot of the returned char-table.
25777
25778 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25779 (font_name_registry): Delete function.
25780 (split_font_name_into_vector): New function.
25781 (build_font_name_from_vector): New function.
25782 (font_list): The argument REGISTRY is now a list of registry names.
25783 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25784 specifies an explicit font name, return the name as is. Make a
25785 list of registy names.
25786
25787 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25788 of x_new_fontset.
25789 (Fx_create_frame): Don't call x_new_fontset here. Just use
25790 x_list_fonts to check the existence of fonts.
25791
25792 * xterm.h (x_new_fontset): Adjust prototype.
25793
25794 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25795 string. Use new_fontset_from_font_name to create a fontset from a
25796 font name.
25797
257982008-02-01 Kenichi Handa <handa@m17n.org>
25799
25800 * syntax.c (Vfind_word_boundary_function_table): New name for
25801 Vnext_word_boundary_function_table.
25802 (find-word-boundary-function-table): New name for
25803 next-word-boundary-function-table.
25804
258052008-02-01 Dave Love <fx@gnu.org>
25806
25807 * Makefile.in: Fix some dependencies.
25808
25809 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25810 set it to nil before returning.
25811
25812 * composite.c (update_compositions): Fix type error.
25813
25814 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25815
258162008-02-01 Kenichi Handa <handa@m17n.org>
25817
25818 * xterm.c (x_new_font): Optimize for the case that the font is
25819 already set for the frame.
25820
258212008-02-01 Kenichi Handa <handa@m17n.org>
25822
25823 * chartab.c (char_table_ascii): Check if the char table contents
25824 is sub-char-table or not.
25825 (char_table_set, char_table_set_range): Fix argument to
25826 char_table_ascii.
25827
25828 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25829 (detect_coding_utf_8, detect_coding_utf_16)
25830 (detect_coding_emacs_mule, detect_coding_iso_2022)
25831 (detect_coding_sjis, detect_coding_big5)
25832 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25833 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25834 sequence is valid in this coding system. Change callers.
25835 (MAX_ANNOTATION_LENGTH): New macro.
25836 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25837 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25838 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25839 (ADD_CHARSET_DATA): New macro.
25840 (emacs_mule_char): New argument ID. Change callers.
25841 (decode_coding_emacs_mule, decode_coding_iso_2022)
25842 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25843 Produce charset annotation data in coding->charbuf.
25844 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25845 to charset annotation data in coding->charbuf.
25846 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25847 coding->common_flags if the coding system is iso-2022 based and
25848 uses designation.
25849 (produce_composition): Adjust for the new annotation data format.
25850 (produce_charset): New function.
25851 (produce_annotation): Handle charset annotation.
bba3e508
SM
25852 (handle_composition_annotation, handle_charset_annotation):
25853 New functions.
aac0c6e3
MR
25854 (consume_chars): Handle charset annotation. Utilize the above two
25855 functions.
25856 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25857 buffer, get the deleted text as a string and set
25858 coding->src_object to that string.
25859 (detect_coding, detect_coding_system): Use the new struct
25860 coding_detection_info.
25861
25862 * coding.h (struct coding_detection_info): New structure.
25863 (struct coding_system): Adjust prototype of the member `detector'.
25864 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25865
258662008-02-01 Kenichi Handa <handa@m17n.org>
25867
25868 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25869
258702008-02-01 Dave Love <fx@gnu.org>
25871
25872 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25873 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25874 to new local and nullify apropos_accumulate before returning.
25875 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25876
258772008-02-01 Kenichi Handa <handa@m17n.org>
25878
25879 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25880 correctly.
e3eea1fc 25881
aac0c6e3
MR
258822008-02-01 Dave Love <fx@gnu.org>
25883
25884 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25885
258862008-02-01 Kenichi Handa <handa@m17n.org>
25887
25888 The following changes are to make character composition happen
25889 automatically on displaying.
25890
25891 * Makefile.in (lisp, shortlisp): Add composite.elc.
25892
25893 * composite.h (Qauto_composed, Vauto_composition_function)
25894 (Qauto_composition_function): Extern them.
25895
25896 * composite.c (Vcomposition_function_table)
25897 (Qcomposition_function_table): Delete variables.
25898 (Qauto_composed, Vauto_composition_function)
25899 (Qauto_composition_function): New variables.
25900 (run_composition_function): Don't call
25901 compose-chars-after-function.
25902 (update_compositions): Clear `auto-composed' text property.
25903 (compose_chars_in_text): Delete this function.
25904 (syms_of_composite): Staticpro Qauto_composed and
25905 Qauto_composition_function. Declare Vauto_composition_function as
25906 a Lisp variable.
25907
25908 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25909
25910 * xdisp.c (it_props): Add an entry for Qauto_composed.
25911 (handle_auto_composed_prop): New function.
25912
25913 * xselect.c (selection_data_to_lisp_data): Don't call
25914 compose_chars_in_text.
25915
259162008-02-01 Dave Love <fx@gnu.org>
25917
25918 * keyboard.c (read_char): Modify checking around use of
25919 Vkeyboard_translate_table.
25920
25921 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25922 and fix C types.
25923
259242008-02-01 Kenichi Handa <handa@m17n.org>
25925
25926 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25927 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25928 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25929 the case that the last byte is '\r' correctly.
25930 (decode_coding): Flush out the unprocessed data correctly.
25931 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25932
259332008-02-01 Dave Love <fx@gnu.org>
25934
25935 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25936 Add XK_ISO... case.
25937 (xaw_scroll_callback): Revert last change.
25938
259392008-02-01 Kenichi Handa <handa@m17n.org>
25940
25941 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25942
259432008-02-01 Kenichi Handa <handa@m17n.org>
25944
25945 * xfaces.c (Vface_resizing_fonts): New variable.
25946 (struct font_name): New member `resizing_ratio'.
25947 (font_resizing_ratio): New function.
25948 (split_font_name): Set font->resizing_ratio.
25949 (better_font_p): Pay attention to font->resizing_ratio.
25950 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25951 RESX, and RESY fields.
25952 (try_alternative_families): Try scalable fonts if
25953 Vscalable_fonts_allowed is not Qt.
25954 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25955
259562008-02-01 Dave Love <fx@gnu.org>
25957
25958 * xterm.c (xaw_scroll_callback): Cast correctly.
25959
259602008-02-01 Dave Love <fx@gnu.org>
25961
25962 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25963 (lispy_kana_keys): Comment out.
25964 (make_lispy_event) [XK_kana_A]: Comment out.
25965
25966 * xterm.c (xaw_scroll_callback): Cast call_data.
25967 (XTread_socket): Deal with ASCII keysyms.
25968 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25969
259702008-02-01 Dave Love <fx@gnu.org>
25971
25972 * xterm.c (Vx_keysym_table): New.
25973 (syms_of_xterm): Initialize it.
25974 (XTread_socket): Use it.
25975 From head: Eliminate incorrect optimization that tried to avoid
25976 decoding the output of X*LookupString.
25977 (x_get_font_repertory): Delete charset declaration.
25978
259792008-02-01 Kenichi Handa <handa@m17n.org>
25980
25981 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25982 return 0.
bba3e508
SM
25983 (Fdefine_coding_system_internal):
25984 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25985
259862008-02-01 Dave Love <fx@gnu.org>
25987
25988 * coding.c (Fcheck_coding_system): Doc fix.
25989
25990 * editfns.c (Finsert_byte): Return a proper value.
25991
259922008-02-01 Kenichi Handa <handa@m17n.org>
25993
bba3e508
SM
25994 * coding.c (decode_coding): Fix args to translate_chars.
25995 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25996 (encode_coding): Fix args to translate_chars. Pay attention to
25997 Vstandard_translation_table_for_encode.
25998
25999 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26000 SINGLE_BYTE_CHAR_P.
26001
26002 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26003 not by SINGLE_BYTE_CHAR_P.
26004
26005 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26006 SINGLE_BYTE_CHAR_P.
26007
26008 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26009 SINGLE_BYTE_CHAR_P.
26010
26011 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26012 by SINGLE_BYTE_CHAR_P.
26013
26014 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26015 SINGLE_BYTE_CHAR_P.
26016
260172008-02-01 Dave Love <fx@gnu.org>
26018
26019 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26020
260212008-02-01 Dave Love <fx@gnu.org>
26022
26023 * fns.c (Flanginfo): Fix typo.
26024
26025 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26026
260272008-02-01 Kenichi Handa <handa@m17n.org>
26028
26029 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26030 (detect_coding_emacs_mule, detect_coding_iso_2022)
26031 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26032 incomplete byte sequence. Don't update *mask when correctly detected.
26033 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26034 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26035 (detect_coding, detect_coding_system): Adjust for the changes above.
26036
260372008-02-01 Kenichi Handa <handa@m17n.org>
26038
26039 * character.c (char_string): Rename from
26040 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26041 (string_char): Rename from string_char.
26042
26043 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26044 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
26045 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26046 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
26047
260482008-02-01 Dave Love <fx@gnu.org>
26049
26050 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26051
260522008-02-01 Kenichi Handa <handa@m17n.org>
26053
26054 * keymap.c (push_key_description): Pay attention to force_multibyte.
26055
26056 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26057
260582008-02-01 Dave Love <fx@gnu.org>
26059
26060 * charset.c (define_charset_internal): Rename `supprementary'.
26061
26062 * Makefile.in (lisp, shortlisp): Remove latin-N.
26063
260642008-02-01 Dave Love <fx@gnu.org>
26065
26066 * xfns.c (x_window, x_window): Use use_xim.
26067
26068 * xterm.c (use_xim): Initialize.
26069 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26070 (x_term_init): Maybe set use_xim.
26071
26072 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26073
260742008-02-01 Kenichi Handa <handa@m17n.org>
26075
26076 * search.c (search_buffer): Fix case-fold-search of multibyte
26077 characters.
26078 (boyer_moore): Rename the last argument to char_high_bits.
26079
260802008-02-01 Kenichi Handa <handa@m17n.org>
26081
26082 * xdisp.c (display_string): Fix for the case of zero width glyph.
26083
26084 * xfns.c (x_set_font): Change the error message of the case that
26085 x_new_fontset returns Qt.
26086
26087 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26088 (Finternal_set_lisp_face_attribute): Use signal_error for the
26089 error of invalid fontset.
26090
26091 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26092 fontset, return Qt.
26093
260942008-02-01 Dave Love <fx@gnu.org>
26095
26096 * unexelf.c (unexec): Make .got handling not SGI-specific.
26097
26098 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26099
26100 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26101
26102 * keyboard.c (read_key_sequence): Fix type error.
26103
bba3e508
SM
26104 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26105 Fix type error.
aac0c6e3
MR
26106
26107 * fontset.c (fontset_add): Return Lisp_Object.
26108
261092008-02-01 Dave Love <fx@gnu.org>
26110
26111 * charset.h (charset_ordered_list_tick): Declare extern.
26112
261132008-02-01 Kenichi Handa <handa@m17n.org>
26114
26115 The following changes (and some of 2008-02-01 changes of mine) are
26116 for handling syntax, category, and case conversion for unibyte
26117 characters by converting them to multibyte on the fly. With these
26118 changes, we don't have to setup syntax and case tables for unibyte
26119 characters in each language environment.
26120
26121 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26122 multibyte if necessary.
26123
26124 * bytecode.c (Fbyte_code): Likewise.
26125
26126 * character.h (LEADING_CODE_LATIN_1_MIN)
26127 (LEADING_CODE_LATIN_1_MAX): New macros.
26128 (unibyte_to_multibyte_table): Extern it.
26129 (unibyte_char_to_multibyte): New macro.
26130 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26131 (CHAR_LEADING_CODE): New macro.
26132 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26133
26134 * character.c (unibyte_to_multibyte_table): New variable.
26135 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26136 (multibyte_char_to_unibyte): If C is an eight-bit character,
26137 convert it to the corresponding byte value.
26138
26139 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26140 not 1, signals an error. Update the elements of
26141 unibyte_to_multibyte_table.
26142 (init_charset_once): Initialize unibyte_to_multibyte_table.
26143 (syms_of_charset): Define the charset `iso-8859-1'.
26144
26145 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26146 as is without converting it to unibyte. In a unibyte buffer,
26147 convert C to multibyte before checking the syntax.
26148
26149 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26150
26151 * minibuf.c (Fminibuffer_complete_word): Use the macro
26152 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26153
26154 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26155
26156 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26157 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26158 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26159 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26160 non-emacs case.
26161 (PATFETCH): Convert an eight-bit char to multibyte.
26162 (HANDLE_UNIBYTE_RANGE): New macro.
26163 (regex_compile): Setup the compiled pattern for multibyte chars
26164 even if the given regex string is unibyte. Use PATFETCH_RAW
26165 instead of PATFETCH in many places. To handle `charset'
26166 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26167 only for ASCII chars.
26168 (analyse_first) <exactn>: Simplify because the compiled pattern
26169 is multibyte.
26170 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26171 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26172 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26173 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26174 multibyte always 1.
26175 (re_search_2): In emacs, set the locale variable multibyte to 1,
26176 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26177 to decide the multibyteness of STR1 and STR2.
26178 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26179 before translating and checking fastmap.
26180 (TARGET_CHAR_AND_LENGTH): New macro.
26181 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26182 to 1, otherwise to 0. New local variable target_multibyte.
26183 Check it to decide the multibyteness of STR1 and STR2.
26184 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26185 <charset, charset_not>: If multibyte is nonzero, check fastmap
26186 only for ASCII chars. Call bcmp_translate with
26187 target_multibyte, not with multibyte.
26188 <begline>: Declare the local variable C as `unsigned'.
26189 (bcmp_translate): Change the last arg name to target_multibyte.
26190
26191 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26192 the regexp pattern and the matching target. Set cp->buf.multibyte
26193 to the multibyteness of the regexp pattern. Set
26194 cp->but.target_multibyte to the multibyteness of the matching target.
26195 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26196 FETCH_STRING_CHAR_ADVANCE.
26197 (Freplace_match): Convert unibyte chars to multibyte.
26198
26199 * syntax.c (char_quoted, back_comment, scan_words)
26200 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26201 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26202 unibyte chars to multibyte.
26203 (skip_chars): Delete the arg syntaxp, and move the code for
26204 handling syntaxes to skip_syntaxes. Change callers.
26205 Fix the case that the multibyteness of STRING and the current
26206 buffer doesn't match.
26207 (skip_syntaxes): New function.
26208 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26209 SINGLE_BYTE_CHAR_P.
26210
262112008-02-01 Kenichi Handa <handa@m17n.org>
26212
26213 * xfaces.c (QCfontset): New variable.
26214 (LFACE_FONTSET): New macro.
26215 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26216 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26217 (Finternal_set_lisp_face_attribute)
26218 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26219 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26220 check also LFACE_FONTSET_INDEX.
26221 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26222 attrs[LFACE_FONT_INDEX].
26223 (syms_of_xfaces): Intern and staticpro QCfontset.
26224
26225 * dispextern.h (enum lface_attribute_index): New member
26226 LFACE_FONTSET_INDEX.
26227
26228 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26229
262302008-02-01 Kenichi Handa <handa@m17n.org>
26231
26232 * coding.c (coding_set_destination): Fix coding->destination for
26233 the case converting a region.
26234 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26235 (encode_coding_object): Fix coding->dst_pos and
26236 coding->dst_pos_byte for the case converting a region.
26237
26238 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26239
26240 * character.h (BYTE8_STRING): New macro.
26241
26242 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26243
262442008-02-01 Kenichi Handa <handa@m17n.org>
26245
26246 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26247 characters by octal form.
26248
26249 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26250
26251 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26252 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26253 _fetch_multibyte_char_len.
26254 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26255
26256 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26257
26258 * casefiddle.c (casify_object): Simplify. Handle the case that
26259 the case conversion change the byte length.
26260 (casify_region): Likewise.
26261
26262 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26263
26264 * character.c (_fetch_multibyte_char_len): Delete this variable.
26265 (syms_of_character): Setup Vprintable_chars.
26266
26267 * editfns.c (Fchar_equal): Fix for the unibyte case.
26268 (Finsert_byte): New function.
26269 (syms_of_editfns): Defsubr it.
26270
26271 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26272 of direct code 0x3ffff.
26273
26274 * search.c (Freplace_match): Fix for the unibyte case.
26275
262762008-02-01 Kenichi Handa <handa@m17n.org>
26277
26278 * lread.c (safe_to_load_p): Fix the logic.
26279
26280 * syntax.c (scan_words): Don't treat characters belonging to
26281 different scripts as constituting a word.
26282
26283 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26284
26285 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26286
26287 * emacs.c (main): In the case of --unibyte, instead of aborting on
26288 finding non-empty buffer, make it unibyte.
26289
262902008-02-01 Kenichi Handa <handa@m17n.org>
26291
26292 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26293 to create a fontset.
26294
262952008-02-01 Dave Love <fx@gnu.org>
26296
26297 * character.c (Funibyte_char_to_multibyte): Doc fix.
26298
26299 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26300
263012008-02-01 Kenichi Handa <handa@m17n.org>
26302
26303 * fontset.c (fontset_add): Make the type `int'.
26304 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26305
26306 * character.c (unibyte_char_to_multibyte)
26307 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26308 charset_unibyte, not charset_primary.
26309
26310 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26311
26312 * charset.c (charset_unibyte): Rename from charset_primary.
26313 (Funibyte_charset): Rename from Fprimary_charset.
26314 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26315 (syms_of_charset): Adjust for the above changes.
26316
26317 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26318 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26319 it->multibyte_p is zero.
26320
26321 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26322 Delete extern.
26323
263242008-02-01 Kenichi Handa <handa@m17n.org>
26325
26326 * coding.c (Fdefine_coding_system_internal): Fix category setting
26327 for a coding system of type iso-2022.
26328
263292008-02-01 Kenichi Handa <handa@m17n.org>
26330
26331 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26332
263332008-02-01 Kenichi Handa <handa@m17n.org>
26334
26335 * syntax.c (Vnext_word_boundary_function_table): New variable.
26336 (next-word-boundary-function-table): Declare it as a Lisp variable
26337 in syms_of_syntax.
26338 (scan_words): Call functions in Vnext_word_boundary_function_table
26339 if any.
26340
26341 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26342
26343 * fontset.c (fs_load_font): If fontp->charset is not negative,
26344 return fontp without setting its members.
26345
263462008-02-01 Dave Love <fx@gnu.org>
26347
26348 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26349
26350 * m/sparc.h (HAVE_ALLOCA): Delete.
26351
26352 * s/irix6-5.h: Don't include strings.h.
26353 (bcopy, bzero, bcmp): Don't undef.
26354
26355 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26356
26357 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26358 (TIOCSIGSEND): Don't test IRIX6.
26359 (bcopy, bzero, bcmp): Define conditionally.
26360
263612008-02-01 Kenichi Handa <handa@m17n.org>
26362
26363 * buffer.c (Qas, Qmake, Qto): New variables.
26364 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26365 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26366
26367 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26368 we are inserting a process output into a multibyte buffer.
26369
26370 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26371 multibyte_char_to_unibyte.
26372
26373 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26374 by the primary charset, make it eight-bit char.
26375 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
26376
26377 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
26378 (charset_8_bit__control, charset_8_bit_graphic)
26379 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
26380 (define_charset_internal): New function.
26381 (syms_of_charset): Call define_charset_internal for pre-defined
26382 charsets.
26383
26384 * charset.h (charset_8_bit): Extern it.
26385
26386 * coding.c (make_conversion_work_buffer): Adjust for the change
26387 of Fset_buffer_multibyte.
26388 (encode_coding_raw_text): Increment p0 in the loop.
26389
26390 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
26391
bba3e508
SM
26392 * xdisp.c (setup_echo_area_for_printing, set_message_1):
26393 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
26394
26395 * fns.c (Fstring_to_multibyte): New function.
26396 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
26397
263982008-02-01 Dave Love <fx@gnu.org>
26399
26400 * xfns.c (x_put_x_image): Declare args.
26401
26402 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
26403 (try_font_list): Declare an arg.
26404
26405 * xdisp.c (message2_nolog, set_message): Declare an arg.
26406
26407 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
26408
26409 * syntax.c (scan_sexps_forward): Declare an arg.
26410
26411 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
26412 Declare an arg.
26413
26414 * lisp.h (Fnew_fontset): Declare.
26415
26416 * keymap.c (push_key_description): Call CHARACTERP correctly.
26417
26418 * fontset.c (fontset_add): Declare args. Call make_number correctly.
26419 (face_for_char): Delete unused vars.
26420 (Fset_fontset_font): Doc fix. Delete unused vars.
26421
26422 * doc.c (Fsubstitute_command_keys): Delete unused vars.
26423
26424 * composite.c (update_compositions): Declare arg.
26425
26426 * cm.c (calccost, cmgoto): Declare args.
26427
26428 * charset.c: Remove `emacs' conditional. Doc fixes.
26429 (map_char_table_for_charset): Declare.
26430
26431 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
26432
26433 * ccl.c: Remove `emacs' conditional.
26434
264352008-02-01 Kenichi Handa <handa@m17n.org>
26436
26437 The following changes are to allow specifying multiple font
26438 patterns for a character range (specified by script or charset).
26439
26440 * Makefile.in (abbrev.o): Depend on syntax.h.
26441 (xfaces.o): Depend on charset.h.
26442
26443 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
26444 SINGLE_BYTE_CHAR_P.
26445
26446 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
26447
26448 * character.h (Vchar_script_table): Extern it.
26449
26450 * character.c (Vscript_alist): Delete.
26451 (Vchar_script_table, Qchar_script_table): New variable.
26452 (syms_of_character): Declare Vchar_script_table as a lisp variable
26453 and initialize it.
26454
26455 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
26456 have property char-table-extra-slots, make no extra slot.
26457
26458 * dispextern.h (struct face): Delete member `charset'.
26459 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
26460 SINGLE_BYTE_CHAR_P.
26461 (choose_face_font, lookup_non_ascii_face, font_name_registry):
26462 Add prototypes.
26463 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
26464 (generate_ascii_font_name): Rename from generate_ascii_font.
26465
26466 * fontset.h (get_font_repertory_func): New prototype.
26467 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
26468 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
26469
26470 * fontset.c (Qprepend, Qappend): New variables.
26471 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
26472 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
26473 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
26474 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
26475 (fontset_ref_and_range, fontset_add, reorder_font_vector)
26476 (load_font_get_repertory): New functions.
26477 (fontset_set): Delete.
26478 (fontset_face): New arg FACE. Return face ID, not face.
26479 Complete re-write to handle new fontset structure. Change caller.
26480 (free_face_fontset): Use ASET istead of AREF (X) = Y.
26481 (face_for_char): Don't call lookup_face.
26482 (make_fontset_for_ascii_face): New arg FACE.
26483 (fs_load_font): New arg CHARSET_ID. Don't check
26484 Vfont_encoding_alist here.
26485 (find_font_encoding): New function.
26486 (list_fontsets): Use STRINGP, not ! NILP.
26487 (accumulate_script_ranges): New function.
bba3e508
SM
26488 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
26489 Completely re-written to handle new fontset structure.
aac0c6e3 26490 (Ffontset_font): Return a copy of element.
bba3e508
SM
26491 (syms_of_fontset): Define symbols Qprepend and Qappend.
26492 Fix docstring of font-encoding-alist.
aac0c6e3
MR
26493
26494 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
26495 (Fset_fotset_font): Fix arguments to 5.
26496
26497 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
26498
26499 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
26500 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26501 (highlight_trailing_whitespace): Adjust for the change of
26502 lookup_named_face.
26503
26504 * xfaces.c: Include charset.h.
26505 (load_face_font): Delete argument C. Change caller.
26506 (generate_ascii_font_name): Rename from generate_ascii_font.
26507 (font_name_registry): New function.
26508 (cache_face): Store ascii faces before non-ascii faces in buckets.
26509 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
26510 Lookup only ascii faces.
26511 (lookup_non_ascii_face): New function.
26512 (lookup_named_face): Delete argument C. Change caller.
26513 (lookup_derived_face): Delete argument C. Change caller.
26514 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
26515 a string, just call font_list with it.
26516 (choose_face_font): Delete arguments FACE and C. New arg
26517 FONT_SPEC. Change caller.
26518 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
26519 Change caller.
26520 (realize_non_ascii_face): New function.
26521 (realize_x_face): Call load_face_font here.
26522 (realize_tty_face): Delete argument C. Change caller.
26523 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
26524 get a face ID.
26525 (dump_realized_face): Don't print charset of FACE.
26526
26527 * xfns.c (x_set_font): Always call x_new_fontset and
26528 store_frame_parameter.
26529 (Fx_create_frame): Call x_new_fontset, not x_new_font.
26530 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
26531
26532 * xterm.h (x_get_font_repertory): Extern it.
26533
26534 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26535 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26536 it->multibyte_p is zero.
26537 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26538 (x_new_fontset): If FONTSETNAME doesn't match any existing
26539 fontsets, create a new one.
26540 (x_get_font_repertory): New function.
26541
265422008-02-01 Kenichi Handa <handa@m17n.org>
26543
26544 * coding.c (Ffind_coding_systems_region_internal): Detect an
26545 ASCII only string correctly.
26546
26547 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26548 version is 0.
26549
265502008-02-01 Kenichi Handa <handa@m17n.org>
26551
26552 * lread.c: Include "coding.h".
26553 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26554 (load_each_byte, unread_char): New variables.
26555 (readchar_backlog): Delete.
26556 (readchar): Return a character unless load_each_byte is nonzero.
26557 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26558 cons. If unread_char is not -1, simply return it.
26559 (unreadchar): Handle the case that readcharfun is
26560 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26561 (read_multibyte): Delete.
26562 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26563 (read_emacs_mule_char): New functions.
26564 (Fload): Even if the file doesn't have the extension ".elc", if
26565 safe_to_load_p returns a positive version number, assume that the
26566 file contains bytecompiled code. If the version is less than 22,
26567 load the file while decoding multibyte sequences by emacs-mule.
26568 (readevalloop): Don't use readchar_backlog.
26569 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26570 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26571 (read_escape): Delete the arg BYTEREP.
26572 (read1): Set load_each_byte to 1 temporarily while handling
26573 #@NUMBER. Don't call read_multibyte.
26574 (read_vector): Call Fread with a cons. If readcharfun is
26575 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26576 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26577 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26578 and Qload_force_doc_strings.
26579
265802008-02-01 Kenichi Handa <handa@m17n.org>
26581
bba3e508
SM
26582 * xdisp.c (face_before_or_after_it_pos):
26583 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
26584
265852008-02-01 Kenichi Handa <handa@m17n.org>
26586
26587 * character.h (TRAILING_CODE_P): New macro.
26588 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26589 (string_char_with_unification): Fix prototype.
26590 (Vscript_alist): Extern it.
26591
26592 * character.c (Vscript_alist): New variable.
26593 (string_char_with_unification, str_as_unibyte)
26594 (string_escape_byte8): Add `const' to local variables.
26595 (syms_of_character): Declare script-alist as a Lisp variable.
26596
26597 * charset.h (Vcharset_ordered_list): Extern it.
26598 (charset_ordered_list_tick): Extern it.
26599 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26600 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26601 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26602 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26603 (Funify_charset): Adjust for the change of Funify_charset.
26604
26605 * charset.c (charset_ordered_list_tick): New variable.
26606 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26607 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 26608 deunify instead of unify a charset.
aac0c6e3
MR
26609 (string_xstring_p): Add `const' to local variables.
26610 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
26611 (encode_char): Adjust for the change of Funify_charset.
26612 Fix detecting of invalid code.
aac0c6e3
MR
26613 (Fset_charset_priority): Increment charset_ordered_list_tick.
26614 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26615 and TO_CODE.
26616
26617 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26618 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26619 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26620 (decode_coding_ccl, consume_chars)
26621 (Ffind_coding_systems_region_internal)
26622 (Fcheck_coding_systems_region): Add `const' to local variables.
26623
26624 * print.c (print_object): Use octal form for printing the
26625 contents of a bool vector.
26626
266272008-02-01 Dave Love <fx@gnu.org>
26628
26629 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26630 <version == 20>: Refuse to load.
26631
266322008-02-01 Dave Love <fx@gnu.org>
26633
26634 * fns.c: Move coding.h.
26635 (Qcodeset, Qdays, Qmonths): New.
26636 (concat): Use CHARACTERP instead of INTEGERP.
26637 (Flocale_codeset): Delete.
26638 (Flanginfo): New function.
26639 (syms_of_fns): Change accordingly.
26640
26641 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26642
266432008-02-01 Dave Love <fx@gnu.org>
26644
bba3e508
SM
26645 * casetab.c (init_casetab_once, init_casetab_once):
26646 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26647
26648 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26649
26650 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26651
26652 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26653 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26654 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26655
26656 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26657
26658 * coding.c (ENCODE_DESIGNATION, decode_eol)
26659 (make_conversion_work_buffer, code_conversion_restore)
26660 (Fdefine_coding_system_internal): Convert Lisp types.
26661 (code_conversion_restore): Use EQ, not ==.
26662 (Fencode_coding_string): Fix code_convert_string call.
26663
26664 * coding.h (code_convert_region): Fix prototype.
26665
26666 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26667
26668 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26669 (Ffontset_info): Convert Lisp types.
26670
26671 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26672
26673 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26674
26675 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26676
26677 * chartab.c: Include "...h", not <...h> in some cases.
26678
26679 * callproc.c (Fcall_process): Remove unused variables.
26680
266812008-02-01 Dave Love <fx@gnu.org>
26682
26683 * coding.c (Fset_coding_system_priority): Allow null arg list.
26684
266852008-02-01 Dave Love <fx@gnu.org>
26686
26687 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26688 (Fself_insert_and_exit): Use CHARACTERP.
26689
26690 * callproc.c (Fcall_process): Remove unused vars.
26691
26692 * xterm.c (XTread_socket): Add extra dead keysyms.
26693
26694 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26695
26696 * dispextern.h: Remove prototypes for redraw_frame,
26697 redraw_garbaged_frames.
26698
26699 * cmds.c (Fself_insert_command): Use CHARACTERP.
26700
26701 * chartab.c (make_sub_char_table): Remove unused var.
26702 (Fset_char_table_default, Fmap_char_table): Doc fix.
26703
26704 * keymap.c (access_keymap): Remove generic char code.
26705 (push_key_description): Use CHARACTERP.
26706
267072008-02-01 Dave Love <fx@gnu.org>
26708
26709 * charset.c: Doc fixes.
26710 (Funify_charset): Extra checking.
26711
267122008-02-01 Dave Love <fx@gnu.org>
26713
26714 * lread.c: Remove some unused variables.
26715 (safe_to_load_p): If safe, return the magic number version byte.
26716 (Fload): Maybe use load-with-code-conversion.
26717
267182008-02-01 Kenichi Handa <handa@m17n.org>
26719
26720 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26721 of category_set for characters out of the range.
26722 Avoid unnecessary modification.
aac0c6e3
MR
26723
26724 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26725 Vchar_unify_table. The default value of the table is now nil.
26726
26727 * character.c (syms_of_character): Setup Vchar_width_table for
26728 eight-bit-control and raw-byte chars.
26729
bba3e508
SM
26730 * charset.h (enum define_charset_arg_index):
26731 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26732 charset_arg_superset.
26733 (enum charset_attr_index): Delete charset_parents and add
26734 charset_subset and charset_superset.
26735 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26736 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26737 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26738 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26739 (CHARSET_SUPERSET): New macros.
26740 (charset_work): Extern it.
26741 (ENCODE_CHAR): Use charset_work.
26742 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26743 (map_charset_chars): Extern it.
26744
26745 * charset.c (load_charset_map): Set the default value of encoder
26746 and deunifier char-tables to nil.
bba3e508
SM
26747 (map_charset_chars): Change argument. Change callers.
26748 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26749 (Fmap_charset_chars): New optional args from_code and to_code.
26750 (Fdefine_charset_internal): Adjust for the change of
26751 `define-charset' (:parents -> :subset or :superset).
26752 (charset_work): New variable.
26753 (encode_char, syms_of_charset): Adjust for the change of
26754 Fdefine_charset_internal.
26755 (Ffind_charset_string): Setup the vector `charsets' correctly.
26756
bba3e508
SM
26757 * chartab.c (sub_char_table_ref_and_range): New arg default.
26758 Fix the previous change.
aac0c6e3
MR
26759 (char_table_ref_and_range): Adjust for the above change.
26760 (map_sub_char_table_for_charset): New function.
26761 (map_char_table_for_charset): New function.
26762
26763 * keymap.c (describe_vector): Handle a char-table directly here.
26764 (describe_char_table): Delete.
26765
26766 * lisp.h (map_charset_chars): Delete.
26767
267682008-02-01 Dave Love <fx@gnu.org>
26769
26770 * fns.c (count_combining): Comment out (unused).
26771 (Flocale_codeset): New.
26772 (syms_of_fns): Defsubr it.
26773
26774 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26775 (size_t): Remove.
26776
267772008-02-01 Dave Love <fx@gnu.org>
26778
26779 * Makefile.in (chartab.o): Depend on charset.h.
26780
267812008-02-01 Kenichi Handa <handa@m17n.org>
26782
26783 * character.c (syms_of_character): Set the default value of
26784 Vprintable_chars to Qnil.
26785
267862008-02-01 Dave Love <fx@gnu.org>
26787
26788 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26789
267902008-02-01 Kenichi Handa <handa@m17n.org>
26791
26792 * charset.c (load_charset_map): Handle the case that from < to
26793 correctly.
26794
26795 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26796 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26797 Pay attention to raw-8-bit chars.
26798
267992008-02-01 Kenichi Handa <handa@m17n.org>
26800
26801 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26802 It is not bytecompiled now.
26803
26804 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26805 (charset_jisx0208): New variables.
26806 (Fdefine_charset_internal): Setup them if appropriate.
26807 (init_charset_once): Initialize them to -1.
26808
26809 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26810 (charset_jisx0208): Extern them.
26811
26812 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26813 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26814 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26815 (setup_iso_safe_charsets): Fix arguments to Fassq.
26816 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26817 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26818 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26819 (encode_coding_iso_2022): Change the 1st arg to
26820 ENCODE_ISO_CHARACTER to a variable.
26821
268222008-02-01 Kenichi Handa <handa@m17n.org>
26823
26824 * charset.h (enum define_charset_arg_index): New enums
26825 charset_arg_min_code and charset_arg_max_code.
26826 (struct charset): New member char_index_offset.
26827
26828 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26829 Take charset->char_index_offset into account.
26830 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26831 args[charset_arg_max_code]. Setup charset.char_index_offset.
26832 (syms_of_charset): Fix args to Fdefine_charset_internal.
26833
268342008-02-01 Dave Love <fx@gnu.org>
26835
26836 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26837
268382008-02-01 Dave Love <fx@gnu.org>
26839
26840 * coding.c: Doc fixes.
26841 (Fcoding_system_aliases): Fix return value.
26842 (Qmac): Remove (duplicated) definition.
26843
268442008-02-01 Dave Love <fx@gnu.org>
26845
362654a6
JB
26846 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26847 New functions.
aac0c6e3
MR
26848
26849 * character.c (Fstring): Doc fix.
26850
26851 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26852
362654a6 26853 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26854 (font-encoding-alist): Doc fix.
26855
268562008-02-01 Dave Love <fx@gnu.org>
26857
26858 * term.c (costs_set): Declare static, non-initialized for pcc.
26859 (encode_terminal_code): Remove unused var.
26860
26861 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26862 for K&R.
26863
26864 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26865
26866 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26867 (suffixes): Move out of make_subsidiaries for K&R.
26868
26869 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26870
26871 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26872
268732008-02-01 Dave Love <fx@gnu.org>
26874
26875 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26876
26877 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26878
268792008-02-01 Yong Lu <lyongu@asia-infonet.com>
26880
26881 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26882
26883 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26884
268852008-02-01 Kenichi Handa <handa@m17n.org>
26886
26887 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26888 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26889
268902008-02-01 Kenichi Handa <handa@m17n.org>
26891
26892 * coding.c (decode_coding_charset): Adjust for the change of
26893 Fdefine_coding_system_internal.
26894 (Fdefine_coding_system_internal): For a coding system of
26895 `charset' type, store a list of charset IDs in
26896 `charset_attr_charset_valids' element of coding attributes.
26897
268982008-02-01 Kenichi Handa <handa@m17n.org>
26899
26900 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26901 (emacs_mule_char): New arg src. Delete arg `composition'.
26902 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26903 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26904 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26905 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26906 (DECODE_EMACS_MULE_21_COMPOSITION):
26907 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26908 sequence.
26909 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26910 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26911 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26912 and alt&rule composition.
26913 (decode_coding_iso_2022): Handle composition correctly.
26914 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26915
26916 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26917 re-defining a charset. If the charset has :emacs-mule-id, setup
26918 emacs_mule_bytes.
26919 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26920
269212008-02-01 Kenichi Handa <handa@m17n.org>
26922
26923 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26924 (encode_coding_big5, encode_coding_charset): If coding requires safe
26925 encoding, produce a character specified by
26926 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26927
269282008-02-01 Dave Love <fx@gnu.org>
26929
26930 * xterm.c (XSetIMValues): Declare.
26931
26932 * process.c: Conditionally include sys/wait.h, pty.h.
26933
26934 * print.c (print_object): Fix print format for 64-bit systems.
26935
26936 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26937
26938 * buffer.c (emacs_strerror): Declare.
26939
26940 * fontset.c (Fclear_face_cache): Declare.
26941 (accumulate_font_info): Comment-out (unused).
26942 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26943 variables.
26944
26945 * character.h (string_escape_byte8): Declare.
26946
bba3e508
SM
26947 * charset.c (load_charset_map, load_charset_map_from_file):
26948 Remove unused vars.
aac0c6e3
MR
26949 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26950 (Fmap_charset_chars): Doc fix.
26951
26952 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26953 (Fset_coding_system_priority, Fset_coding_system_priority)
26954 (Fdefine_coding_system_internal): Doc fix.
26955
269562008-02-01 Dave Love <fx@gnu.org>
26957
26958 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26959
269602008-02-01 Kenichi Handa <handa@m17n.org>
26961
26962 * character.c (string_escape_byte8): Make multibyte string with
26963 correct size.
26964
26965 * charset.c (Fmake_char): Delete unnecessary code.
26966
269672008-02-01 Kenichi Handa <handa@m17n.org>
26968
26969 * xfns.c (x_encode_text): Allocate coding.destination here, and
26970 call encode_coding_object with dst_object Qnil.
26971
26972 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26973 multibyte form correctly.
26974
26975 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26976 against Vfont_encoding_alist.
26977
26978 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26979 handling of charset list.
26980 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26981 (decode_coding_object): Move point to coding->dst_pos before
26982 calling post-read-conversion function.
26983 (encode_coding_object): Give correct arguments to
26984 pre-write-conversion. Ignore the return value of
26985 pre-write-conversion function. Pay attention to the case that
26986 pre-write-conversion changes the current buffer. If dst_object is
26987 Qt, even if coding->src_bytes is zero, allocate at least one byte
26988 to coding->destination.
26989
26990 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26991
26992 * charset.c (Fmake_char): Make it more backward compatible.
26993 (Fmap_charset_chars): Fix docstring.
26994
269952008-02-01 Dave Love <fx@gnu.org>
26996
26997 * coding.c: Doc fixes.
26998 (Fdefine_coding_system_alias): Use names, not symbols, in
26999 coding-system-alist.
27000
270012008-02-01 Kenichi Handa <handa@m17n.org>
27002
27003 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27004 of calling free_realized_face.
27005
270062008-02-01 Yong Lu <lyongu@asia-infonet.com>
27007
27008 * charset.c (read_hex): Don't treat SPC as a comment starter.
27009 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27010 (Fdecode_char): Fix typo.
27011
270122008-02-01 Kenichi Handa <handa@m17n.org>
27013
27014 * charset.h (struct charset): New member `code_space_mask'.
27015
27016 * coding.c (coding_set_source): Delete the local variable beg_byte.
27017 (encode_coding_charset, Fdefine_coding_system_internal):
27018 Delete the local variable charset.
bba3e508
SM
27019 (Fdefine_coding_system_internal):
27020 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27021
27022 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27023 member to check if CODE is valid or not.
27024 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27025 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27026 is within the range of charset->min_code and carset->max_code.
27027
270282008-02-01 Dave Love <fx@gnu.org>
27029
27030 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27031
27032 * dispextern.h (generate_ascii_font): Fix return type.
27033
27034 * xfaces.c (generate_ascii_font): Fix arg declaration.
27035
27036 * coding.c (coding_inherit_eol_type)
27037 (Fset_terminal_coding_system_internal)
27038 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27039
270402008-02-01 Kenichi Handa <handa@m17n.org>
27041
bba3e508
SM
27042 * coding.c (decode_coding_charset, encode_coding_charset):
27043 Handle multiple charsets correctly.
aac0c6e3
MR
27044
270452008-02-01 Kenichi Handa <handa@m17n.org>
27046
27047 * search.c (boyer_moore): Fix handling of multibyte character
27048 translation.
27049
27050 * xdisp.c (display_mode_element): When the variable `elt' is
27051 changed, update `this' and `lisp_string'.
27052
270532008-02-01 Kenichi Handa <handa@m17n.org>
27054
27055 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27056
27057 * callproc.c (Fcall_process): Be sure to give the current buffer
27058 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27059
27060 * charset.c (struct charset_map_entries): New struct.
27061 (load_charset_map): Rename from parse_charset_map. New args
27062 entries and n_entries. Change caller.
27063 (load_charset_map_from_file): Rename from load_charset_map.
27064 Change caller. New arg control_flag. Call load_charset_map at
27065 the tail.
27066 (load_charset_map_from_vector): New function.
27067 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27068 (encode_char): If the charset is compact, change a character index
27069 to a code point.
27070
27071 * coding.c (coding_alloc_by_making_gap): Check the case that the
27072 source and destination are the same correctly.
27073 (decode_coding_raw_text): Set coding->consumed_char and
27074 coding->consumed to 0.
27075 (produce_chars): If coding->chars_at_source is nonzero, update
27076 coding->consumed_char and coding->consumed before calling
27077 alloc_destination.
27078 (Fdefine_coding_system_alias): Register ALIAS in
27079 Vcoding_system_alist.
27080 (syms_of_coding): Define `no-conversion' coding system at the tail.
27081
27082 * fileio.c (Finsert_file_contents): Set coding_system instead of
27083 val. If the current buffer is multibyte, always call
27084 decode_coding_gap.
27085
27086 * xfaces.c (try_font_list): Give higher priority to fontset's
27087 family than face's family.
27088
270892008-02-01 Kenichi Handa <handa@m17n.org>
27090
27091 * callproc.c (Fcall_process): Be sure to give the current buffer
27092 to decode_coding_c_string.
27093
27094 * xfaces.c (try_font_list): Give a family specified in a fontset
27095 higher priority than a family specified in a face.
27096
270972008-02-01 Kenichi Handa <handa@m17n.org>
27098
27099 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27100 Fix arguments to insert_from_buffer.
27101
27102 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27103
271042008-02-01 Kenichi Handa <handa@m17n.org>
27105
27106 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27107 (decode_coding_gap): Set coding->dst_multibyte correctly.
27108
271092008-02-01 Kenichi Handa <handa@m17n.org>
27110
27111 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27112 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27113 (encode_coding_utf_16): Substitute coding->default_char for
27114 non-Unicode characters.
27115 (decode_coding): Don't call record_insert here.
27116 (setup_coding_system): Initialize `surrogate' of
27117 coding->spec.utf_16 to 0.
27118 (EMIT_ONE_BYTE): Fix for multibyte case.
27119
27120 * insdel.c (insert_from_gap): Call record_insert.
27121
271222008-02-01 Kenichi Handa <handa@m17n.org>
27123
27124 * casefiddle.c (casify_region): Fix multibyte case.
27125
27126 * character.c (c_string_width): Add return type `int'.
27127 (char_string_with_unification): Delete arg ADVANCED.
27128
27129 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27130 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27131 (CHAR_STRING_ADVANCE): Make it do-while statement.
27132
27133 * chartab.c (sub_char_table_set_range): Optimize for the case
27134 DEPTH == 3. Add workaround code for a GCC optimization bug.
27135
27136 * charset.c (parse_charset_map): Remove an unused variable.
27137
27138 * coding.c: Delete unused variables.
27139
27140 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27141 earlier. If inserted is zero and the coding system doesn't
27142 require flushing, don't call decode_coding_gap.
27143
27144 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27145
271462008-02-01 Kenichi Handa <handa@m17n.org>
27147
27148 The following changes are for using Unicode as an internal
27149 character model, and use UTF-8 format for buffer/string
27150 representation.
27151
27152 * .gdbinit (xchartable): Adjust for the change of char table structure.
27153 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27154
27155 * Makefile.in (obj): Add character.o and chartab.o.
27156 (lisp, shortlisp): Remove utf-8.elc.
27157 (*.o): For many files, change dependency on charset.h to
27158 character.h, and add dependency on character.h.
27159 (character.o, chartab.o): New targets.
27160
27161 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27162 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27163 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27164 of "charset.h".
27165
27166 * dired.c, filelock.c: Include "character.h".
27167
27168 * alloc.c: Include "character.h" instead of "charset.h".
27169 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27170 (syms_of_alloc): Remove defsubr for Smake_char_table.
27171
27172 * buffer.c: Include "character.h" instead of "charset.h", don't
27173 include "coding.h".
27174 (Fset_buffer_multibyte): Adjust for UTF-8.
27175
27176 * buffer.h: EXFUN Fbuffer_live_p.
27177
27178 * callproc.c: Include "character.h" instead of "charset.h".
27179 (Fcall_process): Big change for the new code-conversion APIs.
27180
27181 * casetab.c: Include "character.h" instead of "charset.h".
27182 (set_canon, set_identity, shuffle): Adjust for the new
27183 map_char_table spec.
27184 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27185 accessing the char table structure.
27186
27187 * chartab.c: New file that implements char table.
27188
27189 * category.c: Include "character.h".
27190 (copy_category_entry): New function.
27191 (copy_category_table): Call map_char_table and copy_category_entry.
27192 (Fmake_category_table): Initialize all top-level slots.
27193 (char_category_set): New function.
27194 (modify_lower_category_set): Delete.
27195 (Fmodify_category_entry): Call char_table_ref_and_range.
27196
27197 * category.h (CATEGORY_SET): Just call char_category_set.
27198
27199 * ccl.c: Include "character.h".
27200 (Qccl, Qcclp): New variables.
27201 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27202 it's less than 256.
27203 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27204 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27205 and DST type.
27206 (ccl_driver): Change types of argument, adjust code accordingly.
27207 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27208 ccl_driver.
27209 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27210
27211 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27212 New members src_multibyte, dst_multibyte, consumed, and produced.
27213 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27214 (CODING_SPEC_CCL_PROGRAM): New macro.
27215 (ccl_driver): Update prototype.
27216 (Qccl, Qcclp, Fccl_program_p): Extern them.
27217 (CHECK_CCL_PROGRAM): New macro.
27218
27219 * character.c, character.h, chartab.c: New files.
27220
27221 * charset.c: Mostly re-written. Move character and multibyte sequence
27222 handling codes to character.c.
27223
27224 * charset.h: Mostly re-written. Move character and multibyte sequence
27225 handling codes to character.h.
27226
27227 * coding.c, coding.h: Mostly re-written.
27228
27229 * composite.c: Include "character.h" instead of "charset.h".
27230 (CHAR_WIDTH): Move to character.h.
27231 (HASH_KEY, HASH_VALUE): Delete.
27232
27233 * composite.h (enum composition_method): Change order of enumeration
27234 symbols.
27235
27236 * data.c: Include "character.h" instead of "charset.h".
27237 (Faref): Call CHAR_TABLE_REF for a char table.
27238 (Faset): Call CHAR_TABLE_SET for a char table.
27239
27240 * dispextern.h (free_realized_face, check_face_attribytes)
27241 (generate_ascii_font): Extern them.
27242 (free_realized_multibyte_face): Delete extern.
27243
27244 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27245 table structure.
27246
27247 * editfns.c: Include "character.h" instead of "charset.h".
27248 (Fchar_to_string): Always call CHAR_STRING.
27249
27250 * emacs.c (main): Call init_charset_once, init_charset,
27251 syms_of_chartab, and syms_of_character.
27252
27253 * fileio.c: Include "character.h" instead of "charset.h".
27254 (Finsert_file_contents): Big change for the new code-conversion API.
27255 (choose_write_coding_system, Fwrite_region): Likewise.
27256 (build_annotations_2): Delete.
27257 (e_write): Big change for the new code-conversion API.
27258
27259 * fns.c: Include "character.h" instead of "charset.h".
27260 (copy_sub_char_table): Move to chartab.c.
27261 (Fcopy_sequence): Call copy_char_table for a char table.
27262 (concat): Delete codes calling count_multibyte.
27263 (string_char_to_byte, string_byte_to_char): Adjust for the new
27264 multibyte form.
27265 (internal_equal): Adjust for the change of char table structure.
27266 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27267 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27268 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27269 (char_table_translate, optimize_sub_char_table)
27270 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27271 chartab.c.
27272 (char_table_ref_and_index): Delete.
27273 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27274 (Fmd5): Call preferred_coding_system instead of accessing
27275 Vcoding_category_list. Adjust for the new code-conversion API.
27276 (syms_of_fns): Move defsubr for char table related functions to
27277 chartab.c.
27278
27279 * fontset.c: Mostly re-written.
27280
27281 * fontset.h (struct font_info): Change type of the member encoding_type.
27282 (enum FONT_SPEC_INDEX): New enum.
27283 (fontset_font_pattern, fs_load_font): Update prototype.
27284 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27285
27286 * indent.c: Include "character.h" instead of "charset.h".
27287 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27288
27289 * insdel.c: Include "character.h" instead of "charset.h".
27290 (copy_text): Don't refer to Vnonascii_translation_table.
27291 (insert_from_gap): New function.
27292
27293 * keyboard.c: Include "character.h" instead of "charset.h".
27294 (command_loop_1): Never call direct_output_forward_char before
27295 a non-ASCII character.
27296 (read_char): If Vkeyboard_translate_table is a char table, always
27297 translate a character.
27298
27299 * keymap.c: Include "character.h".
27300 (store_in_keymap): Handle the case that IDX is a cons.
27301 (Fdefine_key): Handle the case that KEY is a cons and the car part
27302 is also a cons (range).
27303 (push_key_description): Adjust for the new character code.
27304 (describe_vector): Call describe_char_table for a char table.
27305 (describe_char_table): New function.
27306
27307 * keymap.h (describe_char_table): Extern it.
27308
27309 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27310 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27311 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27312 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27313 Delete.
27314 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27315 structure.
27316 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27317 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27318 (CHARTAB_SIZE_BITS_3): New macros.
27319 (chartab_size): Extern it.
27320 (struct Lisp_Char_Table): Re-design.
27321 (struct Lisp_Sub_Char_Table): New structure.
27322 (HASH_KEY, HASH_VALUE): Move from fns.c.
27323 (CHARACTERBITS): Define as 22.
27324 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27325 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27326 (GC_SUB_CHAR_TABLE_P): New macro.
27327 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 27328 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
27329 (init_character_once, syms_of_character, init_charset)
27330 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27331
27332 * lread.c: Include "character.h".
27333 (read_multibyte): New arg NBYTES.
27334 (read_escape): Change the meaning of returned *BYTEREP.
27335 (to_multibyte): Delete.
27336 (read1): Adjust the handling of char table and string.
27337
27338 * print.c: Include "character.h" instead of "charset.h".
27339 (print_string): Convert 8-bit raw bytes to octal form by
27340 string_escape_byte8.
27341 (print_object): Adjust for the new multibyte form. Print 8-bit
27342 raw bytes always in octal form. Handle sub char table correctly.
27343
27344 * process.c: Include "character.h" instead of "charset.h".
27345 (read_process_output, send_process): Adjust for the new
27346 code-conversion API.
27347
27348 * puresize.h (BASE_PURESIZE): Increase.
27349
27350 * regex.c: Include "character.h" instead of "charset.h".
27351 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27352 (regex_compile): Accept a range whose starting and ending
27353 character have different leading bytes.
27354 (analyse_first): Adjust for the above change.
27355
27356 * search.c: Include "character.h" instead of "charset.h".
27357 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27358 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27359
27360 * syntax.c: Include "character.h" instead of "charset.h".
27361 (syntax_parent_lookup): Delete.
27362 (Fmodify_syntax_entry): Accept a cons as CHAR.
27363 (skip_chars): Adjust for the new multibyte form.
27364 (init_syntax_once): Call char_table_set_range instead of directly
27365 accessing the structure of a char table.
27366
27367 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27368 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27369 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27370 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27371
27372 * term.c: Include "buffer.h" and "character.h".
27373 (encode_terminal_code, write_glyphs): Adjust for the new
27374 code-conversion API.
27375 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
27376
27377 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
27378
27379 * xdisp.c: Include "character.h".
27380 (get_next_display_element): Adjust for the new multibyte form.
27381 (disp_char_vector): Adjust for the new char table structure.
27382 (decode_mode_spec_coding): Adjust for the new structure of
27383 coding system.
27384 (decode_mode_spec): Adjust for the new code-conversion API.
27385
27386 * xfaces.c: Include "character.h" instead of "charset.h".
27387 (load_face_font): Adjust for the change of choose_face_font and
27388 FS_LOAD_FONT.
27389 (generate_ascii_font): New function.
27390 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
27391 (set_font_frame_param): Adjust for the change of choose_face_font.
27392 (free_realized_face): Make it public.
27393 (free_realized_faces_for_fontset): Rename from
27394 free_realized_multibyte_face. Free also faces realized for ASCII.
27395 (choose_face_font): Change arguments. Adjust for the change of
27396 fontset_font_pattern and FS_LOAD_FONT.
27397
27398 * xfns.c: Include "character.h".
27399 (x_encode_text): Adjust for the new code-conversion API.
27400
27401 * xselect.c: Don't include "charset.h".
27402 (selection_data_to_lisp_data): Adjust for the new code conversion API.
27403
27404 * xterm.c: Include "character.h".
27405 (x_encode_char): New argument CHARSET. Change caller.
27406 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
27407 Call ENCODE_CHAR instead of SPLIT_CHAR.
27408 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
27409 CHAR_WIDTH instead of CHARSET_WIDTH.
27410 (XTread_socket): Adjust for the new code-conversion API.
27411 (x_new_font): Adjust for the change of FS_LOAD_FONT.
27412 (x_load_font): Adjust for the change of struct font.
27413
274142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
27415
27416 * xfaces.c (face_at_buffer_position): Remove unused vars.
27417
274182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27419
27420 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
27421 Fix overflow checking.
27422
274232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27424
27425 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
27426 Cancel previous change.
27427
274282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27429
27430 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
27431 ccl->eight_bit_control. Fix check for buffer overflow.
27432 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
27433 (ccl_driver): Initialize extra_bytes to 0.
27434
274352008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27436
27437 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
27438 return it ORed with ctrl_modifier.
27439
274402008-01-29 Miles Bader <miles@gnu.org>
27441
27442 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
27443
274442008-01-28 Jason Rumney <jasonr@gnu.org>
27445
27446 * w32.c (stat): Don't double check for networked drive.
27447
274482008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
27449
27450 * window.c (run_window_configuration_change_hook): New function.
27451 Code extracted from set_window_buffer. Set the selected frame.
27452 (set_window_buffer): Use it.
27453 * window.h (run_window_configuration_change_hook): Declare.
27454 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
27455
27456 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
27457
274582008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
27459
27460 * Makefile.in: Remove references to unused macros.
27461
274622008-01-26 Eli Zaretskii <eliz@gnu.org>
27463
27464 * w32.c (g_b_init_get_sid_sub_authority)
27465 (g_b_init_get_sid_sub_authority_count): New static variables.
27466 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
27467 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
27468 (init_user_info): Use them to retrieve uid and gid.
27469 Use 500/513, the Windows defaults, as Administrator's uid/gid.
27470 (fstat): Use pw_uid and pw_gid from the_passwd structure for
27471 st_uid and st_gid of the file.
27472
274732008-01-26 Jason Rumney <jasonr@gnu.org>
27474
27475 * w32.c (logon_network_drive): New function.
27476 (stat): Use it.
27477
274782008-01-26 Chong Yidong <cyd@stupidchicken.com>
27479
27480 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
27481 invisible text covered with an ellipsis.
27482
274832008-01-25 Richard Stallman <rms@gnu.org>
27484
27485 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
27486 jump back to beginning. Move some other initializations after that.
27487 (Qwindow_text_change_functions, Vwindow_text_change_functions):
27488 New variables.
27489 (syms_of_xdisp): Init them.
27490
27491 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
27492
27493 * buffer.c (reset_buffer_local_variables):
27494 Implement `permanent-local-hook'.
27495 (Qpermanent_local_hook): New variable.
27496 (syms_of_buffer): Init and staticpro it.
27497
274982008-01-25 Michael Albinus <michael.albinus@gmx.de>
27499
27500 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
27501
275022008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
27503
27504 * fns.c (Fclrhash): Return TABLE.
27505
275062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27507
27508 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
27509 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
27510 is set even without positional changes.
27511 (x_scroll_bar_clear): Set bar->redraw_needed_p.
27512
27513 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
27514
275152008-01-23 Jason Rumney <jasonr@gnu.org>
27516
27517 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
27518
27519 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
27520 the unicode range available in MULE by locale-coding-system.
27521 Improve dbcs lead byte detection. Set event timestamp and modifiers
27522 earlier.
27523
275242008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27525
27526 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
27527 [MAC_OSX] (init_mac_osx_environment): Initialize it.
27528 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
27529 when used on child processes.
27530
275312008-01-21 Michael Albinus <michael.albinus@gmx.de>
27532
27533 * dbusbind.c (Fdbus_method_return_internal): Rename from
27534 Fdbus_method_return.
27535 (Fdbus_unregister_object): Move to dbus.el.
27536 (Fdbus_call_method, Fdbus_method_return_internal)
27537 (Fdbus_send_signal): Improve debug messages.
27538
275392008-01-20 Martin Rudalics <rudalics@gmx.at>
27540
27541 * undo.c (undo_inhibit_record_point): New variable.
27542 (syms_of_undo): Initialize it.
27543 (record_point): Don't record point when undo_inhibit_record_point
27544 is set.
27545
275462008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27547
27548 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27549
27550 * xdisp.c (Qauto_hscroll_mode): New var.
27551 (syms_of_xdisp): Initialize it.
27552 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27553 window's buffer.
27554 (hscroll_windows): Don't check automatic_hscrolling_p here.
27555
27556 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27557 vscroll if we're setting window-buffer to the value it already has.
27558
275592008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27560
27561 * m/intel386.h: Remove references to XENIX.
27562
275632008-01-17 Andreas Schwab <schwab@suse.de>
27564
27565 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27566 instead of HAVE_X86_64_LIB64_DIR.
27567 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27568
275692008-01-17 Glenn Morris <rgm@gnu.org>
27570
27571 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27572 to HAVE_X86_64_LIB64_DIR.
27573
275742008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27575
27576 * s/irix3-3.h:
27577 * s/irix4-0.h:
27578 * s/386-ix.h:
27579 * s/domain.h:
27580 * s/hpux9-x11r4.h:
27581 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27582
27583 * sysdep.c: Remove code containing references to symbols defined
27584 by unsupported systems.
27585
275862008-01-16 Glenn Morris <rgm@gnu.org>
27587
27588 * coding.c (select-safe-coding-system-function): Doc fix.
27589
275902008-01-15 Glenn Morris <rgm@gnu.org>
27591
27592 * config.in: Revert 2008-01-13 change: this is a generated file.
27593
275942008-01-13 Tom Tromey <tromey@redhat.com>
27595
27596 * lisp.h: Fix typo.
27597
275982008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27599
27600 * m/sequent-ptx.h:
27601 * m/sequent.h:
27602 * s/ptx.h:
27603 * s/ptx4-2.h:
27604 * s/ptx4.h: Remove files for systems no longer supported.
27605
27606 * callproc.c (Fcall_process): Fix previous change.
27607
276082008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27609
27610 * unexsunos4.c: Remove file, system not supported anymore.
27611
27612 * m/mips.h:
27613 * m/intel386.h:
27614 * callproc.c:
27615 * config.in:
27616 * ecrt0.c:
27617 * emacs.c:
27618 * fileio.c:
27619 * frame.c:
27620 * getpagesize.h:
27621 * keyboard.c:
27622 * lread.c:
27623 * process.c:
27624 * puresize.h:
27625 * sysdep.c:
27626 * systty.h:
27627 * syswait.h:
27628 * unexec.c:
27629 * xdisp.c:
27630 * alloc.c: Remove code containing references to symbols defined by
27631 unsupported systems.
27632
276332008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27634
27635 * coding.c (detect_coding_mask): Fix previous change.
27636
276372008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27638
27639 * coding.c (detect_coding_iso2022): New arg
27640 latin_extra_code_state. Allow Latin extra codes only
27641 when *latin_extra_code_state is nonzero.
27642 (detect_coding_mask): If there is a NULL byte, detect the encoding
27643 as UTF-16 or binary. If Latin extra codes exist, detect the
27644 encoding as ISO-2022 only when there's no other proper encoding is
27645 found.
27646
276472008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27648
27649 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27650 #ifdef MAC_OS.
27651
276522008-01-08 Richard Stallman <rms@gnu.org>
27653
27654 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27655
276562008-01-06 Nick Roberts <nickrob@snap.net.nz>
27657
27658 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27659 menu bar in parentheses.
27660
276612008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27662
27663 * m/7300.h:
27664 * m/acorn.h:
27665 * m/alliant-2800.h:
27666 * m/alliant.h:
27667 * m/alliant1.h:
27668 * m/alliant4.h:
27669 * m/altos.h:
27670 * m/amdahl.h:
27671 * m/apollo.h:
27672 * m/att3b.h:
27673 * m/aviion-intel.h:
27674 * m/aviion.h:
27675 * m/celerity.h:
27676 * m/clipper.h:
27677 * m/cnvrgnt.h:
27678 * m/convex.h:
27679 * m/cydra5.h:
27680 * m/delta88k.h:
27681 * m/dpx2.h:
27682 * m/dual.h:
27683 * m/elxsi.h:
27684 * m/f301.h:
27685 * m/gould-np1.h:
27686 * m/gould.h:
27687 * m/i860.h:
27688 * m/ibmps2-aix.h:
27689 * m/ibmrt-aix.h:
27690 * m/ibmrt.h:
27691 * m/irist.h:
27692 * m/is386.h:
27693 * m/isi-ov.h:
27694 * m/mega68.h:
27695 * m/mg1.h:
27696 * m/news-r6.h:
27697 * m/news-risc.h:
27698 * m/news.h:
27699 * m/nh3000.h:
27700 * m/nh4000.h:
27701 * m/ns16000.h:
27702 * m/ns32000.h:
27703 * m/nu.h:
27704 * m/orion.h:
27705 * m/orion105.h:
27706 * m/paragon.h:
27707 * m/pfa50.h:
27708 * m/plexus.h:
27709 * m/pyramid.h:
27710 * m/pyrmips.h:
27711 * m/sh3el.h:
27712 * m/sps7.h:
27713 * m/sr2k.h:
27714 * m/stride.h:
27715 * m/sun1.h:
27716 * m/sun2.h:
27717 * m/sun3-68881.h:
27718 * m/sun3-fpa.h:
27719 * m/sun3-soft.h:
27720 * m/sun3.h:
27721 * m/sun386.h:
27722 * m/symmetry.h:
27723 * m/tad68k.h:
27724 * m/tahoe.h:
27725 * m/targon31.h:
27726 * m/tek4300.h:
27727 * m/tekxd88.h:
27728 * m/tower32.h:
27729 * m/tower32v3.h:
27730 * m/ustation.h:
27731 * m/wicat.h:
27732 * m/xps100.h:
27733 * s/cxux.h:
27734 * s/cxux7.h:
27735 * s/dgux.h:
27736 * s/dgux4.h:
27737 * s/dgux5-4-3.h:
27738 * s/dgux5-4r2.h:
27739 * s/esix.h:
27740 * s/esix5r4.h:
27741 * s/hiuxmpp.h:
27742 * s/hiuxwe2.h:
27743 * s/iris3-5.h:
27744 * s/iris3-6.h:
27745 * s/isc2-2.h:
27746 * s/isc3-0.h:
27747 * s/isc4-0.h:
27748 * s/isc4-1.h:
27749 * s/newsos5.h:
27750 * s/newsos6.h:
27751 * s/osf1.h:
27752 * s/osf5-0.h:
27753 * s/riscix1-1.h:
27754 * s/riscix12.h:
27755 * s/sco4.h:
27756 * s/sco5.h:
27757 * s/sunos4-0.h:
27758 * s/sunos4-1.h:
27759 * s/sunos413.h:
27760 * s/sunos4shr.h:
27761 * s/umax.h:
27762 * s/unipl5-2.h:
27763 * s/xenix.h:
27764 * cxux-crt0.s:
27765 * unexapollo.c:
27766 * unexconvex.c:
27767 * unexenix.c:
27768 * unexsni.c: Remove files for systems no longer supported.
27769
27770 * m/intel386.h: Remove references to unsupported systems.
27771
27772 * w32.c (get_emacs_configuration): Remove reference to i860.
27773
27774 * sysdep.c: Remove dead code.
27775
277762008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27777
27778 * s/rtu.h:
27779 * m/masscomp.h: Remove files. Platform is obsolete.
27780
277812008-01-04 Michael Albinus <michael.albinus@gmx.de>
27782
27783 * dbusbind.c (Fdbus_method_return): New function.
27784 (xd_read_message): Add the serial number to the event.
27785 (Fdbus_register_method): Activate the function.
27786
277872008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27788
27789 * keyboard.c (read_key_sequence): Fix typo.
27790
277912008-01-03 Michael Albinus <michael.albinus@gmx.de>
27792
27793 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27794 (xd_signature, xd_append_arg): Handle element type detection for
27795 empty arrays.
27796 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27797 SDATA () calls; this must be solved more general.
27798 (Fdbus_register_signal): Use SBYTES instead of strlen.
27799
278002008-01-03 Magnus Henoch <magnus@zemdatav>
27801
27802 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27803 unsigned int for byte values (necessary for big-endian platform).
27804 (Fdbus_call_method): Handle the case of no returned arguments.
27805
278062007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27807
27808 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27809
278102007-12-31 Magnus Henoch <mange@freemail.hu>
27811
27812 * dbusbind.c (xd_signature): Signature of variant is just "v".
27813
278142007-12-30 Michael Albinus <michael.albinus@gmx.de>
27815
27816 * dbusbind.c: Fix several errors and compiler warnings.
27817 Reported by Tom Tromey <tromey@redhat.com>.
27818 (XD_ERROR, XD_DEBUG_MESSAGE)
27819 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27820 (xd_append_arg): Part for basic D-Bus types rewritten.
27821 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27822 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27823 appropriate.
27824 (xd_read_message): Return Qnil. Don't signal an error; it is not
27825 useful during event reading.
27826 (Fdbus_register_signal): Signal an error if the check for
27827 FUNCTIONP fails.
27828 (Fdbus_register_method): New function. The implementation is not
27829 complete, the call of the function signals an error therefore.
27830 (Fdbus_unregister_object): New function, renamed from
27831 Fdbus_unregister_signal. The initial check signals an error, if
27832 the object is not well formed.
27833
278342007-12-30 Richard Stallman <rms@gnu.org>
27835
27836 * textprop.c (get_char_property_and_overlay):
27837 Signal error if POSITION is out of range in a buffer.
27838
278392007-12-29 Martin Rudalics <rudalics@gmx.at>
27840
27841 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27842 because the original parameters are in pure storage now.
27843
278442007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27845
27846 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27847
278482007-12-22 Eli Zaretskii <eliz@gnu.org>
27849
27850 * callint.c (syms_of_callint) <command-history>: Add reference to
27851 history-length in the doc string.
27852
278532007-12-17 Jason Rumney <jasonr@gnu.org>
27854
27855 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27856 before passing as wParam.
27857
278582007-12-22 Michael Albinus <michael.albinus@gmx.de>
27859
27860 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27861 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27862 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27863 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27864 as number.
27865 (Fdbus_call_method): Fix docstring.
27866
278672007-12-21 Michael Albinus <michael.albinus@gmx.de>
27868
27869 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27870 New macros.
27871 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27872 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27873 Simplify.
27874 (xd_signature): New function.
27875 (xd_append_arg): Compute also signatures. Major rewrite.
27876 (xd_retrieve_arg): Make debug messages friendly.
27877 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27878 Check for signatures of arguments.
27879
278802007-12-19 Michael Albinus <michael.albinus@gmx.de>
27881
27882 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27883 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27884 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27885 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27886 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27887 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27888 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27889 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27890 (xd_retrieve_value): Remove. Functionality included in ...
27891 (xd_append_arg): New function.
27892 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27893
278942007-12-16 Michael Albinus <michael.albinus@gmx.de>
27895
27896 * dbusbind.c (top): Include <stdio.h>.
27897 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27898 dbus_message_new_method_call and dbus_message_new_signal.
27899 (Fdbus_register_signal): Rename unique_name to uname.
27900 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27901 non-existing unique name. Fix typos in matching rule. Return an
27902 object which is useful in Fdbus_unregister_signal.
27903 (Fdbus_unregister_signal): Reimplementation, in order to remove
27904 only the corresponding entry.
27905 (Vdbus_registered_functions_table): Change the order of entries.
27906 Apply these changes in xd_read_message and Fdbus_register_signal.
27907
279082007-12-16 Andreas Schwab <schwab@suse.de>
27909
27910 * fileio.c (Finsert_file_contents): Fix overflow check to not
27911 depend on undefined integer overflow.
27912
279132007-12-14 Jason Rumney <jasonr@gnu.org>
27914
27915 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27916 for characters above 127.
27917
279182007-12-13 Jason Rumney <jasonr@gnu.org>
27919
27920 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27921 before dereferencing array.
27922 (lookup_vk_code): Remove zero comparison.
27923
279242007-12-14 Michael Albinus <michael.albinus@gmx.de>
27925
27926 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27927 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27928 Use `unsigned int' instead of `uint'.
27929 (xd_read_message, Fdbus_register_signal): Split expressions into
27930 multiple lines before operators "&&" and "||", according to the
27931 GNU Coding Standards.
27932
279332007-12-14 Eli Zaretskii <eliz@gnu.org>
27934
27935 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27936
279372007-12-12 Juri Linkov <juri@jurta.org>
27938
27939 * buffer.c (Frename_buffer): In interactive spec replace
27940 `read-buffer' with `read-string' that uses `buffer-name-history'
27941 as history, and the current buffer's name as default.
27942
279432007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27944
27945 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27946 manipulating the backtrace manually.
27947 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27948 (struct backtrace, backtrace_list): Remove.
27949 (command_loop_1): Remove dead var `no_direct'.
27950
27951 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27952 preserve non-built-in buffer-local variables.
27953 (Fkill_all_local_variables): Don't re-create&re-set permanent
27954 buffer-local variables.
27955
279562007-12-09 Juri Linkov <juri@jurta.org>
27957
27958 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27959 Lisp code that uses `read-buffer' with current buffer as default.
27960
279612007-12-08 Michael Albinus <michael.albinus@gmx.de>
27962
27963 * dbusbind.c (xd_read_message): Generate an event for every
27964 registered handler. There might be several handlers registered
27965 for the same signal.
27966 (Fdbus_register_signal): Don't overwrite a registration for the
27967 same signal. Add a new registration if handlers are different.
27968 (Vdbus_registered_functions_table): Rework doc string.
27969
279702007-12-07 Michael Albinus <michael.albinus@gmx.de>
27971
27972 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27973 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27974 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27975 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27976 Unify argument lists.
27977 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27978 arguments and hash table keys. Use unique name for service.
27979 (Fdbus_unregister_signal): Remove checks.
27980 (Vdbus_registered_functions_table): Fix doc string.
27981
279822007-12-05 Magnus Henoch <mange@freemail.hu>
27983
27984 * process.c (make_process): Initialize pty_flag to 0.
27985
279862007-12-05 Jason Rumney <jasonr@gnu.org>
27987
27988 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27989 specified XBMs.
27990
279912007-12-05 Richard Stallman <rms@gnu.org>
27992
27993 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27994
279952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27996
27997 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27998 New variable.
27999 (mac_try_close_socket) [MAC_OSX]: New function.
28000 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28001 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28002
28003 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28004 Use mac_try_close_socket.
28005
280062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28007
28008 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28009 reloc_base.
28010 (copy_dysymtab): Compute relocation base here.
28011 (rebase_reloc_address) [__ppc64__]: New function.
28012 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28013 changed.
28014
280152007-12-05 Jason Rumney <jasonr@gnu.org>
28016
28017 * w32proc.c (sys_spawnve): Quote args with wildcards.
28018
280192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28020
28021 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28022 __objc_* sections.
28023 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28024
280252007-12-05 Michael Albinus <michael.albinus@gmx.de>
28026
28027 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28028 Move check for Vdbus_registered_functions_table to
28029 xd_read_queued_messages.
28030 (xd_read_queued_messages): Protect xd_read_message calls by
28031 internal_condition_case_1.
28032
280332007-12-04 Michael Albinus <michael.albinus@gmx.de>
28034
28035 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28036 Qdbus_system_bus and Qdbus_session_bus, respectively.
28037 (Vdbus_intern_symbols): Remove.
28038 (Vdbus_registered_functions_table): New hash table.
28039 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28040 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28041 Rewrite in order to manage registered functions by hash table
28042 Vdbus_registered_functions_table.
28043
280442007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28045
28046 * xterm.c: Update URL to Window Manager Specification in comment.
28047
280482007-12-02 Michael Albinus <michael.albinus@gmx.de>
28049
28050 * config.in (HAVE_DBUS): Add.
28051
28052 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28053 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28054 (obj): Add $(DBUS_OBJ).
28055 (LIBES): Add $(DBUS_LIBS).
28056 (dbusbind.o): New target.
28057
28058 * dbusbind.c: New file.
28059
28060 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28061
28062 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28063 (Qdbus_event): New Lisp symbol.
28064 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28065 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 28066 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
28067
28068 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28069
280702007-12-01 Richard Stallman <rms@gnu.org>
28071
28072 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28073
280742007-11-30 Jason Rumney <jasonr@gnu.org>
28075
28076 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28077 (w32con_reset_terminal_modes): Clear screen buffer.
28078 (w32_face_attributes): Don't use color indexes that are out of range.
28079 Only reverse the default colors.
28080
28081 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28082 WINDOWSNT.
28083
28084 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28085
280862007-11-29 Jason Rumney <jasonr@gnu.org>
28087
28088 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28089 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28090 if the terminal colors are initialized.
28091 (unspecified_fg, unspecified_bg): Remove unused declarations.
28092
280932007-11-29 Andreas Schwab <schwab@suse.de>
28094
28095 * keyboard.c (apply_modifiers): Fix typo.
28096
280972007-11-29 Richard Stallman <rms@gnu.org>
28098
28099 * keymap.c (Fcurrent_local_map): Doc fix.
28100
281012007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28102
28103 * s/gnu-kfreebsd.h: New file.
28104
281052007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28106
28107 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28108 Don't cast redundantly.
28109
28110 * keyboard.c (KEY_TO_CHAR): New macro.
28111 (parse_modifiers, apply_modifiers): Accept integer arguments.
28112 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28113 for chars and symbol keys.
28114 After doing such remapping, apply function-key-map again.
28115
281162007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28117
28118 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28119 compiled anymore.
28120
281212007-11-26 Andreas Schwab <schwab@suse.de>
28122
28123 * process.c (list_processes_1): Fix indentation level of the
28124 command column.
28125
281262007-11-23 Andreas Schwab <schwab@suse.de>
28127
28128 * editfns.c (Fformat): Handle %c specially since it requires the
28129 argument to be of type int.
28130
281312007-11-23 Markus Triska <markus.triska@gmx.at>
28132
28133 * emacs.c (main): Call init_editfns before init_process, since
28134 init_process sets Vprocess_connection_type depending on OS release.
28135
281362007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28137
28138 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28139 (find_symbol_value): Use do_symval_forwarding.
28140
28141 * data.c (set_internal): Set the value in the `cons-cell' (for
28142 Buffer_Local_values) not only for frame-local variables.
28143
281442007-11-22 Andreas Schwab <schwab@suse.de>
28145
28146 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28147 values to sprintf.
28148 * keymap.c (Fsingle_key_description): Likewise.
28149 * print.c (print_object): Likewise.
28150
281512007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28152
28153 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28154 file for image is nil.
28155
281562007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28157
28158 * term.c: Include stdarg.h.
28159 (fatal): Implement using varargs.
28160 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28161
281622007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28163
28164 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28165 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28166 Update call to buffer_slot_type_mismatch.
28167 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28168 (buffer_slot_type_mismatch): Update.
28169 * buffer.c (buffer_local_types): Remove.
28170 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28171 (defvar_per_buffer): Set the type in the buffer_objfwd.
28172
281732007-11-21 Jason Rumney <jasonr@gnu.org>
28174
28175 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28176 CreateFileMapping returns NULL on failure.
28177
281782007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28179
28180 * search.c (Fset_match_data): Remove the `evaporate' feature.
28181 (unwind_set_match_data): Don't use the `evaporate' feature.
28182
281832007-11-21 Jason Rumney <jasonr@gnu.org>
28184
28185 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28186
28187 * w32console.c (w32con_write_glyphs): Remove unused variables.
28188
281892007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28190
28191 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28192
28193 * s/darwin.h (MULTI_KBOARD): Remove.
28194
28195 * macfns.c (x_create_tip_frame, Fx_create_frame)
28196 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28197
281982007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28199
28200 * buffer.c (Fbuffer_local_value): Remove redundant test.
28201 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28202 than in `current-buffer' to match the comment.
28203 Do the swap using swap_in_global_binding.
28204
28205 * data.c (store_symval_forwarding, set_internal):
28206 * eval.c (specbind): Remove dead code.
28207
28208 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28209 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28210 Since we do not want to see internal Lisp_*fwd objects here.
28211
282122007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28213
28214 * sysdep.c (init_system_name): Use getaddrinfo if available.
28215
28216 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28217 (x_scroll_bar_note_movement): start, end, with, height in struct
28218 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28219
282202007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28221
28222 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28223
282242007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28225
28226 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28227 This undoes Richard's change of 14-Oct-2002.
28228
28229 * alloc.c (allocate_other_vector):
28230 * lisp.h (allocate_other_vector): Remove.
28231
28232 * window.c (struct save_window_data): Move non-lisp data to the end
28233 and make it `int' rather than Lisp_Object.
28234 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28235 Done wrap/unwrap integer values.
28236 (Fset_window_configuration, compare_window_configurations):
28237 Update use of fields to their new types.
28238
28239 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28240 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28241 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28242 (SET_SCROLL_BAR_X_WINDOW): Remove.
28243 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28244 Access the new x_window field directly.
28245 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28246 Don't wrap/unwrap integers into Lisp_Objects.
28247 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28248 (x_scroll_bar_report_motion):
28249 Don't wrap/unwrap integers into Lisp_Objects.
28250 (x_term_init): Use SDATA.
28251 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28252 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28253 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28254 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28255 * xfns.c (x_set_background_color):
28256 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28257 Access the new x_window field directly.
28258
28259 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28260 (allocate_pseudovector): Make non-static.
28261
28262 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28263 (allocate_pseudovector): Declare.
28264 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28265
282662007-11-15 Andreas Schwab <schwab@suse.de>
28267
28268 * editfns.c (Fformat): Correctly format EMACS_INT values.
28269 Also take precision into account when formatting an integer.
28270
28271 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28272
282732007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28274
28275 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28276 (syms_of_keyboard): Defsubr it.
28277
28278 * data.c (swap_in_global_binding): Fix longstanding bug where
28279 store_symval_forwarding was not called with the right second argument,
28280 thus causing objfwd-ing from being dropped.
28281
282822007-11-14 Juanma Barranquero <lekktu@gmail.com>
28283
28284 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28285 (Fx_display_pixel_height, Fx_display_planes)
28286 (Fx_display_color_cells, Fx_server_max_request_size)
28287 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28288 (Fx_display_visual_class, Fx_display_save_under):
28289 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28290 (Fx_display_pixel_height, Fx_display_planes)
28291 (Fx_display_color_cells, Fx_server_max_request_size)
28292 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28293 (Fx_display_mm_height, Fx_display_mm_width)
28294 (Fx_display_backing_store, Fx_display_visual_class)
28295 (Fw32_select_font, Fx_display_save_under):
28296 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28297 (Fx_display_pixel_height, Fx_display_planes)
28298 (Fx_display_color_cells, Fx_server_max_request_size)
28299 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28300 (Fx_display_save_under): Fix typos in docstrings.
28301
283022007-11-14 Juanma Barranquero <lekktu@gmail.com>
28303
28304 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28305 corresponding to deleted entries; they are an implementation detail.
28306 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28307 Remove variables.
28308 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28309 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28310 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28311 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28312 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28313 (Fw32_define_rgb_color, Fw32_load_color_file)
28314 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28315 Fix typos in docstrings.
28316 (Fx_server_version): Reflow docstring.
28317 (Fw32_shell_execute): Doc fixes.
28318
283192007-11-13 Juanma Barranquero <lekktu@gmail.com>
28320
28321 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28322 if w32_parse_hot_key returned nil.
28323
283242007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28325
28326 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28327
283282007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 28329
aac0c6e3
MR
28330 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28331
28332 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28333
28334 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28335 Remove W32_SCROLL_BAR_CLICK_EVENT.
28336
28337 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28338 Add MULTIMEDIA_KEY_EVENT.
28339
28340 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28341 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28342 (make_lispy_event) [WINDOWSNT]: Use it to translate
28343 MULTIMEDIA_KEY_EVENT.
28344
28345 * w32term.h (WM_APPCOMMAND): Define if not already.
28346 (GET_APPCOMMAND_LPARAM): Likewise.
28347
28348 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28349 WM_APPCOMMAND.
28350
28351 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28352 (syms_of_w32fns): Export and initialize it.
28353 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28354
283552007-11-09 Chong Yidong <cyd@stupidchicken.com>
28356
28357 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28358 twice.
28359
28360 * xdisp.c (handle_face_prop): Fix last change.
28361
283622007-11-09 Richard Stallman <rms@gnu.org>
28363
28364 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28365 not just for after-strings and before-strings.
28366 Call face_for_overlay_string and pass the overlay to it.
28367 (handle_display_prop): Determine whether property came from an overlay.
28368 Pass OVERLAY arg to handle_single_display_spec.
28369 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28370 (load_overlay_strings): Fill in it->string_overlays.
28371 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28372
28373 * xfaces.c (face_for_overlay_string): Function renamed from
28374 face_at_buffer_position_no_overlays, and add arg OVERLAY.
28375
28376 * dispextern.h (struct it): New elt string_overlays.
28377 New elt from_overlay, also in stack.
28378 Rearrange a few elements.
28379 (face_for_overlay_string): Decl renamed from
28380 face_at_buffer_position_no_overlays, and add argument.
28381
283822007-11-09 Richard Stallman <rms@gnu.org>
28383
28384 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
28385 to get the base face for an overlay string.
28386
28387 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
28388
28389 * xfaces.c (face_at_buffer_position_no_overlays): New function.
28390
28391 * xdisp.c (handle_stop): Move some code out of loop.
28392
283932007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28394
28395 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
28396 Fix conversion from Lisp object to ATSUFontID.
28397
283982007-11-09 Jason Rumney <jasonr@gnu.org>
28399
28400 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
28401
284022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28403
28404 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
28405 Don't assume regions are aligned to page boundary.
28406 (print_load_command_name): Add LC_UUID if defined.
28407
284082007-11-09 Richard Stallman <rms@gnu.org>
28409
28410 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
28411
284122007-11-07 Jason Rumney <jasonr@gnu.org>
28413
28414 * s/windows95.h: Remove.
28415
284162007-11-06 Jan Djärv <jan.h.d@swipnet.se>
28417
28418 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
28419 abort with a message on unhandled store_type values.
28420
284212007-11-01 Jan Djärv <jan.h.d@swipnet.se>
28422
28423 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
28424 Remove HAVE_X11R5 and HAVE_X11R4.
28425
284262007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28427
28428 * Makefile.in: Remove references to sunfns.c and sunfns.o.
28429
284302007-11-01 Johan Bockgård <bojohan@gnu.org>
28431
28432 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
28433 Don't set s->stippled_p here, since it has already been set by
28434 x_set_glyph_string_gc from x_draw_glyph_string.
28435
284362007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28437
28438 * sunfns.c: Remove file.
28439
28440 * m/sun386.h:
28441 * m/sun2.h:
28442 * m/sparc.h: Remove Sun windows code.
28443
284442007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
28445
28446 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
28447 (init_keyboard): Set current_kboard's window-system to nil.
28448 (tty_read_avail_input): Typo.
28449 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
28450
284512007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
28452
28453 * s/usg5-4.h:
28454 * s/usg5-3.h:
28455 * s/ptx.h:
28456 * m/is386.h:
28457 * m/ibmps2-aix.h:
28458 * Makefile.in: Remove all mentions of X10.
28459
28460 * dispnew.c (syms_of_display): Don't mention version 10.
28461
284622007-10-28 Juanma Barranquero <lekktu@gmail.com>
28463
28464 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
28465 ($(BLD)/abbrev.$(O)): Remove.
28466
284672007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
28468
28469 Rewrite abbrev.c in Elisp.
28470 * image.c (Qcount): Don't declare as extern.
28471 (syms_of_image): Initialize and staticpro `Qcount'.
28472 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
28473 * emacs.c (main): Don't call syms_of_abbrev.
28474 * Makefile.in (obj): Remove abbrev.o.
28475 (abbrev.o): Remove.
28476 * abbrev.c: Remove.
28477
284782007-10-26 Martin Rudalics <rudalics@gmx.at>
28479
28480 * window.c (window_min_size_2): Don't count header-line.
28481
284822007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
28483
28484 * frame.h (struct frame): Move all bit fields after the first bit
28485 field to take advantage of the available space. Group all the
28486 chars together to reduce wasted space due to padding.
28487
284882007-10-26 Juanma Barranquero <lekktu@gmail.com>
28489
28490 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
28491
28492 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
28493 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
28494 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
28495 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
28496 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
28497 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
28498 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
28499 (last_marked, mark_object_loop_halt): Make static.
28500
28501 * frame.c (syms_of_frame) <delete-frame-functions>:
28502 Fix typo in docstring.
28503
285042007-10-25 Juanma Barranquero <lekktu@gmail.com>
28505
28506 * w32.c (init_environment): Fix tiny memory leak.
28507 (w32_get_resource): Remove unused variable `ok'.
28508
285092007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
28510
28511 Make `window-system' into a keyboard-local variable (rather than
28512 frame-local as done originally by multi-tty).
28513
28514 * keyboard.h (struct kboard): Add Vwindow_system.
28515 * keyboard.c (init_kboard): Set a default for Vwindow_system.
28516 (mark_kboards): Mark Vwindow_system.
28517
28518 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
28519 (init_display): Don't set the obsolete `window-system' frame-param.
28520
28521 * xterm.c (x_term_init):
28522 * w32term.c (w32_create_terminal):
28523 * term.c (init_tty): Set Vwindow_system.
28524 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
28525 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
28526
28527 * xfns.c (Fx_create_frame, x_create_tip_frame):
28528 * w32fns.c (Fx_create_frame, x_create_tip_frame):
28529 * macfns.c (Fx_create_frame):
28530 Don't set the obsolete `window-system' frame-param.
28531
28532 * frame.h (Qwindow_system): Remove.
28533 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
28534 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
28535
285362007-10-24 Richard Stallman <rms@gnu.org>
28537
28538 * frame.c (x_figure_window_size): For fullscreen case,
28539 set USPosition | PPosition without clobbering rest of window_prompting.
28540
28541 * keyboard.c (Fcurrent_idle_time): Doc fix.
28542
28543 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28544
285452007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28546
28547 * process.c (unwind_request_sigio): Only define if __ultrix__.
28548
28549 * callproc.c (child_setup): Remove spurious *.
28550
28551 * lisp.h (Fget_text_property): Declare.
28552 (have_menus_p): Declare it here rather than in sys-dep header files.
28553 * macterm.h (have_menus_p):
28554 * msdos.h (have_menus_p):
28555 * xterm.h (have_menus_p): Remove.
28556
28557 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28558 (Fmake_variable_frame_local): Just check the variable's const-ness
28559 rather than checking nil or t.
28560
285612007-10-22 Jason Rumney <jasonr@gnu.org>
28562
28563 * w32fns.c: Include math.h.
28564 (w32_abort): Declaration moved to nt/config.nt.
28565
28566 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28567 (abort): Redefinition moved to nt/config.nt.
28568
28569 * m/windowsnt.h: Remove.
28570
285712007-10-22 Juanma Barranquero <lekktu@gmail.com>
28572
28573 * emacs.c (Fdump_emacs): Fix typo in message.
28574 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28575 <installation-directory>: Reflow docstring.
28576
285772007-10-22 Juri Linkov <juri@jurta.org>
28578
28579 * minibuf.c: Allow minibuffer default to be a list of default values.
28580 With empty input use the first element of this list as returned default.
28581 (string_to_object)
28582 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28583 (read_minibuf): If defalt is cons, set histstring to its car.
28584 (Fread_string): If default_value is cons, set val to its car.
28585 (Fread_buffer): If def is cons, use its car.
28586 (Fcompleting_read): If defalt is cons, set val to its car.
28587
285882007-10-21 Michael Albinus <michael.albinus@gmx.de>
28589
28590 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28591
285922007-10-20 Juanma Barranquero <lekktu@gmail.com>
28593
28594 * doc.c (Fdocumentation): Check for advice in all cases.
28595
285962007-10-19 Chong Yidong <cyd@stupidchicken.com>
28597
28598 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28599
286002007-10-19 Richard Stallman <rms@gnu.org>
28601
28602 * doc.c (Fdocumentation): Check for and handle an advised function.
28603
286042007-10-19 Juanma Barranquero <lekktu@gmail.com>
28605
28606 * process.c (Fset_process_filter): Doc fix.
28607
286082007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28609
28610 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28611 which caused key-translation-map to applied repeatedly (thus breaking
28612 double-mode).
28613
286142007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28615
28616 * xselect.c (x_own_selection, x_handle_selection_clear)
28617 (x_clear_frame_selections):
28618 * w32menu.c (list_of_panes, list_of_items):
28619 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28620 * textprop.c (validate_plist, interval_has_all_properties)
28621 (interval_has_some_properties, interval_has_some_properties_list)
28622 (add_properties, text_property_list):
28623 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28624 * minibuf.c (Fassoc_string):
28625 * macselect.c (x_own_selection, x_clear_frame_selections)
28626 (Fx_disown_selection_internal):
28627 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28628 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28629
286302007-10-17 Chong Yidong <cyd@stupidchicken.com>
28631
28632 * process.c: Link to libs for calling res_init() if available.
28633 (Fmake_network_process): Call res_init() before getaddrinfo or
28634 gethostbyname, if possible.
28635
286362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28637
28638 * lread.c (read1): Set pvectype for char_tables.
28639
28640 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28641 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28642 Add type checks.
28643 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28644
28645 * alloc.c (free_misc): Use XMISCTYPE.
28646 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28647
286482007-10-17 Glenn Morris <rgm@gnu.org>
28649
28650 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28651 (syms_of_minibuf): Add Qcompletion_ignore_case.
28652 * dired.c (Qcompletion_ignore_case): Change to external.
28653 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28654 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28655 (Fread_file_name): Use it rather than intern'ing.
28656
28657 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28658 (Fread_coding_system): Ignore case of user input.
28659
286602007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28661
28662 * xdisp.c (handle_display_prop): Ignore display specs after
28663 replacing one when string text is being replaced.
28664 (handle_single_display_spec): Pretend as if characters with display
28665 property haven't been consumed only when buffer text is being replaced.
28666
286672007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28668
28669 * xfns.c (Fx_create_frame, Fx_display_list):
28670 * window.c (window_fixed_size_p, enlarge_window)
28671 (shrink_window_lowest_first):
28672 * macterm.c (init_font_name_table):
28673 * macfns.c (Fx_create_frame, Fx_display_list):
28674 * lread.c (close_load_descs):
28675 * keyboard.c (read_char_x_menu_prompt):
28676 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28677 * coding.c (code_convert_region_unwind): Test the type of an object
28678 rather than just !NILP before extracting data from it.
28679
28680 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28681
28682 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28683 (XMISCANY): New macro.
28684 (XMISCTYPE): Use it.
28685 (struct Lisp_Misc_Any): New type.
28686 (union Lisp_Misc): Use it.
28687 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28688 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28689 (find_symbol_value, set_internal, default_value, Fset_default)
28690 (Fmake_variable_buffer_local, Fmake_local_variable)
28691 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28692 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28693 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28694 * alloc.c (allocate_buffer): Set the size and tag.
28695 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28696 Use XMISCANY.
28697 (die): Follow the GNU convention for error messages.
28698 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28699 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28700 tag any more.
28701 (set_buffer_internal_1):
28702 * frame.c (store_frame_param):
28703 * eval.c (specbind):
28704 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28705
28706 * doc.c (Fsnarf_documentation): Simplify.
28707
287082007-10-14 Juanma Barranquero <lekktu@gmail.com>
28709
28710 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28711 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28712
287132007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28714
28715 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28716
287172007-10-14 Juanma Barranquero <lekktu@gmail.com>
28718
28719 * eval.c (do_autoload): Don't save autoloads.
28720
28721 * data.c (Ffset): Save autoload of the function being set.
28722
287232007-10-07 John Paul Wallington <jpw@pobox.com>
28724
28725 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28726 parameter before setting up faces.
28727
287282007-10-13 Eli Zaretskii <eliz@gnu.org>
28729
28730 * ccl.c (Fregister_code_conversion_map):
28731 * keyboard.c (append_tool_bar_item): Reformat last change.
28732
28733 * lisp.h (eabs): Rename from `abs'. All callers changed.
28734
287352007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28736
28737 * buffer.c (add_overlay_mod_hooklist):
28738 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28739 * fontset.c (make_fontset):
28740 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28741 (append_tool_bar_item):
28742 * macmenu.c (grow_menu_items):
28743 * w32menu.c (grow_menu_items):
28744 * xmenu.c (grow_menu_items): Use larger_vector.
28745
287462007-10-13 Eli Zaretskii <eliz@gnu.org>
28747
28748 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28749 selected frame'' on MSDOS).
28750
287512007-10-12 Martin Rudalics <rudalics@gmx.at>
28752
28753 * frame.c (Qexplicit_name): New variable.
28754 (x_report_frame_params): Report it in parameter alist.
28755 (syms_of_frame): Intern and staticpro it.
28756
287572007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28758
28759 * macfns.c (x_create_tip_frame): Set terminal for frame.
28760
287612007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28762
28763 * frame.c (Qenvironment): Remove.
28764 (syms_of_frame) <Qenvironment>: Don't initialize.
28765 (Fdelete_frame): Don't treat the `environment' param specially.
28766 * frame.h (Qenvironment): Don't declare.
28767 * callproc.c (set_initial_environment): Don't set unused frame param.
28768
28769 * frame.c (Fframe_with_environment): Remove.
28770 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28771
28772 * lisp.h (Fframe_with_environment): Don't declare.
28773
287742007-10-10 Juanma Barranquero <lekktu@gmail.com>
28775
28776 * indent.c (indent_tabs_mode, last_known_column)
28777 (last_known_column_modified): Make static.
28778 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28779
287802007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28781
28782 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28783
287842007-10-09 Jason Rumney <jasonr@gnu.org>
28785
28786 * w32term.c (x_set_window_size): Disable code that attempts to tell
28787 Lisp code about a size change before it actually happens.
28788
287892007-10-09 Richard Stallman <rms@gnu.org>
28790
28791 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28792 return HANDLED_RETURN.
28793
287942007-10-08 Martin Rudalics <rudalics@gmx.at>
28795
28796 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28797 when there's an unread command event.
28798
28799 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28800 window autoselection act appropriately when leaving selected frame.
28801 (syms_of_frame): Initialize focus_follows_mouse.
28802 * frame.h (focus_follows_mouse): Extern it.
28803 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28804 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28805 * msdos.c (dos_rawgetc): Likewise.
28806 * w32term.c (w32_read_socket): Likewise.
28807 * xterm.c (handle_one_xevent): Likewise.
28808 * xdisp.c (syms_of_xdisp): In doc-string of
28809 mouse-autoselect-window mention focus-follows-mouse.
28810
288112007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28812
28813 * macterm.c (mac_load_query_font): Fix missing return value.
28814 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28815 Add BLOCK_INPUT.
28816
288172007-10-08 Richard Stallman <rms@gnu.org>
28818
28819 * xdisp.c (get_window_cursor_type): Implement documented behavior
28820 for cursor-in-non-selected-windows = t.
28821
288222007-10-08 Jason Rumney <jasonr@gnu.org>
28823
28824 * w32.c (w32_get_resource): Always close registry keys.
28825
288262007-10-08 Jason Rumney <jasonr@gnu.org>
28827
28828 * makefile.w32-in (LIBS): Add COMCTL32.
28829
28830 * w32fns.c (globals_of_w32fns): Init common controls.
28831
288322007-10-08 Richard Stallman <rms@gnu.org>
28833
28834 * image.c (our_memory_buffer): Rename from omfib_buffer.
28835
288362007-10-08 Richard Stallman <rms@gnu.org>
28837
28838 * buffer.c (Foverlays_at): Doc fix.
28839
288402007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28841
28842 * fns.c (Fplist_put): Preserve uneven tail data.
28843
288442007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28845
28846 * termhooks.h (enum event_kind): Remove trailing comma.
28847
28848 * frame.h (enum): Remove trailing comma.
28849
288502007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28851
28852 * w32proc.c (delete_child): Don't terminate threads of zombies.
28853
288542007-10-08 Martin Rudalics <rudalics@gmx.at>
28855
28856 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28857
28858 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28859 last-repeatable-command.
28860 (init_kboard): Initialize Vlast_repeatable_command.
28861 (command_loop_1): Set it to real_this_command unless that was
28862 bound to an input event.
28863 (mark_kboards): Mark it.
28864
288652007-10-08 Richard Stallman <rms@gnu.org>
28866
28867 * eval.c (condition-case): Doc fix.
28868
288692007-10-08 Masatake YAMATO <jet@gyve.org>
28870
28871 * xfaces.c (tty_supports_face_attributes_p): Fix code
28872 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28873 was copied and not edited.
28874
288752007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28876
28877 Add new `input-decode-map' keymap and use it for terminal
28878 escape sequences.
28879 * keyboard.h (struct kboard): Add Vinput_decode_map.
28880 Remove Vlocal_key_translation_map.
28881 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28882 (init_kboard): Init input-decode-map.
28883 Replace local-key-translation-map back with key-translation-map.
28884 (syms_of_keyboard): Declare input-decode-map.
28885 Remove local-key-translation-map. Update docstrings.
28886 (mark_kboards): Mark Vinput_decode_map.
28887 Don't mark Vlocal_key_translation_map.
28888 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28889 Replace local-key-translation-map back with key-translation-map.
28890 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28891 Bind in input-decode-map rather than function-key-map.
28892
28893 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28894 This was made redundant by the previous introduction of XSETPVECTYPE.
28895
288962007-10-09 Richard Stallman <rms@gnu.org>
28897
28898 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28899
289002007-09-29 Richard Stallman <rms@gnu.org>
28901
28902 * eval.c (internal_condition_case_2, internal_condition_case_1)
28903 (internal_condition_case): Reenable abort if x_catching_errors ()
28904 to see if that really happens and why.
28905
289062007-10-06 Andreas Schwab <schwab@suse.de>
28907
28908 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28909
289102007-10-04 Juanma Barranquero <lekktu@gmail.com>
28911
28912 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28913
289142007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28915
28916 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28917
289182007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28919
28920 * window.h (struct window):
28921 * window.c (struct save_window_data, struct saved_window):
28922 * termhooks.h (struct terminal):
28923 * process.h (struct Lisp_Process):
28924 * frame.h (struct frame):
28925 * buffer.h (struct buffer):
28926 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28927 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28928 The size field of (pseudo)vectors is now unsigned.
28929 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28930
28931 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28932 Turn `count' into an integer.
28933
28934 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28935 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28936 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28937 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28938 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28939
28940 * alloc.c (allocate_pseudovector): New fun.
28941 (ALLOCATE_PSEUDOVECTOR): New macro.
28942 (allocate_window, allocate_terminal, allocate_frame)
28943 (allocate_process): Use it.
28944 (mark_vectorlike): New function.
28945 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28946 (mark_terminals): Use it.
28947 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28948 (Fmake_byte_code): Use XSETPVECTYPE.
28949
28950 * frame.c (Fframe_parameters): Minor simplification.
28951
28952 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28953
28954 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28955
28956 * buffer.c (Fget_buffer_create, init_buffer_once):
28957 * lread.c (defsubr):
28958 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28959
28960 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28961 defined differently in the m/*.h files.
28962 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28963 (XSETPVECTYPE): New macro.
28964 (XSETPSEUDOVECTOR): Use it.
28965
28966 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28967 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28968
28969 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28970 * lread.c (defvar_per_buffer):
28971 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28972
28973 * window.c (candidate_window_p): Only consider as visible frames that
28974 are on the same terminal.
28975
28976 * m/ibms390x.h (MARKBIT): Remove unused macro.
28977
289782007-10-01 Juanma Barranquero <lekktu@gmail.com>
28979
28980 * lread.c (Fload): Fix typo in docstring.
28981
289822007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28983
28984 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28985 of a non-zero value can't yield zero.
28986
289872007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28988
28989 * term.c (term_clear_mouse_face, term_mouse_highlight)
28990 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28991
28992 * print.c (safe_debug_print): Use XHASH.
28993
28994 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28995 Lisp elements such as tags.
28996 (XHASH): New macro.
28997 (EQ): Use it.
28998 (SREF, SSET, STRING_COPYIN): Use SDATA.
28999 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29000
29001 * alloc.c (mark_terminal): Remove left-over declaration.
29002 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29003 (allocate_vectorlike): Remove type argument. Adjust callers.
29004 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29005 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29006
29007 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29008 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29009 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29010 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29011 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29012 Use them.
29013
29014 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29015 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29016 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29017
290182007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29019
29020 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29021 loaded by default.
29022
290232007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29024
29025 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29026 on this tty.
29027 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29028
29029 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29030 Update all users.
29031 (handle_one_term_event): Use Gpm_DrawPointer.
29032 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29033 Signal errors instead of returning nil. Always return nil.
29034 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29035 Make it a noop if gpm-mouse was not activated.
29036 (syms_of_term): Update names.
29037
290382007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29039
29040 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29041 (init_sys_modes): Check that gpm_tty is the current tty.
29042
29043 * alloc.c (allocate_terminal): Set the vector size to only count the
29044 lisp fields. Initialize those to nil.
29045 (mark_object): Don't treat terminals specially.
29046 (mark_terminal): Remove.
29047 (mark_terminals): Use mark_object instead.
29048
29049 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29050 the GC to the beginning.
29051
29052 * indent.h:
29053 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29054
29055 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29056
290572007-09-25 Jason Rumney <jasonr@gnu.org>
29058
29059 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29060
29061 * w32console.c (create_w32cons_output): Remove.
29062
29063 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29064
29065 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29066 (reset_sys_modes): Use reset_terminal_modes_hook.
29067
290682007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29069
29070 * eval.c (do_autoload): Don't output any message.
29071
290722007-09-24 Juri Linkov <juri@jurta.org>
29073
29074 * emacs.c (standard_args): Change priority of "--no-splash"
29075 from 40 to 3. Add "--no-desktop" with the same priority.
29076
290772007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29078
29079 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29080 and optimize the case where they are all 1.
29081
290822007-09-23 Johannes Weiner <hannes@saeurebad.de>
29083
29084 * lisp.h (abs): Define if not defined.
29085 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29086 Don't define `abs', since it's defined in lisp.h.
29087
290882007-09-22 Eli Zaretskii <eliz@gnu.org>
29089
29090 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29091 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29092 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29093 (init_tty): Use DEV_TTY instead of "/dev/tty".
29094 [WINDOWSNT]: No need to protect from NAME arg being null.
29095
290962007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29097
29098 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29099 up the tty state.
29100
291012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29102
29103 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29104 (gpm_tty): Change its type.
29105 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29106 (gpm_tty): Change its type and initialize it.
29107 (Fterm_open_connection): Check the frame is indeed a tty.
29108 Use the new gpm_tty.
29109 (Fterm_close_connection): Use the new gpm_tty.
29110 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29111 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29112
291132007-09-21 Juanma Barranquero <lekktu@gmail.com>
29114
29115 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29116 underline_color, to draw strike-through.
29117
291182007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29119
29120 * lisp.h (allocate_terminal): Declare.
29121
29122 * window.c (candidate_window_p): Consider frames that are being placed
29123 by the user as somewhere between visible and iconified.
29124 (window_loop): Prefer windows on the current frame.
29125 (Fselect_window): Move the use of select-frame to the beginning so we
29126 can just delegate all the work (it'll call us back anyway).
29127
29128 * frame.c (Qdisplay_environment_variable):
29129 * frame.h (Qdisplay_environment_variable): Delete.
29130
29131 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29132 of the first arg, since that value may be a union.
29133
29134 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29135 parameter rather than Qdisplay_environment_variable. If all else
29136 fails, look for DISPLAY in initial-environment.
29137
291382007-09-21 Glenn Morris <rgm@gnu.org>
29139
29140 * Makefile.in (emacstool): Remove target.
29141 (lisp, shortlisp): Remove termdev.elc.
29142
291432007-09-21 Markus Triska <markus.triska@gmx.at>
29144
29145 * xterm.c (x_delete_display): Compile session management conditionally.
29146
291472007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29148
29149 * callproc.c (getenv_internal_1): New function.
29150 (getenv_internal): Use it.
29151 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29152
29153 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29154 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29155 (Fset_terminal_parameter): Work with dead terminals as well.
29156 (Fmodify_terminal_parameters): Remove.
29157
29158 * terminal.c (get_terminal): Handle terminals.
29159 Make sure the terminal returned is live.
29160 (create_terminal): Use allocate_terminal.
29161 (mark_terminals): Move to alloc.c.
29162 (delete_terminal): Use terminal->name as liveness status.
29163 NULL out fields after freeing their contents.
29164 Don't deallocate the object.
29165 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29166 rather than an int.
29167 (Fterminal_live_p): Accept non-integer arguments.
29168 (Fterminal_list): Return terminal objects rather than an ints.
29169
29170 * alloc.c (enum mem_type): New member for `terminal' objects.
29171 (allocate_terminal): New function.
29172 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29173 Handle terminals.
29174 (mark_terminal): New fun.
29175 (mark_terminals): Move from terminal.c.
29176
29177 * term.c (get_tty_terminal): Don't treat output_initial specially.
29178 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29179 (delete_tty): Use terminal->name as liveness status.
29180
29181 * termhooks.h (struct terminal): Make it into a pseudovector.
29182 Remove `deleted' replaced by checking `name's nullness.
29183
29184 * print.c (print_object): Handle terminals.
29185
29186 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29187 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29188
29189 * frame.c (make_terminal_frame):
29190 * keyboard.c (tty_read_avail_input):
29191 * w32term.c (x_delete_terminal):
29192 * xfns.c (Fx_create_frame, x_create_tip_frame):
29193 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29194
291952007-09-20 Glenn Morris <rgm@gnu.org>
29196
29197 * process.c (Fmake_network_process): Doc fix.
29198
291992007-09-19 Jason Rumney <jasonr@gnu.org>
29200
29201 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29202
292032007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29204
29205 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29206 Fix a C warning regarding variable constness.
29207
29208 * xterm.c (handle_one_xevent): Fix a C warning.
29209
292102007-09-18 Jason Rumney <jasonr@gnu.org>
29211
29212 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29213
292142007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29215
29216 * gtkutil.c (gdpy_def): New variable.
29217 (xg_initialize): Initialize gdpy_def.
29218 (xg_display_close): If no other display exists, set gdpy_def to a
29219 new connection.
29220
292212007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29222
29223 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29224 when we have no file name for the icon.
29225 (xg_tool_bar_expose_callback): Remove.
29226 (xg_create_tool_bar): Don't connect expose signal to
29227 xg_tool_bar_expose_callback.
29228 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29229
292302007-09-16 Andreas Schwab <schwab@suse.de>
29231
29232 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29233 values instead of zapping them.
29234
292352007-09-14 Glenn Morris <rgm@gnu.org>
29236
29237 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29238 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29239 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29240 scope and rename to omfib_buffer for clarity.
29241 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29242
292432007-09-14 Kenichi Handa <handa@m17n.org>
29244
29245 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29246
292472007-09-13 Jason Rumney <jasonr@gnu.org>
29248
29249 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29250
29251 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29252
29253 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29254 (mac_term_init): Call here instead, passing rif.
29255
292562007-09-13 Glenn Morris <rgm@gnu.org>
29257
29258 * s/hpux.h: No longer define `static' as nothing.
29259
292602007-09-13 Johan Bockgård <bojohan@gnu.org>
29261
29262 * callint.c (Fcall_interactively): Remove unused var `fun'.
29263
292642007-09-12 Romain Francoise <romain@orebokech.com>
29265
29266 * window.c (prefer_window_split_horizontally, display_buffer):
29267 Revert 2007-09-08 change.
29268
292692007-09-12 Glenn Morris <rgm@gnu.org>
29270
29271 * alloca.c: Remove file.
29272 * Makefile.in (alloca): Do not undef.
29273 (allocaobj, alloca.o): Remove.
29274 (otherobj): Remove allocaobj.
29275 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29276 * regex.c (C_ALLOCA): Remove all references and code that was only
29277 used when this was defined.
29278 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29279 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29280 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29281
29282 * Makefile.in (SOURCES, unlock, relock): Delete.
29283
29284 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29285 (menu_grab_callback): All uses changed.
29286
29287 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29288 (x_reply_selection_request): All uses changed.
29289
292902007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29291
29292 * lread.c (load_warn_old_style_backquotes): Change message to look
29293 better when it appears in the middle of byte-compiler messages.
29294
292952007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29296
29297 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29298
29299 * xterm.c (x_create_terminal): Add comment.
29300
29301 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29302
293032007-09-10 Richard Stallman <rms@gnu.org>
29304
29305 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29306
293072007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29308
29309 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29310 (DEFUN): Document `intspec', use it instead of `prompt'.
29311
29312 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29313
29314 * data.c (Finteractive_form): If the interactive specification starts
29315 with a `(', use it as a Lisp form.
29316
29317 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29318 name and file modes.
29319
29320 * callint.c (Fcall_interactively): Comment fixes.
29321
293222007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29323
29324 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29325 and compiled functions.
29326
293272007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29328
29329 * window.c (prefer_window_split_horizontally): New variable.
29330 (display_buffer): Consider splitting window horizontally depending
29331 on prefer_window_split_horizontally.
29332
293332007-09-08 Eli Zaretskii <eliz@gnu.org>
29334
29335 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29336
293372007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29338
29339 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29340
29341 * frame.c (x_set_frame_parameters): Check number is positive before
29342 using XFASTINT.
29343
29344 * window.c (freeze_window_start): Don't presume selected_window holds
29345 a window object.
29346 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29347
293482007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29349
29350 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29351
293522007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29353
29354 * window.c (Vsplit_window_preferred_function): New var.
29355 (Fdisplay_buffer): Use it.
29356 (syms_of_window): Export, and initialize it.
29357
293582007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29359
29360 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29361
293622007-09-06 Glenn Morris <rgm@gnu.org>
29363
29364 * gtkutil.c (menu_grab_callback) <cnt>:
29365 * xselect.c (x_reply_selection_request) <cnt>: Move static
29366 variable to file scope.
29367
293682007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29369
29370 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29371 consistent values of selected_frame and selected_window.
29372
293732007-09-04 Jason Rumney <jasonr@gnu.org>
29374
29375 * w32console.c (initialize_w32_display): Zero unused hooks.
29376
293772007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29378
29379 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
29380 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
29381
293822007-09-04 Jason Rumney <jasonr@gnu.org>
29383
29384 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
29385 in w32console.c. Set up input. Remove XXX comments that have been
29386 confirmed as correct.
29387
29388 * s/ms-w32.h (MULTI_KBOARD): Define.
29389
29390 * w32console.c (one_and_only_w32cons): Remove.
29391 (initialize_w32_display): Take terminal argument.
29392
29393 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
29394 initialize_w32_display.
29395 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
29396
29397 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
29398
29399 * keyboard.c (discard_mouse_events): Discard it.
29400 (make_lispy_event): Translate it to a lisp event.
29401 (lispy_wheel_names): Add wheel-left and right events.
29402 (syms_of_keyboard): Enlarge wheel_syms.
29403
29404 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
29405 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
29406
29407 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
29408
29409 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
29410 from WM_MOUSEHWHEEL.
29411 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
29412
29413 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
29414 terminal.
29415
29416 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
29417 keyboard for the terminal.
29418
294192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29420
29421 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
29422 (Vresume_tty_hook): Rename from Vresume_tty_functions.
29423 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
29424 and resume-tty-function to resume-tty-hook.
29425 (Fsuspend_tty, Fresume_tty): Use new names.
29426
294272007-09-02 Jan Djärv <jan.h.d@swipnet.se>
29428
29429 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
29430 if it starts with "n:".
29431
294322007-08-31 Jan Djärv <jan.h.d@swipnet.se>
29433
29434 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
29435
294362007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
29437
29438 * frame.h:
29439 * frame.c (Qterm_environment_variable): Remove.
29440 (syms_of_frame): Don't init and staticpro it.
29441
29442 * callproc.c (getenv_internal): Remove special case for $TERM.
29443
29444 * callproc.c (Vinitial_environment): New variable.
29445 (set_initial_environment): Initialize it.
29446 (syms_of_callproc): Declare it.
29447 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
29448 TERM under which a process runs is never related to the TERM in which
29449 Emacs is running.
29450
294512007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29452
29453 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
29454 * s/darwin.h: ... do it here.
29455
294562007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
29457
29458 * lisp.h (set_initial_environment): Rename from set_global_environment.
29459
29460 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
29461 removed by mistake on the multi-tty branch.
29462
29463 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
29464 (Fmodify_frame_parameters): Return a value.
29465
29466 * image.c (png_load): Comment-out var only used in commented-out code.
29467
29468 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
29469 before passing it to mark_object.
29470
29471 * xfaces.c (internal_resolve_face_name): Return a value.
29472 (internal_resolve_face_name, resolve_face_name_error): Comment out.
29473
29474 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
29475 (x_icon): Comment-out var only used in commented-out code.
29476
294772007-08-29 Romain Francoise <romain@orebokech.com>
29478
29479 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
29480 QUIT hasn't been provided.
29481
294822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29483
29484 * callproc.c (child_setup, getenv_internal): Use the
29485 display-environment-variable and term-environment-variable frame params.
29486 (set_initial_environment): Initialise Vprocess_environment.
29487
29488 * config.in: Disable multi-keyboard support on a mac.
29489
29490 * frame.c (Qterm_environment_variable)
29491 (Qdisplay_environment_variable): New variables.
29492 (syms_of_frame): Intern and staticpro them.
29493 (Fmake_terminal_frame): Disable output method test.
29494
29495 * frame.h: Declare them here.
29496
29497 * macfns.c (x_set_mouse_color): Get rif from the frame.
29498 (x_set_tool_bar_lines): Don't use updating_frame.
29499 (mac_window): Add 2 new parameters for consistency with other systems.
29500 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
29501 frame parameters following what is done in X11 and w32. Don't use
29502 FRAME_MAC_DISPLAY_INFO.
29503 (Fx_open_connection, start_hourglass): Remove window-system check.
29504 (x_create_tip_frame): Get the keyboard from the terminal.
29505
29506 * macmenu.c: Reorder includes.
29507 (Fx_popup_menu): Use terminal specific mouse_position_hook.
29508
29509 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
29510 terminal parameter.
29511 (x_clear_frame): Add a frame parameter.
29512 (note_mouse_movement): Get rif from the frame.
29513 (mac_term_init): Initialize the terminal.
29514 (mac_initialize): Make static and move terminal initialization ...
29515 (mac_create_terminal): ... to this new function.
29516
29517 * macterm.h (struct mac_display_info): Add terminal.
29518 (mac_initialize): Delete declaration.
29519
29520 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
29521
29522 * sysdep.c: Comment out text after #endif.
29523
29524 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
29525 is defined. Better initialize ttys in windows. Use terminal
29526 specific mouse_position_hook.
29527
29528 * termhooks.h (union display_info): Add mac_display_info.
29529
29530 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
29531 Set the default minibuffer frame, window_system and the rest of the
29532 frame parameters following what is done in X11.
29533
29534 * w32term.c (w32_initialize): Make static.
29535
29536 * xselect.c (x_handle_selection_clear): Only access
29537 terminal->kboard when MULTI_KBOARD is defined.
29538
29539 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
29540 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
29541
295422007-08-29 Jason Rumney <jasonr@gnu.org>
29543
29544 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29545 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29546
29547 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29548 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29549
29550 * keyboard.c (restore_kboard_configuration): Only define when
29551 MULTI_KBOARD defined.
29552
29553 * makefile.w32-in: Update dependancies from Makefile.in.
29554 (OBJ1): Add terminal.$(O)
29555
29556 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29557 Don't define function body.
29558 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29559
29560 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29561
29562 * w32.c (request_sigio, unrequest_sigio): Remove.
29563
29564 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29565 (w32con_clear_frame, w32con_clear_end_of_line)
29566 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29567 (w32con_delete_glyphs, w32con_set_terminal_window)
29568 (scroll_line, w32_sys_ring_bell): Add frame arg.
29569 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29570 Add terminal arg.
29571 (PICK_FRAME): Remove.
29572 (w32con_write_glyphs): Use frame specific terminal coding.
29573 (one_and_only_w32cons): New global variable.
29574 (initialize_w32_display): Use it for storing hooks.
29575 (create_w32cons_output): New function.
29576
29577 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29578 arg a frame.
29579
29580 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29581 Set window_system.
29582 (x_set_tool_bar_lines): Don't use updating_frame.
29583 (Fx_create_frame): Set terminal and ref count.
29584 (Fx_open_connection): Remove window-system check.
29585
29586 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29587
29588 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29589 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29590 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29591 Add frame arg.
29592 (x_delete_terminal, w32_create_terminal): New functions.
29593 (w32_term_init): Create a terminal.
29594 (w32_initialize): Move terminal specific initialization to
29595 w32_create_terminal.
29596
29597 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29598 (w32_clear_rect, w32_clear_area): Use background from frame.
29599 (w32_display_info): Add terminal.
29600 (w32_sys_ring_bell, x_delete_display): Declare here.
29601
29602 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29603
29604 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29605
296062007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29607
29608 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29609 Fix get_named_tty calls for the controlling tty.
29610
296112007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29612
194d44e7 29613 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
29614
296152007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29616
29617 * term.c (tty_insert_glyphs): Add missing first parameter.
29618
296192007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29620
29621 * buffer.c (Fbuffer_list, Fbury_buffer):
29622 Take frame->buried_buffer_list into account.
29623
29624 * cm.c (current_tty): New variable, for cmputc().
29625 (cmputc): Use it.
29626 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29627 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29628 (cmgoto): Add tty parameter. Pass it on to calccost().
29629 Use emacs_tputs() instead of tputs().
29630
29631 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29632 tputs().
29633 (current_tty): New variable, for cmputc().
29634 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29635
29636 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29637 (internal_condition_case, internal_condition_case_1)
29638 (internal_condition_case_2): Don't abort when x_catching_errors.
29639
29640 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29641 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29642 prevent crashes caused by bogus longjmps in read_char.
29643
29644 * keymap.h (Fset_keymap_parent): Add EXFUN.
29645
29646 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29647 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29648 Remove redundant definition.
29649
29650 * macfns.c (x_set_mouse_color, x_make_gc):
29651 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29652
29653 * w32term.c (x_free_frame_resources):
29654 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29655 (w32_initialize): Use the accessor macros for terminal characteristics.
29656
29657 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29658 Use the accessor macros for terminal characteristics.
29659 * msdos.c (internal_terminal_init): Use the accessor macros for
29660 terminal characteristics.
29661 (ScreenVisualBell, internal_terminal_init):
29662 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29663
29664 * termopts.h (no_redraw_on_reenter): Declare.
29665
29666 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29667 (mark_terminals, mark_ttys): Declare.
29668 (Fgarbage_collect): Call them.
29669 (mark_object): Mark buried_buffer_list.
29670
29671 * prefix-args.c: Include stdlib.h for exit.
29672
29673 * syssignal.h: Add comment.
29674
29675 * indent.c: Include stdio.h.
29676
29677 * window.h (Vinitial_window_system): Declare.
29678 (Vwindow_system): Delete declaration.
29679
29680 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29681
29682 * image.c (lookup_image): Don't initialize `c' until the xasserts
29683 have been run.
29684
29685 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29686 FRAME_FOREGROUND_PIXEL.
29687
29688 * print.c (print_preprocess): Don't lose print_depth levels while
29689 iterating.
29690
29691 * widget.c (update_from_various_frame_slots):
29692 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29693
29694 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29695 frames.
29696 (window_internal_height): Remove bogus make_number call.
29697 (init_window_once): Call make_terminal_frame with two zero parameters.
29698
29699 * fileio.c (Fread_file_name): Update comment.
29700
29701 * callint.c (Fcall_interactively):
29702 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29703 Make sure it is correctly unwound.
29704
29705 * xsmfns.c (x_session_close): New function.
29706
29707 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29708 Delete declarations.
29709
29710 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29711 (x_output): Remove background_pixel and foreground_pixel fields.
29712 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29713 (x_delete_device, x_session_close): Declare.
29714
29715 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29716 (read_filtered_event): Call `read_char' with a local
29717 `wrong_kboard_jmpbuf'.
29718
29719 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29720 Don't call single_kboard_state. Use FRAME_RIF.
29721
29722 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29723 systems.
29724
29725 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29726 (Fframe_with_environment, Fset_input_meta_mode)
29727 (Fset_quit_char): EXFUN.
29728 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29729 (init_sys_modes, reset_sys_modes): Update prototypes.
29730 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29731
29732 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29733 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29734 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29735 Delete declarations.
29736 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29737 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29738 New declarations.
29739
29740 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29741 already does that during init_display(). Call syms_of_keymap
29742 before syms_of_keyboard. Call `syms_of_terminal'.
29743 Call set_initial_environment, not set_process_environment.
29744 (shut_down_emacs): Call reset_all_sys_modes() instead of
29745 reset_sys_modes().
29746
29747 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29748 (internal_resolve_face_name, resolve_face_name_error): New functions.
29749 (resolve_face_name): Protect against loops and errors thrown by Fget.
29750 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29751 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29752
29753 * scroll.c: Replace CURTTY() with local variables throughout the
29754 file (where applicable).
29755 (calculate_scrolling, calculate_direct_scrolling)
29756 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29757 characteristics.
29758
29759 * keymap.c (Vfunction_key_map): Remove.
29760 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29761 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29762 (Vkey_translation_map): Remove.
29763 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29764 (Fdescribe_buffer_bindings)
29765 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29766 Update for terminal-local key-translation-map.
29767
29768 * Makefile.in (callproc.o): Update dependencies.
29769 (lisp, shortlisp): Add termdev.elc.
29770 (obj): Add terminal.o.
29771 (terminal.o): Add dependencies.
29772 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29773 (data.o, fns.o): Add termhooks.h dependency.
29774 (SOME_MACHINE_LISP): Add dnd.elc.
29775 (minibuf.o): Fix typo.
29776 Update dependencies.
29777
29778 * data.c (do_symval_forwarding, store_symval_forwarding)
29779 (find_symbol_value): Use the selected frame's keyboard, not
29780 current_kboard.
29781
29782 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29783 Vwindow_system.
29784
29785 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29786 Fmenu_bar_open.
29787 (syms_of_xmenu): Update defsubr.
29788 (mouse_position_for_popup, Fx_popup_menu)
29789 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29790 (set_frame_menubar, free_frame_menubar)
b97439ce 29791 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29792 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29793 an X frame.
29794
29795 * xselect.c (x_own_selection): Abort if not an X frame.
29796 (some_frame_on_display): Check if it is an X frame.
29797 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29798
29799 * coding.c: Include frame.h and termhooks.h.
29800 (terminal_coding, keyboard_coding): Delete.
29801 (Fset_terminal_coding_system_internal)
29802 (Fset_keyboard_coding_system_internal)
29803 (Fkeyboard_coding_system)
29804 (Fterminal_coding_system): Add a terminal parameter.
29805 Get terminal_coding from the terminal.
29806 (init_coding_once): Don't call setup_coding_system here.
29807
29808 * dispextern.h (set_scroll_region, turn_off_insert)
29809 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29810 (tty_clear_end_of_line, tty_setup_colors)
29811 (delete_tty, updating_frame)
29812 (produce_special_glyphs, produce_glyphs, write_glyphs)
29813 (insert_glyphs): Remove.
29814 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29815 (tty_turn_off_highlight, get_tty_size): Add declaration.
29816 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29817
29818 * frame.h (enum output_method): Add output_initial.
29819 (struct x_output): Delete.
29820 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29821 Access foreground_pixel and background_pixel directly from the frame.
29822 (tty_display): Delete.
29823 (struct frame): Add buried_buffer_list, foreground_pixel,
29824 background_pixel and terminal. Delete kboard.
29825 (union output_data): Add tty.
29826 (FRAME_KBOARD): Get the kboard from the terminal.
29827 (FRAME_INITIAL_P): New macro.
29828 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29829 (Qterm_environment_variable, Qdisplay_environment_variable)
29830 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29831 New declarations.
29832
29833 * termchar.h (tty_output, tty_display_info): New structures.
29834 (tty_list): Declare.
29835 (FRAME_TTY, CURTTY): New macros.
29836 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29837 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29838 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29839 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29840
29841 * callproc.c: Include frame.h and termhooks.h, for terminal
29842 parameters.
29843 (add_env): New function.
29844 (child_setup): Use it.
29845 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29846 (getenv_internal): Fix get_terminal_param call.
29847 (Fgetenv_internal, egetenv): Update doc.
29848 (syms_of_callproc): Initialize Vprocess_environment to nil.
29849 Register and initialize them. Remove obsolete defvars. Update doc
29850 strings.
29851 (child_setup): Handle Vlocal_environment_variables.
29852 (getenv_internal): Add terminal parameter.
29853 Handle Vlocal_environment_variables.
29854 (Fgetenv_internal): Add terminal parameter.
29855 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29856 environment in a frame (not terminal) parameter. Update doc strings.
29857 (set_initial_environment): Rename from set_global_environment.
29858 Store Emacs environment in initial frame parameter.
29859
29860 * xdisp.c (redisplay_internal): Update references to
29861 `previous_terminal_frame'.
29862 (display_mode_line, Fformat_mode_line): Replace calls to
29863 `push_frame_kboard' with `push_kboard'.
29864 (get_glyph_string_clip_rects): Add extra parentheses and
29865 braces to prevent compiler warnings.
29866 (calc_pixel_width_or_height): Add xassert to check that the
29867 frame is alive. Don't call `lookup_image' on a termcap frame.
29868 (message2_nolog, message3_nolog, redisplay_internal)
29869 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29870 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29871 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29872 (Fx_display_pixel_width, Fx_display_pixel_height)
29873 (Fx_display_planes, Fx_display_color_cells)
29874 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29875 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29876 (Fx_display_backing_store, Fx_display_visual_class)
29877 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29878 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29879
29880 * xfns.c (x_set_foreground_color x_set_background_color)
29881 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29882 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29883 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29884 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29885 terminal that is being deleted.
29886 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29887 frame parameter, and make sure it overrides any user-supplied setting.
29888 (Fx_close_connection, Fx_synchronize): Unify argument names with
29889 the rest of the DEFUNs.
29890
29891 * dispnew.c (Fsend_string_to_terminal): Update call to
29892 `get_tty_terminal'.
29893 (Fredraw_frame, Fsend_string_to_terminal)
29894 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29895 FRAME_TERMCAP_P and FRAME_TTY.
29896 (window_change_signal): Don't believe width/height values that are
29897 impossibly small.
29898 (Vinitial_window_system): Rename from Vwindow_system.
29899 (termscript, Wcm, rif): Delete.
29900
29901 * termhooks.h (struct terminal): New struct containing the
29902 previously global text display hooks and new members NAME,
29903 DELETED and PARAM_ALIST.
29904 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29905 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29906 (FRAME_RIF): New macros.
29907 (get_terminal_param, get_device): New declarations.
29908 (termscript): Delete declaration.
29909
29910 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29911 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29912 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29913 FRAME_FOREGROUND_PIXEL.
29914 (x_fully_uncatch_errors): Disable definition.
29915 (x_scroll_bar_expose): Fix reference to foreground pixel.
29916 (XTread_socket): Disable loop on all X displays.
29917 (x_delete_terminal): Don't set terminal->deleted and let
29918 delete_terminal delete the frames on the terminal.
29919 (x_delete_display): Doc update to reflect changes in
29920 delete_terminal.
29921 (x_display_info) <terminal>: Move member earlier in the struct.
29922 (deleting_tty): Remove old variable.
29923 (Fsuspend_tty): Call clear_tty_hooks.
29924 (Fresume_tty, init_tty): Call set_tty_hooks.
29925 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29926 errors on X frames.
29927 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29928 (handle_one_xevent): Initialize `f' to NULL.
29929 (x_delete_terminal, x_create_terminal): New functions.
29930 (XTset_terminal_modes, XTreset_terminal_modes)
29931 (XTread_socket, x_connection_closed, x_term_init)
29932 (x_term_init, x_delete_display): Add terminal parameter.
29933 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29934 X connections.
29935
29936 * frame.c: Include termchar.h.
29937 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29938 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29939 (Qdisplay_environment_variable): New vars.
29940 (Fframep): Deal with output_initial.
29941 (Fframe-live-p): Doc fix.
29942 (Fwindow-system): New function.
29943 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29944 (make_terminal_frame): Don't create frames on a terminal that is
29945 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29946 (store_frame_param): Check for found_for_frame before calling XFRAME.
29947 (Fmake_terminal_frame): Handle NULL tty names correctly.
29948 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29949 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29950 frames to refer to a deleted frame in their 'environment parameter.
29951 (Fframe_with_environment): New function.
29952 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29953 (get_future_frame_param): New function.
29954 (Fmake_terminal_frame): Use it.
29955 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29956
29957 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29958 * sysdep.c (reset_sys_modes): Update for renames.
29959
29960 * keyboard.c (tty_read_avail_input): New function.
29961 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29962 (syms_of_keyboard): Defsubr them.
29963 (Fset_input_meta_mode, Fset_quit_char): New functions.
29964 (Fset_input_mode): Split to above functions.
29965 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29966 parameter. Use it in call to `read_char'.
29967 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29968 Set wrong_kboard_jmpbuf correctly in recursive calls.
29969 Use current_kboard to access Vkeyboard_translate_table.
29970 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29971 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29972 Update longjmp invocations. Remember the original current_kboard,
29973 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29974 changes it. Comment out unnecessary calls to
29975 `record_single_kboard_state' and `any_kboard_state'.
29976 Update recursive calls.
29977 (wrong_kboard_jmpbuf): Remove global variable.
29978 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29979 Handle deleted interrupted_kboards correctly; that is a legal
29980 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29981 and read_char calls. Abort if interrupted_kboard died in read_char.
29982 (any_kboard_state, single_kboard_state)
29983 (push_frame_kboard): Remove function.
29984 (pop_kboard): Switch out of single_kboard mode if the kboard has
29985 been deleted. Remove unused variable. Help debugging by not
29986 changing current_kboard unnecessarily. Set current_kboard to the
29987 kboard of the selected frame when the stored kboard object has
29988 been deleted before pop_kboard.
29989 (temporarily_switch_to_single_kboard): Change first parameter to a
29990 frame pointer. Throw an error when caller wants to change kboards
29991 while in single_kboard mode. Don't push_kboard if we weren't in
29992 single kboard state. Don't pop_kboard if we popped into any
29993 kboard state.
29994 (restore_kboard_configuration): Abort if pop_kboard changed the
29995 kboard in single_kboard mode. Call pop_kboard only after setting
29996 up single_kboard mode.
29997 (Frecursive_edit): Switch to single_kboard mode only in nested
29998 command loops.
29999 (cmd_error, command_loop, command_loop_1, timer_check):
30000 Comment out unnecessary call to `any_kboard_state' and
30001 `record_single_kboard_state'.
30002 (delete_kboard): Exit single_kboard mode if we have just deleted
30003 that kboard. Use FRAME_KBOARD.
30004 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30005 `fatal_error_signal'.
30006 (record_single_kboard_state): Don't push_kboard if we weren't in
30007 single kboard state. Don't pop_kboard if we popped into any
30008 kboard state.
30009 (push_frame_kboard): Rename to push_kboard.
30010 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30011 (read_avail_input): Read input from all terminals.
30012 (mark_kboards): Also mark Vkeyboard_translate_table.
30013 (kbd_buffer_store_event_hold): Simplify condition.
30014 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30015 (Vkeyboard_translate_table): Move to struct kboard.
30016 (init_kboard): Initialize Vkeyboard_translate_table.
30017 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30018 Vkeyboard_translate_table. Update doc strings. Update docs of
30019 local-function-key-map and function-key-map.
30020
30021 * terminal.c: New file.
30022
30023 * term.c: Include errno.h.
30024 (Vring_bell_function, device_list, initial_device)
30025 (next_device_id, ring_bell, update_begin, update_end)
30026 (set_terminal_window, cursor_to, raw_cursor_to)
30027 (clear_to_end, clear_frame, clear_end_of_line)
30028 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30029 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30030 (syms_of_term): Move their initialization to terminal.c.
30031 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30032 (Ftty_display_color_cells)
30033 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30034 (clear_tty_hooks, set_tty_hooks)
30035 (init_tty, maybe_fatal): New functions.
30036 (Ftty_type): Return nil if terminal is not on a tty instead of
30037 throwing an error. Doc update.
30038 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30039 Doc update. Initialize new subrs and variables.
30040 (delete_tty): Use terminal->deleted.
30041 (tty_set_terminal_modes): Rename from set_terminal_modes.
30042 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30043 (set_scroll_region): Rename to `tty_set_scroll_region'.
30044 (turn_on_insert): Rename to `tty_turn_on_insert'.
30045 (turn_off_insert): Rename to `tty_turn_off_insert'.
30046 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30047 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30048 (toggle_highligh): Rename to `tty_toggle_highlight'.
30049 (background_highlight): Rename to `tty_background_highlight'.
30050 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30051 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30052 (tty_set_scroll_region, tty_background_highlight)
30053 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30054 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30055 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30056 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30057 Add static modifier.
30058 (tty_reset_terminal_modes, tty_set_terminal_window)
30059 (tty_set_scroll_region, tty_background_highlight)
30060 (tty_highlight_if_desired, tty_cursor_to)
30061 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30062 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30063 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30064 renames.
30065
300662007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30067
30068 * keyboard.c: Qrtl is new.
30069 (parse_tool_bar_item): Handle :rtl keyword.
30070 (syms_of_keyboard): Intern :rtl keyword.
30071
30072 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30073
30074 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30075 so no Lisp code is executed.
30076 (file_for_image, find_rtl_image): New functions.
30077 (xg_get_image_for_pixmap): Use file_for_image.
30078 (update_frame_tool_bar): If direction is RTL, use RTL image if
30079 defined. Use Gtk stock images if defined.
30080
300812007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30082
30083 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30084 for nonexistent or zero-width glyph in composition glyph.
30085
300862007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30087
30088 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30089
30090 * xdisp.c (Finvisible_p): New function.
30091 (syms_of_xdisp): defsubr it.
30092
300932007-08-24 Juanma Barranquero <lekktu@gmail.com>
30094
30095 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30096 Doc fixes.
30097
300982007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30099
30100 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30101
301022007-08-24 Martin Rudalics <rudalics@gmx.at>
30103
30104 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30105 whether decoding has modified buffer contents.
30106
301072007-08-24 Jason Rumney <jasonr@gnu.org>
30108
30109 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30110 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30111 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30112 (init_svg_functions) [HAVE_NTGUI]: New function.
30113 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30114 (svg_load_image): Use them.
30115 (svg_load_image) [HAVE_NTGUI]: Implement background.
30116
301172007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30118
30119 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30120 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30121 (LIBX): Remove @RSVG_LIBS@.
30122 (LIBES): Add $(RSVG_LIBS).
30123
30124 * image.c (svg_load_image): Blend with specified background if exists.
30125 Use IMAGE_BACKGROUND. Add Mac OS Support.
30126
30127 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30128 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30129 Remove macros.
30130 [MAC_OSX] (socket_callback): Do nothing.
30131 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30132 ReceiveNextEvent.
30133 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30134 socket_callback.
30135 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30136
301372007-08-22 Glenn Morris <rgm@gnu.org>
30138
30139 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30140
301412007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30142
30143 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30144
30145 * image.c: Add support for SVG images. Some additional comments
30146 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30147 (svg_image_p): New function to test for SVG image.
30148 (svg_load): New function to load SVG image.
30149 (svg_load_image): New function, helper for svg_load.
30150 (Qsvg): New Lisp_object.
30151 (svg_keyword_index): New enum.
30152 (svg_format): New static `image_keyword' struct.
30153 (svg_type): New static `image_type' struct.
30154 (librsvg/rsvg.h): Include it.
30155
301562007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30157
30158 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30159
301602007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30161
30162 * lread.c (Qold_style_backquotes): New var.
30163 (syms_of_lread): Init and staticpro it.
30164 (load_warn_old_style_backquotes): New fun.
30165 (Fload): Use them to warn about old style backquotes.
30166 (end_of_file_error, Fload): Remove unused vars.
30167
30168 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30169
30170 * lread.c (Vold_style_backquotes): New var.
30171 (syms_of_lread): Init and export it to Elisp.
30172 (read1): Set it when we find an old-style (back)quote.
30173
301742007-08-22 Jason Rumney <jasonr@gnu.org>
30175
30176 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30177
301782007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30179
30180 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30181
301822007-08-19 Richard Stallman <rms@gnu.org>
30183
30184 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30185
301862007-08-19 Andreas Schwab <schwab@suse.de>
30187
30188 * alloc.c (pure): Round PURESIZE up.
30189
301902007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30191
30192 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30193 active frame.
30194
301952007-08-16 Richard Stallman <rms@gnu.org>
30196
30197 * eval.c (Fcommandp): Add parens to clarify.
30198
30199 * minibuf.c (Fall_completions): Use enum for type of table.
30200
30201 * emacs.c (USAGE2): Improve text.
30202
302032007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30204
30205 * term.c (tty_default_color_capabilities): Declare static
30206 variables in file scope, to avoid HPUX compiler problem.
30207
302082007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30209
30210 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30211 to gtk_toolbar_insert.
30212
302132007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30214
30215 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30216
30217 * insdel.c (reset_var_on_error): New fun.
30218 (signal_before_change, signal_after_change):
30219 Use it to reset (after|before)-change-functions to nil in case of error.
30220 Bind inhibit-modification-hooks to t.
30221 Don't bind (after|before)-change-functions to nil while they run.
30222
302232007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30224
30225 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30226 filling pixmap with stippled background.
30227
302282007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30229
30230 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30231 Don't use invisible frame as parent window for repositioning.
30232
302332007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30234
30235 * print.c (new_backquote_output): Rename from old_backquote_output.
30236 (print): Inverse its logic (according to its name) so as to match the
30237 behavior of new_backquote_flag in lread.c.
30238
302392007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30240
30241 * gmalloc.c (posix_memalign): New function.
30242
30243 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30244 ActivateControl/DeactivateControl here.
30245 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30246 frame-notice-user-settings is non-nil.
30247 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30248 for kEventParamFMFontStyle.
30249 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30250 mac_pass_command_to_system and mac_pass_control_to_system here.
30251 (XTread_socket): Call ActivateControl/DeactivateControl here.
30252 (XTread_socket) [TARGET_API_MAC_CARBON]:
30253 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30254 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30255 for window repositioning.
30256
302572007-08-08 Glenn Morris <rgm@gnu.org>
30258
30259 * Replace `iff' in doc-strings and comments.
30260
302612007-08-07 Chong Yidong <cyd@stupidchicken.com>
30262
30263 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30264
302652007-08-07 Martin Rudalics <rudalics@gmx.at>
30266
30267 * fileio.c (Finsert_file_contents): Run format-decode and
30268 after_insert_file_functions on entire buffer when REPLACE is
30269 non-nil and inhibit modification_hooks and point_motion_hooks.
30270 For consistency, run after_insert_file_functions iff something
30271 got inserted. Move signal_after_change and update_compositions
30272 after code running after_insert_file_functions. Make sure that
30273 undo_list doesn't record intermediate steps of the decoding process.
30274
302752007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30276
30277 * emacs.c (main)
30278 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30279 Call malloc_enable_thread on interactive startup.
30280
30281 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30282 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30283 [USE_PTHREAD]: Conditionalize with it.
30284 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30285 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30286 New functions.
30287
302882007-08-06 Chong Yidong <cyd@stupidchicken.com>
30289
30290 * xdisp.c (redisplay_window): When restoring original buffer
30291 position, make sure it is still valid.
30292
30293 * image.c (png_load): Ignore png-supplied background color.
30294
302952007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30296
30297 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30298 Use kCFAbsoluteTimeIntervalSince1970.
30299
30300 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30301 New variable.
30302 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30303 event loop should be quit.
30304 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30305 Quit dialog event loop if quit_dialog_event_loop is set.
30306
30307 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30308 (Selection): New typedef. Use instead of ScrapRef.
30309 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30310 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30311 (mac_clear_selection): Rename from clear_scrap.
30312 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30313 scrap_has_target_type. All uses changed.
30314 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30315 (mac_selection_has_target_p): New functions.
30316 (mac_put_selection_value): Rename from put_scrap_string.
30317 (mac_get_selection_value): Rename from get_scrap_string.
30318 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30319 (put_scrap_private_timestamp, scrap_has_target_type)
30320 (get_scrap_private_timestamp): Remove functions.
30321 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30322 (x_own_selection, x_get_local_selection):
30323 Use mac_valid_selection_value_p.
30324 (x_own_selection): Don't use put_scrap_private_timestamp.
30325 Record OWNERSHIP-INFO into Vselection_alist instead.
30326 (x_get_local_selection): Don't check type if request is local.
30327 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30328 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30329
303302007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30331
30332 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30333 add comment explaining why.
30334
303352007-08-03 Richard Stallman <rms@gnu.org>
30336
30337 * fileio.c (Fvisited_file_modtime): Use make_time.
30338
303392007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30340
30341 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30342 build.
30343
303442007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30345
30346 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30347
303482007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30349
30350 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30351
303522007-07-30 Richard Stallman <rms@gnu.org>
30353
30354 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30355
303562007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30357
30358 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30359
303602007-07-28 Nick Roberts <nickrob@snap.net.nz>
30361
30362 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30363 remote default-directory.
30364
30365 * buffer.c (mode-line-format): Update doc string.
30366
303672007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30368
30369 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30370 scroll bar gap.
30371 (x_scroll_bar_create): Set bar->fringe_extended_p.
30372 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30373 on frame edge. Check fringe background extension. Don't clear
30374 extended fringe background area.
30375
30376 * w32term.h (struct scroll_bar): New member fringe_extended_p.
30377 (w32_fill_area): Enclose multiple statements with do ... while (0).
30378
30379 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
30380 Extend fringe background to scroll bar gap.
30381 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
30382 Set bar->fringe_extended_p.
30383 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30384 Put leftmost/rightmost scroll bars on frame edge. Check fringe
30385 background extension. Don't clear extended fringe background area.
30386
30387 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30388 New member fringe_extended_p.
30389
303902007-07-25 Glenn Morris <rgm@gnu.org>
30391
30392 * Relicense all FSF files to GPLv3 or later.
30393
30394 * COPYING: Switch to GPLv3.
30395
303962007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
30397
30398 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
30399
30400 * data.c (Finteractive_form): Check for the presence of an
30401 `interactive-form' symbol property more thoroughly.
30402
30403 * data.c (Finteractive_form): Use an `interactive-form' property if
30404 present, analogous to the function-documentation property.
30405
304062007-07-24 Jason Rumney <jasonr@gnu.org>
30407
30408 * w32fns.c (x_real_positions): Get real position from OS instead of
30409 calculating it.
30410
304112007-07-23 Jason Rumney <jasonr@gnu.org>
30412
30413 * filelock.c (current_lock_owner): Allow for @ sign in username.
30414
304152007-07-22 Nick Roberts <nickrob@snap.net.nz>
30416
30417 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
30418 remote default-directory.
30419
30420 * buffer.c (mode-line-format): Describe above case in doc string.
30421
304222007-07-20 Eli Zaretskii <eliz@gnu.org>
30423
30424 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
30425 Define if not defined.
30426
304272007-07-18 Jason Rumney <jasonr@gnu.org>
30428
30429 * w32proc.c (w32_executable_type): Handle 64 bit executables.
30430
304312007-07-18 Richard Stallman <rms@gnu.org>
30432
30433 * data.c (Fsetq_default): Doc fix.
30434
30435 * eval.c (Fsetq): Doc fix.
30436
304372007-07-18 Juanma Barranquero <lekktu@gmail.com>
30438
30439 * coding.c (Ffind_operation_coding_system):
30440 * eval.c (For, Fand): Doc fixes.
30441 Reported by Johan Bockgård.
30442
304432007-07-18 Jan Djärv <jan.h.d@swipnet.se>
30444
30445 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
30446
30447 * xterm.h: Declare x_ewmh_activate_frame.
30448
30449 * xterm.c (x_ewmh_activate_frame): New function.
30450 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
30451
304522007-07-17 Martin Rudalics <rudalics@gmx.at>
30453
30454 * window.c (Fdisplay_buffer): If largest or LRU window is the
30455 only window, split it even if it is not eligible for splitting.
30456 This restores the original behavior broken by the 2007-07-15
30457 change.
30458
304592007-07-17 Glenn Morris <rgm@gnu.org>
30460
30461 * abbrev.c (abbrev_check_chars): New function.
30462 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
30463 Call abbrev_check_chars to check abbrev characters are word
30464 constituents. Doc fix.
30465
304662007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
30467
30468 * process.c (Fstart_process, Fmake_network_process)
30469 (read_process_output): Fix up last changes.
30470
304712007-07-16 Eli Zaretskii <eliz@gnu.org>
30472
30473 * makefile.w32-in (clean): Don't delete *~.
30474
304752007-07-16 Andreas Schwab <schwab@suse.de>
30476
30477 * window.c (Fdisplay_buffer): Use NILP.
30478 (Fset_window_scroll_bars): Likewise.
30479
304802007-07-15 Martin Rudalics <rudalics@gmx.at>
30481
30482 * window.c (window_min_size_2): New function.
30483 (window_min_size_1, size_window, Fdisplay_buffer)
30484 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
30485 windows without mode- or header-lines when window-min-height is
30486 too small.
30487 (size_window): Reset nodelete_p after testing it, following an
30488 earlier note by Kim F. Storm.
30489 (display_buffer): Do not set split_height_threshold to twice the
30490 value of window_min_height to avoid changing the value of a
30491 customizable variable. Rather explicitly check whether the
30492 height of the window that shall be splitted is at least as large
30493 as split_height_threshold.
30494 (Fwindow_full_width_p): New defun.
30495 (syms_of_window): Defsubr it.
30496
30497 * window.h: Add EXFUN for Fwindow_full_width_p.
30498
304992007-07-14 Jason Rumney <jasonr@gnu.org>
30500
30501 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
30502
305032007-07-14 Richard Stallman <rms@gnu.org>
30504
30505 * eval.c (maybe_call_debugger): New function.
30506 (find_handler_clause): Use maybe_call_debugger.
30507 Call it when the handler says `debug'.
30508 Eliminate DEBUGGER_VALUE_PTR.
30509 (Fsignal): Eliminate debugger_value.
30510 (Qdebug): New variable.
30511 (syms_of_eval): Initialize it.
30512
305132007-07-14 Juanma Barranquero <lekktu@gmail.com>
30514
30515 * eval.c (Fprogn):
30516 * keyboard.c (Ftrack_mouse):
30517 * print.c (Fwith_output_to_temp_buffer):
30518 * window.c (Fsave_window_excursion): Doc fix.
30519
305202007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
30521
30522 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
30523
305242007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
30525
30526 * process.h (struct Lisp_Process): Turn slots infd, outfd,
30527 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
30528 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
30529 read_output_delay, and read_output_skip from Lisp_Objects to ints.
30530 Remove unused encoding_carryover.
30531 * process.c: Adjust all functions accordingly.
30532
305332007-07-12 Richard Stallman <rms@gnu.org>
30534
30535 * term.c: Include unistd.h only if HAVE_UNISTD_H.
30536
305372007-07-11 Jason Rumney <jasonr@gnu.org>
30538
30539 * makefile.w32-in (LIBS): Include OLE32.
30540
30541 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
30542 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
30543
305442007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30545
30546 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30547 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30548 from a Lisp_Object into a bare pointer.
30549 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30550 Adjust the code correspondingly.
30551
30552 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30553
30554 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30555 (term_show_mouse_face): Remove unused var `j'.
30556 (handle_one_term_event): Remove unused vars `i' and `j'.
30557 Don't cast return value of ttyname since it's not necessary.
30558
305592007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30560
30561 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30562 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30563
30564 * fns.c (map_char_table): Use an array of int for `indices' rather than
30565 an array of Lisp_Objects (which are only ever integers anyway).
30566 (Fmap_char_table): Update caller.
30567 * lisp.h: Update prototype.
30568 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30569 * fontset.c (Ffontset_info):
30570 * casetab.c (set_case_table): Update callers.
30571
30572 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30573
30574 * keymap.c (struct accessible_keymaps_data)
30575 (struct where_is_internal_data): New structures.
30576 (accessible_keymaps_1, where_is_internal_1): Use them to change
30577 interface to adhere to the one used by map_keymap.
30578 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30579 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30580
30581 * keymap.h (map_keymap_function_t): More informative prototype.
30582
305832007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30584
30585 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30586 (looking_at_1): Don't change search_regs and last_thing_searched
30587 if `inhibit-changing-match-data' is non-nil.
30588 (string_match_1, search_buffer, set_search_regs): Likewise.
30589 (syms_of_search): Add Lisp level definition for
30590 `inhibit-changing-match-data' and set it to nil.
30591 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30592 start and end of the match, instead of using values in search_regs.
30593
305942007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30595
30596 * minibuf.c (Fcompleting_read): New value `confirm-only'
30597 for `require-match'.
30598
305992007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30600
30601 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30602 part of the 2007-06-27 change to syms_of_fileio.
30603
306042007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30605
30606 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30607 Check WINDOWP before using XWINDOW. Consolidate return statements.
30608
306092007-06-27 Richard Stallman <rms@gnu.org>
30610
30611 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30612
306132007-06-27 Juanma Barranquero <lekktu@gmail.com>
30614
30615 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30616
306172007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30618
30619 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30620 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30621 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30622 (_free_internal, memalign): Use them.
30623 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30624 Initialize to PTHREAD_MUTEX_INITIALIZER.
30625 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30626 (morecore_nolock): Rename from morecore. All uses changed.
30627 Use only nolock versions of internal allocation functions.
30628 (_malloc_internal_nolock, _realloc_internal_nolock)
30629 (_free_internal_nolock): New functions created from
30630 _malloc_internal, _realloc_internal, and _free_internal.
30631 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30632 Copy hook value to automatic variable before its use.
30633 (memalign): Copy hook value to automatic variable before its use.
30634
306352007-06-26 Kenichi Handa <handa@m17n.org>
30636
30637 * coding.c (Ffind_operation_coding_system): Docstring improved.
30638 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30639
306402007-06-25 David Kastrup <dak@gnu.org>
30641
30642 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30643 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30644 cater for additional parameter.
30645
30646 * keymap.h: Adjust number of parameters to `current-active-maps'.
30647
30648 * doc.c (Fsubstitute_command_keys): Adjust call of
30649 `current-active-maps'.
30650
306512007-06-25 David Kastrup <dak@gnu.org>
30652
30653 * callint.c (Fcall_interactively): Make the parsing of interactive
30654 specs somewhat more readable.
30655
306562007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30657
30658 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30659 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30660 if extended background has already been filled.
30661
306622007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30663
30664 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30665 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30666
30667 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30668 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30669 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30670 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30671 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30672 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30673 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30674 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30675 Run timers during dialog popup.
30676 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30677
306782007-06-21 Jason Rumney <jasonr@gnu.org>
30679
30680 * image.c (convert_mono_to_color_image): Swap fore and background.
30681
306822007-06-20 Jason Rumney <jasonr@gnu.org>
30683
30684 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30685 (w32_free_bdf_font): Unmap memory not handle.
30686
306872007-06-20 Sam Steingold <sds@gnu.org>
30688
30689 * gmalloc.c (__morecore): Fix the declaration to comply with the
30690 definition.
30691
306922007-06-20 Juanma Barranquero <lekktu@gmail.com>
30693
30694 * w32term.c (w32_delete_display): Remove leftover declaration.
30695 (w32_define_cursor, w32_initialize): Make static.
30696
30697 * w32.c (_wsa_errlist): Fix typo in error message.
30698 (init_environment): Ignore any environment variable from the
30699 registry having a null value.
30700
307012007-06-20 Glenn Morris <rgm@gnu.org>
30702
30703 * Makefile.in (LIBGIF): Default to -lgif.
30704
307052007-06-17 Jason Rumney <jasonr@gnu.org>
30706
30707 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30708 unicode strings.
30709
307102007-06-16 Juanma Barranquero <lekktu@gmail.com>
30711
30712 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30713 Fix typo in docstring.
30714
307152007-06-16 Eli Zaretskii <eliz@gnu.org>
30716
30717 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30718 and their keybindings.
30719
307202007-06-15 Chong Yidong <cyd@stupidchicken.com>
30721
30722 * composite.c (update_compositions): Fix last fix.
30723
307242007-06-14 Jason Rumney <jasonr@gnu.org>
30725
30726 * w32.c (get_process_times_fn): New function pointer.
30727 (globals_of_w32): Intialize it if present in kernel32.dll.
30728 (w32_get_internal_run_time): New function.
30729
30730 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30731
307322007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30733
30734 * composite.c (update_compositions): Check the validness of
30735 compositions.
30736
307372007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30738
30739 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30740 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30741
30742 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30743 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30744
30745 * macgui.h (USE_MAC_TOOLBAR): New define.
30746
30747 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30748 Return immediately unless popup is activated.
30749
30750 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30751 background to scroll bar gap.
30752 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30753 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30754 scroll bars on frame edge. Check fringe background extension.
30755 Don't clear extended fringe background area.
30756 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30757 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30758 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30759 [USE_MAC_TOOLBAR]: New macros.
30760 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30761 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30762 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30763 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30764 [USE_MAC_TOOLBAR]: New functions.
30765 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30766 manually if previous repositioning has failed.
30767 (mac_handle_keyboard_event): Use precomputed event kind.
30768 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30769 as tool bar item click. Handle mouse movement over tool bar items.
30770
30771 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30772 toolbar_win_gravity.
30773 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30774 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30775 Add externs.
30776
30777 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30778 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30779
307802007-06-14 Chong Yidong <cyd@stupidchicken.com>
30781
30782 * image.c (search_image_cache): Remove unused variable.
30783
307842007-06-13 Chong Yidong <cyd@stupidchicken.com>
30785
30786 * xfns.c, xmenu.c: Link to xaw3d if available.
30787
307882007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30789
30790 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30791 frame_foreground and frame_background.
30792
30793 * image.c (lookup_image): Save frame foreground and background colors.
30794 (search_image_cache): Check if saved and current frame colors match.
30795
307962007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30797
30798 * regex.c (regex_compile): Remove the `regnum' counter.
30799 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30800
308012007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30802
30803 * term.c: Include intervals.h to declare Fget_text_property.
30804
308052007-06-10 Jason Rumney <jasonr@gnu.org>
30806
30807 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30808
308092007-06-08 Juanma Barranquero <lekktu@gmail.com>
30810
30811 * callint.c (Fcall_interactively):
30812 * editfns.c (Fdelete_and_extract_region):
30813 * fileio.c (Fread_file_name):
30814 * fns.c (Fmapconcat):
30815 * keyboard.c (cmd_error_internal):
30816 * keymap.c (Fkey_description):
30817 * lread.c (openp):
30818 * minibuf.c (read_minibuf):
30819 * search.c (wordify):
30820 * sunfns.c (sel_read):
30821 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30822 * xfns.c (x_default_scroll_bar_color_parameter):
30823 * xmenu.c (menu_help_callback):
30824 * xselect.c (Fx_get_atom_name):
30825 * xterm.c (x_term_init): Use empty_unibyte_string.
30826
308272007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30828
30829 * alloc.c (init_strings): Initialize canonical empty strings.
30830 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30831 canonical empty string when the requested size is 0.
30832
30833 * emacs.c (empty_unibyte_string): Rename from empty_string.
30834 (empty_multibyte_string): New canonical empty string.
30835 (syms_of_emacs): Don't initialize empty_string.
30836
30837 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30838 string, if appropriate.
30839 (empty_unibyte_string, empty_multibyte_string): New externs.
30840 (empty_string): Remove extern.
30841
30842 * lread.c (syms_of_lread): Use empty_unibyte_string.
30843
308442007-06-07 Jason Rumney <jasonr@gnu.org>
30845
30846 * s/ms-w32.h: Don't define HAVE_TZNAME.
30847
30848 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30849
308502007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30851
30852 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30853
30854 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30855 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30856
30857 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30858 Don't call next handler.
30859 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30860 Remove argument. Install handler to application.
30861 (set_frame_menubar): Don't change deep_p.
30862 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30863 FRAME_OUTER_TO_INNER_DIFF_Y.
30864 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30865 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30866 [HAVE_DIALOGS]: New macros.
30867 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30868 Use them.
30869 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30870
30871 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30872 init_service_handler. All callers changed. Return OSStatus value.
30873
30874 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30875 All callers changed so as not to call SetPortWindowPort.
30876 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30877 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30878 mac_draw_string_common.
30879 (mac_draw_image_string_qd): Likewise.
30880 (mac_draw_string_common): Use them. Add INLINE.
30881 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30882 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30883 GetGlobalMouse.
30884 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30885 and FRAME_OUTER_TO_INNER_DIFF_Y.
30886 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30887 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30888 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30889 repositioning window to mac_handle_window_event.
30890 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30891 saving window location to mac_handle_window_event
30892 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30893 (install_menu_target_item_handler): Remove argument in extern.
30894 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30895 Also accept command events.
30896 (do_keystroke): New function created from XTread_socket.
30897 (init_command_handler): Remove functions.
30898 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30899 and save window location by kEventWindowShowing and kEventWindowHiding
30900 handlers here. Don't call next handler for window state change and
30901 focus events.
30902 (mac_handle_application_event, mac_handle_keyboard_event)
30903 [TARGET_API_MAC_CARBON]: New functions.
30904 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30905 kEventWindowShowing and kEventWindowHiding events. Move installation
30906 of mouse, font, text input and menu target item handlers to
30907 install_application_handler.
30908 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30909 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30910 New function.
30911 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30912 Register it.
30913 (XTread_socket) [TARGET_API_MAC_CARBON]:
30914 Consolidate SendEventToEventTarget calls.
30915 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30916 Move application activation handler to mac_handle_application_event.
30917 Move keyboard handler to mac_handle_keyboard_event.
30918 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30919 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30920 init_command_handler. Call install_application_handler.
30921
30922 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30923 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30924
309252007-06-07 Glenn Morris <rgm@gnu.org>
30926
30927 * emacs.c (main): Use `emacs-copyright' in --version output.
30928
309292007-06-06 Chong Yidong <cyd@stupidchicken.com>
30930
30931 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30932
309332007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30934
30935 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30936
30937 * macgui.h: Replace WindowPtr with WindowRef.
30938
30939 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30940 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30941 Replace ControlHandle with ControlRef.
30942 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30943
30944 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30945 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30946 Replace ControlHandle with ControlRef.
30947 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30948 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30949
30950 * macterm.h (struct scroll_bar): Rename member control_handle_low
30951 and control_handle_high to control_ref_low and control_ref_high.
30952 All uses changed.
30953 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30954 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30955 respectively. All uses changed.
30956 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30957 (install_window_handler, remove_window_handler): Replace WindowPtr
30958 with WindowRef in externs.
30959
309602007-06-05 Juanma Barranquero <lekktu@gmail.com>
30961
30962 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30963
309642007-06-03 Nick Roberts <nickrob@snap.net.nz>
30965
30966 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30967
30968 * frame.c (Fmouse_position, Fmouse_pixel_position):
30969 Condition on HAVE_GPM too.
30970
30971 * term.c (term_mouse_highlight): Remove unused variables.
30972 (Fterm_open_connection): Set gpm_zerobased to 1.
30973 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30974 Use zero based co-ordinates.
30975 (handle_one_term_event): Report a drag as mouse movement too.
30976
30977 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30978
309792007-06-03 Chong Yidong <cyd@stupidchicken.com>
30980
30981 * image.c (search_image_cache): New function. Require background
30982 color match if background color is unspecified in the image spec.
30983 (uncache_image, lookup_image): Use it.
30984
309852007-06-01 Juanma Barranquero <lekktu@gmail.com>
30986
30987 * window.c (Fshrink_window): Reflow docstring.
30988
309892007-06-02 Chong Yidong <cyd@stupidchicken.com>
30990
30991 * Version 22.1 released.
30992
309932007-06-01 Richard Stallman <rms@gnu.org>
30994
30995 * xfns.c (x_encode_text): Add GCPRO.
30996
309972007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30998
30999 * xfns.c (x_set_name_internal): Save encoded name before
31000 x_encode_text in case string data is relocated.
31001
310022007-05-31 Richard Stallman <rms@gnu.org>
31003
31004 * buffer.c (syms_of_buffer): Doc fix.
31005
310062007-05-30 Nick Roberts <nickrob@snap.net.nz>
31007
31008 * sysdep.c (init_sys_modes): Add rather than replace with
31009 O_NONBLOCK.
31010
31011 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31012 term_mouse_moveto.
31013
31014 * termhooks.h (term_mouse_moveto): New extern.
31015
31016 * term.c (mouse_face_window): Rename...
31017 (Qmouse_face_window): ...to this.
31018 (term_show_mouse_face, term_clear_mouse_face)
31019 (term_mouse_highlight): Use Qmouse_face_window.
31020 (term_mouse_moveto): New function.
31021 (term_mouse_position): Make it work.
31022 (syms_of_term): Uncomment assignment to mouse_position_hook.
31023 Staticpro Qmouse_face_window.
31024
310252007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31026
31027 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31028 around current_column call.
31029
310302007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31031
31032 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31033 * xdisp.c (next_element_from_buffer):
31034 * window.c (delete_window):
31035 * term.c (term_mouse_highlight):
31036 * msdos.c (getdefdir):
31037 * macterm.c (mac_create_bitmap_from_bitmap_data)
31038 (init_font_name_table):
31039 * fns.c (Fsxhash):
31040 * data.c (Fmake_local_variable):
31041 * ccl.c (ccl_driver): Likewise.
31042
310432007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31044
31045 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31046 Call mac_wakeup_from_rne on window size change.
31047
310482007-05-25 Chong Yidong <cyd@stupidchicken.com>
31049
31050 * image.c (uncache_image): Fix typo.
31051
310522007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31053
31054 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31055
310562007-05-22 Richard Stallman <rms@gnu.org>
31057
31058 * xterm.c (x_connection_closed): Remove NO_RETURN.
31059
310602007-05-22 Martin Rudalics <rudalics@gmx.at>
31061
31062 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31063
310642007-05-21 Chong Yidong <cyd@stupidchicken.com>
31065
31066 * image.c (uncache_image): New function.
31067 (Fimage_refresh): New function.
31068
310692007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31070
31071 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31072
310732007-05-20 Nick Roberts <nickrob@snap.net.nz>
31074
31075 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31076 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31077
310782007-05-20 Nick Roberts <nickrob@snap.net.nz>
31079
31080 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31081 conditional on [HAVE_GPM_H].
31082
310832007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31084
31085 * syntax.c (skip_chars): Update syntax-table only after we checked that
31086 the new location is valid.
31087
310882007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31089
31090 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31091 mac_get_window_bounds.
31092
310932007-05-20 Nick Roberts <nickrob@snap.net.nz>
31094
31095 * Makefile.in (LIBGPM): Allow it to be set from configure.
31096 If set then link Emacs with it.
31097
31098 * config.in: Regenerate.
31099
31100 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31101 New externs.
31102
31103 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31104 Include gpm.h.
31105 (handle_one_term_event, term_gpm): New externs.
31106
31107 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31108 and allow it to be interrupted by SIGIO.
31109
31110 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31111 (wait_reading_process_output): Wait on gpm_fd too.
31112 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31113 (add_gpm_wait_descriptor_called_flag): New variable.
31114 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31115
31116 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31117 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31118 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31119 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31120 (make_lispy_event): Add case GPM_CLICK_EVENT.
31121 (read_avail_input): Handle mouse input.
31122
31123 * term.c (write_glyphs_with_face): New function.
31124 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31125 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31126 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31127 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31128 (last_mouse_x, last_mouse_y): New variables.
31129 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31130 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31131 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31132 (Fterm_close_connection): New functions.
31133 (term_init): Initialise mouse_face_window.
31134
311352007-05-19 Chong Yidong <cyd@stupidchicken.com>
31136
31137 * xdisp.c (redisplay_window): If first window line is a
31138 continuation line, recompute the new window start instead of
31139 recentering.
31140
311412007-05-18 Glenn Morris <rgm@gnu.org>
31142
31143 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31144 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31145
311462007-05-17 Glenn Morris <rgm@gnu.org>
31147
31148 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31149
311502007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31151
31152 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31153 dead key repeat and up events.
31154
311552007-05-14 Chong Yidong <cyd@stupidchicken.com>
31156
31157 * image.c (pbm_load): Check image size for monochrome pbm.
31158
311592007-05-13 Chong Yidong <cyd@stupidchicken.com>
31160
31161 * xterm.c (XTread_socket): Revert last change.
31162
311632007-05-12 Chong Yidong <cyd@stupidchicken.com>
31164
31165 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31166
31167 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31168
311692007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31170
31171 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31172 mixup (YAILOM).
31173
311742007-05-07 Andreas Schwab <schwab@suse.de>
31175
31176 * keymap.c (Flookup_key): Fix typo in last change.
31177
311782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31179
31180 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31181 mapping for unibyte strings.
31182
311832007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31184
31185 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31186 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31187
311882007-04-29 Richard Stallman <rms@gnu.org>
31189
31190 * insdel.c (replace_range): For undo, record insertion first.
31191
311922007-04-29 Andreas Schwab <schwab@suse.de>
31193
31194 * lisp.h (VECSIZE): Use OFFSETOF.
31195
311962007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31197
31198 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31199 disabled lines.
31200
312012007-04-28 Richard Stallman <rms@gnu.org>
31202
31203 * lread.c (read_escape): In a string, \s is always space.
31204
312052007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31206
31207 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31208
31209 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31210 submenu for menu bar items.
31211
31212See ChangeLog.10 for earlier changes.
31213
31214;; Local Variables:
31215;; coding: utf-8
aac0c6e3
MR
31216;; End:
31217
73b0cd50 31218 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31219
31220 This file is part of GNU Emacs.
31221
31222 GNU Emacs is free software: you can redistribute it and/or modify
31223 it under the terms of the GNU General Public License as published by
31224 the Free Software Foundation, either version 3 of the License, or
31225 (at your option) any later version.
31226
31227 GNU Emacs is distributed in the hope that it will be useful,
31228 but WITHOUT ANY WARRANTY; without even the implied warranty of
31229 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31230 GNU General Public License for more details.
31231
31232 You should have received a copy of the GNU General Public License
31233 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.