Cleanups for src/callproc.c.
[bpt/emacs.git] / src / ChangeLog
1 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * callproc.c (child_setup): Remove subprocesses conditional.
4 Remove code dealing with SET_EMACS_PRIORITY, unused.
5
6 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
8
9 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
10 (__do_global_dtors, __main): Use void in definition.
11 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
12 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
13 the only users from ...
14 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
15 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
16 (HAVE_VOLATILE): Remove, unused.
17
18 Convert more function definitions to standard C.
19 * xdisp.c (window_box_edges, handle_single_display_spec)
20 (display_string): Convert definition to standard C.
21 * scroll.c (do_direct_scrolling, scrolling_1):
22 * dispnew.c (allocate_matrices_for_frame_redisplay)
23 (mirrored_line_dance):
24 * coding.c (code_convert_string):
25 * charset.c (map_charset_chars):
26 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
27 (Fregister_ccl_program, Fregister_code_conversion_map):
28 * keyboard.c (kbd_buffer_nr_stored): Likewise.
29 (head_table): Make static and const.
30
31 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
32
33 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
34 (PROFILING_LDFLAGS): Set from substitution.
35 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
36 CFLAGS last.
37
38 2010-07-12 Kenichi Handa <handa@m17n.org>
39
40 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
41 (shortlisp): Likewise.
42
43 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
44
45 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
46 of FONT_ENTITY_INDEX.
47 (Ffont_get): If KEY is :otf and the font-object doesn't have the
48 property, get the property value dynamically.
49 (Ffont_put): Accept font-entity and font-object too.
50 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
51 return value changed.
52 (syms_of_font): Adjusted for the above change.
53
54 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
55
56 * blockinput.h: Remove obsolete comment.
57
58 * lisp.h: Include <stddef.h>.
59 (OFFSETOF): Don't define.
60 (VECSIZE): Use offsetof instead of OFFSETOF.
61 (PSEUDOVECSIZE): Likewise.
62 * process.c (conv_sockaddr_to_lisp): Likewise.
63 * alloc.c: Don't include <stddef.h>.
64 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
65
66 * process.c: Remove obsolete comment.
67
68 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
69
70 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
71
72 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
73
74 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
75 index, rindex.
76 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
77 * editfns.c (Fuser_full_name, Fformat): Likewise.
78 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
79 * fileio.c (Ffile_symlink_p): Likewise.
80 * filelock.c (current_lock_owner): Likewise.
81 * font.c (font_parse_name, font_parse_family_registry): Likewise.
82 * fontset.c (fontset_pattern_regexp): Likewise.
83 * lread.c (read1): Likewise.
84 * sysdep.c (init_system_name): Likewise.
85 * xfns.c (select_visual): Likewise.
86 * s/hpux10-20.h (index, rindex): Don't define.
87 * s/ms-w32.h (index): Likewise.
88 * s/usg5-4.h: Likewise.
89
90 * callproc.c (relocate_fd): Use F_DUPFD if defined.
91
92 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
93 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
94 (egetenv): Likewise.
95 * doprnt.c (doprnt): Likewise.
96 * editfns.c (set_time_zone_rule, format2): Likewise.
97 * emacs.c (decode_env_path): Likewise.
98 * eval.c (signal_error, error): Likewise.
99 * insdel.c (replace_range_2): Likewise.
100 * keyboard.c (cmd_error_internal): Likewise.
101 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
102 * print.c (write_string, write_string_1, print_error_message):
103 Likewise.
104 * vm-limit.c (warn_function, memory_warnings): Likewise.
105 * xdisp.c (message1, message1_nolog, message_with_string)
106 (vmessage, message, message_nolog): Likewise.
107 * emacs.c: Remove duplicate declaration.
108 * keyboard.h: Likewise.
109 * lisp.h: Update prototypes.
110
111 * eval.c: Fix indentation problem.
112
113 * keyboard.c: Include "process.h"
114
115 * eval.c: Remove obsolete noinline declaration.
116 * fns.c: Likewise.
117
118 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
119
120 * doprnt.c (doprnt): Take a va_list argument instead of count and
121 pointer.
122 * eval.c (error): Change to a standard-C variadic function.
123 * xdisp.c (vmessage): Renamed from message, made static, and
124 changed to take a va_list argument.
125 (message): New variadic wrapper.
126 (message_nolog): Now a variadic function, calling vmessage.
127 * lisp.h: Include stdarg.h for va_list.
128 (doprnt, error, message, message_nolog): Decls updated.
129
130 2010-07-11 Eli Zaretskii <eliz@gnu.org>
131
132 * process.c (syms_of_process) <delete-exited-processes>: Define
133 even if !subprocesses.
134 (delete_exited_processes): Ditto.
135
136 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
137 (delete_exited_processes): Don't define.
138
139 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
140
141 * frame.c (make_frame): Initialize menu_bar_lines and
142 tool_bar_lines members.
143 (make_initial_frame, make_terminal_frame): Initialize
144 menu_bar_lines using value of menu-bar-mode.
145
146 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
147
148 2010-07-10 Eli Zaretskii <eliz@gnu.org>
149
150 * process.c: Reshuffle #include's. Condition some of the global
151 and static variables on `subprocesses'.
152 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
153 Leave only one implementation.
154 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
155 (kill_buffer_processes, Flist_system_processes)
156 (Fprocess_attributes, init_process, syms_of_process): Unify the
157 implementations for with subprocesses and without them.
158
159 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
160
161 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
162 correct size for Motif.
163 (free_frame_menubar): Call x_set_window_size to update frame size.
164
165 * xfns.c (x_window): Set borderWidth to 0 for pane and
166 EmacsFrame. Frame size calculation is wrong otherwise.
167
168 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
169
170 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
171 allows to suppress errors when polling in Emacs' main loop.
172 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
173 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
174 (Fdbus_method_error_internal, Fdbus_send_signal)
175 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
176 (Fdbus_register_method): Use it. (Bug#6579)
177
178 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
179
180 * alloc.c: Convert DEFUNs to standard C.
181 * buffer.c:
182 * bytecode.c:
183 * callint.c:
184 * callproc.c:
185 * casefiddle.c:
186 * casetab.c:
187 * category.c:
188 * character.c:
189 * charset.c:
190 * chartab.c:
191 * cmds.c:
192 * coding.c:
193 * composite.c:
194 * data.c:
195 * dbusbind.c:
196 * dired.c:
197 * dispnew.c:
198 * doc.c:
199 * dosfns.c:
200 * editfns.c:
201 * emacs.c:
202 * eval.c:
203 * fileio.c:
204 * filelock.c:
205 * floatfns.c:
206 * fns.c:
207 * font.c:
208 * fontset.c:
209 * frame.c:
210 * fringe.c:
211 * image.c:
212 * indent.c:
213 * insdel.c:
214 * keyboard.c:
215 * keymap.c:
216 * lread.c:
217 * macros.c:
218 * marker.c:
219 * menu.c:
220 * minibuf.c:
221 * msdos.c:
222 * nsfns.m:
223 * nsmenu.m:
224 * nsselect.m:
225 * print.c:
226 * process.c:
227 * search.c:
228 * sound.c:
229 * syntax.c:
230 * term.c:
231 * terminal.c:
232 * textprop.c:
233 * undo.c:
234 * w16select.c:
235 * w32console.c:
236 * w32fns.c:
237 * w32font.c:
238 * w32menu.c:
239 * w32proc.c:
240 * w32select.c:
241 * window.c:
242 * xdisp.c:
243 * xfaces.c:
244 * xfns.c:
245 * xmenu.c:
246 * xselect.c:
247 * xsettings.c:
248 * xsmfns.c: Likewise.
249
250
251 2010-07-08 Eli Zaretskii <eliz@gnu.org>
252
253 * process.c (kbd_is_on_hold, hold_keyboard_input)
254 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
255
256 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
257
258 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
259 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
260 unless USE_LUCID.
261
262 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
263
264 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
265
266 Clean up include guards.
267 * tparam.c: Remove include guards for config.h, string.h and code
268 that assumes #ifndef emacs.
269 * termcap.c:
270 * unexalpha.c:
271 * sysdep.c:
272 * filemode.c:
273 * filelock.c:
274 * bidi.c: Likewise.
275
276 Remove prefix-args.c
277 * prefix-args.c: Remove file.
278 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
279 * Makefile.in (temacs${EXEEXT}): Remove references to
280 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
281 (mostlyclean): Remove reference to prefix-args.
282 (prefix-args): Remove.
283
284 Simplify cstart_of_data, start_of_code and related code.
285 * mem-limits.h: Remove !emacs and _LIBC conditional code.
286 (start_of_data): Merge into start_of_data function.
287 * sysdep.c (start_of_text): Remove. Move simplified versions of
288 it in the only users: unexaix.c and unexec.c.
289 (read_input_waiting): Remove local declaration of quit_char.
290 (start, etext): Remove declarations.
291 (start_of_data): Merge with the version in mem-limits.h and move
292 to vm-limits.c.
293 * vm-limit.c (start_of_data): Merged and simplified version of the
294 code formerly in mem-limits.h and sysdep.c.
295 * unexec.c (start): New declaration, moved from sysdep.c.
296 (start_of_text): Simplified version of the code formerly in sysdep.c.
297 * unexaix.c (start_of_text): Simplified version of the code
298 formerly in sysdep.c.
299 * m/alpha.h (HAVE_TEXT_START): Remove.
300 (TEXT_START): Move ...
301 * unexalpha.c (TEXT_START): ... here.
302 * s/hpux10-20.h (TEXT_START): Remove.
303 * s/darwin.h (TEXT_START):
304 * m/mips.h (TEXT_START):
305 * m/macppc.h (HAVE_TEXT_START):
306 * m/m68k.h (TEXT_START):
307 * m/iris4d.h (TEXT_START):
308 * m/intel386.h (TEXT_START):
309 * m/ibmrs6000.h (TEXT_START):
310 * m/ia64.h (HAVE_TEXT_START):
311 * s/msdos.h (TEXT_START): Likewise.
312
313 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
314
315 * alloc.c (overrun_check_malloc, overrun_check_realloc)
316 (overrun_check_free, xstrdup, allocate_string)
317 (allocate_string_data, compact_small_strings, Fmake_string)
318 (make_unibyte_string, make_multibyte_string)
319 (make_string_from_bytes, make_specified_string, make_float)
320 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
321 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
322 memcpy, memmove, memset, memcmp.
323 * atimer.c (start_atimer, set_alarm): Likewise.
324 * buffer.c (clone_per_buffer_values, report_overlay_modification)
325 (mmap_realloc, init_buffer_once): Likewise.
326 * callint.c (Fcall_interactively): Likewise.
327 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
328 (getenv_internal_1): Likewise.
329 * casefiddle.c (casify_object): Likewise.
330 * ccl.c (ccl_driver): Likewise.
331 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
332 * charset.c (load_charset_map_from_file)
333 (load_charset_map_from_file, load_charset_map_from_vector)
334 (Fdefine_charset_internal): Likewise.
335 * cm.c (Wcm_clear): Likewise.
336 * coding.c (decode_eol, decode_coding_object)
337 (Fset_coding_system_priority, make_subsidiaries): Likewise.
338 * data.c (Faset): Likewise.
339 * dired.c (directory_files_internal, file_name_completion_stat):
340 Likewise.
341 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
342 (clear_glyph_row, copy_row_except_pointers)
343 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
344 (save_current_matrix, restore_current_matrix)
345 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
346 (mirror_line_dance, scrolling_window): Likewise.
347 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
348 Likewise.
349 * doprnt.c (doprnt): Likewise.
350 * editfns.c (Fuser_full_name, make_buffer_string_both)
351 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
352 * emacs.c (sort_args): Likewise.
353 * eval.c (Fapply, Ffuncall): Likewise.
354 * fileio.c (Ffile_name_directory, make_temp_name)
355 (Fexpand_file_name, search_embedded_absfilename)
356 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
357 (auto_save_error): Likewise.
358 * fns.c (Fstring_equal, Fcopy_sequence, concat)
359 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
360 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
361 (Fmake_hash_table): Likewise.
362 * fringe.c (Fdefine_fringe_bitmap): Likewise.
363 * ftfont.c (ftfont_text_extents): Likewise.
364 * getloadavg.c (getloadavg): Likewise.
365 * image.c (define_image_type, make_image, make_image_cache)
366 (x_create_x_image_and_pixmap, xbm_image_p)
367 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
368 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
369 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
370 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
371 (tiff_image_p, tiff_read_from_memory, gif_image_p)
372 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
373 Likewise.
374 * indent.c (scan_for_column, compute_motion): Likewise.
375 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
376 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
377 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
378 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
379 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
380 (store_user_signal_events, menu_bar_items, tool_bar_items)
381 (process_tool_bar_item, append_tool_bar_item)
382 (read_char_minibuf_menu_prompt, read_key_sequence)
383 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
384 Likewise.
385 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
386 Likewise.
387 * lisp.h (STRING_COPYIN): Likewise.
388 * lread.c (Fload, read1, oblookup): Likewise.
389 * msdos.c (Frecent_doskeys): Likewise.
390 * nsfns.m (Fx_create_frame): Likewise.
391 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
392 Likewise.
393 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
394 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
395 Likewise.
396 * nsmenu.m (ns_update_menubar): Likewise.
397 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
398 * print.c (print_unwind, printchar, strout, print_string)
399 (print_error_message): Likewise.
400 * process.c (conv_lisp_to_sockaddr, set_socket_option)
401 (Fmake_network_process, Fnetwork_interface_list)
402 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
403 (init_process): Likewise.
404 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
405 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
406 Likewise.
407 * scroll.c (do_scrolling, do_direct_scrolling)
408 (scrolling_max_lines_saved): Likewise.
409 * search.c (search_buffer, wordify, Freplace_match): Likewise.
410 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
411 * syntax.c (skip_chars, skip_syntaxes): Likewise.
412 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
413 (emacs_set_tty): Likewise.
414 * term.c (encode_terminal_code, calculate_costs)
415 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
416 Likewise.
417 * termcap.c (tgetst1, gobble_line): Likewise.
418 * termhooks.h (EVENT_INIT): Likewise.
419 * tparam.c (tparam1): Likewise.
420 * unexalpha.c (unexec): Likewise.
421 * unexec.c (write_segment): Likewise.
422 * unexmacosx.c (unexec_write_zero): Likewise.
423 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
424 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
425 * w32font.c (w32font_list_family, w32font_text_extents)
426 (w32font_list_internal, w32font_match_internal)
427 (w32font_open_internal, compute_metrics, Fx_select_font):
428 Likewise.
429 * w32menu.c (set_frame_menubar, add_menu_item)
430 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
431 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
432 * w32uniscribe.c (uniscribe_list_family): Likewise.
433 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
434 * window.c (make_window, replace_window, set_window_buffer)
435 (Fsplit_window): Likewise.
436 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
437 (add_to_log, message3, x_consider_frame_title)
438 (append_space_for_newline, extend_face_to_end_of_line)
439 (decode_mode_spec_coding, init_glyph_string): Likewise.
440 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
441 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
442 (face_attr_equal_p, make_realized_face, make_face_cache)
443 (free_realized_faces, lookup_named_face, smaller_face)
444 (face_with_height, lookup_derived_face)
445 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
446 (Finternal_set_font_selection_order, realize_default_face)
447 (compute_char_face, face_at_buffer_position)
448 (face_for_overlay_string, face_at_string_position, merge_faces):
449 Likewise.
450 * xfns.c (xic_create_fontsetname, Fx_create_frame)
451 (Fx_window_property, x_create_tip_frame)
452 (Fx_backspace_delete_keys_p): Likewise.
453 * xfont.c (xfont_list, xfont_match, xfont_list_family)
454 (xfont_text_extents): Likewise.
455 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
456 * xrdb.c (magic_file_p, x_get_resource): Likewise.
457 * xselect.c (x_queue_event, x_get_window_property)
458 (receive_incremental_selection): Likewise.
459 * xsmfns.c (x_session_check_input): Likewise.
460 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
461 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
462 Likewise.
463 * character.h (BCOPY_SHORT): Removed.
464 * config.in: Regenerate.
465 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
466 * emacs.c (main) [PROFILING]: Don't declare
467 dump_opcode_frequencies.
468 * lisp.h (safe_bcopy): Remove declaration.
469 (memset) [!HAVE_MEMSET]: Declare.
470 (memcpy) [!HAVE_MEMCPY]: Likewise.
471 (memmove) [!HAVE_MEMMOVE]: Likewise.
472 (memcmp) [!HAVE_MEMCMP]: Likewise.
473 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
474 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
475 Don't define.
476 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
477 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
478 (BCOPY_DOWNWARD_SAFE): Don't define.
479 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
480 (memcpy) [!HAVE_MEMCPY]: Define.
481 (memmove) [!HAVE_MEMMOVE]: Define.
482 (memcmp) [!HAVE_MEMCMP]: Define.
483
484 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
485
486 * process.c (kbd_is_on_hold): New variable.
487 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
488 functions.
489 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
490 select on empty input mask.
491 (init_process): Initialize kbd_is_on_hold to 0.
492
493 * process.h (hold_keyboard_input, unhold_keyboard_input)
494 (kbd_on_hold_p): Declare.
495
496 * keyboard.c (input_available_signal): Declare.
497 (kbd_buffer_nr_stored): New function.
498 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
499 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
500 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
501 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
502 (tty_read_avail_input): If input is on hold, return.
503 Don't read more that free slots in kbd_buffer (Bug#6571).
504
505 2010-07-07 Eli Zaretskii <eliz@gnu.org>
506
507 * msdos.h:
508 * msdos.c:
509 * dosfns.c:
510 * w16select.c: Convert function definitions to ANSI C.
511
512 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
513 unused prototypes.
514
515 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
516
517 * coding.c, sysdep.c: Convert some more functions to standard C.
518
519 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
520
521 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
522 (encode_coding_object): Use SPECPDL_INDEX.
523 (syms_of_coding): Use DOS_NT.
524
525 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
526
527 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
528
529 Make the function member of Lisp_Subr use standard C prototypes.
530 * lisp.h (struct Lisp_Subr): Use a union for the function member.
531 (DECL_ALIGN): Add a cast for the function.
532 * eval.c (Feval, Ffuncall): Use the proper type for each type
533 function call.
534
535 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
536
537 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
538 fringe face id, so face-remapping-alist works (Bug#6091).
539
540 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
541
542 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
543 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
544 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
545
546 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
547
548 * xterm.c (x_get_keysym_name): Change type of parameter to int.
549 * lisp.h: Declare x_get_keysym_name.
550 * keyboard.c (modify_event_symbol): Don't declare
551 x_get_keysym_name here.
552
553 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
554
555 * ecrt0.c: Revert conversion to standard C.
556
557 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
558
559 * vm-limit.c (memory_warnings):
560 * keyboard.c (modify_event_symbol):
561 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
562 (round2, emacs_rint):
563 * process.c (send_process, old_sigpipe): Convert function
564 definitions and declarations to standard C.
565
566 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
567
568 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
569 * xdisp.c: Convert function definitions to standard C.
570
571 * cm.c (cmputc): Arg C is now int, not char.
572 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
573
574 2010-07-05 James Cloos <cloos@jhcloos.com>
575
576 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
577
578 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
579 _NET_WM_ICON_NAME atoms.
580
581 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
582 and _NET_WM_ICON_NAME properties, too, matching what is
583 done in the Gtk+ case.
584
585 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
586
587 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
588
589 * xsmfns.c (SSDATA): New macro.
590 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
591 passed to strlen/strcpy/strcat.
592 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
593 7:th arg to XChangeProperty to (unsigned char *)
594
595 * xsettings.c (something_changedCB, parse_settings)
596 (apply_xft_settings): Reformat prototype.
597 (something_changedCB, init_gconf): Remove unused variable i.
598 (read_settings): Remove unused variable long_len.
599
600 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
601 (xg_get_image_for_pixmap, create_dialog)
602 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
603 (menuitem_highlight_callback, make_menu_item)
604 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
605 (xg_create_scroll_bar, xg_update_scrollbar_pos)
606 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
607 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
608 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
609 (xg_tool_bar_item_expose_callback): Reformat prototype.
610 (xg_update_menubar): GList *group => GSList *group.
611 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
612 before use.
613 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
614 to GTK_IMAGE (wimage).
615
616 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
617
618 * atimer.c: Use "" instead of <> for local includes for
619 consistency with the rest of the code.
620
621 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
622 * xrdb.c (get_system_name):
623 * window.c (shrink_windows):
624 * syntax.c (forw_comment):
625 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
626 (ins_del_costs):
627 * mem-limits.h (start_of_data):
628 * lread.c (readevalloop):
629 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
630 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
631 * frame.c (x_get_focus_frame):
632 * floatfns.c (fmod_float):
633 * fileio.c (choose_write_coding_system):
634 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
635 (malloc_initialize_hook, sort_args, synchronize_locale):
636 * doprnt.c (doprnt):
637 * dired.c (compile_pattern):
638 * data.c (fmod_float):
639 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
640 (map_char_table_for_charset):
641 * charset.c (define_charset_internal):
642 * alloc.c (Fgarbage_collect): Convert declarations or definitions
643 to standard C.
644
645 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
646 Stefan Monnier <monnier@iro.umontreal.ca>
647
648 * lread.c (read1): Fix up last change to not mess up `c'.
649
650 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
651
652 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
653
654 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
655
656 Fix prototypes.
657
658 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
659 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
660 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
661 arg, as required by internal_condition_case_1.
662 * print.c (strout): Use const char* for arg PTR.
663 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
664 (analyse_first): Fix "const const".
665 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
666 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
667 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
668
669 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
670
671 * alloc.c: Convert function definitions to standard C.
672 * atimer.c:
673 * bidi.c:
674 * bytecode.c:
675 * callint.c:
676 * callproc.c:
677 * casefiddle.c:
678 * casetab.c:
679 * category.c:
680 * ccl.c:
681 * character.c:
682 * charset.c:
683 * chartab.c:
684 * cmds.c:
685 * coding.c:
686 * composite.c:
687 * data.c:
688 * dbusbind.c:
689 * dired.c:
690 * dispnew.c:
691 * doc.c:
692 * doprnt.c:
693 * ecrt0.c:
694 * editfns.c:
695 * fileio.c:
696 * filelock.c:
697 * filemode.c:
698 * fns.c:
699 * font.c:
700 * fontset.c:
701 * frame.c:
702 * fringe.c:
703 * ftfont.c:
704 * ftxfont.c:
705 * gtkutil.c:
706 * indent.c:
707 * insdel.c:
708 * intervals.c:
709 * keymap.c:
710 * lread.c:
711 * macros.c:
712 * marker.c:
713 * md5.c:
714 * menu.c:
715 * minibuf.c:
716 * prefix-args.c:
717 * print.c:
718 * ralloc.c:
719 * regex.c:
720 * region-cache.c:
721 * scroll.c:
722 * search.c:
723 * sound.c:
724 * strftime.c:
725 * syntax.c:
726 * sysdep.c:
727 * termcap.c:
728 * terminal.c:
729 * terminfo.c:
730 * textprop.c:
731 * tparam.c:
732 * undo.c:
733 * unexelf.c:
734 * window.c:
735 * xfaces.c:
736 * xfns.c:
737 * xfont.c:
738 * xftfont.c:
739 * xgselect.c:
740 * xmenu.c:
741 * xrdb.c:
742 * xselect.c:
743 * xsettings.c:
744 * xsmfns.c:
745 * xterm.c: Likewise.
746
747 2010-07-03 Eli Zaretskii <eliz@gnu.org>
748
749 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
750 frames other than the initial one. Fix reversal of colors when
751 `reverse' is specified in the frame parameters. Call
752 update_face_from_frame_parameter instead of
753 internal-set-lisp-face-attribute. Initialize screen colors from
754 initial_screen_colors[] when f->default_face_done_p is zero,
755 instead of depending on being called with default-frame-alist as
756 the alist argument.
757
758 * xfaces.c (update_face_from_frame_parameter): Move out of
759 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
760 with HAVE_WINDOW_SYSTEM.
761
762 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
763 to menu-bar-mode, if not set in the frame parameters or in
764 default-frame-alist.
765
766 * w32console.c (sys_tputs): Adjust argument list to prototype in
767 term.c.
768
769 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
770
771 * lisp.h (memory_warnings): Fix prototype.
772
773 * cm.h (evalcost): Fix prototype.
774
775 * cm.c (evalcost): Fix arg type.
776
777 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
778
779 * term.c (term_clear_mouse_face, Fidentity):
780 * syssignal.h (signal_handler_t):
781 * lisp.h (memory_warnings):
782 * coding.h (preferred_coding_system):
783 * cm.h (evalcost):
784 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
785
786 2010-07-02 Eli Zaretskii <eliz@gnu.org>
787
788 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
789 from prototypes.
790
791 * msdos.h (load_pixmap): Don't define away.
792
793 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
794
795 * lisp.h:
796 * atimer.h: Remove define for P_.
797
798 * alloc.c: Remove __P and P_ from .c and .m files.
799 * atimer.c:
800 * buffer.c:
801 * callint.c:
802 * category.c:
803 * charset.c:
804 * chartab.c:
805 * cm.c:
806 * coding.c:
807 * composite.c:
808 * data.c:
809 * dired.c:
810 * dispnew.c:
811 * doc.c:
812 * editfns.c:
813 * emacs.c:
814 * eval.c:
815 * fileio.c:
816 * filelock.c:
817 * fns.c:
818 * font.c:
819 * fontset.c:
820 * frame.c:
821 * ftfont.c:
822 * ftxfont.c:
823 * gmalloc.c:
824 * gtkutil.c:
825 * image.c:
826 * indent.c:
827 * intervals.c:
828 * keyboard.c:
829 * keymap.c:
830 * lread.c:
831 * marker.c:
832 * menu.c:
833 * minibuf.c:
834 * print.c:
835 * process.c:
836 * scroll.c:
837 * search.c:
838 * sound.c:
839 * strftime.c:
840 * syntax.c:
841 * sysdep.c:
842 * term.c:
843 * terminal.c:
844 * textprop.c:
845 * unexalpha.c:
846 * w32console.c:
847 * w32fns.c:
848 * w32font.c:
849 * w32menu.c:
850 * w32term.c:
851 * w32uniscribe.c:
852 * window.c:
853 * xdisp.c:
854 * xfaces.c:
855 * xfns.c:
856 * xfont.c:
857 * xftfont.c:
858 * xmenu.c:
859 * xselect.c:
860 * xterm.c: Likewise.
861
862 Remove P_ and __P macros.
863 * atimer.h: Remove P_ and __P macros.
864 * buffer.h:
865 * category.h:
866 * ccl.h:
867 * character.h:
868 * charset.h:
869 * cm.h:
870 * coding.h:
871 * composite.h:
872 * dispextern.h:
873 * disptab.h:
874 * dosfns.h:
875 * font.h:
876 * fontset.h:
877 * frame.h:
878 * gtkutil.h:
879 * indent.h:
880 * intervals.h:
881 * keyboard.h:
882 * keymap.h:
883 * lisp.h:
884 * macros.h:
885 * md5.h:
886 * menu.h:
887 * msdos.h:
888 * nsterm.h:
889 * puresize.h:
890 * region-cache.h:
891 * syntax.h:
892 * syssignal.h:
893 * systime.h:
894 * termhooks.h:
895 * w32font.h:
896 * w32term.h:
897 * widget.h:
898 * window.h:
899 * xgselect.h:
900 * xsettings.h:
901 * xterm.h: Likewise.
902
903 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
904
905 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
906
907 Cleanup old code.
908 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
909 * syssignal.h: Remove code for Lynx, not supported anymore.
910 * vm-limit.c: Remove unused code the depends on emacs not being
911 defined and NO_LIM_DATA being defined.
912 * mem-limits.h: Remove dead code.
913
914 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
915
916 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
917
918 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
919 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
920
921 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
922 parameters, they are already absolute.
923
924 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
925 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
926
927 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
928
929 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
930 FRAME_TOOLBAR_HEIGHT.
931
932 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
933 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
934
935 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
936
937 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
938 check default-frame-alist.
939
940 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
941
942 * process.c (create_process): Avoid using invalid file descriptors.
943
944 * callproc.c (child_setup): Avoid closing a file descriptor twice.
945
946 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
947
948 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
949 Improve documentation. Return font regardless of use_system_font.
950 (syms_of_xsettings): Improve documentation for font-use-system-font.
951
952 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
953
954 * xfaces.c (realize_face): Garbage the frame if a face is removed
955 (Bug#6593).
956
957 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
958
959 * keyboard.c: Remove duplicate <setjmp.h>.
960 (read_key_sequence): Remove volatile qualifiers.
961
962 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
963
964 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
965 (struct glyph_row): New members left_fringe_offset and
966 right_fringe_offset.
967
968 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
969 specially.
970 * w32term.c (w32_draw_fringe_bitmap): Likewise.
971 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
972
973 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
974 Take account of bitmap offset.
975 (draw_window_fringes): Take account of window vscroll.
976 (update_window_fringes): Likewise. Extend top-aligned top indicator
977 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
978 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
979 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
980
981 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
982
983 * w32fns.c (Qtooltip): Declare.
984 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
985
986 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
987
988 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
989 grab on just Press (Bug#6499).
990
991 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
992
993 * frame.c (Qtooltip): New var.
994 (delete_frame): Use it. Fix faulty if statement. Don't update
995 mode line for tooltip frames. Suggested by Martin Rudalics.
996
997 * xfns.c (x_create_tip_frame):
998 * w32fns.c (x_create_tip_frame): Use it.
999
1000 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
1001
1002 * xftfont.c (xftfont_open): Check font width one by one also when
1003 spacing is dual.
1004
1005 * ftfont.c (ftfont_open): Ditto.
1006
1007 2010-06-30 Glenn Morris <rgm@gnu.org>
1008
1009 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1010
1011 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1012
1013 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1014 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1015 * s/darwin.h (SYSTEM_MALLOC):
1016 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1017
1018 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1019
1020 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1021 (ns_get_screen): Don't assign integer to f.
1022 (Fx_display_color_cells): Declarations before statements.
1023
1024 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1025
1026 * xfns.c (x_default_font_parameter): Remove got_from_system
1027 (Bug#6526).
1028
1029 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1030 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1031 defines based on what configure finds.
1032
1033 * xterm.c (XTflash): Use gtk_widget_get_window.
1034 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1035 gtk_adjustment_get_page_size.
1036 (handle_one_xevent): Use gtk_widget_get_mapped.
1037 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1038 messages.
1039
1040 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1041
1042 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1043 HAVE_GTK_FILE_SELECTION_NEW.
1044
1045 * gtkutil.c (xg_display_open, xg_display_close): Remove
1046 HAVE_GTK_MULTIDISPLAY, it is always defined.
1047 (xg_display_open): Return type is void.
1048 (gtk_widget_set_has_window)
1049 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1050 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1051 (gtk_adjustment_set_page_increment)
1052 (gtk_adjustment_get_step_increment): #define these if not found
1053 by configure.
1054 (remove_submenu): New define based on Gtk+ version.
1055 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1056 gtk_widget_get_window.
1057 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1058 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1059 (create_dialog): Use gtk_dialog_get_action_area and
1060 gtk_dialog_get_content_area.
1061 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1062 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1063 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1064 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1065 g_object_ref and g_object_unref.
1066 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1067 gtk_widget_get_sensitive.
1068 (xg_update_submenu): Use remove_submenu.
1069 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1070 properties instead to get old x and y position.
1071 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1072 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
1073 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
1074 (xg_get_tool_bar_widgets): New function.
1075 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1076 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1077 (toolbar_set_orientation): New #define based on if configure
1078 finds gtk_orientable_set_orientation.
1079 (xg_create_tool_bar): Call toolbar_set_orientation.
1080 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1081 instead of gtk_box_pack_start_defaults.
1082
1083 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
1084
1085 * cmds.c (Fdelete_backward_char): Move into Lisp.
1086
1087 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1088
1089 * s/freebsd.h (BSD4_2): Remove redundant definition.
1090 bsd-common.h defines it already.
1091
1092 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1095 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1096 tool-bar-mode, which are now set using these X resources at
1097 startup, to determine the defaults (Bug#2249).
1098
1099 * w32fns.c (Fx_create_frame):
1100 * nsfns.m (Fx_create_frame): Likewise.
1101
1102 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1103
1104 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
1105
1106 * gtkutil.c (xg_update_scrollbar_pos):
1107 Avoid C99 mid-block variable declaration.
1108
1109 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1110
1111 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1112
1113 * gtkutil.h (xg_show_scroll_bar): Remove.
1114
1115 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1116 if height is less than scroll bar min size.
1117 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1118
1119 * xfns.c (x_default_font_parameter): Try to open font from system
1120 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1121
1122 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1123
1124 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1125
1126 2010-06-20 Eli Zaretskii <eliz@gnu.org>
1127
1128 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1129 most-positive-fixnum, be extra accurate when scrolling window
1130 start, to avoid missing the cursor line.
1131
1132 2010-06-19 Eli Zaretskii <eliz@gnu.org>
1133
1134 * xdisp.c (try_scrolling): Compute the limit for searching point
1135 in forward scroll from scroll_max, instead of an arbitrary limit
1136 of 10 screen lines. See
1137 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1138 and
1139 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1140 for details.
1141
1142 2010-06-16 Glenn Morris <rgm@gnu.org>
1143
1144 * editfns.c (Fbyte_to_string): Pacify compiler.
1145
1146 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1147
1148 * lread.c (read1): Phase out old-style backquotes a bit more.
1149
1150 2010-06-12 Eli Zaretskii <eliz@gnu.org>
1151
1152 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1153 bidimirror.h.
1154
1155 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1156
1157 * bidi.c (bidi_initialize): Remove explicit initialization of
1158 bidi_type_table; include biditype.h instead. Don't support
1159 entries whose second codepoint is zero. Initialize bidi_mirror_table.
1160 (bidi_mirror_char): Use bidi_mirror_table.
1161
1162 * biditype.h: New file.
1163
1164 * bidimirror.h: New file.
1165
1166 * window.c (syms_of_window): Doc fix (bug#6409).
1167
1168 2010-06-12 Romain Francoise <romain@orebokech.com>
1169
1170 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1171 ediff-hook.
1172
1173 2010-06-10 Glenn Morris <rgm@gnu.org>
1174
1175 * editfns.c (Fbyte_to_string): Pacify compiler.
1176
1177 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1178
1179 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1180
1181 * alloc.c (Fmake_byte_code): Don't access undefined argument
1182 (Bug#6517).
1183
1184 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
1185
1186 * xdisp.c (next_element_from_image): Ensure that after-strings are
1187 read the next time we hit handle_stop (Bug#1336).
1188
1189 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1190
1191 * lread.c (read1): Signal error if #s is not followed by paren.
1192
1193 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
1194
1195 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1196
1197 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1198
1199 2010-06-15 Glenn Morris <rgm@gnu.org>
1200
1201 * editfns.c (Fbyte_to_string): Pacify compiler.
1202
1203 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1204
1205 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1206 Check `object's type before accessing its guts.
1207
1208 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1209
1210 * s/usg5-4.h: Fix previous change.
1211 Suggested by Lawrence Mitchell <wence@gmx.li>
1212
1213 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1214
1215 * minibuf.c (Fall_completions): Add more checks.
1216
1217 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
1218
1219 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1220
1221 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1222
1223 * lread.c (X_OK): Remove, unused.
1224
1225 * dispnew.c: Remove obsolete comment.
1226
1227 Remove INCLUDED_FCNTL.
1228 * xterm.c (INCLUDED_FCNTL):
1229 * callproc.c (INCLUDED_FCNTL):
1230 * alloc.c (INCLUDED_FCNTL):
1231 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1232 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1233
1234 2010-06-07 Martin Rudalics <rudalics@gmx.at>
1235
1236 * window.c (Fselect_window): Move `record_buffer' up to the
1237 beginning of this function, so the buffer gets recorded
1238 even if the selected window does not change.
1239 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1240
1241 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
1242
1243 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1244 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1245
1246 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1247
1248 Remove BSTRING related code, all platforms define it.
1249 * s/usg5-4.h (BSTRING): Remove definition.
1250 * s/template.h (BSTRING):
1251 * s/msdos.h (BSTRING):
1252 * s/ms-w32.h (BSTRING):
1253 * s/hpux10-20.h (BSTRING):
1254 * s/gnu-linux.h (BSTRING):
1255 * s/darwin.h (BSTRING):
1256 * s/cygwin.h (BSTRING):
1257 * s/bsd-common.h (BSTRING):
1258 * s/aix4-2.h (BSTRING): Likewise.
1259 * sysdep.c: Remove code depending on BSTRING not being defined.
1260
1261 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
1262
1263 Remove obsolete macro BASE_LEADING_CODE_P.
1264 * character.h (BASE_LEADING_CODE_P): Remove.
1265 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1266 * buffer.c (Fset_buffer_multibyte):
1267 * indent.c (scan_for_column, compute_motion):
1268 * insdel.c (count_combining_before, count_combining_after):
1269 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1270
1271 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
1272
1273 Turn `directory-sep-char' into a noop.
1274
1275 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1276 (DIRECTORY_SEP): Define unconditionally.
1277
1278 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1279
1280 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1281 call dostounix_filename directly.
1282
1283 * fileio.c (CORRECT_DIR_SEPS): Remove.
1284 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1285 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1286 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1287 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1288
1289 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1290 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1291
1292 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1293
1294 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
1295 address. (Bug#6346)
1296
1297 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
1298
1299 * ccl.c (Fccl_program_p): Fix typo in docstring.
1300
1301 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1302
1303 Move UNEXEC definition to autoconf.
1304 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1305 * s/sol2-10.h (UNEXEC):
1306 * s/irix6-5.h (UNEXEC):
1307 * s/hpux10-20.h (UNEXEC):
1308 * s/gnu-linux.h (UNEXEC):
1309 * s/darwin.h (UNEXEC):
1310 * s/cygwin.h (UNEXEC):
1311 * s/bsd-common.h (UNEXEC):
1312 * s/aix4-2.h (UNEXEC):
1313 * m/alpha.h (UNEXEC): Likewise.
1314 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1315
1316 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
1317
1318 Remove obsolete pre-unicode2 macros.
1319 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1320 * composite.c (composition_reseat_it):
1321 * data.c (Faset):
1322 * fns.c (Ffillarray):
1323 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1324 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1325
1326 2010-06-03 Juri Linkov <juri@jurta.org>
1327
1328 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1329 (Fswitch_to_buffer): Remove unused variable `err'.
1330
1331 2010-06-03 Glenn Morris <rgm@gnu.org>
1332
1333 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1334
1335 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1336 now that AH_BOTTOM does it.
1337
1338 * m/hp800.h (HAVE_ALLOCA):
1339 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1340
1341 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1342 Remove NOT_C_CODE tests, it is always true now.
1343
1344 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1345
1346 Fix config.h includes.
1347 * xsettings.c:
1348 * xgselect.c:
1349 * nsterm.m:
1350 * nsselect.m:
1351 * nsimage.m:
1352 * nsfont.m:
1353 * nsfns.m:
1354 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1355 other files do.
1356
1357 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1358
1359 * s/sol2-6.h: Remove obsolete comments.
1360
1361 Remove unnecessary alloca.h includes.
1362 * keymap.c: Do not include alloca.h, config.h does that.
1363 * sysdep.c: Likewise. Do not define fwrite, not used.
1364
1365 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1366
1367 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1368 the HAVE_TERMIO where it belongs (bug#6149).
1369
1370 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1371
1372 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1373 of bug#6305).
1374
1375 2010-05-30 Eli Zaretskii <eliz@gnu.org>
1376
1377 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1378 state is always cached (bug#6306).
1379
1380 2010-05-29 Eli Zaretskii <eliz@gnu.org>
1381
1382 Fix cursor motion in bidi-reordered continued lines.
1383 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1384 only after finding point's row. Fix the logic. Rewrite the loop
1385 over continuation lines in bidi-reordered buffers. Return
1386 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1387 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1388
1389 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
1390
1391 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1392
1393 2010-05-28 Kenichi Handa <handa@m17n.org>
1394
1395 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1396 Don't sheck SPEC if it is nil.
1397 (font_list_entities): Call font_delete_unmatched if
1398 Vface_ignored_fonts is non-nil. (Bug#6287)
1399
1400 2010-05-28 Glenn Morris <rgm@gnu.org>
1401
1402 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1403
1404 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1405
1406 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1407 whether to trash.
1408 (internal_delete_file, Frename_file): Callers changed.
1409 (delete_by_moving_to_trash): Doc fix.
1410 (Fdelete_directory_internal): Don't move to trash.
1411
1412 * callproc.c (delete_temp_file):
1413 * buffer.c (Fkill_buffer): Callers changed.
1414
1415 * lisp.h: Update prototype.
1416
1417 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1418
1419 * xdisp.c (redisplay_window): After redisplay, check if point is
1420 still valid before setting it (Bug#6177).
1421
1422 2010-05-27 Glenn Morris <rgm@gnu.org>
1423
1424 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1425 Convert comments to Makefile format.
1426
1427 * Makefile.in (bootstrap-clean): No more Makefile.c.
1428
1429 2010-05-26 Glenn Morris <rgm@gnu.org>
1430
1431 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1432 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1433
1434 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1435 Remove.
1436 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1437
1438 2010-05-26 Kenichi Handa <handa@m17n.org>
1439
1440 * composite.c (composition_compute_stop_pos): Fix condition for
1441 backward scanning.
1442
1443 2010-05-25 Glenn Morris <rgm@gnu.org>
1444
1445 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1446 Move before TEMACS_LDFLAGS.
1447 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1448 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1449
1450 * Makefile.in (NOT_C_CODE): No longer define.
1451 (config.h): No longer include.
1452
1453 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1454 variables it may reference.
1455
1456 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1457 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1458
1459 2010-05-25 Kenichi Handa <handa@m17n.org>
1460
1461 * dispextern.h (struct composition_it): New members rule_idx and
1462 charpos.
1463
1464 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1465 that the character positions of IT point the last character of the
1466 current grapheme cluster.
1467 (next_element_from_composition): Don't change character positions
1468 of IT.
1469 (append_composite_glyph): Set glyph->charpos to
1470 it->cmp_it.charpos.
1471
1472 * composite.c (autocmp_chars): Change the first argument to RULE,
1473 and try composition with RULE only.
1474 (composition_compute_stop_pos): Record the index number of the
1475 composition rule in CMP_IT->rule_idx.
1476 (composition_reseat_it): Call autocmp_chars repeatedly until the
1477 correct rule of the composition is found.
1478 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1479 is at the last character of the current grapheme cluster when
1480 CMP_IT->reversed_p is nonzero.
1481
1482 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1483
1484 * editfns.c (Fbyte_to_string): New function.
1485
1486 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1487
1488 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1489 Suggested by Masatake YAMATO <yamato@redhat.com>.
1490
1491 2010-05-23 Eli Zaretskii <eliz@gnu.org>
1492
1493 * dispextern.h (init_iterator): Sync prototype with changed definition.
1494
1495 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1496
1497 * s/netbsd.h: If terminfo is found, use it in preference to
1498 termcap. (Bug#6190) [Backport from trunk]
1499
1500 2010-05-19 Eli Zaretskii <eliz@gnu.org>
1501
1502 Redesign and reimplement bidi-aware edge positions of glyph rows.
1503
1504 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1505 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1506 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1507 and maxpos members instead of start.pos and end.pos, respectively.
1508
1509 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1510 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1511 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
1512 (try_window_reusing_current_matrix, try_window_id):
1513 Use ROW->minpos rather than ROW->start.pos.
1514 (init_from_display_pos, init_iterator): Use EMACS_INT for
1515 character and byte positions.
1516 (find_row_edges): Rename from find_row_end. Accept additional
1517 arguments for minimum and maximum buffer positions seen by
1518 display_line for this row. Don't use iterator to find the
1519 position following the maximum one; instead, increment the
1520 position found by display_line directly. Fix logic; eol_pos
1521 should be tested before the rest. Handle the case of characters
1522 delivered from display vector (bug#6036). Fix tests related to
1523 it->method. Handle the truncated_on_right_p rows.
1524 (RECORD_MAX_MIN_POS): New macro.
1525 (display_line): Use it to record the minimum and maximum buffer
1526 positions for glyphs in the row being assembled. Record the
1527 position of the newline that terminates the line. If word wrap is
1528 in effect, restore minimum and maximum positions seen up to the
1529 wrap point, when iterator returns to it.
1530 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1531 row and cursor not already at point. Restore original pre-bidi
1532 code for unidirectional buffers.
1533
1534 * dispnew.c (increment_row_positions, check_matrix_invariants):
1535 Increment and check row->start.pos and row->end.pos, in addition
1536 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1537
1538 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1539 Display truncated_on_left_p and truncated_on_right_p flags.
1540 Formatting fixes.
1541 (pmtxrows): Display the ordinal number of each row. Don't display
1542 rows beyond the last one.
1543
1544 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1545 it is not copied by bidi_copy_it.
1546
1547 2010-05-22 Eli Zaretskii <eliz@gnu.org>
1548
1549 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1550 (Bug#6237)
1551
1552 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
1553
1554 * image.c (Fimage_flush): Rename from image-refresh.
1555
1556 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
1557
1558 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1559 just one window.
1560
1561 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1562 (clear_image_cache): If the number of cached images is unusually
1563 large, decrease the cache eviction delay (Bug#6230).
1564
1565 2010-05-21 Glenn Morris <rgm@gnu.org>
1566
1567 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1568 Move these rules to ns.mk.
1569 * ns.mk: New file.
1570
1571 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1572
1573 * Makefile.in (CANNOT_DUMP): New, set by configure.
1574 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1575
1576 2010-05-20 Juri Linkov <juri@jurta.org>
1577
1578 * fileio.c (Fdelete_file): Change interative spec to use
1579 `read-file-name' like in `find-file-read-args' where the default
1580 value is `default-directory' instead of `buffer-file-name'.
1581 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1582
1583 2010-05-20 Kevin Ryde <user42@zip.com.au>
1584
1585 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1586 (Voverriding_terminal_local_map, Vsystem_key_alist)
1587 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1588
1589 2010-05-20 Glenn Morris <rgm@gnu.org>
1590
1591 * Makefile.in (DEPDIR): New constant.
1592 (DEPFLAGS): Set with configure, not cpp.
1593 (MKDEPDIR): New, set by configure.
1594 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1595 (clean): Use $DEPDIR.
1596 (deps_frag): Include from configure.
1597 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1598 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1599
1600 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1601 reallocation of the cache. (Bug#6210)
1602
1603 2010-05-19 Glenn Morris <rgm@gnu.org>
1604
1605 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1606
1607 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1608 (GNULIB_VAR): Remove.
1609 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1610
1611 * m/ibms390x.h (LINKER):
1612 * m/macppc.h (LINKER) [GNU_LINUX]:
1613 * s/aix4-2.h (ORDINARY_LINK):
1614 * s/cygwin.h (LINKER):
1615 * s/darwin.h (ORDINARY_LINK):
1616 * s/gnu.h (ORDINARY_LINK):
1617 * s/netbsd.h (LINKER):
1618 * s/usg5-4.h (ORDINARY_LINK):
1619 Move to configure.
1620
1621 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1622
1623 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
1624
1625 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1626 prevent stack overflow if number of arguments is too large
1627 (Bug#6214).
1628
1629 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
1630
1631 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1632
1633 2010-05-18 Glenn Morris <rgm@gnu.org>
1634
1635 * s/gnu-linux.h: Combine two conditionals.
1636
1637 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
1638 $(POST_ALLOC_OBJ).
1639
1640 * Makefile.in (RALLOC_OBJ): New, set by configure.
1641 (rallocobj): Replace with the previous variable.
1642 (otherobj): Use $RALLOC_OBJ.
1643
1644 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1645 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1646
1647 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1648 (gmallocobj, vmlimitobj): Replace with previous two variables.
1649 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1650
1651 2010-05-17 Glenn Morris <rgm@gnu.org>
1652
1653 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1654 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1655
1656 2010-05-16 Glenn Morris <rgm@gnu.org>
1657
1658 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1659
1660 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1661
1662 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1663 trailing "/".
1664
1665 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1666 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1667
1668 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1669 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1670 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1671 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1672 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1673
1674 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1675 Remove ${STARTFLAGS}, nothing ever sets it.
1676
1677 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1678
1679 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1680
1681 2010-05-16 Glenn Morris <rgm@gnu.org>
1682
1683 * Makefile.in (LIBX_BASE): Always define.
1684
1685 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1686
1687 * Makefile.in (LIBXT): Always define.
1688
1689 2010-05-15 Glenn Morris <rgm@gnu.org>
1690
1691 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
1692
1693 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1694 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1695
1696 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
1697
1698 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
1699 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1700
1701 * emacs.c (main): Initialize initial-environment and
1702 process-environment before generating from env, not after.
1703
1704 Handle --version reasonably in CANNOT_DUMP configuration.
1705 * emacs.c (emacs_version, emacs_copyright): New string variables.
1706 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1707 (syms_of_emacs): Defvar them, and initialize them from the C
1708 string variables.
1709 (main): If initialization hasn't been done, print initial version
1710 info from the C strings, instead of starting an interactive session.
1711
1712 2010-05-15 Eli Zaretskii <eliz@gnu.org>
1713
1714 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1715 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
1716 (bidi_paragraph_init): Remove redundant assertion that we are at
1717 the beginning of a line after call to bidi_find_paragraph_start.
1718
1719 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1720 (syms_of_xdisp): Defsubr it.
1721
1722 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1723
1724 * Makefile.in: Fix MSDOS-related comments.
1725
1726 2010-05-15 Glenn Morris <rgm@gnu.org>
1727
1728 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1729 (really-lwlib, really-oldXMenu): Always define.
1730 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1731
1732 * Makefile.in: Simplify cpp conditional.
1733
1734 * Makefile.in (${ns_appdir}): Simplify using umask.
1735
1736 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1737
1738 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1739
1740 * eval.c (specbind): Remove left-over duplicate test.
1741 Disallow let-binding frame-local vars. Add comment.
1742
1743 2010-05-14 Eli Zaretskii <eliz@gnu.org>
1744
1745 Make the cache of bidi iterator states dynamically allocated.
1746 * bidi.c (bidi_cache_shrink): New function.
1747 (bidi_init_it): Call it.
1748 (bidi_cache_iterator_state): Enlarge the cache if needed.
1749
1750 * bidi.c (bidi_move_to_visually_next): Rename from
1751 bidi_get_next_char_visually. All callers changed.
1752
1753 2010-05-14 Kenichi Handa <handa@m17n.org>
1754
1755 * dispextern.h (struct composition_it): New member reversed_p.
1756
1757 * composite.c (composition_compute_stop_pos): Search backward if
1758 ENDPOS < CHARPOS.
1759 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1760 Set CMP_IT->reversed_p.
1761 (composition_update_it): Pay attention to CMP_IT->reversed_p.
1762
1763 * xdisp.c (set_iterator_to_next):
1764 Call composition_compute_stop_pos with negative ENDPOS if we are
1765 scanning backward. Call composition_compute_stop_pos if scan
1766 direction is changed.
1767 (next_element_from_buffer): Call composition_compute_stop_pos with
1768 negative ENDPOS if we are scanning backward.
1769 (next_element_from_composition): Pay attention to
1770 IT->cmp_it.reversed_p.
1771
1772 2010-05-14 Kenichi Handa <handa@m17n.org>
1773
1774 * font.c (font_range): Return the range for the font found at first.
1775
1776 2010-05-14 Glenn Morris <rgm@gnu.org>
1777
1778 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1779
1780 * Makefile.in (mktime, X11, register): Move undefs to configure.
1781
1782 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1783 (MSDOS_X_OBJ): New variable.
1784 (MSDOS_SUPPORT_REAL): New constant.
1785 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1786 (obj): Use MSDOS_X_OBJ.
1787 (lisp): Use MSDOS_SUPPORT as a variable.
1788
1789 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1790 (GPM_MOUSE_SUPPORT): Now it's a constant.
1791 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1792 not cpp.
1793
1794 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
1795 (ns_appresdir): Remove, unused.
1796
1797 * Makefile.in (SHELL): Move outside cpp section.
1798
1799 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1800
1801 2010-05-13 Glenn Morris <rgm@gnu.org>
1802
1803 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1804 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1805
1806 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1807 HAVE_WINDOW_SYSTEM must be too.
1808
1809 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1810 (lisp): Remove WINNT_SUPPORT.
1811
1812 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1813 Let configure set these variables (to empty) in this case as well.
1814
1815 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1816 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1817
1818 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1819 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1820 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1821 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1822 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
1823 the values output by configure.
1824 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1825
1826 2010-05-12 Glenn Morris <rgm@gnu.org>
1827
1828 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1829 (LINKER_WAS_SPECIFIED): Remove.
1830
1831 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1832 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1833 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1834 * s/cygwin.h (LIB_GCC):
1835 * s/freebsd.h (LIB_GCC):
1836 * s/gnu-linux.h (LIB_GCC):
1837 * s/msdos.h (LIB_GCC):
1838 * s/netbsd.h (LIB_GCC):
1839 Move to configure.
1840
1841 2010-05-11 Karel Klic <kklic@redhat.com>
1842
1843 * ftfont.c: Fix incorrect parentheses of #if condition for
1844 definining M17N_FLT_USE_NEW_FEATURE.
1845
1846 2010-05-11 Glenn Morris <rgm@gnu.org>
1847
1848 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1849 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1850
1851 2010-05-10 Eli Zaretskii <eliz@gnu.org>
1852
1853 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1854 unibyte buffers. See
1855 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1856
1857 2010-05-10 Glenn Morris <rgm@gnu.org>
1858
1859 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1860 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1861 (LIBES): Use LIBS_SYSTEM as a variable.
1862 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1863 * s/aix4-2.h (LIBS_SYSTEM):
1864 * s/freebsd.h (LIBS_SYSTEM):
1865 * s/hpux10-20.h (LIBS_SYSTEM):
1866 * s/sol2-6.h (LIBS_SYSTEM):
1867 * s/unixware.h (LIBS_SYSTEM):
1868 Move to configure.
1869
1870 * s/aix4-2.h (MAIL_USE_LOCKF):
1871 * s/bsd-common.h (MAIL_USE_FLOCK):
1872 * s/darwin.h (MAIL_USE_FLOCK):
1873 * s/gnu-linux.h (MAIL_USE_FLOCK):
1874 * s/irix6-5.h (MAIL_USE_FLOCK):
1875 * s/template.h (MAIL_USE_FLOCK):
1876 Move to configure.
1877
1878 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
1879
1880 * Version 23.2 released.
1881
1882 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
1883
1884 * composite.c (autocmp_chars): Save point as marker before calling
1885 auto-composition-function (Bug#5984).
1886
1887 * lisp.h (restore_point_unwind): Add prototype.
1888
1889 * fileio.c (restore_point_unwind): Remove static attribute.
1890
1891 2010-05-08 Kenichi Handa <handa@m17n.org>
1892
1893 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1894 new feature of libotf and m17n-flt.
1895 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1896 Call OTF_check_features even if no specific feature is given.
1897 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1898 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1899 that OUT is NULL. Use OTF_drive_gsub_with_log and
1900 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1901 OTF_drive_gpos.
1902 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
1903 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1904 Setup mflt_enable_new_feature and mflt_try_otf.
1905
1906 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1907
1908 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1909
1910 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1911 box and toolbar (Bug #6139).
1912 (xg_create_tool_bar): Remove comment (Bug #6139).
1913 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1914 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1915
1916 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
1917
1918 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1919 Update dependencies.
1920
1921 2010-05-08 Eli Zaretskii <eliz@gnu.org>
1922
1923 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1924 R2L lines.
1925
1926 2010-05-08 Glenn Morris <rgm@gnu.org>
1927
1928 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1929
1930 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1931 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1932 (termcapobj): Replace with TERMCAP_OBJ.
1933 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1934 (LIBES): Use LIBS_TERMCAP as a variable.
1935
1936 * s/freebsd.h (osreldate.h): No longer include, since this file
1937 does not use __FreeBSD_version any more.
1938
1939 * s/aix4-2.h (TERMINFO):
1940 * s/cygwin.h (TERMINFO):
1941 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1942 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1943 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1944 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1945 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1946 * s/irix6-5.h (TERMINFO):
1947 * s/netbsd.h (LIBS_TERMCAP):
1948 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1949 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1950 * s/usg5-4.h (TERMINFO):
1951 Move to configure.
1952
1953 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1954
1955 * eval.c (unbind_to): Don't unbind a local binding into the global
1956 binding when the local binding disappeared. Inversely, don't unbind
1957 a global binding into a newly created local binding.
1958 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1959 can specify the frame to use, when applicable. Adjust callers.
1960
1961 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
1962 Stefan Monnier <monnier@iro.umontreal.ca>
1963
1964 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1965
1966 2010-05-07 Eli Zaretskii <eliz@gnu.org>
1967
1968 * w32fns.c: Include w32.h.
1969 (Fw32_shell_execute): Decode the error message before passing it
1970 to `error'. (Bug#6126)
1971
1972 * msdos.c (dos_set_window_size):
1973 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1974 instead of `XSYMBOL (foo)->value'.
1975
1976 2010-05-07 Eli Zaretskii <eliz@gnu.org>
1977
1978 Fix the MS-DOS build, broken by autoconfiscation.
1979
1980 * Makefile.in: Don't use Make-style comments past the "start of
1981 cpp stuff" line.
1982 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1983
1984 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1985 edited directly by msdos/sed1v2.inp).
1986
1987 2010-05-07 Glenn Morris <rgm@gnu.org>
1988
1989 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1990 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1991 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1992 move out of cpp section.
1993 * s/freebsd.h (LD_SWITCH_SYSTEM):
1994 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1995 * s/netbsd.h (LD_SWITCH_SYSTEM):
1996 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1997
1998 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1999
2000 Define LIB_STANDARD and START_FILES using autoconf.
2001 * s/usg5-4.h (LIB_STANDARD):
2002 * s/netbsd.h (START_FILES):
2003 * s/irix6-5.h (LIB_STANDARD):
2004 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2005 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2006 * s/freebsd.h (START_FILES):
2007 * s/darwin.h (START_FILES):
2008 * s/cygwin.h (START_FILES):
2009 * s/aix4-2.h (LIB_STANDARD):
2010 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2011 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2012 autoconf, not cpp.
2013
2014 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2015
2016 Remove NEED_BSDTTY and NEED_UNISTD_H.
2017 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2018 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2019 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2020 <sys/ptyio.h> and <unistd.h>.
2021
2022 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2023
2024 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2025 * s/gnu.h (START_FILES): Remove empty definition.
2026
2027 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2028
2029 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2030
2031 2010-05-06 Glenn Morris <rgm@gnu.org>
2032
2033 * Makefile.in (CPP, LN_S): Remove unused variables.
2034
2035 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2036
2037 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2038
2039 2010-05-05 Lawrence Mitchell <wence@gmx.li>
2040
2041 * m/sparc.h: Fix typo in earlier change.
2042
2043 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2044
2045 Misc tweaks.
2046 * eval.c (Fdefvaralias): Remove unintended nested if.
2047 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2048
2049 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
2050
2051 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2052
2053 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2054
2055 Remove BSD_PGRPS.
2056 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2057 * s/gnu-linux.h (BSD_PGRPS): Remove.
2058 * term.c (dissociate_if_controlling_tty):
2059 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2060 (init_sys_modes, reset_sys_modes):
2061 * emacs.c (main):
2062 * callproc.c (Fcall_process, child_setup): Remove code depending
2063 on BSD_PGRPS.
2064
2065 Remove POSIX_SIGNALS.
2066 * s/usg5-4.h (POSIX_SIGNALS):
2067 * s/netbsd.h (POSIX_SIGNALS):
2068 * s/msdos.h (POSIX_SIGNALS):
2069 * s/ms-w32.h (POSIX_SIGNALS):
2070 * s/hpux11.h (POSIX_SIGNALS):
2071 * s/gnu.h (POSIX_SIGNALS):
2072 * s/gnu-linux.h (POSIX_SIGNALS):
2073 * s/freebsd.h (POSIX_SIGNALS):
2074 * s/darwin.h (POSIX_SIGNALS):
2075 * s/cygwin.h (POSIX_SIGNALS):
2076 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2077 * s/unixware.h:
2078 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2079 * process.c (create_process):
2080 * syssignal.h:
2081 * sysdep.c (wait_for_termination, init_signals):
2082 * process.c (create_process):
2083 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2084 remove all code that assumes the contrary.
2085
2086 2010-05-04 Glenn Morris <rgm@gnu.org>
2087
2088 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2089 variable.
2090 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2091 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2092 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2093 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2094 LD_SWITCH_SYSTEM_tmp.
2095 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2096 New variables, set by configure.
2097
2098 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2099 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2100 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2101 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2102 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2103
2104 * s/aix4-2.h (C_SWITCH_SYSTEM):
2105 * m/alpha.h (C_SWITCH_MACHINE):
2106 Move to configure.in.
2107 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2108 New variables, set by configure.
2109 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2110 $c_switch_machine and $c_switch_system.
2111
2112 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2113
2114 * s/hpux10-20.h (LIB_STANDARD): New definition.
2115 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2116 on it, not used anymore.
2117
2118 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
2119
2120 * eval.c (internal_condition_case_n): Rename from
2121 internal_condition_case_2.
2122 (internal_condition_case_2): New function.
2123
2124 * xdisp.c (safe_call): Use internal_condition_case_n.
2125
2126 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2127 (internal_delete_file, Frename_file): Callers changed.
2128
2129 * buffer.c (Fkill_buffer):
2130 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2131
2132 * lisp.h: Update prototypes.
2133
2134 2010-05-03 Glenn Morris <rgm@gnu.org>
2135
2136 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2137 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2138 (LIBXT): Set with configure, not cpp.
2139 (LIBX): Remove.
2140 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2141
2142 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2143
2144 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2145 The FreeBSD is not needed, the default works, Solaris version is
2146 not needed, and the remaining case is not supported by configure.
2147
2148 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2149
2150 * xsmfns.c (CHDIR_OPT): New define.
2151 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2152 restarting emacs.
2153
2154 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2155 shut_down_emacs.
2156
2157 * emacs.c (USAGE1): Mention --chdir.
2158 (main): Handle --chdir.
2159 (standard_args): Add --chdir.
2160 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2161 #5552).
2162
2163 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2164
2165 Remove LD_SWITCH_MACHINE.
2166 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2167 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2168
2169 Clean up IRIX code.
2170 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2171 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2172
2173 Clean up AIX code.
2174 * m/ibmrs6000.inp: Remove file, unused.
2175 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2176 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2177 definition ...
2178 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2179
2180 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2181 unused.
2182
2183 2010-05-01 Eli Zaretskii <eliz@gnu.org>
2184
2185 Emulate POSIX_SIGNALS on MS-Windows.
2186
2187 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2188 (SIG_SETMASK, SIG_UNBLOCK): Define.
2189
2190 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2191 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2192 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2193
2194 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2195 New stubs.
2196
2197 Miscellaneous fixes of bidi display.
2198
2199 * xdisp.c (find_row_end): New function, refactored from display_line.
2200 (display_line): Use it.
2201 (extend_face_to_end_of_line): In almost-filled rows, extend only
2202 if the row is R2L and not continued.
2203 (display_line): Fix prepending of truncation glyphs to R2L rows.
2204 Preserve overlay and string info in row->end.
2205 (insert_left_trunc_glyphs): Support addition of left truncation
2206 glyphs to R2L rows.
2207 (set_cursor_from_row): Don't place cursor on the vertical border
2208 glyph between adjacent windows. Fix a crash when a display string
2209 is continued to the next line. Don't return zero if cursor was
2210 found by `cursor' property of a display string.
2211 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2212 test for that explicitly.
2213
2214 2010-05-01 Glenn Morris <rgm@gnu.org>
2215
2216 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2217 for clarity.
2218 (OTHER_OBJ): Remove.
2219 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2220 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2221
2222 2010-05-01 Karel Klíč <kklic@redhat.com>
2223
2224 * fileio.c (Ffile_selinux_context): Context functions may return null.
2225
2226 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2227
2228 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
2229
2230 2010-04-30 Glenn Morris <rgm@gnu.org>
2231
2232 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2233 (OTHER_OBJ): Define as a separate variable, for clarity.
2234
2235 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2236
2237 * xsettings.c: include limits.h and update file comment.
2238
2239 2010-04-30 Glenn Morris <rgm@gnu.org>
2240
2241 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2242 Set with configure, not cpp.
2243 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2244
2245 * Makefile.in (mallocobj): Remove.
2246 (otherobj): Simplify using @OTHER_OBJ@.
2247
2248 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2249 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2250 Don't bother making nsgui.h dependency platform-specific.
2251
2252 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2253
2254 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2255
2256 * process.c (read_process_output, exec_sentinel): Don't burp if the
2257 sentinel/filter kills the current buffer (bug#6060).
2258
2259 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
2260 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2261 Remove unused var `args'.
2262 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2263 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2264 * doc.c (store_function_docstring): Use XSETCAR.
2265
2266 2010-04-28 Glenn Morris <rgm@gnu.org>
2267
2268 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2269 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2270
2271 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2272
2273 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2274 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2275
2276 * Makefile.in (FONT_OBJ): New, set by configure.
2277 (FONT_DRIVERS): Use $FONT_OBJ.
2278
2279 * Makefile.in (LIBXMU): Set with configure, not cpp.
2280 * s/aix4-2.h (LIBXMU):
2281 * s/hpux10-20.h (LIBXMU):
2282 Remove definition, now set in configure.
2283
2284 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2285
2286 * m/amdx86-64.h [i386]: Move this test to configure.in.
2287
2288 2010-04-27 Glenn Morris <rgm@gnu.org>
2289
2290 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2291 * s/unixware.h (NEED_LIBW): Remove definition.
2292
2293 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2294 (TOOLKIT_LIBW): New, set by configure.
2295 (@X_TOOLKIT_TYPE@): No longer define it.
2296
2297 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2298 (MOTIF_LIBW): Set with configure, not cpp.
2299 * s/aix4-2.h (LIB_MOTIF):
2300 * s/gnu-linux.h (LIB_MOTIF):
2301 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2302
2303 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2304
2305 Reduce CPP usage.
2306 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2307 (obj): Use autoconf for unexec instead of cpp.
2308 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2309 definitions and undefs. Inline definitions in the only user.
2310 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
2311
2312 2010-04-27 Glenn Morris <rgm@gnu.org>
2313
2314 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2315 since the defaults (set by the system file) are fine in most cases.
2316 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2317 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2318 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2319 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2320 Remove definitions, since they are set correctly in s/gnu-linux.h.
2321 * s/freebsd.h (START_FILES, LIB_STANDARD):
2322 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2323 * s/hpux10-20.h (START_FILES):
2324 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2325 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2326
2327 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2328 (MOTIF_LIBW): Use $LIBXP.
2329 (otherobj): Use $WIDGET_OBJ.
2330
2331 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2332
2333 * Makefile.in (LIBS_MACHINE): Remove, unused.
2334
2335 Use autoconf instead of cpp for LIB_MATH.
2336 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2337 * s/cygwin.h (LIB_MATH): Likewise.
2338 * Makefile.in (LIB_MATH): Do not define with cpp.
2339 (LIBES): Use autoconf for LIB_MATH.
2340
2341 2010-04-26 Kenichi Handa <handa@m17n.org>
2342
2343 * composite.c (Ffind_composition_internal): Fix the return value
2344 for an automatic composition.
2345
2346 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2347
2348 Remove all NO_ARG_ARRAY uses.
2349 * fns.c (concat2, concat3, nconc2):
2350 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2351 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2352 * m/xtensa.h (NO_ARG_ARRAY):
2353 * m/template.h (NO_ARG_ARRAY):
2354 * m/sparc.h (NO_ARG_ARRAY):
2355 * m/sh3.h (NO_ARG_ARRAY):
2356 * m/mips.h (NO_ARG_ARRAY):
2357 * m/macppc.h (NO_ARG_ARRAY):
2358 * m/iris4d.h (NO_ARG_ARRAY):
2359 * m/intel386.h (NO_ARG_ARRAY):
2360 * m/ibms390x.h (NO_ARG_ARRAY):
2361 * m/ibms390.h (NO_ARG_ARRAY):
2362 * m/ibmrs6000.h (NO_ARG_ARRAY):
2363 * m/ia64.h (NO_ARG_ARRAY):
2364 * m/hp800.h (NO_ARG_ARRAY):
2365 * m/arm.h (NO_ARG_ARRAY):
2366 * m/amdx86-64.h (NO_ARG_ARRAY):
2367 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2368
2369 2010-04-25 Eli Zaretskii <eliz@gnu.org>
2370
2371 * xdisp.c (display_line): Don't assume 2nd call to
2372 get_next_display_element cannot return zero. (Bug#6030)
2373 (iterate_out_of_display_property): New function, body from pop_it.
2374 (pop_it): Use it.
2375
2376 2010-04-24 Glenn Morris <rgm@gnu.org>
2377
2378 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2379 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2380 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2381 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2382
2383 2010-04-24 Eli Zaretskii <eliz@gnu.org>
2384
2385 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2386 use `get_next_display_element' and `set_iterator_to_next' to
2387 advance to the next character, when looking for the character that
2388 begins the next row.
2389
2390 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2391 definition of "struct Lisp_Symbol".
2392
2393 2010-04-24 Glenn Morris <rgm@gnu.org>
2394
2395 * Makefile.in (CRT_DIR): New variable, set by configure.
2396 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2397 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2398
2399 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2400
2401 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2402
2403 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2404
2405 Remove redundant flags.
2406 * s/freebsd.h (C_SWITCH_SYSTEM):
2407 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2408 * s/netbsd.h (C_SWITCH_SYSTEM):
2409 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2410 of these.
2411
2412 Simplify m/intel386.h.
2413 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2414 user: ecrt0.c.
2415 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2416 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2417 the only user: s/unixware.h.
2418 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2419 from m/intel386.h.
2420 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2421 moved here from m/intel386.h.
2422
2423 * m/mips.h: Remove #if 0 code.
2424
2425 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2426
2427 Fix display of composed characters from L2R scripts in bidi buffers.
2428 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2429 After advancing IT past the composition, resync the bidi iterator
2430 with IT's position. (Bug#5977)
2431
2432 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2433
2434 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2435 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2436
2437 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2438
2439 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2440
2441 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2442
2443 Support `display' text properties and overlay strings in bidi buffers.
2444 * xdisp.c (pop_it): When the stack is popped after displaying
2445 from a string, bidi-iterate to exit from the text portion covered
2446 by the `display' property or overlay. (Bug#5988, bug#5920)
2447
2448 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2449
2450 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2451 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2452
2453 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2454 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2455
2456 Simplify STARTFILES definition.
2457 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2458 relying on Makefile.in to define it.
2459 * s/cygwin.h (START_FILES): Likewise.
2460 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2461
2462 Clean up Solaris code.
2463 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2464 (LIB_MOTIF): Remove, configure takes care of this.
2465 (NOT_USING_MOTIF): Remove, unused.
2466 * xrdb.c: Remove #if 0-ed #include.
2467 (SYSV): Remove conditional for old SysV.
2468 * sysdep.c (closedir): Remove conditional code for Solaris,
2469 Solaris has closedir.
2470
2471 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2472
2473 * xsettings.c (read_and_apply_settings): Check if current_font is
2474 NULL before strcmp (Bug#6001).
2475
2476 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2477
2478 Clean up HP-UX files.
2479 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2480 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2481 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2482 * s/hpux10-20.h: ... to the only user, here.
2483
2484 2010-04-21 Eli Zaretskii <eliz@gnu.org>
2485
2486 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2487 use buffer-local values of paragraph-start and paragraph-separate.
2488 <paragraph_start_re, paragraph_separate_re>: Rename from
2489 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2490 (Bug#5992)
2491
2492 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2493
2494 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2495 current_tool_bar_style are new.
2496 (store_config_changed_event): Rename from store_font_changed_event.
2497 (XSETTINGS_TOOL_BAR_STYLE): New define.
2498 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2499 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2500 HAVE_XFT.
2501 (something_changedCB): store_font_changed_event is now
2502 store_config_changed_event
2503 (parse_settings): Rename from parse_xft_settings. Read
2504 non-xft xsettings outside #ifdef HAVE_XFT.
2505 (read_settings): Renamed from read_xft_settings.
2506 (apply_xft_settings): Take current settings as parameter. Do not
2507 call read_(xft)_settings.
2508 (read_and_apply_settings): New function.
2509 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2510 read_and_apply_settings if there are settings to be read.
2511 (init_xsettings): Renamed from init_xfd_settings.
2512 Call read_and_apply_settings unconditionally.
2513 (xsettings_initialize): Call init_xsettings.
2514 (Ftool_bar_get_system_style): New function.
2515 (syms_of_xsettings): Define Qmonospace_font_name and
2516 Qtool_bar_style. Initialize current_tool_bar_style to nil.
2517 defsubr Stool_bar_get_system_style. Fprovide on
2518 dynamic-setting.
2519 Move misplaced HAVE_GCONF
2520
2521 * xsettings.h (Ftool_bar_get_system_style): Declare.
2522
2523 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2524 Qtext, Qboth, Qboth_horiz are new.
2525 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2526 Vtool_bar_style, tool_bar_max_label_size.
2527
2528 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2529
2530 * keyboard.c: QClabel is new.
2531 (parse_tool_bar_item): Take out QClabel from tool bar items.
2532 Try to construct a label if ther is no QClabel.
2533 (syms_of_keyboard): Intern :label as QClabel.
2534
2535 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2536 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2537 New.
2538
2539 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2540 dynamic-setting.el.
2541
2542 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2543 (xg_make_tool_item, xg_show_toolbar_item): New function.
2544 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2545 Call xg_make_tool_item to make a tool bar item.
2546 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2547
2548 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2549 into account for toolbars.
2550
2551 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2552
2553 * data.c (make_blv): Declarations before code (Bug#5993).
2554
2555 2010-04-21 Glenn Morris <rgm@gnu.org>
2556
2557 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2558 Define using autoconf, not cpp.
2559 (LIBXSM): New variable, set by autoconf.
2560 (LIBXT): Use $LIBXSM.
2561
2562 2010-04-21 Dan Nicolaescu <local_user@dannlt>
2563
2564 Remove NOMULTIPLEJOBS, unused.
2565 * s/template.h (NOMULTIPLEJOBS):
2566 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2567
2568 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2569 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2570 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2571 detects -znocombreloc and passes it to the linker
2572 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2573
2574 2010-04-21 Glenn Morris <rgm@gnu.org>
2575
2576 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2577
2578 2010-04-21 Karel Klíč <kklic@redhat.com>
2579
2580 * Makefile.in (LIBSELINUX_LIBS): New.
2581 (LIBES): Add $LIBSELINUX_LIBS.
2582 * eval.c, lisp.h (call7): New function.
2583 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2584 (Ffile_selinux_context, Fset_file_selinux_context):
2585 New functions.
2586 (Fcopy_file): New parameter preserve-selinux-context.
2587 (Frename_file): Preserve selinux context when renaming by copy-file.
2588
2589 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
2590 Eli Zaretskii <eliz@gnu.org>
2591
2592 Don't depend on cm.c or termcap.c on Windows, use stubs.
2593 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2594 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2595 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2596 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2597 (sys_tputs, sys_tgetstr): New stubs.
2598 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2599 (tputs, tgetstr): New; define to sys_*.
2600
2601 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
2602
2603 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2604
2605 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2606
2607 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2608 Just signal a warning rather than an error when inside a let.
2609 (Fmake_variable_frame_local): Add the same test.
2610
2611 * font.c (syms_of_font): Make the style table vars read-only.
2612
2613 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2614 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2615
2616 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2617
2618 2010-04-20 Eli Zaretskii <eliz@gnu.org>
2619
2620 Fix R2L paragraph display on TTY.
2621
2622 * xdisp.c (unproduce_glyphs): New function.
2623 (display_line): Use it when produced glyphs are discarded from R2L
2624 glyph rows.
2625 (append_composite_glyph): In R2L rows, prepend the glyph rather
2626 than appending it.
2627
2628 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2629 rather than append it. Set up the resolved_level and bidi_type
2630 attributes of the appended glyph.
2631 (produce_special_glyphs): Mirror the backslash continuation
2632 character in R2L lines.
2633
2634 Implement display of R2L paragraphs in GUI sessions.
2635
2636 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2637 append_stretch_glyph.
2638 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2639 off-by-one error in computing x at end of text in the row.
2640 (append_stretch_glyph): In reversed row, prepend the glyph rather
2641 than append it. Set resolved_level and bidi_type of the glyph.
2642 (extend_face_to_end_of_line): If the row is reversed, prepend a
2643 stretch glyph whose width is such that the rightmost glyph will be
2644 drawn at the right margin of the window. Fix off-by-one error on
2645 TTY frames in testing whether a line needs face extension. Fix
2646 face extension at ZV. If this is the last glyph row, use
2647 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2648 region face.
2649 (set_cursor_from_row, display_line): Use
2650 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2651 row->continuation_lines_width.
2652 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2653 are at ZV. Fixes a crash when reseated to ZV by
2654 try_window_reusing_current_matrix.
2655 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2656 which happens with R2L glyph rows. Fixes a crash when inserting a
2657 character at end of an R2L line.
2658 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2659 treat them as having zero-width characters. Improve comments.
2660 Don't reverse pos_before and pos_after for reversed glyph rows.
2661 Set cursor.x to negative value when the cursor might be on the
2662 left fringe.
2663 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2664 left fringe, not the right one.
2665 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2666 (erase_phys_cursor): For reversed cursor_row, support cursor on
2667 the left fringe.
2668
2669 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2670 of continuation indicators on the fringes.
2671 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2672 left fringe.
2673
2674 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2675 draw cursor on the left fringe.
2676
2677 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2678 cursor on the left fringe.
2679
2680 * dispnew.c (update_text_area): Handle reversed desired rows when
2681 the cursor is on the left fringe.
2682 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2683 below, not by 0, for when the cursor is on the left fringe.
2684
2685 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2686
2687 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2688 widget is a scrollbar.
2689
2690 2010-04-20 Kenichi Handa <handa@m17n.org>
2691
2692 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2693 only when the arg CHARSET_LIST is nil.
2694
2695 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2696
2697 Make variable forwarding explicit rather the using special values.
2698 Basically, this makes the structure of buffer-local values and object
2699 forwarding explicit in the type of Lisp_Symbols rather than use
2700 special Lisp_Objects for that. This tends to lead to slightly more
2701 verbose code, but is more C-like, simpler, and makes it easier to make
2702 sure we handled all cases, among other things by letting the compiler
2703 help us check it.
2704 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2705 Removing forwarding objects.
2706 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2707 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2708 explicit rather than hiding them inside Lisp_Object "values".
2709 (XFWDTYPE): New macro.
2710 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2711 (XBUFFER_LOCAL_VALUE): Remove.
2712 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2713 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2714 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2715 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2716 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2717 Remove the Lisp_Misc_* header.
2718 (struct Lisp_Buffer_Local_Value): Redefine.
2719 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2720 (struct Lisp_Misc_Any): Add filler to get the right size.
2721 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2722 Lisp_Intfwd.
2723 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2724 (DEFVAR_KBOARD): Allocate a forwarding object.
2725 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2726 (let_shadows_global_binding_p): New function.
2727 (union Lisp_Val_Fwd): New type.
2728 (make_blv): New function.
2729 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2730 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2731 (swap_in_symval_forwarding, find_symbol_value, Fset)
2732 (let_shadows_buffer_binding_p, set_internal, default_value)
2733 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2734 (Fkill_local_variable, Fmake_variable_frame_local)
2735 (Flocal_variable_p, Flocal_variable_if_set_p)
2736 (Fvariable_binding_locus):
2737 * xdisp.c (select_frame_for_redisplay):
2738 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2739 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2740 * frame.c (store_frame_param):
2741 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2742 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2743 value structure.
2744 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2745 (clone_per_buffer_values): Only adjust markers into the current buffer.
2746 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2747 (Fbuffer_local_value, set_buffer_internal_1)
2748 (swap_out_buffer_local_variables):
2749 Adapt to the new symbol value structure.
2750 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2751 (defvar_per_buffer): Take a new arg for the fwd object.
2752 (buffer_lisp_local_variables): Return a proper alist (different fix
2753 for bug#4138).
2754 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2755 (Fgarbage_collect): Don't handle buffer_defaults specially.
2756 (mark_object): Handle new symbol value structure rather than the old
2757 special Lisp_Misc_* objects.
2758 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2759 * term.c (set_tty_color_mode):
2760 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2761 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2762 a buffer_local_flags.
2763 * print.c (print_object): Get rid of impossible forwarding objects.
2764
2765 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2766
2767 * bidi.c (bidi_get_type, bidi_get_category)
2768 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
2769 (bidi_type_of_next_char, bidi_level_of_next_char):
2770 Declare static. Use `INLINE' rather than `inline'.
2771
2772 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
2773
2774 * dired.c (Ffile_attributes): Fix typo in docstring.
2775
2776 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2777
2778 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2779 NSInteger (Bug#5811).
2780
2781 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2782
2783 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2784 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2785
2786 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2787
2788 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2789
2790 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
2791
2792 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2793 terminal frames (Bug#5837).
2794
2795 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2796
2797 * .gdbinit (xsubchartable): New command.
2798
2799 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2800
2801 * xdisp.c (display_line): Don't write beyond the last glyph row in
2802 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
2803 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2804 and
2805 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2806
2807 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2808
2809 * alloc.c (Fpurecopy): Hash-cons if requested.
2810 (syms_of_alloc): Update purify-flag docstring.
2811
2812 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2813
2814 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2815 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2816
2817 2010-04-17 Eli Zaretskii <eliz@gnu.org>
2818
2819 Fix a crash when an NSM character is inserted at BEGV.
2820
2821 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2822 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2823 NEUTRAL_B or UNKNOWN_BT.
2824
2825 2010-04-16 Eli Zaretskii <eliz@gnu.org>
2826
2827 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2828 other rows with cursor unless they are different from this row and
2829 this row is part of a continued line. (Bug#5943)
2830
2831 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2832
2833 * s/freebsd.h: Restore osreldate.h include.
2834 Suggested by Naohiro Aota.
2835
2836 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2837
2838 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2839
2840 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2841
2842 * s/cygwin.h: Avoid linking against static libgcc.
2843
2844 2010-04-15 Juri Linkov <juri@jurta.org>
2845
2846 * window.c: Add Qscroll_command.
2847 Remove Vscroll_preserve_screen_position_commands.
2848 (window_scroll_pixel_based, window_scroll_line_based): Check the
2849 `scroll-command' property on the last command instead of searching
2850 the last command in Vscroll_preserve_screen_position_commands.
2851 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2852 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2853 (scroll-preserve-screen-position): Doc fix.
2854 (Vscroll_preserve_screen_position_commands): Remove variable.
2855
2856 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2857
2858 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2859
2860 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2861
2862 Reduce cpp use in Makefile.in.
2863 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2864 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2865 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2866 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2867 (CRT0_COMPILE): Remove, inline it in the only user.
2868
2869 2010-04-14 Juri Linkov <juri@jurta.org>
2870
2871 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2872 `scroll-up-command' and `M-v' from `scroll-down' to
2873 `scroll-down-command'.
2874
2875 2010-04-14 Juri Linkov <juri@jurta.org>
2876
2877 * window.c (Vscroll_preserve_screen_position_commands): New variable
2878 with the default value as the list of Qscroll_down and Qscroll_up.
2879 (window_scroll_pixel_based, window_scroll_line_based): Search the
2880 last command in the list Vscroll_preserve_screen_position_commands
2881 instead of comparing with Qscroll_up and Qscroll_down.
2882
2883 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2884
2885 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2886 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2887 does that.
2888
2889 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2890 to zero.
2891
2892 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2893
2894 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2895
2896 Try to solve the problem of spurious EOF chars in long lines of text
2897 sent to interactive subprocesses.
2898 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2899 (system_process_attributes): Remove unused var `ttotal'.
2900 * process.c (send_process): Don't bother breaking long line with EOF
2901 chars when talking to ttys any more.
2902 (wait_reading_process_output): Output a warning when called in such
2903 a way that it could block without being interruptible.
2904
2905 Try to detect file modification within the same second.
2906 * buffer.h (struct buffer): New field modtime_size.
2907 * buffer.c (reset_buffer): Initialize it.
2908 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2909 (Fverify_visited_file_modtime): Check it.
2910 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2911 (Fset_visited_file_modtime): Set (or clear) it.
2912
2913 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2914
2915 * process.c (status_notify): Remove unused var `ro'.
2916
2917 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2918
2919 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2920 more than one visual (Bug#5938).
2921
2922 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2923
2924 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2925 Undefine.
2926
2927 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2928
2929 Remove C_SWITCH_SYSTEM_TEMACS.
2930 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2931 (malloc, realloc, free): Use emacs, not temacs for conditional
2932 definition.
2933
2934 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2935 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2936
2937 Use autoconf, not cpp for some variables.
2938 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2939 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2940 (ALL_CFLAGS): Use them as make variables.
2941 (really-lwlib, really-oldXMenu): Do not pass them.
2942
2943 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2944
2945 * xmenu.c (apply_systemfont_to_dialog): New.
2946 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2947
2948 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2949
2950 * process.c (exec_sentinel): Preserve current-buffer.
2951
2952 * process.c (read_process_output): Move the save-current-buffer to
2953 apply to both the filter and the non-filter branches.
2954
2955 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2956
2957 * s/msdos.h (UNEXEC): New definition.
2958
2959 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2960
2961 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2962 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2963
2964 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2965 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2966 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2967 TRY_WINDOW_CHECK_MARGINS.
2968
2969 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
2970 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2971 width only when it is for padding.
2972
2973 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2974
2975 * xfns.c (Fx_show_tip): Call try_window in a loop until
2976 fonts_changed_p is zero (Bug#2423).
2977
2978 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2979
2980 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2981 the end of TEXT_AREA. (Bug#5856)
2982
2983 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2984
2985 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2986 HAVE_GCONF.
2987
2988 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2989
2990 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2991 prev.orig_type, for resolving type of NSM. (Bug#5858)
2992
2993 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2994
2995 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2996 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2997 in current_font.
2998 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
2999 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3000 New functions.
3001 (syms_of_xsettings): Initialize current_font.
3002 defsubr Sfont_get_system_normal_font.
3003
3004 * xsettings.h (Ffont_get_system_normal_font,
3005 xsettings_get_system_normal_font): Declare.
3006
3007 * xfns.c (extern xlwmenu_default_font): Remove.
3008 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3009 to xlwmenu.c.
3010
3011 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3012 menu items in UTF-8.
3013
3014 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3015 (apply_systemfont_to_menu): New function.
3016 (set_frame_menubar, create_and_show_popup_menu): Call
3017 apply_systemfont_to_menu.
3018
3019 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3022 FRAME_LINE_TO_PIXEL_Y.
3023
3024 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3025 pixelwidth/height.
3026
3027 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3028
3029 Simplify code for HP machines.
3030 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3031 for GNU_LINUX, not needed.
3032 (UNEXEC, NEED_BSDTTY): Move definitions...
3033 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3034
3035 * m/iris4d.h (UNEXEC): Move definition ...
3036 * s/irix6-5.h (UNEXEC): ... here.
3037
3038 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3039
3040 * xfns.c (set_machine_and_pid_properties): New function.
3041 (Fx_create_frame): Call set_machine_and_pid_properties.
3042
3043 2010-04-03 Eli Zaretskii <eliz@gnu.org>
3044
3045 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3046 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3047 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3048
3049 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3050 in this function. (Bug#5703)
3051
3052 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
3053
3054 * nsterm.h: Fix last change.
3055
3056 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3057
3058 * m/intel386.h (NO_REMAP): Move definition ...
3059 * s/msdos.h (NO_REMAP): ... here.
3060
3061 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3062
3063 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3064 used on those platforms.
3065
3066 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3067
3068 Remove extern errno declarations.
3069 * xterm.c:
3070 * xrdb.c:
3071 * w32term.c:
3072 * unexec.c:
3073 * unexaix.c:
3074 * sysdep.c:
3075 * process.c:
3076 * lread.c:
3077 * keyboard.c:
3078 * floatfns.c:
3079 * filelock.c:
3080 * fileio.c:
3081 * emacs.c (main):
3082 * ecrt0.c:
3083 * dispnew.c:
3084 * callproc.c:
3085 * buffer.c: Remove errno extern declarations.
3086 * s/netbsd.h (NEED_ERRNO): Remove.
3087
3088 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3089
3090 Remove all uses of LIBX11_SYSTEM.
3091 * Makefile.in (LIBX11_SYSTEM): Remove.
3092 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3093 instead.
3094
3095 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3096
3097 Remove support for DJGPP v1.x (bug#5813).
3098
3099 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
3100 * s/msdos.h:
3101 * unexec.c (make_hdr, copy_text_and_data):
3102 * sysdep.c (wait_for_termination, sys_subshell):
3103 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
3104 (IT_set_terminal_modes, __write, _rename, gethostname)
3105 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3106 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3107 the value of __DJGPP__.
3108 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3109 compatibility code.
3110 * lread.c:
3111 * gmalloc.c (memalign):
3112 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3113 * emacs.c (main):
3114 * dosfns.c (init_dosfns):
3115 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3116
3117 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3118
3119 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3120 string with `cursor' property comes from an `after-string'
3121 overlay. (Bug#5816)
3122
3123 2010-04-01 Glenn Morris <rgm@gnu.org>
3124
3125 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3126 Define as Makefile variables.
3127 (LIBX): Use above variables rather than directly using autoconf.
3128
3129 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3130
3131 Clean up BSD_SYSTEM use.
3132 * xterm.c:
3133 * process.c:
3134 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3135 for including <sys/ioctl.h>.
3136 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3137 code is only used for MSDOS.
3138
3139 2010-03-31 Juri Linkov <juri@jurta.org>
3140
3141 * image.c: Add `Qextension_data'.
3142 (syms_of_image): Initialize and staticpro `Qextension_data'.
3143 (Fimage_metadata): Rename from `Fimage_extension_data'.
3144 (gif_load): Put GIF extension data to the property
3145 `Qextension_data'.
3146
3147 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3148
3149 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3150 * nsterm.h: Fix prototype.
3151
3152 2010-03-31 Eli Zaretskii <eliz@gnu.org>
3153
3154 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3155 trailing whitespace in right-to-left rows.
3156
3157 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3158
3159 Get rid of the direct_output optimizations.
3160 * keyboard.c (nonundocount): Remove extern declaration.
3161 (command_loop_1): Remove brittle optimisation for cheap and
3162 common operations.
3163 * xdisp.c (redisplay_internal): Don't bother checking
3164 redisplay_performed_directly_p any more.
3165 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3166 any more.
3167 * dispnew.c (redisplay_performed_directly_p)
3168 (direct_output_for_insert, direct_output_forward_char):
3169 * dispextern.h (redisplay_performed_directly_p)
3170 (direct_output_for_insert, direct_output_forward_char): Remove.
3171 * cmds.c (nonundocount): Make it static.
3172
3173 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
3174
3175 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3176
3177 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
3178
3179 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3180 invisible (Bug#5766).
3181
3182 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
3183
3184 * xdisp.c (x_consider_frame_title, update_window_cursor):
3185 Remove HAVE_NS conditionals.
3186 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
3187
3188 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3189 filename for the title.
3190 (ns_set_doc_edited): Do nothing if the selected window is a
3191 minibuffer window.
3192
3193 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3194 ns_set_doc_edited.
3195
3196 * nsterm.m: Remove unneeded prototype.
3197
3198 2010-03-31 Glenn Morris <rgm@gnu.org>
3199
3200 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3201 in the DOC file. (Bug#5336)
3202
3203 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3204
3205 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3206
3207 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3208
3209 * window.c (keys_of_window): Remove redundant/overridden bindings.
3210
3211 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3212
3213 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3214 Restore original behavior when the iterator is not bidi_p.
3215
3216 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3217
3218 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3219
3220 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3221
3222 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3223 are outside the range of cached character positions.
3224
3225 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
3226
3227 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3228
3229 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3230
3231 Initial support for bidirectional editing.
3232
3233 * Makefile.in (obj): Include bidi.o.
3234 (bidi.o): New target.
3235
3236 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3237 ($(BLD)/bidi.$(O)): New target.
3238
3239 * bidi.c: New file.
3240
3241 * buffer.h (struct buffer): New members bidi_display_reordering
3242 and bidi_paragraph_direction.
3243
3244 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3245 and bidi_paragraph_direction.
3246 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3247 and bidi-paragraph-direction.
3248 (Fbuffer_swap_text): Swap the values of
3249 bidi_display_reordering and bidi_paragraph_direction.
3250
3251 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3252 (bidi_type_t, bidi_dir_t): New types.
3253 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3254 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3255 prev_stop, base_level_stop, and eol_pos.
3256 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3257 (IT_STACK_SIZE): Enlarge to 5.
3258 (struct glyph_row): New member reversed_p.
3259 <string_buffer_position>: Update prototype.
3260 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3261 glyph_row if bidi_it.paragraph_dir == R2L.
3262 (struct glyph): New members resolved_level and bidi_type.
3263
3264 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3265 processing or buffer's direction is right-to-left.
3266 (prepare_desired_row): Preserve the reversed_p flag.
3267 (row_equal_p): Compare the reversed_p attributes as well.
3268
3269 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3270 bidi_init_it and set it->paragraph_embedding from the current
3271 buffer's value of bidi_paragraph_direction.
3272 (reseat_1): Initialize bidi_it.first_elt.
3273 (set_iterator_to_next, next_element_from_buffer): Use the value of
3274 paragraph_embedding to determine the paragraph direction.
3275 (set_iterator_to_next): Under bidi reordering, call
3276 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3277 new_paragraph flag is set in the bidi iterator.
3278 (next_element_from_buffer): If bidi_it.first_elt is set,
3279 initialize paragraph direction and find the first character to
3280 display in the visual order. If reseated to a middle of a line,
3281 prime the bidi iterator starting at the line's beginning. Handle
3282 the situation where we overstepped stop_charpos due to
3283 non-linearity of the bidi iteration. Likewise for when we back up
3284 beyond the previous stop_charpos. When moving across stop_charpos,
3285 record it in prev_stop.
3286 (display_line): Set row->end and it->start for the next row to the
3287 next character in logical order. Always extend reversed_p rows to
3288 the end of line, even if they end at ZV. Copy the reversed_p flag
3289 to the next glyph row. Keep calling set_cursor_from_row for
3290 bidi-reordered rows even if we already have a possible candidate
3291 for cursor position. Set row_end after all the row's glyphs have
3292 been produced, by looping over the glyphs. Record the position
3293 after EOL in it->eol_pos, and use it to set end_pos of the last
3294 row produced for a continued line.
3295 <Qright_to_left, Qleft_to_right>: New variables.
3296 (syms_of_xdisp): Initialize and staticpro them.
3297 (string_buffer_position_lim): New function.
3298 (string_buffer_position): Most of code moved to
3299 string_buffer_position_lim. Last argument and return value are
3300 now EMACS_INT; all callers changed.
3301 (set_cursor_from_row): Rewritten to support bidirectional text and
3302 reversed glyph rows.
3303 (text_outside_line_unchanged_p, try_window_id): Disable
3304 optimizations if we are reordering bidirectional text and the
3305 paragraph direction can be affected by the change.
3306 (append_glyph, append_composite_glyph)
3307 (produce_image_glyph, append_stretch_glyph): Set the
3308 resolved_level and bidi_type members of each glyph.
3309 (append_glyph): If the glyph row is reversed, prepend the glyph
3310 rather than appending it.
3311 (handle_stop_backwards): New function.
3312 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3313 (reseat): call handle_stop_backwards to recompute prev_stop and
3314 base_level_stop for the new position.
3315 (handle_invisible_prop): Under bidi iteration, skip invisible text
3316 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3317 paragraph direction. Update IT->prev_stop after skipping
3318 invisible text.
3319 (move_it_in_display_line_to): New variables prev_method
3320 and prev_pos. Compare for strict equality in
3321 BUFFER_POS_REACHED_P.
3322 (try_cursor_movement): Examine all the candidate rows that occlude
3323 point, to return the best match. If rows are bidi-reordered
3324 and point moved backwards, back up to the row that is not a
3325 continuation line, and start looking for a suitable row from
3326 there.
3327
3328 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3329 rather than appending, if the glyph_row's reversed_p flag is set.
3330 Set the resolved_level and bidi_type members of each glyph.
3331
3332 * .gdbinit (pbiditype): New command.
3333 (pgx): Use it to display bidi level and type of the glyph.
3334 (pitx): Display some bidi information about the iterator.
3335 (prowlims, pmtxrows): New commands.
3336
3337 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3338
3339 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3340 * s/usg5-4.h (LIBS_DEBUG):
3341 * s/irix6-5.h (C_DEBUG_SWITCH):
3342 * s/gnu-linux.h (LIBS_DEBUG):
3343 * s/darwin.h (LIBS_DEBUG):
3344 * s/bsd-common.h (LIBS_DEBUG):
3345 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3346 * m/iris4d.h (LIBS_DEBUG):
3347 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3348
3349 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3350 (LIBS_DEBUG): Remove definition.
3351
3352 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
3353
3354 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3355 Windows.
3356
3357 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3358
3359 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3360 `connect' (Bug#5723).
3361
3362 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
3363
3364 * process.c (Fmake_network_process): Call `select' for interrupted
3365 `connect' rather than creating new socket (Bug#5173).
3366
3367 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
3368
3369 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3370
3371 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3372
3373 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3374
3375 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3376
3377 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3378 XLoadQueryFont.
3379
3380 2010-03-24 Kenichi Handa <handa@m17n.org>
3381
3382 * coding.c (decode_coding_ccl): Fix previous change for the
3383 multibyte case.
3384 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3385 case that the output buffer is fullfilled.
3386 (encode_coding): Setup ccl program here.
3387
3388 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3389
3390 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3391
3392 Simplify LIBS_MACHINE definitions.
3393 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3394 * m/iris4d.h (LIBS_MACHINE): Likewise.
3395 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3396 * s/aix4-2.h (LIBS_SYSTEM): ... here.
3397 * s/netbsd.h: Remove commented out code.
3398
3399 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3400
3401 Remove dead code dealing with POSIX_SIGNALS.
3402 * atimer.c (set_alarm): Remove dead code, all USG systems define
3403 POSIX_SIGNALS.
3404 * data.c (arith_error): Likewise.
3405 * keyboard.c (input_available_signal, handle_user_signal)
3406 (interrupt_signal): Likewise.
3407 * process.c (sigchld_handler): Likewise.
3408 (create_process): Remove if 0 code. Remove HPUX conditional when
3409 !defined (POSIX_SIGNALS), it cannot be true.
3410 * syssignal.h: Remove USG5_4 and USG conditionals when
3411 !POSIX_SIGNALS, they cannot be true.
3412
3413 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3414 NO_SOCK_SIGIO, not used anymore.
3415
3416 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3417
3418 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3419 support vax on BSDs.
3420
3421 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3422 * s/aix4-2.h (ORDINARY_LINK): ... here.
3423
3424 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3425
3426 * Makefile.in (abs_builddir): Define.
3427 (bootstrap_exe): Use it.
3428 (VPATH): Use $(srcdir) instead of @srcdir@.
3429
3430 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3431
3432 * Makefile.in (bootstrap_exe): Use an absolute name.
3433
3434 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3435
3436 Remove support for old GNU/Linux using libc version 5.
3437 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3438 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3439
3440 Consolidate redundant definitions in s/bsd-common.h.
3441 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3442 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3443 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3444 doing it in all files that include this one.
3445 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3446 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3447 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3448 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3449 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3450 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3451 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3452 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3453 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3454
3455 Consolidate redundant definitions.
3456 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3457 it's undefined in all files that include this one.
3458 (POSIX_SIGNALS): Define here instead of doing it in all files that
3459 include this one.
3460 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3461 (POSIX_SIGNALS): Do not define.
3462 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3463 (POSIX_SIGNALS): Do not define.
3464 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3465 (POSIX_SIGNALS): Do not define.
3466
3467 Remove support for old UNIX System V systems.
3468 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3469 * s/usg-5-4-2.h: Remove.
3470
3471 Remove support for Solaris on PPC and for old versions.
3472 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3473 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3474 that cancel each other.
3475 * s/sol2-3.h:
3476 * s/sol2-4.h:
3477 * s/sol2-5.h: Remove.
3478 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3479 (NO_REMAP): Remove, unused.
3480 (UNEXEC): Move definition ...
3481 * s/aix4-2.h (UNEXEC): ... here.
3482
3483 * s/openbsd.h: Remove support for non-ELF and for systems that do
3484 not support shared libraries.
3485 * s/netbsd.h:
3486 * s/freebsd.h: Likewise.
3487
3488 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3489
3490 Remove non-working support for lynxos 3.0.
3491 * s/lynxos.h: Remove file.
3492
3493 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3494 COFF_BSD_SYMBOLS, nothing defines it anymore.
3495
3496 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3497
3498 Remove obsolete uses of HAVE_SHM.
3499 * emacs.c (standard_args):
3500 (Fdump_emacs):
3501 (syms_of_emacs): Remove code depending on HAVE_SHM.
3502
3503 * alloc.c: Remove HAVE_SHM dependent definition.
3504
3505 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3506
3507 2010-03-18 Glenn Morris <rgm@gnu.org>
3508
3509 * emacs.c (USAGE4): Hard-code bug address.
3510 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3511 (bug_reporting_address): Remove.
3512 (main): Don't call bug_reporting_address.
3513
3514 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3515 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3516
3517 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
3518
3519 * xfns.c (Fx_create_frame):
3520 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3521 on left.
3522
3523 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3524
3525 * editfns.c (Fformat): Account for string precision when computing
3526 field width (Bug#5710).
3527
3528 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
3529
3530 * xfns.c (Fx_create_frame): Set default to Qright.
3531
3532 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3533 all window systems.
3534
3535 2010-03-12 Eli Zaretskii <eliz@gnu.org>
3536
3537 These changes remove termcap.c from the build on Posix platforms.
3538 * Makefile.in (termcapobj): Move termcap.o from here...
3539 (MSDOS_OBJ): ...to here.
3540 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3541 now identical to when LIBS_TERMCAP is defined.
3542
3543 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3544
3545 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3546
3547 * config.in: Regenerated. (See top-level ChangeLog.)
3548
3549 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
3550
3551 * Branch for 23.2.
3552
3553 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3554
3555 Cleanup setup of gl_state in various parts of the code.
3556 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3557 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3558 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3559 (skip_chars):
3560 * regex.c (regex_compile): Use it.
3561 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3562 it's now set in regex_compile when/if we need it.
3563
3564 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3565
3566 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3567 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3568 (QUIT): Use it to consolidate code and remove redundancy.
3569 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3570
3571 * regex.c (regex_compile): Setup gl_state as well.
3572
3573 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3574 (in_classes): Use CONSP before XCAR/XCDR.
3575
3576 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
3577
3578 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3579 definitions, so that keyboard macros are correctly handled
3580 (Bug#5481).
3581
3582 2010-03-02 Eli Zaretskii <eliz@gnu.org>
3583
3584 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3585 text that could be relocated inside the call to emacs_mule_char.
3586 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3587 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3588
3589 2010-03-02 Kenichi Handa <handa@m17n.org>
3590
3591 * character.c (parse_str_as_multibyte): Fix handling of the
3592 multibyte form of raw-bytes.
3593 (str_as_multibyte): Likewise.
3594
3595 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3596 form of raw-bytes.
3597
3598 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
3599
3600 * charset.c (load_charset_map_from_file)
3601 (load_charset_map_from_vector): Zero out allocated
3602 charset_map_entries before using them.
3603
3604 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3605
3606 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3607
3608 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
3609
3610 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3611 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
3612
3613 2010-02-26 Kenichi Handa <handa@m17n.org>
3614
3615 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3616
3617 * xdisp.c (reseat_to_string): Fix previous change.
3618
3619 2010-02-26 David Reitter <david.reitter@gmail.com>
3620
3621 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3622 Lisp_Object (Bug#4736).
3623
3624 2010-02-25 Kenichi Handa <handa@m17n.org>
3625
3626 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3627
3628 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3629
3630 * xterm.c (XTflash): Move declarations before statements.
3631
3632 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3633 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3634 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3635 (xg_create_tool_bar): Remove unused variables.
3636 (x_wm_set_size_hint): Move declarations before statements.
3637 (xg_create_frame_widgets): Remove variable grav.
3638
3639 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
3640
3641 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3642
3643 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3644
3645 * term.c (fatal): Add a final \n if needed (bug#5596).
3646
3647 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
3648
3649 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3650
3651 2010-02-18 Glenn Morris <rgm@gnu.org>
3652
3653 * callint.c (Finteractive): Doc fix.
3654
3655 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3656
3657 * coding.c (record_conversion_result):
3658 Handle CODING_RESULT_INSUFFICIENT_DST.
3659 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3660 memory allocation error.
3661
3662 2010-02-17 Kenichi Handa <handa@m17n.org>
3663
3664 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3665 Fix for the case that the output buffer is fullfilled.
3666 (decode_coding): Setup ccl program here. Keep looping when the
3667 decoder stopped because the output buffer is
3668 fullfilled (bug#5534).
3669
3670 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3671
3672 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3673
3674 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
3675 bug #5571.
3676 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
3677 overdrawn.
3678
3679 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3680
3681 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3682 doing_interact here.
3683 (ice_connection_closed): New function.
3684 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3685 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3686 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3687 returns I/O error.
3688 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3689 bug #5512.
3690
3691 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
3692
3693 * nsfont.m (nsfont_open): The system's value for the font descent
3694 is negative, so round it down to avoid clipping.
3695
3696 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
3697
3698 * charset.c (load_charset_map_from_file)
3699 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
3700 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
3701
3702 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
3703
3704 * charset.c (load_charset_map_from_file): Allocate large
3705 charset_map_entries structure on the heap rather than the stack.
3706 (Bug#5526).
3707
3708 2010-01-31 Kenichi Handa <handa@m17n.org>
3709
3710 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
3711 size in NAME is invalid, return -1 (Bug#5396).
3712
3713 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
3714
3715 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3716 <deactivated@gmail.com> (Bug#3605).
3717
3718 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
3719
3720 * fileio.c (Frename_file): Correctly rename symlinks to
3721 directories (Bug#5496).
3722
3723 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3724
3725 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3726
3727 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3728
3729 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3730
3731 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
3732
3733 * frame.c (DEFAULT_ROWS): Change default to 35.
3734
3735 * xfns.c (x_default_font_parameter): Change default XFT font to
3736 monospace-10 (Bug#3643).
3737
3738 2010-01-29 Eli Zaretskii <eliz@gnu.org>
3739
3740 * w32inevt.c (key_event): Remove unnecessary comparison of
3741 event->uChar.AsciiChar with 128.
3742
3743 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
3744
3745 * fileio.c (Frename_file): Fix last change (Bug#5487).
3746
3747 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3748
3749 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3750
3751 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3752
3753 * xfns.c (Fx_create_frame): Remove window size matching code from
3754 2010-01-15.
3755 (x_get_current_desktop, x_get_desktop_workarea): Remove.
3756
3757 2010-01-27 Jason Rumney <jasonr@gnu.org>
3758
3759 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
3760 (key_event): Use unicode for characters 128 and higher (Bug#4567).
3761
3762 2010-01-27 Kenichi Handa <handa@m17n.org>
3763
3764 * regex.c (analyse_first): Fix setting of fastmap for unibyte
3765 pattern string (Bug#4209).
3766
3767 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
3768
3769 * fileio.c (Frename_file): Call copy-directory and
3770 delete-directory for directories, in order to handle cross-device
3771 renaming (Bug#3353).
3772
3773 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3774
3775 * xfns.c (Fx_create_frame): If frame height is too big, try
3776 sizes 24 and 10. Bug #3643.
3777
3778 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3779
3780 Try and fix bug#788, hopefully for real this time.
3781 * keymap.c (shadow_lookup): Add `remap' arg.
3782 (describe_map, describe_vector): Update calls to shadow_lookup.
3783 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3784 `remapped' so this flag is applicable to `sequence'. Be careful to
3785 perform remapping during shadow_lookup check of remapped_sequences.
3786
3787 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3788
3789 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3790 png_check_sig, which has been removed in libpng 1.4.
3791
3792 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3793
3794 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3795 lacks this header file).
3796
3797 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3798
3799 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3800 as in Emacs 22.
3801
3802 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3803
3804 * lisp.h (make_pure_string): String pointer arg now points to const.
3805
3806 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3807 args now point to const.
3808
3809 2010-01-22 Eli Zaretskii <eliz@gnu.org>
3810
3811 * lread.c (Fload): Don't treat files without .elc extension as
3812 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3813 them. (bug#5303)
3814
3815 2010-01-20 Kenichi Handa <handa@m17n.org>
3816
3817 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3818 treat the source as actual byte sequence.
3819
3820 2010-01-19 Alan Mackenzie <acm@muc.de>
3821
3822 Fix spurious before-change-functions invocation from (insert ?\n).
3823 * textprop.c (set_text_properties): Rename parameter
3824 `signal_after_change_p' to `coherent_change_p', and make the
3825 invocation of `modify_region' conditional on it.
3826
3827 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3828
3829 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3830 for debug purpose.
3831 (syms_of_xsettings): Declare xft-settings.
3832
3833 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
3834
3835 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3836
3837 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3838
3839 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3840
3841 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
3842
3843 * emacs.c (standard_args): Adjust arg priorities to reflect how
3844 they are processed in startup.el.
3845
3846 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3847
3848 * Makefile.in (lisp, shortlisp): Update.
3849
3850 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3851
3852 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3853 code, link the new kboard into all_kboard before running Lisp code,
3854 and protect the new terminal with GCPRO (Bug#5365).
3855 (x_term_init): Remove unused var `atom'.
3856 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3857
3858 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3859
3860 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3861 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3862 to find out usable size of the desktop. Don't make frames larger than
3863 this. Bug #3643.
3864
3865 2010-01-15 Kenichi Handa <handa@m17n.org>
3866
3867 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3868
3869 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
3870
3871 * nsterm.m (Qnone): Define.
3872
3873 * nsfns.m (Qnone): Move definition to nsterm.m.
3874
3875 2010-01-14 Kenichi Handa <handa@m17n.org>
3876
3877 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3878 systems.
3879
3880 2010-01-14 Kenichi Handa <handa@m17n.org>
3881
3882 Make auto-composition work on all buffers even if they are
3883 fundamental mode.
3884
3885 * composite.c (Vauto_composition_mode): New variable.
3886 (composition_compute_stop_pos): Check Vauto_composition_mode
3887 instead of Vauto_composition_function.
3888 (composition_adjust_point, Ffind_composition_internal): Likewise.
3889 (syms_of_composite): Declare Lisp variable
3890 "auto-composition-mode" here.
3891
3892 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
3893
3894 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3895 during call to vendor-specific-keysyms (Bug#5365).
3896
3897 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3898
3899 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3900 Call SIGNAL_THREAD_CHECK (Bug#5333).
3901
3902 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3903 Call SIGNAL_THREAD_CHECK.
3904
3905 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3906
3907 Try to fix bug#5314. This is probably not the final word, tho.
3908 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3909 recent-auto-save-p as a side-effect.
3910 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3911 * buffer.c (Fkill_buffer, reset_buffer):
3912 * editfns.c (Fsubst_char_in_region):
3913 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3914 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3915
3916 2010-01-13 Kenichi Handa <handa@m17n.org>
3917
3918 Display buffer name, etc. in mode line by composing correctly.
3919
3920 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3921 STRING is not nil.
3922 (display_mode_element): Adjust for the change of
3923 decode_mode_spec and display_line.
3924 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3925 (display_string): Handle the case that STRING is non-null and
3926 LISP_STRING is not nil.
3927
3928 * xterm.c (x_draw_composite_glyph_string_foreground):
3929 Pay attention to s->face->overstrike.
3930
3931 * composite.c (composition_reseat_it): Don't check PT if STRING is
3932 non nil.
3933
3934 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3935
3936 * keyboard.c (read_char): Don't apply previous change when current
3937 buffer is unchanged by command execution.
3938
3939 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3940
3941 * keyboard.c (read_char): Return after executing from special map.
3942
3943 2010-01-12 Glenn Morris <rgm@gnu.org>
3944
3945 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3946 bug-gnu-emacs rather than emacs-pretest-bug.
3947
3948 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
3949
3950 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3951 initializing the Lisp variables that depend on them.
3952
3953 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3954
3955 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3956 Clear areas that will not be updated after change of menu bar lines.
3957 Clear the menu bar window's current matrix when the window gets empty.
3958
3959 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
3960
3961 * intervals.h, textprop.c (extend_property_ranges): Return value
3962 and args changed. Discard properties that begin at or after the
3963 new end (Bug#5306).
3964
3965 * editfns.c (Fformat): Caller changed.
3966
3967 * nsterm.m (ns_set_default_prefs): Delete function.
3968 (syms_of_nsterm): Initialize ns_command_modifier,
3969 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3970 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3971
3972 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3973 position (Bug#4040).
3974
3975 2010-01-09 Eli Zaretskii <eliz@gnu.org>
3976
3977 * editfns.c (Ffloat_time): Doc fix.
3978
3979 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3980
3981 * xfns.c (Fx_create_frame): Don't create frame larger than display
3982 by default bug#3643.
3983
3984 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3985
3986 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3987 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3988 windows above internal border.
3989
3990 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3991 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3992 windows above internal border.
3993
3994 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3995 tool bar windows specially.
3996
3997 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3998
3999 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4000 specially.
4001 (XTflash): Take account of menu bar height.
4002
4003 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4004 specially.
4005
4006 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4007
4008 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4009 also be true before we can return early (bug #5339).
4010
4011 2010-01-06 David Reitter <david.reitter@gmail.com>
4012
4013 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4014 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4015 (Bug#3233).
4016
4017 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4018
4019 * font.c (font_open_entity): Enable chache and call cached_font_ok
4020 for the driver if defined.
4021 (QCuser_spec): New symbol.
4022 (font_spec_from_name): Save name as user-spec.
4023 (font_load_for_lface): Keep user-spec instead of name.
4024 (font_open_by_name): Save name as user-spec.
4025 (syms_of_font): Initialize QCuser_spec.
4026 (font_clear_prop): Clear name if it exists in font (bug#5157).
4027
4028 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4029 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4030 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4031
4032 * font.h (struct font_driver): Add cached_font_ok.
4033
4034 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4035
4036 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4037
4038 * xterm.c (x_new_font): Move code for setting rows/cols before
4039 resizing ...
4040 (x_set_window_size): ... to here. Bug #2568.
4041
4042 * gtkutil.c (xg_clear_under_internal_border): New function.
4043 (xg_frame_resized, xg_frame_set_char_size):
4044 Call xg_clear_under_internal_border.
4045 (xg_update_scrollbar_pos): Clear under old scroll bar position.
4046
4047 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
4048
4049 * keyboard.c (read_key_sequence): Catch keyboard switch after
4050 making a new tty frame (Bug#5095).
4051
4052 2010-01-05 Kenichi Handa <handa@m17n.org>
4053
4054 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4055
4056 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4057
4058 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4059 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4060 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4061
4062 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
4063
4064 * dbusbind.c (xd_add_watch): Improve debug message.
4065 (xd_remove_watch): Improve debug message. If DATA is the session
4066 bus, unset D-Bus session environment.
4067 (Fdbus_init_bus): Pass the bus as argument to
4068 dbus_connection_set_watch_functions. (Bug#5283)
4069
4070 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
4071
4072 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4073
4074 * lread.c (syms_of_lread): Make it clearer that these are the
4075 names of loaded files (Bug#5068).
4076
4077 * eval.c (run_hook_with_args): Handle the case where the global
4078 value has the obsolete single-function form (Bug#5026).
4079
4080 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
4081
4082 * minibuf.c (Fall_completions): Minor optimization.
4083
4084 2009-12-26 Eli Zaretskii <eliz@gnu.org>
4085
4086 * .gdbinit (pgx): Fix display of composite glyphs.
4087 Display cmp.from and cmp.to as well.
4088 (pitx): Fix last change.
4089
4090 2009-12-25 Kenichi Handa <handa@m17n.org>
4091
4092 * composite.h (composition_adjust_point): Update prototype.
4093
4094 * composite.c (composition_reseat_it): Don't make a composition
4095 spanning over point.
4096 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4097 composable characters.
4098 (composition_adjust_point): New arg NEW_PT. Callers changed.
4099
4100 * keyboard.c (command_loop_1): Force redisplay if the last point
4101 was within a composition.
4102 (adjust_point_for_property): Don't adjust point for automatic
4103 composition when called after buffer modification.
4104
4105 2009-12-19 Eli Zaretskii <eliz@gnu.org>
4106
4107 * .gdbinit (pitx): Don't use enum names, use their values.
4108 Remove reference to non-existing value GET_FROM_COMPOSITION.
4109 (pgx): Don't use enum names, use their values.
4110 (pitmethod): New helper command.
4111 (pitx): Use it to display iteration method.
4112 (pgrowit): New command.
4113
4114 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4115
4116 Update dependencies in Makefile.in.
4117
4118 * Makefile.in (alloc.o): Depend on termhooks.h.
4119 (atimer.o): Depend on blockinput.h.
4120 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4121 and frame.h.
4122 (callint.o): Depend on systime.h, coding.h, and composite.h.
4123 (callproc.o): Depend on buffer.h.
4124 (casefiddle.o): Don't depend on charset.h.
4125 (casetab.o): Depend on character.h.
4126 (ccl.o): Depend on composite.h.
4127 (chartab.o): Depend on ccl.h.
4128 (cm.o): Depend on dispextern.h.
4129 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4130 (coding.o): Don't depend on $(INTERVALS_H).
4131 (composite.o): Don't depend on dispextern.h explicitly (it's in
4132 $(INTERVALS_H)). Depend on ccl.h.
4133 (data.o): Depend on systime.h, coding.h, composite.h,
4134 dispextern.h, font.h, and ccl.h.
4135 (dired.o): Depend on composite.h.
4136 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4137 composite.h (it's in $(INTERVALS_H)).
4138 (doc.o): Depend on systime.h, coding.h, and composite.h.
4139 (editfns.o): Don't depend explicitly on dispextern.h.
4140 (emacs.o): Depend on frame.h and coding.h.
4141 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4142 (fileio.o): Depend on frame.h and commands.h. Don't depend
4143 explicitly on dispextern.h.
4144 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4145 composite.h.
4146 (fns.o): Don't depend on termhooks.h.
4147 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4148 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4149 coding.h, $(INTERVALS_H), window.h, xterm.h.
4150 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4151 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4152 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4153 fontset.h, ccl.h, and ftfont.h.
4154 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4155 (gtkutil.o): Depend on dispextern.h and composite.h.
4156 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4157 termhooks.h, and ccl.h.
4158 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4159 (intervals.o): Depend on systime.h and coding.h.
4160 (keyboard.o): Depend on composite.h and coding.h.
4161 (keymap.o): Depend on coding.h and frame.h.
4162 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4163 (macros.o): Depend on systime.h, coding.h, and composite.h.
4164 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4165 and atimer.h.
4166 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4167 dispextern.h explicitly.
4168 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4169 Don't depend explicitly on dispextern.h and composite.h.
4170 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4171 (regex.o): Don't depend on charset.h.
4172 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4173 (search.o): Don't depend explicitly on composite.h.
4174 (sound.o): Depend on atimer.h and systime.h.
4175 (syntax.o): Don't depend explicitly on composite.h.
4176 (sysdep.o): Depend on coding.h and composite.h.
4177 (term.o): Depend on xterm.h and buffer.h.
4178 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4179 (textprop.o): Don't depend on dispextern.h explicitly.
4180 (undo.o): Depend on dispextern.h.
4181 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4182 dispextern.h and composite.h explicitly.
4183 (xdisp.o): Depend on ccl.h.
4184 (xfaces.o): Depend on coding.h and ccl.h.
4185 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4186 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4187 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4188 ftfont.h.
4189 (xgselect.o): New dependency.
4190 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4191 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4192 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4193 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4194 (xsmfns.o): Depend on frame.h and dispextern.h.
4195 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4196 sysselect.h.
4197
4198 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4199
4200 * font.c (Fclear_font_cache): Pass correct cache argument to
4201 font_clear_cache.
4202
4203 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4204
4205 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4206 twice.
4207
4208 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
4209
4210 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4211 calling file-remote-p. Reported by Jim Meyering.
4212
4213 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
4214
4215 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
4216 avoid compiler warnings. (Bug #5217)
4217
4218 2009-12-14 Kenichi Handa <handa@m17n.org>
4219
4220 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4221 in 8-bit encoding.
4222
4223 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
4224
4225 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4226 tooltip windows.
4227
4228 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4229
4230 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4231 Xatom_net_window_type.
4232
4233 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4234 Xatom_net_window_type.
4235
4236 * xterm.c (my_log_handler): New function.
4237 (x_term_init): Set my_log_handler as log handler during gtk_init
4238 so we can filter out buggy messages. (Bug #5120).
4239
4240 * xterm.c (xg_scroll_callback): Parameter list changed,
4241 use parameter GtkScrollType to determine scroll/line/page.
4242 Only allow dragging if a button < 4 is grabbed (bug #5177).
4243 (xg_end_scroll_callback): New function.
4244 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4245 xg_create_scroll_bar.
4246
4247 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4248 (scroll_end_callback): Remove.
4249 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4250 button-release-event. Replace value-changed event with change-value,
4251 bug #5177,
4252 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4253 bug #5177.
4254
4255 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4256 (xg_create_scroll_bar): Add GCallback end_callback.
4257
4258 * xftfont.c (QClcdfilter): New variable.
4259 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4260 (syms_of_xftfont): Initialize QClcdfilter.
4261
4262 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4263
4264 * xsettings.c (struct xsettings): Add member seen.
4265 (parse_xft_settings): Update member seen with what we have read.
4266 Return non-zero if Xft-settings have been parsed, 0 otherwise.
4267 (apply_xft_settings): Only update Xft settings with what member seen
4268 indicates as new.
4269
4270 2009-12-12 Eli Zaretskii <eliz@gnu.org>
4271
4272 * dispextern.h (struct text_pos): Use EMACS_INT;
4273 (struct glyph): Use EMACS_INT for charpos.
4274 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4275 region_beg_charpos, region_end_charpos,
4276 redisplay_end_trigger_charpos, and also for
4277 iterator_stack_entry.end_charpos and
4278 iterator_stack_entry.stop_charpos.
4279
4280 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4281
4282 * gtkutil.c (scroll_end_callback): New function (bug #5177).
4283 (xg_create_scroll_bar): Call scroll_end_callback on button release
4284 event (bug #5177).
4285 (xg_event_is_for_scrollbar): != replaced with ==.
4286
4287 2009-12-12 Kenichi Handa <handa@m17n.org>
4288
4289 * ftfont.c (struct ftfont_info): New member matrix.
4290 (ftfont_open): Setup xftfont_info->matrix.
4291 (MFLTFontFT): New member matrix.
4292 (FLOOR, CEIL, ROUND): New macros.
4293 (ftfont_get_metrics): Handle matrix transformation.
4294 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4295
4296 * xftfont.c (struct xftfont_info): New member matrix.
4297 (xftfont_open): Setup xftfont_info->matrix.
4298
4299 2009-12-10 Kenichi Handa <handa@m17n.org>
4300
4301 * xdisp.c (append_space_for_newline): Consider face-remapping.
4302
4303 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4304
4305 * xsettings.c: Include "keyboard.h".
4306
4307 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4308
4309 Fix implicit function declarations.
4310 * cmds.c: Include "frame.h".
4311 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4312 * frame.h: Move declaration of delete_frame outside of
4313 HAVE_WINDOW_SYSTEM.
4314
4315 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4316
4317 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4318
4319 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4320 GTK builds.
4321
4322 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4323
4324 * unexelf.c (unexec): Don't search for .data twice.
4325
4326 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
4327
4328 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4329 if push failed.
4330 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4331 of push_display_prop (Bug#5000).
4332
4333 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4334 value of font_list_entities (Bug#5085).
4335
4336 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
4337
4338 Fix `string-to-number' to deal consistently with integers and floats.
4339 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4340 trailing characters, not just whitespace.
4341 (read1): Pass new arg 0 to keep old behavior.
4342 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4343 trailing chars, as it is already done for integers. Doc fixes.
4344 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4345
4346 2009-12-04 Eli Zaretskii <eliz@gnu.org>
4347
4348 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4349 Delete unused enumeration value.
4350
4351 2009-12-03 Eli Zaretskii <eliz@gnu.org>
4352
4353 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4354
4355 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4356
4357 * process.c (Fmake_network_process): Fix up the tests for
4358 "connectionless socket", so they DTRT for seqpacket sockets as well.
4359
4360 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4361
4362 * process.c (Qseqpacket): New symbol.
4363 (HAVE_SEQPACKET): New macro.
4364 (Fmake_network_process): Accept new :type `seqpacket'.
4365 (init_process): Add `seqpacket' feature when applicable.
4366 (syms_of_process): Initialize Qseqpacket.
4367
4368 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4369
4370 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4371 if entity is Qnil.
4372
4373 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4374
4375 * print.c (print_preprocess): Preprocess the key_and_value table of
4376 hashtables, even tho they're "hidden" (bug#5082).
4377
4378 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4379
4380 * frame.c (frame_make_pointer_invisible)
4381 (frame_make_pointer_visible): Declare f before statements.
4382
4383 2009-11-28 Eli Zaretskii <eliz@gnu.org>
4384
4385 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4386 omitted dependencies on lisp.h.
4387
4388 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4389
4390 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4391 is NULL.
4392
4393 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4394
4395 * frame.c (frame_make_pointer_invisible)
4396 (frame_make_pointer_visible): Just return if there isn't any selected
4397 frame.
4398
4399 * search.c (simple_search): Remove warning by making *p const.
4400
4401 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4402
4403 * xdisp.c (power_letter): Remove duplicate const.
4404
4405 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4406
4407 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4408
4409 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
4410 defaults (bug #5025).
4411
4412 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4413
4414 * insdel.c (adjust_markers_for_delete): Move it in the
4415 right direction! (bug#4803)
4416
4417 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4418
4419 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4420
4421 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4422
4423 2009-11-24 Glenn Morris <rgm@gnu.org>
4424
4425 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4426
4427 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4428
4429 * Makefile.in: Must create deps for ecrt0.o in its rule.
4430
4431 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4432 because that is what Gtk+ font dialog understands.
4433
4434 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4435 of Fcopy_sequence.
4436 (font_open_by_name): Put name given into QCname for font-object returned.
4437
4438 * frame.c (x_set_font): Save original font name as frame parameter
4439 font-parameter.
4440
4441 * xsettings.c (set_default_xft_settings): New function.
4442 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4443 is found.
4444
4445 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4446
4447 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4448 searching backwards through multibyte buffer.
4449
4450 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4451
4452 * xterm.c: #include xgselect.h.
4453 (x_initialize): Call xgselect_initialize.
4454
4455 * xsettings.c (something_changedCB): C++ comments => C comments.
4456 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4457 does that now.
4458
4459 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4460 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4461 (scroll_bar_button_cb): Remove.
4462 (create_menus): C++ comments => C comments. Don't bind grab-notify
4463 event.
4464 (xg_create_scroll_bar): Don't bind button-press-event and
4465 button-release-event.
4466
4467 * process.c: Include xgselect.h if defined (USE_GTK) ||
4468 defined (HAVE_GCONF).
4469 (wait_reading_process_output): Call xg_select for the same condition.
4470
4471 * xgselect.c (xg_select): New function to better integrate with
4472 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4473
4474 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4475
4476 * Makefile.in (XOBJ): Add xgselect.o.
4477
4478 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4479
4480 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4481 Remove ignored second argument. All callers changed.
4482 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4483 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4484 * xdisp.c (string_char_and_length): Likewise.
4485
4486 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4487
4488 * xterm.c (x_new_font):
4489 * print.c (print_object):
4490 * cmds.c (Fself_insert_command): Move declarations before statements.
4491
4492 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4493
4494 * s/cygwin.h: Remove unneeded linker flags.
4495
4496 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4497
4498 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4499
4500 * xsettings.h: Declare xsettings_get_system_font.
4501
4502 * xsettings.c (xsettings_get_system_font): New function.
4503 (init_gconf): No use initiating gconf unless we have Xft also.
4504 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4505 HAVE_GCONF.
4506
4507 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4508 add a blank entry so it doesn't collapse into nothing.
4509
4510 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4511
4512 * lread.c (Funintern): Comment out last change.
4513
4514 2009-11-19 Richard Stallman <rms@gnu.org>
4515
4516 * lread.c (Funintern): Error if symbol is t or nil.
4517
4518 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4519
4520 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4521 representation of Lisp integers.
4522 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4523
4524 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4525
4526 * lisp.h: Remove declaration of Ffont_get_system_font.
4527 * xfns.c: Move include of "xsettings.h".
4528 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4529
4530 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4531
4532 * xsettings.c (something_changedCB, Ffont_get_system_font):
4533 Check use_system_font.
4534 (syms_of_xsettings): DEFVAR font-use-system-font.
4535
4536 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4537
4538 * xfns.c (x_default_font_parameter): Remove dead assignment.
4539
4540 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4541
4542 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4543
4544 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
4545 not have FC_LCD_*. #define them if not there.
4546
4547 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
4548
4549 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4550
4551 * xterm.c (handle_one_xevent): Call xft_settings_event for
4552 ClientMessage, PropertyNotify and DestroyNotify.
4553 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4554 Call xsettings_initialize.
4555
4556 * xftfont.c (xftfont_fix_match): New function.
4557 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4558 Call xftfont_fix_match after XftFontMatch.
4559
4560 * xfont.c (xfont_driver): Initialize all members.
4561
4562 * xfns.c (x_default_font_parameter):
4563 Try font from Ffont_get_system_font.
4564 Do not get font from x_default_parameter if we got one from
4565 Ffont_get_system_font.
4566 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
4567
4568 * w32font.c (w32font_driver): Initialize all members.
4569
4570 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4571
4572 * lisp.h: Declare syms_of_xsettings.
4573
4574 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4575 Handle CONFIG_CHANGED_EVENT.
4576
4577 * ftfont.c (ftfont_filter_properties): New function.
4578
4579 * frame.c (x_set_font): Remove unused variable lval.
4580
4581 * font.h (struct font_driver): Add filter_properties.
4582
4583 * font.c (font_put_extra): Don't return if val is nil, it means
4584 boolean option is off.
4585 (font_parse_fcname): Collect all extra properties in extra_props
4586 and call filter_properties for all drivers with extra_props and
4587 font as parameter.
4588 (font_open_entity): Do not use cache, it does not pick up new
4589 fontconfig settings like hinting.
4590 (font_load_for_lface): If spec had a name in it, store it in entity.
4591
4592 * emacs.c (main): Call syms_of_xsettings.
4593
4594 * config.in: HAVE_GCONF is new.
4595
4596 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4597 xsettings.o is new.
4598
4599 2009-11-17 Kenichi Handa <handa@m17n.org>
4600
4601 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4602 back to the default font in case that no suitable font is found.
4603
4604 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4605
4606 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4607 Suggested by Chad Brown <yandros@mit.edu>.
4608 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4609
4610 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4611
4612 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4613
4614 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4615
4616 * Makefile.in: Ignore errors from mkdir when creating deps directory.
4617
4618 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4619
4620 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4621 has a parent.
4622
4623 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
4624 dependency files in deps/. Include those files into Makefile.
4625
4626 * config.in: Generated (AUTO_DEPEND).
4627
4628 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
4629
4630 * dbusbind.c (Vdbus_registered_objects_table): Rename from
4631 Vdbus_registered_functions_table, because it contains also
4632 properties. Fix docstring.
4633 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
4634
4635 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4636
4637 * alloc.c (mark_object): Don't reprocess marked strings.
4638 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4639 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4640
4641 2009-11-13 Kenichi Handa <handa@m17n.org>
4642
4643 * category.c (word_boundary_p): Adjust for the change of the
4644 semantics of Vword_combining_categories.
4645 (Vword_combining_categories): Describe the slight change of the
4646 semantics.
4647
4648 2009-11-13 Eli Zaretskii <eliz@gnu.org>
4649
4650 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4651
4652 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4653
4654 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4655
4656 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4657
4658 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
4659
4660 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4661
4662 2009-11-11 David Reitter <david.reitter@gmail.com>
4663
4664 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4665 variables to fix 2009-11-09 change.
4666
4667 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4668
4669 * process.c (ifflag_def): Make flag_sym constant.
4670 (Fnetwork_interface_info): Use a constant pointer.
4671 (ifflag_table):
4672 * xfns.c (cursor_bits):
4673 * xdisp.c (power_letter):
4674 * termcap.c (speeds, esctab):
4675 * sysdep.c (baud_convert):
4676 * keyboard.c (lispy_accent_codes, modifier_names):
4677 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4678 (jpeg_format, tiff_format, gif_format, svg_format)
4679 (interlace_start, interlace_increment, gs_format):
4680 * gtkutil.c (separator_names):
4681 * fringe.c (swap_nibble):
4682 * fns.c (base64_value_to_char, base64_char_to_value):
4683 * fileio.c (make_temp_name_tbl):
4684 * coding.c (suffixes): Make constant.
4685
4686 * frame.c (make_initial_frame):
4687 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4688 build_string.
4689 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4690
4691 * s/freebsd.h:
4692 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4693
4694 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4695 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4696
4697 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4698 * xterm.c (syms_of_xterm):
4699 * xfaces.c (syms_of_xfaces):
4700 * xdisp.c (syms_of_xdisp):
4701 * lread.c (syms_of_lread):
4702 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4703 build_string.
4704
4705 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4706
4707 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4708
4709 * fns.c (Fplist_get): Merge the active and the commented out code.
4710
4711 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4712
4713 * keyboard.h: Declare timer_check.
4714
4715 * keyboard.c (timer_check_2): New function that does what the old
4716 timer_check did.
4717 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4718 returned, i.e. don't return -1 with timers pending.
4719
4720 * process.c: Remove extern declaration of timer_check.
4721
4722 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4723 even if timer_check returned -1.
4724
4725 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4726 xg_dialog_data.
4727 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4728 the event loop.
4729 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4730 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4731 Destroy the dialog after xg_dialog_run.
4732
4733 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4734
4735 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4736
4737 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4738
4739 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4740
4741 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
4742
4743 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4744
4745 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4746
4747 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4748 w32menu.c, and nsmenu.m.
4749 Simplify the obsolete case where position is nil.
4750 (cleanup_popup_menu): New function, moved from nsmenu.m.
4751 (struct skp): Remove slot `notreal'.
4752 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4753 adjust callers.
4754 (single_menu_item): Adjust call to parse_menu_item.
4755 (syms_of_menu): Defsubr x-popup-menu.
4756 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4757 (keymap_panes): Don't export any more.
4758 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4759 (xmenu_show): Declare.
4760 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4761 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4762 * keyboard.h (parse_menu_item): Update declaration.
4763 * xmenu.c (Fx_popup_menu): Remove.
4764 (syms_of_xmenu): Don't defsubr x-popup-menu.
4765 * w32menu.c (Fx_popup_menu): Remove.
4766 (syms_of_w32menu): Don't defsubr x-popup-menu.
4767 * nsmenu.m (cleanup_popup_menu): Remove.
4768 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4769 moved to menu.c's Fx_popup_menu.
4770 (Fx_popup_menu): Remove.
4771 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4772 menu_items (it's done in menu.c already).
4773
4774 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4775
4776 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4777 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4778
4779 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
4780
4781 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
4782 xmenu_show. Hide any tooltip before opening a menu.
4783 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4784 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4785
4786 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4787
4788 Let integers use up 2 tags to give them one extra bit and thus double
4789 their range.
4790 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4791 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4792 New macros.
4793 (enum Lisp_Type): Use them. Give explicit values.
4794 (Lisp_Type_Limit): Remove.
4795 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4796 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4797 Pay attention to USE_2_TAGS_FOR_INTS.
4798 (INTEGERP): Use LISP_INT_TAG_P.
4799 * fns.c (internal_equal): Simplify the default case.
4800 (sxhash): Use case_Lisp_Int.
4801 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4802 any more.
4803 (Ftype_of): Use case_Lisp_Int.
4804 (store_symval_forwarding): Take into account the fact that Ints can
4805 now have more than one tag.
4806 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4807 buffer_slot_type_mismatch):
4808 * xfaces.c (face_attr_equal_p):
4809 * print.c (print_object):
4810 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4811 Use case_Lisp_Int.
4812
4813 2009-11-06 Eli Zaretskii <eliz@gnu.org>
4814
4815 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4816
4817 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4818 warning.
4819
4820 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4821
4822 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4823
4824 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4825
4826 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4827 ButtonPressRelease and MotionNotify (bug#4870).
4828
4829 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4830
4831 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4832
4833 * xterm.c (syms_of_xterm):
4834 * xselect.c (syms_of_xselect):
4835 * xmenu.c (syms_of_xmenu):
4836 * xfns.c (syms_of_xfns):
4837 * xfaces.c (syms_of_xfaces):
4838 * xdisp.c (syms_of_xdisp):
4839 * window.c (syms_of_window):
4840 * w32fns.c (syms_of_w32fns):
4841 * undo.c (syms_of_undo):
4842 * textprop.c (syms_of_textprop):
4843 * terminal.c (syms_of_terminal):
4844 * syntax.c (syms_of_syntax):
4845 * sound.c (syms_of_sound):
4846 * search.c (syms_of_search):
4847 * print.c (syms_of_print):
4848 * minibuf.c (syms_of_minibuf):
4849 * macros.c (syms_of_macros):
4850 * keymap.c (syms_of_keymap, initial_define_key)
4851 (initial_define_lispy_key):
4852 * keyboard.c (syms_of_keyboard):
4853 * insdel.c (syms_of_insdel):
4854 * image.c (syms_of_image):
4855 * fringe.c (syms_of_fringe):
4856 * frame.c (syms_of_frame):
4857 * fontset.c (syms_of_fontset):
4858 * fns.c (syms_of_fns):
4859 * fns.c (syms_of_fns):
4860 * fileio.c (syms_of_fileio):
4861 * fileio.c (syms_of_fileio):
4862 * eval.c (syms_of_eval):
4863 * doc.c (syms_of_doc):
4864 * dispnew.c (syms_of_display):
4865 * dired.c (syms_of_dired):
4866 * dbusbind.c (syms_of_dbusbind):
4867 * data.c (syms_of_data):
4868 * composite.c (syms_of_composite):
4869 * coding.c (syms_of_coding):
4870 * cmds.c (syms_of_cmds):
4871 * charset.c (define_charset_internal, syms_of_character):
4872 * ccl.c (syms_of_ccl):
4873 * category.c (syms_of_category, init_category_once):
4874 * casetab.c (syms_of_casetab):
4875 * casefiddle.c (syms_of_casefiddle):
4876 * callint.c (syms_of_callint):
4877 * bytecode.c (syms_of_bytecode):
4878 * buffer.c (keys_of_buffer, syms_of_buffer):
4879 * alloc.c (syms_of_alloc):
4880 * process.c (syms_of_process, init_process):
4881 * lread.c (syms_of_lread, init_obarray):
4882 * font.c (build_style_table):
4883 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4884 intern_c_string, calls to make_pure_string with
4885 make_pure_c_string. Use pure_cons instead of Fcons.
4886
4887 * process.c (socket_options): Make it const.
4888 (set_socket_option, init_process): Use a const pointer.
4889
4890 * lread.c (intern_c_string): New function.
4891 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4892 (defvar_int): Uset it. Make the name const char*.
4893
4894 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4895 (defvar_int): Update prototypes.
4896 (DEFUN, EXFUN): Support for prototypes is now required.
4897 (intern_c_string): New prototype.
4898 (struct Lisp_Subr): Make symbol_name constant.
4899
4900 * font.c (struct table_entry): Remove unused member. Make NAMES
4901 constant.
4902 (weight_table, slant_table, width_table): Make constant.
4903
4904 * emacs.c (struct standard_args): Make name and longname constant.
4905
4906 * character.h (DEFSYM): Use intern_c_string.
4907
4908 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4909
4910 * alloc.c (make_pure_c_string): New function.
4911
4912 * eval.c (Fautoload): Purecopy all arguments.
4913
4914 2009-11-05 Kenichi Handa <handa@m17n.org>
4915
4916 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4917 the buffer in case of replace.
4918
4919 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4920
4921 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4922
4923 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4924
4925 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4926 when applicable (bug#4851).
4927
4928 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4929 (P_): Support for prototypes is now required.
4930
4931 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
4932
4933 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4934 (Bug#4827).
4935
4936 2009-10-30 Eli Zaretskii <eliz@gnu.org>
4937
4938 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
4939
4940 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4941
4942 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4943
4944 * lread.c (Fload): Purecopy the file name when building
4945 Vpreloaded_file_list.
4946
4947 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4948
4949 * w32fns.c (syms_of_w32fns): Change default value of
4950 w32-scroll-lock-modifier to nil. (Bug#2827)
4951
4952 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
4953
4954 * minibuf.c (Fall_completions): Fix typos in docstring.
4955
4956 2009-10-26 Andreas Schwab <schwab@redhat.com>
4957
4958 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4959
4960 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
4961
4962 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4963 For delta < 0, skip check that only makes sense when the mini-window
4964 is going to be enlarged. (Bug#4534)
4965
4966 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
4967
4968 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4969 string in menu maps (Bug#4471).
4970
4971 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4974 FRAME_NS_VIEW on terminal frames (Bug#4765).
4975
4976 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4977
4978 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4979 DBUS_TYPE_UINTnn separately to get proper sign extension.
4980
4981 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4982 can properly handle unsigned types.
4983 (make_uid, make_gid): Remove.
4984
4985 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4986 types again.
4987
4988 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
4989 (system_process_attributes): Likewise.
4990
4991 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4992
4993 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4994
4995 * eval.c (Fautoload): Purecopy the filename. Simplify.
4996
4997 * category.c (Fdefine_category): Purecopy docstring.
4998
4999 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5000
5001 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5002
5003 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5004
5005 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
5006
5007 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5008 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5009 (Bug#4775).
5010
5011 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5012
5013 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5014 (init_fileio_once):
5015 * lisp.h (init_fileio_once): Remove.
5016 * emacs.c (main): Don't call init_fileio_once.
5017
5018 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5019
5020 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5021
5022 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5023
5024 * doprnt.c (doprnt): Fix overflow check.
5025
5026 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5027
5028 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5029
5030 * xterm.h (x_wait_for_event): Declare it.
5031
5032 * xterm.c (pending_event_wait): New variable.
5033 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5034 see pending_event_wait.eventtype.
5035 (handle_one_xevent): Don't change gravity when parent changes.
5036 (x_new_font): Call change_frame_size with new rows/columns before we
5037 try to resize the frame.
5038 (x_wait_for_event): New function.
5039 (x_set_window_size_1): Don't change gravity unless change_gravity
5040 is set.
5041 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5042 don't change frame size, instead wait for the ConfigureNotify.
5043 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5044 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5045 (x_initialize): Initialize pending_event_wait.
5046
5047 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5048 size.
5049
5050 * widget.c (EmacsFrameSetValues): Add comment.
5051 (EmacsFrameSetCharSize): Just call x_set_window_size.
5052
5053 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5054 x_wait_for_event.
5055 (flush_and_sync): Remove again.
5056 (xg_get_font_name): Suggest monospace if no previous font is known.
5057
5058 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5059
5060 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
5061 8th bit, since that only made sense in the ASCII world (bug#4751).
5062
5063 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5064
5065 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5066 processing pending events when event is filtered for input method.
5067 (Bug#3681)
5068
5069 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
5070
5071 * fns.c: Add #endif accidentally removed in previous change.
5072
5073 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5074
5075 * fns.c: Remove code for unsupported system: MAC_OS.
5076 * image.c: Likewise. Include setjmp.h.
5077
5078 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5079
5080 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5081 pixel -1 (bug #4742).
5082
5083 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5084
5085 * process.c (create_pty): Remove conditionals for no longer
5086 supported systems: UNIPLUS and RTU.
5087
5088 * xterm.c:
5089 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5090
5091 * alloc.c: Do not define struct catchtag.
5092 * eval.c: Move struct catchtag definition ...
5093 * lisp.h: ... here.
5094
5095 * image.c: Move png.h #include earlier to avoid warnings.
5096
5097 * xterm.c:
5098 * xsmfns.c:
5099 * xselect.c:
5100 * xrdb.c:
5101 * xmenu.c:
5102 * xftfont.c:
5103 * xfont.c:
5104 * xfns.c:
5105 * xfaces.c:
5106 * xdisp.c:
5107 * window.c:
5108 * widget.c:
5109 * w32xfns.c:
5110 * w32uniscribe.c:
5111 * w32term.c:
5112 * w32select.c:
5113 * w32reg.c:
5114 * w32proc.c:
5115 * w32menu.c:
5116 * w32inevt.c:
5117 * w32heap.c:
5118 * w32font.c:
5119 * w32fns.c:
5120 * w32console.c:
5121 * w32.c:
5122 * w16select.c:
5123 * vm-limit.c:
5124 * unexsol.c:
5125 * unexec.c:
5126 * unexcw.c:
5127 * unexaix.c:
5128 * undo.c:
5129 * tparam.c:
5130 * textprop.c:
5131 * terminfo.c:
5132 * terminal.c:
5133 * termcap.c:
5134 * term.c:
5135 * syntax.c:
5136 * sound.c:
5137 * sheap.c:
5138 * search.c:
5139 * scroll.c:
5140 * region-cache.c:
5141 * regex.c:
5142 * ralloc.c:
5143 * process.c:
5144 * print.c:
5145 * nsterm.m:
5146 * nsselect.m:
5147 * nsmenu.m:
5148 * nsimage.m:
5149 * nsfont.m:
5150 * nsfns.m:
5151 * msdos.c:
5152 * minibuf.c:
5153 * menu.c:
5154 * marker.c:
5155 * macros.c:
5156 * keymap.c:
5157 * keyboard.c:
5158 * intervals.c:
5159 * insdel.c:
5160 * indent.c:
5161 * gtkutil.c:
5162 * ftxfont.c:
5163 * ftfont.c:
5164 * fringe.c:
5165 * frame.c:
5166 * fontset.c:
5167 * font.c:
5168 * fns.c:
5169 * floatfns.c:
5170 * filelock.c:
5171 * fileio.c:
5172 * emacs.c:
5173 * editfns.c:
5174 * dosfns.c:
5175 * doprnt.c:
5176 * doc.c:
5177 * dispnew.c:
5178 * dired.c:
5179 * dbusbind.c:
5180 * data.c:
5181 * composite.c:
5182 * coding.c:
5183 * cmds.c:
5184 * cm.c:
5185 * chartab.c:
5186 * charset.c:
5187 * character.c:
5188 * ccl.c:
5189 * category.c:
5190 * casetab.c:
5191 * casefiddle.c:
5192 * callproc.c:
5193 * callint.c:
5194 * bytecode.c:
5195 * buffer.c:
5196 * atimer.c: Include setjmp.h. (Bug#4643)
5197
5198 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5199
5200 Remove leftover table unibyte_to_multibyte_table.
5201 * character.c (unibyte_to_multibyte_table): Remove.
5202 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5203 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5204 * character.h (UNIBYTE_TO_CHAR): New macro.
5205 (MAKE_CHAR_MULTIBYTE): Use it.
5206 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5207 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5208 (message_dolog, set_message_1):
5209 * search.c (Freplace_match):
5210 * editfns.c (Fcompare_buffer_substrings):
5211 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5212 (concat):
5213 * insdel.c (copy_text, count_size_as_multibyte):
5214 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5215 * term.c (produce_glyphs):
5216 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5217 * regex.c (RE_CHAR_TO_MULTIBYTE):
5218 * cmds.c (internal_self_insert):
5219 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5220
5221 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5222
5223 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5224
5225 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5226
5227 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
5228
5229 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5230
5231 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5232
5233 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5234 still needed under Tiger.
5235
5236 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5237
5238 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5239 __Apple__.
5240
5241 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5242
5243 2009-10-15 Kenichi Handa <handa@m17n.org>
5244
5245 * print.c (print_object): Escape a symbol like "2E10" too.
5246
5247 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
5248
5249 Cleanups and changes for 64-bit compile under Snow Leopard.
5250 Based on suggestions by Erik Charlebois.
5251
5252 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5253
5254 * nsfont.m (ns_char_width): Replace deprecated call.
5255 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5256 cast argument.
5257 (nsfont_open): Use ns_char_width() everywhere.
5258 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
5259
5260 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5261
5262 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5263 where appropriate.
5264
5265 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5266 where appropriate.
5267 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5268 Use stringWithUTF8String.
5269 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5270
5271 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5272 Add formal protocol mention to inheritance.
5273 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5274
5275 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5276 Fix printf format.
5277 (ns_query_color): Use CGFloat where appropriate.
5278 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
5279 (EmacsScroller-mouseDown:): Use long format in printf, and cast
5280 argument.
5281
5282 * config.in (NS_HAVE_NSINTEGER): Drop.
5283
5284 * dbusbind.c (dbus-method-return-internal)
5285 (dbus-method-error-internal): Use long format in printf, and cast
5286 argument.
5287
5288 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5289 in printf, and cast argument.
5290
5291 * process.c (list_processes_1): Use long format in printf, and
5292 cast argument.
5293
5294 2009-10-11 Glenn Morris <rgm@gnu.org>
5295
5296 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5297
5298 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5299
5300 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5301 menu bar with a small width so it doesn't enlarge the frame.
5302
5303 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
5304
5305 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5306
5307 2009-10-06 Glenn Morris <rgm@gnu.org>
5308
5309 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5310 SOME_MACHINE_LISP (this enters indirectly via DOC).
5311
5312 2009-10-05 Eli Zaretskii <eliz@gnu.org>
5313
5314 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5315
5316 2009-10-04 Eli Zaretskii <eliz@gnu.org>
5317
5318 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5319 Doc fix.
5320
5321 2009-10-03 Martin Rudalics <rudalics@gmx.at>
5322
5323 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5324
5325 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
5326
5327 * lisp.h (Qdelete_directory_internal): Remove, because it is not
5328 used anymore outside fileio.c.
5329
5330 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5331
5332 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
5333
5334 * lisp.h (Qdelete_directory_internal):
5335 Declare, instead of Qdelete_directory.
5336
5337 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5338
5339 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5340
5341 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5342
5343 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
5344
5345 * fileio.c (Fdelete_directory_internal): Rename from
5346 Fdelete_directory. It is not a command anymore. It has no file
5347 name handler.
5348
5349 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5350
5351 * xdisp.c (get_next_display_element): Use an enum in last change.
5352
5353 2009-09-28 Kenichi Handa <handa@m17n.org>
5354
5355 * xdisp.c (get_next_display_element): Pay attention to
5356 unibyte_display_via_language_environment in handling
5357 Vnobreak_char_display.
5358
5359 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5360
5361 * nsterm.h (ns_app_name): New extern variable.
5362
5363 * nsterm.m (ns_app_name): New variable.
5364 (ns_term_init): Set and use it.
5365 (ns_term_shutdown): Use it.
5366
5367 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5368 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5369
5370 * nsfns.m (ns_set_name_iconic, ns_set_name)
5371 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5372 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5373
5374 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5375 Remove double-casting in client_data comparison.
5376
5377 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5378
5379 * keyboard.c (make_lispy_event): Remember last wheel direction.
5380 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5381
5382 2009-09-26 Glenn Morris <rgm@gnu.org>
5383
5384 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5385 internal.elc. Add term/pc-win.elc.
5386 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5387 term/x-win.elc.
5388 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5389 term/w32-win.elc.
5390 (NS_SUPPORT): New.
5391 (lisp): Add NS_SUPPORT.
5392 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5393
5394 2009-09-25 David Reitter <david.reitter@gmail.com>
5395
5396 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5397 on Mac OS X 10.6+ (bug#4513).
5398
5399 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5400
5401 * frame.c (xrdb_get_resource): Return nil for empty string resources;
5402 some parts of Emacs code (like font selection) don't grok them.
5403 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
5404
5405 2009-09-24 Andreas Schwab <schwab@redhat.com>
5406
5407 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5408
5409 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5410
5411 * dired.c (Fdirectory_files): Fix typo in docstring.
5412
5413 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5414
5415 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5416 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5417 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5418 under GNUstep.
5419 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5420
5421 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5422 glyph advancement.
5423
5424 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5425
5426 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
5427 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
5428
5429 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5430 deleted (bug #4492).
5431
5432 * nsfont.m (Vns_reg_to_script): New lisp variable.
5433 (syms_of_nsfont): Declare it.
5434 (ns_registry_to_script): New function.
5435 (ns_get_req_script): Call it.
5436 (ns_findfonts): Don't give up on non-unicode registry.
5437
5438 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5439
5440 2009-09-20 Tom Tromey <tromey@redhat.com>
5441
5442 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5443 batch mode (bug#4228).
5444
5445 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
5446
5447 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
5448 carefully. (Bug #4339)
5449
5450 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
5451
5452 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
5453
5454 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5455
5456 * emacs.c (inhibit_x_resources): Update doc string for NS.
5457 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
5458 legacy code for -NXHost. Fix error printf in daemon case.
5459
5460 * nsterm.h (ns_no_defaults): Remove.
5461
5462 * nsterm.m (ns_no_defaults): Remove.
5463 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5464 (ns_use_qd_smoothing): Remove legacy variable.
5465 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5466 don't update the NSWindow itself.
5467 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
5468 state detection and store user rect ourselves. (Bug #3581)
5469
5470 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5471 ns_use_qd_smoothing.
5472
5473 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5474 platform versions. Drop support for emacs-20-style face specs.
5475 (x-close-connection): Drop PSFlush() under OS X.
5476 (x-focus-frame): Activate the app first. (Bug #4180)
5477
5478 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
5479
5480 * emacs.c (inhibit_x_resources): New variable.
5481 (main) [HAVE_NS]: Don't process --quick command line option.
5482 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5483
5484 * lisp.h (inhibit_x_resources): Declare it extern.
5485
5486 * w32reg.c (x_get_string_resource):
5487 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5488
5489 2009-09-17 Eli Zaretskii <eliz@gnu.org>
5490
5491 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5492 Add lisp/term/internal.elc.
5493
5494 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5495
5496 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5497 (bug#4461).
5498
5499 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5500
5501 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5502
5503 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5504 (OBJECTS_MACHINE): Remove, unused.
5505
5506 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5507
5508 * frame.c (x_get_resource_string): Remove unused.
5509
5510 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5511
5512 * xterm.c (x_new_font): Call change_frame_size before calling
5513 x_set_window_size, in case frame size won't change.
5514
5515 * frame.c (x_set_font): Remove dead code.
5516
5517 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5518
5519 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5520
5521 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5522
5523 * lread.c (Fload): Don't output a message after loading an obsolete
5524 package any more (done in Lisp now).
5525
5526 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
5527
5528 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5529
5530 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5531
5532 * keymap.c (Fwhere_is_internal): Use nconc2.
5533
5534 2009-09-11 Alan Mackenzie <acm@muc.de>
5535
5536 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5537 batch mode.
5538
5539 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5540
5541 * xdisp.c (display_mode_element): Detect cycles.
5542
5543 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5544
5545 * keymap.c (where_is_internal): Don't erroneously return nil right after
5546 filling the cache.
5547 (where_is_internal_1): Fix up typo.
5548
5549 2009-09-11 Glenn Morris <rgm@gnu.org>
5550
5551 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5552 share a common doc-string.
5553
5554 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5555
5556 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5557 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5558
5559 * keymap.c (QCadvertised_binding): New constant.
5560 (syms_of_keymap): Initialize it.
5561 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5562 if applicable.
5563
5564 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5565
5566 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5567 (parse_menu_item): Streamline since bindings are recomputed all the
5568 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5569 more and don't support lmenu's menu-alias any more either.
5570
5571 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5572 (where_is_internal): Strip it down to only traverse the keymaps.
5573 Move the cache handling from Fwhere_is_internal to here.
5574 (Fwhere_is_internal): Move the handling of remapping and the choice of
5575 the best binding from where_is_internal to here.
5576 Unify the cached/noncached paths, so remapping is also handled
5577 correctly when the cache is used, and so the cache can be used to
5578 speed up remap-handling when applicable.
5579 Give preference to non-remapped bindings.
5580 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5581 non-remapped bindings.
5582 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5583 command remapping.
5584
5585 * xdisp.c (display_mode_element): Move list length limit from 50 to
5586 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5587
5588 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
5589
5590 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5591
5592 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5593
5594 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5595 (Bug#4334)
5596
5597 * keymap.c (where_is_internal): Filter out shadowed remappings.
5598 Assume that where_is_internal returns unshadowed bindings to simplify
5599 the code and get rid of the gotos. Use ASIZE.
5600
5601 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5602
5603 * xterm.c (x_focus_changed): If we get a focusout and pointer
5604 is invisible, make it visible.
5605
5606 * xterm.h: Remove condition for declaration of
5607 x_*_window_to_frame.
5608
5609 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5610
5611 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5612 initial terminal as well.
5613
5614 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5615
5616 * xterm.h: Rename x_non_menubar_window_to_frame to
5617 x_menubar_window_to_frame.
5618
5619 * xterm.c: Remove declarations also in xterm.h.
5620 (XTmouse_position): Do not return valid positions
5621 for clicks in the menubar and the toolbar for Gtk+.
5622
5623 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5624 if the widget for the event has the same top level as a frame,
5625 return the frame.
5626 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5627 internal windows, bug #4122.
5628 (x_non_menubar_window_to_frame): Remove.
5629
5630 2009-09-02 Glenn Morris <rgm@gnu.org>
5631
5632 * buffer.c (default-major-mode): Move most of the doc from here...
5633 (major-mode): ... to here.
5634
5635 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
5636
5637 * process.c (wait_reading_process_output): Keep the descriptor
5638 when pty is used by a non-child process, e.g., in I/O buffer of
5639 GDB this allows inferior to be restarted.
5640
5641 2009-08-29 Eli Zaretskii <eliz@gnu.org>
5642
5643 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5644 both branches into one.
5645
5646 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5647
5648 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5649 (main): Use enable-multibyte-characters rather than
5650 default-enable-multibyte-characters. Output a warning message when
5651 running a unibyte session.
5652
5653 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5654
5655 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5656 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5657 (copy_data_segment): Also copy __program_vars section.
5658 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5659 (dump_it) [LC_DYLD_INFO]: Use it.
5660
5661 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5662
5663 2009-08-28 Eli Zaretskii <eliz@gnu.org>
5664
5665 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5666 $(SRC)/buildobj.h.
5667 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5668 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5669 $(SRC)/buildobj.h.
5670 (clean): Add buildobj.h.
5671
5672 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5673
5674 * print.c (print_object): Set escapeflag to 1 when printing
5675 hashtable keys and values.
5676
5677 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5678
5679 * lread.c (read_integer): Use doubles (and potentially return a float
5680 number) as we do in string-to-number.
5681 (read1): Use strtol to read integers, signal errors on strtol's
5682 overflow and use floats if strtol's output is too large for
5683 Elisp integers.
5684
5685 2009-08-27 Eli Zaretskii <eliz@gnu.org>
5686
5687 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5688 (make-buildobj-SH): Fix last change.
5689 (SRC): Move to before where it's first used.
5690
5691 2009-08-27 Kenichi Handa <handa@m17n.org>
5692
5693 * process.c (send_process): Use encode_coding_object instead of
5694 encode_coding_string to perform eol-conversion even if the string
5695 is unibyte.
5696
5697 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5698 character.
5699
5700 * cmds.c (Fself_insert_command): Avoid unnecessay
5701 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
5702
5703 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5704
5705 * callproc.c (Fcall_process): Remove always true #if.
5706
5707 * lisp.h: Replace #if 0 code for checking with text pointing to
5708 the --enable-checking configure flag.
5709
5710 * emacs.c (main): Mention the --enable-profiling configure flag
5711 instead of using CFLAGS.
5712
5713 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
5714
5715 * Makefile.in (buildobj.h): New target.
5716 (doc.o): Depend on it.
5717 (temacs${EXEEXT}): Don't generate buildobj.lst.
5718 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5719 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5720 ($(BLD)/doc.$(O)): Depend on it.
5721 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5722 provided by Eli Zaretskii.)
5723 ($(TEMACS)): Don't generate buildobj.lst.
5724 * doc.c: Include buildobj.h.
5725 (buildobj): New static variable.
5726 (Fsnarf_documentation): Use it, instead of opening and reading
5727 buildobj.lst.
5728
5729 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
5730
5731 * dbusbind.c (Fdbus_call_method)
5732 (Fdbus_call_method_asynchronously): Use English numeric format for
5733 timeout values in doc string.
5734
5735 2009-08-25 Kenichi Handa <handa@m17n.org>
5736
5737 * alloc.c (mark_char_table): New function.
5738 (mark_object): Use mark_char_table for a char-table.
5739
5740 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5741 (CHAR_TABLE_REF): Use it.
5742
5743 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
5744
5745 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5746 before invoking the newly build emacs to check for load-path
5747 shadowing.
5748
5749 2009-08-22 Glenn Morris <rgm@gnu.org>
5750
5751 * Makefile.in (bootstrap_exe): New variable.
5752 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5753 Use ${bootstrap_exe}.
5754
5755 2009-08-22 Eli Zaretskii <eliz@gnu.org>
5756
5757 * coding.h (encode_coding_string): Don't encode unibyte strings.
5758 (Bug#4047)
5759
5760 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
5761
5762 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5763
5764 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5765 intended as hotfix only.
5766 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5767
5768 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5769
5770 * nsterm.m (ns_get_color): Update documentation properly for last
5771 change, and clean up loose ends in the code left by it. Fix
5772 longstanding bug with 16-bit hex parsing, and add support for
5773 yet another X11 format (rgb:r/g/b) for compatibility.
5774 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5775 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5776
5777 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5778
5779 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5780
5781 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
5782
5783 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5784 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5785 (xd_initialize, xd_pending_messages): Check, whether
5786 $DBUS_SESSION_BUS_ADDRESS is set.
5787
5788 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5789
5790 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5791
5792 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5793
5794 2009-08-20 Glenn Morris <rgm@gnu.org>
5795
5796 * emacs.c (system-type): Doc fix.
5797
5798 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5799
5800 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5801 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5802
5803 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
5804
5805 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5806 New functions.
5807 (xd_initialize): Revert change from 2009-08-16.
5808
5809 2009-08-18 Kenichi Handa <handa@m17n.org>
5810
5811 * fontset.c (Ffontset_font): If a nil element is found in a
5812 font-group vector, return nil.
5813
5814 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
5815
5816 * process.c (status_notify): Don't perform redisplay.
5817 (Fdelete_process, list_processes_1, process_send_signal):
5818 Expliticly perform redisplay.
5819 (wait_reading_process_output): Always check process status, but
5820 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5821
5822 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
5823
5824 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
5825 (XFLOAT_INIT): New macro for storing a float value.
5826 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5827 * fns.c (sxhash): Copy out the value of a float in order to
5828 examine its bytes.
5829 * dbusbind.c (xd_append_arg): Likewise.
5830
5831 * emacs.c (main): Don't call syms_of_data twice.
5832
5833 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
5834
5835 * dbusbind.c (xd_initialize): Add connection file descriptor to
5836 input_wait_mask, in order to let select() detect, whether a new
5837 message has been arrived.
5838 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
5839
5840 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
5841
5842 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5843 New functions.
5844
5845 * lisp.h (xd_pending_messages): Declare.
5846
5847 * keyboard.c (readable_events): Call xd_pending_messages.
5848
5849 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
5850
5851 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
5852
5853 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5854
5855 * buffer.c (set_buffer_internal_1)
5856 (swap_out_buffer_local_variables): Check for unbound local
5857 variables (Bug#4138).
5858
5859 2009-08-14 Eli Zaretskii <eliz@gnu.org>
5860
5861 * process.c (create_pty): Fix last change.
5862
5863 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
5864
5865 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5866 (xbm_load_image): Caller changed.
5867 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
5868
5869 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
5870
5871 * process.c (create_pty): New function.
5872 (Fstart_process): Use it to allow Emacs to just associate a pty
5873 with the buffer. See associated change in gdb-mi.el.
5874 (list_processes_1): Deal with no program name.
5875 (start_process_unwind): Use pid == -2 to mean no process.
5876
5877 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5878
5879 * cmds.c (nonundocount): New global variable.
5880 (keys_of_cmds): Initialize it.
5881 (Fself_insert_command): Use it to combine upto 20 sequential chars
5882 into a single undo entry, just like the Qself_insert_command code in
5883 keyboard.c does.
5884 Call frame_make_pointer_invisible, also like the Qself_insert_command
5885 code in keyboard.c does.
5886 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5887 than its own local replacement for it.
5888
5889 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
5890
5891 * fns.c (concat): Don't re-set string length to its current value.
5892
5893 * coding.h (decode_coding_string, encode_coding_string):
5894 Use SBYTES macro.
5895
5896 * doprnt.c (doprnt_lisp): Delete unused function.
5897 (doprnt): Merge with doprnt1, discarding lispstrings code.
5898 * lisp.h (doprnt_lisp): Don't declare.
5899
5900 2009-08-07 Juri Linkov <juri@jurta.org>
5901
5902 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5903
5904 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5905
5906 * print.c (syms_of_print): Undo previous change.
5907
5908 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5909
5910 * lread.c (read1, syms_of_lread): Read hashtables back from the
5911 readable format.
5912
5913 * print.c (print_preprocess, print_object): Print hashtables fully
5914 and readably.
5915 (syms_of_print): Provide 'hashtable-print-readable.
5916
5917 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5918
5919 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5920 no family set.
5921 (nsfont_open): Handle case when entity has no family.
5922
5923 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5924
5925 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5926 element, not a list, for match case.
5927
5928 2009-07-28 Kenichi Handa <handa@m17n.org>
5929
5930 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5931 rigidly.
5932
5933 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5934 font_parse_xlfd. Check font properties more rigidly.
5935
5936 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5937
5938 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5939 bsd-common.h.
5940
5941 2009-07-27 Kenichi Handa <handa@m17n.org>
5942
5943 * xfaces.c (face_with_height): Call font_clear_prop.
5944
5945 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
5946
5947 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5948
5949 * xterm.c (x_term_init): Use Qx.
5950
5951 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5952
5953 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
5954 (ns_get_color): Revert 2009-07-16 change.
5955
5956 2009-07-25 Eli Zaretskii <eliz@gnu.org>
5957
5958 * lread.c (syms_of_lread) <force_load_messages>: New variable.
5959 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
5960
5961 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
5962
5963 * coding.h (decode_coding_string, encode_coding_string):
5964 Use SCHARS macro.
5965
5966 * lread.c: Rewrite 2009-07-21 changes.
5967 (load_depth): Delete.
5968 (Qload_in_progress): New variable.
5969 (load_unwind): Don't reference load_depth or load_in_progress.
5970 (Fload): Likewise; specbind Qload_in_progress instead.
5971 (init_lread): Don't initialize load_depth.
5972 (syms_of_lread): Initialize and protect Qload_in_progress.
5973
5974 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5975
5976 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5977
5978 2009-07-23 Yavor Doganov <yavor@gnu.org>
5979
5980 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5981
5982 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5983
5984 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
5985 Bugs 3792, 3720, 2402.
5986 (ns_lookup_indexed_color): Check for bad index.
5987 (ns_index_color): Init unused slot to 0.
5988 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5989 Bug 3714, possibly 3082.
5990
5991 2009-07-22 Jason Rumney <jasonr@gnu.org>
5992
5993 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5994 Position IME window at cursor (Bug#2570).
5995 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5996 (globals_of_w32fns): Dynamically load functions required above.
5997
5998 * w32term.c (w32_draw_window_cursor): Send message to reposition
5999 any IME window.
6000
6001 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * fileio.c: Revert 2009-07-16 changes.
6004 (Vauto_save_include_big_deletions): New variable.
6005 (Fdo_auto_save): Disable auto-save only if
6006 auto-save-include-big-deletions is nil.
6007
6008 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6011 the overflowed pixels into account (Bug#3879).
6012
6013 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
6014
6015 * lread.c (load_depth): New variable.
6016 (Fload, load_unwind, init_lread): Set it to the load recursion
6017 depth; set load_in_progress as a simple boolean based on the
6018 current load_depth. (Bug#3892)
6019
6020 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6021
6022 * nsfont.m (ns_has_attribute): Remove.
6023 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6024
6025 2009-07-18 Juri Linkov <juri@jurta.org>
6026
6027 * process.c (Fset_process_query_on_exit_flag): Mention killing
6028 a buffer in docstring.
6029
6030 2009-07-17 Kenichi Handa <handa@m17n.org>
6031
6032 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6033
6034 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6035
6036 * nsfns.m (Fns_set_alpha): Remove function.
6037 (syms_of_nsfns): Don't defsubr it.
6038
6039 * nsterm.m (ns_get_color): Remove incompatible color formats.
6040 (ns_color_to_lisp): Generate #rrggbb color format string.
6041
6042 2009-07-16 Richard Stallman <rms@gnu.org>
6043
6044 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6045 (Fset_buffer_auto_saved): Handle save_length = -2.
6046
6047 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
6048
6049 * xterm.c (Qx_gtk_map_stock): New var.
6050
6051 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6052 of calling intern each time.
6053
6054 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6055
6056 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6057 does tiling.
6058
6059 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6060
6061 2009-07-14 Kenichi Handa <handa@m17n.org>
6062
6063 * font.c (font_vconcat_entity_vectors): New function.
6064 (struct font_sort_data): New member font_driver_preference.
6065 (font_compare): Check font_driver_preference.
6066 (font_sort_entities): The format of the first argument changed.
6067 (font_delete_unmatched): Likewise.
6068 (font_list_entities): The return type changed.
6069 (font_select_entity): The format of the second argument changed.
6070 (font_find_for_lface): Adjuste for the above changes.
6071 Don't suppress the checking of C even if the repertory supports it.
6072 (Flist_fonts): Adjust for the above changes.
6073
6074 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6075 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
6076 Reject a font who has adstyle property that is different from a
6077 langname derived from registry property.
6078 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
6079
6080 2009-07-13 Eli Zaretskii <eliz@gnu.org>
6081
6082 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6083 local copy of dirfilename.
6084
6085 2009-07-13 Kenichi Handa <handa@m17n.org>
6086
6087 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6088 against max_char.
6089
6090 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6091 calling XSYMBOL (sym).
6092
6093 2009-07-11 Eli Zaretskii <eliz@gnu.org>
6094
6095 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6096 New function.
6097 (directory_files_internal) [WINDOWSNT]:
6098 Bind w32-get-true-file-attributes to either t or nil, depending whether
6099 the filesystem of the directory is fast or slow.
6100
6101 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6102 file name.
6103 (is_slow_fs): New function.
6104 (stat): Use it to determine whether to issue more system calls to
6105 get accurate file attributes, when w32-get-true-file-attributes is
6106 `local'.
6107
6108 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6109
6110 * xfns.c (Fx_select_font): Remember last font selected in
6111 x_last_font_name and use that the next time. Also try the frame
6112 parameter font-parameter as default to the font dialog.
6113
6114 2009-07-10 Kenichi Handa <handa@m17n.org>
6115
6116 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6117
6118 2009-07-09 Eli Zaretskii <eliz@gnu.org>
6119
6120 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6121
6122 * w32.c (stat): Treat UNC file names as residing on remote
6123 drives. (Bug#3542)
6124
6125 2009-07-09 Kenichi Handa <handa@m17n.org>
6126
6127 * fontset.c (fontset_find_font): Fix previous change.
6128
6129 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
6130
6131 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6132 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6133 error flag.
6134
6135 2009-07-08 Kenichi Handa <handa@m17n.org>
6136
6137 * fontset.c (fontset_find_font): Fix the logic of handling
6138 charset_matched.
6139 (font_for_char): Delete unused var.
6140 (generate_ascii_font_name): Delete it.
6141
6142 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6143
6144 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6145 (encode_coding_sjis): Fix the code range check.
6146
6147 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
6148
6149 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6150 (Fexpand_file_name): Copy string data properly (Bug#3772).
6151
6152 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6153
6154 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6155 first MapNotify.
6156
6157 2009-07-07 Kenichi Handa <handa@m17n.org>
6158
6159 * character.h (unibyte_has_multibyte_table): Delete extern.
6160 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6161
6162 * charset.c (Fset_charset_priority): Update charset_unibyte.
6163 (syms_of_charset): Initialize charset_unibyte.
6164
6165 * character.c (unibyte_has_multibyte_table): Delete it.
6166 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6167 charset_unibyte.
6168 (multibyte_char_to_unibyte_safe): Likewise.
6169 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6170
6171 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6172 (x_produce_glyphs): Likewise.
6173
6174 * .gdbinit (xcharset): Fix the treating $arg0.
6175
6176 2009-07-04 Eli Zaretskii <eliz@gnu.org>
6177
6178 Emulation of `getloadavg' on MS-Windows.
6179 * w32.c: Include float.h.
6180 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6181 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6182 (get_native_system_info, get_system_times): New functions.
6183 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6184 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6185 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6186 g_b_init_get_system_times, and num_of_processors.
6187
6188 2009-07-03 Jason Rumney <jasonr@gnu.org>
6189
6190 * w32term.c (w32_initialize): Use standard types.
6191
6192 2009-07-03 Eli Zaretskii <eliz@gnu.org>
6193
6194 * dired.c (Ffile_attributes): Decode user and group names by the
6195 locale's encoding. (Bug#3443)
6196
6197 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6198
6199 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6200 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6201
6202 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6203
6204 * term.c (init_tty): Remove spurious #ifdef.
6205
6206 * m/mips.h: Mention this file is also used for netbsd.
6207 * m/pmax.h: Remove file.
6208
6209 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6210
6211 * xterm.h (struct x_display_info): Add invisible_cursor.
6212 (struct x_output): Add current_cursor.
6213
6214 * xterm.c (XTtoggle_invisible_pointer): New function.
6215 (x_define_frame_cursor): Don't define cursor if invisible or the
6216 same as before. Set current_cursor.
6217 (x_create_terminal): Set toggle_invisible_pointer_hook.
6218
6219 * xfns.c (make_invisible_cursor): New function.
6220 (x_set_mouse_color): Call make_invisible_cursor.
6221 Set current_cursor.
6222 (x_window): Set current_cursor.
6223
6224 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6225
6226 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6227 inserting a character.
6228 (read_avail_input): Call frame_make_pointer_visible.
6229
6230 * frame.c (Vmake_pointer_invisible): New variable.
6231 (frame_make_pointer_invisible, frame_make_pointer_visible):
6232 New functions.
6233 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6234
6235 * frame.h: Declare frame_make_pointer_invisible and
6236 frame_make_pointer_visible.
6237 (struct frame): Add pointer_invisible.
6238
6239 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6240
6241 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6242 frame isn't visible.
6243 (xg_frame_resized): If width/height is -1, get size of window
6244 from X server.
6245
6246 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6247 for MapNotify.
6248
6249 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
6250 here or call change_frame_size. Just call flush_and_sync.
6251 (flush_and_sync): Reintroduce.
6252
6253 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
6254
6255 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
6256
6257 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6258 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6259
6260 * frame.h: Declare Qsticky.
6261
6262 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6263
6264 * nsfns.m (ns_frame_parm_handlers): Ditto.
6265
6266 * frame.c: Declare Qsticky.
6267 (frame_parms): Add sticky.
6268
6269 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6270
6271 * xterm.h: Declare x_set_sticky.
6272
6273 * xterm.c (x_set_sticky): New function.
6274
6275 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6276 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6277 xg_tool_bar_proxy_help_callback.
6278
6279 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6280
6281 * frame.c: Qmaximized is new.
6282 (x_set_frame_parameters): Do not handle fullscreen specially.
6283 Only set width and height if explicitly set.
6284 (x_set_fullscreen): Handle Qmaximized.
6285 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6286 (syms_of_frame): Initialize Qmaximized.
6287
6288 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6289 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
6290
6291 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
6292 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6293 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
6294 set gravity to NorthWestGravity when USE_GTK.
6295 (set_wm_state): New function.
6296 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
6297 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6298 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
6299 or the case when no window manager is running. That means remove calls
6300 to x_real_positions and x_fullscreen_adjust.
6301
6302 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6303 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6304 flush_and_sync.
6305 (xg_height_changed): New function.
6306 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
6307 and gtk_window_set_policy. Set frame gravity after parsing the
6308 geometry string.
6309 (xg_update_frame_menubar, free_frame_menubar)
6310 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6311 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6312 Remove calls to xg_frame_set_char_size.
6313
6314 2009-07-01 Kenichi Handa <handa@m17n.org>
6315
6316 * keyboard.c (decode_keyboard_code): New function.
6317 (tty_read_avail_input): Decode the input bytes if necessary.
6318
6319 * coding.c (setup_coding_system):
6320 Initialize coding->carryover_bytes to 0.
6321 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6322 use Qno_conversion.
6323
6324 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6325
6326 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6327
6328 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
6329
6330 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
6331
6332 2009-06-30 Jason Rumney <jasonr@gnu.org>
6333
6334 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6335 is already loaded.
6336 Set user model ID if supported (bug#1849).
6337
6338 2009-06-29 Jim Meyering <meyering@redhat.com>
6339
6340 Remove useless if-before-xfree test.
6341 * nsfont.m (nsfont_close): Remove useless test.
6342 * term.c (delete_tty): Likewise.
6343 * w32.c (system_process_attributes): Likewise.
6344 * w32font.c (w32font_close): Likewise.
6345 * xfaces.c (x_free_gc): Likewise.
6346 * xselect.c (buffer): Likewise.
6347
6348 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6349
6350 * process.c (send_process): Keep decoded string in a local
6351 variable and protect it from GC. (Bug#3521)
6352
6353 2009-06-28 Eli Zaretskii <eliz@gnu.org>
6354
6355 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6356 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6357
6358 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
6359
6360 * xdisp.c (start_display, handle_face_prop)
6361 (move_it_vertically_backward, cursor_row_fully_visible_p)
6362 (redisplay_window, try_window_id, produce_image_glyph):
6363 Delete some #ifdef-ed out code chunks that are now obsolete.
6364
6365 * xterm.c (x_update_window_begin, x_new_focus_frame)
6366 (x_scroll_bar_handle_click, handle_one_xevent)
6367 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6368 (x_make_frame_visible, x_make_frame_invisible)
6369 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6370 code chunks that are now obsolete.
6371
6372 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
6373
6374 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6375 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6376 for hours, when optimzation is enabled.
6377 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6378 (xd_read_message): Make them static.
6379
6380 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6381
6382 * term.c (turn_on_face): Allow simultaneously bold and dim
6383 terminal faces (Bug#3530).
6384
6385 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
6386
6387 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6388
6389 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6390 truncation glyphs (Bug#3686).
6391
6392 2009-06-27 Glenn Morris <rgm@gnu.org>
6393
6394 * m/pmax.h: Restore file, with only netbsd portions.
6395
6396 2009-06-26 David Reitter <david.reitter@gmail.com>
6397
6398 * nsterm.m (keydown): Avoid infinite loop.
6399
6400 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6401
6402 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6403 the arg FORCE_SYMBOL.
6404
6405 2009-06-25 Kenichi Handa <handa@m17n.org>
6406
6407 * fontset.c (fontset_find_font): When a usable rfont_def is found
6408 in a fallback font-group, make it the first element of the group.
6409
6410 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
6411
6412 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6413
6414 2009-06-24 Kenichi Handa <handa@m17n.org>
6415
6416 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6417 set for C.
6418 (fontset_font): Record the availability of a font for C both in
6419 the realized fontsets of the current one and the default one.
6420
6421 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6422
6423 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6424 conditional, it is always defined on AIX.
6425
6426 2009-06-23 Miles Bader <miles@gnu.org>
6427
6428 * window.c (Vrecenter_redisplay): New variable.
6429 (syms_of_window): Initialize it.
6430 (Qtty): New extern declaration.
6431 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6432
6433 2009-06-23 Jim Meyering <meyering@redhat.com>
6434
6435 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6436 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
6437 pointer dereferences are guaranteed to be valid.
6438
6439 2009-06-23 Kenichi Handa <handa@m17n.org>
6440
6441 * emacs.c (main): Call init_font ().
6442
6443 * font.h (Vfont_log): Extern it.
6444 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6445
6446 * font.c (font_sort_entities, font_list_entities)
6447 (font_matching_entity, font_open_entity)
6448 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6449 (Vfont_log): Delete static.
6450 (font_log_env_checked): Delete this variable.
6451 (font_add_log): Don't check font_log_env_checked.
6452 (font_deferred_log): Check Vfont_log.
6453 (init_font): New function.
6454
6455 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6456
6457 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6458
6459 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6460
6461 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6462
6463 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6464 (face_for_char): Don't call font_deferred_log here.
6465 (font_for_char): Likewise.
6466
6467 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
6468
6469 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6470 rather than its background_width for drawing the overline and
6471 underline (Bug#489).
6472
6473 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6474 rather than its background_width for drawing the overline and
6475 underline (Bug#489).
6476 (xg_default_icon_file): New variable.
6477 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6478 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
6479
6480 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6481 (load_overlay_strings): Remove externs.
6482 (fast_find_position): Function deleted.
6483 (mouse_face_from_buffer_pos): New function, based on
6484 fast_find_position. Correctly handle before-strings,
6485 display-strings, and after-strings (Bug#1220).
6486 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6487
6488 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6489
6490 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
6491 (move_it_in_display_line_to, move_it_in_display_line_to)
6492 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6493
6494 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6495
6496 * Branch for 23.1.
6497
6498 2009-06-21 Jason Rumney <jasonr@gnu.org>
6499
6500 * w32term.c (keyboard_codepage): New static variable.
6501 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6502 (w32_read_socket) [WM_CHAR]: Use it to decode character
6503 input (bug#3237).
6504 (w32_initialize): Initialize it.
6505 (codepage_for_locale): New function.
6506
6507 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
6508
6509 * process.c (status_message): Pass Faset index argument as a lisp
6510 object, so as to work with USE_LISP_UNION_TYPE.
6511
6512 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6513
6514 * coding.c (Ffind_coding_systems_region_internal):
6515 Cache checked characters.
6516
6517 2009-06-18 Kenichi Handa <handa@m17n.org>
6518
6519 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
6520
6521 2009-06-18 Andreas Schwab <aschwab@redhat.com>
6522
6523 * xdisp.c (redisplay_internal): Check that the frame is still
6524 live after redisplay of its windows.
6525 (redisplay_windows): Check that the window is still live.
6526
6527 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6528
6529 * coding.c (detect_coding_utf_16): Fix previous change.
6530
6531 2009-06-16 Kenichi Handa <handa@m17n.org>
6532
6533 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6534 UTF-16 by checking the dispersion of Eth and Oth bytes.
6535
6536 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6537
6538 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6539
6540 2009-06-15 Kenichi Handa <handa@m17n.org>
6541
6542 * process.c (status_message): Fix previous change. Be sure to
6543 decode a localized string.
6544
6545 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6546
6547 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6548 add comment explaining why.
6549
6550 2009-06-14 Sidney Markowitz <sidney@sidney.com>
6551
6552 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
6553
6554 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6555
6556 * nsfont.m (ns_attribute_value): Remove.
6557 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6558 (ns_has_attribute): Shrink the normal range.
6559 (ns_findfonts): Don't worry about requested spec in determining
6560 need for synthItal.
6561 (ns_get_covering_families): Retain scriptToFamilies.
6562
6563 2009-06-14 Seiji Zenitani <zenitani@mac.com>
6564
6565 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6566
6567 2009-06-11 Kenichi Handa <handa@m17n.org>
6568
6569 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6570 overhang for the static composition case.
6571
6572 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6573
6574 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6575 overhang for the automatic composition case.
6576
6577 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6578 composition case.
6579
6580 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
6581
6582 * xdisp.c (get_next_display_element): When handling wrap-prefix
6583 and line-prefix, treat \n as a control character (bug#3502).
6584
6585 2009-06-10 Kenichi Handa <handa@m17n.org>
6586
6587 * font.c (font_parse_family_registry): Fix for one-char foundry.
6588 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6589
6590 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6591
6592 * process.c (status_message): Fix handling of multibyte signal
6593 string (Bug#3499).
6594
6595 2009-06-09 Jim Meyering <meyering@redhat.com>
6596
6597 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6598 color name is missing.
6599
6600 2009-06-09 Kenichi Handa <handa@m17n.org>
6601
6602 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6603 FROM-CODE and TO-CODE are codepoints of CHARSET.
6604
6605 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6606
6607 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6608
6609 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6610
6611 Changes to support :script/:lang/:otf in NS font driver.
6612 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6613 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6614 indicate not part of font driver interface, and change callers.
6615 (ns_get_family): Remove pointless null check.
6616 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6617 ns_spec_to_descriptor, ns_descriptor_to_entity.
6618 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6619 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6620 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6621 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6622 (ns_get_req_script, ns_accumulate_script_ranges)
6623 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6624 New functions.
6625 (nsfont_list, nsfont_match): Use ns_findfonts.
6626 (nsfont_open): Use font descriptor instead of traits.
6627 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6628 (dump_glyphstring): Rename to ns_dump_glyphstring.
6629
6630 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6631
6632 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6633
6634 * fontset.c (fontset_from_font): Remove NS-specific code.
6635
6636 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
6637
6638 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6639 nonactive windows.
6640
6641 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
6642
6643 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
6644
6645 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6646
6647 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6648
6649 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
6650
6651 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6652 account for the overflowing of newlines into the last glyph on the
6653 display line (Bug#3482).
6654
6655 2009-06-05 David Reitter <david.reitter@gmail.com>
6656
6657 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6658 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
6659 Fns_selection_exists_p, Fns_selection_owner_p.
6660
6661 2009-06-03 Jason Rumney <jasonr@gnu.org>
6662
6663 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6664 available. (Bug#3379)
6665
6666 2009-05-29 Kenichi Handa <handa@m17n.org>
6667
6668 * coding.c (get_translation_table):
6669 Check Venable_character_translation.
6670
6671 2009-05-26 David Reitter <david.reitter@gmail.com>
6672
6673 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6674 (x_make_frame_visible): Move frame to front rather than calling
6675 ns_raise_frame().
6676 (keyDown:): Do not swallow events that aren't re-sent if frame
6677 isn't key window.
6678 (drawRect:): Do not set visibility/iconified flags because
6679 drawRect may be called by NSView even if the frame is hidden.
6680
6681 * nsfns.m (Fx_create_frame): Follow other ports in
6682 determining visibility; default to t. Ensure async_visible is set.
6683
6684 2009-05-23 Eli Zaretskii <eliz@gnu.org>
6685
6686 * dired.c (Ffile_attributes): Doc fix.
6687
6688 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
6689
6690 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6691
6692 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6693
6694 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6695 and xfont_scratch_props.
6696 (syms_of_xfont): Do it here instead.
6697 (xfont_find_ccl_program): Delete, unused.
6698 (xfont_open): Delete unused var `i'.
6699
6700 2009-05-21 Kenichi Handa <handa@m17n.org>
6701
6702 * fontset.c (Qlatin): Don't make it static.
6703
6704 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6705 New functions.
6706 (xfont_scripts_cache, xfont_scratch_props): New variables.
6707 (Qlatin, Vscalable_fonts_allowed): Extern it.
6708 (xfont_list_pattern): Argument changed. Callers changed.
6709 Check Vscalable_fonts_allowed. Check the support of a script.
6710 (xfont_list): Don't reject a font spec with :script property.
6711 (xfont_has_char): Fix setting of encoding.
6712 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6713 xfont_scratch_props.
6714
6715 2009-05-19 Kenichi Handa <handa@m17n.org>
6716
6717 * font.c (font_sort_entities): Rename from font_sort_entites.
6718 Callers changed.
6719
6720 2009-05-18 Kenichi Handa <handa@m17n.org>
6721
6722 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6723
6724 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6725
6726 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6727 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6728
6729 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6730
6731 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6732 (x_delete_terminal): Dissociate resource database from display and
6733 then call XrmDestroyDatabase before closing display.
6734
6735 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6736
6737 * nsterm.m (ns_read_socket): Remove unused variable.
6738 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6739 whether selected frame is viable before raising it (based on patch
6740 by David Reitter), and improve commentary.
6741 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
6742
6743 2009-05-15 Kenichi Handa <handa@m17n.org>
6744
6745 * font.c (Ffont_spec): Check arguments.
6746
6747 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
6748
6749 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6750 weight when testing attributes (Bug#3282).
6751
6752 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6753
6754 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6755 what we expect to get in the next ConfigureNotify event.
6756
6757 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6758 before Xft one (Bug#1696).
6759
6760 2009-05-07 David Reitter <david.reitter@gmail.com>
6761
6762 * nsfns.m (Fx_display_planes): Compute bitplanes using
6763 NSBitsPerPixelFromDepth (Bug#3207).
6764
6765 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
6766
6767 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6768
6769 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
6770
6771 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6772
6773 2009-05-07 David Reitter <david.reitter@gmail.com>
6774
6775 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6776 Respect mouse face background.
6777
6778 2009-05-07 David Reitter <david.reitter@gmail.com>
6779
6780 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6781 Mouse movement/highlight: bracket drawing operations
6782 in ns_update_begin and ns_update_end.
6783
6784 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6785
6786 * nsfns.m (ns_get_screen): Rewrite.
6787 Don't presume selected-frame is of type `ns'.
6788
6789 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6790 all drivers.
6791
6792 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6793
6794 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6795
6796 * keyboard.h (add_user_signal): Fix typo in extern.
6797
6798 * lisp.h (add_user_signal): Remove extern.
6799
6800 * unexelf.c (unexec): Consider a section to precede the .bss section
6801 if its addresses overlap that of .bss.
6802 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6803 instead of dumping process.
6804
6805 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6806
6807 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6808
6809 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6810
6811 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6812
6813 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6814
6815 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6816 any statements.
6817
6818 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6819
6820 * process.c (read_process_output): Make sure the current buffer is
6821 always restored.
6822
6823 * coding.c (record_conversion_result): Don't modify
6824 Vlast_code_conversion_error for successful result.
6825 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6826
6827 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6828
6829 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
6830 (load_charset_map): Remove unnecessary code.
6831
6832 2009-04-30 David Reitter <david.reitter@gmail.com>
6833
6834 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
6835 through f24.
6836
6837 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
6838
6839 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6840
6841 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6842 face_at_buffer_position.
6843 (face_before_or_after_it_pos, get_next_display_element)
6844 (note_mouse_highlight): Update face_at_buffer_position call.
6845
6846 * term.c (term_mouse_highlight):
6847 * msdos.c (IT_note_mouse_highlight):
6848 * fontset.c (Finternal_char_font):
6849 * font.c (font_at, font_range): Update face_at_buffer_position call.
6850
6851 * dispextern.h (face_at_buffer_position): Update prototype.
6852
6853 2009-04-30 Kenichi Handa <handa@m17n.org>
6854
6855 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
6856
6857 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6858
6859 * callproc.c (Fcall_process): Fix GC protection. Make sure
6860 current buffer is always restored.
6861
6862 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6863
6864 * atimer.c (init_atimer): Also clear stopped_atimers.
6865
6866 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6867
6868 * process.c (create_process): Clean up merger residues of
6869 2008-07-17 change.
6870
6871 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
6872
6873 * lread.c (Vread_circle): New variable.
6874 (read1): Disable recursive read if Vread_circle is nil.
6875
6876 2009-04-29 Kenichi Handa <handa@m17n.org>
6877
6878 * fontset.h (set_default_ascii_font): Delete extern.
6879
6880 * fontset.c (set_default_ascii_font): Delete this unused function.
6881
6882 * frame.c (x_set_font): When ARG is a font-object, check if the
6883 font-object matches with the ASCII font-spec of the frame's
6884 fontset. If not, create a new fontset for the frame. (Bug #3075)
6885
6886 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6887
6888 * fns.c (Flocale_info): Protect vector from GC during decoding.
6889
6890 * process.c (Fstart_process): Protect argv strings from GC during
6891 encoding.
6892
6893 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6894
6895 * sysdep.c: Include <ctype.h>.
6896
6897 2009-04-27 David Reitter <david.reitter@gmail.com>
6898
6899 * nsfont.m (nsfont_open): Remove unused variable shrink.
6900 Remove commented-out code.
6901
6902 2009-04-26 Johan Bockgård <bojohan@gnu.org>
6903
6904 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6905
6906 2009-04-25 Jason Rumney <jasonr@gnu.org>
6907
6908 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6909
6910 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6911
6912 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6913 Swap bytes in short integer if fringe bitmap width > 8.
6914
6915 2009-04-23 Kenichi Handa <handa@m17n.org>
6916
6917 * xfaces.c (Fx_list_fonts): If a font size is specified in
6918 PATTERN, set it in returned scalable fonts.
6919
6920 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
6921
6922 * keyboard.c (Fset_input_meta_mode): Doc fix.
6923
6924 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6925
6926 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
6927
6928 * coding.c (Fterminal_coding_system): Doc fix.
6929
6930 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6931 (Fx_display_pixel_height, Fx_display_planes)
6932 (Fx_display_color_cells, Fx_server_max_request_size)
6933 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6934 (Fx_display_mm_height, Fx_display_mm_width)
6935 (Fx_display_backing_store, Fx_display_visual_class)
6936 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6937 Doc fixes, replacing "terminal id" with "terminal object".
6938 (check_x_display_info): Handle terminal objects instead of
6939 terminal ids.
6940
6941 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6942 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
6943 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6944 Doc fixes, replacing "terminal id" with "terminal object".
6945
6946 2009-04-21 Kenichi Handa <handa@m17n.org>
6947
6948 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
6949 (font_score): Check AVGWIDTH too.
6950
6951 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6952 worst case.
6953 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6954 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
6955
6956 2009-04-19 Jason Rumney <jasonr@gnu.org>
6957
6958 The following changes fix Bug#3005 for wide glyphs on each platform,
6959 without reintroducing Bug#1258 for stretch glyphs.
6960
6961 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6962 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6963 get_phys_cursor_geometry.
6964
6965 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
6966 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6967 using get_phys_cursor_geometry.
6968
6969 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6970 correctly calculated.
6971
6972 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6973
6974 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6975 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
6976 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6977 is deprecated.
6978
6979 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6980
6981 * font.c (font_put_frame_data): Use xfree instead of free.
6982
6983 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
6984
6985 * w32font.c (Qja, Qko): Remove declarations.
6986 (syms_of_w32font): Don't DEFSYM them.
6987
6988 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
6989
6990 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6991
6992 * font.h (Qja, Qko): Extern them.
6993
6994 * ftfont.c (Qja, Qko): Remove declarations.
6995
6996 * xfont.c (Qja, Qko): Remove declarations.
6997
6998 2009-04-17 Kenichi Handa <handa@m17n.org>
6999
7000 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7001 string from a vector to handle Latin-1 characters correctly.
7002
7003 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7004 entity even if the cache hits.
7005
7006 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7007
7008 * search.c (boyer_moore): Use zero as marker value for a possible
7009 match instead of depending on overflow behavior. (Bug#2844)
7010
7011 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7012 * lisp.h: Adjust prototypes.
7013
7014 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
7015
7016 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7017 change (Bug#3003).
7018
7019 2009-04-16 Kenichi Handa <handa@m17n.org>
7020
7021 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
7022
7023 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7024 adstyle.
7025
7026 * ftfont.c (Qja, Qko): Don't make them static.
7027 (enum ftfont_cache_for): New enum.
7028 (fc_charset_table): Undo the previous change.
7029 (ftfont_get_latin1_charset): Delete it.
7030 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7031 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
7032 non-scarable font, try to get AVERAGE_WIDTH.
7033 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7034 Change ft_face_cache from a list of a hash-table. Don't check
7035 `ja' and `ko' adstyle here.
7036 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7037 FTFONT_CACHE_FOR_CHARET.
7038 (ftfont_get_charset): Undo the previous change.
7039 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
7040 (ftfont_close): Likewise.
7041 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7042
7043 * font.c (font_sort_entites): Change the meaning of the arg
7044 BEST-ONLY. Don't optimize for VEC of lenght 1.
7045 (font_select_entity): Just return the value of font_sort_entites.
7046
7047 * xfaces.c (merge_face_vectors): Reflect font properties in
7048 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7049 font_clear_prop if a face attribute doesn't change.
7050
7051 * charset.h (charset_ksc5601): Extern it.
7052
7053 * charset.c (charset_ksc5601): New variable.
7054 (Fdefine_charset_internal): Set charset_ksc5601.
7055 (init_charset_once): Initialize charset_ksc5601 to -1.
7056
7057 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7058
7059 * fileio.c (history_delete_duplicates): Remove unused declaration.
7060
7061 * callint.c (history_delete_duplicates): New declaration.
7062 (Fcall_interactively): Remove command history duplicates when
7063 history_delete_duplicates is true.
7064
7065 2009-04-14 Eli Zaretskii <eliz@gnu.org>
7066
7067 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7068
7069 2009-04-14 Kenichi Handa <handa@m17n.org>
7070
7071 * font.c (Ffont_info): Fix docstring. Fix the second element of
7072 the returned value (bug#2949).
7073
7074 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
7075
7076 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7077
7078 2009-04-14 Kenichi Handa <handa@m17n.org>
7079
7080 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7081 encoding charset is ascii_compatible.
7082
7083 * charset.c (Fdefine_charset_internal): Make charset
7084 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7085 code_offset is 0, and covers all ASCII characters.
7086
7087 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7088
7089 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7090 (ns_string_to_pasteboard_internal):
7091 * nsmenu.m (process_dialog):
7092 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7093 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7094 * lisp.h (Fx_load_color_file): Declare.
7095
7096 2009-04-13 Kenichi Handa <handa@m17n.org>
7097
7098 * font.c (font_delete_unmatched): Preserve the order of list elements.
7099 (font_select_entity): Suppress the code to optimize for the same
7100 kind of fonts.
7101 (font_load_for_lface): Get a font that supports at least ASCII
7102 characters.
7103
7104 * ftfont.c (Qja, Qko): New variables.
7105 (fc_charset_table): Delete uniquifier data for iso8859-1.
7106 (ftfont_get_latin1_charset): New function.
7107 (get_adstyle_property): New function.
7108 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7109 bitmap fonts.
7110 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7111 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7112 `ko' or `ja'.
7113 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
7114 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
7115 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7116 property.
7117 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7118 (syms_of_ftfont): DEFSYM Qja and Qko.
7119
7120 2009-04-09 Kenichi Handa <handa@m17n.org>
7121
7122 * charset.c (map_charset_chars): For a charset of `superset'
7123 method, fix calculation of code range.
7124
7125 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7126 from the list of extra properties.
7127 (font_clear_prop): Be sure to delete `:name' font property.
7128
7129 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7130
7131 * dispnew.c (redraw_overlapping_rows): Fix detection of
7132 overlapping for topmost and bottommost rows.
7133
7134 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
7135
7136 2009-04-06 Jason Rumney <jasonr@gnu.org>
7137
7138 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7139
7140 2009-04-06 Kenichi Handa <handa@m17n.org>
7141
7142 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7143
7144 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7145
7146 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7147
7148 * ftfont.c (ftfont_open): Fix checking of the return value of
7149 FT_Load_Char. Fix setting font->underline_thickness.
7150
7151 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
7152
7153 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7154 (Fterminal_parameters, Fterminal_parameter)
7155 (Fset_terminal_parameter): In doc string, refer to terminal
7156 objects rather than terminal ids.
7157
7158 2009-04-04 Eli Zaretskii <eliz@gnu.org>
7159
7160 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7161 ret_lim_data. (Bug#2867)
7162
7163 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
7164
7165 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7166 so they don't get wider than the window, matching 2006-01-23
7167 change to the partner function in xdisp.c (Bug#2800).
7168
7169 2009-04-03 Kenichi Handa <handa@m17n.org>
7170
7171 * print.c (print_object): Make each lowest sub_char_table start a
7172 new line (Bug#2866).
7173
7174 2009-04-02 Kenichi Handa <handa@m17n.org>
7175
7176 * fontset.c (fontset_font): Record no-font when a fontset
7177 explicitly tells not to try another font-specs.
7178
7179 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7180
7181 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7182
7183 2009-03-30 Kenichi Handa <handa@m17n.org>
7184
7185 * fontset.c (fontset_from_font): Specify only registry in a
7186 font-spec for all characters supported by that registry.
7187
7188 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7189 even if HAVE_M17N_FLT is not defined.
7190
7191 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7192
7193 * ftfont.c: Conditionalize prototyping and use of
7194 ftfont_variation_glyphs.
7195
7196 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7197
7198 * frame.c (delete_frame): Work around compiler bug.
7199
7200 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7201 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7202 Some more EMACS_INT.
7203 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7204
7205 * xdisp.c (dump_glyph): Fix typo.
7206
7207 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7208 (adjust_markers_gap_motion, adjust_markers_for_delete)
7209 (adjust_markers_for_insert, adjust_point)
7210 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7211 (make_gap, copy_text, count_size_as_multibyte, insert)
7212 (insert_and_inherit, insert_before_markers)
7213 (insert_before_markers_and_inherit, insert_1)
7214 (count_combining_before, count_combining_after, insert_1_both)
7215 (insert_from_string, insert_from_string_before_markers)
7216 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7217 (insert_from_buffer_1, adjust_after_replace)
7218 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7219 (replace_range_2, del_range, del_range_1, del_range_byte)
7220 (del_range_both, del_range_2, modify_region)
7221 (prepare_to_modify_buffer, signal_before_change)
7222 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7223 for buffer positions and sizes.
7224 * lisp.h: Adjust prototypes accordingly.
7225
7226 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7227 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7228 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7229
7230 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7231
7232 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7233
7234 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7235 lines and columns so we keep the same pixel height and width.
7236
7237 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7238 the property _NET_WM_STATE has changed.
7239 (x_handle_net_wm_state): New function to update frame parameter
7240 fullscreen.
7241 (x_term_init): Initialize atoms for _NET_WM_STATE.
7242
7243 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7244
7245 2009-03-27 Kevin Ryde <user42@zip.com.au>
7246
7247 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7248 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7249 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7250 (Fgpm_mouse_stop): Pass that new parameter.
7251 * termhooks.h (close_gpm): Adjust prototype.
7252
7253 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7254
7255 * lisp.h (Fx_focus_frame): Declare.
7256
7257 * callint.c (Fcall_interactively): For '^' just delegate the work to
7258 handle-shift-selection.
7259 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7260
7261 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
7262
7263 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7264
7265 * data.c (Qinteractive_form): New variable.
7266 (Finteractive_form): Use it.
7267
7268 * eval.c (Fcommandp): Use Qinteractive_form.
7269
7270 2009-03-24 Jason Rumney <jasonr@gnu.org>
7271
7272 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7273 Calculate total size precisely. Decode environment variables
7274 before substituting. (Bug#38)
7275
7276 2009-03-24 Kenichi Handa <handa@m17n.org>
7277
7278 * font.c (find_font_encoding): Return Qnil for unsupported
7279 encoding (Bug#2722).
7280
7281 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7282
7283 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7284 that gdpy is set.
7285
7286 2009-03-22 Alan Mackenzie <acm@muc.de>
7287
7288 * callint.c (Finteractive): Clarify the doc string - even
7289 promptless elements need \n separators.
7290
7291 2009-03-22 Jason Rumney <jasonr@gnu.org>
7292
7293 * w32term.c (syms_of_w32term): Doc fix for
7294 x-use-underline-position-properties.
7295
7296 2009-03-21 Eli Zaretskii <eliz@gnu.org>
7297
7298 * w32.c (getpwuid): Change argument type to unsigned.
7299 (struct w32_id): Change type of `rid' member to unsigned.
7300 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7301 argument ID to unsigned. All callers changed.
7302 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7303
7304 2009-03-20 Eli Zaretskii <eliz@gnu.org>
7305
7306 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7307 negative, produce a float value.
7308
7309 * dired.c (make_uid, make_gid): New functions.
7310 (Ffile_attributes): Use them to avoid negative UID and GID.
7311
7312 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
7313
7314 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7315 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7316 Fix typos in docstrings.
7317
7318 2009-03-19 Kenichi Handa <handa@m17n.org>
7319
7320 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
7321 changed, use font_load_for_lface to get a new font object.
7322 Call free_realized_fontset after handling ASCII font change.
7323
7324 * frame.c (x_set_font): Handle the case that ARG is a cons.
7325
7326 2009-03-19 Glenn Morris <rgm@gnu.org>
7327
7328 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7329
7330 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
7331
7332 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7333
7334 2009-03-19 Kenichi Handa <handa@m17n.org>
7335
7336 * charset.c (load_charset_map_from_file): When a mapfile can't be
7337 loaded, signal an error.
7338
7339 2009-03-18 Eli Zaretskii <eliz@gnu.org>
7340
7341 * dired.c (Ffile_attributes): Make sure UID and GID are always
7342 positive, even if the value is too large for a positive EMACS_INT.
7343 Doc fix.
7344
7345 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7346
7347 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7348
7349 * xmenu.c (xdialog_show): Move Fredisplay call ...
7350 (Fx_popup_dialog): ... here.
7351
7352 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7353
7354 * dired.c (file_name_completion): Disable the first optimization just
7355 installed, since it is not implemented correctly.
7356
7357 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7358
7359 * dired.c (file_name_completion): Check completion-ignored-extensions
7360 only if the entry can affect bestmatch.
7361 Stop the search early, as Ftry_completion already does.
7362
7363 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
7364
7365 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
7366
7367 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
7368
7369 * keyboard.c (parse_menu_item): Don't display remappings as menu
7370 equivalent bindings (Bug#788).
7371
7372 2009-03-15 Jason Rumney <jasonr@gnu.org>
7373
7374 * w32term.h (WM_EMACS_PAINT): New message.
7375 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7376 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7377 before passing to lisp thread. (Bug#950)
7378
7379 2009-03-14 David Reitter <david.reitter@gmail.com>
7380
7381 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7382 variable as it was never reset.
7383 (ns_term_init): Remove initialization of Lisp-settable defaults
7384 and ns_expand_space.
7385 (-setPanelFromDefaultValues): Remove ns_expand_space.
7386 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7387 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
7388 i.e. no additional spacing, similar to Carbon port.
7389
7390 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7391 * nsfns.m (ns-popup-prefs-panel): Remove.
7392
7393 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7394
7395 * sound.c (alsa_configure): Remove call to deprecated
7396 snd_pcm_sw_params_set_xfer_align.
7397
7398 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
7399
7400 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7401 after clicking in a detached tool bar.
7402 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7403
7404 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7405
7406 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7407 int/Lisp_Object mixup).
7408
7409 2009-03-13 Kenichi Handa <handa@m17n.org>
7410
7411 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
7412 Handle NAME nil and t correctly. Callers changed.
7413 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7414 (set_fontset_font): Change ARG to a vector. Handle range_list in
7415 ARG correctly.
7416 (Fset_fontset_font): Fix the case that TARGET is both a script
7417 name and charset name. Adjust the arg to set_fontset_font for
7418 the above change.
7419 (fontset_from_font): Fix previous change.
7420 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
7421 entry. If FONTSET is the default fontset, don't set the extra
7422 slot of the returning char-table.
7423
7424 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
7425
7426 * nsfns.m (Fx_close_connection): Doc fix.
7427 (Fns_do_applescript): Reflow docstring.
7428 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7429 (Fx_display_pixel_width, Fx_display_pixel_height)
7430 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7431 Fix typos in docstrings.
7432 (Fns_set_alpha): Fix typos in error messages.
7433
7434 2009-03-12 David Reitter <david.reitter@gmail.com>
7435
7436 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
7437 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7438 were used for such events.
7439
7440 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7441 (toggleToolbar, performDragOperation, runHelp): Use it.
7442
7443 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
7444 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7445
7446 2009-03-11 Kenichi Handa <handa@m17n.org>
7447
7448 * font.h (font_open_by_spec): Extern it.
7449
7450 * font.c (font_open_by_spec): New function.
7451 (font_open_by_name): Use font_open_by_spec.
7452
7453 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7454 fontset of the frame.
7455
7456 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7457 modify the default font of frames that use this fontset.
7458 (num_auto_fontsets): New variable.
7459 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7460 name. Be sure to set FONTSET_ASCII to the correct font name.
7461 (update_auto_fontset_alist): New function.
7462
7463 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
7464
7465 * makefile.w32-in: Update dependencies.
7466
7467 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7468
7469 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7470
7471 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7472
7473 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7474
7475 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
7476
7477 * lread.c (Feval_buffer): Doc fix.
7478
7479 2009-03-09 Kenichi Handa <handa@m17n.org>
7480
7481 * charset.c (Qfile_name_handler_alist): Extern it.
7482 (load_charset_map_from_file): Temporarily bind
7483 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7484
7485 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
7486
7487 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7488 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
7489
7490 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7491
7492 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7493 (x_set_window_size): Change back to calculated method of setting
7494 toolbar height under Cocoa. (Bug#2546)
7495 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7496 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7497
7498 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7499
7500 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7501 accelerator in parens under GNUstep.
7502
7503 2009-03-06 Kenichi Handa <handa@m17n.org>
7504
7505 These changes are to detect incorrect composition sequence without
7506 looking ahead the source. (Bug#2370)
7507
7508 * coding.h: Include "composite.h".
7509 (enum compisition_state): New enum.
7510 (struct compisition_status): New struct.
7511 (struct iso_2022_spec): New member cmp_status.
7512 (struct emacs_mule_spec): New struct.
7513 (struct coding_system): New members ctext_extended_segment_len and
7514 embedded_utf_8. Change the union member
7515 spec.emacs_mule_full_support to spec.emacs_mule.
7516
7517 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7518 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
7519 (MAX_ANNOTATION_LENGTH): Define to 5.
7520 (ADD_COMPOSITION_DATA): New arg nbytes.
7521 (emacs_mule_char): New arg cmp_status.
7522 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7523 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7524 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7525 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7526 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7527 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7528 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7529 (EMACS_MULE_COMPOSITION_END): New macro.
7530 (emacs_mule_finish_composition): New function.
7531 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7532 (decode_coding_emacs_mule): Avoid long looking ahead while
7533 handling composition.
7534 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7535 (ENCODE_COMPOSITION_RULE): New macro.
7536 (finish_composition): New function.
7537 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7538 (DECODE_COMPOSITION_START): New implementation.
7539 (DECODE_COMPOSITION_END): Likewise.
7540 (STORE_COMPOSITION_RULE): New macro.
7541 (decode_coding_iso_2022): Avoid long looking ahead while handling
7542 composition, CTEXT extended segment, and embedded UTF-8.
7543 (setup_coding_system): For a coding of type iso-2022, reset
7544 CODING_ISO_EXTSEGMENT_LEN (coding) and
7545 CODING_ISO_EMBEDDED_UTF_8 (coding).
7546 (get_translation): Delete arguments last_block, from_nchars,
7547 to_nchars. Callers changed.
7548 (produce_chars): Don't modify charbuf. Adjusted for the change of
7549 get_translation.
7550 (produce_composition): Adjust for the new annotation sequence.
7551 (handle_composition_annotation): Likewise.
7552 (consume_chars): Adjust for the change of get_translation.
7553
7554 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7555
7556 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
7557
7558 2009-03-05 Kenichi Handa <handa@m17n.org>
7559
7560 * font.c (font_select_entity): New function.
7561 (font_find_for_lface): Use font_select_entity to select a font.
7562
7563 * fontset.c (fontset_find_font): If a font found without
7564 restricting to the characters C doesn't support C, try to find a
7565 font with C restriction.
7566
7567 2009-03-04 Nikolaj Schumacher <me@nschum.de>
7568
7569 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
7570
7571 2009-03-04 Jason Rumney <jasonr@gnu.org>
7572
7573 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
7574 characters that have already been read. (Bug#2569)
7575
7576 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7577 Log an error message if check_image_size failed.
7578 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
7579 (gs_load): Mention max-image-size in size error message. (Bug#2560)
7580
7581 2009-03-02 Eli Zaretskii <eliz@gnu.org>
7582
7583 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7584 when decoding process output.
7585
7586 2009-03-01 Richard M Stallman <rms@gnu.org>
7587
7588 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7589
7590 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7591
7592 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7593
7594 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7595 (decode_coding_emacs_mule, decode_coding_iso_2022)
7596 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7597 (decode_coding_raw_text, decode_coding_charset)
7598 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7599 Honor inhibit-eol-conversion. (Bug #2186)
7600
7601 2009-02-28 Jason Rumney <jasonr@gnu.org>
7602
7603 * coding.c (detect_coding_charset): If not checking latin extra,
7604 fail on characters between 0x80 and 0xA0. (Bug#2354)
7605
7606 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7607
7608 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
7609 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
7610
7611 2009-02-27 Glenn Morris <rgm@gnu.org>
7612
7613 * callint.c (Finteractive): Doc fix.
7614
7615 2009-02-27 Kenichi Handa <handa@m17n.org>
7616
7617 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7618
7619 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
7620
7621 * font.c (font_style_to_value): Set value for unknown symbols to
7622 100 instead of 255.
7623 (weight_table, slant_table, width_table): Treat "unspecified" as
7624 the default value.
7625
7626 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
7627
7628 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7629
7630 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
7631
7632 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7633 error as soon as a recursive load is detected.
7634
7635 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7636
7637 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7638 before caching.
7639
7640 2009-02-24 Kenichi Handa <handa@m17n.org>
7641
7642 * fontset.c (fontset_find_font): Fix the condition for checking
7643 unavailable font.
7644
7645 2009-02-24 Glenn Morris <rgm@gnu.org>
7646
7647 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7648 whitespace that confuses documentation.
7649
7650 2009-02-23 Miles Bader <miles@gnu.org>
7651
7652 * process.c (Flist_system_processes, Fprocess_attributes)
7653 (syms_of_process): Rename `system-process-attributes' to
7654 `process-attributes'.
7655
7656 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7657
7658 * coding.h (struct coding_system): Make safe_charsets a pointer to
7659 unsigned char.
7660 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7661 being 255.
7662 (SAFE_CHARSET_P): Likewise.
7663 (setup_iso_safe_charsets): Properly setup safe_charsets.
7664 (Fdefine_coding_system_internal): Likewise.
7665 (setup_coding_system): Likewise. Remove unneeded casts.
7666 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7667 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7668 unneeded casts.
7669
7670 * insdel.c (del_range_2): Don't modify gap contents when called
7671 from decode_coding_object. (Bug#1809)
7672
7673 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
7674
7675 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7676 Qfont_object.
7677 (Ftype_of): Recognize font objects.
7678
7679 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7680
7681 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7682 moved to data.c.
7683
7684 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7685
7686 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7687 async_iconified. Based on a patch by Christian Lynbech
7688 <christian.lynbech@tieto.com>.
7689 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7690
7691 2009-02-20 Glenn Morris <rgm@gnu.org>
7692
7693 * syntax.c (Fskip_chars_forward): Fix doc typo.
7694
7695 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
7696
7697 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7698
7699 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
7700
7701 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7702
7703 2009-02-19 Kenichi Handa <handa@m17n.org>
7704
7705 * coding.c (detect_coding): Preserve coding->mode.
7706 Don't overflow coding->carryover. (Bug#2370)
7707
7708 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7709
7710 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7711
7712 2009-02-18 Kenichi Handa <handa@m17n.org>
7713
7714 * font.c (font_check_otf_features): Fix handling of `nil' element.
7715 (Ffont_spec): Describe :lang and :otf in the docstring.
7716
7717 2009-02-16 Andreas Schwab <schwab@suse.de>
7718
7719 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7720 string.
7721
7722 2009-02-16 Kenichi Handa <handa@m17n.org>
7723
7724 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
7725 (Bug#1723)
7726
7727 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
7730
7731 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7732 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7733
7734 2009-02-14 Eli Zaretskii <eliz@gnu.org>
7735
7736 * msdos.c (MAX_SCREEN_BUF): New macro.
7737 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7738 Encode the entire run of glyphs sharing the same face, instead of
7739 doing that one glyph at a time (fixes a bug with displaying
7740 double-size characters).
7741
7742 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7743
7744 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7745
7746 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7747 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
7748 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
7749
7750 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
7751 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
7752
7753 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7754
7755 * keyboard.c (adjust_point_for_property): Allow stopping between two
7756 invisible areas.
7757
7758 2009-02-12 Jason Rumney <jasonr@gnu.org>
7759
7760 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7761 (add_font_entity_to_list): Call check_face_name even when family
7762 is unspecified.
7763
7764 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7765 Release DC when finished. Use NULL window to refer to desktop.
7766 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
7767
7768 * w32font.c (add_font_entity_to_list): Fix check for substituted
7769 raster fonts. (Bug#2219)
7770
7771 2009-02-12 Kenichi Handa <handa@m17n.org>
7772
7773 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7774 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7775 (autocmp_chars): Use fast_looking_at. Don't compose more
7776 characters than MAX_COMPOSITION_COMPONENTS.
7777 (find_automatic_composition): While looking forward and backward,
7778 check static composition. Fix where to stop looking forward.
7779 (composition_adjust_point): Fix checking of static composition.
7780 (Fcomposition_get_gstring): Pay attention to
7781 MAX_COMPOSITION_COMPONENTS.
7782
7783 * lisp.h (fast_looking_at): Extern it.
7784
7785 * search.c (fast_looking_at): New function.
7786
7787 * term.c (encode_terminal_code): Adjust for the change of
7788 <struct glyph>.u.cmp.to.
7789 (append_composite_glyph): Likewise.
7790
7791 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
7792 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7793 composition.
7794 (append_composite_glyph): Adjust for the change of
7795 <strcut glyph>.u.cmp.to.
7796
7797 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
7798
7799 * casetab.c (init_casetab_once):
7800 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7801 * font.c (font_update_lface):
7802 * fontset.c (Fnew_fontset):
7803 * ftfont.c (ftfont_drive_otf):
7804 * xfont.c (xfont_open):
7805 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7806
7807 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7808
7809 * fileio.c (Fwrite_region): !NILP -> CONSP.
7810
7811 2009-02-10 Andreas Schwab <schwab@suse.de>
7812
7813 * process.c (send_process): Properly relocate pointer into data
7814 when using encoded data. (Bug#2272)
7815
7816 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7817
7818 * coding.c (detect_coding_charset): Fix previous change.
7819
7820 2009-02-08 Jason Rumney <jasonr@gnu.org>
7821
7822 * w32fns.c (w32_hide_hourglass): Handle case where frame
7823 disappeared while hourglass was displayed. (Bug #2193)
7824
7825 2009-02-07 Andreas Schwab <schwab@suse.de>
7826
7827 * unexelf.c (unexec): Fix error message.
7828
7829 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7830
7831 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
7832 when modal window is active. (Bug #2152)
7833 (applicationShouldTerminate:): Remove now-unneeded while loop
7834 around NSRunAlertPanel.
7835
7836 * nsmenu.m (popupSession): New file-global variable.
7837 (pop_down_menu): End the popupSession before closing dialog.
7838 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7839 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7840 don't query NSApp for events (just sleep instead).
7841
7842 2009-02-07 Eli Zaretskii <eliz@gnu.org>
7843
7844 * coding.c (syms_of_coding) <translation-table-for-input>:
7845 Modify doc string to discourage use for character code unification.
7846
7847 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7848
7849 * atimer.c (run_timers): Update pending_atimers.
7850
7851 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
7852
7853 * image.c (svg_load_image): Fix last change.
7854
7855 * xfns.c (Fx_create_frame): Signal an error if no font is
7856 found (Bug#2147).
7857
7858 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
7859
7860 * character.c (syms_of_character) <script-representative-chars>:
7861 Fix typo in docstring.
7862
7863 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7864
7865 * nsmenu.m (pop_down_menu): New function.
7866 (ns_popup_dialog): Call it on unwind.
7867 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7868 call timer_check() (Bug#2154).
7869 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7870 handling_signal is set.
7871 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7872
7873 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
7874
7875 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7876
7877 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7878
7879 * keyboard.c (poll_for_input_1, handle_async_input):
7880 Set handling_signal under HAVE_NS.
7881
7882 2009-02-04 Glenn Morris <rgm@gnu.org>
7883
7884 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7885
7886 2009-02-04 Kenichi Handa <handa@m17n.org>
7887
7888 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7889
7890 * charset.c (Fchar_charset): New optional arg restriction.
7891
7892 * coding.h (coding_system_charset_list): Extern it.
7893
7894 * coding.c (coding_system_charset_list): New function.
7895
7896 * composite.c: Include coding.h and termhooks.h.
7897 (composition_gstring_p): Fix for the terminal case.
7898 (composition_gstring_width): Likewise.
7899 (fill_gstring_body): Likewise.
7900 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7901 the frame.
7902 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7903 is within a composition.
7904 (Fcomposition_get_gstring): Fix the terminal case.
7905
7906 * term.c (encode_terminal_code): Fix handling of composition.
7907 (produce_composite_glyph): For static composition, get pixel_width
7908 from struct composition.
7909
7910 2009-02-02 Andreas Schwab <schwab@suse.de>
7911
7912 * unexelf.c (unexec): Handle unaligned bss offset.
7913
7914 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7915
7916 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7917 XT,w32read_socket changes to ns_read_socket.
7918
7919 * keyboard.c (handle_interrupt): Don't call
7920 quit_throw_to_read_char() under NS.
7921
7922 * blockinput.h: Remove NS-specific code.
7923
7924 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7925
7926 * dispnew.c (window_change_signal): Don't try to get the size of a
7927 suspended tty frame.
7928 * term.c (Fresume_tty): Resize if the size has changed while the
7929 tty was suspended.
7930
7931 * alloc.c (mark_stack): Properly conditionalize previous change.
7932
7933 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
7934
7935 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7936 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7937 Remove; this code is not used on Windows.
7938
7939 2009-01-30 Eli Zaretskii <eliz@gnu.org>
7940
7941 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7942 EOLs that also has stray ^M characters.
7943
7944 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
7945
7946 * atimer.c (run_timers, alarm_signal_handler):
7947 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7948 * w32inevt.c (w32_console_read_socket):
7949 * w32term.c (w32_read_socket):
7950 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7951
7952 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
7953
7954 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7955 Initialize it as a relative filename pattern.
7956 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7957 (Fcall_process_region): Simplify temp file creation using
7958 temporary-file-directory.
7959
7960 2009-01-29 Eli Zaretskii <eliz@gnu.org>
7961
7962 * msdos.c: Rename pending_signals to msdos_pending_signals.
7963 (sig_suspender, sigprocmask): Adjust.
7964
7965 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
7966
7967 * keyboard.c (pending_signals): New var.
7968 (poll_for_input, input_available_signal, init_keyboard): Set it.
7969 (process_pending_signals): New function.
7970
7971 * lisp.h (QUIT): Check pending_signals instead of
7972 interrupt_input_pending. Use process_pending_signals.
7973
7974 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
7975
7976 * process.c (wait_reading_process_output): Use process_pending_signals.
7977
7978 * sysdep.c (emacs_write): Use process_pending_signals.
7979
7980 * xterm.c (XTread_socket): Update pending_signals.
7981
7982 * w32term.c (w32_read_socket): Update pending_signals.
7983
7984 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7985
7986 2009-01-29 Kenichi Handa <handa@m17n.org>
7987
7988 * xftfont.c (xftfont_has_char): New function.
7989 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7990
7991 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7992
7993 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7994 under GNUstep.
7995 (ns_query_color): New declaration.
7996
7997 * nsterm.m (ns_confirm_quit): New variable.
7998 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7999 (EmacsApp-applicationShouldTerminate:): Use it.
8000 (EmacsPrefsController): Let user set it.
8001 (ns_query_color): New function.
8002 (ns_defined_color): Use it.
8003 (ns_initialize): Drop.
8004 (ns_term_init): Add two lines from ns_initialize(), and set
8005 input_interrupt_mode to nil.
8006
8007 * image.c (svg_load_image): Don't right-shift background RGB when
8008 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
8009
8010 2009-01-28 Kenichi Handa <handa@m17n.org>
8011
8012 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8013 (fontset_get_font_group): Remember that no font-group is specified
8014 for C.
8015
8016 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
8017
8018 * fns.c (concat): Check for string overflow (bug#1787).
8019
8020 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8021 Quadruple undo limits (bug#1501).
8022
8023 2009-01-27 Kenichi Handa <handa@m17n.org>
8024
8025 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8026 directly use GT_Get_Char_index.
8027
8028 * xftfont.c (struct xftfont_info): New member `index'.
8029
8030 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8031 (Ffontset_font): Adjust for the change of fontset entry.
8032
8033 2009-01-26 Kenichi Handa <handa@m17n.org>
8034
8035 * fontset.c (fontset_find_font): Fix handling of non-cons return
8036 value of fontset_get_font_group.
8037 (fontset_font): Revert last change.
8038
8039 2009-01-26 Jason Rumney <jasonr@gnu.org>
8040
8041 * w32font.c (w32font_list_internal): Return quickly if registry is
8042 unknown. Simplify final return.
8043 (add_font_entity_to_list): Break complex logic down into more
8044 manageable chunks. Move unknown registry check to
8045 w32font_list_internal.
8046
8047 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8048
8049 Changes to remove Feval calls from GUI under NS.
8050
8051 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8052 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8053 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8054
8055 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8056 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8057 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8058 instead of NON_ASCII_KEYSTROKE_EVENT.
8059 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8060 (EmacsApp-applicationShouldTerminate:): Query user.
8061 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8062 instead of Feval.
8063
8064 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8065
8066 * keyboard.c (kbd_buffer_get_event): Check for it.
8067 (keys_of_keyboard): Define lispy keys for
8068 ns-put/unput-working-text.
8069
8070 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8071 versions.
8072 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8073
8074 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
8075
8076 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
8077 setting current_buffer directly. (Bug#2044)
8078
8079 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
8080
8081 * fontset.c (fontset_font): If we know there is no font, don't do
8082 any work. (Bug#1952, bug#1990).
8083
8084 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
8085
8086 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8087
8088 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
8089 (ns_no_defaults): New declaration.
8090 (main): Use it.
8091
8092 * nsterm.h (ns_no_defaults): New declaration.
8093
8094 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
8095
8096 * nsterm.m (ns_no_defaults): New variable.
8097 (ns_initialize): Don't read defaults when ns_no_defaults.
8098 (EmacsView-readSelectionFromPasteboard:)
8099 (writeSelectionToPasteboard:types:): New stubbed-out methods for
8100 NSServicesRequests protocol. (Bug#1435)
8101 (ns_dumpglyphs_stretch): New function.
8102 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
8103 of 2008-11-15 to other terms. (Bug#615)
8104
8105 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8106
8107 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8108
8109 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8110 call for Sparc64.
8111
8112 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8113
8114 * nsfns.m:
8115 * nsgui.h:
8116 * nsmenu.m:
8117 * nsselect.m:
8118 * nsterm.h:
8119 * nsterm.m: Remove '23' comments that indicated code added during
8120 update from emacs-20 -> emacs-23.
8121
8122 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8123
8124 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
8125 ns_alternate_modifier. (Bug#1217)
8126
8127 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8128 Display all shortcuts, including those w/o super modifier.
8129
8130 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8131
8132 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
8133
8134 * fileio.c (Vwrite_region_post_annotation_function)
8135 (Vwrite_region_annotation_buffers): New vars.
8136 (build_annotations_unwind): Just reset
8137 Vwrite_region_annotation_buffers.
8138 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8139 Call write-region-post-annotation-function.
8140 (build_annotations): Add to Vwrite_region_annotation_buffers if
8141 buffer changes.
8142
8143 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8144
8145 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8146 Tiger.
8147 * nsfns.m (ns_do_applescript):
8148 Conditionalize typeUTF16ExternalRepresentation on Tiger.
8149
8150 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8151
8152 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8153
8154 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8155
8156 * nsmenu.m (NSMENUPROFILE): Change #if style.
8157
8158 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8159
8160 * nsterm.m (x_set_frame_alpha): Add prototype.
8161 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8162 handle Ctrl-tab. (Bug#1841)
8163 (ns_get_color): Use unsigned long long for scanned hex string value.
8164 (ns_term_shutdown): Abort on non SIGTERM signals.
8165 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
8166 (EmacsPrefsController-setPanelFromDefaultValues): New function.
8167 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
8168 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
8169 (ns_defined_color): Fix settings of the XColor variable fields:
8170 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
8171
8172 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
8173 DPI. (Bug#1316)
8174 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8175 values in onTiger section.
8176
8177 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
8178
8179 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8180 Check return value of font_spec_from_name.
8181 (Fx_list_fonts): Doc fix. (Bug#1951)
8182
8183 * font.c (font_spec_from_name): Return Qnil if font name could not
8184 be parsed.
8185 (font_parse_name): Treat a `?' character as part of an XLFD.
8186
8187 * fns.c (Fsubstring): Doc fix.
8188
8189 2009-01-19 Kenichi Handa <handa@m17n.org>
8190
8191 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
8192 (ftfont_list): Likewise.
8193
8194 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
8195
8196 * dbusbind.c (Fdbus_register_signal):
8197 * process.c (conv_sockaddr_to_lisp):
8198 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8199
8200 * callproc.c (Fgetenv_internal): Doc fix.
8201
8202 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
8203
8204 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8205 it is not even used.
8206
8207 2009-01-16 Glenn Morris <rgm@gnu.org>
8208
8209 * font.c (Ffont_variation_glyphs): Silence compiler.
8210
8211 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
8212
8213 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8214 Reported by David Robinow <drobinow@gmail.com>.
8215
8216 2009-01-15 Kenichi Handa <handa@m17n.org>
8217
8218 * coding.c (detect_coding_system): Fix handling of null_byte_found.
8219
8220 2009-01-14 Jason Rumney <jasonr@gnu.org>
8221
8222 * frame.c (x_set_font): Always store a font to the font parameter,
8223 never a fontset. (Bug#1562)
8224
8225 2009-01-14 Kenichi Handa <handa@m17n.org>
8226
8227 * coding.c (TWO_MORE_BYTES): New macro.
8228 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
8229
8230 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
8231
8232 * font.c (font_clear_prop): If clearing the family, clear the font
8233 width index too.
8234
8235 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
8236
8237 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
8238
8239 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8240 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8241 functions, use sizeof.
8242
8243 2009-01-12 Martin Rudalics <rudalics@gmx.at>
8244
8245 * keyboard.c (read_char): Fix case where last_nonmenu_event
8246 returned a bad value with submenus. (Bug#447)
8247
8248 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
8249
8250 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8251 family, clear the font width index too.
8252
8253 2009-01-11 Jason Rumney <jasonr@gnu.org>
8254
8255 * keyboard.c (cmd_error_internal): Exit when errors occur before
8256 frame creation and not in daemon mode. (Bug#1836)
8257
8258 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
8259
8260 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8261 of a display vector, backtrack.
8262 (try_window_reusing_current_matrix): Check glyph type before
8263 referencing charpos member.
8264
8265 2009-01-10 Eli Zaretskii <eliz@gnu.org>
8266
8267 Fix Bug #876:
8268
8269 * coding.c (inhibit_null_byte_detection): New variable.
8270 (detect_coding, detect_coding_system): Don't pay attention to null
8271 bytes if inhibit_null_byte_detection is non-zero.
8272 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
8273 <inhibit-iso-escape-detection>: Doc fix.
8274
8275 2009-01-09 Jason Rumney <jasonr@gnu.org>
8276
8277 * w32font.c (add_font_entity_to_list): Don't report unknown
8278 Windows charset as any unrecognized registry. (Bug#1548)
8279 Only report Unicode Plane 2 fonts as unicode-sip.
8280
8281 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * xfaces.c (Fx_font_family_list): Delete function.
8284 Move compatibility version to faces.el.
8285
8286 * font.c (Ffont_family_list): Return a list of strings, not symbols.
8287
8288 2009-01-09 Martin Rudalics <rudalics@gmx.at>
8289
8290 * frame.c (x_set_frame_parameters): Remember requested value for
8291 fullscreen before it's reset by the parameter handler.
8292
8293 2009-01-09 Glenn Morris <rgm@gnu.org>
8294
8295 * keyboard.c (last_command_char): For clarity, rename to...
8296 (last_command_event): ... and update all users.
8297 (last_input_char): For clarity, rename to...
8298 (last_input_event): ... and update all users.
8299 (last-command-char, last-input-char): Move to subr.el as aliases.
8300 * cmds.c, commands.h: Update for last_command_char rename.
8301
8302 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * font.c (font_open_for_lface): Handle unspecified height attribute.
8305
8306 2009-01-08 Jason Rumney <jasonr@gnu.org>
8307
8308 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8309 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8310 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8311 Don't declare.
8312 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
8313 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8314
8315 2009-01-07 Kenichi Handa <handa@m17n.org>
8316
8317 * fileio.c (Finsert_file_contents): In the case of replace,
8318 remember the coding system used for decoding in
8319 coding_system (Bug#1039).
8320
8321 * coding.c (decode_coding_utf_8): Check byte_after_cr before
8322 breaking the loop. (Bug#870)
8323 (decode_coding_utf_16, decode_coding_emacs_mule)
8324 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8325 (decode_coding_charset): Likewise.
8326
8327 2009-01-05 Martin Rudalics <rudalics@gmx.at>
8328
8329 * frame.c (x_set_frame_parameters): Make sure height (width) get
8330 applied when fullwidth (fullheight) is set. (Bug#1522)
8331
8332 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
8333
8334 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8335 (utc_base): Declare as ULONGLONG, not long double.
8336 (convert_time_raw): Delete.
8337 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8338 (initialize_utc_base): New function.
8339 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8340 (convert_from_time_t): Use initialize_utc_base; compute result with
8341 64-bit arithmetic.
8342 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8343
8344 2009-01-03 Eli Zaretskii <eliz@gnu.org>
8345
8346 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
8347 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8348 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8349 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8350 [!subprocesses]: Define.
8351 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8352 (Flist_system_processes, Fsystem_process_attributes)
8353 [!subprocesses]: Call list_system_processes and
8354 system_process_attributes instead of returning Qnil.
8355
8356 * dosfns.c (system_process_attributes, list_system_processes):
8357 New functions.
8358
8359 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8360
8361 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8362 Don't use the default (no-op) implementation.
8363
8364 2009-01-03 Jason Rumney <jasonr@gnu.org>
8365
8366 * keyboard.c (parse_modifiers_uncached): Wheel events are
8367 clicks (bug#687).
8368
8369 * w32term.c (x_query_colors, x_query_color): New functions.
8370
8371 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8372 (svg_load_image): Cast returned pointers from dynamically loaded
8373 functions. Eliminate W32 specific code.
8374
8375 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8376
8377 * nsfns.m (x_set_foreground_color, x_set_background_color)
8378 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8379 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8380 x_ prefix instead of ns_. Update references.
8381 (syms_of_nsfns): Add a FIXME comment.
8382
8383 * nsterm.m (x_set_cursor_type): New prototype.
8384 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8385
8386 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8387 for Solaris instead of incorrectly providing Qutime and Qcutime.
8388
8389 2009-01-02 Eli Zaretskii <eliz@gnu.org>
8390
8391 * w32.c (process_times): Compute sum of utime and stime.
8392 (system_process_attributes): Add Qtime to the alist.
8393
8394 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8395 and add them to the alist.
8396
8397 * process.c (top level) <Qtime, Qctime>: New variables.
8398 (syms_of_process): staticpro them.
8399 (Fsystem_process_attributes): Add their documentation to the doc
8400 string.
8401
8402 * process.h: Declare Qtime and Qctime.
8403
8404 2009-01-02 Jason Rumney <jasonr@gnu.org>
8405
8406 * image.c (Qgobject): New symbol.
8407 (syms_of_image): Initialize it.
8408 (init_svg_functions): Load some functions from gobject library.
8409
8410 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8411
8412 * frame.c (make_terminal_frame): Remove redundant code and useless
8413 block.
8414
8415 2009-01-01 Andreas Schwab <schwab@suse.de>
8416
8417 * process.c (conv_sockaddr_to_lisp): Add workaround for
8418 getsockname bug on BSD.
8419
8420 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
8421
8422 * xfns.c (x_create_tip_frame): Set border width of the X window.
8423
8424 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
8425
8426 2009-01-01 Jason Rumney <jasonr@gnu.org>
8427
8428 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
8429 Don't block input, as per earlier xterm.c changes.
8430
8431 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8432
8433 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8434 (ns_appkit_version_int): New function.
8435 (x-server-version): Use ns_appkit_version_int and follow 21+
8436 convention of returning 3 integers.
8437
8438 2008-12-30 Kenichi Handa <handa@m17n.org>
8439
8440 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8441 (CHAR_SURROGATE_PAIR_P): New macro.
8442
8443 * font.h (struct font_driver): New member get_variation_glyphs.
8444
8445 * font.c (font_range): Don't require a font for a variation selector.
8446 (Ffont_variation_glyphs): New function.
8447 (syms_of_font): Defsubr it.
8448
8449 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8450 ftfont_variation_glyphs.
8451 (setup_otf_gstring): New function.
8452 (ftfont_drive_otf): Use it.
8453 (ftfont_shape_by_flt): Handle variation selector.
8454 (ftfont_variation_glyphs): New function.
8455
8456 2008-12-30 Martin Rudalics <rudalics@gmx.at>
8457
8458 * frame.c (Vemacs_iconified): Remove.
8459
8460 2008-12-30 Jason Rumney <jasonr@gnu.org>
8461
8462 * frame.c (store_frame_param, x_get_arg): Enable newer code on
8463 WINDOWSNT too, as related changes have already been synced. (Bug#117)
8464
8465 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
8466
8467 * indent.c (Fvertical_motion): Don't advance iterator if we have
8468 reseated to the desired position.
8469
8470 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8471 checking for pos match.
8472
8473 2008-12-30 Kenichi Handa <handa@m17n.org>
8474
8475 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8476 just get the low 8-bit of the code.
8477
8478 * font.c (font_intern_prop): Validate str as multibyte.
8479
8480 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8481
8482 * dispextern.h (struct face): Move lface and hash from the middle
8483 of bitfields.
8484
8485 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8486
8487 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8488
8489 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8490 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8491 instead of intervals.h.
8492
8493 2008-12-26 Andreas Schwab <schwab@suse.de>
8494
8495 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8496 cons.
8497
8498 2008-12-26 Martin Rudalics <rudalics@gmx.at>
8499
8500 * textprop.c (Qminibuffer_prompt): New variable.
8501 (syms_of_textprop): Initialize it.
8502 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8503 in minibuffer-prompt face. (Bug#1662)
8504
8505 2008-12-25 Jason Rumney <jasonr@gnu.org>
8506
8507 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8508
8509 2008-12-24 Jason Rumney <jasonr@gnu.org>
8510
8511 * ralloc.c (r_alloc_reset_variable): New function.
8512
8513 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
8514 record of what points where. (Bug#716)
8515
8516 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8517
8518 * minibuf.c (read_minibuf): Follow the non-interactive case when
8519 running as a daemon, before detaching.
8520
8521 2008-12-22 Andreas Schwab <schwab@suse.de>
8522
8523 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8524 * gtkutil.c (free_widget_value): Use xfree instead of free.
8525
8526 2008-12-22 Martin Rudalics <rudalics@gmx.at>
8527
8528 * frame.c (delete_frame): New function derived from
8529 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8530 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8531 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8532 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8533 * frame.h: Extern delete_frame.
8534 * window.c (window_loop):
8535 * terminal.c (delete_terminal):
8536 * xterm.c (x_connection_closed):
8537 * xfns.c (Fx_hide_tip):
8538 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
8539
8540 2008-12-21 Jason Rumney <jasonr@gnu.org>
8541
8542 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8543 when character maps to .notdef character.
8544
8545 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8546
8547 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8548
8549 2008-12-20 Jason Rumney <jasonr@gnu.org>
8550
8551 * frame.c (Fmake_terminal_frame): Raise an error when called from
8552 a graphical frame on Windows. (Bug#1325)
8553
8554 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8555
8556 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8557
8558 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
8559
8560 * minibuf.c (Fread_buffer): Doc fix.
8561
8562 2008-12-20 Jason Rumney <jasonr@gnu.org>
8563
8564 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
8565 server name in UNC paths. (Bug#719)
8566
8567 * coding.c (decode_coding): Clear chars_at_source flag when using
8568 charbuf. (Bug#1035)
8569
8570 2008-12-19 Daniel Engeler <engeler@gmail.com>
8571
8572 * sysdep.c (serial_configure): Fix typo.
8573
8574 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8575
8576 * sysdep.c: Include alloca.h.
8577 (system_process_attributes): Add implementation for Solaris.
8578
8579 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
8580
8581 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8582
8583 Reorganize implementation of Flist_system_processes and
8584 Fsystem_process_attributes. No functional changes.
8585 * process.c: Don't #include pwd.h, grp.h and limits.h.
8586 (Flist_system_processes): Just call list_system_processes.
8587 (Fsystem_process_attributes): Just call system_process_attributes.
8588 (procfs_list_system_processes, time_from_jiffies)
8589 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8590 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8591
8592 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8593 (list_system_processes): Rename from
8594 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8595 Provide a do nothing implementation.
8596 (system_process_attributes): Rename from
8597 procfs_list_system_processes.
8598 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8599 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
8600
8601 * w32.c (list_system_processes): Rename from
8602 w32_list_system_processes.
8603 (system_process_attributes): Rename from
8604 w32_system_process_attributes.
8605
8606 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8607
8608 * process.h (w32_list_system_processes)
8609 (w32_system_process_attributes): Remove.
8610 (list_system_processes, system_process_attributes):
8611 New prototypes.
8612
8613 2008-12-19 Kenichi Handa <handa@m17n.org>
8614
8615 * xfont.c (xfont_decode_coding_xlfd): New function.
8616 (xfont_encode_coding_xlfd): New function.
8617 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8618 (xfont_list): Decode and encode XLFD by iso-8859-1.
8619 (xfont_match): Likewise.
8620 (xfont_list_family): Likewise.
8621 (xfont_open): Likewise.
8622
8623 * ftfont.c (ftfont_open): Generate a multibyte string if given
8624 names are utf-8.
8625
8626 * xftfont.c (xftfont_open): Generate a multibyte string if given
8627 names are utf-8.
8628
8629 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8630
8631 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8632 changed.
8633 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8634 clicked on a detached tool bar button.
8635
8636 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8637
8638 * emacs.c (main): Print and error and exit when no data is read
8639 from the pipe.
8640
8641 2008-12-17 Jason Rumney <jasonr@gnu.org>
8642
8643 * w32font.c (w32font_has_char): Always return -1.
8644
8645 2008-12-16 Kenichi Handa <handa@m17n.org>
8646
8647 * font.c (font_open_entity): Fix previous change.
8648
8649 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8650
8651 * process.c: Include <limits.h>.
8652
8653 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
8654
8655 * font.c (font_update_drivers): Fix mistake in reconstructing the
8656 driver list.
8657
8658 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
8659
8660 * font.c (font_clear_cache): Fix format of font cache data.
8661
8662 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
8663
8664 * xftfont.c (xftfont_open): Free Xft font pattern if
8665 XftFontOpenPattern fails.
8666
8667 * xterm.c (x_free_frame_resources): Remove extraneous call to
8668 free_frame_faces.
8669
8670 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8671
8672 * xterm.c (x_delete_display): Move xim_close_dpy call to
8673 x_delete_terminal.
8674 (x_delete_terminal): Call xim_close_dpy.
8675
8676 2008-12-13 Jason Rumney <jasonr@gnu.org>
8677
8678 * w32font.c (intern_font_name): New function.
8679 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8680 (w32font_open_internal, Fx_select_font): Decode font name.
8681 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8682
8683 * w32font.h (intern_font_name): Declare new function.
8684
8685 * w32uniscribe.c (add_opentype_font_name_to_list):
8686 Use intern_font_name.
8687
8688 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8689
8690 * frame.c (Fdelete_frame): Call free_font_driver_list.
8691
8692 * font.c (free_font_driver_list): Implement missing function.
8693
8694 * w32term.c (w32_term_init): Don't initialize the image cache
8695 here; it will be done in init_frame_faces.
8696
8697 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8698 (struct x_display_info): Remove unused member null_pixel. New
8699 member xim_callback_data.
8700
8701 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8702 (xim_initialize): Save pointer to callback function data.
8703 (xim_close_dpy): Free callback function data. Call XCloseIM,
8704 reverting 2008-11-04 change by David Smith.
8705 (x_term_init): Don't initialize the image cache here; it will be
8706 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8707 (x_delete_display): Free x_dnd_atoms member.
8708
8709 2008-12-13 Kenichi Handa <handa@m17n.org>
8710
8711 * font.c (font_rescale_ratio): Moved from xfaces.c.
8712 Argument type changed. Handle a font-spec too.
8713 (font_score): Check Vface_font_rescale_alist.
8714 (font_open_entity): Likewise. (Bug#1547)
8715
8716 * xfaces.c (font_rescale_ratio): Moved to font.c.
8717
8718 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8719
8720 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8721
8722 2008-12-12 Jason Rumney <jasonr@gnu.org>
8723
8724 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8725 Vwindow_system_version to the real w32 major version.
8726
8727 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8728
8729 * term.c (init_tty): Move setting the terminal name before the
8730 potential user: maybe_fatal.
8731
8732 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
8733
8734 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8735 all callers changed. Call free_frame_faces to free the face cache.
8736
8737 2008-12-11 Jason Rumney <jasonr@gnu.org>
8738
8739 * w32font.c (fill_in_logfont): Don't assume symbol script means
8740 SYMBOL_CHARSET. (Bug#547)
8741
8742 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
8743 size for surrogates. (Bug#1096, bug#872)
8744
8745 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8746
8747 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8748
8749 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8750
8751 * process.c (Fsystem_process_attributes, syms_of_process):
8752 Fix typo in name of Ssystem_process_attributes.
8753 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8754
8755 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8756
8757 * syntax.c (Fmodify_syntax_entry): Doc fix.
8758
8759 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8760
8761 * font.c (Ffont_spec): Move usage to end of docstring.
8762
8763 2008-12-10 Jason Rumney <jasonr@gnu.org>
8764
8765 * w32font.c (Qcham): New symbol.
8766 (font_supported_scripts): Add cham, and comments for other new
8767 scripts in bitfield from OpenType spec.
8768 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8769 contain characters beyond the bmp.
8770
8771 2008-12-10 Kenichi Handa <handa@m17n.org>
8772
8773 * ftfont.c (fc_charset_table): Add "unicode-sip".
8774 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
8775 Qunicode_sip.
8776
8777 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8778
8779 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8780 (Fcoding_system_put): Use QCdefault_char.
8781 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8782
8783 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
8784
8785 * xftfont.c (syms_of_xftfont): Fix typo.
8786
8787 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
8788
8789 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8790
8791 * emacs.c (main): Close daemon_pipe on exec.
8792
8793 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
8794
8795 * termchar.h (struct tty): New members termcap_term_buffer and
8796 termcap_strings_buffer.
8797
8798 * term.c (encode_terminal_code): Free any previous memory blocks
8799 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
8800 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8801 All callers changed.
8802 (init_tty): Store termcap data and string buffers in new struct
8803 tty members termcap_term_buffer and termcap_strings_buffer.
8804 (delete_tty): Free them.
8805 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
8806
8807 2008-12-07 Seiji Zenitani <zenitani@mac.com>
8808
8809 * nsfns.m (ns_set_background_color): Remove code duplication.
8810 It was a substitute for face-transparency on OS X 10.3.
8811
8812 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
8813
8814 * coding.c (make_conversion_work_buffer): Disable buffer
8815 modification hooks in the work buffer.
8816
8817 2008-12-05 Eli Zaretskii <eliz@gnu.org>
8818
8819 * process.c (procfs_system_process_attributes): If `nread' has a
8820 negative value, assign zero to it.
8821
8822 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
8823
8824 * eval.c (Vdebug_on_error): Doc fix.
8825
8826 2008-12-05 Kenichi Handa <handa@m17n.org>
8827
8828 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8829 second character is a combining character.
8830
8831 2008-12-05 Eli Zaretskii <eliz@gnu.org>
8832
8833 * process.c (procfs_system_process_attributes): Don't use cmd,
8834 cmdsize, and q without initializing them first.
8835
8836 2008-12-04 Jason Rumney <jasonr@gnu.org>
8837
8838 * w32font.c (w32font_draw): Initialize orig_clip before getting
8839 it, and delete it when finished.
8840
8841 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8842
8843 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8844 case when running as a daemon before detaching.
8845
8846 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
8847
8848 * w32.c (init_environment): Don't unload library shell32.dll.
8849
8850 2008-12-03 Kenichi Handa <handa@m17n.org>
8851
8852 * font.c (font_at): Set `multibyte' at first.
8853
8854 * coding.c (decode_coding_charset): Check type of an element of
8855 vector VALIDS.
8856 (encode_coding_emacs_mule): Be sure to set `code'.
8857
8858 * fontset.c (face_for_char): Handle invalid charset property correctly.
8859 (font_for_char): Likewise.
8860
8861 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
8862
8863 * font.c (Fopen_font): Compute pixel size correctly.
8864 (font_update_lface): Handle fonts with corrupted size specs,
8865 i.e. non-int and non-float.
8866
8867 * ftfont.c (ftfont_match): Initialize entity variable.
8868 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8869 (ftfont_list_family): Initialize list var earlier.
8870
8871 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8872
8873 * xterm.c (x_draw_glyph_string): Fall back on
8874 underline_minimum_offset for underline position.
8875
8876 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8877
8878 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8879
8880 * character.c (c_string_width): Specify the type for LEN.
8881
8882 2008-12-03 Kenichi Handa <handa@m17n.org>
8883
8884 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
8885 (decode_coding_utf_8): Likewise.
8886 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
8887 (produce_chars): Initialize consumed_chars to 0.
8888
8889 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
8890
8891 * keyboard.c (make_lispy_position): Only use PT if the selected
8892 window is current.
8893
8894 2008-12-02 Andreas Schwab <schwab@suse.de>
8895
8896 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8897
8898 * doprnt.c (doprnt1): Fix size of charbuf.
8899
8900 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
8901
8902 * keyboard.c (timer_check): Revert last change.
8903
8904 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
8905
8906 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8907
8908 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
8909
8910 * makefile.w32-in: Update dependencies.
8911 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8912
8913 2008-12-01 Andreas Schwab <schwab@suse.de>
8914
8915 * font.c (register_font_driver): Use xmalloc.
8916 (font_put_frame_data): Likewise.
8917
8918 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
8919
8920 * xfaces.c (realize_x_face): Make abort condition clearer.
8921
8922 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8923
8924 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
8925
8926 * keyboard.c (timer_check): After a timer runs, ensure that the
8927 selected window's buffer is current.
8928
8929 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
8930
8931 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8932 It was accidentally restored by the Unicode merge.
8933
8934 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8935
8936 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
8937
8938 * w32proc.c: Include "coding.h".
8939 (Fw32_short_file_name): Encode filename passed to Windows API.
8940 (Fw32_long_file_name): Encode filename passed to Windows API and
8941 decode back the result. (Bug#1433)
8942
8943 2008-11-29 Kenichi Handa <handa@m17n.org>
8944
8945 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8946 not before accessing it.
8947
8948 * charset.c (Fdefine_charset_internal): After calculating
8949 min_char, max_char, and fastmap, copy the charset structure again.
8950 (encode_char): Fix the previous change.
8951
8952 2008-11-28 Seiji Zenitani <zenitani@mac.com>
8953
8954 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8955
8956 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8957
8958 * nsterm.m (x_set_frame_alpha): New function.
8959
8960 2008-11-27 Eli Zaretskii <eliz@gnu.org>
8961
8962 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8963
8964 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
8965
8966 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8967 pointer to check_face_name.
8968
8969 2008-11-27 Kenichi Handa <handa@m17n.org>
8970
8971 * category.h (SET_CATEGORY_SET): Call set_category_set.
8972 (set_category_set): Extern it.
8973
8974 * category.c (hash_get_category_set): New function.
8975 (Fmodify_category_entry): Adjusted for the change of
8976 char_table_ref_and_range. Call hash_get_category_set to get a
8977 category set to store in the table.
8978
8979 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8980 Funify_charset.
8981
8982 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
8983 (DECODE_CHAR): Check if the decoder vector is ready.
8984 (ENCODE_CHAR): Check if the encoder char-table is ready.
8985 (maybe_unify_char): Extern it.
8986
8987 * charset.c (Vchar_unified_charset_table): Delete it.
8988 (inhibit_load_charset_map): New variable.
8989 (temp_charset_work): New variable.
8990 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8991 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8992 New macros.
8993 (load_charset_map): Meaning of control_flag changed. If
8994 inhibit_load_charset_map is nonzero, setup a table in
8995 temp_charset_work.
8996 (load_charset): New argument control_flag.
8997 (map_charset_for_dump): New function.
8998 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8999 map_charset_for_dump.
9000 (Fdefine_charset_internal): If the charset method is MAP, load
9001 mapping tables by calling load_charset.
9002 (Funify_charset): Don't load a mapping table but directly set
9003 Vchar_unify_table.
9004 (maybe_unify_char): New function.
9005 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9006 Handle the case of inhibit_load_charset_map being nonzero.
9007 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9008 Handle the case of inhibit_load_charset_map being nonzero.
9009 (Fclear_charset_maps): Just free temp_charset_work.
9010 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9011 variable.
9012
9013 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9014 change of char_table_ref_and_range.
9015 (char_table_ref_and_range): Change the meaning of argument FROM
9016 and TO. Now the caller must provide initial values for *FROM
9017 and *TO.
9018
9019 * fontset.c (fontset_add): Adjusted for the change of
9020 char_table_ref_and_range.
9021 (fontset_get_font_group): Likewise.
9022 (Ffontset_info): Likewise.
9023
9024 * keymap.c (describe_vector): Adjusted for the change of
9025 char_table_ref_and_range. For char-table, put boundary between
9026 non-ASCII and 8-bit characters.
9027
9028 * print.c (print_object): For bool-vector, delete unnecessary
9029 check of ASCII_BYTE_P.
9030
9031 2008-11-26 Jason Rumney <jasonr@gnu.org>
9032
9033 * w32font.c (w32font_open_internal): Don't include external
9034 leading in font height. (Bug#879)
9035
9036 2008-11-26 Glenn Morris <rgm@gnu.org>
9037
9038 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9039 redefinition with ifdef. (Bug#1383)
9040
9041 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9042
9043 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9044
9045 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9046
9047 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9048 New EmacsView methods.
9049 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9050 Fixes bug #1048,1357,1414.
9051
9052 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9053
9054 Fix bug #1362.
9055 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9056 is not an indexed color.
9057 * nsterm.m (free_indexed_color): Add argument checking.
9058 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9059
9060 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
9061
9062 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9063 Document confirm-after-completion value for
9064 minibuffer-completion-confirm.
9065
9066 2008-11-24 Jason Rumney <jasonr@gnu.org>
9067
9068 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9069 warning.
9070
9071 2008-11-23 Jason Rumney <jasonr@gnu.org>
9072
9073 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9074 restored before returning.
9075
9076 * w32font.c (check_face_name): New function.
9077 (add_font_entity_to_list): Use it to filter out common substituted
9078 fonts. (Bug#642)
9079
9080 2008-11-22 Martin Rudalics <rudalics@gmx.at>
9081
9082 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9083 confirm-nonexistent-file-or-buffer in doc-string.
9084
9085 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9086
9087 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9088 Fix copy/paste typo. Add checks.
9089
9090 2008-11-21 Kenichi Handa <handa@m17n.org>
9091
9092 * coding.c (detect_coding_iso_2022): Reject invalid composition
9093 sequence.
9094 (DECODE_COMPOSITION_START): If the current source is the last
9095 block, and the current composition doesn't end, regard this
9096 sequence as invalid.
9097 (decode_coding_iso_2022): Handle invalid composition sequence.
9098
9099 2008-11-20 Martin Rudalics <rudalics@gmx.at>
9100
9101 * window.c (coordinates_in_window): Don't return
9102 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9103 line when the window is not the rightmost one. (Bug#1372)
9104
9105 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9106
9107 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9108
9109 2008-11-15 Eli Zaretskii <eliz@gnu.org>
9110
9111 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9112 and bright_bg if noninteractive is non-zero.
9113
9114 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9115
9116 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9117 x_draw_glyph_string_background.
9118
9119 * w32term.c (x_draw_glyph_string): Likewise.
9120
9121 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
9122
9123 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9124 the next glyph string once past the overhang width.
9125
9126 * nsterm.m (ns_draw_glyph_string): Likewise.
9127
9128 * w32term.c (x_draw_glyph_string): Likewise.
9129
9130 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9131
9132 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9133 double file close.
9134
9135 2008-11-14 Martin Rudalics <rudalics@gmx.at>
9136
9137 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9138 dedicated status of window before attempting to display another
9139 buffer in it.
9140
9141 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
9142
9143 * msdos.c (Fmsdos_long_file_names):
9144 (syms_of_msdos) <dos-unsupported-char-glyph>:
9145 * dosfns.c (Fint86): Fix typos in docstrings.
9146
9147 2008-11-14 Eli Zaretskii <eliz@gnu.org>
9148
9149 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9150
9151 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9152
9153 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9154
9155 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9156
9157 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9158
9159 * frame.h: Negative alpha means "don't touch".
9160
9161 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9162
9163 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9164
9165 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9166
9167 * hftctl.c:
9168 * chpdef.h:
9169 * acldef.h: Remove files used only for systems no longer supported.
9170
9171 * Makefile.in: Fix .o alphabetical ordering.
9172 (hftctl.o): Remove dependency, file removed.
9173 (keymap.o, print.o): Depend on charset.h.
9174
9175 2008-11-10 Kenichi Handa <handa@m17n.org>
9176
9177 * character.c (Fget_byte): Fix and make it faster for unibyte target.
9178
9179 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
9180
9181 * dired.c (file_name_completion): If completion_ignore_case is
9182 enabled, ignore case when checking completion-regexp-list.
9183
9184 2008-11-08 Eli Zaretskii <eliz@gnu.org>
9185
9186 * vm-limit.c (get_lim_data): Fix last change.
9187
9188 2008-11-08 Kenichi Handa <handa@m17n.org>
9189
9190 * character.c (Fget_byte): New function.
9191 (syms_of_character): Defsubr Fget_byte.
9192
9193 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
9194
9195 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9196 cursor position is valid after scrolling.
9197
9198 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
9199
9200 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9201
9202 2008-11-06 Glenn Morris <rgm@gnu.org>
9203
9204 * xterm.c (handle_one_xevent): Don't let popup menus cause
9205 mouse-autoselect-window related window switching. (Bug#1261)
9206
9207 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9208
9209 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9210
9211 2008-11-04 Andreas Schwab <schwab@suse.de>
9212
9213 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9214
9215 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
9216
9217 * xfns.c (Fx_wm_set_size_hint): New function.
9218
9219 2008-11-03 Martin Rudalics <rudalics@gmx.at>
9220
9221 * textprop.c (Fprevious_single_char_property_change): Return 0
9222 when there's no change in a string. (Bug#1301)
9223
9224 2008-11-02 Martin Rudalics <rudalics@gmx.at>
9225
9226 * frame.c (do_switch_frame): New argument NORECORD passed to
9227 Fselect_window.
9228 (Fselect_frame): New argument NORECORD passed to
9229 do_switch_frame.
9230 (Fset_frame_selected_window): New argument NORECORD passed to
9231 Fselect_frame.
9232 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9233 in call of do_switch_frame.
9234 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9235 Handle NORECORD argument in call of Fselect_frame.
9236 * lisp.h (do_switch_frame, Fselect_frame)
9237 (Fset_frame_selected_window): Adjust declarations.
9238 * window.c (select_frame_norecord): New function.
9239 (run_window_configuration_change_hook): Use it and call
9240 Fselect_frame with NORECORD set.
9241 (Fselect_window): Pass NORECORD to Fselect_frame.
9242 (Fset_window_configuration): Handle NORECORD argument in call of
9243 do_switch_frame.
9244 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9245 Fset_frame_selected_window.
9246 * keyboard.c (command_loop_1): Handle NORECORD in call of
9247 Fselect_frame (currently ifdefd).
9248
9249 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9250
9251 * emacs.c (USAGE2): Untabify.
9252
9253 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9254
9255 * composite.c (fill_gstring_header): Fix copy/paste typo.
9256
9257 2008-10-31 Martin Rudalics <rudalics@gmx.at>
9258
9259 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9260 (Fother_window): Rename argument and rewrite doc-string.
9261 (select_window_norecord): Fix return value. (Bug#1276)
9262
9263 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
9264
9265 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9266 new frames overriding foreground for tooltips. Based on similar patch
9267 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9268
9269 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
9270
9271 * emacs.c (Fdaemon_initialized): Initialize nfd.
9272
9273 2008-10-29 Martin Rudalics <rudalics@gmx.at>
9274
9275 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9276 (Fwindow_text_height): Clarify doc-strings.
9277 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9278 doc-string of window-scroll-functions.
9279
9280 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9281
9282 * category.c (syms_of_category): Fix typo in docstring.
9283
9284 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
9285
9286 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9287 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9288 Fix typos in docstrings.
9289
9290 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9291
9292 * emacs.c (daemon_pipe): Make non-static.
9293 (IS_DAEMON): Move definition ...
9294 * lisp.h (IS_DAEMON): ... here.
9295 (daemon_pipe): Declare.
9296 (is_daemon): Remove.
9297 * dispnew.c (init_display): Use IS_DAEMON.
9298
9299 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9300
9301 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9302 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9303
9304 * emacs.c (is_daemon): Remove.
9305 (main): Don't set is_daemon.
9306 (IS_DAEMON): New macro.
9307 (Fdaemonp, Fdaemon_initialized): Use it.
9308 (Fdaemon_initialized): Write a char into the pipe to make sure the
9309 parent exits.
9310 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9311
9312 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
9313
9314 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9315 over-sized glyph, draw it with the default glyph width.
9316
9317 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9318 glyph, draw it with the default glyph width.
9319
9320 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9321 glyph, draw it with the default glyph width.
9322
9323 * xdisp.c (try_scrolling): When computing the distance from the
9324 scroll margin to PT, try moving some distance past the window
9325 bottom before giving up.
9326
9327 2008-10-27 Martin Rudalics <rudalics@gmx.at>
9328
9329 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9330 (Fset_window_buffer): Explain in doc-string that a window can be
9331 "strongly" dedicated to its buffer.
9332
9333 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9334
9335 * emacs.c (daemon_name): New variable.
9336 (main): Deal with --daemon=SERVER_NAME.
9337 (Fdaemonp): Return a name if one was passed to --daemon.
9338
9339 2008-10-26 Romain Francoise <romain@orebokech.com>
9340
9341 * emacs.c (daemon_pipe): New variable.
9342 (main): Create a pipe before forking, make the parent exit only after
9343 the child has closed its end of the pipe. Move closing the
9344 descriptors ...
9345 (Fdaemon_initialized): ... here. New function.
9346
9347 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9348
9349 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9350 the previous unoptimized table.
9351
9352 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9353 the distinction between non-nil and non-t value of `dedicated'.
9354
9355 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
9356
9357 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
9358 read_char_minibuf_menu_text is large enough to hold the menu string.
9359
9360 2008-10-25 Martin Rudalics <rudalics@gmx.at>
9361
9362 * window.c (Fget_buffer_window, Fdelete_windows_on)
9363 (Freplace_buffer_in_windows): Make buffer argument optional and
9364 rename to buffer_or_name.
9365
9366 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * xdisp.c (handle_single_display_spec, handle_display_prop):
9369 Undo 2005-05-16 change.
9370 (handle_stop): Pop iterator if it's loaded with an empty string.
9371 (get_overlay_strings_1): Don't save iterator if it's loaded with
9372 an empty string (bug#1201).
9373
9374 2008-10-24 Kenichi Handa <handa@m17n.org>
9375
9376 * ftfont.c (ftfont_otf_features): Fix previous change.
9377 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9378 calling ftfont_otf_features.
9379
9380 2008-10-24 Kenichi Handa <handa@m17n.org>
9381
9382 * font.c (font_match_p): Fix for the case that a vector of
9383 characters is in script-representative-chars.
9384
9385 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
9386
9387 * dbusbind.c (xd_in_read_queued_messages): New variable.
9388 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
9389 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9390 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
9391 macro. (Bug#1186)
9392
9393 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9394
9395 * s/sol2-10.h: New file.
9396
9397 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9398
9399 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9400 poor beast has survived 9+ years and the jump from xterm.c!).
9401
9402 2008-10-23 Martin Rudalics <rudalics@gmx.at>
9403
9404 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9405 Reword doc-string.
9406 (Fbury_buffer): In doc-string say what happens to the buffer's window.
9407
9408 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9409
9410 * character.c (syms_of_character) <script-representative-chars>:
9411 <unicode-category-table>: Doc fixes.
9412
9413 2008-10-23 Noah Friedman <friedman@splode.com>
9414
9415 * coding.c (make_conversion_work_buffer): Check that
9416 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9417 Fget_buffer_create.
9418
9419 2008-10-23 Kenichi Handa <handa@m17n.org>
9420
9421 * font.c (font_add_log): Check the values of extra properties.
9422
9423 2008-10-22 Martin Rudalics <rudalics@gmx.at>
9424
9425 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9426 Reword doc-string.
9427 (Fset_window_parameter): Use NILP.
9428 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
9429 (Frecenter): Use "selected" instead of "current" window in doc-strings.
9430
9431 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9432
9433 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9434
9435 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9436
9437 * nsfns.m (ns_appkit_version): New function.
9438 (x-server-version): Use it.
9439 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9440 (x-server-vendor): Don't check_ns().
9441
9442 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9443
9444 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9445
9446 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9447 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9448
9449 2008-10-22 Kenichi Handa <handa@m17n.org>
9450
9451 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9452 scripts.
9453
9454 * category.c (word_boundary_p): Check scripts instead of charset.
9455 Handle nil value in word-separating-categories and
9456 word-combining-categories.
9457 (syms_of_category): Fix docstrings of word-separating-categories
9458 and word-combining-categories.
9459
9460 2008-10-21 Eli Zaretskii <eliz@gnu.org>
9461
9462 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9463 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9464
9465 2008-10-21 Martin Rudalics <rudalics@gmx.at>
9466
9467 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9468 Rename arg "buffer" to "buffer_or_name".
9469 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9470 it optional.
9471 (no_switch_window): Remove since the return value is not used.
9472 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
9473 Consider window as dedicated when Fwindow_dedicated_p returns a
9474 non-nil value.
9475 * lisp.h: Remove prototype for no_switch_window.
9476
9477 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9478
9479 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
9480 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
9481
9482 2008-10-21 Kenichi Handa <handa@m17n.org>
9483
9484 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9485 check Vlatin_extra_code_table.
9486
9487 2008-10-20 Eli Zaretskii <eliz@gnu.org>
9488
9489 * fileio.c (Fset_file_modes): Doc fix.
9490
9491 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
9492
9493 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9494 in arrays.
9495
9496 2008-10-19 Martin Rudalics <rudalics@gmx.at>
9497
9498 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9499 Mention kill-buffer in doc-string.
9500 (Fset_window_buffer): Reinsert tem check removed in last commit.
9501 (Fenlarge_window, Fshrink_window): Have argument names and
9502 doc-string follow Elisp manual more closely.
9503
9504 2008-10-18 Eli Zaretskii <eliz@gnu.org>
9505
9506 * fileio.c (Fset_file_modes): Doc fix.
9507
9508 2008-10-18 Martin Rudalics <rudalics@gmx.at>
9509
9510 * window.c (Fwindow_width, Fset_window_start)
9511 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
9512 (Fdelete_windows_on, Freplace_buffer_in_windows):
9513 Make doc-strings follow code and Elisp manual more closely.
9514 (Fwindow_dedicated_p): Make window argument optional.
9515 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9516 (Fset_window_buffer): Respect any non-nil dedicated value for
9517 window. Rename "buffer" argument to "buffer_or_name".
9518
9519 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
9520
9521 * m/sh3.h: New file, machine description for SuperH.
9522
9523 2008-10-17 Martin Rudalics <rudalics@gmx.at>
9524
9525 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9526
9527 2008-10-17 Kenichi Handa <handa@m17n.org>
9528
9529 * ftfont.c (ftfont_otf_features): Fix indexing
9530 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9531
9532 2008-10-16 Magnus Henoch <mange@freemail.hu>
9533
9534 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9535 (Fdbus_call_method_asynchronously): Ditto.
9536 This change makes C-h f display the argument list.
9537
9538 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
9539
9540 * fileio.c (Fexpand_file_name): Doc fix.
9541
9542 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9543 of :foreground and :background equivalent to unspecified (20.x
9544 compatibility).
9545
9546 2008-10-15 Eli Zaretskii <eliz@gnu.org>
9547
9548 * buffer.c (syms_of_buffer): Doc fix.
9549
9550 2008-10-14 Kenichi Handa <handa@m17n.org>
9551
9552 * font.c (font_clear_prop): When clearing font width, clear the
9553 average width field too.
9554
9555 2008-10-12 Andreas Schwab <schwab@suse.de>
9556
9557 * ftfont.c (ftfont_shape_by_flt): Make static.
9558 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9559
9560 * font.c: Don't include <m17n-flt.h>.
9561
9562 2008-10-10 Eli Zaretskii <eliz@gnu.org>
9563
9564 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9565
9566 2008-10-09 Eli Zaretskii <eliz@gnu.org>
9567
9568 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9569 away code.
9570
9571 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
9572
9573 * dispnew.c (update_text_area): Avoid looping due to large glyph
9574 overhangs (bug#1070).
9575
9576 2008-10-09 Kenichi Handa <handa@m17n.org>
9577
9578 * fontset.c (face_for_char): If face->fontset is negative, just
9579 return ascii_face.
9580
9581 * font.c (font_delete_unmatched): Fix previous change.
9582 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
9583
9584 2008-10-09 Martin Rudalics <rudalics@gmx.at>
9585
9586 * frame.c (Fraise_frame): On text-only terminals select frame in
9587 order to make it visible. (Bug#1061)
9588
9589 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
9590
9591 * fontset.c (fontset_find_font): Check frame validity.
9592
9593 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
9594
9595 * gtkutil.c (xg_display_open): Reset default display if none exists.
9596 (xg_display_close): Allow Emacs to close all displays (bug#985).
9597
9598 2008-10-06 Andreas Schwab <schwab@suse.de>
9599
9600 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
9601
9602 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
9603
9604 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
9605
9606 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
9607
9608 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9609 during initialization.
9610
9611 2008-10-04 Eli Zaretskii <eliz@gnu.org>
9612
9613 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9614 whole thing on MSDOS frames as well as on a TTY.
9615
9616 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9617 well as for TTY.
9618 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9619 well as on a TTY.
9620
9621 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9622 as well as for TTY.
9623
9624 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9625
9626 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9627 MSDOS frames as well.
9628
9629 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9630
9631 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9632 correct arguments.
9633 * menu.c (find_and_return_menu_selection): Add cast.
9634
9635 2008-10-03 Glenn Morris <rgm@gnu.org>
9636
9637 * emacs.c (USAGE1): Add --daemon.
9638
9639 2008-10-02 Eli Zaretskii <eliz@gnu.org>
9640
9641 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9642 100, so it's in percents as advertised.
9643
9644 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9645
9646 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9647 (ns_output.current_cursor, ns_output.desired_cursor)
9648 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9649 (FRAME_NEW_CURSOR_COLOR): Remove.
9650
9651 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
9652 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
9653 enumeration (HOLLOW_BOX_CURSOR, etc.).
9654
9655 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9656 (draw_window_cursor): Simplify code.
9657 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9658 Don't change cursor type. In latter, call rehighlight instead of doing
9659 updates manually.
9660 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9661 Use core Emacs cursor types.
9662
9663 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
9664
9665 2008-10-02 Martin Rudalics <rudalics@gmx.at>
9666
9667 * process.c (Faccept_process_output): Fix doc-string.
9668
9669 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9670
9671 * gmalloc.c (__sbrk): Also define for uClibc.
9672
9673 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9674 for uClibc.
9675
9676 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9677
9678 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9679 styles.
9680 (nsfont_open): Reenable the cache.
9681
9682 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9683
9684 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9685 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9686
9687 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9688
9689 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9690 a suspended terminal.
9691
9692 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
9693
9694 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9695
9696 2008-09-30 Eli Zaretskii <eliz@gnu.org>
9697
9698 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9699
9700 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
9701
9702 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9703 in a continued line coincides with a line beginning.
9704
9705 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9706
9707 * nsfont.m (nsfont_trait_distance): Fix bug.
9708 (nsfont_list): Return a list rather than a vector (syncs with Handa
9709 changes of 2008-05-14).
9710 (nsfont_open): Improve logging.
9711
9712 2008-09-29 Andreas Schwab <schwab@suse.de>
9713
9714 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9715
9716 2008-09-28 Martin Rudalics <rudalics@gmx.at>
9717
9718 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9719 name as char-resolve-modifiers.
9720 Reported by: Markus Triska <markus.triska@gmx.at>
9721
9722 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9723
9724 * dispnew.c (init_display): Return earlier when running as a daemon.
9725
9726 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9727
9728 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9729
9730 2008-09-27 Eli Zaretskii <eliz@gnu.org>
9731
9732 * composite.c (Fcomposition_get_gstring)
9733 (Fcompose_region_internal, Fcompose_string_internal)
9734 (Ffind_composition_internal): Doc fix.
9735 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9736 (syms_of_composite) <auto-composition-function>: Doc fix.
9737 (syms_of_composite) <composition-function-table>: Doc fix.
9738
9739 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
9740
9741 * search.c (wordify): New argument for lax word-ends.
9742 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9743
9744 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9745
9746 * lisp.h (is_daemon): Declare.
9747 * dispnew.c (init_display): Do not try to initialize the terminal
9748 when running as a daemon.
9749
9750 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
9751
9752 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9753 x_display_pixel_height.
9754
9755 2008-09-22 Martin Rudalics <rudalics@gmx.at>
9756
9757 * undo.c (record_point): Don't call Fundo_boundary for first
9758 change. (Bug#731)
9759
9760 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
9761
9762 * emacs.c (Fdaemonp): Doc fix.
9763
9764 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9765
9766 * emacs.c (main): Place #ifdef in the proper place.
9767
9768 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9769
9770 * emacs.c (standard_args): Add --daemon.
9771 (main): Disconnect from the terminal when --daemon is passed.
9772 (is_daemon): New variable.
9773 (Fdaemonp): New function.
9774 (syms_of_emacs): Defsubr it.
9775
9776 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
9777
9778 * xdisp.c (get_next_display_element): Handle string display
9779 correctly when checking for the end of a box run.
9780
9781 2008-09-20 Glenn Morris <rgm@gnu.org>
9782
9783 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9784 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9785 (Frename_file): Avoid copying to trash if a rename involves
9786 a delete. (Bug#964).
9787
9788 2008-09-20 Eli Zaretskii <eliz@gnu.org>
9789
9790 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9791 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9792 frames as well as termcap frames.
9793 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9794 get_named_tty.
9795
9796 2008-09-19 Eli Zaretskii <eliz@gnu.org>
9797
9798 * process.c (procfs_system_process_attributes): Fix cmdline in
9799 case /proc/PID/cmdline is empty.
9800
9801 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9802 x_display_pixel_height.
9803
9804 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
9805
9806 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9807
9808 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9809 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9810
9811 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9812
9813 * dispextern.h (struct it): Move line_wrap away from the middle of
9814 bitfields. Move voffset in struct iterator_stack_entry after the
9815 bitfields. Move tab_width near after another short.
9816
9817 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9818
9819 * frame.h (struct frame): Move alpha from the middle of bitfields.
9820
9821 * window.h (struct window): Move frozen_window_start_p after the
9822 rest of the bitfields to reduce padding.
9823
9824 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
9825
9826 * xterm.h (x_display_info): Remove `height' and `width' members.
9827
9828 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9829
9830 * w32term.h (w32_display_info): Remove `height', `width',
9831 `height_in', and `width_in' members.
9832
9833 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9834 New functions.
9835 (x_calc_absolute_position): Use them.
9836 (x_term_init): Omit removed `height' and `width' members.
9837
9838 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9839 New functions.
9840 (w32_read_socket, x_calc_absolute_position): Use them.
9841 (w32_initialize_display_info, w32_term_init): Omit removed members
9842 of w32_display_info.
9843
9844 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9845 New functions.
9846 (ns_initialize_display_info): Omit removed members of ns_display_info.
9847
9848 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9849 New functions.
9850 (x_calc_absolute_position): Use them.
9851 (x_term_init): Omit removed `height' and `width' members.
9852
9853 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9854 (compute_tip_xy):
9855 * frame.c (x_fullscreen_adjust):
9856 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9857 x_display_pixel_width.
9858
9859 2008-09-18 Kenichi Handa <handa@m17n.org>
9860
9861 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9862 (composition_compute_stop_pos): Fix handling of static composition.
9863 (Fcomposition_get_gstring): Check FROM and TO at first.
9864
9865 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9866
9867 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
9868 mixup (YAILOM).
9869
9870 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
9871
9872 * indent.c (Fvertical_motion): Use position reported by iterator
9873 instead of PT for determining screen motion (bug#943).
9874
9875 2008-09-17 Romain Francoise <romain@orebokech.com>
9876
9877 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9878
9879 2008-09-17 Kenichi Handa <handa@m17n.org>
9880
9881 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9882
9883 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9884 if necessary.
9885
9886 2008-09-16 Kenichi Handa <handa@m17n.org>
9887
9888 * coding.c (make_conversion_work_buffer): Avoid calling
9889 Fget_buffer_create if it is not necessary.
9890
9891 2008-09-15 Martin Rudalics <rudalics@gmx.at>
9892
9893 * window.c (Fselect_window): Don't update window_select_count and
9894 use_time when norecord is not nil.
9895
9896 2008-09-14 Kenichi Handa <handa@m17n.org>
9897
9898 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9899 specpdl_ptr.
9900
9901 2008-09-12 Kenichi Handa <handa@m17n.org>
9902
9903 * indent.c (scan_for_column): Don't handle automatic composition
9904 if the current buffer is not associated with a window.
9905
9906 * composite.c (composition_reseat_it): If the current buffer is
9907 not associated with a window, ignore the automatic composition.
9908 (find_automatic_composition): Likewise.
9909
9910 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9911
9912 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9913 (Fgpm_mouse_stop): Use it.
9914 * termhooks.h (close_gpm): Declare.
9915 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9916 connection if Gpm_GetEvent fails.
9917
9918 * window.c (set_window_buffer): Always preserve current-buffer.
9919
9920 2008-09-12 Glenn Morris <rgm@gnu.org>
9921
9922 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9923
9924 2008-09-11 Glenn Morris <rgm@gnu.org>
9925
9926 * charset.c (charset-map-path): Doc fix.
9927
9928 2008-09-10 Kenichi Handa <handa@m17n.org>
9929
9930 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9931
9932 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9933 compose a grapheme cluster with the preceding base glyph.
9934
9935 * composite.c (composition_compute_stop_pos): Fix previous change.
9936 Reset cmp_it->id to -1 at first.
9937
9938 2008-09-10 Glenn Morris <rgm@gnu.org>
9939
9940 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9941
9942 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
9943
9944 * keyboard.c (read_key_sequence): Reapply translation maps when
9945 switching keyboards.
9946
9947 2008-09-09 Kenichi Handa <handa@m17n.org>
9948
9949 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9950 characters.
9951
9952 * composite.c (FORWARD_CHAR): Fix calculation
9953 of (POSITION).pos_byte.
9954 (composition_compute_stop_pos): Limit the search of composition to
9955 at most 500 characters ahead. If we reach the limit or find a
9956 newline, set cmp_it->ch to -2 and return 0.
9957 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9958
9959 2008-09-08 Kenichi Handa <handa@m17n.org>
9960
9961 * indent.c (Fvertical_motion): Be sure to set
9962 it_overshoot_expected if it.cmp_it.id is non-negative.
9963
9964 2008-09-07 Andreas Schwab <schwab@suse.de>
9965
9966 * callproc.c (Fcall_process): Don't hold references to string data
9967 across garbage collection. Move initialisation of new_argv down
9968 to avoid compiler bug.
9969
9970 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9971
9972 * process.c (Fsystem_process_attributes): Doc fix.
9973
9974 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * callproc.c (Fcall_process): Canonicalize current directory name.
9977
9978 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9979 iterator advances to the next line if the current line ends in a
9980 continued tab.
9981
9982 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9983
9984 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9985 member to point to cmp_from.
9986
9987 * xdisp.c: Doc fix for references to gidx data member.
9988
9989 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9990
9991 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9992
9993 2008-09-07 Kenichi Handa <handa@m17n.org>
9994
9995 * composite.c (FORWARD_CHAR): Check STOP after
9996 incrementing (POSITION).pos.
9997
9998 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9999
10000 * process.c (Fsystem_process_attributes): Doc fix.
10001
10002 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * keyboard.c (Ftop_level): Doc fix.
10005
10006 2008-09-06 Eli Zaretskii <eliz@gnu.org>
10007
10008 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10009 minibuffer, don't let lower part of menu invade the echo area.
10010
10011 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10012 "char *q" to access menu text and advance through it. Revert the
10013 change that displayed ">" instead of ASCII character 0x10.
10014
10015 2008-09-05 Eli Zaretskii <eliz@gnu.org>
10016
10017 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10018 toggle boxes and radio buttons on MS-DOS as well.
10019
10020 2008-09-05 Kenichi Handa <handa@m17n.org>
10021
10022 * composite.c (autocmp_chars): Check lookback count.
10023 (composition_compute_stop_pos): Set cmp_it->lookback.
10024 (composition_reseat_it): Check lookback count.
10025 (struct position_record): New struct.
10026 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10027 (find_automatic_composition): New function.
10028 (composition_adjust_point): Use find_automatic_composition.
10029
10030 * dispextern.h (struct composition_it): New member lookback.
10031
10032 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
10033
10034 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10035 if moving by a single line.
10036
10037 2008-09-02 Andreas Schwab <schwab@suse.de>
10038
10039 * xterm.c (x_delete_display): Fix merge error.
10040
10041 * fileio.c (Fexpand_file_name): Remove unused variables.
10042
10043 2008-09-02 Eli Zaretskii <eliz@gnu.org>
10044
10045 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10046 storage on all platforms, not just on DOS_NT.
10047
10048 2008-09-02 Jason Rumney <jasonr@gnu.org>
10049
10050 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10051 Ensure mouse is not grabbed after menu is finished.
10052
10053 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
10054
10055 * xfaces.c (Finternal_set_alternative_font_family_alist)
10056 (Finternal_set_alternative_font_registry_alist): Properly copy
10057 entire alist structure.
10058
10059 2008-09-01 Kenichi Handa <handa@m17n.org>
10060
10061 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
10062 representative chars of the script is a vector.
10063 (ftfont_list): Handle the case where the representative chars of
10064 the script is a vector.
10065
10066 * character.c (syms_of_character): Docstring of
10067 script-representative-chars fixed.
10068
10069 2008-08-31 Eli Zaretskii <eliz@gnu.org>
10070
10071 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10072 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10073 the menu. Allocate larger buffer for `text', to account for
10074 possible ^C characters.
10075
10076 2008-08-31 Martin Rudalics <rudalics@gmx.at>
10077
10078 * xdisp.c (prepare_menu_bars): Don't call
10079 Vwindow_size_change_functions with arg Qt.
10080
10081 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * font.h (font_range):
10084 * fileio.c (report_file_error):
10085 * composite.c (composition_update_it): Yet another int/Lisp_Object
10086 mixup (YAILOM).
10087
10088 2008-08-30 Glenn Morris <rgm@gnu.org>
10089
10090 * data.c (Fmake_variable_frame_local): Doc fix.
10091
10092 * frame.c (Fmodify_frame_parameters): Doc fix.
10093
10094 2008-08-30 Eli Zaretskii <eliz@gnu.org>
10095
10096 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10097 needed by GetTokenInformation.
10098 (w32_system_process_attributes): Check return values of all system
10099 APIs.
10100
10101 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10102 only when the state changes.
10103 (IT_update_begin, IT_update_end): Add termscript trace.
10104
10105 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10106 clipboard is unavailable. Set dst to NULL if it doesn't point to
10107 malloc'ed data.
10108 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10109 passing random values to xfree.
10110
10111 * dispnew.c (init_display): Set `tty's association in frame's
10112 parameters alist to the name of the terminal device, if that is known.
10113
10114 2008-08-29 Jason Rumney <jasonr@gnu.org>
10115
10116 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10117
10118 2008-08-29 Eli Zaretskii <eliz@gnu.org>
10119
10120 * composite.c (fill_gstring_body): Avoid compiler warnings.
10121
10122 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10123 LGLYPH_SET_CODE to avoid compiler warnings.
10124
10125 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
10126
10127 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10128
10129 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10130 LGLYPH_SET_CODE.
10131
10132 2008-08-29 Kenichi Handa <handa@m17n.org>
10133
10134 * fileio.c (report_file_error): Don't downcase the first character
10135 of errstring if it is still unibyte.
10136
10137 2008-08-29 Kenichi Handa <handa@m17n.org>
10138
10139 These changes are to re-implement the automatic composition so
10140 that it doesn't use text properties.
10141
10142 * Makefile.in (ftfont.o): Depend on composite.h.
10143 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10144
10145 * character.h (Vunicode_category_table): Extern it.
10146
10147 * character.c (Vunicode_category_table): New variable.
10148 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10149
10150 * chartab.c (optimize_sub_char_table): Perform more greedy
10151 optimization.
10152
10153 * composite.h (enum composition_method):
10154 Delete COMPOSITION_WITH_GLYPH_STRING.
10155 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10156 (Vcomposition_function_table): Extern it.
10157 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10158 (composition_gstring_put_cache, composition_gstring_from_id)
10159 (composition_gstring_p, composition_gstring_width)
10160 (composition_compute_stop_pos, composition_reseat_it)
10161 (composition_update_it, composition_adjust_point): Extern them.
10162 (Fcomposition_get_gstring): EXFUN it.
10163
10164 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
10165 (Vcomposition_function_table)
10166 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
10167 (gstring_hash_table, gstring_work, gstring_work_headers):
10168 New variables.
10169 (gstring_lookup_cache, composition_gstring_put_cache)
10170 (composition_gstring_from_id, composition_gstring_p)
10171 (composition_gstring_width, fill_gstring_header)
10172 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10173 (composition_reseat_it, composition_update_it)
10174 (composition_adjust_point, Fcomposition_get_gstring): New functions.
10175 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10176 and gstring_work_headers. DEFVAR_LISP composition-function-table.
10177 Defsubr composition_get_gstring.
10178
10179 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10180 cmp_id.
10181 (struct glyph_string): Delete the member gidx. New members
10182 cmp_id, cmp_from, and cmp_to.
10183 (enum it_method): Delete GET_FROM_COMPOSITION.
10184 (struct composition_it): New struct.
10185 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10186 Delete c, len, cmp_id, cmp_len in u.comp.
10187
10188 * font.h (enum lgstring_indices): Delete it.
10189 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
10190 (enum lglyph_indices): Likewise.
10191 (font_range): Adjust extern.
10192 (font_fill_lglyph_metrics): Extern it.
10193
10194 * font.c (QCf): New variable.
10195 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10196 (font_prepare_composition): Delete this function.
10197 (font_range): Type and arguments changed.
10198 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10199 (font_fill_lglyph_metrics): New function.
10200 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
10201 (syms_of_font): DEFSYM QCf. Delete defsubr for
10202 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10203 Defsubr Sfont_shape_gstring.
10204
10205 * fontset.h (font_for_char): Extern it.
10206
10207 * fontset.c (font_for_char): New function.
10208
10209 * ftfont.c: Include composite.h.
10210 (ftfont_resolve_generic_family): Add langset "en" to pattern.
10211 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10212
10213 * indent.c: Include composite.h and dispextern.h.
10214 (check_composition): Delete this function.
10215 (scan_for_column): Handle composition by
10216 composition_compute_stop_pos, composition_reseat_it, and
10217 composition_update_it.
10218 (compute_motion): Likewise.
10219 (Fvertical_motion): Fix checking of composition.
10220
10221 * keyboard.c (adjust_point_for_property): Check composition by
10222 composition_adjust_point.
10223
10224 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
10225 struct glyph_string.
10226
10227 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10228 (append_composite_glyph): Adjust for the change of struct it and
10229 struct glyph.
10230 (produce_composite_glyph): Likewise.
10231
10232 * w32term.c (x_draw_composite_glyph_string_foreground):
10233 Adjust for the change of struct glyph_string.
10234 (x_draw_glyph_string): Likewise.
10235
10236 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10237 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10238
10239 * xdisp.c: Include font.h.
10240 (it_props): Delete the entry for Qauto_composed.
10241 (init_iterator): Initialize it->cmp_it.id to -1.
10242 (compute_stop_pos): Call composition_compute_stop_pos.
10243 (face_before_or_after_it_pos): Adjust for the change of struct it.
10244 (handle_auto_composed_prop): Delete it.
10245 (handle_composition_prop): Handle only static composition.
10246 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10247 from xassert. Initialize it->cmp_it.stop_pos.
10248 (push_it): Adjust for the change of struct it.
10249 (pop_it): Likewise.
10250 (get_next_element): Delete next_element_from_composition.
10251 (CHAR_COMPOSED_P): New macro.
10252 (get_next_display_element): For automatic composition, get a face
10253 from the font in the glyph-string.
10254 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
10255 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
10256 (next_element_from_string): Check if the character at the current
10257 position is composed by CHAR_COMPOSED_P.
10258 (next_element_from_buffer): Likewise.
10259 (next_element_from_composition): Adjust for the change of struct it.
10260 Update it->cmp_it.
10261 (dump_glyph): Adjust for the change of struct glyph.
10262 (fill_composite_glyph_string): Adjust for the change of struct
10263 it and struct glyph. Don't handle automatic composition here.
10264 (fill_gstring_glyph_string): New function.
10265 (x_get_glyph_overhangs): Handle automatic composition.
10266 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
10267 (BUILD_GSTRING_GLYPH_STRING): New macro.
10268 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10269 automatic composition.
10270 (append_composite_glyph): Adjust for the change of struct it and
10271 struct glyph.
10272 (x_produce_glyphs): Adjust for the change of struct it.
10273
10274 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10275 the change of struct glyph_string.
10276 (x_draw_glyph_string): Likewise.
10277
10278 2008-08-29 Glenn Morris <rgm@gnu.org>
10279
10280 * buffer.c (word-wrap): Doc fix.
10281 * xdisp.c (truncate-partial-width-windows): Doc fix.
10282 Increase default to 50.
10283
10284 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
10285
10286 * xdisp.c (update_tool_bar_unwind): New function.
10287 (update_tool_bar): Temporarily set selected frame before building
10288 tool-bar items.
10289
10290 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
10291
10292 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10293 snprintf, respectively.
10294 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10295
10296 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
10297
10298 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10299 LDFLAGS to GNUstep CC invocation.
10300
10301 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
10302
10303 * indent.c (Fvertical_motion): Revert last change. Handle the
10304 general case where we are moving forward, and PT spans multiple
10305 screen lines.
10306
10307 * eval.c (find_handler_clause): Temporarily increase
10308 max-lisp-eval-depth while printing the backtrace buffer, to
10309 guarantee that help-mode code can run.
10310
10311 2008-08-27 Eli Zaretskii <eliz@gnu.org>
10312
10313 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10314 colors under -rv.
10315 (IT_set_frame_parameters): Don't swap foreground and background
10316 colors if `(reverse . t)' is present in the frame properties.
10317 (internal_terminal_init): Call init_frame_faces only for the
10318 initial frame.
10319
10320 2008-08-27 Andreas Schwab <schwab@suse.de>
10321
10322 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10323
10324 2008-08-27 Andreas Schwab <schwab@suse.de>
10325
10326 * search.c (search_buffer): Set char_base to zero only at the end.
10327
10328 2008-08-27 Kenichi Handa <handa@m17n.org>
10329
10330 * fileio.c (report_file_error): Fix handling of multibyte error string.
10331
10332 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10333
10334 * xterm.c (x_term_init): Temporarily hide the partially
10335 initialized terminal while calling vendor-specific-keysyms.
10336
10337 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10338
10339 * msdos.c (internal_terminal_init): Most initializations done only
10340 once, especially initial_screen_colors[] and termscript open.
10341
10342 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10343
10344 * eval.c (Fcondition_case): Doc fix.
10345
10346 * widgetprv.h (EmacsFramePart): Change font member to the new font
10347 struct.
10348
10349 * widget.c: Include character.h and font.h for XSETFONT.
10350 (setup_frame_gcs): Compute X font id from font struct, just once.
10351
10352 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10353
10354 * term.c (get_named_tty): Fix last change.
10355
10356 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10357
10358 * indent.c (Fvertical_motion): If moving forward starting from a
10359 multi-line string, move the iterator to the last line of that string.
10360
10361 2008-08-25 Eli Zaretskii <eliz@gnu.org>
10362
10363 * frame.c (do_switch_frame): Mark previously displayed frame as
10364 obscured for FRAME_MSDOS_P frames as well.
10365
10366 2008-08-24 Eli Zaretskii <eliz@gnu.org>
10367
10368 * frame.c (make_terminal_frame): Initialize f->terminal,
10369 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10370 Set the top frame to newly created frame.
10371 (Fmake_terminal_frame): Reuse the_only_display_info.
10372
10373 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10374 estimating available memory.
10375
10376 2008-08-23 David Reitter <david.reitter@gmail.com>
10377
10378 * nsterm.m (ns_draw_window_cursor): Don't call
10379 NSDisableScreenUpdates and NSEnableScreenUpdates on
10380 non-NS_IMPL_COCOA systems.
10381
10382 2008-08-23 Andreas Schwab <schwab@suse.de>
10383
10384 * process.c (procfs_system_process_attributes): Fix use of
10385 uninitialized variables.
10386
10387 2008-08-23 Eli Zaretskii <eliz@gnu.org>
10388
10389 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10390
10391 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10392 calling tty-set-up-initial-frame-faces.
10393
10394 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10395 Allow MSDOS frames along with X frames.
10396
10397 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10398 addition to output_termcap.
10399
10400 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10401
10402 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10403 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10404 highlight.
10405
10406 * process.c [!subprocesses]: Define QCname.
10407 (syms_of_process): Intern and staticpro it.
10408
10409 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
10410 Adjust for changes in encoding/decoding routines.
10411 Use encode_coding_object and decode_coding_object instead of
10412 encode_coding and decode_coding.
10413
10414 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
10415
10416 * dosfns.c: Include frame.h before termhooks.h.
10417 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10418 variable termscript.
10419
10420 * s/msdos.h (USER_FULL_NAME): Define.
10421 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10422
10423 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10424 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10425 pw->pw_gecos.
10426
10427 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10428 SELECTED_FRAME as additional (1st) argument.
10429 (tty_read_avail_input): Handle output_msdos_raw in
10430 addition to output_termcap.
10431
10432 * msdos.c: Include frame.h before termhooks.h.
10433 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10434 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10435 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10436 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10437 (IT_set_terminal_modes, IT_reset_terminal_modes)
10438 (IT_set_frame_parameters): Use tty->termscript instead of a global
10439 variable termscript.
10440 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10441 global variable terminal_coding. Don't refer to
10442 Vnonascii_translation_table.
10443 (internal_terminal_init): Set Vwindow_system in current_kboard.
10444 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10445 Announce date and time of session start, if termscript is open.
10446 Don't zero out the_only_display_info (it is done in
10447 term.c:init_tty). Open termscript only of not already open.
10448 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
10449 here instead of dos_ttraw. Don't initialize display if this is an
10450 initial tty. Don't set FRAME_FONT.
10451 (Vwindow_system_version): Bump to 23.
10452 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10453 is available, set up mouse_position_hook.
10454 (dos_ttraw, IT_set_terminal_modes): If called with initial
10455 terminal, do nothing.
10456 (IT_set_frame_parameters): Handle the Qtty_type frame
10457 parameter by calling internal_terminal_init.
10458 (dos_set_window_size, show_mouse_face)
10459 (clear_mouse_face, IT_note_mode_line_highlight)
10460 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10461 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10462 (initialize_msdos_display): New function.
10463 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10464 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10465 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10466 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
10467 Accept additional argument: a pointer to a frame. Update all callers.
10468 (request_sigio, unrequest_sigio): Don't define, now defined on
10469 sysdep.c.
10470 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10471
10472 * term.c [MSDOS]: Include msdos.h.
10473 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10474 conditional to DOS_NT. Allow only one call to this function in a
10475 session. Don't allocate a new struct tty_display_info; instead,
10476 reuse the_only_display_info. Call get_tty_size to get screen
10477 dimensions. Call init_baud_rate to set bad_rate.
10478 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10479 (Fsuspend_tty) [MSDOS]: Don't close input and output.
10480 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
10481 (get_tty_terminal, get_named_tty, Ftty_type)
10482 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10483 output_termcap.
10484 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10485 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
10486 only when subprocesses are supported.
10487
10488 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10489 f->output_data.x.
10490 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10491 terminal devices.
10492
10493 * msdos.h: Remove definition of struct x_display_info and struct
10494 x_output.
10495 (FRAME_FONT): Use output_data.tty.
10496 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
10497 (struct x_display_info): Rename from display_info. Update all users in
10498 msdos.c.
10499 (struct x_output): Remove background_pixel and foreground_pixel.
10500 (the_only_display_info): Rename from the_only_x_display.
10501 (dos_ttraw): Update prototype.
10502
10503 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10504 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10505
10506 2008-08-23 Jason Rumney <jasonr@gnu.org>
10507
10508 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10509 (fn_TIFFSetDirectory): New library function used.
10510 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10511 (tiff_load): Use :index to select among multiple images. Set count
10512 property when multiple images exist.
10513 (gif_format): Use :index, not :image.
10514
10515 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
10516
10517 * xdisp.c (try_scrolling): Check INT_MAX instead of
10518 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10519 to obtain INT_MAX.
10520
10521 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10522
10523 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10524
10525 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10526
10527 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10528 GNUstep library location.
10529
10530 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
10531
10532 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10533 before using it.
10534
10535 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10536
10537 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10538
10539 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10540 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10541 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10542 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10543 (EmacsApp-cursor_blink_handler): Remove declaration.
10544 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10545 match 01 Feb 2008 changes in xterm.c.
10546 (ns_read_socket): Add cast to avoid warning.
10547 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10548 GNUstep.
10549
10550 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
10551
10552 * xselect.c (x_get_foreign_selection): Return nil if desired
10553 selection could not be obtained, instead of signalling an error.
10554
10555 2008-08-20 David Reitter <david.reitter@gmail.com>
10556
10557 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10558 * nsterm.m: Remove ns-specific code for cursor blinking.
10559 (ns_draw_window_cursor): Clear cursor properly rather than
10560 redrawing the area. Respect width of bar cursors.
10561 These changes enable the use of generic blink-cursor-mode and
10562 generic cursor types in NS and support smooth cursor movements (do
10563 not blink off after command).
10564 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10565 Nextstep, too.
10566
10567 2008-08-19 Kenichi Handa <handa@m17n.org>
10568
10569 * font.c (Vfont_log_deferred): New variable.
10570 (font_add_log): Check Vfont_log_deferred.
10571 (font_deferred_log): New function.
10572
10573 * font.h (font_deferred_log): Extern it.
10574
10575 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10576 for sorting.
10577 (face_for_char): Use deferred log.
10578
10579 2008-08-18 Kenichi Handa <handa@m17n.org>
10580
10581 * fontset.c (face_for_char): Add font log.
10582
10583 * font.c (font_add_log): Add the font properties :script, :lang,
10584 and :otf in the log.
10585
10586 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
10587
10588 * xdisp.c: Remove dead code.
10589 (handle_invisible_prop, next_overlay_string): Defer call to
10590 setup_for_ellipsis.
10591 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10592
10593 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
10594
10595 * xfaces.c (lookup_derived_face): Properly handle possible zero
10596 return value of get_lface_attributes.
10597 (merge_faces): Don't tell lookup_derived_face to signal an error
10598 if face is not found.
10599
10600 * dired.c (Fdirectory_files): Doc fix.
10601
10602 * process.c (make_process): Initialize kill_without_query struct
10603 member.
10604
10605 2008-08-15 Eli Zaretskii <eliz@gnu.org>
10606
10607 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10608 Alternative calculation of totphys for Visual Studio 6.
10609
10610 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10611
10612 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10613 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10614 All users changed.
10615 (stat): Only root directory passed to GetDriveType. Allow RAM
10616 disk as well as local fixed disk when w32-get-true-file-attributes
10617 is set to `local'.
10618 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10619 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10620 (w32_cached_id, w32_add_to_cache): New functions.
10621 (get_name_and_id): Look account names in the cache before calling
10622 lookup_account_sid.
10623 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10624 New initialization flags.
10625 (globals_of_w32): Initialize them to zero.
10626 (w32_system_process_attributes): Use w32_cached_id and
10627 w32_add_to_cache.
10628
10629 2008-08-14 Lawrence Mitchell <wence@gmx.li>
10630
10631 * lread.c (Fread_char, Fread_char_exclusive): If no character
10632 event is read before timeout is reached, return nil, rather than
10633 converting to a number.
10634
10635 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
10636
10637 * fns.c (use_dialog_box): Doc fix.
10638
10639 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10640 on OS X.
10641
10642 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
10643
10644 * frame.c (Qns_parse_geometry): New var.
10645 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10646
10647 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
10648
10649 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10650 space character in calculating tabs.
10651
10652 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10653
10654 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10655
10656 2008-08-10 Glenn Morris <rgm@gnu.org>
10657
10658 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10659 silence gcc "limited range of data type" warnings in some
10660 make_fixnum_or_float calls.
10661
10662 2008-08-09 Eli Zaretskii <eliz@gnu.org>
10663
10664 * w32.c (w32_system_process_attributes): If the process does not
10665 exist, return nil.
10666
10667 * w32.c: Include thelp32.h, psapi.h and coding.h.
10668 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10669 declarations.
10670 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10671 (Process32Next_Proc): New typedefs.
10672 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10673 (g_b_init_process32_next, g_b_init_open_thread_token)
10674 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10675 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10676 (g_b_init_get_process_working_set_size)
10677 (g_b_init_global_memory_status_ex): New static variables.
10678 (globals_of_w32): Initialize them.
10679 (create_toolhelp32_snapshot, process32_first, process32_next)
10680 (open_thread_token, impersonate_self, revert_to_self)
10681 (get_process_memory_info, get_process_working_set_size)
10682 (global_memory_status, global_memory_status_ex): New wrapper
10683 functions.
10684 (w32_list_system_processes, w32_system_process_attributes)
10685 (enable_privilege, restore_privilege, ltime, process_times):
10686 New functions.
10687 (convert_time_raw): New function.
10688 (convert_time): Remove conversion of FILETIME into time in 100
10689 nsec units, call convert_time_raw instead.
10690
10691 * process.h (w32_list_system_processes, w32_system_process_attributes):
10692 Add prototypes.
10693 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10694 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10695 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10696 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10697
10698 * process.c (Fsystem_process_attributes): Doc fix.
10699
10700 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
10701
10702 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10703 a continued multi-char glyph; if so, advance to the actual glyph.
10704
10705 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10706
10707 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10708
10709 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10710 (.m.o): Use it.
10711 * config.in: Regenerate.
10712
10713 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
10714
10715 * xdisp.c (redisplay_window): Revert last change.
10716 (try_window): Check bottom scroll margin too.
10717
10718 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10719
10720 * config.in: Regenerate.
10721
10722 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10723 -list-load-path-shadows'.
10724 (nsgui.h): Reduce number of things depending on it.
10725
10726 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
10727
10728 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10729 instead of window-end which does the wrong thing at eob.
10730 (try_cursor_movement): Minor optimization.
10731 (redisplay_window): If scroll margin is defined, don't assume
10732 window doesn't need scrolling.
10733
10734 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10735
10736 * config.in: Regenerate.
10737
10738 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10739 (mostlyclean): Don't delete *.d under NS.
10740
10741 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10742
10743 2008-08-06 Kenichi Handa <handa@m17n.org>
10744
10745 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10746
10747 2008-08-06 Andreas Schwab <schwab@suse.de>
10748
10749 * config.in: Regenerate.
10750
10751 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
10752
10753 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10754 forcing a window start.
10755
10756 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10757 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10758
10759 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10760
10761 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10762 argument.
10763
10764 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
10765
10766 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10767 <scroll-down-aggressively, before-change-functions>:
10768 <after-change-functions>: Reflow docstrings.
10769
10770 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10771 Ken Raeburn <raeburn@gnu.org>
10772
10773 Dock menu customization, based on a patch by Ken Raeburn, plus some
10774 other fixes.
10775 * nsmenu.m (dockMenu): New variable.
10776 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10777
10778 * nsterm.h (dockMenu): Declare.
10779
10780 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10781 (ns_term_init): Initialize dockMenu.
10782 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10783 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10784 left.
10785
10786 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10787
10788 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10789
10790 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10791
10792 * config.in: Regenerate.
10793
10794 2008-08-04 Seiji Zenitani <zenitani@mac.com>
10795
10796 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10797
10798 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10799
10800 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10801
10802 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10803
10804 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10805
10806 * keyboard.h: Comment an #endif.
10807
10808 * lisp.h (have_menus_p): Adjust comment.
10809
10810 * menu.c (find_and_return_menu_selection): Fix comparison with
10811 client_data.
10812
10813 * nsmenu.m (popup_activated_flag): New variable.
10814 (popup_activated): New function.
10815 (menu-or-popup-active-p): New exported lisp definition.
10816 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10817 when popup done.
10818 (ns_popup_dialog): Set popup_activated_flag.
10819
10820 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10821 version for GNUstep (handled by conditional typedef in nsterm.m).
10822 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10823 in rgb.txt).
10824
10825 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10826
10827 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10828
10829 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10830
10831 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10832 shortcircuit if popup_activated like GTK and X toolkit.
10833
10834 * m/inter386.h: Change DARWIN to DARWIN_OS.
10835
10836 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10837 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10838 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10839 comment on NO_SOCK_SIGIO.
10840
10841 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
10842
10843 * nsterm.m (windowDidResize): Remove stopModal call.
10844
10845 2008-08-03 Andreas Schwab <schwab@suse.de>
10846
10847 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10848 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10849
10850 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
10851
10852 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10853 Don't use uninitialized pointer variable when using getrlimit.
10854
10855 2008-08-02 Jason Rumney <jasonr@gnu.org>
10856
10857 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10858
10859 2008-08-02 Eli Zaretskii <eliz@gnu.org>
10860
10861 * alloc.c (NSTATICS): Bump to 0x640.
10862
10863 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10864
10865 * lisp.h: Add prototype for directory_files_internal.
10866
10867 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10868 New functions.
10869 (syms_of_process): Defsubr them. Add initializations for various
10870 Q* symbols used in procfs_system_process_attributes.
10871 (procfs_list_system_processes, procfs_system_process_attributes)
10872 [HAVE_PROCFS]: New functions.
10873 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10874 (procfs_get_total_memory): New functions.
10875
10876 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
10877
10878 * xfaces.c (Fx_load_color_file): Fix previous change;
10879 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10880
10881 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
10882
10883 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10884
10885 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10886
10887 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10888
10889 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
10890
10891 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10892
10893 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10894 define NSApplicationDelegateReplySuccess.
10895 (EmacsView -converstationIdentifier): Use long instead of
10896 NSInteger for GNUstep, since it doesn't have NSInteger.
10897
10898 * xmenu.c: Revert last change.
10899
10900 * keyboard.h: Fix last change.
10901
10902 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
10903
10904 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10905 on Windows.
10906
10907 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10908
10909 Warning clearing and clean-up in NS port.
10910 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10911 Add prototypes.
10912 * nsgui.h (FACE_DEFAULT): Remove, unused.
10913 (XGCValues): Change colors to unsigned long.
10914 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10915 nsterm.m.
10916 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10917 (ns_list_fonts): Remove, unused.
10918 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10919 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10920 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10921 (nsfont_draw): Compare face colors to 0, not nil.
10922 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10923 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10924 (-addSubmenuWithTitle:): Use NSMenuItem class.
10925 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10926 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10927 (ns_clip_to_row): Make gc arg a BOOL.
10928 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10929 ns_clip_to_row() call.
10930 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10931 used). Cast FRAME_FONT assignments.
10932 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10933 (ns_string_to_lispmod): Change arg to const char.
10934 (ns_term_init): Use NSMenuItem class.
10935 (EmacsApp -openFile:): Move to different section of file.
10936 (EmacsApp -application:openFiles:): Don't return a value, call
10937 -replyToOpenOrPrint:.
10938 (EmacsView -keyDown:): Fix up cast.
10939 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10940 (EmacsView -menuDown:): Cast tag in call to
10941 find_and_call_menu_selection().
10942 (ns_list_fonts): Remove, unused.
10943 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10944 (ns_fontname_to_xlfd): Make static.
10945 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10946 Remove prototypes (now in keyboard.h).
10947 (next_menubar_widget_id): Remove, unused.
10948 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10949 Remove prototypes (now in keyboard.h).
10950 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10951
10952 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10953
10954 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10955 (floatfns.o): Depend on syssignal.h.
10956 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10957
10958 * systty.h: Fix previous change that removed BSD_TERMIOS.
10959 Add comments to #ifdefs.
10960
10961 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10962
10963 * w32fns.c (w32-load-color-file): Remove.
10964 (x-open-connection): Use renamed Fx_load_color_file.
10965 * xfaces.c (x-load-color-file): Add.
10966 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10967 Emacs.clr.
10968 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10969
10970 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
10971
10972 * dbusbind.c (Fdbus_call_method_asynchronously)
10973 (Fdbus_method_error_internal): New defuns.
10974 (xd_read_message): Handle also reply messages.
10975 (Vdbus_registered_functions_table): Extend docstring.
10976
10977 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
10978
10979 * keyboard.c (gobble_input): Fix previous change.
10980
10981 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10982
10983 * bitmaps/README:
10984 * xfns.c:
10985 * termcap.c:
10986 * term.c:
10987 * syswait.h:
10988 * systty.h:
10989 * systime.h:
10990 * syssignal.h:
10991 * sysdep.c:
10992 * process.h:
10993 * process.c:
10994 * print.c:
10995 * ndir.h:
10996 * lread.c:
10997 * keyboard.c:
10998 * getpagesize.h:
10999 * floatfns.c:
11000 * fileio.c:
11001 * emacs.c:
11002 * doc.c:
11003 * dispnew.c:
11004 * dired.c:
11005 * data.c:
11006 * callproc.c:
11007 * buffer.c:
11008 * README:
11009 * Makefile.in:
11010 * s/template.h:
11011 * s/msdos.h:
11012 * m/vax.h: Remove VMS support.
11013 * s/vms.h:
11014 * vlimit.h:
11015 * uaf.h:
11016 * temacs.opt:
11017 * param.h:
11018 * ioctl.h: Remove file.
11019
11020 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11021
11022 * s/ms-w32.h (MULTI_KBOARD): Remove.
11023 * xterm.c:
11024 * xselect.c:
11025 * xfns.c:
11026 * window.c:
11027 * w32term.c:
11028 * w32fns.c:
11029 * terminal.c:
11030 * termhooks.h:
11031 * term.c:
11032 * sysdep.c:
11033 * keyboard.h:
11034 * keyboard.c:
11035 * frame.h:
11036 * frame.c:
11037 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11038 * config.in: Regenerate.
11039
11040 2008-07-30 Jason Rumney <jasonr@gnu.org>
11041
11042 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11043
11044 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11045 (w32font_open_internal): Get unicode version of textmetrics.
11046 Don't enable or disable glyph indices here.
11047 (w32font_open): Disable use of glyph indices.
11048
11049 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11050
11051 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
11052
11053 * minibuf.c (Vread_buffer_function): Doc fix.
11054
11055 2008-07-30 John Paul Wallington <jpw@pobox.com>
11056
11057 * minibuf.c (read_buffer_completion_ignore_case): New var.
11058 (Fread_buffer): Use it.
11059
11060 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11061
11062 * systty.h (sensemode): Remove empty #if. Remove reference to
11063 BSD_TERMIOS, unused.
11064
11065 * sysdep.c: Remove reference to DGUX.
11066 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11067
11068 * config.in: Regenerate.
11069
11070 2008-07-30 Jason Rumney <jasonr@gnu.org>
11071
11072 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11073
11074 2008-07-29 Jason Rumney <jasonr@gnu.org>
11075
11076 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11077 is populated.
11078 (uniscribe_encode_char): Always use uniscribe.
11079 Avoid using context if cache is populated.
11080
11081 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11082
11083 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11084 open menu.
11085
11086 * gtkutil.c (menu_nav_ended): Remove.
11087 (create_menus): Remove signal connect for menu_nav_ended.
11088
11089 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
11090
11091 * xdisp.c (redisplay_window): Check return value of
11092 compute_window_start_on_continuation_line before forcing a window
11093 start.
11094
11095 2008-07-28 Jason Rumney <jasonr@gnu.org>
11096
11097 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11098
11099 * w32term.c (w32_enable_unicode_output, cleartype_active):
11100 Remove obsolete display options.
11101 (x_draw_glyph_string_background): Don't use old cleartype_active
11102 workaround.
11103 (w32_initialize): Remove cleartype_active initialization.
11104 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11105
11106 2008-07-28 Andreas Schwab <schwab@suse.de>
11107
11108 * lisp.h (init_weak_hash_tables, syms_of_font)
11109 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11110 (remove_hash_entry): Don't declare.
11111 * eval.c (maybe_call_debugger): Make static and move before use.
11112 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11113 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11114 * xterm.h (x_set_frame_alpha): Declare.
11115
11116 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11117
11118 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11119 (create_menus): Connect selection-done to menu_nav_ended.
11120
11121 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11122
11123 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11124 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11125 parameter with read of 'alpha' one.
11126 (Qns_frame_parameter): Remove.
11127 * nsselect.m (selection-coding-system)
11128 (next-selection-coding-system, Vselection_coding_system)
11129 (Vnext_selection_coding_system): Drop.
11130
11131 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11132
11133 * nsfns.m (do-applescript, do_applescript): Rename to
11134 ns-do-applescript, ns_do_applescript, and move within file.
11135
11136 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11137
11138 Remove support for Mac Carbon.
11139 * mactoolbox.c:
11140 * macterm.h:
11141 * macterm.c:
11142 * macselect.c:
11143 * macmenu.c:
11144 * macgui.h:
11145 * macfns.c:
11146 * mac.c: Remove file.
11147 * s/darwin.h:
11148 * m/intel386.h:
11149 * xfaces.c:
11150 * xdisp.c:
11151 * window.c:
11152 * tparam.c:
11153 * termhooks.h:
11154 * termcap.c:
11155 * term.c:
11156 * syssignal.h:
11157 * sysselect.h:
11158 * sysdep.c:
11159 * process.c:
11160 * lread.c:
11161 * lisp.h:
11162 * keyboard.c:
11163 * image.c:
11164 * fringe.c:
11165 * frame.h:
11166 * frame.c:
11167 * fontset.c:
11168 * font.h:
11169 * font.c:
11170 * fns.c:
11171 * fileio.c:
11172 * emacs.c:
11173 * dispnew.c:
11174 * dispextern.h:
11175 * config.in:
11176 * atimer.c:
11177 * Makefile.in: Remove code for Carbon.
11178
11179 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11180
11181 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11182
11183 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11184
11185 * macterm.h (kCGBitmapByteOrder32Host): New define for
11186 non-universal SDKs.
11187
11188 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11189 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11190
11191 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11192 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11193
11194 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11195
11196 * w32inevt.c: Include dispextern.h.
11197
11198 2008-07-26 Andreas Schwab <schwab@suse.de>
11199
11200 * print.c (print_object): Fix off-by-one in last change.
11201
11202 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
11203
11204 * term.c (syms_of_term): Don't initialize default_orig_pair,
11205 default_set_foreground and default_set_background on Windows.
11206
11207 2008-07-25 Jason Rumney <jasonr@gnu.org>
11208
11209 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11210 ScriptItemize. Clean up return value checking. Remove unused
11211 variables.
11212 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11213 shaping engine.
11214
11215 * w32font.c (w32font_has_char): Handle the case where we can't
11216 determine the script for a character.
11217
11218 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
11219
11220 * term.c (syms_of_term): Initialize default_orig_pair,
11221 default_set_foreground, and default_set_background.
11222
11223 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11224 clash (bug#86).
11225 (getloadavg): Callers changed.
11226
11227 * image.c (svg_load_image): Fix last change.
11228 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11229 image size is valid. Use g_object_unref instead of deprecated
11230 rsvg_handle_free to free rsvg handle.
11231 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11232
11233 2008-07-25 Jason Rumney <jasonr@gnu.org>
11234
11235 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11236 surrogates before looking up glyph index.
11237 (w32font_text_extents): Encode as surrogates if falling back to
11238 functions that need UTF-16 wide chars.
11239
11240 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11241 BMP as surrogates before looking up glyph index.
11242
11243 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
11244
11245 * image.c (svg_load_image): Check for failure in return value of
11246 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11247
11248 2008-07-25 Jason Rumney <jasonr@gnu.org>
11249
11250 * w32font.c (Fx_select_font): Reverse sense of second arg.
11251
11252 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11253
11254 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11255 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11256
11257 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11258 (PURESIZE): Use it.
11259
11260 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11261
11262 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11263 * m/alpha.h (TEXT_END):
11264 * m/ibmrs6000.h (TEXT_END):
11265 * m/macppc.h (TEXT_END):
11266 * s/darwin.h (TEXT_END):
11267 * s/msdos.h (TEXT_END): Remove, unused.
11268 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11269 * s/cygwin.h: Remove comment.
11270
11271 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11272 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11273 * m/intel386.h (DOT_GLOBAL_START):
11274 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11275 (USG): Remove, file not used on USG platforms.
11276
11277 * Makefile.in (HAVE_X11): Remove empty #else.
11278
11279 2008-07-24 Andreas Schwab <schwab@suse.de>
11280
11281 * fileio.c (Finsert_file_contents): Properly adjust undo list
11282 after format conversion.
11283
11284 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11285
11286 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11287 (menu_nav_ended): Remove.
11288 (create_menus): Remove signal connect for menu_nav_ended.
11289 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11290 create_menus.
11291 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11292
11293 2008-07-23 Jason Rumney <jasonr@gnu.org>
11294
11295 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11296 with opened font.
11297 (w32font_open): Set font type to gdi.
11298
11299 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11300
11301 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11302
11303 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11304 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11305 defines it.
11306 * unexec.c (ADDR_CORRECT): Define unconditionally.
11307
11308 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11309
11310 * unexec.c: Remove code depending on !COFF and USG, the file is
11311 not used for such systems.
11312
11313 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11314 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11315 (LD_SWITCH_SYSTEM_1): Remove, update users.
11316
11317 * s/darwin.h (DATA_END):
11318 * m/intel386.h (DATA_END):
11319 * m/ibmrs6000.h (DATA_END):
11320 * m/alpha.h (DATA_END): Remove, unused.
11321
11322 * config.in: Regenerate.
11323 * s/ms-w32.h (subprocesses): Define unconditionally.
11324 * s/template.h (subprocesses): Update comment.
11325 * s/vms.h (subprocesses):
11326 * s/usg5-4.h (subprocesses):
11327 * s/hpux10-20.h (subprocesses):
11328 * s/gnu-linux.h (subprocesses):
11329 * s/cygwin.h (subprocesses):
11330 * s/bsd-common.h (subprocesses):
11331 * s/aix4-2.h (subprocesses):
11332 * s/darwin.h (subprocesses): Do not define, defined by default now.
11333
11334 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11335 Remove all references.
11336 (temacs): Add GNUstep specific ld flags.
11337
11338 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11339 similarly to what X does.
11340
11341 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11342
11343 * nsfns.m (x-list-fonts): Remove.
11344 (syms_of_nsfns): Drop the x-list-fonts declaration.
11345 * nsterm.m: Get rid of remaining "//" comments.
11346
11347 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
11348
11349 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11350
11351 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11352 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11353 (Fns_own_selection_internal, Fx_disown_selection_internal)
11354 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11355
11356 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11357 ... */' style of docstrings. Doc fixes.
11358
11359 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11360
11361 * terminfo.c (UP, BC, PC): Undo previous change.
11362
11363 * nsfns.m: Rename ns prefixed functions/variables to the
11364 corresponding x versions. Update references.
11365
11366 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11367
11368 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11369
11370 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11371
11372 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11373 Remove forwarding functions.
11374 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11375 non-static.
11376 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11377 non-static.
11378 (ns_frame_parm_handlers): Use the new names.
11379 (syms_of_nsfns): Move to the end of file.
11380
11381 * nsterm.m (syms_of_nsterm): Move to the end of file.
11382
11383 * dispnew.c (init_display): Remove code for X10.
11384
11385 2008-07-22 Jason Rumney <jasonr@gnu.org>
11386
11387 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11388 bare drive.
11389
11390 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11391
11392 * nsterm.m (syms_of_nsterm): Remove debugging println.
11393
11394 2008-07-22 David Reitter <david.reitter@gmail.com>
11395
11396 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11397 Carbon implementation of the same functionality: execute arbitrary
11398 AppleScript code.
11399
11400 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11401
11402 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11403 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11404 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11405 (Fx_display_mm_height, Fx_display_mm_width)
11406 (Fx_display_backing_store, Fx_display_visual_class)
11407 (Fx_display_save_under, Fx_open_connection)
11408 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11409 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11410 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11411 (Fx_display_pixel_width, Fx_display_pixel_height)
11412 (Fx_display_usable_bounds, Fx_display_planes)
11413 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11414 ... */' style of docstrings.
11415
11416 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11417
11418 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11419 on this platform.
11420 (mips):
11421 * m/iris4d.h (mips): Do not define.
11422 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11423
11424 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11425
11426 * image.c:
11427 * nsfns.m:
11428 * nsselect.m:
11429 * nsterm.h:
11430 * nsterm.m: Rename ns prefixed functions/variables to the
11431 corresponding x versions. Update references.
11432
11433 * m/ibms390x.h (NO_REMAP): Do not undefine.
11434
11435 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11436
11437 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
11438
11439 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11440 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11441 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11442 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11443 (Fns_display_mm_height, Fns_display_mm_width)
11444 (Fns_display_backing_store, Fns_display_visual_class)
11445 (Fns_display_save_under, Fns_open_connection)
11446 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11447 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11448 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11449 (Fns_display_pixel_width, Fns_display_pixel_height)
11450 (Fns_display_usable_bounds, Fx_display_planes)
11451 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11452
11453 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11454
11455 * print.c (print_object): Check print_depth before searching for
11456 circularities.
11457
11458 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
11459
11460 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11461 only sprintf.
11462
11463 2008-07-21 Kenichi Handa <handa@m17n.org>
11464
11465 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11466
11467 2008-07-20 Andreas Schwab <schwab@suse.de>
11468
11469 * syntax.c (find_start_pos, find_start_value)
11470 (find_start_value_byte, find_start_begv, find_defun_start)
11471 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11472
11473 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11474
11475 * s/sol2-3.h: Insert contents of s/sol2.h.
11476 (LD_SWITCH_SYSTEM): Remove redundant definition.
11477 * s/sol2.h: Remove, unused.
11478
11479 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11480
11481 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11482
11483 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11484
11485 * Makefile.in (ns_appdir): Fix typo in find command.
11486
11487 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11488
11489 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11490
11491 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11492 added not supported anymore.
11493
11494 * s/usg5-4-2.h (LIBS_SYSTEM):
11495 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11496
11497 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11498 * s/lynxos.h (GETPGRP_NO_ARG):
11499 * s/hpux10-20.h (NO_SIOCTL_H):
11500 * s/gnu.h (GETPGRP_NO_ARG):
11501 * s/gnu-linux.h (NO_SIOCTL_H):
11502 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11503 * s/cygwin.h (GETPGRP_NO_ARG):
11504 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11505 (C_DEBUG_SWITCH): Remove duplicate definition.
11506
11507 * m/ibms390.h: Remove boilerplate comments.
11508
11509 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11510
11511 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11512 (wait_reading_process_output): Remove code for SunOS, platform not
11513 supported anymore. Use SOLARIS2 instead of sun.
11514
11515 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11516
11517 * font.c (font_open_by_name): Under NS, default lface height to zero.
11518 (font_open_for_lface): Under NS, set size based on frame fontsize.
11519 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11520 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11521
11522 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11523
11524 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11525 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11526 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11527 YES/NO.
11528 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11529 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11530 * Makefile.in (clean): Clear out build destination dir.
11531
11532 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11533
11534 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11535 xterm, xselect.
11536 * lisp.h: Remove declaration of hash_remove.
11537 * nsgui.h: Remove redefinitions of hash_remove.
11538 * fns.c (hash_remove): Rename to hash_remove_from_table.
11539
11540 2008-07-19 Seiji Zenitani <zenitani@mac.com>
11541
11542 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11543 strdup() the family UTF8String before modifying it.
11544
11545 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11546
11547 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11548 NS_FACE_BACKGROUND with 0 instead of nil.
11549 * nsfont.m (nsfont_draw): Same.
11550
11551 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
11552
11553 * nsfns.m (ns_set_background_color): Fix crash.
11554
11555 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
11556
11557 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11558
11559 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11560
11561 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11562
11563 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11564
11565 * gtkutil.c: Include <config.h> instead of "config.h".
11566
11567 * lisp.h (Foverlay_buffer): Add EXFUN.
11568
11569 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11570 child process to complete child_setup. Undo 2005-09-21 change.
11571
11572 * s/darwin.h: Mention setsid after vfork.
11573
11574 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11575
11576 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11577 Depend on macgui.h.
11578
11579 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11580 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11581
11582 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11583 and f19.
11584 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11585
11586 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11587 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11588 Remove enumerators.
11589
11590 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11591 Check if FACE_FROM_ID returns NULL.
11592
11593 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11594
11595 * w32inevt.c (change_frame_size): Remove extern declaration.
11596 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11597 change_frame_size.
11598
11599 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11600
11601 * getloadavg.c: Revert last change (2008-07-15).
11602
11603 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11604
11605 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
11606 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
11607 from configure.
11608
11609 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11610
11611 * s/sol2.h:
11612 * s/sol2-4.h: Reorganize conditionals.
11613
11614 * ecrt0.c: Remove code depending on m68000, not used anymore.
11615
11616 * fns.c (hash_remove): Make static.
11617 * lisp.h (hash_remove): Don't prototype.
11618
11619 * m/ibmrs6000.h:
11620 * m/ibms390x.h:
11621 * m/macppc.h: Remove boilerplate comments.
11622
11623 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11624 Solaris, which does not need them.
11625
11626 * m/vax.h: Remove comments about unsupported systems.
11627
11628 * s/darwin.h: Reorganize ifdefs.
11629
11630 2008-07-17 Andreas Schwab <schwab@suse.de>
11631
11632 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11633
11634 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11635
11636 Use SDATA. Follow coding convention of placing operators at
11637 beginning of next line rather than end of previous line, and placing
11638 spaces around infix operators.
11639
11640 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11641 in case it was defined already.
11642 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11643 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11644 ns_default.
11645 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11646 Lisp_Objects.
11647 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11648 (ns_defined_color, ns_color_to_lisp): Declare.
11649 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11650 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11651 it's accepted even with USE_LISP_UNION_TYPE.
11652 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11653 (update_frame_tool_bar): Remove apparently obsolete tests for
11654 non-integerness of f->tool_bar_lines.
11655 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11656 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11657 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11658 (nsfont_open): Don't confuse NULL for Qnil.
11659 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11660 * menu.h (find_and_call_menu_selection):
11661 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11662 (find_and_return_menu_selection): Always return something.
11663 * frame.h: Include dispextern.h for Display_Info.
11664 (display_x_get_resource): Declare.
11665
11666 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11667
11668 * syntax.c: Remove stdio.h include accidentally introduced in
11669 Emacs.app commit.
11670 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11671 NS_IMPL_COCOA.
11672 * keyboard.c (handle_async_input, input_available_signal): Remove
11673 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11674
11675 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11676
11677 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11678 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11679 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11680 Use SDATA.
11681
11682 * keymap.c: Remove all NS-specific code.
11683 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11684 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11685 where_is_preferred_modifier, return a different value depending on how
11686 preferred is the binding.
11687 (where_is_internal): Adjust accordingly.
11688 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11689 Adjust to new preferred_sequence_p.
11690 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11691 * keyboard.c (parse_solitary_modifier): Not static any more.
11692 * keyboard.h (parse_solitary_modifier): Declare.
11693
11694 2008-07-16 Andreas Schwab <schwab@suse.de>
11695
11696 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11697 of easymenu.
11698
11699 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
11700
11701 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11702 that we don't move off the line.
11703
11704 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11705
11706 * keyboard.c (Qsuper): Remove.
11707 (parse_menu_item): Don't call where_is_internal specially for NS.
11708
11709 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11710
11711 * s/gnu-linux.h: Remove boilerplate comments.
11712
11713 * m/alpha.h (__ELF__): Consolidate conditions.
11714
11715 * m/m68k.h (linux): Use GNU_LINUX instead.
11716 Remove boilerplate comments.
11717
11718 * m/intel386.h: Undo refactoring from previous change.
11719 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11720 too, remove dead code.
11721 (linux): Use GNU_LINUX instead.
11722
11723 2008-07-16 Jason Rumney <jasonr@gnu.org>
11724
11725 * w32gui.h: Repeat 26 June changes lost by last change.
11726
11727 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11728
11729 * systty.h: Remove code for Aix on 386, unsupported platform.
11730
11731 * s/ms-w32.h: Remove boilerplate comments.
11732 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11733
11734 * s/gnu-linux.h (TERM): Remove support.
11735 (HAVE_SYSVIPC): Remove, unused.
11736 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11737 for this system.
11738
11739 * process.c: Remove support for IRIS, unused.
11740 Remove support for TERM, not relevant anymore.
11741
11742 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11743 used with the definition.
11744
11745 * s/aix4-2.h (static): Do not undef.
11746
11747 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11748 only used on Aix.
11749 (HAVE_SYSVIPC): Remove, unused.
11750
11751 * m/hp800.h (CANNOT_DUMP): Do not undef.
11752
11753 * m/alpha.h: Fix comment.
11754
11755 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11756 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11757 used by this configuration.
11758 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11759 * unexec.c: Remove code depending on HPUX and
11760 USG_SHARED_LIBRARIES, not used with this file. Remove code
11761 depending on IRIS, unused. Remove if 0-ed code.
11762
11763 * s/template.h: Remove comments about static.
11764
11765 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11766 Remove if 0-ed code.
11767 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11768 were the same as the default.
11769 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11770 Remove boilerplate comments.
11771 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11772 (HAVE_SYSVIPC): Remove, unused.
11773 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11774
11775 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11776 Remove boilerplate comments.
11777 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11778 Remove boilerplate comments.
11779 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11780 Remove boilerplate comments.
11781 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11782
11783 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11784 USG systems which do not use DATA_SEG_BITS.
11785 Refactor code. Remove boilerplate comments.
11786
11787 * m/ibms390.h:
11788 * m/m68k.h:
11789 * s/bsd-common.h:
11790 * s/cygwin.h:
11791 * s/darwin.h:
11792 * s/freebsd.h:
11793 * s/gnu.h:
11794 * s/msdos.h: Remove boilerplate comments.
11795
11796 * m/iris4d.h: Remove boilerplate comments and code for systems that
11797 do not use this file.
11798 (IRIS_4D): Remove, unused.
11799
11800 * m/mips.h: Remove boilerplate comments and code for systems that
11801 do not use this file.
11802 (SIGN_EXTEND_CHAR):
11803 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11804 * unexmips.c: Remove file, unused.
11805
11806 * editfns.c (Fuser_full_name): Replace the only use of
11807 USER_FULL_NAME with its value.
11808 * config.in: Regenerate.
11809
11810 2008-07-16 David Reitter <david.reitter@gmail.com>
11811
11812 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11813 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11814
11815 2008-07-16 Glenn Morris <rgm@gnu.org>
11816
11817 * emacs.c (system-type): Doc fix.
11818
11819 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11820
11821 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11822 If the cache doesn't work, let's fix it, rather than work around it.
11823
11824 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11825
11826 * Makefile.in: Correct additions for nsfont.o in last commit.
11827 * nsfont.m: New file (forgot last commit).
11828
11829 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11830
11831 * callproc.c (set_initial_environment): Initialize
11832 Vprocess_environment under CANNOT_DUMP (fixes crash when
11833 batch-compiling for bootstrap).
11834
11835 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11836 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11837
11838 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11839 fix crash due to different init order.
11840
11841 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11842
11843 Changes and additions for NeXTstep windowing system (Cocoa and
11844 GNUstep) support.
11845
11846 * Makefile.in:
11847 * config.in: Support defines and build commands for NS port.
11848 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11849 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11850 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11851 windowing.
11852 (struct face): Add synth_ital field.
11853 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11854 (init_display): Initialize Vinitial_window_system to "ns" when so
11855 compiled.
11856 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11857 (display_arg): Use under NS.
11858 (main): Under NS, allocate autorelease pool and handle command line
11859 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11860 (standard_args): Add NS-specific args.
11861 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11862 * font.c (DEFAULT_ENCODING): New variable.
11863 (font_find_for_lface): Use it.
11864 (syms_of_font): Load syms_of_nsfont under NS.
11865 * font.h: Declare nsfont_driver when compiled under NS.
11866 * fontset.c: When compiling under NS, include nsterm.h.
11867 (fontset_from_font): Autoconstruct fontset under NS.
11868 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11869 symbol, document and use it.
11870 (do_switch_frame): When for_deletion under Cocoa, add
11871 Fraise_frame(Qnil).
11872 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11873 (x_get_arg): Allow "yes" and "no" as boolean values.
11874 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11875 Qright under Cocoa.
11876 (focus-follows-mouse): Default to 0 under NS.
11877 * frame.h (enum output_method): Add output_ns.
11878 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11879 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11880 (FRAME_WINDOW_P): NS-specific definition.
11881 * fringe.c (max_used_fringe_bitmap): Make public.
11882 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11883 (getloadavg): Use NeXT code under descendant OS's.
11884 * image.c (includes and header section, x_create_bitmap_from_data)
11885 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11886 (image_background_transparent, x_clear_image_1)
11887 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11888 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11889 (x_to_xcolors, x_from_xcolors, x_disable_image)
11890 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11891 other GUIs, including XPM support using code originally written for
11892 Carbon GUI.
11893 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11894 using NS API.
11895 (image_ascent): Use font metrics macros instead of direct struct field
11896 access.
11897 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11898 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11899 Also, handle NS as GTK for menu bar purposes.
11900 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11901 toolkit where they differ.
11902 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11903 use cachelist, still needed under NS.
11904 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11905 (struct widget_value): Define it here for menu.c.
11906 * keymap.c (includes): Include modifier internals.
11907 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11908 NS.
11909 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11910 support for preferring sequences using certain modifiers, specified by
11911 the FIRSTONLY argument.
11912 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11913 under NS GNUstep implementation.
11914 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11915 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11916 * menu.c: Include nsterm.h under NS.
11917 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11918 (free_menubar_widget_tree_value, update_submenu_strings)
11919 (find_and_call_menu_selection): Treat NS as X and NT.
11920 (find_and_return_menu_selection): New function, used for popup menus.
11921 * nsgui.h:
11922 * nsterm.h:
11923 * nsfns.m:
11924 * nsimage.m:
11925 * nsmenu.m:
11926 * nsselect.m:
11927 * nsterm.m: New files.
11928 * process.c (wait_reading_process_output): Under NS, call ns_select()
11929 instead of plain select().
11930 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11931 beginning of buffer.
11932 * sysselect.h (init_process): Rename when compiling under Cocoa to
11933 avoid name conflict.
11934 * termhooks.h (display_info): Add ns_display_info to union.
11935 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11936 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11937 COCOA environment.
11938 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11939 unexec() signature. (Note, this will dump, but the resulting file
11940 crashes; unexosx is used instead; keeping around for reference and
11941 possible aid in getting dump working under GNUstep.)
11942 * w32gui.h (button_type, widget_value): Remove definitions (now in
11943 keyboard.h).
11944 * window.c: Include nsterm.h when compiling under NS.
11945 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11946 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11947 other GUI windowing systems.
11948 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11949 GTK.
11950 (x_consider_frame_title): Under NS, set icon type and frame
11951 modified-state indicator; use ns_set_name_as_filename() when using
11952 formatted title.
11953 (update_window_cursor): Make public when compiling under NS.
11954 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11955 (hourglass_atimer, Vhourglass_delay
11956 * xfaces.c (header section, init_frame_faces, clear_font_table)
11957 (defined_color, unload_color, x_face_list_fonts)
11958 (prepare_face_for_display): Add NS support parallel to other GUIs.
11959 Emulate GCs like other non-X GUIs.
11960 (split_font_name): Don't lowercase font name under NS.
11961 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11962 under NS.
11963 * s/darwin.h: Add support for compilation under NS.
11964
11965 2008-07-15 Jason Rumney <jasonr@gnu.org>
11966
11967 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11968 (w32_show_hourglass): Rename from show_hourglass.
11969 (w32_hide_hourglass): Rename from hide_hourglass.
11970 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11971 (Vhourglass_delay): Declare extern.
11972 (hourglass_started): Remove.
11973
11974 * xdisp.c (Vhourglass_delay): Remove static.
11975 (hourglass_started, start_hourglass, cancel_hourglass):
11976 Don't include these versions on WINDOWSNT.
11977
11978 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11979
11980 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11981 variables (formerly in xfns.c).
11982 (show_hourglass, hide_hourglass): New prototypes (same).
11983 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11984 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11985 in xfns.c).
11986 (syms_of_xdisp): Declare/initialize display-hourglass,
11987 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11988 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11989 formerly in xfns.c.
11990 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11991 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11992 (start_hourglass, cancel_hourglass): Remove.
11993 (show_hourglass, hide_hourglass): Remove prototypes and static
11994 modifiers.
11995 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11996 hourglass_atimer, hourglass_shown_p declaration/initialization.
11997 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11998 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11999 (start_hourglass, cancel_hourglass): Remove.
12000 (show_hourglass, hide_hourglass): Remove prototypes and static
12001 modifiers.
12002 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12003 hourglass_atimer, hourglass_shown_p declaration/initialization.
12004 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12005 (DEFAULT_HOURGLASS_DELAY): Remove.
12006 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12007 hourglass_shown_p declaration/initialization.
12008
12009 2008-07-14 Jason Rumney <jasonr@gnu.org>
12010
12011 * w32fns.c (w32_get_arg): Remove wrapper function.
12012 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12013 directly.
12014 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12015
12016 2008-07-14 Kenichi Handa <handa@m17n.org>
12017
12018 * xfont.c (xfont_open): Add workaround for X's bug.
12019
12020 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12021
12022 * fontset.c: Include <stdio.h> unconditionally.
12023
12024 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
12025
12026 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12027 for filtering.
12028
12029 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12030
12031 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12032
12033 * m/macppc.h:
12034 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12035
12036 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12037 (SPECIAL_EMACS_INT):
12038 * m/ia64.h (SPECIAL_EMACS_INT):
12039 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12040 * s/gnu.h (NLIST_STRUCT):
12041 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12042 * s/gnu-linux.h (LINUX):
12043 * s/msdos.h (HAVE_FACES):
12044 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12045
12046 * systty.h:
12047 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12048 anymore.
12049
12050 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12051
12052 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12053 always defined as int.
12054
12055 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12056 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12057 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12058 * s/freebsd.h (HAVE_WAIT_HEADER):
12059 * s/bsd-common.h (HAVE_UNION_WAIT):
12060 * s/aix4-2.h (HAVE_WAIT_HEADER):
12061 * m/mips.h (HAVE_UNION_WAIT):
12062 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12063 (COFF, static): Do not define, they are undefined later in the file.
12064
12065 * process.c (update_status): Don't use a union.
12066 (status_convert):
12067 (sigchld_handler): Use int instead of WAITTYPE.
12068
12069 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
12070
12071 * indent.c (Fvertical_motion): Restore hscroll before moving to
12072 goal column.
12073
12074 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12075
12076 * lisp.h: Remove left over code.
12077
12078 2008-07-11 Andreas Schwab <schwab@suse.de>
12079
12080 * lisp.h: Fix logic in last change.
12081
12082 * menu.h: New file.
12083 * menu.c: Include it.
12084 * xmenu.c: Likewise.
12085 * Makefile.in: Update dependencies.
12086
12087 2008-07-11 Kenichi Handa <handa@m17n.org>
12088
12089 * fontset.c (fontset_from_font): Cancel the previous change.
12090
12091 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12092
12093 * lisp.h:
12094 * w32heap.c:
12095 * emacs.c:
12096 * alloc.c: Replace all references of NO_UNION_TYPE with
12097 USE_LISP_UNION_TYPE.
12098
12099 * m/xtensa.h (NO_UNION_TYPE):
12100 * m/vax.h (NO_UNION_TYPE):
12101 * m/template.h (NO_UNION_TYPE):
12102 * m/sparc.h (NO_UNION_TYPE):
12103 * m/mips.h (NO_UNION_TYPE):
12104 * m/macppc.h (NO_UNION_TYPE):
12105 * m/m68k.h (NO_UNION_TYPE):
12106 * m/iris4d.h (NO_UNION_TYPE):
12107 * m/intel386.h (NO_UNION_TYPE):
12108 * m/ibms390x.h (NO_UNION_TYPE):
12109 * m/ibms390.h (NO_UNION_TYPE):
12110 * m/ibmrs6000.h (NO_UNION_TYPE):
12111 * m/ia64.h (NO_UNION_TYPE):
12112 * m/hp800.h (NO_UNION_TYPE):
12113 * m/arm.h (NO_UNION_TYPE):
12114 * m/amdx86-64.h (NO_UNION_TYPE):
12115 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12116 defining it the same.
12117
12118 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
12119
12120 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12121
12122 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12123
12124 * fileio.c:
12125 * sysdep.c:
12126 * systty.h:
12127 * m/ibmrs6000.h:
12128 * m/iris4d.h:
12129 * s/aix4-2.h:
12130 * s/freebsd.h:
12131 * s/gnu-linux.h:
12132 * s/hpux10-20.h:
12133 * s/hpux11.h:
12134 * s/netbsd.h:
12135 * s/sol2-3.h:
12136 * s/sol2-4.h:
12137 * s/sol2.h:
12138 * s/usg5-4.h:
12139 * s/vms.h: Remove references to unused variables.
12140
12141 2008-07-10 Andreas Schwab <schwab@suse.de>
12142
12143 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12144 pattern before matching the generic family.
12145
12146 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12147
12148 * unexec.c:
12149 * s/vms.h:
12150 * s/usg5-4-2.h:
12151 * s/sol2-5.h:
12152 * s/freebsd.h:
12153 * s/darwin.h: Remove dead code.
12154
12155 * m/template.h:
12156 * m/sparc.h:
12157 * m/mips.h:
12158 * m/m68k.h:
12159 * m/iris4d.h:
12160 * m/intel386.h:
12161 * m/ibms390x.h:
12162 * m/ibms390.h:
12163 * m/ia64.h:
12164 * m/hp800.h:
12165 * m/arm.h:
12166 * m/amdx86-64.h: Remove dead code and references to unused
12167 and compiler defined symbols.
12168
12169 * unexmips.c:
12170 * unexelf.c: Remove references to desupported systems.
12171
12172 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12173
12174 * m/powermac.h: Remove boilerplate comments.
12175 (NO_REMAP): Remove unused definition.
12176
12177 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12178 define them.
12179
12180 2008-07-10 Kenichi Handa <handa@m17n.org>
12181
12182 * xfont.c (xfont_open): Log the reason of failure.
12183
12184 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12185
12186 * fontset.c (fontset_get_font_group):
12187 * font.c (font_check_otf): Specify argument types.
12188
12189 2008-07-09 Kenichi Handa <handa@m17n.org>
12190
12191 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12192 non-ASCII char is found.
12193
12194 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12195 (reorder_font_vector): Change the arg preferred_family to font.
12196 Prefer the spec matching with font.
12197 (fontset_get_font_group): New function.
12198 (fontset_find_font): Change the format of an element of a realized
12199 fontset. Use fontset_get_font_group.
12200 (fontset_font): Try the current fontset, the default fontset, the
12201 fallbacks of the current fontset, and the fallbacks of the default
12202 fontset in this order.
12203 (face_for_char): Delete the shortcut to use the current font.
12204 (fontset_from_font): Don't set fonts for Latin in the fontset.
12205
12206 * font.h (font_make_object, font_match_p): Adjust prototypes.
12207
12208 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12209
12210 * font.c (font_make_object): New arg entity and pixelsize.
12211 (font_check_otf_features, font_check_otf): New functions.
12212 (font_match_p): Check :lang, :script, and :otf properties.
12213
12214 * xfont.c (xfont_open): Adjust it for the change of
12215 font_make_object.
12216 (xfont_text_extents): Fix initial setting of metrics.
12217
12218 * ftfont.c (struct ftfont_info): New member index, delete member
12219 fc_charset_idx. Make the member order compatible with struct
12220 xftfont_info.
12221 (fc_charset_table): Change charset names to registry names.
12222 (ftfont_pattern_entity): Delete the args registry and
12223 fc_charset_idx. Change the value of :font-entity property
12224 to (FONTNAME . INDEX). Always set :registry property to
12225 `iso10646-1'.
12226 (struct ftfont_cache_data): New struct.
12227 (ftfont_lookup_cache): New arg for_face.
12228 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12229 (ftfont_driver): Set the member otf_capability.
12230 (ftfont_get_charset): Adjust it for the change of
12231 fc_charset_table.
12232 (OTF_TAG_SYM): New macro.
12233 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12234 for the change of fc_charset_table.
12235 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12236 ftfont_pattern_entity. Add FC_INDEX to objset.
12237 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12238 and ftfont_pattern_entity.
12239 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12240 font_make_object, struct ftfont_info.
12241 (ftfont_has_char): Use ftfont_get_fc_charset.
12242 (ftfont_otf_features, ftfont_otf_capability): New functions.
12243 (ftfont_shape): Use ftfont_get_otf.
12244 (ftfont_text_extents): Fix initial setting of metrics.
12245
12246 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12247 member order compatible with struct ftfont_info.
12248 (xftfont_open): Add FC_CHARSET to the pattern. Set
12249 xftfont_info->ft_size. Don't unlock the face. Check BDF
12250 properties if appropriate.
12251 (xftfont_close): Unlock the face.
12252 (xftfont_anchor_point, xftfont_shape): Deleted.
12253 (syms_of_xftfont): Don't set members anchor_point and shape of
12254 xftfont_driver.
12255
12256 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12257 font_make_object.
12258
12259 * w32font.c (w32font_open): Adjust it for the change of
12260 font_make_object.
12261 (w32font_open_internal): Don't set properties of font_object here.
12262
12263 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
12264
12265 * macfns.c (x_create_tip_frame):
12266 * w32fns.c (x_create_tip_frame):
12267 * xfns.c (x_create_tip_frame): Pass parameter argument to
12268 face-set-after-frame-default.
12269
12270 * xfaces.c (Finternal_merge_in_global_face): Save merged
12271 attributes for the default face back into the face vector.
12272
12273 2008-07-08 Andreas Schwab <schwab@suse.de>
12274
12275 * fontset.h: Declare fontset_from_font. Don't declare
12276 new_fontset_from_font and fontset_from_font_name.
12277 * xterm.c: Include "fontset.h".
12278 * Makefile.in (xterm.o): Update dependencies.
12279
12280 2008-07-08 Glenn Morris <rgm@gnu.org>
12281
12282 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12283 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12284
12285 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
12286
12287 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12288 (x_set_frame_parameters): Don't bind it.
12289
12290 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
12291
12292 * w32fns.c (map_w32_filename): Declare extern.
12293
12294 2008-07-07 Jason Rumney <jasonr@gnu.org>
12295
12296 * w32term.c (WS_EX_LAYERED): Define if not already.
12297
12298 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
12299
12300 * xfaces.c (set_font_frame_param): Don't try to set the font
12301 parameter if it is still unspecified in the lface.
12302
12303 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
12304
12305 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12306 face if it didn't already exist.
12307
12308 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12309
12310 2008-07-05 Andreas Schwab <schwab@suse.de>
12311
12312 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12313
12314 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
12315
12316 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12317 word-wrapping.
12318 (IT_DISPLAYING_WHITESPACE): New macro.
12319 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12320 when word-wrapping. Simplify word-wrapping logic. Use correct
12321 pixel positions when saving copies of the iterator.
12322 (display_line): Use proper wrap point if the last character on a
12323 line was preceded by whitespace.
12324
12325 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12326
12327 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12328
12329 2008-07-04 Kenichi Handa <handa@m17n.org>
12330
12331 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12332
12333 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12334
12335 2008-07-02 Jason Rumney <jasonr@gnu.org>
12336
12337 * xfns.c (syms_of_xfns): Only define x-select-font when both
12338 HAVE_FREETYPE and USE_GTK.
12339
12340 * xdisp.c (next_element_from_display_vector): Move assignment out
12341 of if statement.
12342
12343 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12344
12345 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12346
12347 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12348 (syms_of_fileio): Initialize and export them.
12349 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12350
12351 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12352 (Fsystem_move_file_to_trash): New function.
12353 (syms_of_w32fns): Export it to lisp.
12354
12355 2008-07-01 Jason Rumney <jasonr@gnu.org>
12356
12357 * w32font.c (w32font_text_extents): Don't count overhang as part
12358 of width.
12359
12360 2008-06-30 Miles Bader <miles@gnu.org>
12361
12362 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12363 Add `avoid_cursor_p' field.
12364
12365 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12366 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12367 (append_glyph, append_composite_glyph, produce_image_glyph)
12368 (append_stretch_glyph): Initialize avoid_cursor_p.
12369 (get_it_property): Rename from `get_line_height_property'.
12370 (x_produce_glyphs): Use get_it_property.
12371 (handle_line_prefix, push_display_prop): New functions.
12372 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12373 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12374 New variables.
12375 (syms_of_xdisp): Initialize them.
12376
12377 2008-06-30 Kenichi Handa <handa@m17n.org>
12378
12379 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12380 XftDefaultSubstitute (they are called in XftFontMatch).
12381 (xftfont_open): Fix args to ftfont_font_format.
12382
12383 * ftfont.c (fc_charset_table): New member lang.
12384 (ftfont_resolve_generic_family): New arg pattern.
12385 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
12386 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12387 (ftfont_open): Fix args to ftfont_font_format.
12388 (ftfont_font_format): New arg filename.
12389
12390 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
12391
12392 * xfaces.c (Finternal_merge_in_global_face): If default face was
12393 modified, realize it again. Update the font face attribute.
12394
12395 2008-06-29 Jason Rumney <jasonr@gnu.org>
12396
12397 * w32term.c (x_set_frame_alpha): Fix logic.
12398
12399 2008-06-29 Kenichi Handa <handa@m17n.org>
12400
12401 * fontset.c (Finternal_char_font): Return font-object instead of
12402 font-name.
12403
12404 * composite.c (get_composition_id): Fix the width calculation for TAB.
12405
12406 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12407
12408 * indent.c (Fvertical_motion): Properly handle float column arg.
12409
12410 2008-06-28 Jason Rumney <jasonr@gnu.org>
12411
12412 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12413 (pfnSetLayeredWindowAttributes): New function pointer.
12414 (w32_initialize): Initialize it when supported.
12415 (x_set_frame_alpha): New function.
12416
12417 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12418 (w32_frame_parm_handlers): Set alpha handler.
12419
12420 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12421
12422 2008-06-27 Jason Rumney <jasonr@gnu.org>
12423
12424 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12425 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12426 (w32_to_x_charset, x_to_w32_charset)
12427 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12428 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12429 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12430 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12431 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12432 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12433 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12434 (Qw32_charset_unicode): Remove.
12435 (syms_of_w32fns): Update for above changes.
12436
12437 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12438 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12439 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12440 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12441 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12442 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12443 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12444 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12445 (syms_of_w32font): Update for above changes.
12446
12447 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12448
12449 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12450 removed #if.
12451 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12452
12453 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12454 Eli Zaretskii <eliz@gnu.org>
12455
12456 * makefile.w32-in (LOCAL_FLAGS):
12457 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12458
12459 * sysdep.c (_spawnlp, _getpid):
12460 Declare with explicit _cdecl instead of _CRTAPI1.
12461
12462 * editfns.c (Fget_internal_run_time):
12463 Check for WINDOWSNT with #ifdef, not #if.
12464
12465 2008-06-26 Jason Rumney <jasonr@gnu.org>
12466
12467 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12468
12469 * w32term.c (x_draw_glyph_string_foreground)
12470 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12471 Use FONT_HANDLE macro.
12472 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12473
12474 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12475 (uniscribe_encode_char): Use FONT_HANDLE macro.
12476
12477 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12478 (w32font_text_extents): Use precast w32_font.
12479 (w32font_close): Free cached metrics.
12480 (w32font_open_internal): Allocate space for name on stack.
12481
12482 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
12483
12484 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12485
12486 2008-06-26 Jason Rumney <jasonr@gnu.org>
12487
12488 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12489 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12490
12491 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12492
12493 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12494
12495 2008-06-26 Jason Rumney <jasonr@gnu.org>
12496
12497 * w32bdf.c, w32bdf.h: Remove obsolete files.
12498
12499 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12500
12501 * w32gui.h: Don't include w32bdf.h.
12502 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12503 Remove obsolete font support.
12504
12505 * w32font.h (struct w32font_info): Remove compat_w32_font.
12506 Add hfont member.
12507 (FONT_COMPAT): Remove obsolete macro.
12508
12509 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12510 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12511 (w32font_open_internal): Remove compat code. Set new hfont member.
12512 (Fx_select_font): Use new hfont member.
12513
12514 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12515 (uniscribe_encode_char): Use new hfont member.
12516
12517 * w32term.c (x_draw_glyph_string_foreground)
12518 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12519 (x_draw_glyph_string): Use metrics in w32font_info.
12520
12521 2008-06-26 Kenichi Handa <handa@m17n.org>
12522
12523 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12524
12525 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12526
12527 * unexnext.c:
12528 * m/ews4800.h:
12529 * m/hp9000s300.h:
12530 * m/ibm370aix.h:
12531 * m/mips-siemens.h:
12532 * m/ncr386.h:
12533 * m/next.h:
12534 * m/pmax.h:
12535 * m/powerpcle.h:
12536 * m/tandem-s2.h:
12537 * s/386bsd.h:
12538 * s/bsd386.h:
12539 * s/bsd4-1.h:
12540 * s/bsd4-2.h:
12541 * s/bsdos2-1.h:
12542 * s/bsdos2.h:
12543 * s/bsdos3.h:
12544 * s/bsdos4.h:
12545 * s/nextstep.h:
12546 * s/ultrix4-3.h:
12547 * s/usg5-0.h:
12548 * s/usg5-2-2.h:
12549 * s/usg5-2.h:
12550 * s/usg5-4-3.h:
12551 * s/ux4800.h:
12552 * s/uxpds.h:
12553 * s/uxpv.h: Remove support for obsolete systems.
12554 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
12555 Remove, insert contents in s/hpux10-20.h.
12556 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12557 Remove, insert contents in s/aix4-2.h.
12558 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12559 * s/bsd4-3.h: Rename to ...
12560 * s/bsd-common.h: ... this.
12561 * data.c:
12562 * doc.c:
12563 * ecrt0.c:
12564 * emacs.c:
12565 * fileio.c:
12566 * floatfns.c:
12567 * keyboard.c:
12568 * mem-limits.h:
12569 * print.c:
12570 * process.c:
12571 * sysdep.c:
12572 * syssignal.h:
12573 * systty.h:
12574 * syswait.h:
12575 * term.c:
12576 * unexec.c:
12577 * unexelf.c:
12578 * unexhp9k800.c:
12579 * m/hp800.h:
12580 * m/ibmrs6000.h:
12581 * m/mips.h:
12582 * m/vax.h:
12583 * s/darwin.h:
12584 * s/freebsd.h:
12585 * s/gnu.h:
12586 * s/ms-w32.h:
12587 * s/msdos.h:
12588 * s/netbsd.h:
12589 * s/template.h: Remove references to obsolete variables.
12590
12591 * Makefile.in: Add dependencies for all unexec files.
12592 (admindir): Remove unused variable.
12593 (UNEXEC_SRC): Remove references.
12594
12595 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
12596
12597 * xfns.c (x_default_font_parameter): If Xft is available, first
12598 try Monospace-12 for the default font.
12599
12600 2008-06-25 Jason Rumney <jasonr@gnu.org>
12601
12602 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12603
12604 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12605
12606 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12607
12608 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12609
12610 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
12611
12612 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12613 <scroll-conservatively>: Fix typo in docstring.
12614
12615 * xselect.c (Fx_send_client_event): Doc fix.
12616
12617 2008-06-25 Kenichi Handa <handa@m17n.org>
12618
12619 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12620
12621 * font.c (font_parse_fcname): Remove unused variables.
12622 (font_sort_entites): Delete the arg SPEC. Caller changed.
12623 Fix for the case of ! best_only.
12624 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12625
12626 * lisp.h (Fstring_to_unibyte): EXFUN it.
12627
12628 * character.h (str_to_unibyte): Extern it.
12629
12630 * character.c (str_to_unibyte): New function.
12631
12632 * fns.c (Fstring_to_unibyte): New function.
12633 (syms_of_fns): Defsubr it.
12634
12635 2008-06-24 Kenichi Handa <handa@m17n.org>
12636
12637 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12638 DPI too.
12639 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12640
12641 2008-06-24 Andreas Schwab <schwab@suse.de>
12642
12643 * Makefile.in (${lispsource}loaddefs.el): Rename from
12644 ../lisp/loaddefs.el.
12645 (bootstrap-clean): Do what distclean does but don't remove
12646 Makefile.
12647 (distclean): Depend on bootstrap-clean and remove Makefile.
12648
12649 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
12650
12651 * buffer.h (struct buffer): New member word_wrap.
12652
12653 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12654 word-wrap.
12655 (init_buffer_once): Initialize them.
12656
12657 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12658 line_wrap enum possessing three possible values.
12659
12660 * termopts.h: Replace truncate_partial_width_windows with
12661 Vtruncate_partial_width_windows.
12662
12663 * dispnew.c (direct_output_for_insert): Avoid direct output when
12664 inserting a space with word wrap on.
12665
12666 * indent.c (compute_motion): Obey integer values of
12667 truncate-partial-width-windows.
12668
12669 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12670 replacing truncate_partial_width_windows.
12671 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12672 truncate only if the window width is below that integer.
12673 (start_display, resize_mini_window, produce_stretch_glyph)
12674 (display_string, move_it_in_display_line_to): Use line_wrap.
12675 (back_to_previous_visible_line_start, reseat_1): Reset
12676 string_from_display_prop_p.
12677 (display_line): Extend default face to end of line when wrapping.
12678
12679 2008-06-24 Kim F. Storm <storm@cua.dk>
12680
12681 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12682 to wrap continued lines at word boundaries.
12683
12684 2008-06-24 Jason Rumney <jasonr@gnu.org>
12685
12686 * font.c (Ffont_face_attributes): Multiply pixel size before point
12687 conversion to avoid multiplying rounding error.
12688
12689 2008-06-23 Jason Rumney <jasonr@gnu.org>
12690
12691 * w32term.c (x_draw_glyph_string_background)
12692 (x_draw_glyph_string): Remove old bdf font code.
12693
12694 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12695
12696 2008-06-22 Kenichi Handa <handa@m17n.org>
12697
12698 * font.c (font_find_for_lface): Try the adstyle specified in
12699 the property of LFACE_FONT of LFACE (if any).
12700
12701 2008-06-21 Seiji Zenitani <zenitani@mac.com>
12702 Ryo Yoshitake <ryo@shiftmode.net>
12703
12704 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12705
12706 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12707
12708 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12709 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12710 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12711 (witness-emacs): Remove.
12712 (lisp, shortlisp): Move loaddefs.el earlier.
12713 (mostlyclean): Forget about witness-emacs.
12714
12715 2008-06-22 Glenn Morris <rgm@gnu.org>
12716
12717 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12718 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12719
12720 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12721
12722 * Makefile.in (PRECOMP): Remove.
12723 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12724 (witness-emacs): Run `compile-first'.
12725 (.el.elc): Use the new compile-onefile target.
12726
12727 2008-06-21 Kenichi Handa <handa@m17n.org>
12728
12729 * xftfont.c (xftfont_open): Handle QCembolden only when
12730 FC_EMBOLDEN is defined.
12731
12732 2008-06-21 Andreas Schwab <schwab@suse.de>
12733
12734 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12735 (.el.elc): Likewise.
12736
12737 2008-06-21 Miles Bader <miles@gnu.org>
12738
12739 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12740 build dir, not the lisp source dir.
12741
12742 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12743
12744 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12745 (bootstrapclean): Remove.
12746 (.el.elc): New rule.
12747 (PRECOMP): New var.
12748 (../lisp/subdirs.el): Remove.
12749 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12750 (witness-emacs): New target.
12751 (mostlyclean): Remove witness-emacs as well.
12752 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12753 Add witness-emacs dependency.
12754
12755 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
12756
12757 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12758 defined by the font.
12759
12760 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12761
12762 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12763 (bootstrap-clean): New target that keeps TAGS around.
12764 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12765 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12766
12767 2008-06-20 Jason Rumney <jasonr@gnu.org>
12768
12769 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12770 Remove obsolete font code.
12771
12772 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12773 to determine language support.
12774
12775 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12776
12777 * sysdep.c (cfsetspeed): New fun extracted from the code.
12778 (cfmakeraw): Move before first use.
12779
12780 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12781
12782 * sysdep.c (cfmakeraw): Provide fallback implementation.
12783 (serial_configure): Provide fallback implementation of cfsetspeed.
12784
12785 2008-06-20 Kenichi Handa <handa@m17n.org>
12786
12787 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12788 the pattern.
12789
12790 * fontset.c (fontset_from_font): Copy font_spec before changing
12791 the elements.
12792
12793 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12794
12795 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12796
12797 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12798 for explicit `font' parameters.
12799
12800 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12801
12802 2008-06-19 Kenichi Handa <handa@m17n.org>
12803
12804 * frame.c: Include <ctype.h>.
12805 (x_set_font_backend): Allow spacing characters in the X resource
12806 for FontBackend.
12807
12808 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12809
12810 * w32fns.c, xfns.c (Qfont_param): New var.
12811 (syms_of_w32fns): Initialize it.
12812 (x_default_font_parameter): Record explicit `font' into
12813 `font-parameter'.
12814
12815 2008-06-18 Kenichi Handa <handa@m17n.org>
12816
12817 * font.c (font_parse_xlfd): Fix previous change.
12818 (font_parse_fcname): Don't use :fc-unknown-spec.
12819 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12820 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12821 (font_add_log): Prepend the driver name to the resulting fonts.
12822
12823 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12824 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12825 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12826
12827 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12828 (QCembolden): New variables.
12829 (syms_of_xftfont): DEFSYM them.
12830 (xftfont_open): Call XftFontMatch. Don't trust the result of
12831 XftTextExtents8 if the pixel_size is less than 5.
12832
12833 2008-06-18 Andreas Schwab <schwab@suse.de>
12834
12835 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12836 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12837
12838 2008-06-18 Jason Rumney <jasonr@gnu.org>
12839
12840 * w32font.c (w32font_list, w32font_match): Add logging.
12841
12842 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12843
12844 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * font.c (font_parse_fcname): Store divider characters for
12847 unknown-spec list. For known key symbols, intern using correct
12848 symbol name.
12849
12850 2008-06-17 Kenichi Handa <handa@m17n.org>
12851
12852 * xfaces.c (realize_default_face): If the frame is not on window
12853 system, set the fontset of face to nil.
12854
12855 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12856
12857 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12858
12859 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
12860
12861 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12862 (build_font_name_from_vector): Delete externs.
12863
12864 * xfaces.c (struct font_name): Don't declare.
12865
12866 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12867
12868 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12869
12870 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
12871
12872 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12873
12874 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
12875
12876 * font.c (Ffont_spec): Fix usage in docstring.
12877 (Ffont_face_attributes): Doc fix.
12878
12879 2008-06-16 Andreas Schwab <schwab@suse.de>
12880
12881 * font.c (Ffont_face_attributes): Fix definition.
12882
12883 2008-06-16 Jason Rumney <jasonr@gnu.org>
12884
12885 * font.h (font_style_symbolic_from_value): Remove.
12886
12887 * font.c (font_style_symbolic_from_value): Remove.
12888 (font_style_symbolic): Revert to pre 2008-06-13 version.
12889
12890 * w32font.c (w32_to_fc_weight): New function.
12891 (w32font_full_name, logfont_to_fcname): Use it.
12892
12893 2008-06-16 Kenichi Handa <handa@m17n.org>
12894
12895 * font.c (font_check_object): Delete it.
12896 (font_clear_cache): Check if a font-object is alive.
12897 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12898 font-object to nil.
12899 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12900 (font_at): Don't call font_check_object.
12901 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12902
12903 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12904
12905 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12906
12907 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
12908
12909 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12910
12911 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
12912
12913 * font.c (font_parse_fcname): Only one decimal point.
12914 (font_unparse_fcname): Handle data in family and foundry indices
12915 as symbols, not strings.
12916 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12917
12918 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12919
12920 * font.h (font_unparse_gtkname): Add prototype.
12921
12922 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12923
12924 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12925
12926 2008-06-15 Andreas Schwab <schwab@suse.de>
12927
12928 * font.c (font_update_drivers): Fix crash when no drivers match.
12929
12930 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12931
12932 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12933 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12934
12935 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12936
12937 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12938
12939 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12940
12941 * process.c (Fserial_process_configure, Fprocess_send_eof):
12942 Use EQ to compare Lisp_Objects.
12943
12944 2008-06-13 Jason Rumney <jasonr@gnu.org>
12945
12946 * w32fns.c (Fw32_select_font): Remove old font API function.
12947
12948 * w32font.c (logfont_to_fcname): New function.
12949 (Fx_select_font): New font dialog function compatible with
12950 GTK/fontconfig version.
12951
12952 * font.c (font_style_symbolic_from_value): New function.
12953 (font_style_symbolic): Use it.
12954
12955 * font.h (font_style_symbolic_from_value): Declare new function.
12956
12957 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
12958
12959 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12960 <font-width-table>: Fix typos in docstrings.
12961
12962 2008-06-13 Daniel Engeler <engeler@gmail.com>
12963
12964 These changes add serial port access.
12965 * process.c: Add HAVE_SERIAL.
12966 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12967 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12968 (list_processes_1, select_wrapper, Fstop_process)
12969 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12970 (status_notify): Modify to handle serial processes.
12971 [HAVE_SERIAL] (Fserial_process_configure)
12972 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12973 New functions.
12974 * process.h (struct Lisp_Process): Add `type'.
12975 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12976 New functions.
12977 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12978 serial ports.
12979 (serial_open, serial_configure): New functions.
12980 * w32.h: Add FILE_SERIAL.
12981 (struct _child_process): Add ovl_read, ovl_write.
12982
12983 2008-06-13 Kenichi Handa <handa@m17n.org>
12984
12985 * dispextern.h (enum lface_attribute_index): New member
12986 LFACE_FOUNDRY_INDEX.
12987
12988 * font.c (font_score): Delete arg alternate_families. Check only
12989 weight, slant, width, and size. Ignore the difference of alias
12990 style symbols.
12991 (font_sort_entites): Adjust for the above change. Reflect the
12992 order of font-driver to scores.
12993 (font_list_entities): Don't check alternate_familes here.
12994 (font_clear_prop): Handle foundry.
12995 (font_update_lface): Don't parse "foundry-family" form here.
12996 Handle FONT_FOUNDRY_INDEX.
12997 (font_find_for_lface): Likewise. Handle alternate families here.
12998 If registry is nil, try iso8859-1 and ascii-0.
12999 (font_open_for_lface): Pay attention to size in ENTITY.
13000 (font_open_by_name): Simplify by calling font_load_for_lface.
13001 (free_font_driver_list): Delete it.
13002 (font_update_drivers): Preserve the order of backends.
13003 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13004 of font_score and font_sort_entites.
13005 (font_update_sort_order): Likewise.
13006
13007 * xfaces.c (LFACE_FOUNDRY): New macro.
13008 (check_lface_attrs): Check foundry.
13009 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13010 (merge_face_vectors): Check foundry.
13011 (merge_face_ref): Likewise.
13012 (Finternal_set_lisp_face_attribute): Likewise.
13013 (x_update_menu_appearance): Likewise.
13014 (Finternal_get_lisp_face_attribute): Likewise.
13015 (lface_hash): Likewise.
13016 (lface_same_font_attributes_p): Likewise.
13017 (x_supports_face_attributes_p): Likewise.
13018 (tty_supports_face_attributes_p): Likewise.
13019 (Finternal_set_alternative_font_family_alist): Intern strings.
13020 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13021 (realize_default_face): Set LFACE_FOUNDRY (lface).
13022
13023 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13024 font-driver at first.
13025
13026 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13027
13028 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13029
13030 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13031
13032 2008-06-12 Jim Meyering <meyering@redhat.com>
13033
13034 Make unexec_free handle NULL the same way free does.
13035 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13036
13037 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13040 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13041 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13042 (WEAK_ALIAS): Simplify.
13043 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13044 when searching a unibyte buffer.
13045
13046 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
13047
13048 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13049
13050 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
13051
13052 * w32font.c: Include ctype.h.
13053
13054 2008-06-11 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13057 misreported as space.
13058 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13059 as aliases for registry iso10646-1.
13060
13061 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13062
13063 * buffer.c (clone_per_buffer_values): Skip `name'.
13064
13065 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
13066
13067 * font.c (font_parse_fcname): Fix last change; accept decimal
13068 points in font size.
13069
13070 2008-06-10 Jason Rumney <jasonr@gnu.org>
13071
13072 * w32uniscribe.c (add_opentype_font_name_to_list):
13073 Skip non unicode fonts.
13074
13075 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13076
13077 * xfns.c (Fx_font_dialog): New function.
13078
13079 * gtkutil.c (xg_dialog_response_cb): Rename from
13080 xg_file_response_callback.
13081 (pop_down_dialog): Rename from pop_down_file_dialog.
13082 (xg_get_file_name): Callers changed.
13083 (xg_get_font_name): New function.
13084
13085 * gtkutil.h (xg_get_font_name): Insert prototype.
13086
13087 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13088
13089 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13090 x_underline_minimum_display_offset.
13091 (syms_of_xdisp): Declare it here rather than in xterm.c.
13092 * dispextern.h (underline_minimum_offset): Declare it.
13093 * w32term.c (x_draw_glyph_string): Use it.
13094 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13095 (syms_of_xterm): Don't declare it any more.
13096 (x_draw_glyph_string): Adjust to the new name.
13097
13098 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
13099
13100 * xterm.c (x_underline_minimum_display_offset): New var.
13101 (x_draw_glyph_string): Use it.
13102 (syms_of_xterm): Declare it.
13103
13104 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13105
13106 * font.c (font_parse_fcname): Accept GTK-style font names too.
13107
13108 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13109
13110 * dired.c (file_name_completion): Don't return t if the match is exact
13111 but with different capitalization.
13112 * minibuf.c (Ftry_completion): Simplify.
13113
13114 * window.c (Vwindow_point_insertion_type): New var.
13115 (set_window_buffer): Use it.
13116 (syms_of_window): Init and export it to Lisp.
13117
13118 2008-06-10 Kenichi Handa <handa@m17n.org>
13119
13120 * font.h (font_intern_prop): Prototype adjusted.
13121
13122 * font.c (font_intern_prop): New arg force_symbol.
13123 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13124 Adjust for the change of font_intern_prop.
13125
13126 * ftfont.c (ftfont_pattern_entity):
13127 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13128 (w32_registry):
13129 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13130 the change of font_intern_prop.
13131
13132 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
13133
13134 * w32menu.c (digest_single_submenu): Declare extern.
13135
13136 2008-06-09 Jason Rumney <jasonr@gnu.org>
13137
13138 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13139
13140 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13141 (parse_single_submenu): Remove.
13142 (digest_single_submenu): Remove.
13143 (syms_of_w32menu): Don't initialise variables that have moved
13144 to menu.c.
13145 (set_frame_menubar): Sync with version in xmenu.c.
13146 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13147
13148 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13149 Make static again.
13150
13151 2008-06-09 Jason Rumney <jasonr@gnu.org>
13152
13153 Changes to w32 files related to the move of common menu code
13154 to menu.c on 2008-06-08 by Chong Yidong.
13155
13156 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13157 defs to w32gui.h.
13158 (single_keymap_panes, push_menu_item, push_menu_pane):
13159 Make globally visible.
13160
13161 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13162 (local_free, malloc_widget_value, free_widget_value)
13163 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13164 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13165 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13166 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13167 (menu_items, menu_items_allocated, menu_items_used)
13168 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13169 (init_menu_items, finish_menu_items, discard_menu_items)
13170 (grow_menu_items, push_submenu_start, push_submenu_end)
13171 (push_left_right_boundary, push_menu_pane, push_menu_item)
13172 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13173 (free_menubar_widget_tree_value, parse_single_submenu)
13174 (update_submenu_strings): Remove functions.
13175 (xmalloc_widget_value): Remove and declare extern.
13176
13177 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13178 (OBJ1): Build it.
13179
13180 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13181 (local_heap, local_alloc, local_free, malloc_widget_value)
13182 (free_widget_value): Define here.
13183
13184 2008-06-09 Kenichi Handa <handa@m17n.org>
13185
13186 * font.h (Qascii_0): Extern it.
13187
13188 * font.c (Qascii_0): New variable.
13189 (syms_of_font): DEFSYM it.
13190 (font_open_by_name): If the registry "iso8859-1" fails, try also
13191 "ascii-0".
13192
13193 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13194
13195 2008-06-08 Kenichi Handa <handa@m17n.org>
13196
13197 * .gdbinit (xfont): New command.
13198
13199 2008-06-08 Andreas Schwab <schwab@suse.de>
13200
13201 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13202 * Makefile.in (menu.o): Update dependencies.
13203
13204 * Makefile.in (obj): Always add menu.o.
13205 * emacs.c (main): Always call syms_of_menu.
13206 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13207
13208 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
13209
13210 * Makefile.in: Compile menu.c.
13211
13212 * lisp.h: Declare syms_of_menu.
13213
13214 * emacs.c (main): Call syms_of_menu.
13215
13216 * keyboard.h: Relocate platform-independent menu definitions from
13217 xmenu.c.
13218
13219 * menu.c: New file. Relocate platform-independent menu
13220 definitions from xmenu.c. Suggested by Adrian Robert.
13221
13222 * xmenu.c: Remove platform-independent menu definitions.
13223 (menu_items, menu_items_inuse, menu_items_allocated)
13224 (menu_items_used, menu_items_n_panes)
13225 (menu_items_submenu_depth): Move to keyboard.h.
13226 (init_menu_items, finish_menu_items, unuse_menu_items)
13227 (discard_menu_items, restore_menu_items, save_menu_items)
13228 (grow_menu_items, push_submenu_start, push_submenu_end)
13229 (push_left_right_boundary, push_menu_pane, push_menu_item)
13230 (keymap_panes, single_keymap_panes, single_menu_item)
13231 (list_of_panes, list_of_items, find_and_call_menu_selection)
13232 (xmalloc_widget_value, free_menubar_widget_value_tree)
13233 (parse_single_submenu, digest_single_submenu)
13234 (update_submenu_strings): Move to menu.c.
13235
13236 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13237
13238 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13239
13240 2008-06-06 Miles Bader <miles@gnu.org>
13241
13242 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13243 face, not frame default.
13244
13245 2008-06-05 Martin Rudalics <rudalics@gmx.at>
13246
13247 * window.c (pop_up_windows, pop_up_frames)
13248 (display_buffer_reuse_frames, Vpop_up_frame_function)
13249 (Vdisplay_buffer_function, Veven_window_heights)
13250 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13251 (Vspecial_display_function, Vsame_window_buffer_names)
13252 (Vsame_window_regexps, split_height_threshold)
13253 (Vsplit_window_preferred_function): Move those vars to window.el.
13254 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13255 (Fdisplay_buffer): Move those functions to window.el.
13256 (syms_of_window): Remove corresponding declarations.
13257 (display_buffer): New function.
13258 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13259 * dispnew.c (Flast_nonminibuf_frame): New function.
13260 * buffer.c (Fpop_to_buffer): Move to window.el.
13261
13262 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13263
13264 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13265
13266 2008-06-05 Kenichi Handa <handa@m17n.org>
13267
13268 * coding.c (detect_coding): Fix previous change.
13269 (detect_coding_system): Likewise.
13270
13271 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13272
13273 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13274
13275 * keymap.c (Vminibuffer_local_filename_must_match_map):
13276 Rename from Vminibuffer_local_must_match_filename_map.
13277 (syms_of_keymap):
13278 * minibuf.c (Fcompleting_read): Adjust accordingly.
13279 * commands.h: Rename declaration as well.
13280
13281 2008-06-05 Kenichi Handa <handa@m17n.org>
13282
13283 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13284 family name.
13285 (Ffont_put): Likewise.
13286
13287 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13288 current font-spec.
13289
13290 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13291 is unspecified.
13292
13293 * xfaces.c (realize_x_face): If the font-related face attributes
13294 are the same as those of default face, realize a new fontset from
13295 default->fontset.
13296 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13297
13298 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13299
13300 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13301 (move_it_in_display_line): New wrapper.
13302
13303 * window.c (window_scroll_pixel_based_preserve_x)
13304 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13305 (window_scroll_pixel_based, window_scroll_line_based):
13306 Use them to preserve column positions.
13307 (syms_of_window): Initialize them.
13308
13309 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13310 (HPOS . VPOS) pair.
13311
13312 * dispextern.h (move_it_in_display_line): Declare.
13313
13314 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
13315
13316 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13317 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13318 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13319
13320 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
13321
13322 * window.c (Fset_window_parameter): Doc fix.
13323 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13324
13325 2008-06-04 Joakim Verona <joakim@verona.se>
13326
13327 * window.h (struct window): Add new member window_parameters.
13328
13329 * window.c (Fwindow_parameters, Fwindow_parameter)
13330 (Fset_window_parameter): New defuns.
13331 (syms_of_window): Defsubr the new defuns.
13332 (make_window): Initialize window_parameters to nil.
13333
13334 2008-06-04 John Paul Wallington <jpw@pobox.com>
13335
13336 * eval.c (Fdefmacro): Doc fix.
13337
13338 2008-06-04 Kenichi Handa <handa@m17n.org>
13339
13340 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13341 Be sure to call setup_coding_system when we find a proper coding system.
13342 (detect_coding_system): Fix handling of coding->head_ascii.
13343
13344 2008-06-03 Andreas Schwab <schwab@suse.de>
13345
13346 * font.c (font_prop_validate_spacing): Fix last change.
13347
13348 2008-06-03 Kenichi Handa <handa@m17n.org>
13349
13350 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13351 (font_parse_fcname): Fix handling of unknown key.
13352
13353 * xfont.c (xfont_list): Try an alias.
13354
13355 * charset.c (char_charset): Return NULL if the arg charset_list is
13356 specified and C doesn't belong to any of them.
13357
13358 2008-06-02 Chip Coldwell <coldwell@redhat.com>
13359
13360 * font.c (font_pixel_size): Don't take cdr of an integer.
13361
13362 2008-06-02 Jim Meyering <meyering@redhat.com>
13363
13364 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13365 * alloc.c (xfree): Return right away for a NULL arg.
13366 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13367 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13368 * mac.c (create_apple_event_from_event_ref): Likewise.
13369 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13370 Likewise.
13371 * doprnt.c (doprnt1): Likewise.
13372 * frame.c (frame): Likewise.
13373 * keyboard.c (wipe_kboard): Likewise.
13374 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13375 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13376 * term.c (tty_default_color_capabilities, maybe_fatal)
13377 (delete_tty): Likewise.
13378 * w16select.c (string): Likewise.
13379 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13380 * w32bdf.c (w32_free_bdf_font): Likewise.
13381 * w32fns.c (w32_unload_font): Likewise.
13382 * w32font.c (w32font_close): Likewise.
13383 * window.c (size_window): Likewise.
13384 * xselect.c (receive_incremental_selection): Likewise.
13385 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13386 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13387 * w32.c (stat): Likewise.
13388
13389 Remove useless if-before-free tests.
13390 * editfns.c (Fset_time_zone_rule): Likewise.
13391 * lread.c (nosuffix): Likewise.
13392 * ralloc.c (get_bloc): Likewise.
13393 * regex.c (reg_free): Likewise.
13394 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13395 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13396 * xsmfns.c (smc_save_yourself_CB): Likewise.
13397
13398 2008-06-02 Kenichi Handa <handa@m17n.org>
13399
13400 * font.c (font_find_for_lface): Handle float font size.
13401 (font_open_for_lface): Likewise.
13402
13403 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13404 comparing the properties.
13405
13406 2008-06-01 Jason Rumney <jasonr@gnu.org>
13407
13408 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13409 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13410 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13411 Don't add empty script list.
13412 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13413
13414 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13415
13416 * Makefile.in (dot, dotdot): Remove, update users.
13417 ".." has been used elsewhere in the file for a long time.
13418 (LIBXT_STATIC): Remove conditional based on unused variable.
13419
13420 2008-06-01 Miles Bader <miles@gnu.org>
13421
13422 * xfaces.c (Vface_remapping_alist): New variable.
13423 (syms_of_xfaces): Initialize it.
13424 (enum named_merge_point_kind): New type.
13425 (struct named_merge_point): Add `named_merge_point_kind' field.
13426 (push_named_merge_point): Make cycle detection respect different
13427 named-merge-point kinds.
13428 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13429 Remove face-name alias resolution.
13430 (lface_from_face_name): New definition using
13431 `lface_from_face_name_no_resolve'.
13432 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13433 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13434 (get_lface_attributes): New definition that layers face-remapping on
13435 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13436 (lookup_basic_face): New function.
13437 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13438 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13439 `get_lface_attributes'.
13440 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13441 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13442 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13443
13444 * xdisp.c (init_iterator): Pass base_face_id through
13445 `lookup_basic_face' when we actually use it as a face-id.
13446 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13447 DEFAULT_FACE_ID.
13448
13449 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13450 lookup the initial face-id.
13451
13452 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13453
13454 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
13455
13456 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13457 (Fremove_text_properties): Fix typos in docstrings.
13458
13459 2008-05-31 Kenichi Handa <handa@m17n.org>
13460
13461 * font.c (font_list_entities): Fix the car part of data to be
13462 stored in the cache.
13463
13464 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13465
13466 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13467
13468 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13469 Add a `test' argument so another predicate than `equal' can be used.
13470 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13471 (map_char_table): Remove unused vars `c' and `i'.
13472 * lisp.h (Foptimize_char_table): Adjust declaration.
13473 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13474
13475 2008-05-30 Kenichi Handa <handa@m17n.org>
13476
13477 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13478 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13479 defined.
13480
13481 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13484 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13485 frame-local settings for the same variable.
13486
13487 2008-05-30 Kenichi Handa <handa@m17n.org>
13488
13489 * fontset.c (Ffont_info): Move to font.c.
13490 (syms_of_fontset): Delete defsubr of Sfont_info.
13491
13492 * font.c (font_style_to_value, font_score): Delete casting of the
13493 args to xstcasecmp.
13494 (register_font_driver): Increment num_font_drivers only when
13495 registering the driver globally.
13496 (Ffont_info): Move from fontset.c. Handle a font object too.
13497 (syms_of_font): Defsubr Sfont_info.
13498
13499 2008-05-29 Kenichi Handa <handa@m17n.org>
13500
13501 * coding.h (enum define_coding_utf8_arg_index): New enum.
13502 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13503 coding_attr_utf_bom.
13504 (enum utf_bom_type): Rename from utf_16_bom_type.
13505 (struct utf_16_spec): Adjust for the above change.
13506 (struct coding_system): Add utf_8_bom in `spec' union.
13507
13508 * coding.c (CODING_UTF_8_BOM): New macro.
13509 (enum coding_category): Delete coding_category_utf_8, add
13510 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13511 coding_category_utf_8_sig.
13512 (CATEGORY_MASK_UTF_8): Delete it.
13513 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13514 (CATEGORY_MASK_UTF_8_SIG): New macros.
13515 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13516 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13517 CATEGORY_MASK_UTF_8_SIG.
13518 (CATEGORY_MASK_UTF_8): New macro.
13519 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13520 (detect_coding_utf_8): Check BOM.
13521 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13522 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13523 (encode_coding_utf_16): Likewise.
13524 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13525 (detect_coding, detect_coding_system): Handle utf-8-auto.
13526 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13527 (syms_of_coding): Fix setting up of Vcoding_category_table.
13528
13529 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13530
13531 * process.c (Faccept_process_output): If `millisec' is non-nil,
13532 `seconds' default to 0.
13533 (wait_reading_process_output): Also return non-nil if we read output
13534 from a non-running process.
13535
13536 2008-05-29 Jason Rumney <jasonr@gnu.org>
13537
13538 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13539 `raster' specified.
13540 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13541 in the uniscribe backend, but disallow any font that has no
13542 unicode subrange support.
13543
13544 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
13545
13546 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13547 Fix typos in docstrings.
13548
13549 2008-05-29 Kenichi Handa <handa@m17n.org>
13550
13551 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13552 (Fx_family_fonts): Set frame correctly.
13553
13554 2008-05-28 Jason Rumney <jasonr@gnu.org>
13555
13556 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13557
13558 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13559
13560 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13561 calling build_annotations.
13562
13563 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
13564
13565 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13566 (Fencode_coding_string):
13567 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13568 <latin-extra-code-table>: Fix typos in docstrings.
13569 (syms_of_coding) <coding-system-alist>: Doc fix.
13570 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13571
13572 2008-05-28 Kenichi Handa <handa@m17n.org>
13573
13574 * fontset.c (Ffont_info): Don't call font_close_object.
13575
13576 * font.c (font_parse_family_registry): Use Ffont_put to validate
13577 foundry and family.
13578 (font_delete_unmatched): Don't check spacing.
13579 (font_list_entities): Add spacing to the spec to list fonts.
13580
13581 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13582 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13583
13584 * coding.c (encode_coding_raw_text): Fix previous change.
13585 (encode_coding_object): When the dst_object is a buffer and is
13586 different from src_object, move gap to PT.
13587
13588 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13589
13590 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13591
13592 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13593
13594 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13595 all branches. Compute it differently.
13596
13597 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13598
13599 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
13600
13601 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13602 into "else if () ... else ...".
13603
13604 2008-05-27 Jason Rumney <jasonr@gnu.org>
13605
13606 * w32font.c (w32font_open_internal): Determine if glyph indices
13607 are likely to work here.
13608
13609 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13610
13611 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13612 draw overlap glyphs with appropriate highlighting.
13613
13614 2008-05-27 Kenichi Handa <handa@m17n.org>
13615
13616 * xfont.c (xfont_open): Fix calculation of font->average_width.
13617
13618 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13619
13620 * casefiddle.c (casify_object): Try to guess better whether the
13621 argument is a byte or a char.
13622
13623 2008-05-26 Andreas Schwab <schwab@suse.de>
13624
13625 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13626 Always send multiples of format size.
13627
13628 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13629
13630 2008-05-26 Jason Rumney <jasonr@gnu.org>
13631
13632 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13633 (compute_metrics): Don't set failure if we just cleared the cache.
13634 (w32_weight_table): Remove unused variable.
13635 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13636 backwards compatibility.
13637
13638 2008-05-25 Kenichi Handa <handa@m17n.org>
13639
13640 * w32term.c (x_draw_glyph_string):
13641 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13642
13643 * xfaces.c: Delete unused function prototypes.
13644 (xstrlwr, font_frame): Delete them.
13645 (clear_face_cache): Delete unused variable.
13646
13647 * xftfont.c (xftfont_open): Delete unused variable.
13648 If underline_thickness is not 1, adjust underline_position.
13649
13650 * ftxfont.c (ftxfont_open): Delete unused variable.
13651
13652 * fontset.c (face_for_char): Optimize for the case of no charset
13653 property.
13654
13655 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13656 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13657 (otf_open, font_otf_capability, generate_otf_features)
13658 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13659 Comment out by surrounding "#if 0" and "#endif" for the moment.
13660 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13661 (syms_of_font): Codes for accessing above commented out.
13662
13663 2008-05-24 Eli Zaretskii <eliz@gnu.org>
13664
13665 * w32proc.c: Include dispextern.h.
13666
13667 * w32.c: Include dispextern.h.
13668
13669 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
13670
13671 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13672 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13673 Fix typos in docstrings.
13674
13675 2008-05-23 Jason Rumney <jasonr@gnu.org>
13676
13677 * xsmfns.c: Remove includes that are already included by config.h.
13678
13679 2008-05-23 Kenichi Handa <handa@m17n.org>
13680
13681 * charset.c (Qemacs, charset_emacs): New variables.
13682 (char_charset): Fix for non-Unicode characters.
13683 (syms_of_charset): Define charset_emacs.
13684
13685 * w32term.c (x_draw_glyph_string): Be sure to update
13686 s->underline_thickness and s->underline_position. Be sure to draw
13687 underline within the current line area.
13688
13689 * xterm.c (x_draw_glyph_string): Be sure to update
13690 s->underline_thickness and s->underline_position. Be sure to draw
13691 underline within the current line area.
13692
13693 * fontset.c: Delete unused variables and add casting for char *
13694 throughout the file.
13695 (fontset_font): Try the fallback fonts of the current fontset
13696 before consulting the default fontset.
13697
13698 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13699
13700 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13701
13702 2008-05-22 Jason Rumney <jasonr@gnu.org>
13703
13704 * font.c: Don't include strings.h.
13705
13706 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13707
13708 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13709 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13710 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13711 to call xstrcasecmp.
13712
13713 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13714
13715 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13716
13717 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13718
13719 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13720
13721 2008-05-22 Kenichi Handa <handa@m17n.org>
13722
13723 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13724
13725 * font.c (font_prop_validate_style): Adjust for the format
13726 change of font_style_table.
13727
13728 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13729 two args.
13730
13731 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13732 two args.
13733
13734 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13735
13736 * minibuf.c (keys_of_minibuf): Delete.
13737 * lisp.h (keys_of_minibuf): Delete.
13738 * emacs.c (main): Don't call keys_of_minibuf.
13739
13740 2008-05-22 Kenichi Handa <handa@m17n.org>
13741
13742 * ftfont.c (ftfont_resolve_generic_family): Rename from
13743 ftfont_list_generic_family. Return a single family for each
13744 generic family.
13745 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13746 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13747 Call font_add_log.
13748 (ftfont_match): Call font_add_log.
13749
13750 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13751 (FONT_DEBUG): Define it.
13752 (font_add_log): Extern it.
13753 (font_assert): Rename from xassert.
13754
13755 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13756 (xfont_list_family): Call font_add_log.
13757 (xfont_match): Likewise.
13758 (memq_no_quit): Delete.
13759
13760 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13761 call of Ffont_xlfd_name.
13762
13763 * xfaces.c (struct table_entry, slant_table, weight_table)
13764 (swidth_table): Move to font.c.
13765
13766 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13767 xassert are changed to font_assert. Delete many unused variables.
13768 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13769 New variables.
13770 (struct table_entry): Move from xfaces.c and modified.
13771 (weight_table, slant_table, width_table): Move from xfaces.c and
13772 contents adjusted for the change of struct table_entry.
13773 (font_style_to_value, font_style_symbolic): Adjust for the
13774 format change of font_style_table.
13775 (font_parse_family_registry): Don't overwrite existing foundry and
13776 family of font_spec.
13777 (font_score): Fix calculation of diff for sizes.
13778 (font_sort_entites): Call font_add_log.
13779 (font_delete_unmatched): Return a newly created list.
13780 (font_list_entities): Fix previous change. Call font_add_log.
13781 (font_matching_entity, font_open_entity, font_close_entity):
13782 Call font_add_log.
13783 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13784 (Finternal_set_font_style_table): Delete.
13785 (BUILD_STYLE_TABLE): New macro.
13786 (build_style_table): New function.
13787 (Vfont_log, font_log_env_checked): New variables.
13788 (font_add_log): New function.
13789 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13790 Declare Lisp variables "font-weight-table", "font-slant-table",
13791 "font-width-table", and "font-log". Initialize font_style_table.
13792
13793 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13794
13795 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13796
13797 2008-05-21 Seiji Zenitani <zenitani@mac.com>
13798 Ryo Yoshitake <ryo@shiftmode.net>
13799
13800 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13801 (Vframe_alpha_lower_limit): New variable.
13802 (x_set_alpha): New function.
13803
13804 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13805
13806 * xfns.c (x-create-frame, Qalpha):
13807 Initialize the frame parameter `alpha'.
13808 * xterm.c (OPAQUE, OPACITY): New.
13809 (x_set_frame_alpha): New function.
13810 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13811
13812 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13813 * w32fns.c (w32_frame_parm_handlers): Likewise.
13814
13815 2008-05-20 Jason Rumney <jasonr@gnu.org>
13816
13817 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13818 truetype fonts to opentype list.
13819
13820 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
13821
13822 * fontset.c (Ffontset_info): Doc fix.
13823 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13824 <ignore-relative-composition>: Fix typos in docstrings.
13825
13826 * font.c (syms-of-font) <font-encoding-alist>:
13827 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13828 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13829 (Ffont_otf_alternates): Doc fixes.
13830
13831 2008-05-20 Kenichi Handa <handa@m17n.org>
13832
13833 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13834 font.h through out the file.
13835 (FONT_DRIVERS): Rename from FONTOBJ.
13836 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13837 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13838
13839 * emacs.c (main): Call syms_of_font unconditionally.
13840
13841 * font.h (find_font_encoding): Extern it.
13842
13843 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13844 fontset.c.
13845 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
13846 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13847 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13848 only when HAVE_WINDOW_SYSTEM is defined.
13849 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13850 when HAVE_WINDOW_SYSTEM is defined.
13851
13852 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13853 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13854
13855 * xfaces.c: Include font.h unconditionally.
13856 (merge_face_ref, merge_face_vectors)
13857 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13858
13859 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13860
13861 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13862 indirect_variable.
13863 * eval.c (lisp_indirect_variable): New fun.
13864 (Fuser_variable_p): Use it.
13865
13866 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13867
13868 * lisp.h (indirect_variable):
13869 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13870 Use Lisp_Symbol pointers rather than Lisp_Object.
13871 Adjust callers.
13872 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13873 To this end, change calling-convention.
13874
13875 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13876 if some non-hidden buffers are selected by string&pred.
13877
13878 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
13879
13880 * process.c (wait_reading_process_output): Always check status
13881 when in batch mode.
13882
13883 2008-05-19 Kenichi Handa <handa@m17n.org>
13884
13885 * font.c (font_list_entities): Fix handling of cache.
13886 (font_matching_entity): Likewise.
13887
13888 * ftfont.c (cs_iso8859_1): Delete.
13889 (ft_face_cache): New variable.
13890 (struct ftfont_info): New member fc_charset_idx.
13891 (ftfont_build_basic_charsets): Delete.
13892 (fc_charset_table): New variable.
13893 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13894 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13895 Callers changed.
13896 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13897 (ftfont_spec_pattern): New argument fc_charset_idx.
13898 Check registry more rigidly. Change callers.
13899 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13900 change of :font-entity property of the font.
13901
13902 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13903 property of the font.
13904
13905 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
13906
13907 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13908 (Funencodable_char_position, Fcheck_coding_systems_region)
13909 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13910 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13911 (Ffind_operation_coding_system, Fset_coding_system_priority)
13912 (Fcoding_system_eol_type): Doc fixes.
13913
13914 2008-05-17 Glenn Morris <rgm@gnu.org>
13915
13916 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13917
13918 2008-05-16 Eli Zaretskii <eliz@gnu.org>
13919
13920 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13921 and st_gid.
13922
13923 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13924 HAVE_WINDOW_SYSTEM is not defined.
13925
13926 * xfaces.c (merge_face_ref, merge_face_vectors)
13927 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13928 HAVE_WINDOW_SYSTEM is defined.
13929 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13930
13931 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13932
13933 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13934
13935 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13936
13937 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13938
13939 2008-05-15 Kenichi Handa <handa@m17n.org>
13940
13941 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13942 preference.
13943
13944 2008-05-15 Glenn Morris <rgm@gnu.org>
13945
13946 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13947
13948 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
13949
13950 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13951 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13952
13953 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13954
13955 2008-05-15 Kenichi Handa <handa@m17n.org>
13956
13957 * ftfont.c (ftfont_list): Downcase family name to check generic
13958 families.
13959
13960 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13961 font-spec for QCfont value.
13962
13963 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13964 buffer. Check the return value of it.
13965
13966 2008-05-14 Jason Rumney <jasonr@gnu.org>
13967
13968 * w32term.c (w32_get_glyph_overhangs): Remove.
13969 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13970
13971 2008-05-14 Kenichi Handa <handa@m17n.org>
13972
13973 * font.c (font_prop_validate): Make nil a valid value.
13974 (font_clear_cache): Check if the cached vector of entities is nil
13975 or not.
13976
13977 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13978
13979 * emacs.c (main_thread): Conditionalize on
13980 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13981 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13982
13983 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13984 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13985 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13986
13987 2008-05-14 Kenichi Handa <handa@m17n.org>
13988
13989 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13990 has no corresponding coding system.
13991
13992 2008-05-14 Jason Rumney <jasonr@gnu.org>
13993
13994 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13995
13996 * w32font.h (w32font_open_internal): Update declaration.
13997
13998 * w32font.c (w32font_open_internal): Change last argument from
13999 w32font_info struct to font object. Fill in font object from
14000 font_entity. Get Outline metrics if possible. Use them to
14001 calculate underline position and thickness. Use xlfd name as name
14002 property. Don't set codepage.
14003 (w32font_open): Pass font_object to w32font_open_internal. Don't
14004 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14005 (w32font_draw): Use s->font.
14006 (clear_cached_metrics): Don't clear non-existent blocks.
14007
14008 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14009 font was not found.
14010 (x_draw_glyph_string): Use underline position and thickness from font.
14011
14012 * w32uniscribe.c (uniscribe_open): Pass font_object to
14013 w32font_open_internal.
14014
14015 2008-05-14 Kenichi Handa <handa@m17n.org>
14016
14017 These changes are to delete all legacy font-handling codes, and
14018 make Emacs use only font-backends.
14019
14020 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14021 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14022
14023 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14024
14025 * charset.h (Vcharset_non_preferred_head)
14026 (Vcurrent_iso639_language): Extern them.
14027
14028 * charset.c (Vcharset_non_preferred_head): New variable.
14029 (Vcurrent_iso639_language): New variable.
14030 (syms_of_charset): Declare it as a Lisp variable.
14031 (char_charset): Don't check non preferred charsets. As a last
14032 resort, return charset_unicode.
14033 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14034
14035 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14036 conditionals. Don't check enable_font_backend. Delete all codes
14037 used only when USE_FONT_BACKEND is not defined.
14038
14039 * dispextern.h (struct glyph_string): Change type of `font' to
14040 `struct font *'.
14041 (struct glyph_string): New member underline_position and
14042 underline_thickness.
14043 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14044 (struct face): Change type of `font' to `struct font *'. Remove
14045 members `font_name', `font_info_id'.
14046 (per_char_metric, encode_char): Delete externs.
14047 (calc_pixel_width_or_height): Adjust the prototype.
14048
14049 * emacs.c (enable_font_backend): Delete extern.
14050 (main): Don't set enable_font_backend. Don't check the command
14051 line argument "-disable-font-backend".
14052
14053 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14054 (enum font_property_index): New members FONT_DPI_INDEX,
14055 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14056 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14057 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14058 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14059 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14060 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14061 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14062 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14063 (struct font_spec, struct font_entity): New structs.
14064 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14065 (struct font): Many members from old "struct font_info" moved to
14066 here. Members font and entity deleted.
14067 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14068 the new font-related objects.
14069 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14070 (CHECK_FONT_GET_OBJECT): Likewise.
14071 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14072 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14073 (struct font_driver): New members case_sensitive anc check. Type
14074 of the member list and open changed.
14075 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14076 (font_symbolic_width, font_find_object, font_get_spec)
14077 (font_set_lface_from_name): Delete extern.
14078 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14079
14080 * font.c: Include <strings.h>.
14081 (enable_font_backend): Delete it.
14082 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14083 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14084 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14085 (null_string): Delete it.
14086 (null_vector): Make it static.
14087 (font_family_alist): Delete it.
14088 (Qnormal): Extern it.
14089 (QCextra, QClanguage): Delete it.
14090 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14091 (font_make_spec, font_make_entity, font_make_object)
14092 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14093 the string. Callers changed.
14094 (font_pixel_size): Adjusted for the format change of font-related
14095 objects.
14096 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14097 (font_style_to_value, font_style_symbolic): New function.
14098 (build_font_family_alist): Delete it.
14099 (font_registry_charsets): Use Fassoc_string instead of
14100 assq_no_quit.
14101 (font_prop_validate_symbol): Don't return null_string.
14102 (font_prop_validate_style): Adjusted for the change of
14103 style-related values in a font vector.
14104 (font_property_table): Delete entries for QClanguage and
14105 QCantialias, add entries for QCavgwidth.
14106 (get_font_prop_index): Delete the 2nd argument FROM.
14107 (font_prop_validate): Arguments changed.
14108 (font_put_extra): Adjusted for the change of font-related objects.
14109 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14110 (font_parse_fcname, font_unparse_fcname)
14111 (font_prepare_composition): Likewise.
14112 (font_parse_family_registry): Renamed from font_merge_old_spec.
14113 (otf_open): Delete the 1st arg entity.
14114 (font_otf_capability): Adjusted for the above change.
14115 (font_score): New arg alternate_families. Adjusted for the change
14116 of font-related objects.
14117 (font_sort_entites): New arg best_only.
14118 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14119 Delete them.
14120 (font_match_p): Check alternate families.
14121 (font_find_object): Delete it.
14122 (font_check_object): New function.
14123 (font_clear_cache): Adjusted for the change of font-related objects.
14124 (font_delete_unmatched): New arg.
14125 (font_list_entities): Call font_driver->list with a spec that
14126 doesn't specify style-related properties.
14127 (font_matching_entity): Arguments changed. Caller changed.
14128 (font_open_entity): Adjusted for the change of font-related objects.
14129 (font_close_object, font_has_char, font_encode_char)
14130 (font_get_name, font_get_spec): Likewise.
14131 (font_spec_from_name, font_clear_prop, font_update_lface):
14132 New functions.
14133 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14134 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14135 (font_at): Adjusted for the change of font-related objects.
14136 (font_range): New function.
14137 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14138 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14139 (Fcopy_font_spec, Fmerge_font_spec): New function.
14140 (Ffont_family_list): Renamed from list-families.
14141 (Finternal_set_font_style_table): Arguments changed.
14142 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14143 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14144 change of font-related objects.
14145 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14146
14147 * fontset.h (struct font_info): Delete it. Most members go to
14148 struct font.
14149 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14150 (enum FONT_SPEC_INDEX): Delete it.
14151 (font_info, list_fonts_func, load_font_func, query_font_func)
14152 (set_frame_fontset_func, find_ccl_program_func)
14153 (get_font_repertory_func, new_fontset_from_font_name): Delete
14154 externs.
14155 (fontset_from_font_name): Extern it.
14156 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14157 (FONT_INFO_FROM_FACE): Deleted.
14158 (face_for_font): Adjust prototype.
14159
14160 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14161 conditionals. Don't check enable_font_backend. Delete all codes
14162 used only when USE_FONT_BACKEND is not defined.
14163 (get_font_info_func, list_font_func, load_font_func)
14164 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14165 (get_font_repertory_func): Delete them.
14166 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14167 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14168 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14169 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14170 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14171 (fontset_compare_rfontdef): New function.
14172 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14173 rfont-defs by qsort. Adjusted for the change of font-group vector.
14174 (load_font_get_repertory): Deleted.
14175 (fontset_find_font): Use new macros to ref/set elements of
14176 font-def and rfont-def.
14177 (fontset_font): Fix the timing of remembering that no font for C.
14178 (free_face_fontset): Do nothing if the face has no fontset.
14179 (face_suitable_for_char_p): Use new macros to ref/set elements of
14180 rfont-def.
14181 (face_for_char): Likewise. Call face_for_char with font_object.
14182 (fs_load_font): Delete. Delete #pragma surrounding it.
14183 (fs_query_fontset): Use strcasecmp instead of strcmp.
14184 (generate_ascii_font_name): Adjusted for the format change of
14185 font-spec.
14186 (Fset_fontset_font): Likewise. Use new macros to set elements of
14187 font-def.
14188 (Fnew_fontset): Use font_unparse_xlfd to generate
14189 FONTSET_ASCII (fontset).
14190 (new_fontset_from_font_name): Deleted.
14191 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14192 a fontset is already created for the font. FIx updating of
14193 Vfontset_alias_alist.
14194 (fontset_ascii_font): Deleted.
14195 (Ffont_info): Adjusted for the format change of font-spec.
14196 (Finternal_char_font): Likewise.
14197 (Ffontset_info): Likewise.
14198 (syms_of_fontset): Don't check load_font_func.
14199
14200 * fns.c (internal_equal): Handle PREV_FONT.
14201
14202 * frame.h: Delete USE_FONT_BACKEND conditional.
14203
14204 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14205 conditionals. Don't check enable_font_backend. Delete all codes
14206 used only when USE_FONT_BACKEND is not defined.
14207 (x_set_font): Call x_new_font, not x_new_fontset2.
14208 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14209 already set for the frame.
14210
14211 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14212 a font-entity by font_make_entity. Use font_intern_prop instead
14213 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14214 font property. If a font is scalable, set avgwidth property to 0.
14215 Set font-entity property by font_put_extra.
14216 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14217 (ffont_driver): Adjusted for the change of struct font_driver.
14218 (ftfont_spec_pattern): New function.
14219 (ftfont_list): Return a list, not vector.
14220 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14221 (ftfont_list_family): Don't downcase names.
14222 (ftfont_free_entity): Deleted.
14223 (ftfont_open): Return a font-object. Adjusted for the change of
14224 struct font. Get underline_thickness and underline_position from
14225 font property. Don't update dpyinfo->smallest_font_height and
14226 dpyinfo->smallest_char_width.
14227 (ftfont_close): Don't free `struct font'.
14228 (ftfont_has_char): Adjusted for the format change of font-entity.
14229 (ftfont_encode_char, ftfont_text_extents): Likewise.
14230
14231 * ftxfont.c (ftxfont_list): Return a list, not vector.
14232 (ftxfont_open): Return a font-object. Adjusted for the change of
14233 struct font. Get underline_thickness and underline_position from
14234 font property. Don't update dpyinfo->smallest_font_height and
14235 dpyinfo->smallest_char_width.
14236 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14237 (ftxfont_draw): Adjusted for the change of struct font.
14238
14239 * image.c (image_ascent): Don't include "charset.h". Include
14240 "character.h" and "font.h".
14241
14242 * lisp.h (enum pvec_type): New member PREV_FONT.
14243 (Fassoc_string): EXFUN it.
14244
14245 * print.c: Include font.h.
14246 (print_object): Handle font-related objects.
14247
14248 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14249 conditionals. Don't check enable_font_backend. Delete all codes
14250 used only when USE_FONT_BACKEND is not defined.
14251 (handle_auto_composed_prop): Do nothing if it->f is not on a
14252 window system. Check how many following characters can be
14253 displayed by the same font.
14254 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14255 'struct font *'.
14256 (get_char_face_and_encoding): Assign the whole encoding task to
14257 the `encode-char' method of a font driver.
14258 (fill_composite_glyph_string): Adjusted for the change of `struct
14259 face' and `struct glyph_string'.
14260 (fill_glyph_string): Likewise.
14261 (get_per_char_metric): Arguments changed.
14262 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14263 and `struct glyph_string'.
14264 (produce_stretch_glyph, calc_line_height_property)
14265 (x_produce_glyphs): Likewise.
14266
14267 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14268 conditionals. Don't check enable_font_backend. Delete all codes
14269 used only when USE_FONT_BACKEND is not defined. Use
14270 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14271 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14272 (Qp): Extern them.
14273 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14274 Deleted.
14275 (struct font_name): Deleted.
14276 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14277 (compare_fonts_by_sort_order): New function.
14278 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14279 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14280 Deleted.
14281 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14282 compare_fonts_by_sort_order.
14283 (Fx_font_family_list): Call Ffont_family_list.
14284 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14285 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14286 (face_symbolic_slant, face_symbolic_swidth)
14287 (split_font_name_into_vector, build_font_name_from_vector)
14288 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14289 (font_rescale_ratio, split_font_name, build_font_name)
14290 (free_font_names, sort_fonts, x_face_list_fonts)
14291 (face_font_available_p, sorted_font_list, cmp_font_names)
14292 (font_list_1, concat_font_list, font_list, remove_duplicates):
14293 Deleted.
14294 (Fx_list_fonts): Use Ffont_list.
14295 (LFACE_AVGWIDTH): Deleted.
14296 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14297 by FONTP.
14298 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14299 (set_lface_from_font_name): Delete it.
14300 (set_lface_from_font): Renamed from
14301 set_lface_from_font_and_fontset. Caller changed. Don't set
14302 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14303 for face.
14304 (merge_face_vectors): Copy font-spec if necessary.
14305 Clear properties of the font-spec if necessary.
14306 (merge_face_ref): Clear properties of the font-spec if necessary.
14307 (Finternal_set_lisp_face_attribute): Likewise.
14308 (set_font_frame_param): Use font_load_for_lface to load a
14309 font-object, and call Fmodify_frame_parameters with it.
14310 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14311 font name by Ffont_xlfd_name.
14312 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14313 QCslant, and QCwidth.
14314 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14315 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14316 Compare fonts by EQ.
14317 (lookup_non_ascii_face): Deleted.
14318 (face_for_font): The 2nd argument changed.
14319 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14320 Check atomic font properties by case insensitive.
14321 (realize_non_ascii_face): Set face->overstrike correctly.
14322 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14323 (dump_realized_face): Get font name from
14324 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14325
14326 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14327 conditionals. Don't check enable_font_backend. Delete all codes
14328 used only when USE_FONT_BACKEND is not defined.
14329 (xic_create_xfontset): Original code deleted and renamed from
14330 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14331 (x_make_gc): Don't set GCFont in GCs.
14332 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14333 opened by "fixed".
14334 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14335 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14336 get_font_repertory_func.
14337
14338 * xfont.c: Include <stdlib.h> and "ccl.h".
14339 (struct xfont_info): New structure.
14340 (xfont_query_font): Deleted.
14341 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14342 moved from xterm.c.
14343 (xfont_driver): Adjusted for the change of struct font_driver.
14344 (compare_font_names): New function.
14345 (xfont_list_pattern): Sort font names case insensitively. Make
14346 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14347 (xfont_list): Return a list, not vector.
14348 (xfont_match): If the font doesn't have QCname property, generate
14349 a name from the other font properties.
14350 (xfont_open): Return a font-object. Adjusted for the change of
14351 struct font. Get underline_thickness and underline_position from
14352 font property. Don't update dpyinfo->smallest_font_height and
14353 dpyinfo->smallest_char_width.
14354 (xfont_close): Don't free struct font.
14355 (xfont_prepare_face): Adjusted for the change of struct font.
14356 (xfont_done_face): Deleted.
14357 (xfont_has_char): Adjusted for the change of struct font.
14358 (xfont_encode_char, xfont_draw): Likewise.
14359 (xfont_check): New function.
14360
14361 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14362 callback function.
14363 (xftfont_match): Adjusted for the format change of font-entity.
14364 (xftfont_open): Adjusted for the format change of font-entity and
14365 font-object. Adjusted for the change of struct font. Return a
14366 font-object. Don't update dpyinfo->smallest_font_height and
14367 dpyinfo->smallest_char_width.
14368 (xftfont_close): Block input while calling XftFontClose.
14369 (xftfont_prepare_face): Don't block input while calling
14370 xftfont_get_colors. Adjusted for the change of struct font.
14371 (xftfont_shape): Return value of error case fixed.
14372
14373 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14374
14375 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14376 conditionals.
14377 (FONT_WIDTH): Return (f)->max_width.
14378 (struct x_display_info): Delete member `font'.
14379 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14380 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14381 (struct x_output): Change type of `font' to `struct font *'.
14382
14383 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14384 conditionals. Don't check enable_font_backend. Delete all codes
14385 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14386 (x_per_char_metric, x_encode_char): Deleted.
14387 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14388 (x_compute_glyph_string_overhangs): Adjusted for the change of
14389 `struct face'.
14390 (x_draw_glyph_string_foreground)
14391 (x_draw_composite_glyph_string_foreground): Likewise.
14392 (x_draw_glyph_string): Likewise. Use font->underline_position and
14393 font->underline_thickness.
14394 (x_new_font): Renamed from x_new_fontset2.
14395 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14396 (x_check_font): Call `check' method of a font driver.
14397 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14398 (x_query_font, x_get_font_repertory): Deleted.
14399 (x_find_ccl_program): Renamed and moved to xfont.c.
14400 (x_redisplay_interface): Adjusted for the change of `struct
14401 redisplay_interface'.
14402
14403 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14404 conditionals. Don't check enable_font_backend. Delete all codes
14405 used only when USE_FONT_BACKEND is not defined. Surround non-used
14406 code by "#ifdef OLD_FONT" and "endif".
14407 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14408
14409 * w32font.h (struct w32font_info): New member.
14410 (FONT_COMPAT): New macro.
14411 (w32font_open_internal): Prototype adjusted.
14412
14413 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14414 OLD_FONT" and "endif".
14415
14416 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14417 conditionals. Don't check enable_font_backend. Delete all codes
14418 used only when USE_FONT_BACKEND is not defined.
14419 (w32font_open): Return a font-object. Make a font-object by
14420 font_make_object. Adjusted for the change of struct w32font_info.
14421 (w32font_close): Don't free struct font. Adjusted for the change
14422 of struct w32font_info.
14423 (w32font_encode_char, w32font_text_extents, w32font_draw):
14424 Adjusted for the change of struct w32font_info.
14425 (w32font_draw): Likewise.
14426 (w32font_list_internal): Return a list, not vector.
14427 (w32font_open_internal): Change the 4th arg to font-object.
14428 Adjusted for the change of struct w32font_info and font-object format.
14429 (add_font_name_to_list): Don't downcase names.
14430 (w32_enumfont_pattern_entity): Make a font-entity by
14431 font_make_entity. Adjusted for the format change of font-entity.
14432 Use FONT_SET_STYLE to set a style-related font property. If a
14433 font is scalable, set avgwidth property to 0. Set font-entity
14434 property by font_put_extra.
14435 (font_matches_spec): Adjusted for the format change of font-entity.
14436 (w32_weight_table, w32_decode_weight): New variables.
14437 (w32_encode_weight): New function.
14438 (fill_in_logfont): Adjusted for the format change of font-spec.
14439 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14440 weight value.
14441 (w32font_driver): Adjusted for the change of struct font_driver.
14442
14443 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14444 conditionals. Don't check enable_font_backend. Surround non-used
14445 code by "#ifdef OLD_FONT" and "endif".
14446 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14447 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14448
14449 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14450 conditionals. Don't check enable_font_backend. Delete all codes
14451 used only when USE_FONT_BACKEND is not defined. Surround non-used
14452 code by "#ifdef OLD_FONT" and "endif".
14453
14454 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14455 (uniscribe_open): Return value changed to font-object.
14456 Adjusted for the format change of font-object.
14457 (uniscribe_otf_capability): Adjusted for the change of struct font.
14458 (add_opentype_font_name_to_list): Don't downcase names.
14459 (uniscribe_font_driver): Adjusted for the change of struct
14460 font_driver.
14461
14462 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
14463
14464 * dispnew.c (update_frame_1): Check if tty output is still valid
14465 before flushing it.
14466
14467 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14468
14469 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14470 to Gtk+ menus.
14471
14472 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14473
14474 * dired.c (file_name_completion): Tweak the code so as to always do it
14475 in a single pass. Tighten the scope of some variables.
14476
14477 * dired.c (Qdefault_directory): New var.
14478 (file_name_completion): Use it instead of Fexpand_file_name.
14479 (syms_of_dired): Initialize it.
14480
14481 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14482
14483 * fileio.c (double_dollars): Remove dead code.
14484
14485 2008-05-10 Eli Zaretskii <eliz@gnu.org>
14486
14487 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14488 Mention w32-get-true-file-attributes in doc string.
14489
14490 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14491
14492 2008-05-09 Glenn Morris <rgm@gnu.org>
14493
14494 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14495 2008-04-23.
14496
14497 2008-05-09 Eli Zaretskii <eliz@gnu.org>
14498
14499 Support for reporting owner and group of each file on MS-Windows:
14500 * dired.c (stat_uname, stat_gname): New functions, with special
14501 implementation for w32.
14502 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14503
14504 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14505 (dflt_group_name): New static variable.
14506 (dflt_group): Rename from the_group.
14507 (init_user_info): Init dflt_group fields. Get user's group name
14508 from LookupAccountSid.
14509 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14510 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14511 New initialization states.
14512 (globals_of_w32): Initialize them to zero. Initialize the default
14513 group name to "None".
14514 (GetFileSecurity_Name): New global var, the name of the function
14515 to call for GetFileSecurity.
14516 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14517 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14518 (get_file_security, get_security_descriptor_owner)
14519 (get_security_descriptor_group, is_valid_sid)
14520 (get_file_security_desc, get_rid, get_name_and_id)
14521 (get_file_owner_and_group): New functions.
14522 (stat): Use get_file_security_desc and get_file_owner_and_group to
14523 report the owner and primary group of each file. Don't ignore the
14524 high 32 bits of file's size, now that st_size is 64-bit wide.
14525 Fix test when to get true file attributes.
14526 (init_user_info): Use get_rid instead of equivalent inline code.
14527 (fstat): Don't ignore the high 32 bits of file's size.
14528
14529 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
14530
14531 * image.c (png_load): Use correct bit-depth for setting background
14532 color.
14533
14534 2008-05-08 Eli Zaretskii <eliz@gnu.org>
14535
14536 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14537 epa-hook.elc.
14538
14539 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
14540
14541 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14542
14543 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14544
14545 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14546 because the original parameters are in pure storage now.
14547 (mac_window): Remove unused params. Update callers.
14548
14549 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14550
14551 * lread.c (substitute_object_recurse): Use lower-level primitives.
14552 Don't signal errors when traversing sub-char-tables.
14553 Don't loop over all the possible characters when traversing char-tables.
14554
14555 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14556 just like we do in print.c.
14557
14558 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14559
14560 * minibuf.c (Ftry_completion): Remove code left over from when we used
14561 scmp instead of Fcompare_strings.
14562
14563 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
14564
14565 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14566
14567 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14568
14569 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14570 Create bitmap context in native byte order.
14571
14572 * macterm.c (XDrawLine)
14573 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14574 context in native byte order.
14575
14576 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14577
14578 * config.in: Regenerate.
14579
14580 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14581 New definitions for Image I/O support.
14582 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14583 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14584 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14585 (mac_data_provider_release_data, image_load_image_io)
14586 [USE_MAC_IMAGE_IO]: New functions.
14587 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14588 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14589 (init_image_func_pointer) [MAC_OSX]: Remove function.
14590 (image_load_quartz2d) [MAC_OSX]: Check availability of
14591 CGImageCreateWithPNGDataProvider at compile time.
14592 Use lowercase `false' for boolean constant.
14593 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14594 Use image_load_image_io.
14595 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14596 Don't check MyCGImageCreateWithPNGDataProvider.
14597 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14598 Don't call init_image_func_pointer.
14599
14600 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14601
14602 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14603 Make variable non-static.
14604 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14605 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14606
14607 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14608 (RED_FROM_ULONG): Mask off higher bits.
14609 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14610
14611 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14612 Include AvailabilityMacros.h.
14613 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14614 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14615
14616 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14617
14618 * chartab.c (Fset_char_table_range): If range is t, really set all
14619 chars to that value.
14620
14621 2008-05-03 Eli Zaretskii <eliz@gnu.org>
14622
14623 * dired.c (Ffile_attributes): Don't allow the device number become
14624 negative.
14625
14626 2008-05-02 Daiki Ueno <ueno@unixuser.org>
14627
14628 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14629
14630 2008-05-02 Juri Linkov <juri@jurta.org>
14631
14632 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14633 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14634 DEFAULT argument as a list of default values in docstrings.
14635
14636 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
14637
14638 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14639
14640 2008-05-01 Martin Rudalics <rudalics@gmx.at>
14641
14642 * dispnew.c (change_frame_size_1): Preserve small windows when
14643 shrinking frames by calling set_window_height|width with third
14644 arg 2.
14645
14646 * window.h (struct window): Replace field too_small_ok by field
14647 resize_proportionally.
14648
14649 * window.c (make_window): Initialize resize_proportionally.
14650 (enlarge_window): Temporarily set resize_proportionally to make
14651 sure that shrink_windows does scale the window proportionally.
14652 (shrink_windows): When window has resize_proportionally set try
14653 to shrink it proportionally by stealing from other windows.
14654 (struct saved_window, Fset_window_configuration)
14655 (compare_window_configurations): Handle resize_proportionally.
14656 (WINDOW_TOTAL_SIZE): New macro.
14657 (window_min_size, shrink_windows, size_window): Use it.
14658 (check_min_window_sizes): Remove. Invalid values of
14659 window-min-height|width are handled by window_min_size_2 now.
14660 (size_window, Fsplit_window, enlarge_window)
14661 (adjust_window_trailing_edge, grow_mini_window): Don't call
14662 check_min_window_sizes.
14663 (window_min_size_2, window_min_size_1, window_min_size):
14664 New argument safe_p for retrieving "safe" minimum sizes.
14665 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14666 (adjust_window_trailing_edge, grow_mini_window):
14667 Adjust arguments of window_min_size... functions.
14668 (shrink_windows): Argument min_size removed. New argument
14669 safe_p allows shrinking windows to their safe minimum sizes.
14670 Calculate minimum size and decide whether a window shall be
14671 deleted for each window individually.
14672 (size_window): When nodelete_p equals 2, tell shrink_windows to
14673 delete windows only if their new minimum size is no more safe.
14674 (shrink_window_lowest_first): Call window_min_size_1 to make
14675 sure to preserve modeline of bottom-most window when resizing
14676 the minibuffer.
14677 (Fset_window_configuration, Fcurrent_window_configuration)
14678 (compare_window_configurations): Do not handle
14679 window-min-height|width any more.
14680 (syms_of_window): Clarify window-min-height|width doc-strings.
14681
14682 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14683
14684 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14685 some more. Copy some of the code from Ftry_completions.
14686 Remove special case code that dates back to initial revision when the
14687 slash was only added when necessary and that can't trigger nowadays.
14688
14689 2008-04-27 Kenichi Handa <handa@m17n.org>
14690
14691 * font.c (font_prop_validate): Signal `error' instead of `font'.
14692
14693 2008-04-29 Jason Rumney <jasonr@gnu.org>
14694
14695 * w32fns.c (Fw32_battery_status): New defun.
14696 (syms_of_w32fns): Defsubr it.
14697
14698 2008-04-28 Andreas Schwab <schwab@suse.de>
14699
14700 * dired.c (file_name_completion): Fix another mixing of encoded
14701 and decoded names.
14702
14703 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
14704
14705 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14706
14707 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
14708
14709 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14710
14711 2008-04-27 Andreas Schwab <schwab@suse.de>
14712
14713 * dired.c (file_name_completion): Fix inappropriate mixing of
14714 encoded and decoded names.
14715
14716 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14717
14718 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14719
14720 2008-04-26 Eli Zaretskii <eliz@gnu.org>
14721
14722 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14723 2008-03-31, it's not needed anymore with `struct stat' definition
14724 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14725 for the same reasons.
14726
14727 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14728
14729 * m/sparc.h: Additional redefinitions for GNU/Linux.
14730
14731 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14732
14733 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14734 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14735 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14736 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14737 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14738 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14739 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14740 Likewise.
14741
14742 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14743 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14744 (mac_ax_number_of_characters): Add externs.
14745 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14746 [USE_MAC_TSM]: Likewise.
14747 (mac_handle_text_input_event) [MAC_OSX]:
14748 Handle kEventTextInputOffsetToPos for no active input area case.
14749 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14750 (mac_handle_document_access_event)
14751 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14752 (install_application_handler) [MAC_OSX]: Register handlers for
14753 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14754 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14755 Register mac_handle_document_access_event.
14756
14757 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14758 Make functions non-static.
14759
14760 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14761
14762 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14763 (read_file_name_completion_ignore_case, insert_default_directory)
14764 (Qdefault_directory): Move to minibuffer.el.
14765 (Fread_file_name): Call the new `read-file-name' instead.
14766
14767 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14768
14769 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14770 Make function non-static.
14771 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14772 Remove function.
14773 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14774 Move to mactoolbox.c.
14775 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14776
14777 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14778 (mac_rect_make): New macro.
14779
14780 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14781 instead of float.
14782 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14783 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14784 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14785 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14786 CGRectMake.
14787 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14788 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14789 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14790 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14791 instead of WindowRef in argument type.
14792 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14793 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14794 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14795 instead of DISPLAY. All uses changed.
14796 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14797 (x_calc_absolute_position): Simplify so as not to use
14798 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14799
14800 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14801 instead of WindowRef in argument type.
14802 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14803 [TARGET_API_MAC_CARBON]: Remove externs.
14804 (create_apple_event, mac_event_parameters_to_lisp)
14805 [TARGET_API_MAC_CARBON]: Add externs.
14806
14807 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14808 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14809 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14810 is clicked.
14811 (x_activate_menubar): Remove extern for saved_menu_event_location.
14812 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14813 Move from mac.c.
14814
14815 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14816
14817 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14818 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14819
14820 2008-04-23 Jason Rumney <jasonr@gnu.org>
14821
14822 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14823 attributes only for local files.
14824
14825 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14826 default to Qlocal.
14827
14828 2008-04-22 Juri Linkov <juri@jurta.org>
14829
14830 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14831 read-buffer-to-switch instead of using the letter "B".
14832
14833 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14834
14835 * fileio.c (Qdefault_directory): New variable.
14836 (Fread_file_name): Use it to pass `dir' to the completion functions.
14837
14838 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
14839
14840 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14841
14842 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14843
14844 * keyboard.c (Vpre_help_message): Remove.
14845 (show_help_echo): Remove default C code.
14846
14847 * dired.c (directory_files_internal, file_name_completion):
14848 Only call ENCODE_FILE if the string is indeed decoded.
14849
14850 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14851
14852 * Makefile.in (TOOLKIT_DEFINES): Remove.
14853 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14854
14855 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14856
14857 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14858 (mactoolbox.o): New target.
14859
14860 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14861 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14862
14863 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14864 Use mac_set_frame_window_background instead of XSetWindowBackground.
14865 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14866 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14867 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14868 instead of SetWindowTitleWithCFString.
14869 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14870 Move function to mactoolbox.c.
14871 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14872 Use mac_set_window_modified instead of SetWindowModified.
14873 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14874 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14875 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14876 FrontNonFloatingWindow. Use mac_activate_window instead of
14877 ActivateWindow. Use mac_active_non_floating_window instead of
14878 ActiveNonFloatingWindow.
14879 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14880 Use mac_show_hourglass and mac_hide_hourglass.
14881 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14882 instead of GetGlobalMouse.
14883 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14884 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14885 Use mac_bring_window_to_front instead of BringToFront.
14886 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14887 mactoolbox.c.
14888 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14889 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14890 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14891 mactoolbox.c.
14892
14893 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14894 (XtPointer): Move typedef from macmenu.c.
14895 (enum button_type): Move enum from macmenu.c.
14896 (widget_value): Move typedef from macmenu.c.
14897 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14898 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14899 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14900 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14901 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14902 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14903 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14904 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14905 (Selection): Move typedef from macselect.c.
14906 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14907 macterm.c.
14908 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14909 (mac_is_window_collapsed, mac_bring_window_to_front)
14910 (mac_send_window_behind, mac_hide_window, mac_show_window)
14911 (mac_collapse_window, mac_front_non_floating_window)
14912 (mac_active_non_floating_window, mac_activate_window)
14913 (mac_move_window_structure, mac_move_window, mac_size_window)
14914 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14915
14916 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14917 (enum mac_menu_kind): Move enum to mactoolbox.c.
14918 (min_menu_id): Move variable to mactoolbox.c.
14919 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14920 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14921 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14922 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14923 [TARGET_API_MAC_CARBON]: Likewise.
14924 (XtPointer): Move typedef to macgui.h.
14925 (enum button_type): Move enum to macgui.h.
14926 (widget_value): Move typedef to macgui.h.
14927 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14928 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14929 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14930 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14931 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14932 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14933 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14934 (popup_activated_flag): Make variable non-static.
14935 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14936 (add_menu_item, fill_menu, dispose_menus):
14937 Move functions to mactoolbox.c.
14938 (restore_show_help_function, menu_target_item_handler)
14939 (install_menu_target_item_handler, mac_handle_dialog_event)
14940 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14941 [TARGET_API_MAC_CARBON]: Likewise.
14942 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14943 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14944 (find_and_call_menu_selection, name_is_separator): Make function
14945 non-static.
14946 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14947 to mactoolbox.c.
14948 (set_frame_menubar): Don't call install_menu_quit_handler.
14949 (menu_item_selection): New variable.
14950 (mac_menu_show): Use create_and_show_popup_menu.
14951 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14952 selection but set variable menu_item_selection. All uses changed.
14953 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14954 Call install_menu_quit_handler. Move to mactoolbox.c.
14955
14956 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14957 (Selection): Move typedef to macgui.h.
14958 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14959 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14960 Make variables non-static.
14961 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14962 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14963 Make functions non-static.
14964 (Vmac_service_selection) [MAC_OSX]: Likewise.
14965 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14966 (mac_valid_selection_target_p, mac_clear_selection)
14967 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14968 (mac_put_selection_value, mac_selection_has_target_p)
14969 (mac_get_selection_value, mac_get_selection_target_list)
14970 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14971 Move functions to mactoolbox.c.
14972 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14973 Likewise.
14974 (copy_scrap_flavor_data, mac_handle_service_event)
14975 (install_service_handler) [MAC_OSX]: Likewise.
14976 (syms_of_macselect) <Vmac_dnd_known_types>:
14977 Use mac_dnd_default_known_types.
14978
14979 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14980 Move to mactoolbox.c.
14981 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14982 (Fx_selection_owner_p): Add EXFUN.
14983 (install_window_handler, remove_window_handler, XSetWindowBackground):
14984 Remove externs.
14985 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14986 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14987 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14988 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14989 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14990 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14991 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14992 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14993 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14994 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14995 (mac_valid_selection_target_p, mac_clear_selection)
14996 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14997 (mac_put_selection_value, mac_selection_has_target_p)
14998 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14999 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15000 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15001 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15002 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15003 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15004 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15005 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15006 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15007
15008 * mactoolbox.c: New file.
15009
15010 2008-04-18 Jason Rumney <jasonr@gnu.org>
15011
15012 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15013
15014 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15015
15016 * character.c (Fmultibyte_char_to_unibyte):
15017 Return latin1 chars unchanged.
15018
15019 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15020 relocated if it points to `name'.
15021
15022 2008-04-17 Kenichi Handa <handa@m17n.org>
15023
15024 * data.c (Faset): Allow setting a multibyte character in an
15025 ASCII-only unibyte string.
15026
15027 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15028
15029 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15030
15031 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15032 done in config.h.
15033
15034 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
15035
15036 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15037 (Fchar_direction): Add usage in the docstring.
15038
15039 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
15040
15041 * keyboard.c (read_key_sequence): Remove always-true checks.
15042
15043 2008-04-14 Jason Rumney <jasonr@gnu.org>
15044
15045 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15046 compatibility struct, for better underline positioning.
15047
15048 2008-04-13 David Hansen <david.hansen@gmx.net>
15049
15050 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15051 string.
15052
15053 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15054
15055 * m/hp800.h (XUINT, XSET): Remove.
15056
15057 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
15058
15059 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15060 previous change.
15061
15062 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15063
15064 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15065 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15066
15067 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15068
15069 * keymap.h (map_keymap_canonical): Declare.
15070 * xmenu.c (single_keymap_panes): Use it.
15071
15072 2008-04-11 Glenn Morris <rgm@gnu.org>
15073
15074 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15075 set the target's value to that of the alias.
15076
15077 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15078
15079 * term.c (set_tty_color_mode): Left over typo.
15080
15081 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
15082
15083 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15084 only after check for file name handler functions. Signal, when
15085 native functionality is not supported.
15086 (syms_of_fileio): Declare it unconditionally.
15087
15088 2008-04-10 Jason Rumney <jasonr@gnu.org>
15089
15090 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15091 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15092
15093 * w32.c (logon_network_drive): Also logon to remote drives that
15094 are mapped to drive letters.
15095
15096 2008-04-10 Glenn Morris <rgm@gnu.org>
15097
15098 * xdisp.c (truncate-partial-width-windows): Doc fix.
15099
15100 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15101
15102 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15103 Move functions to minibuffer.el.
15104 (syms_of_fileio): Don't declare them.
15105
15106 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15107
15108 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15109 (syms_of_minibuf): Remove its initialization.
15110
15111 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15112
15113 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
15114
15115 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15116
15117 2008-04-09 Jason Rumney <jasonr@gnu.org>
15118
15119 * makefile.w32-in (distclean): Delete makefile too.
15120 (maintainer-clean): New target.
15121
15122 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15123
15124 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15125 for new font backend and composite cases.
15126
15127 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15128
15129 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15130 Most of the code moved to run_timers.
15131 (do_pending_atimers): Call run_timers.
15132 (run_timers): New function.
15133
15134 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15135 run atimers.
15136
15137 * process.c (wait_reading_process_output): The same as above.
15138
15139 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15140
15141 * minibuf.c (last_exact_completion): Remove variable.
15142 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15143 (complete_and_exit_1, complete_and_exit_2)
15144 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15145 (Fdisplay_completion_list, display_completion_list_1)
15146 (Fminibuffer_completion_help, Fself_insert_and_exit)
15147 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15148 minibuffer.el.
15149 (syms_of_minibuf): Remove corresponding initializations.
15150
15151 * keyboard.c (Qdeactivate_mark): New var.
15152 (command_loop_1): Use it to call `deactivate-mark'.
15153 (syms_of_keyboard): Initialize it.
15154
15155 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15156 to another frame.
15157 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15158 Don't call set_tty_color_mode.
15159 (store_frame_param): Reset previous_frame rather than call
15160 set_tty_color_mode.
15161 * term.c (set_tty_color_mode): Rewrite.
15162 * dispextern.h (set_tty_color_mode): New type.
15163 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15164
15165 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15166
15167 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15168 for generic chars, which do not exist any more in emacs-unicode.
15169
15170 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
15171
15172 * coding.c (detect_coding_emacs_mule)
15173 (Ffind_operation_coding_system): Fix typo.
15174
15175 2008-04-08 Jason Rumney <jasonr@gnu.org>
15176
15177 * w32uniscribe.c (SNAME): Extract only symbol name.
15178
15179 * w32font.h (struct w32_metric_cache): New struct.
15180 (w32font_info): Use it.
15181 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15182 (CACHE_BLOCKSIZE): New constants.
15183
15184 * w32font.c (Qja, Qko, Qzh): New symbols.
15185 (syms_of_w32font): Initialise them.
15186 (font_matches_spec): Use them to filter by language.
15187 (recompute_cached_metrics): Remove function.
15188 (compute_metrics, clear_cached_metrics): New functions.
15189 (w32font_encode_char): Use them to manage metric cache.
15190 (w32font_text_extents): Cache metrics for all glyphs on demand.
15191 Delay converting glyph indices to WORD until needed.
15192 (w32font_open_internal): Initialize metric cache to empty.
15193 (registry_to_w32_charset): Charset should always be a symbol.
15194 (fill_in_logfont, list_all_matching_fonts): Family should
15195 always be a symbol.
15196
15197 2008-04-06 Jason Rumney <jasonr@gnu.org>
15198
15199 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15200 Give up if glyph indices not supported. Use uniscribe obtained
15201 ABC widths for individual metrics. Map glyph clusters back to
15202 characters using fClusterStart flag. Return number of glyphs
15203 produced, not chars processed.
15204 (uniscribe_shape): Map char at FROM to current glyph.
15205
15206 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15207
15208 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15209 Use SetMenuItemHierarchicalMenu.
15210
15211 2008-04-05 Jason Rumney <jasonr@gnu.org>
15212
15213 * image.c (pbm_load): Allow color values up to 65535.
15214 Throw an error if max_color_idx is outside the supported range.
15215 Report an error when image size is invalid.
15216 Read two bytes at a time when raw images have max_color_idx above 255.
15217
15218 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15219
15220 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15221 append "CCL: Quitted" when the CCL program is quitted.
15222 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15223
15224 * ccl.h (struct ccl_program): New member quit_silently.
15225
15226 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
15227
15228 * search.c (compile_pattern_1): Treat non-nil and non-string of
15229 search-spaces-regexp as nil.
15230
15231 * minibuf.c (Fassoc_string): Tweak docstring.
15232
15233 2008-04-05 Eli Zaretskii <eliz@gnu.org>
15234
15235 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15236 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15237 2008-03-14 to force inode be positive.
15238
15239 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15240 _S_* ones, since we now use our own sys/stat.h.
15241 (stat, fstat): Don't mangle the inode number.
15242 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15243
15244 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15245
15246 * frame.h (struct frame): Give one more bit to `visible' since we use
15247 values larger than 1 to indicate obscured frames on ttys.
15248
15249 * keymap.c (Qkeymap_canonicalize): New var.
15250 (Fmap_keymap_internal): New fun.
15251 (describe_map): Use keymap-canonicalize.
15252
15253 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15254 (Fundo_boundary): Set them.
15255 (syms_of_undo): Initialize them.
15256 (record_point): Use them instead of last_point_position*.
15257 (last_undo_buffer): Change type.
15258
15259 2008-04-04 Jason Rumney <jasonr@gnu.org>
15260
15261 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15262 (recompute_cached_metrics): Don't set ascent and descent per char.
15263
15264 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15265 (uniscribe_check_otf): Add GC protection before consing.
15266 Rearrange loop for counting features.
15267
15268 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15269
15270 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15271 buffer with byte-size of source buffer.
15272
15273 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
15274
15275 * callint.c (Fcall_interactively): Handle temporary region even
15276 when shift-select-mode is off.
15277
15278 2008-04-03 Jason Rumney <jasonr@gnu.org>
15279
15280 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15281
15282 2008-04-03 Kenichi Handa <handa@m17n.org>
15283
15284 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15285 (CATEGORY_MASK_UTF_16): Likewise.
15286 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15287 binary file.
15288 (detect_coding): Add null-byte detection for a binary file.
15289 (detect_coding_system): Likewise.
15290
15291 2008-04-03 Jason Rumney <jasonr@gnu.org>
15292
15293 * w32uniscribe.c: New file.
15294
15295 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15296
15297 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15298
15299 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15300 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15301 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15302 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15303 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15304 (Qphonetic): New symbols.
15305 (syms_of_w32font): Initialize them.
15306 (font_supported_scripts): Use them.
15307 (w32font_list_family): List all charsets.
15308 (w32font_text_extents, recompute_cached_metrics): Fix metric
15309 calculations.
15310 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15311 Give opentype fonts their own format.
15312 (font_matches_spec): New arguments backend and logfont.
15313 Handle :otf spec for uniscribe backend.
15314 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15315 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15316
15317 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15318 font backend.
15319 (globals_of_w32fns): Initialize uniscribe font backend.
15320
15321 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15322 dependencies.
15323 (w32uniscribe.$(O)): New file to build.
15324 (FONT_OBJ): Include w32uniscribe.$(O).
15325 (LIBS): Add uniscribe libraries.
15326
15327 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15328
15329 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
15330
15331 * callint.c (Vshift_select_mode): New var.
15332 (Finteractive): Document new ^ spec.
15333 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15334 is present.
15335
15336 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15337 (command_loop_1): Avoid running the direct display versions of
15338 forward-char and backward-char if shift-selection may occur.
15339 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15340 shift-translation takes place.
15341
15342 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15343 avoid clobbering by define-minor-mode.
15344
15345 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15346 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15347
15348 * syntax.c (Fforward_word): Add ^ interactive spec.
15349
15350 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15351 (Fscroll_right): Add ^ interactive spec.
15352
15353 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15354
15355 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15356
15357 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15358
15359 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15360
15361 2008-03-31 Juri Linkov <juri@jurta.org>
15362
15363 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15364
15365 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15366
15367 * gtkutil.c (xg_set_geometry): Fix indentation.
15368 (xg_resize_outer_widget): Remove.
15369 (x_wm_size_hint_off): Fix indentation.
15370 (xg_frame_set_char_size): Call flush_and_sync after
15371 gtk_window_resize.
15372 (x_wm_set_size_hint): Pass NULL as geometry window to
15373 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15374 Add menu bar and tool bar height to base height.
15375 (xg_update_frame_menubar, free_frame_menubar)
15376 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15377 (update_frame_tool_bar, free_frame_tool_bar):
15378 Change xg_resize_outer_widget to xg_frame_set_char_size.
15379
15380 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
15381
15382 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15383 (Fdbus_call_method): New parameter TIMEOUT.
15384 (dbus-send-signal): Optimize UNGCPRO call.
15385
15386 2008-03-29 Juri Linkov <juri@jurta.org>
15387
15388 * window.c (Fdisplay_buffer): Move call to
15389 Vsplit_window_preferred_function out of conditions that check
15390 if window is eligible for vertical splitting.
15391 When Vsplit_window_preferred_function is non-nil, call it and use
15392 its non-nil return value as window. Otherwise, continue doing
15393 vertical splitting using Fsplit_window with arg horflag=nil.
15394 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15395 default value from `split-window' to nil.
15396
15397 2008-03-29 Juri Linkov <juri@jurta.org>
15398
15399 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15400 for interactive code letters 'b' and 'B'.
15401
15402 2008-03-29 Eli Zaretskii <eliz@gnu.org>
15403
15404 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15405 multibyte string.
15406
15407 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15408
15409 * keyboard.c (pending_funcalls): New var.
15410 (timer_check): Run it.
15411 (syms_of_keyboard): Initialize it.
15412 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15413 (Vdelete_terminal_functions): New vars.
15414 (syms_of_terminal): Initialize them.
15415 (Fdelete_terminal): Run delete-terminal-functions.
15416 * xdisp.c (safe_eval): Rewrite.
15417 (safe_call2): New fun.
15418 * frame.c (Qdelete_frame_functions): New var.
15419 (syms_of_frame): Initialize it.
15420 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15421 * lisp.h (safe_call2, pending_funcalls): Declare.
15422
15423 2008-03-28 Andreas Schwab <schwab@suse.de>
15424
15425 * indent.c (Fmove_to_column): Move declaration before statements.
15426
15427 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15428
15429 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15430 (struct frame): Use bit fields for boolean vars.
15431
15432 * process.c (server_accept_connection): Simplify naming.
15433 (emacs_get_tty_pgrp): Use SDATA.
15434
15435 * coding.c (decode_coding_object): Fix last change.
15436
15437 2008-03-27 Jason Rumney <jasonr@gnu.org>
15438
15439 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15440
15441 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15442
15443 * charset.c (Fdefine_charset_internal): Change the way of
15444 registering charsets in Vcharset_order_list.
15445 (syms_of_charset): Make the charset `eight-bit' supplementary.
15446
15447 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15448
15449 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15450 operations, to avoid having the difference between pointers
15451 overflow.
15452
15453 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15454
15455 * indent.c (check_display_width): New fun.
15456 (scan_for_column): Use it.
15457
15458 * data.c (syms_of_data): Mark most-positive-fixnum and
15459 most-negative-fixnum as constants.
15460
15461 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15462
15463 * indent.c (scan_for_column): Extract from current_column_1.
15464 Merge with the same code from Fmove_to_column.
15465 (current_column_1, Fmove_to_column): Use it.
15466
15467 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15468
15469 * keymap.c (map_keymap_internal): New fun.
15470 (map_keymap): Use it.
15471 (Fmap_keymap_internal): New fun.
15472 (Fmap_keymap): Remove left-out test from before make_save_value.
15473
15474 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15475
15476 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15477 Use XCAR/XCDR.
15478
15479 * process.h (struct Lisp_Process): Remove filter_multibyte.
15480 * process.c (QCfilter_multibyte): Remove.
15481 (setup_process_coding_systems): Don't use filter_multibyte.
15482 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15483 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15484 (Fset_process_filter_multibyte): Change the coding-system to
15485 approximate the previous behavior.
15486 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15487 coding-system.
15488
15489 * coding.c (decode_coding_object): When not decoding into a buffer,
15490 obey the coding system's preference of (uni|multi)byte.
15491
15492 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15493
15494 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15495 every char is changed and has a different byte-length.
15496 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15497 Fix int -> EMACS_INT.
15498
15499 2008-03-23 David Hansen <david.hansen@gmx.net>
15500
15501 * dbusbind.c (xd_read_message): Remove extra copying of message
15502 strings. Check for NULL `interface' or `member'.
15503
15504 2008-03-22 Eli Zaretskii <eliz@gnu.org>
15505
15506 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15507 cFileName a file name that includes `?' characters, use the 8+3
15508 alias in cAlternateFileName instead.
15509
15510 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15511
15512 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15513
15514 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15515
15516 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15517 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15518 work on current_buffer only instead (that was already the case
15519 for some of the code anyway).
15520 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15521 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15522 (SET_PT, SET_PT_BOTH): Adjust.
15523 * intervals.h (set_point, temp_set_point, set_point_both)
15524 (temp_set_point_both): Remove redundant declarations.
15525
15526 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15527
15528 * fileio.c (Finsert_file_contents):
15529 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15530 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15531 when buffer != current_buffer anyway.
15532
15533 2008-03-20 Andreas Schwab <schwab@suse.de>
15534
15535 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15536 as default.
15537
15538 2008-03-19 Jason Rumney <jasonr@gnu.org>
15539
15540 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15541 (syms_of_w32fns): Initialize them.
15542 (HOURGLASS_ID): New constant.
15543 (x_window_to_frame): Don't check hourglass_window.
15544 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15545 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15546 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15547 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15548 Only change the cursor if hourglass is not active.
15549 (Fx_create_frame): Initialize frame's current_cursor.
15550 (hourglass_atimer): Remove.
15551 (hourglass_started): New function.
15552 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15553 (show_hourglass): Adapt to w32, changing argument to frame.
15554
15555 * w32term.h (struct w32_output): Remove hourglass_window.
15556 Add current_cursor.
15557
15558 * eval.c (call_debugger, Fsignal):
15559 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15560 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15561 (Fexecute_extended_command, cancel_hourglass_unwind):
15562 * minibuf.c (read_minibuf):
15563 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15564
15565 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15566
15567 * window.c (run_funs): New fun.
15568 (run_window_configuration_change_hook): Use it to run the buffer-local
15569 and the global part of the hook.
15570
15571 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15572 (unwind_format_mode_line): Restore selected window.
15573 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15574
15575 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15576
15577 * editfns.c (Fchar_equal): Check they are valid characters.
15578
15579 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15580
15581 2008-03-17 Andreas Schwab <schwab@suse.de>
15582
15583 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15584 against a charset.
15585
15586 * lisp.h (Fbuffer_list): Declare.
15587
15588 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
15589
15590 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15591 handlebox_widget is != 0.
15592
15593 2008-03-16 Juri Linkov <juri@jurta.org>
15594
15595 * callint.c (Fcall_interactively): For interactive code letters
15596 'b' and 'B' put the buffer list into the list of default "future"
15597 values of the minibuffer.
15598
15599 2008-03-16 Andreas Schwab <schwab@suse.de>
15600
15601 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15602 modifiers.
15603
15604 * regex.c (re_match_2_internal): Correct matching of a charset
15605 against latin-1 characters.
15606
15607 2008-03-16 Kenichi Handa <handa@m17n.org>
15608
15609 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15610 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15611 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15612 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15613 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15614 CHAR_STRING_ADVANCE.
15615 (produce_chars): Fix for the case that the source and the
15616 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15617 instead of CHAR_STRING_ADVANCE.
15618 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15619 STRING_CHAR_ADVANCE.
15620
15621 2008-03-15 Andreas Schwab <schwab@suse.de>
15622
15623 * regex.c (re_match_2_internal): Correct matching of eight bit
15624 characters in unibyte strings.
15625
15626 2008-03-15 Martin Rudalics <rudalics@gmx.at>
15627
15628 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15629 at end of range when it coincides with the end of the buffer.
15630
15631 2008-03-14 Eli Zaretskii <eliz@gnu.org>
15632
15633 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15634
15635 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15636
15637 2008-03-14 Jason Rumney <jasonr@gnu.org>
15638
15639 * editfns.c (initial_tz): New variable.
15640 (syms_of_editfns): Initialize it.
15641 (Fset_time_zone_rule): Set it when first called.
15642 Use it when TZSTRING is nil.
15643
15644 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15645 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15646 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15647 (globals_of_w32fns): Initialize them.
15648 (compute_tip_xy): Use them to position tooltips.
15649
15650 2008-03-14 Glenn Morris <rgm@gnu.org>
15651
15652 * emacs.c (main): Revert previous change.
15653 (standard_args): Revert -internal-script back to -scriptload,
15654 and remove the long-option form.
15655
15656 2008-03-13 Glenn Morris <rgm@gnu.org>
15657
15658 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15659 Remove option -enable-font-backend.
15660
15661 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15662
15663 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15664
15665 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15666
15667 * xterm.c (x_connection_closed): For GTK: If this is the last
15668 terminal just exit without closing the display.
15669
15670 2008-03-11 Jason Rumney <jasonr@gnu.org>
15671
15672 * w32font.c (w32font_full_name): Use floor to round.
15673
15674 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15675
15676 * sound.c (alsa_configure): Declare vol at beginning of block.
15677
15678 * fontset.c (Ffontset_info): Remove extra semicolon.
15679
15680 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15681
15682 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15683 size of resulting string.
15684
15685 2008-03-10 Jason Rumney <jasonr@gnu.org>
15686
15687 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15688
15689 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15690
15691 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15692 Don't pretend as if characters with display property haven't been
15693 consumed for string-replacing-string case.
15694
15695 2008-03-08 Kim F. Storm <storm@cua.dk>
15696
15697 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15698 (get_next_display_element, next_element_from_string)
15699 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15700
15701 2008-03-08 Andreas Schwab <schwab@suse.de>
15702
15703 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15704
15705 2008-03-06 Jason Rumney <jasonr@gnu.org>
15706
15707 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15708 when charset not specified. Only translate ANSI to unicode when
15709 font_type is truetype.
15710 (w32font_coverage_ok): New function.
15711 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15712
15713 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15714
15715 * lread.c (Fread_char): Resolve modifiers.
15716 (Fread_char_exclusive): Likewise.
15717
15718 * character.c (char_resolve_modifier_mask): New function.
15719 (char_string): Use char_resolve_modifier_mask.
15720 (Fchar_resolve_modifiers): New function.
15721 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15722 function.
15723
15724 2008-03-04 Jason Rumney <jasonr@gnu.org>
15725
15726 * makefile.w32-in: Always include w32font.c in the build.
15727 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15728
15729 2008-03-04 Andreas Schwab <schwab@suse.de>
15730
15731 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15732 (versionclean): Likewise.
15733
15734 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
15735
15736 * .cvsignore: Add oo.
15737
15738 2008-03-03 Andreas Schwab <schwab@suse.de>
15739
15740 * coding.c (decode_coding_object): Inhibit gap shrinking while
15741 decoding in place.
15742
15743 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15744
15745 * w32term.c: Remove unused include "gnu.h".
15746 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15747
15748 * gnu.h: Rename to ...
15749 * emacs-icon.h: ... this.
15750 * xterm.c: Use emacs-icon.h instead of gnu.h.
15751 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15752
15753 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
15754
15755 * w32font.c: Include math.h.
15756
15757 2008-03-03 Jason Rumney <jasonr@gnu.org>
15758
15759 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15760 Compute options separately.
15761 (w32font_open_internal): Set glyph_idx before caching metrics.
15762
15763 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15764 Define if system headers don't.
15765 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15766 (w32font_encode_char): Don't declare here.
15767
15768 * w32font.c (Quniscribe, QCformat): New symbols.
15769 (syms_of_w32font): Define them.
15770 (w32font_has_char): Indicate uncertainty.
15771 (w32font_encode_char): Encode as glyph point. Make static.
15772 (recompute_cached_metrics): New function.
15773 (w32font_open_internal): Use it. Set font to use glyph points
15774 initially. Set format based on type of font.
15775 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15776 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15777 on it. Set format based on information available here.
15778 (add_font_entity_to_list): Identify backend based on opentype_only.
15779
15780 2008-03-02 Andreas Schwab <schwab@suse.de>
15781
15782 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15783
15784 * coding.c (decode_coding_big5, produce_chars):
15785 Fix typos in last change.
15786
15787 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15788
15789 * gnu.h: New icon.
15790
15791 2008-03-02 Kenichi Handa <handa@m17n.org>
15792
15793 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15794 `dos', don't decode '\r' if that is the last in the source.
15795 (decode_coding_utf_16, decode_coding_emacs_mule)
15796 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15797 (decode_coding_raw_text, decode_coding_charset): Likewise.
15798 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15799
15800 2008-03-01 Jason Rumney <jasonr@gnu.org>
15801
15802 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15803
15804 2008-03-01 Kim F. Storm <storm@cua.dk>
15805
15806 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15807
15808 2008-03-01 Jason Rumney <jasonr@gnu.org>
15809
15810 * w32font.c (w32font_full_name): New function.
15811 (w32font_open_internal): Use it.
15812
15813 2008-03-01 Kim F. Storm <storm@cua.dk>
15814
15815 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15816
15817 2008-03-01 Jason Rumney <jasonr@gnu.org>
15818
15819 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15820
15821 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15822
15823 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15824 xg_frame_resized when the event is for the edit widget.
15825
15826 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15827
15828 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15829 set_char_size.
15830 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15831 operations on widgets here. Just set frame size if needed.
15832 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15833 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15834 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15835 the whole frame.
15836 (xg_create_tool_bar): Move attachment of the tool bar to
15837 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15838 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15839
15840 2008-03-01 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32fns.c (w32_msg_pump): Disable debug code.
15843
15844 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15845
15846 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15847
15848 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
15849
15850 * xdisp.c (next_overlay_string): Don't set
15851 overlay_strings_at_end_processed_p if we're currently reading from
15852 a display string.
15853
15854 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15855
15856 * xdisp.c (get_overlay_strings_1): Fix typo.
15857
15858 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
15859
15860 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15861
15862 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15863
15864 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15865
15866 * xdisp.c (display_mode_element): Cancel the previous change.
15867 (decode_mode_spec): Likewise.
15868 (handle_auto_composed_prop): Don't make composition if it->string
15869 is a string.
15870
15871 2008-02-27 Kim F. Storm <storm@cua.dk>
15872
15873 * lisp.h (GLYPH): Change type from int to struct with separate char
15874 and face_id members.
15875 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15876 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15877 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15878 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15879 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15880 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15881 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15882 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15883 handle new Lisp glyph code encoding, either an integer or a cons.
15884
15885 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15886 (GLYPH_ALIAS): Delete.
15887 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15888 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15889 (GLYPH_FROM_CHAR): Replace macro by ...
15890 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15891
15892 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15893 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15894 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15895 (GLYPH_INVALID_P): New macro.
15896 (spec_glyph_lookup_face): Update prototype.
15897
15898 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15899 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15900 new glyph code encoding.
15901 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15902 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15903
15904 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15905 Adapt to new glyph type and new glyph code encoding.
15906
15907 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15908
15909 * indent.c (current_column, current_column_1, Fmove_to_column)
15910 (compute_motion): Adapt to new glyph code encoding.
15911
15912 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15913
15914 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
15915
15916 * process.c (wait_reading_process_output): Check for window
15917 changes caused by timers.
15918 Suggested by Johan Bockgård.
15919
15920 2008-02-27 Glenn Morris <rgm@gnu.org>
15921
15922 * emacs.c (USAGE1): Add `--disable-font-backend'.
15923
15924 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15925
15926 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15927 is made to the buffer.
15928
15929 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15930
15931 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15932 (face_at_string_position):
15933 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15934 (face_at_string_position):
15935 * xdisp.c (display_string, next_overlay_change):
15936 * buffer.h (overlays_at):
15937 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15938 Update callers.
15939
15940 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
15941
15942 * editfns.c (Fformat): Doc fix.
15943
15944 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
15945
15946 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15947 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15948 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15949
15950 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15951
15952 * buffer.c (Fbuffer_swap_text): New function.
15953 (syms_of_buffer): Defsubr it.
15954
15955 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
15956
15957 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15958
15959 2008-02-25 Jason Rumney <jasonr@gnu.org>
15960
15961 * w32font.c (w32font_draw): Draw one character at a time when padding.
15962
15963 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15964
15965 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15966 Handle a nil arg. Use run_window_configuration_change_hook.
15967 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15968 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15969 Use run_window_configuration_change_hook.
15970
15971 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15972
15973 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15974 1-pixel width.
15975
15976 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15977
15978 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15979 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15980 if the glyph in the font is zero pixel with.
15981
15982 * dispextern.h (struct glyph_string): New member padding_p.
15983
15984 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15985
15986 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15987
15988 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15989
15990 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15991
15992 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15993
15994 2008-02-25 Jason Rumney <jasonr@gnu.org>
15995
15996 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15997
15998 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15999
16000 Allow fine-grained image-cache flushing.
16001 * dispextern.h (struct image): Add `dependencies' field.
16002 (clear_image_caches): Change arg to Lisp_Object.
16003 * image.c (make_image): Initialize `dependencies' field.
16004 (clear_image_cache): Change arg to allow fine-grained flushing.
16005 Perform the flush even if image-cache-eviction-delay is nil.
16006 (clear_image_caches): Change arg to Lisp_Object.
16007 (Fclear_image_cache): Expand meaning of the argument.
16008 (mark_image): Mark `dependencies' field.
16009 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16010 (lface_hash): Use XHASH rather than XFASTINT.
16011 (face_at_buffer_position): Fix int -> EMACS_INT position.
16012 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16013 (select_frame_for_redisplay): Remove code duplication.
16014 (redisplay_internal): Adapt arg to call to clear_image_caches.
16015
16016 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16017
16018 * s/vms4-0.h:
16019 * s/vms4-2.h:
16020 * s/vms4-4.h:
16021 * s/vms5-5.h: Remove, unused.
16022
16023 * s/irix5-2.h:
16024 * s/irix6-0.h:
16025 * s/riscos5.h:
16026 * s/mach-bsd4-3.h:
16027 * m/mips4.h: Remove files for obsolete systems.
16028
16029 * Makefile.in:
16030 * filelock.c:
16031 * unexmips.c:
16032 * m/hp9000s300.h:
16033 * m/iris4d.h:
16034 * s/aix3-1.h:
16035 * s/hpux.h:
16036 * s/msdos.h:
16037 * s/usg5-0.h:
16038 * s/usg5-2-2.h:
16039 * s/usg5-2.h:
16040 * s/usg5-3.h: Remove references to obsolete variables.
16041
16042 * s/irix5-0.h: Remove, move all the contents ...
16043 * s/irix6-5.h: ... here. Simplify.
16044 * config.in: Regenerate.
16045
16046 2008-02-24 Jason Rumney <jasonr@gnu.org>
16047
16048 * w32term.c (x_draw_glyph_string_background): Clear the background
16049 manually when cleartype is in use.
16050 (x_draw_glyph_string_foreground): Draw text transparently when
16051 cleartype is in use.
16052
16053 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16054 a font into it unless we have to.
16055
16056 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16057
16058 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16059 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
16060
16061 2008-02-18 Jason Rumney <jasonr@gnu.org>
16062
16063 * w32fns.c (Fw32_shell_execute): Encode parameters.
16064
16065 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16066
16067 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16068
16069 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
16070
16071 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16072
16073 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16074
16075 * xterm.c (x_set_offset): Don't change the gravity if
16076 CHANGE_GRAVITY is -1.
16077
16078 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
16079
16080 * fileio.c (auto_save_error_occurred): New var.
16081 (auto_save_error): Set it.
16082 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16083 error occurred.
16084
16085 2008-02-23 Eli Zaretskii <eliz@gnu.org>
16086
16087 * w32.c (globals_of_w32): Add initializations for
16088 g_b_init_get_sid_sub_authority and
16089 g_b_init_get_sid_sub_authority_count.
16090
16091 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16092
16093 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16094 (font_parse_xlfd): Use them for sanity check.
16095 (Finternal_set_font_style_table): Make sure the table is bijective.
16096
16097 Consolidate the image_cache to the terminal struct.
16098 * termhooks.h (P_): Remove redundant def.
16099 (struct terminal): New field `image_cache'.
16100 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16101 of FRAME_X_IMAGE_CACHE.
16102 * xterm.h (struct x_display_info): Remove image_cache field.
16103 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16104 * w32term.h (struct w32_display_info): Remove image_cache field.
16105 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16106 * macterm.h (struct mac_display_info): Remove image_cache field.
16107 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16108 * xterm.c (x_term_init):
16109 * w32term.c (w32_term_init):
16110 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16111 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16112 Remove declarations.
16113 (clear_image_caches, mark_image_cache): New declarations.
16114 * xfaces.c (clear_face_cache):
16115 * xdisp.c (redisplay_internal): Use clear_image_caches.
16116 * image.c (clear_image_cache): Don't check that a frame is on
16117 a window-system before checking if it shares the same cache.
16118 (clear_image_caches): New function.
16119 (Fclear_image_cache): Use it.
16120 (mark_image): Move from allo.c.
16121 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16122 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16123 (mark_object): Don't call mark_image_cache for frames.
16124 (mark_terminals): Call mark_image_cache.
16125
16126 * lisp.h (Fdelete_terminal): Declare.
16127
16128 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16129 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16130 wrong_type_argument.
16131
16132 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16133
16134 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16135 malayalam.el, and tamil.el. Add sinhala.el.
16136
16137 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16138
16139 * xterm.c (x_connection_closed): Consolidate identical tests.
16140 (x_delete_terminal): Don't crash if called via x_connection_closed.
16141
16142 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16143
16144 * xdisp.c (decode_mode_spec): New arg string.
16145 (display_mode_element): Adjust for the above change.
16146
16147 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16148
16149 * callint.c (Fcall_interactively): Use AREF.
16150
16151 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16152
16153 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16154
16155 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16156
16157 * xfns.c (Fx_show_tip): Set string to " " if empty.
16158
16159 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16160
16161 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16162 with Qt.
16163
16164 2008-02-17 Kenichi Handa <handa@m17n.org>
16165
16166 * ftfont.c (ftfont_shape): Return Lispy number.
16167
16168 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16169 for GCs.
16170 (Finternal_set_font_selection_order): Call font_update_sort_order
16171 only when enable_font_backend is set.
16172 (realize_x_face): Set face->font_info to that of default face only
16173 when enable_font_backend is set.
16174
16175 * xdisp.c (handle_composition_prop): Set it->c to the fist
16176 character of the composed region.
16177 (fill_composite_glyph_string): Set base_face->font_info to
16178 s->font_info. Get a face for ascii from base_face->ascii_face.
16179 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16180 with a face already decided.
16181 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16182 non-negative.
16183 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16184 call font_prepare_composition unconditionally.
16185
16186 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16187
16188 * xterm.h (struct x_display_info): New member font.
16189
16190 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16191 (x_set_mouse_face_gc, x_new_font): Likewise.
16192 (x_term_init): Setup display_info->font.
16193 (x_delete_terminal): Free display_info->font.
16194
16195 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16196
16197 * ftxfont.c (ftxfont_default_fid): Delete it.
16198 (ftxfont_open): Set xfont->fid to 0.
16199 (ftxfont_end_for_frame): Clear data specific to the frame and the
16200 font-driver.
16201
16202 * xftfont.c (xftfont_default_fid): Delete it.
16203 (xftfont_open): Set xfont->fid to 0.
16204
16205 * fontset.c (FONTSET_OBJLIST): New macro.
16206 (fontset_find_font): Update font-object list of the fontset.
16207 (free_realized_fontset): New function.
16208 (free_face_fontset): Call free_realized_fontset.
16209 (Ffont_info): Call font_close_object only when enable_font_backend
16210 is set.
16211
16212 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16213 [HAVE_NTGUI]: Include w32term.h.
16214 [MAC_OS]: Include macterm.ch.
16215 (font_otf_ValueRecord): Use make_number.
16216 (font_finish_cache): Fix handling of reference count.
16217 (font_clear_cache): Update num_fonts.
16218 (font_open_entity): Update smallest_char_width and
16219 smallest_font_height of the frame.
16220 (font_close_object): Update num_fonts.
16221 (Fclear_font_cache): Fix finding the target cache data.
16222
16223 2008-02-16 Glenn Morris <rgm@gnu.org>
16224
16225 * fontset.c (Finternal_char_font): Fix compilation warning.
16226
16227 2008-02-16 Eli Zaretskii <eliz@gnu.org>
16228
16229 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16230 instead of char arrays. Enlarge the size of array passed to
16231 get_token_information.
16232
16233 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16234 warnings.
16235
16236 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16237
16238 * .gdbinit: Don't set `args', it breaks gdb --args.
16239
16240 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16241
16242 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16243 within a narrowed buffer.
16244
16245 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16246
16247 * coding.c (decode_coding_object, encode_coding_object):
16248 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16249
16250 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16251
16252 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16253 hardcoding 1.
16254 (detect_coding_system):
16255 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16256 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16257 * insdel.c (insert_from_gap):
16258 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16259 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16260 (string_to_multibyte):
16261 * character.c (chars_in_text, multibyte_chars_in_text):
16262 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16263
16264 * character.h (FETCH_STRING_CHAR_ADVANCE)
16265 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16266 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16267 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16268
16269 * casefiddle.c (casify_region): Only call after-change and composition
16270 functions on the part of the region that was changed.
16271
16272 * keyboard.c (read_avail_input):
16273 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16274
16275 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16276
16277 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16278 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16279
16280 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
16281
16282 * w32menu.c (push_submenu_start, push_submenu_end)
16283 (push_left_right_boundary, push_menu_pane, push_menu_item):
16284 * keyboard.c (read_key_sequence): Don't pass args with side effects
16285 to AREF, it fails when compiling with -DENABLE_CHECKING.
16286
16287 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16288
16289 * Makefile.in (${lispsource}international/charprop.el):
16290 Delete this target.
16291
16292 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16293 emacs-unicode-2.
16294
16295 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16296
16297 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16298
16299 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16300
16301 * frame.c (Qnoelisp): New symbol.
16302 (syms_of_frame): Initialize it.
16303 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16304 harmless Elisp code, from a strong `force' from x_connection_closed.
16305 * frame.h (Qnoelisp): Declare.
16306 * xterm.c (x_connection_closed): Pass `noelisp'.
16307
16308 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16309 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16310 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16311 rather than `int' for the type of `type'.
16312
16313 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16314
16315 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16316
16317 * Makefile.in (GNUC): Remove support for gcc-1.x.
16318
16319 2008-02-10 Richard Stallman <rms@gnu.org>
16320
16321 * lisp.h (ASET): Use AREF, not ASLOT.
16322
16323 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16324
16325 * lisp.h (ASET): Check bounds.
16326
16327 2008-02-10 Glenn Morris <rgm@gnu.org>
16328
16329 * buffer.c (mode-name): Doc fix.
16330
16331 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16332
16333 * Makefile.in:
16334 * emacs.c:
16335 * gmalloc.c:
16336 * keyboard.c:
16337 * lisp.h:
16338 * m/ibm370aix.h:
16339 * process.c:
16340 * regex.c:
16341 * s/hpux.h:
16342 * sysdep.c:
16343 * sysselect.h:
16344 * systty.h:
16345 * unexec.c:
16346 * w32term.c:
16347 * xsmfns.c:
16348 * xterm.c: Remove code that deals with obsolete variables.
16349
16350 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16351
16352 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16353 nothing else needs it anymore.
16354
16355 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16356
16357 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16358 instead of unibyte_char_to_multibyte.
16359
16360 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16361
16362 * s/gnu-linux.h: Remove commented out code.
16363
16364 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16365
16366 * Makefile.in: Update what RMS says about using autoconf.
16367 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16368 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16369 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16370 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16371
16372 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16373
16374 * keymap.c (Fkey_description): Move side effect outside of macro call.
16375
16376 * xfaces.c (Finternal_make_lisp_face):
16377 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16378
16379 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16380 (syms_of_fontset): Use ASET.
16381
16382 * fns.c (concat): Move side effect outside of macro call.
16383 (hash_clear): Use ASET.
16384
16385 2008-02-08 Richard Stallman <rms@gnu.org>
16386
16387 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16388 If FORCE, and frame has a surrogate minibuffer for another frame,
16389 delete the other frame first.
16390
16391 2008-02-07 Timo Savola <timo.savola@iki.fi>
16392
16393 * xterm.c (x_detect_focus_change): Handle embed client message.
16394 (handle_one_xevent): Ditto.
16395 (handle_one_xevent): If embedded and we get a button press/release,
16396 request focus.
16397 (xembed_set_info, xembed_send_message): New functions.
16398 (x_make_frame_visible): Call xembed_set_info if embedded.
16399 (x_make_frame_invisible): Call xembed_set_info if embedded.
16400 (x_term_init): Initialize Xatom_XEMBED.
16401 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16402 (x_iconify_frame): Ditto.
16403
16404 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16405 (enum xembed_info, enum xembed_message, enum xembed_focus)
16406 (enum xembed_modifier, enum xembed_accelerator): New.
16407 (xembed_set_info, xembed_send_message): Declare.
16408 (FRAME_X_EMBEDDED_P): New.
16409
16410 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16411 gtk_plug_new.
16412
16413 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16414 window ID of a frame.
16415 (x_window): Reparent frame if embedded.
16416 (Fx_create_frame): Don't set border width if embedded.
16417
16418 * emacs.c (USAGE3): Add --parent-id.
16419 (standard_args): Ditto.
16420
16421 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16422
16423 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16424
16425 2008-02-07 Jim Meyering <meyering@redhat.com>
16426
16427 Use "do...while (0)", not "if (1)...else" in macro definitions.
16428 The latter provokes a warning from gcc about the empty else, when
16429 followed by ";". Also, without that trailing semicolon, it would
16430 silently swallow up any following statement.
16431 * syntax.h (SETUP_SYNTAX_TABLE)
16432 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16433 * buffer.h (DECODE_POSITION): Likewise.
16434 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16435 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16436 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16437 (FETCH_CHAR_ADVANCE): Likewise.
16438 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16439
16440 2008-02-07 Jim Meyering <meyering@redhat.com>
16441
16442 * lread.c [lint]: Don't include <sys/inode.h>.
16443
16444 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16445
16446 * xselect.c (x_handle_dnd_message):
16447 * xmenu.c (digest_single_submenu, xmenu_show):
16448 * xdisp.c (with_echo_area_buffer_unwind_data)
16449 (format_mode_line_unwind_data, unwind_format_mode_line)
16450 (display_menu_bar):
16451 * eval.c (Ffetch_bytecode):
16452 * doc.c (store_function_docstring):
16453 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16454 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16455 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16456
16457 2008-02-07 Kenichi Handa <handa@m17n.org>
16458
16459 * ftxfont.c (ftxfont_open): Don't set
16460 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16461
16462 * ftfont.c (ftfont_open): Fix previous change.
16463
16464 2008-02-06 Jason Rumney <jasonr@gnu.org>
16465
16466 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16467 Use cached metrics for ASCII characters.
16468 (w32font_open_internal): Don't set font's owning_frame.
16469 Cache metrics for ASCII characters.
16470
16471 * w32font.h (struct w32font_info): Add ascii_metrics.
16472 Remove owning_frame.
16473
16474 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16475
16476 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16477 to negative value.
16478
16479 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16480
16481 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16482
16483 * charset.c (syms_of_charset): Set QCtest and Qeq.
16484
16485 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16486
16487 * process.c (Fstart_process):
16488 * callproc.c (Fcall_process): Handle the case where
16489 Funhandled_file_name_directory returns nil.
16490
16491 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16492 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16493 * font.c (check_gstring): Use them and AREF to access the vector before
16494 we know it's really a gstring.
16495 (Ffont_shape_text): Fix typo.
16496 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
16497
16498 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16499 Declare.
16500
16501 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16502
16503 2008-02-05 Jason Rumney <jasonr@gnu.org>
16504
16505 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16506 Set smallest_font_height and smallest_char_width in display info.
16507
16508 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16509
16510 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16511
16512 2008-02-05 Miles Bader <miles@gnu.org>
16513
16514 * xfaces.c (get_lface_attributes, merge_named_face)
16515 (lookup_named_face, lookup_derived_face, realize_named_face):
16516 Revert 2008-02-01 change by cyd@stupidchicken.com.
16517
16518 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16519
16520 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16521 fallback fonts.
16522 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16523
16524 2008-02-04 Jason Rumney <jasonr@gnu.org>
16525
16526 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16527 set full_name.
16528 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16529
16530 2008-02-03 Jason Rumney <jasonr@gnu.org>
16531
16532 * makefile.w32-in (OBJ1): Include font.o here.
16533 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16534
16535 2008-02-02 Jason Rumney <jasonr@gnu.org>
16536
16537 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16538
16539 2008-02-01 Jason Rumney <jasonr@gnu.org>
16540
16541 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16542
16543 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16544
16545 2008-02-01 Andreas Schwab <schwab@suse.de>
16546
16547 * Makefile.in (shortlisp, lisp): Update for rename of
16548 ../lisp/language/myanmar.el.
16549
16550 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
16551
16552 * xfaces.c (get_lface_attributes): Delete function.
16553 (merge_named_face, lookup_named_face, lookup_derived_face)
16554 (realize_named_face): Call lface_from_face_name directly, and use
16555 the fact that merge_face_vectors does not alter its FROM argument.
16556
16557 2008-02-01 Jason Rumney <jasonr@gnu.org>
16558
16559 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16560 input in the default locale. Handle non-Unicode multibyte input.
16561
16562 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16563
16564 * fontset.c (reorder_font_vector): Exclude nil elements from the
16565 font group. Don't try multiple fonts.
16566 (fontset_font): Adjust for the above change.
16567 (Finternal_char_font): Return nil if the found font doesn't
16568 contain the character ch.
16569
16570 * Makefile.in (lisp, shortlisp): Add cham.el.
16571
16572 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16573
16574 * font.h (FONTP): Make it return 1 also for a font-object.
16575
16576 * .gdbinit (xfontset): New function.
16577
16578 * font.c (font_find_for_lface): Check if the character C is
16579 supported or not only for the first font.
16580
16581 * fontset.c (reorder_font_vector): Fix typo.
16582 (fontset_find_font): Don't add a font-spec specifying a script.
16583 Use 0 (not Qt) for the indication of empty font-group. Change the
16584 format of RFONT-DEF. Return Qt if no font in the font-group
16585 support the character.
16586 (fontset_font): Adjust for the above change. If no font was
16587 found the character, remember that.
16588 (face_for_char): Adjust for the change of RFONT-DEF.
16589 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16590 no font for the target.
16591 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16592
16593 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16594
16595 * font.c (font_load_for_face): Handle the case that the font in
16596 face->lface is a string.
16597
16598 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16599
16600 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16601
16602 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16603
16604 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16605 Fix previous change. If the frame is not on a window system,
16606 signal an error.
16607
16608 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16609
16610 * coding.c (decode_coding_object, encode_coding_object): Adjust
16611 marker positions after conversion.
16612
16613 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16614
16615 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16616
16617 * font.c (font_find_for_lface): Fix the handling of the return
16618 value of font_has_char.
16619 (Ffont_shape_text): Fix previous change.
16620
16621 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16622 (fontset_ref_and_range): Delete it.
16623 (fontset_find_font): Call char_table_ref_and_range instead of
16624 FONTSET_REF_AND_RANGE.
16625 (make_fontset): Don't setup font groups of Latin here.
16626 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16627 (new_fontset_from_font): Make the specified font the default for
16628 all Latin characters.
16629
16630 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16631
16632 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16633 is on a window system before accessing the fontset of the frame.
16634
16635 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16636
16637 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16638
16639 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16640 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16641
16642 * font.c (Ffont_shape_text): If the font driver doesn't have a
16643 shaper function, make zero-width glyphs to have at least one-pixel
16644 width. Fix setting of `to' field of glyphs.
16645
16646 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16647
16648 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16649 glyphs.
16650
16651 * font.h (struct font_driver): Improve docstring of member `shape'.
16652
16653 2008-02-01 Kenichi Handa <handa@m17n.org>
16654
16655 * composite.c (syms_of_composite): Fix docstring of
16656 auto-composition-function.
16657
16658 * font.h (LGLYPH_SIZE): New macro.
16659
16660 * font.c (Ffont_fill_gstring): Stop filling when a character not
16661 supported by the font is found.
16662 (Ffont_shape_text): When a shape callback function returns nil,
16663 try at most two more times with larger gstring.
16664 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16665
16666 * xdisp.c (handle_auto_composed_prop): Change the argument to
16667 auto-composition-function.
16668
16669 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16670 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16671 Lispy glyph and store it in the lgstring.
16672
16673 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16674
16675 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16676
16677 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16678
16679 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16680
16681 * fontset.c (Vfont_encoding_charset_alist): New variable.
16682 (syms_of_fontset): DEFVAR it.
16683 (reorder_font_vector, fontset_find_font): Optimize for the case of
16684 no need of reordering.
16685 (face_for_char): Map the charset property by
16686 Vfont_encoding_charset_alist.
16687
16688 2008-02-01 Jason Rumney <jasonr@gnu.org>
16689
16690 * w32font.c (logfonts_match): Don't check adstyle here.
16691 (font_matches_spec): Check here against physical font instead.
16692 (add_font_entity_to_list): Avoid some substitutions.
16693
16694 * font.c (font_parse_fcname): Default weight and slant to normal.
16695 (font_score): Prefer normal fonts if weight or slant unspecified.
16696 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16697 match freetype scores.
16698
16699 2008-02-01 Jason Rumney <jasonr@gnu.org>
16700
16701 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16702 font, as it may have been deleted.
16703 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16704 most common hyphenless variation.
16705 (logfonts_match): Check generic family.
16706 (font_matches_spec): Don't check generic family here.
16707 (fill_in_logfont): Set generic family based on adstyle.
16708
16709 * w32font.h (w32font_get_cache): Update declaration.
16710
16711 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16712
16713 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16714
16715 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16716 If none of the new drivers are available, call font_update_drivers
16717 with the old drivers.
16718
16719 * w32font.c (w32font_get_cache): Adjust the argument type.
16720
16721 * xfont.c (xfont_get_cache): Adjust the argument type.
16722
16723 * font.h (struct font_driver): Change argument type of get_cache.
16724
16725 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16726
16727 * font.c (Ffont_get): Fix arguments to Fassoc.
16728 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16729 (font_clear_cache): New function.
16730 (font_list_entities, font_matching_entity): Use font_get_cache.
16731 (font_update_drivers): Call font_clear_cache when finishing a driver.
16732
16733 * fontset.c (fontset_find_font): Fix previous change.
16734
16735 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16736
16737 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16738 dpyinfo->font_table.
16739 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16740 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16741
16742 * font.c (font_at): Handle the case that the arg C is negative.
16743 Handle the unibyte case.
16744 (Ffont_at): Call font_at with the arg C -1.
16745
16746 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16747 the position here, and call font_at with the arg C -1.
16748 Don't check the range of the existing composition at the point.
16749
16750 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16751
16752 * fontset.c (fontset_add): New args charset_id and family.
16753 Change caller.
16754 (load_font_get_repertory, fontset_find_font): Assume that
16755 font_spec is always a font-spec object.
16756 (Fset_fontset_font): Always store a font-spec object in a fontset.
16757
16758 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16759 instead of get_property_and_range.
16760
16761 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16762
16763 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16764 (xftfont_open): Don't keep locking face.
16765 (xftfont_close): Don't unlock face.
16766 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16767
16768 * fontset.c (fontset_find_font): Don't prefer a font of
16769 supplementary charset.
16770
16771 2008-02-01 Kenichi Handa <handa@m17n.org>
16772
16773 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16774 script, langsys_tag to langsys, new member script.
16775 (OTF_TAG_STR): Terminate by '\0'.
16776 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
16777 listing to the script specified in that property. Fix arg to
16778 OTF_check_features.
16779
16780 2008-02-01 Jason Rumney <jasonr@gnu.org>
16781
16782 * w32font.h: New file.
16783
16784 * w32font.c: Include it.
16785 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16786 (w32font_open): Set owning_frame.
16787 (w32font_text_extents): Use owning_frame.
16788 (struct font_callback_data): Add opentype_only field.
16789 (add_font_entity_to_list): Use it to filter fonts.
16790 Don't check against full name.
16791 (w32font_list_internal): New function.
16792 (w32font_list): Use it.
16793 (w32font_match_internal): New function.
16794 (w32font_match): Use it.
16795 (w32font_open_internal): New function.
16796 (w32font_open): Use it.
16797 (w32font_get_cache, w32font_close, w32font_has_char)
16798 (w32font_encode_char, w32font_text_extents, w32font_draw):
16799 Make non-static.
16800
16801 * makefile.w32-in (w32font.o): Depend on w32font.h.
16802
16803 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16804
16805 * charset.c (Fdefine_charset_internal): Record a supplementary
16806 charset at the tail of Vcharset_order_list.
16807
16808 * font.c (Ffont_shape_text): Fix the return value.
16809
16810 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16811
16812 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16813
16814 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16815
16816 * ftfont.c (struct OpenTypeSpec): New struct.
16817 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16818 (ftfont_get_open_type_spec): New function.
16819 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16820
16821 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16822
16823 2008-02-01 Jason Rumney <jasonr@gnu.org>
16824
16825 * w32font.c (add_font_entity_to_list): Compare only the beginning
16826 of full name.
16827
16828 2008-02-01 Kenichi Handa <handa@m17n.org>
16829
16830 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16831 Never return HANDLED_RECOMPUTE_PROPS.
16832
16833 2008-02-01 Kenichi Handa <handa@m17n.org>
16834
16835 * font.c (font_gstring_produce): Delete it.
16836
16837 * composite.h (COMPOSITION_METHOD):
16838 Handle COMPOSITION_WITH_GLYPH_STRING.
16839
16840 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16841
16842 * xfont.c (Qx): Delete.
16843 (syms_of_xfont): Don't initialize Qx.
16844
16845 * composite.h (enum composition_method):
16846 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16847
16848 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16849
16850 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16851 (choose_face_font): Accept new form of font-spec.
16852
16853 * frame.h (font_driver_list): Declare it unconditionally.
16854 (struct frame): Define members font_driver_list and font_data_list
16855 unconditionally.
16856
16857 * fontset.c: Include "font.h" unconditionally.
16858 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16859 (Fset_fontset_font): Accept a font-spec object.
16860
16861 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16862 PIXEL_SIZE part a wild card.
16863
16864 * dispextern.h (struct glyph_string): Define members clip and
16865 num_clips unconditionally.
16866 (struct face): Define members font_info and extra unconditionally.
16867
16868 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16869 ftfont_info only when HAVE_LIBOTF is defined.
16870
16871 2008-02-01 Andreas Schwab <schwab@suse.de>
16872
16873 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16874 and end.
16875
16876 2008-02-01 Jason Rumney <jasonr@gnu.org>
16877
16878 * w32font.c (w32font_driver): Add new fields.
16879
16880 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16881
16882 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16883 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16884 (LIBES): Add @M17N_FLT_CFLAGS@.
16885
16886 * composite.c (compose_text): Don't treat the new style
16887 composition specially.
16888
16889 * emacs.c (main): Call syms_of_font unconditionally.
16890
16891 * font.h (FONT_ENTITY_NOT_LOADABLE)
16892 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16893 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16894 (struct font_driver): New member shape.
16895 (font_registry_charsets): Extern it.
16896 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16897 (font_otf_capability, font_drive_otf): Delete their externs.
16898
16899 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16900 (font_charset_alist, font_registry_charsets): Move from xfont.c
16901 and rename.
16902 (font_prop_validate_otf): New function.
16903 (font_property_table): Register it for QCotf.
16904 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16905 (font_drive_otf): Delete.
16906 (font_prepare_composition): New arg F. Adjust for the change of
16907 lispy gstring.
16908 (font_find_for_lface): New arg C.
16909 (font_load_for_face): Adjust for the change of font_find_for_lface.
16910 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16911 lispy gstring.
16912 (Ffont_shape_text): New function.
16913 (Fopen_font): If the font size is not given, use 12-pixel.
16914 (Ffont_at): New arg STRING.
16915 (syms_of_font): Initalize font_charset_alist.
16916 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16917 conditionally.
16918
16919 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16920 fonts of the same font-spec. Change the format of RFONT-DEF.
16921 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16922 Adjust for the change of RFONT-DEF.
16923 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16924
16925 * ftfont.h: New file.
16926
16927 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16928 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16929 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16930 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16931 font_otf_capability and font_drive_otf, set ftfont_shape.
16932 (ftfont_list): Adjust for the change of :otf property value.
16933 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16934 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16935 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16936 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16937 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16938 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16939
16940 * w32term.c (x_draw_composite_glyph_string_foreground):
16941 Adjust for the change of lispy gstring.
16942
16943 * xdisp.c (handle_composition_prop): Adjust for the change of
16944 lispy gstring. Call a function for auto-composition with the
16945 third arg it->window.
16946 (fill_composite_glyph_string): Adjust for the change of lispy string.
16947 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16948
16949 * xfaces.c (set_font_frame_param): Adjust for the change of
16950 font_find_for_lface.
16951
16952 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16953 (xfont_registry_charsets): Likewise. Change caller.
16954 (syms_of_xfont): Don't handle x_font_charset_alist.
16955
16956 * xftfont.c: Include "ftfont.h".
16957 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16958 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16959 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16960 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16961 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16962 Set xftfont_driver.shape to xftfont_shape.
16963
16964 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16965 the change of lispy gstring.
16966
16967 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16968
16969 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16970
16971 2008-02-01 Jason Rumney <jasonr@gnu.org>
16972
16973 * w32font.c (w32font_draw): Fill background manually.
16974
16975 2008-02-01 Jason Rumney <jasonr@gnu.org>
16976
16977 * font.c (Qfontp): Remove unused symbol.
16978 (QCantialias): New symbol.
16979 (syms_of_font): Define it.
16980 (font_property_table): Set a validator for QCantialias.
16981
16982 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16983 Define if not already.
16984 (QCfamily): Share with xfaces.c.
16985 (Qstandard, Qsubpixel, Qnatural): New symbols.
16986 (syms_of_w32font): Define them. Don't define QCfamily here.
16987 (w32_antialias_type, lispy_antialias_type): New functions.
16988 (w32_enumfont_pattern_entity): New arg requested_font.
16989 Set antialias parameter if non-default was requested.
16990 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16991
16992 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16993
16994 * lread.c (read1): Undo the previous change.
16995
16996 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16997
16998 * frame.c (Fdelete_frame): Call font_update_drivers only when
16999 USE_FONT_BACKEND is defined.
17000
17001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17002
17003 * font.h (struct font_bitmap): New member bits_per_pixel.
17004 (struct font_driver): New members start_for_frame and end_for_frame.
17005 (struct font_data_list): New struct.
17006 (font_put_frame_data, font_get_frame_data): Extern them.
17007
17008 * frame.h (struct frame): New member font_data_list.
17009
17010 * font.c (font_update_drivers): Call driver->start_for_frame and
17011 driver->end_for_frame at proper timings.
17012 (font_put_frame_data, font_get_frame_data): New functions.
17013 (Ffont_spec): Add usage in the docstring.
17014
17015 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17016 (Fdelete_frame): Call font_update_drivers.
17017
17018 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17019 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17020 (xftfont_get_xft_draw): New function.
17021 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17022 (xftfont_end_for_frame): New function.
17023 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17024
17025 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17026 Change argument. Cache GCs in the per-frame data.
17027 (struct ftxfont_frame_data): New struct.
17028 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17029 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17030 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17031 (ftxfont_end_for_frame): New function.
17032 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17033
17034 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17035
17036 2008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * xselect.c (Vselection_coding_system)
17039 (Vnext_selection_coding_system): Delete them.
17040 (syms_of_xselect): Don't declare selection-coding-system and
17041 next-selection-coding-system. They are declared in select.el.
17042
17043 2008-02-01 Jason Rumney <jasonr@gnu.org>
17044
17045 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17046
17047 * w32fns.c: Include imm.h.
17048 (get_composition_string_fn, get_ime_context_fn): New optional
17049 system functions.
17050 (globals_of_w32fns): Load them from imm32.dll.
17051 (ignore_ime_char): New flag.
17052 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17053 WM_IME_ENDCOMPOSITION messages.
17054
17055 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17056 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17057
17058 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17059
17060 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17061 (READCHAR_REPORT_MULTIBYTE): New macro.
17062 (readchar): New 2nd arg MULTIBYTE.
17063 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17064 Make symbol's name multibyte according to the multibyteness of the
17065 source.
17066
17067 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17068
17069 * xfaces.c (face_for_overlay_string): Call lookup_face with
17070 correct arguments (fix of synching with the trunk).
17071
17072 2008-02-01 Kenichi Handa <handa@m17n.org>
17073
17074 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17075 (font_prop_validate_non_neg, font_prop_validate_spacing):
17076 Delete argument prop_index.
17077 (font_property_table): Change arguments to validater. Change Callers.
17078 (font_lispy_object): Delete.
17079 (font_at): Use font_find_object instead fo font_lispy_object.
17080
17081 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17082
17083 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17084 and file names.
17085
17086 2008-02-01 Jason Rumney <jasonr@gnu.org>
17087
17088 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17089 (font_matches_spec): Remove debug output.
17090 (add_font_entity_to_list): Avoid using substituted fonts.
17091
17092 2008-02-01 Jason Rumney <jasonr@gnu.org>
17093
17094 * doc.c (Fsnarf_documentation):
17095 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17096
17097 2008-02-01 Miles Bader <miles@gnu.org>
17098
17099 * dispextern.h (struct glyph_row): Only define "clip" field if
17100 HAVE_WINDOW_SYSTEM is defined.
17101
17102 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17103
17104 Fix up multi-tty merge.
17105
17106 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17107 and indentation.
17108
17109 * xfaces.c (free_realized_face, clear_face_gcs):
17110 Include font_done_for_face in the input_blocked section, just in case.
17111
17112 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17113 (get_char_face_and_encoding): Undo last change and remove the *other*
17114 duplicate definition (i.e. keep the one that's better scoped and that
17115 includes code for the font-backend).
17116
17117 * terminal.c (create_terminal): Default keyboard_coding to
17118 `no-conversion' and terminal_coding to `undecided'.
17119
17120 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17121
17122 * fontset.c (free_realized_fontsets): Check that the table entry does
17123 contain a fontset before trying to compare it to `base'.
17124
17125 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17126 syms_of_charset, and syms_of_coding earlier because init_window_once
17127 now needs Vcoding_system_hash_table to be setup.
17128
17129 * coding.h (default_buffer_file_coding): Remove.
17130
17131 * coding.c (default_buffer_file_coding): Remove.
17132 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17133 than ->symbol, and use the terminal-local coding system.
17134 (syms_of_coding): Don't setup the coding-systems that are not
17135 terminal-local.
17136 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17137
17138 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17139 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17140
17141 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17142 in chartab.c and were re-added here by mistake.
17143 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17144
17145 * doc.c (Fsnarf_documentation):
17146 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17147 src to etc.
17148
17149 * ChangeLog.10: Add mistakenly removed entry.
17150
17151 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17152
17153 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17154
17155 2008-02-01 Miles Bader <miles@gnu.org>
17156
17157 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17158 Add extra args to FACE_FOR_CHAR.
17159
17160 2008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17163 in sequence.
17164
17165 * chartab.c (map_sub_char_table, map_char_table): If the range
17166 contains just one character, call the function with that character
17167 even if the depth is not 3.
17168
17169 2008-02-01 Jason Rumney <jasonr@gnu.org>
17170
17171 * w32font.c (w32font_text_extents): Calculate metrics for the
17172 whole string.
17173
17174 2008-02-01 Jason Rumney <jasonr@gnu.org>
17175
17176 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17177
17178 2008-02-01 Jason Rumney <jasonr@gnu.org>
17179
17180 * w32term.c (x_set_glyph_string_clipping): Use
17181 get_glyph_string_clip_rects.
17182 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17183 Adjust for the change of struct glyph_string.
17184
17185 * w32font.c (w32font_draw): Do clipping here.
17186
17187 2008-02-01 Kenichi Handa <handa@m17n.org>
17188
17189 * xftfont.c (xftfont_draw): Adjust for the change of struct
17190 glyph_string.
17191
17192 * xterm.c (x_set_glyph_string_clipping): Use
17193 get_glyph_string_clip_rects.
17194 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17195 Adjust for the change of struct glyph_string.
17196
17197 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17198 the resulting clip(s}.
17199 (expose_overlaps): Add arg r. Change callers. Set it to
17200 row->clip temporarily.
17201 (expose_window): Redraw rows overlapping the exposed area.
17202
17203 * dispextern.h (struct glyph_row): New member clip.
17204 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17205 clip_height, new member clip, and num_clips.
17206
17207 2008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * data.c (Fchar_or_string_p): Fix docstring.
17210
17211 2008-02-01 Kenichi Handa <handa@m17n.org>
17212
17213 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17214 create a temporary XftDraw object.
17215
17216 2008-02-01 Kenichi Handa <handa@m17n.org>
17217
17218 * font.c (Ffontp): Fix docstring.
17219
17220 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17221 strong evidence of ISO-2022.
17222
17223 2008-02-01 Kenichi Handa <handa@m17n.org>
17224
17225 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17226 SYNTAX_ENTRY_FOLLOW_PARENT.
17227
17228 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17229
17230 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17231 its type.
17232 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17233 Update to the new type of weak_hash_tables and next_weak.
17234
17235 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17236 a plain C pointer to Lisp_Hash_Table.
17237
17238 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17239 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17240 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17241 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17242 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17243 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17244 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17245 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17246 (GC_EQ): Remove since they've been identical to their non-GC_
17247 alter-egos ever since the markbit was eradicated.
17248
17249 * alloc.c:
17250 * buffer.c:
17251 * buffer.h:
17252 * data.c:
17253 * fileio.c:
17254 * filelock.c:
17255 * fns.c:
17256 * frame.h:
17257 * lisp.h:
17258 * macterm.c:
17259 * print.c:
17260 * process.c:
17261 * w32fns.c:
17262 * w32menu.c:
17263 * w32term.c:
17264 * xfns.c:
17265 * xmenu.c:
17266 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17267
17268 2008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * chartab.c (map_sub_char_table): Make it work for the top-level
17271 char-table. Fix handling of parent char-table.
17272 (map_char_table): Adjust for the above change.
17273
17274 2008-02-01 Jason Rumney <jasonr@gnu.org>
17275
17276 * w32font.c (Qgdi): Rename from Qw32.
17277
17278 2008-02-01 Jason Rumney <jasonr@gnu.org>
17279
17280 * w32bdf.c (get_quoted_string): Make function static.
17281
17282 2008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17285 bigger ascent and descent than those of the font, use them as
17286 font's ascent and descent.
17287
17288 2008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * Makefile.in (${lispsource}international/charprop.el): Move this
17291 target within "#ifdef HAVE_UNIDATA" and "#endif".
17292
17293 2008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17296 (shortlisp): Add ../lisp/language/tai-viet.el.
17297
17298 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
17299
17300 * Makefile.in (${lispsource}international/charprop.el): Depend on
17301 temacs${EXEEXT}.
17302
17303 2008-02-01 Jason Rumney <jasonr@gnu.org>
17304
17305 * w32font.c (w32font_close): Delete the GDI font object.
17306
17307 * w32menu.c: Include character.h.
17308
17309 * w32proc.c: Likewise.
17310
17311 * w32select.c: Likewise.
17312
17313 * makefile.w32-in (w32proc.o): Depend on character.h.
17314
17315 2008-02-01 Jason Rumney <jasonr@gnu.org>
17316
17317 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17318
17319 * w32menu.c (syms_of_w32menu): Likewise.
17320
17321 * w32proc.c (syms_of_ntproc): Likewise.
17322
17323 * w32select.c (syms_of_w32select): Likewise.
17324
17325 * w32term.c (syms_of_w32term): Likewise.
17326
17327 2008-02-01 Jason Rumney <jasonr@gnu.org>
17328
17329 * w32font.c (w32font_draw): Delete brush after using it.
17330
17331 2008-02-01 Jason Rumney <jasonr@gnu.org>
17332
17333 * w32font.c (w32font_open): Don't set font_idx.
17334 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17335 to font settings.
17336 (w32font_draw): Fill background explicitly.
17337
17338 2008-02-01 Jason Rumney <jasonr@gnu.org>
17339
17340 * w32term.c (w32_initialize): Don't call w32font_initialize.
17341
17342 * w32font.c (w32font_info): Remove subranges.
17343 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17344 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17345 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17346 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17347 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17348 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17349 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17350 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17351 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17352 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17353 New symbols.
17354 (font_callback_data): New struct.
17355 (w32font_list, w32font_match): Use it.
17356 (w32font_open): Don't populate subranges.
17357 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17358 (w32font_encode_char): Always return unicode code-point as-is.
17359 (w32font_text_extents): Supply a transformation matrix to
17360 GetGlyphOutline. Never look up by glyph index. Avoid looping
17361 twice. Use unicode version of GetTexExtentPoint32 instead of
17362 glyph index version.
17363 (set_fonts_frame): Remove.
17364 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17365 set frame parameter. Use backward compatible fake foundries.
17366 Save generic family in extra slot under QCfamily. Make width slot
17367 constant. Save QCspacing value. Save list of scripts instead of
17368 binary subranges.
17369 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17370 (add_font_entity_to_list): Use font_callback_data struct. Filter
17371 unwanted fonts.
17372 (add_one_font_entity_to_list): Use font_callback_data struct.
17373 (w32_registry): Default to iso10646_1.
17374 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17375 string font registries. Don't fill in font name if it is a generic
17376 family name, fill family instead. Use spacing, family and script
17377 extra info to fill pitch, family and charset fields.
17378 (list_all_matching_fonts): Use font_callback_data struct.
17379 (unicode_range_for_char): Remove.
17380 (font_supported_scripts): New function.
17381 (w32font_initialize): Remove.
17382 (syms_of_w32font): Update which symbols are defined.
17383
17384 2008-02-01 Jason Rumney <jasonr@gnu.org>
17385
17386 * font.c (font_pixel_size): Reverse assq_no_quit args.
17387
17388 * w32term.h (FONT_WIDTH): Report max width, not average.
17389 (FONT_MAX_WIDTH): Remove.
17390 (FONT_AVG_WIDTH): New macro.
17391
17392 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17393 redefinition of FONT_WIDTH.
17394
17395 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17396 (w32_cache_char_metrics): Use FONT_WIDTH.
17397
17398 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17399
17400 2008-02-01 Jason Rumney <jasonr@gnu.org>
17401
17402 * w32font.c (w32font_open): Make lfHeight negative.
17403
17404 * w32fns.c (x_default_font_parameter): Use new style font name.
17405 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17406
17407 2008-02-01 Jason Rumney <jasonr@gnu.org>
17408
17409 * w32font.c (QCsubranges): New symbol.
17410 (w32font_open, w32font_has_char): Get subranges from subproperty
17411 of extra.
17412 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17413 (syms_of_w32font): Define :subranges symbol.
17414
17415 * font.c (font_put_extra): Expose externally.
17416
17417 * font.h (font_put_extra): Move declaration from font.c.
17418
17419 * font.c (Ffont_get): Use font driver to determine otf capability.
17420 (adjust_anchor): Check if driver defines anchor_point before using.
17421
17422 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17423 (w32font_draw): Use options.
17424 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17425 Fix detection of truetype fonts.
17426 (registry_to_w32_charset): Handle charsets other than iso8859-1
17427 expressed as lisp symbols.
17428 (w32_registry): Express charset as lisp symbol.
17429 (fill_in_logfont): Reverse pixel and point height logic.
17430 Don't set width here. Set quality to default.
17431
17432 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17433 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17434
17435 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17436 Remove redundant loop and allocation.
17437
17438 * makefile.w32-in (font.o, w32font.o): New objects.
17439 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17440 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17441
17442 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17443 STORE_XCHARB a valid l-value.
17444
17445 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17446 calculations for non-Truetype fonts.
17447 (x_draw_glyph_string): Sync with xterm.c.
17448 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17449 Remove redundant code.
17450 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17451
17452 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17453 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17454
17455 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17456 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17457
17458 * w32font.c: New file for w32 font backend.
17459
17460 2008-02-01 Kenichi Handa <handa@m17n.org>
17461
17462 * term.c: Don't include "buffer.h" twice.
17463
17464 2008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * character.c (Funibyte_string): New function.
17467 (syms_of_character): Defsubr it.
17468
17469 2008-02-01 Jason Rumney <jasonr@gnu.org>
17470
17471 * w32term.c [USE_FONT_BACKEND]:
17472 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17473 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17474 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17475 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17476 (x_free_frame_resources): Sync with xterm.c.
17477
17478 2008-02-01 Andreas Schwab <schwab@suse.de>
17479
17480 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17481 char-table size.
17482
17483 2008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17486
17487 2008-02-01 Kenichi Handa <handa@m17n.org>
17488
17489 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17490 font_otf_gpos, add font_drive_otf.
17491
17492 * fontset.c (fontset_find_font): Pay attention to font size
17493 specified for a font.
17494 (reorder_font_vector): Check contents of font_def.
17495
17496 * font.c (struct otf_list): Delete it.
17497 (otf_list): Make it a lisp variable.
17498 (otf_open): Use lispy otf_list.
17499 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17500 (check_otf_features): New function.
17501 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17502 New functions.
17503 (font_drive_otf): New function merging font_otf_gsub and
17504 font_otf_gpos.
17505 (font_open_for_lface): New arg spec. Change argument order.
17506 (font_load_for_face): Adjust for the change of font_open_for_lface.
17507 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17508 Ffont_otf_gpos.
17509 (syms_of_font): Staticpro otf_list. Delete defsubr of
17510 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17511
17512 * xfaces.c (set_font_frame_param): Adjust for the change of
17513 font_open_for_lface.
17514
17515 * font.h (font_open_for_lface): Adjust prototype.
17516 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17517 member otf_drive.
17518 (font_otf_gsub, font_otf_gpos): Delete externs.
17519 (font_drive_otf): Extern it.
17520
17521 2008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * font.c (font_at): If the window W is not on a window system,
17524 return Qnil.
17525
17526 * coding.c (produce_chars, encode_coding): Don't call
17527 insert_from_gap if no characters to produce.
17528
17529 2008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17532 Fclear_face_cache.
17533
17534 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17535
17536 2008-02-01 Miles Bader <miles@gnu.org>
17537
17538 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17539 Parse "--disable-font-backend" option.
17540 (standard_args): Add "--disable-font-backend" option.
17541
17542 2008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * fontset.c (fontset_find_font): New function.
17545 (fontset_font): Use fontset_find_font.
17546 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17547 Register the specified font for all Latin characters.
17548 (new_fontset_from_font): Register the specified font for all Latin
17549 characters.
17550 (dump_fontset): For a realized fontset, include the base fontset
17551 name in the returned vector.
17552
17553 2008-02-01 Kenichi Handa <handa@m17n.org>
17554
17555 * character.h (CHAR_STRING): Cast C to unsigned on calling
17556 char_string.
17557
17558 * character.c (char_string): Type of arg C changed to unsigned.
17559 Signal an error if C is an invalid character code.
17560
17561 * editfns.c (general_insert_function, Fchar_to_string):
17562 Use CHARACTERP, not INTEGERP.
17563
17564 2008-02-01 Kenichi Handa <handa@m17n.org>
17565
17566 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17567 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17568
17569 * regex.c (analyse_first): Fix for multibyte characters in "case
17570 charset:" and "case categoryspec:".
17571
17572 2008-02-01 Andreas Schwab <schwab@suse.de>
17573
17574 * Makefile.in (LIBES): Move standard libraries to the end.
17575
17576 2008-02-01 Kenichi Handa <handa@m17n.org>
17577
17578 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17579 nonzero, don't shrink the buffer nextb.
17580
17581 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17582
17583 * coding.c (coding_alloc_by_making_gap): New arg offset.
17584 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17585 offset.
17586 (decode_coding_iso_2022): Update coding->safe_charsets.
17587 (decode_coding_gap): Temporarily set
17588 current_buffer->text->inhibit_shrinking to 1.
17589
17590 2008-02-01 Kenichi Handa <handa@m17n.org>
17591
17592 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17593 indexing into elements of s->cmp and s->char2b.
17594
17595 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
17596
17597 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17598
17599 2008-02-01 Kenichi Handa <handa@m17n.org>
17600
17601 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17602 target_multibyte instead of multibyte.
17603 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17604 (bcmp_translate): Change the argument name from multibyte to
17605 target_multibyte.
17606
17607 2008-02-01 Kenichi Handa <handa@m17n.org>
17608
17609 These changes are to compile a regexp into a pattern that can be
17610 used both for multibyte and unibyte targets.
17611
17612 * Makefile.in (search.o): Depend on charset.h.
17613
17614 * character.c (multibyte_char_to_unibyte_safe): New function.
17615
17616 * search.c: Include "charset.h".
17617 (compile_pattern_1): Delete argument multibyte. Don't set
17618 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17619 (compile_pattern): Don't compare cp->buf.target_multibyte.
17620 Compare cp->buf.charset_unibyte.
17621 (compile_pattern): Set cp->buf.target_multibyte.
17622
17623 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17624
17625 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17626
17627 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17628 multibyte. Change callers.
17629 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17630 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17631 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17632 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17633 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17634 (regex_compile): Make the compiled pattern usable both for
17635 multibyte and unibyte targets.
17636 (analyse_first): Make the fastmap usable both for multibyte and
17637 unibyte targets.
17638 (TRANSLATE_VIA_MULTIBYTE): Delete.
17639 (re_match_2_internal): Pay attention to the case that the
17640 multibyteness of bufp and target may be different.
17641
17642 2008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17645 empty box occupy at least one column width.
17646
17647 2008-02-01 Miles Bader <miles@gnu.org>
17648
17649 * Makefile.in: Remove redundant HAVE_XFT clause.
17650
17651 2008-02-01 Kenichi Handa <handa@m17n.org>
17652
17653 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17654
17655 2008-02-01 Kenichi Handa <handa@m17n.org>
17656
17657 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17658 being nil.
17659
17660 2008-02-01 Kenichi Handa <handa@m17n.org>
17661
17662 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17663
17664 2008-02-01 Kenichi Handa <handa@m17n.org>
17665
17666 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17667
17668 2008-02-01 Kenichi Handa <handa@m17n.org>
17669
17670 * search.c (simple_search): Fix previous change.
17671
17672 2008-02-01 Kenichi Handa <handa@m17n.org>
17673
17674 * xftfont.c (ftfont_font_format): Extern declaration.
17675
17676 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17677
17678 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17679 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17680
17681 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17682 (ftfont_font_format): Fix previous change.
17683
17684 * font.h (Ffont_xlfd_name): EXFUN it.
17685
17686 * font.c (font_parse_xlfd): Fix the array size of `f'.
17687 (register_font_driver): Use EQ to compare driver->type.
17688
17689 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17690 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17691 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17692
17693 2008-02-01 Kenichi Handa <handa@m17n.org>
17694
17695 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17696 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17697
17698 2008-02-01 Kenichi Handa <handa@m17n.org>
17699
17700 * xfont.c (xfont_open): Set font->format.
17701
17702 * xftfont.c (xftfont_open): Set font->format.
17703
17704 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17705 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17706 (ftfont_open): Set font->format.
17707 (ftfont_font_format): New function.
17708
17709 * font.h (struct font): New member format.
17710
17711 * font.c (Qopentype): New variable.
17712 (syms_of_font): Defsym it.
17713 (Fquery_font): Change the format of the last element of the return
17714 value.
17715
17716 2008-02-01 Kenichi Handa <handa@m17n.org>
17717
17718 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17719 last resort.
17720
17721 2008-02-01 Kenichi Handa <handa@m17n.org>
17722
17723 * coding.c (detect_coding_charset): Fix detection of multi-byte
17724 charset.
17725
17726 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17727
17728 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17729
17730 2008-02-01 Kenichi Handa <handa@m17n.org>
17731
17732 * xdisp.c (get_next_display_element): Set it->face_id for the
17733 first component of a composition.
17734 (x_produce_glyphs): Check if the font is changed or not for composition.
17735
17736 2008-02-01 Kenichi Handa <handa@m17n.org>
17737
17738 * fontset.c (Qlatin): New variable.
17739 (syms_of_fontset): Define it as a lisp symbol.
17740 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17741
17742 2008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * font.c (font_unparse_fcname): Pay attention to the case that
17745 some of font property is a null string.
17746
17747 2008-02-01 Kenichi Handa <handa@m17n.org>
17748
17749 * term.c: Include "composite.h".
17750 (encode_terminal_code): Output all components of composition.
17751 Check the size of encode_terminal_src.
17752 (produce_glyphs): For composition, call produce_composite_glyph.
17753 (append_composite_glyph, produce_composite_glyph): New functions.
17754
17755 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17756 is not found, get font_info from the current ascii face.
17757
17758 2008-02-01 Kenichi Handa <handa@m17n.org>
17759
17760 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17761 buffer-file-name to Qnil before calling insert_from_buffer.
17762
17763 * font.c (font_unparse_fcname): Pay attention to the case that
17764 foundry is a null string.
17765
17766 2008-02-01 Kenichi Handa <handa@m17n.org>
17767
17768 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17769
17770 * font.c (Qunicode_sip): New variable.
17771 (syms_of_font): Declare it as a Lisp symbol.
17772
17773 * font.h (Qunicode_sip): Extern it.
17774
17775 2008-02-01 Kenichi Handa <handa@m17n.org>
17776
17777 * composite.c (get_composition_id): Pay attention to TAB component.
17778
17779 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17780 TAB. Adjust for the change of s->char2b which always points to
17781 the first element of allocated memory.
17782
17783 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17784
17785 * xdisp.c (handle_composition_prop): Set it->c to the first
17786 non-TAB component.
17787 (fill_composite_glyph_string): Change argument.
17788 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17789 (x_produce_glyphs): Fix handling of left/right padding.
17790
17791 2008-02-01 Kenichi Handa <handa@m17n.org>
17792
17793 * coding.c (detect_coding_system): Fix for handling off
17794 inhibit_iso_escape_detection. Fix for the case that no coding
17795 system is defined for a specific coding category.
17796
17797 2008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * font.c (font_matching_entity): Delete unused local var.
17800
17801 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17802 opening a font.
17803
17804 * fileio.c (Finsert_file_contents): On recovering a file, assume
17805 Unix-like eol.
17806 (choose_write_coding_system): On auto-saving a file, force
17807 Unix-like eol.
17808
17809 * coding.c (setup_coding_system): Fix setting of
17810 coding->common_flags based on eol_type.
17811 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17812 inherit from it.
17813
17814 2008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 * alloc.c (NSTATICS): Increas to 0x600.
17817
17818 2008-02-01 Kenichi Handa <handa@m17n.org>
17819
17820 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17821 (ftfont_list): Don't check :name property.
17822 (ftfont_match): New function.
17823 (ftfont_pattern_entity): If the pattern doesn't contain
17824 FC_SPACING, don't assume FC_MONO.
17825
17826 * font.h (struct font_driver): New member `match'.
17827 (font_update_drivers): Adjust prototype.
17828
17829 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17830 property of FONT.
17831 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17832 them unconditionally.
17833 (font_matching_entity): New function.
17834 (font_open_by_name): Try font_matching_entity if exact match is
17835 not found.
17836 (font_update_drivers): Delete the arg FONT. Return a list of
17837 actually used backends. Don't free faces, font caches here.
17838 Don't store data in frame parameters. Don't call x_set_font.
17839 (Ffont_spec): Store :name property as is.
17840 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17841 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17842 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17843 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17844 Call font->driver->otf_gsub instead of font_otf_gsub.
17845
17846 * frame.c (x_set_font_backend): Do more works that were done in
17847 font_update_drivers before.
17848
17849 * xfont.c (xfont_match): New function.
17850 (xfont_driver): Set xfont_driver.match to xfont_match.
17851 (xfont_draw): Set font in GC if necessary.
17852
17853 * ftxfont.c (ftxfont_match): New function.
17854 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17855
17856 * xftfont.c (xftfont_match): New function.
17857 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17858
17859 2008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 * font.h (struct font): New member scalable.
17862 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17863 (font_otf_gsub): Adjust prototype.
17864
17865 * font.c (font_otf_capability): Fix handling of the default langsys.
17866 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17867 Check the contents of SPEC.
17868 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17869 (check_gstring): New function.
17870 (REPLACEMENT_CHARACTER): New macro.
17871 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17872 glyph codes of GSTRING.
17873 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17874 (font_prepare_composition): Set cmp->glyph_len.
17875 (font_open_entity): Set font->scalable.
17876 (Ffont_get): Handle :otf property.
17877 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17878 functions.
17879 (Fquery_font): Use font->font.full_name.
17880 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17881 Sfont_otf_alternates.
17882
17883 * ftfont.c (ftfont_open): Set font->font.full_name and
17884 font->font.name properly. Fix calculation of font->font.height
17885 and font->min_width.
17886
17887 * ftxfont.c (ftxfont_create_gcs): New function.
17888 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17889 (ftxfont_draw_backgrond): Fix filling region.
17890 (ftxfont_default_fid): New function.
17891 (ftxfont_open): Set xfont->fid to the return value of
17892 ftxfont_default_fid.
17893 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17894 (ftxfont_done_face): Free only GCs that are created by
17895 ftxfont_create_gcs.
17896 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17897
17898 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17899 Clip to src->width, etc (not src->clip_XXX).
17900
17901 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17902 FontBackend frame parameter.
17903
17904 2008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * font.h (struct font_driver_list): New member `on'.
17907 (Fclear_font_cache): EXFUN it.
17908 (font_update_drivers): Extern it.
17909
17910 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17911 (font_list_entities): Check driver_list->on.
17912 (register_font_driver): Initalize `on' member to 0.
17913 (font_update_drivers): New function.
17914 (Fclear_font_cache): Check driver_list->on.
17915
17916 * frame.h (Qfont_backend): Extern it.
17917 (x_set_font_backend): Extern it.
17918
17919 * frame.c (Qfont_backend): New variable.
17920 (frame_parms): New element for font-backend.
17921 (x_set_font_backend): New function.
17922
17923 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17924 FontBackend frame parameter.
17925 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17926 x_set_font_backend.
17927
17928 * xfont.c (xfont_list): Don't try listing by :name property if the
17929 name is not for XLFD.
17930
17931 2008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17934 (LGLYPH_SET_TO): New macros.
17935 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17936 element of G is vector or not.
17937 (font_at): Extern it.
17938
17939 * font.c: Include window.h.
17940 (font_lispy_object): New function.
17941 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17942 end of valid glyph.
17943 (font_close_object): Fix getting (struct font *).
17944 (font_at): New function.
17945 (Ffont_get): If FONT is a font-object, get entity from it.
17946 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17947 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17948 range check.
17949 (Ffont_at): New function.
17950 (syms_of_font): Defsubr Sfont_at.
17951
17952 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17953 before the entry for Qcomposition.
17954 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17955 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17956 the font in gstring.
17957 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17958 LGLYPH_FORM (g) to detect the end of valid glyph.
17959 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17960 we are composing with gstring.
17961
17962 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17963 Check if adjustment is vector or not.
17964
17965 * Makefile.in (font.o): Make it depends on window.h.
17966
17967 2008-02-01 Kenichi Handa <handa@m17n.org>
17968
17969 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17970 adjustment is vector or not.
17971
17972 2008-02-01 Miles Bader <miles@gnu.org>
17973
17974 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17975
17976 2008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17979 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17980 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17981
17982 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17983 (DEVICE_DELTA): Fix typo.
17984 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17985 LGLYPH format.
17986
17987 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17988 the change of LGLYPH format.
17989
17990 2008-02-01 Kenichi Handa <handa@m17n.org>
17991
17992 * ftfont.c (ftfont_list): Fix typo.
17993 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17994
17995 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17996
17997 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17998
17999 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18000 xftface_info is non-NULL.
18001
18002 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18003
18004 * ftfont.c (ftfont_list): Move misplaced #endif.
18005
18006 2008-02-01 Kenichi Handa <handa@m17n.org>
18007
18008 * ftfont.c (ftfont_list): Pay attention to the case that
18009 FC_CAPABILITY is not defined.
18010
18011 2008-02-01 Kenichi Handa <handa@m17n.org>
18012
18013 * xftfont.c (xftfont_open): Set charset related members to -1.
18014
18015 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18016 QCname.
18017 (ftfont_open): Set charset related members to -1.
18018
18019 * fontset.c (Votf_script_alist): New variable.
18020 (syms_of_fontset): Initialize it.
18021 (fontset_font): Delete unused variable.
18022
18023 * fontset.h (Votf_script_alist): Extern it.
18024
18025 * font.c (font_find_for_lface): Optimize code.
18026
18027 * font.h (font_close_object, font_merge_old_spec): Extern them.
18028
18029 2008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18032 (syms_of_font): Initialize them.
18033 (font_pixel_size): Allow float value in dpi.
18034 (font_prop_validate_type): Delete.
18035 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18036 Change caller.
18037 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18038 (font_prop_validate_extra): Delete.
18039 (font_prop_validate_spacing): New function.
18040 (font_property_table): Add elements for all known properties.
18041 (get_font_prop_index): Rename from check_font_prop_name. New
18042 argument FROM. Change caller.
18043 (font_prop_validate): Validate all known properties.
18044 (font_put_extra): Delete argument force. Change caller.
18045 (font_expand_wildcards): Make it static. Fix the way of shrinking
18046 the possible range.
18047 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18048 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18049 Change caller.
18050 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18051 (font_parse_fcname): Delete argument merge. Fix parsing of point
18052 size. Don't validate properties values here. Change caller.
18053 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18054 (font_open_by_name): Delete unused variable.
18055 (Ffont_spec): Likewise. Validate property values.
18056 (Ffont_match_p): New function.
18057
18058 * font.h (QCscalable): Extern it.
18059 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18060
18061 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18062
18063 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18064 (xfont_list_pattern): New function.
18065 (xfont_list): Use xfont_list_pattern.
18066
18067 2008-02-01 Kenichi Handa <handa@m17n.org>
18068
18069 * font.h (Flist_fonts): EXFUN it.
18070
18071 2008-02-01 Jason Rumney <jasonr@gnu.org>
18072
18073 * w32term.c (w32_initialize): Add back smoothing_type and
18074 smoothing_enabled definitions.
18075
18076 2008-02-01 Kenichi Handa <handa@m17n.org>
18077
18078 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18079 s->face->font on determining underline position.
18080
18081 2008-02-01 Kenichi Handa <handa@m17n.org>
18082
18083 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18084 (font_has_char): Accept font-object too.
18085 (font_find_for_lface): Try at first with a size specified in face.
18086
18087 2008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18090 font_open_by_name.
18091
18092 2008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * font.h (QCspacing, QCdpi): Extern them.
18095 (enum font_spacing): New enum.
18096 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18097
18098 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18099 (QCspacing, QCdpi): New variables.
18100 (syms_of_font): Initialize them.
18101 (font_pixel_size): New function.
18102 (font_put_extra): New function.
18103 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18104 in FONT_EXTRA.
18105 (font_parse_fcname): Handle enumerated values (e.g. bold).
18106 Fix handling font size. Add QCname property that contains only
18107 unknown properties.
18108 (font_score): Change argument. Change caller. Pay attention to
18109 FONT_PIXEL_SIZE_QUANTUM.
18110 (font_sort_entites, font_list_entities, font_find_for_lface)
18111 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18112 (Ffont_spec): Add QCname property that contains only unknown properties.
18113
18114 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18115 include weight in listing pattern, instead check weight of each
18116 listed font. Don't include scalable in pattern. Pay attention to
18117 FONT_PIXEL_SIZE_QUANTUM.
18118
18119 2008-02-01 Kenichi Handa <handa@m17n.org>
18120
18121 * font.c (font_parse_fcname): Fix parsing of point-size.
18122 (font_unparse_fcname): Produce symbolic names for style properties.
18123 (font_list_entities): Handle float size correctly.
18124 (font_open_by_name): Prefer `normal' property values if the name
18125 doesn't specify them.
18126
18127 * fontset.c (Finternal_char_font): Use font_get_name, not
18128 Ffont_xlfd_name.
18129
18130 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18131 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18132 pattern. Don't force scalable.
18133
18134 * xftfont.c (xftfont_open): For generating a name, start from
18135 96-byte buffer.
18136
18137 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18138
18139 * frame.h (x_new_fontset2): Fix prototype.
18140
18141 2008-02-01 Kenichi Handa <handa@m17n.org>
18142
18143 * font.h (struct font_driver): Delete member parse_name.
18144 (font_match_p, font_get_spec, font_parse_fcname)
18145 (font_unparse_fcname): Extern them.
18146 (font_get_name): Adjust prototype.
18147
18148 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18149 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18150 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18151 unnecessary checks for weight, slant, and swidth.
18152 (font_parse_fcname): New function.
18153 (font_unparse_fcname): New function.
18154 (font_parse_name): New function.
18155 (font_match_p): New function.
18156 (font_get_name): Change return value to Lisp string.
18157 (font_get_spec): New function.
18158 (Qunspecified, Qignore_defface): Don't extern them.
18159 (font_find_for_lface): Assume that LFACE is fully specified.
18160 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18161 object, use it for FACE.
18162 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18163 driver->parse_name.
18164 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18165
18166 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18167 prototype.
18168
18169 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18170 argument F. Don't call Fnew_fontset. Instead, directly call
18171 make_fontset.
18172
18173 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18174
18175 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18176 of x_new_fontset2.
18177
18178 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18179 (Qsans__serif): New variables.
18180 (ftfont_generic_family_list): New variable.
18181 (syms_of_ftfont): Initialize the above variables.
18182 (ftfont_pattern_entity): Delete argument NAME.
18183 (ftfont_list_generic_family): New function.
18184 (ftfont_parse_name): Delete this function.
18185 (ftfont_list): Try generic family only when FcFontList found no font.
18186 (ftfont_list_family): Fix args to FcObjectSetBuild.
18187
18188 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18189 object in attrs[LFACE_FONT_INDEX].
18190 (set_lface_from_font_name): Cancel all changes for font-backend.
18191 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18192 function.
18193 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18194 font object in QCfont attribute.
18195 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18196 (realize_default_face) [USE_FONT_BACKEND]: Call
18197 set_lface_from_font_and_fontset.
18198
18199 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18200 "fixed", and signal error here if no suitable font was found.
18201
18202 * xfont.c (xfont_parse_name): Delete this function.
18203
18204 * xftfont.c (xftfont_open): Change coding style of error
18205 handling. Generate fontconfig's fontname pattern.
18206
18207 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18208 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18209
18210 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18211 Both args FONTSET and FONT_OBJECT must be existing ones.
18212
18213 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18214
18215 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18216
18217 2008-02-01 Kenichi Handa <handa@m17n.org>
18218
18219 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18220
18221 * font.h (struct font): Fix typo.
18222
18223 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18224 XLFD_XXX_INDEX.
18225 (enum xlfd_field_mask): New enum.
18226 (intern_font_field): Changed argument. Change caller. If digits
18227 are followed by non-digits, return a symbol.
18228 (font_expand_wildcards): New function.
18229 (font_parse_xlfd): Fix wildcard handling.
18230 (Ffont_spec): If :name is specified, reflect the info in the other
18231 properties.
18232
18233 * ftfont.c (ftfont_pattern_entity): Fix typo.
18234 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18235 locale.
18236
18237 2008-02-01 Kenichi Handa <handa@m17n.org>
18238
18239 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18240
18241 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18242 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18243 registry doesn't specify encoding part.
18244 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18245 (font_open_by_name): At first try parsing the name.
18246 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18247 as Lisp symbols.
18248
18249 * fontset.c (reorder_font_vector): Pay attention to the case that
18250 the 3rd element of font_def is nil.
18251 (fontset_font): For the default fontset, append one more fontset
18252 elements for a script-based font specification. Don't add script
18253 attribute on finding a font.
18254 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18255 font name.
18256 (fontset_ascii_font): If a font can't be opened, return nil.
18257
18258 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18259 (ftfont_pattern_entity): New function.
18260 (ftfont_get_cache): Assume that freetype_font_cache is already
18261 initialized.
18262 (ftfont_list): Handle the case that a file is specified in font
18263 name. Use ftfont_pattern_entity to generate entities.
18264 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18265 (syms_of_ftfont): Initialize freetype_font_cache.
18266
18267 * xftfont.c (xftfont_open): Make the font name fontconfig's
18268 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18269 (xftfont_close): Free font->font.name if not NULL.
18270
18271 * xfont.c (xfont_list): If script is specified for a font, return
18272 null_vector.
18273 (xfont_list_family): Declare argument type.
18274
18275 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18276 name, set LFACE_FONT (lface) to nil.
18277
18278 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18279 return Qnil.
18280
18281 2008-02-01 Kenichi Handa <handa@m17n.org>
18282
18283 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18284 (standard_args): Add "-enable-font-backend".
18285
18286 2008-02-01 Kenichi Handa <handa@m17n.org>
18287
18288 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18289 (struct xftdraw_list, xftdraw_list): Delete them.
18290 (register_xftdraw, check_xftdraw): Delete them.
18291 (xftfont_prepare_face): Don't call register_xftdraw.
18292 (xftfont_done_face): Don't call check_xftdraw.
18293 (xftfont_draw): Get background color only when with_background is
18294 nonzero.
18295
18296 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18297
18298 2008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 These changes are for the new font handling codes.
18301
18302 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18303 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18304 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18305 (FONTSRC, FONTOBJ): New variables.
18306 (obj): Add $(FONTOBJ).
18307 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18308 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18309 @LIBOTF_LIBS@.
18310 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18311 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18312
18313 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18314
18315 * character.h (Vscript_representative_chars): Extern it.
18316
18317 * character.c (Vscript_representative_chars): New variable.
18318 (syms_of_character): Declare it as a Lisp variable.
18319
18320 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18321 enable_font_backend is nonzero, accept the composition method
18322 COMPOSITION_WITH_GLYPH_STRING.
18323
18324 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18325 enumeration COMPOSITION_WITH_GLYPH_STRING.
18326
18327 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18328 members clip_x, clip_y, clip_width, and clip_height.
18329 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18330
18331 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18332 --enable-font-backend. Call syms_of_font.
18333
18334 * fns.c (assoc_no_quit): New function.
18335
18336 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18337 (face_for_font, new_fontset_from_font)
18338 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18339
18340 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18341 (fontset_font, fontset_ascii, face_for_char)
18342 (make_fontset_for_ascii_face, Ffont_info)
18343 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18344 is nonzero, use font-backend mechanism.
18345 (find_font_encoding): Make it non-static.
18346 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18347 New functions.
18348
18349 * frame.h (struct frame): New members resx and resy.
18350 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18351 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18352
18353 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18354 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18355
18356 * lisp.h (assoc_no_quit): Extern it.
18357
18358 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18359 Through out the file, use FONT_INFO_FROM_FACE instead of
18360 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18361 rif->per_char_metric.
18362 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18363 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18364 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18365 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18366 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18367 nonzero, use font-backend mechanism.
18368 (get_per_char_metric): New function.
18369
18370 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18371 (set_lface_from_font_name)
18372 (set_font_frame_param, free_realized_face)
18373 (prepare_face_for_display, clear_face_gcs)
18374 (Finternal_set_font_selection_order, realize_x_face)
18375 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18376 font-backend mechanism.
18377 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18378 (load_face_font) [USE_FONT_BACKEND]: Abort.
18379 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18380 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18381
18382 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18383 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18384 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18385 nonzero, register all available font drivers. Call
18386 x_default_font_parameter for deciding a font.
18387 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18388
18389 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18390 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18391 (x_set_glyph_string_clipping_exactly)
18392 (x_compute_glyph_string_overhangs)
18393 (x_draw_glyph_string_foreground)
18394 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18395 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18396 enable_font_backend is nonzero, use font-backend mechanism.
18397 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18398
18399 2008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18402 system_eol_type.
18403 (syms_of_coding): Initialize system_eol_type.
18404
18405 * process.c (Fset_process_coding_system): Inherit system's eol
18406 format if necessary.
18407
18408 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18409
18410 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18411
18412 2008-02-01 Kenichi Handa <handa@m17n.org>
18413
18414 * coding.c (decode_eol): Pay attention to buffer relocation in
18415 del_range_2.
18416 (decode_coding): Call decode_eol before restoring undo_list.
18417
18418 2008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * charset.c (Fdefine_charset_internal): Fix setting of
18421 emacs_mule_bytes.
18422
18423 2008-02-01 Kenichi Handa <handa@m17n.org>
18424
18425 * keyboard.c (read_char): Check if C is a character or not before
18426 looking up Vkeyboard_translate_table.
18427
18428 2008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18431 condition to terminate the loop.
18432
18433 2008-02-01 Kenichi Handa <handa@m17n.org>
18434
18435 * coding.c (produce_composition): Compare charbuf[i] instead of
18436 args[i] against 0.
18437 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18438
18439 2008-02-01 Kenichi Handa <handa@m17n.org>
18440
18441 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18442 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18443 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18444 detect_coding.
18445 (emacs_mule_char): Handle old style (Emacs 20) component character
18446 of a composition.
18447 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18448 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18449 composition rule.
18450 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18451
18452 2008-02-01 Kenichi Handa <handa@m17n.org>
18453
18454 * coding.c (encode_coding_ccl): Allocate destination dynamically
18455 when necessary.
18456
18457 2008-02-01 Kenichi Handa <handa@m17n.org>
18458
18459 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18460 the loop. When quitted, show a proper error message.
18461
18462 2008-02-01 Kenichi Handa <handa@m17n.org>
18463
18464 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18465 src->clip_head and src->clip_tail temporarily instead of src->hl.
18466
18467 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18468 character sequence.
18469 (Fccl_execute_on_string): Use ASET, not XSET.
18470
18471 2008-02-01 Kenichi Handa <handa@m17n.org>
18472
18473 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18474
18475 2008-02-01 Kenichi Handa <handa@m17n.org>
18476
18477 * coding.c (decode_coding): Fix the condition of terminating the
18478 decoding loop.
18479
18480 2008-02-01 Kenichi Handa <handa@m17n.org>
18481
18482 * data.c (Faset): On setting a character bigger than 255 in a
18483 unibyte string, signal an error instead of make the string multibyte.
18484
18485 2008-02-01 Kenichi Handa <handa@m17n.org>
18486
18487 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18488 made by a mapping table.
18489
18490 2008-02-01 Kenichi Handa <handa@m17n.org>
18491
18492 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18493 not.
18494 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18495 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18496
18497 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18498 s->face is NULL or not.
18499
18500 2008-02-01 Kenichi Handa <handa@m17n.org>
18501
18502 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18503 (x_draw_glyph_string): Fix drawing of right_overhang and
18504 left_overhang around/on cursor.
18505
18506 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18507
18508 2008-02-01 Kenichi Handa <handa@m17n.org>
18509
18510 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18511
18512 2008-02-01 Kenichi Handa <handa@m17n.org>
18513
18514 * coding.c (Fdefine_coding_system_internal)
18515 (Fdefine_coding_system_alias): Avoid a duplicated element in
18516 Vcoding_system_alist.
18517
18518 2008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18521
18522 * coding.c (Qcoding_system_define_form): New variable.
18523 (syms_of_coding): Intern and staticpro it.
18524 (Fcoding_system_p): Check Qcoding_system_define_form.
18525 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18526
18527 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18528 Fcoding_system_p.
18529 (CHECK_CODING_SYSTEM): If ID is not available, call
18530 Fcheck_coding_system.
18531 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18532 Try also Fcheck_coding_system.
18533
18534 2008-02-01 Kenichi Handa <handa@m17n.org>
18535
18536 * coding.c (code_conversion_restore): GCPRO arg.
18537
18538 2008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * character.c (lisp_string_width): Check multibyteness of STRING.
18541
18542 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18543
18544 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18545 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18546 (decode_mac_font_name): Use decode_coding_c_string instead of
18547 decode_coding.
18548 (x_load_font): Initialize fontp->fontset to -1. Set
18549 fontp->encoding_type.
18550
18551 2008-02-01 Kenichi Handa <handa@m17n.org>
18552
18553 * search.c (search_buffer): Give up BM search on case-fold-search
18554 if one of a target character has a case-equivalence of different
18555 byte length even if that target charcter is an ASCII.
18556 (simple_search): Fix calculation of byte length of matched text.
18557 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18558
18559 2008-02-01 Kenichi Handa <handa@m17n.org>
18560
18561 * coding.c (decode_coding): Fix handling of invalid bytes.
18562
18563 2008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18566 Unicode characters.
18567
18568 2008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * coding.c (encode_coding_object): If a pre-write-conversion
18571 function makes a new buffer, kill it.
18572
18573 2008-02-01 Kenichi Handa <handa@m17n.org>
18574
18575 * coding.c (QCascii_compatible_p): New variable.
18576 (syms_of_coding): Initialize it.
18577 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18578 calling string_char.
18579 (record_conversion_result): Add `default:' case.
18580 (coding_charset_list): Delete unused variable `coding_type'.
18581 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18582 property in the plist of the coding system.
18583 (Fcoding_system_put): Check QCascii_compatible_p.
18584
18585 2008-02-01 Miles Bader <miles@gnu.org>
18586
18587 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18588 removed calculation of frame `f', as it's now used.
18589
18590 2008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18593 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18594 (UNIDATA): New variable.
18595 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18596 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18597 $(RUN_TEMACS) unconditionally.
18598
18599 2008-02-01 Kenichi Handa <handa@m17n.org>
18600
18601 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18602 (admindir): New variable.
18603 ($(lispsource)international/charprop.el): New target.
18604
18605 2008-02-01 Miles Bader <miles@gnu.org>
18606
18607 * character.c (chars-in-region): Remove obsolete function.
18608 (syms_of_character): Remove its initialization.
18609
18610 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18611
18612 * w32select.c (validate_coding_system)
18613 (setup_windows_coding_system): New functions.
18614 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18615 setup_windows_coding_system.
18616 (setup_config, Fw32_get_clipboard_data): Use
18617 validate_coding_system.
18618 (Fx_selection_exists): Move call to setup_config to a place
18619 where signals are allowed.
18620
18621 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18622 (Fcheck_coding_system): Add declarations.
18623
18624 2008-02-01 Kenichi Handa <handa@m17n.org>
18625
18626 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18627
18628 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18629
18630 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18631 string as the second argument for x_new_fontset.
18632
18633 2008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18636 (encode_coding_object): Use safe_call instead of call2.
18637
18638 2008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18641
18642 * Makefile.in (lisp): Include charprop.el.
18643
18644 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18645
18646 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18647 Not sure if it's unnecessary.
18648
18649 2008-02-01 Steven Tamm <steventamm@mac.com>
18650
18651 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18652 some possibly unnecessary fontset checking code that crashed
18653 when creating a new frame.
18654
18655 2008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18658 lookup_face.
18659
18660 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18661
18662 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18663
18664 2008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18667 (coding_charset_list): New function.
18668
18669 * coding.h (coding_charset_list): Extern it.
18670
18671 2008-02-01 Kenichi Handa <handa@m17n.org>
18672
18673 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18674 concatenation of family and registry.
18675
18676 2008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * character.h (BYTE8_STRING): Fix typo.
18679
18680 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18681 string to multibyte (sync to HEAD).
18682
18683 * casefiddle.c (casify_region): Handle changes in byte-length
18684 using replace_range_2 (sync to HEAD).
18685
18686 2008-02-01 Andreas Schwab <schwab@suse.de>
18687
18688 * chartab.c (map_char_table): GCPRO table and arg.
18689
18690 2008-02-01 Kenichi Handa <handa@m17n.org>
18691
18692 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18693 already at limit.
18694
18695 2008-02-01 Kenichi Handa <handa@m17n.org>
18696
18697 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18698 instead of fast_c_string_match_ignore_case.
18699 (find_font_encoding): Change argument to Lisp_Object. Use
18700 fast_string_match_ignore_case instead of
18701 fast_c_string_match_ignore_case. Change caller.
18702
18703 2008-02-01 Kenichi Handa <handa@m17n.org>
18704
18705 * xdisp.c (get_next_display_element): In unibyte case, decide to
18706 display in octal form by checking a character by
18707 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18708
18709 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18710
18711 * character.c (unibyte_has_multibyte_table): New variable.
18712
18713 * character.h (unibyte_has_multibyte_table): Extern it.
18714 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18715
18716 2008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * coding.c (encode_coding_iso_2022): Fix handling of charset
18719 annotation.
18720
18721 2008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * coding.c (setup_coding_system): If coding_system is nil, use
18724 Qundecided.
18725 (Fterminal_coding_system): Return nil if terminal coding system is
18726 `undecided'.
18727 (syms_of_coding): Define coding-system `undecided' here. Setup
18728 terminal_coding as `undecided'.
18729
18730 2008-02-01 Kenichi Handa <handa@m17n.org>
18731
18732 * xdisp.c (message_dolog, set_message_1): Call
18733 unibyte_char_to_multibyte with arg type int.
18734
18735 * lread.c (read1): Fix reading of a char-table.
18736
18737 * print.c (print_object): Include sub char-table in circularities
18738 detection.
18739
18740 2008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18743 Append the found sequences in car of ARGS instead of prepending.
18744
18745 2008-02-01 Kenichi Handa <handa@m17n.org>
18746
18747 * fileio.c (report_file_error): Make a unibyte string from
18748 strerror (errorno).
18749 (Fsubstitute_in_file_name): Fix the arg to
18750 unibyte_char_to_multibyte. It is evaluated twice.
18751
18752 2008-02-01 Kenichi Handa <handa@m17n.org>
18753
18754 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18755
18756 2008-02-01 Kenichi Handa <handa@m17n.org>
18757
18758 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18759 BOM is not found.
18760 (detect_coding, detect_coding_system): Optimization for ISO-2022
18761 when no 8-bit data is found.
18762
18763 2008-02-01 Jason Rumney <jasonr@gnu.org>
18764
18765 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18766
18767 2008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18770 CHARS.
18771
18772 2008-02-01 Steven Tamm <steventamm@mac.com>
18773
18774 * macterm.c (mac_encode_char): Add charset argument and update
18775 to use encoding_type.
18776 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18777 switch to pure fontset.
18778 (decode_mac_font_name): Temporarily remove decoding.
18779 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18780 (x_load_font): Temporarily remove encoding.
18781
18782 2008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * xfaces.c (Fface_font): If frame is not on a window system,
18785 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18786 refer to face->font.
18787 (split_font_name_into_vector, build_font_name_from_vector)
18788 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18789 when HAVE_WINDOW_SYSTEM is defined.
18790
18791 2008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18794 (x_produce_glyphs): Fix setting of members of cmp in case
18795 cmp->glyph_len is zero.
18796
18797 * fontset.c (Fset_fontset_font): Fix docstring.
18798 (Ffontset_info): Make it backward compatible. New arg ALL.
18799
18800 2008-02-01 Kim F. Storm <storm@cua.dk>
18801
18802 * process.c (read_process_output): Grow decoding_buf when needed;
18803 this could cause a crash in allocate_string and compact_small_strings.
18804
18805 2008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18808
18809 2008-02-01 Kenichi Handa <handa@m17n.org>
18810
18811 * coding.c (setup_coding_system): Set coding->common_flags
18812 correctly for raw-text.
18813 (consume_chars): On encoding unibyte text by raw-text, don't check
18814 multibyte form.
18815 (encode_coding): On encoding by raw-text, never use translation tables.
18816
18817 * fileio.c (e_write): Short cut for the case of no encoding.
18818
18819 2008-02-01 Kenichi Handa <handa@m17n.org>
18820
18821 * coding.c (detect_coding, detect_coding_system): Delete unused
18822 variables.
18823
18824 2008-02-01 Kenichi Handa <handa@m17n.org>
18825
18826 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18827 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18828
18829 2008-02-01 Kenichi Handa <handa@m17n.org>
18830
18831 * coding.c (Ffind_coding_systems_region_internal): Include
18832 raw-text and no-conversion in the result.
18833
18834 2008-02-01 Kenichi Handa <handa@m17n.org>
18835
18836 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18837 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18838 FONT_DEF.
18839 (font_def_arg, add_arg, from_arg, to_arg): New args.
18840 (set_fontset_font): Change argument.
18841 (Fset_fontset_font): Fix for the case that TARGET is a script
18842 name and charset name.
18843 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18844
18845 2008-02-01 Kenichi Handa <handa@m17n.org>
18846
18847 * fontset.c (fontset_font): Rename from fontset_face. Change return
18848 value.
18849 (face_suitable_for_char_p, face_for_char): Adjust for the change
18850 of fontset_font.
18851 (make_fontset_for_ascii_face): Fix setting of the fontset element
18852 for ASCII.
18853 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18854 to get a font name.
18855 (Ffontset_info): Adjust for the change of fontset_font.
18856
18857 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18858
18859 * character.h (LEADING_CODE_LATIN_1_MIN)
18860 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18861
18862 2008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * editfns.c (check_translation): New function.
18865 (Ftranslate_region_internal): Handle M:N mapping.
18866
18867 2008-02-01 Kenichi Handa <handa@m17n.org>
18868
18869 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18870
18871 2008-02-01 Kenichi Handa <handa@m17n.org>
18872
18873 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18874 goto invalid_code.
18875 (decode_coding_iso_2022): Fix handling of invalid designation.
18876
18877 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18878 after calling code_conversion_save.
18879
18880 2008-02-01 Kenichi Handa <handa@m17n.org>
18881
18882 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18883
18884 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18885
18886 * fontset.c: Include "intervals.h".
18887 (fontset_face): Fix comparing of Lisp_Objects.
18888 (free_face_fontset, new_fontset_from_font_name): Fix
18889 Lisp_Object/int mixup.
18890
18891 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18892
18893 * coding.c: Add many prototypes for static functions.
18894 (get_translation_table): Allow max_lookup to be NULL.
18895 (decode_coding, Ffind_coding_systems_region_internal)
18896 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18897 get_translation_table with max_lookup NULL.
18898
18899 2008-02-01 Kenichi Handa <handa@m17n.org>
18900
18901 * coding.c (get_translation_table): Declare it as Lisp_Object.
18902 (LOOKUP_TRANSLATION_TABLE): New macro.
18903 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18904 instead of CHAR_TABLE_REF.
18905
18906 2008-02-01 Kenichi Handa <handa@m17n.org>
18907
18908 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18909 annotation data format.
18910 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18911 Change arguments FROM and TO to single argument NCHARS. Change caller.
18912 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18913 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18914 (decode_coding_ccl, decode_coding_charset): Pay attention to
18915 coding->charbuf_used.
18916 (get_translation): New function.
18917 (produce_chars): New arguments translation_table and last_block.
18918 Translate characters here. Return number of carryover chars.
18919 Change caller.
18920 (produce_composition): New argument pos. Change caller.
18921 Adjust for the change of annotation data format.
18922 (produce_charset, produce_annotation): Likewise.
18923 (decode_coding, encode_coding): Don't call translate_chars.
18924 (consume_chars): New arg translation_table. Change caller.
18925 (translate_chars): Delete.
18926 (syms_of_coding): Make translation-table's number of extra slots 2.
18927
18928 2008-02-01 Kenichi Handa <handa@m17n.org>
18929
18930 * search.c (simple_search): Fix setting this_pos_byte in backward
18931 search.
18932
18933 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18934 byte sequence.
18935 (detect_coding_ccl): Fix setting of the variable valids.
18936
18937 2008-02-01 Kenichi Handa <handa@m17n.org>
18938
18939 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18940
18941 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18942
18943 * editfns.c (Ftranslate_region_internal): Rename from
18944 Ftranslate_region. Accept a char-table in TABLE.
18945 (syms_of_editfns): Defsubr Stranslate_region_internal.
18946
18947 * xfaces.c (set_lface_from_font_name): If a font is specified for
18948 a frame, generate a fontset from the font.
18949 (build_scalable_font_name): If the scalable font is requested for
18950 a specific size, don't change that size.
18951 (try_font_list): Try a scalable font also in the case that a
18952 pattern string is specified.
18953
18954 2008-02-01 Kenichi Handa <handa@m17n.org>
18955
18956 * xfaces.c (Fface_font): New optional arg CHARACTER.
18957
18958 2008-02-01 Kenichi Handa <handa@m17n.org>
18959
18960 * charset.h (CHARSET_OFFSET): New macro.
18961
18962 2008-02-01 Kenichi Handa <handa@m17n.org>
18963
18964 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18965
18966 * fontset.c (fontset_face): Handle the case that repertory is a
18967 char-table.
18968 (find_font_encoding): Return nil for unknown encoding.
18969 (Fset_fontset_font): Ignore a font of unknown encoding.
18970
18971 2008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * keymap.c (describe_vector): Handle default value of a char table.
18974
18975 * fontset.c (fontset_face): Handle fallback fonts correctly.
18976 (Ffontset_info): Return infomation about fallback fonts.
18977
18978 2008-02-01 Kenichi Handa <handa@m17n.org>
18979
18980 * fontset.c (FONTSET_DEFAULT): New macro.
18981 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18982 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18983 the case that it is nil.
18984 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18985 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18986
18987 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18988 subset or superset.
18989
18990 2008-02-01 Kenichi Handa <handa@m17n.org>
18991
18992 * emacs.c (main): Call init_charset after syms_of_XXX.
18993
18994 * charset.c (Vcharset_map_directory): Delete.
18995 (Vcharset_map_path): New variable.
18996 (load_charset_map_from_file): Use Vcharset_map_path instead.
18997 (init_charset): Initialize Vcharset_map_path.
18998 (syms_of_charset): Delete declaration of "charset-map-directory",
18999 add declaration of "charset-map-path".
19000
19001 2008-02-01 Kenichi Handa <handa@m17n.org>
19002
19003 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19004 ASCII only string.
19005
19006 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19007
19008 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19009 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19010
19011 2008-02-01 Kenichi Handa <handa@m17n.org>
19012
19013 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19014
19015 * coding.c (QCmnemonic, QCdefalut_char)
19016 (QCdecode_translation_table, QCencode_translation_table)
19017 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19018 (get_translation_table): Return a list of translation tables if
19019 necessary.
19020 (decode_coding): Call get_translation_table with ENCODEP 0.
19021 (char_encodable_p): If translation_table is non-nil, always call
19022 translate_char.
19023 (Fdefine_coding_system_internal): Accept list of translation
19024 tables as :encode-translation-table and :decode-translation-table.
19025 (Fcoding_system_put): New function.
19026 (syms_of_coding): Declare new symbols. Defsubr
19027 Scoding_system_put.
19028 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19029 typically JISX0212.
19030
19031 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19032 when the charset is superset type.
19033
19034 * character.c (translate_char): Accept list of translation tables.
19035
19036 2008-02-01 Kenichi Handa <handa@m17n.org>
19037
19038 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19039 (CODING_ATTR_TRANS_TBL): New macro.
19040
19041 * coding.c (get_translation_table): New function.
19042 (translate_chars): Fix the bug of skipping annotation data.
19043 (decode_coding, encode_coding): Utilize get_translation_table.
19044 (char_encodable_p, Funencodable_char_position): Translate char if
19045 necessary.
19046 (Ffind_coding_systems_region_internal)
19047 (Fcheck_coding_systems_region): Setup translation table for encode
19048 in a coding system attribute vector in advance.
19049 (Fdefine_coding_system_internal): Allow a symbol as translation
19050 table. For shift-jis type coding system, allow 4th charset.
19051
19052 2008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19055
19056 * xdisp.c (get_next_display_element): Pass -1 as POS to
19057 FACE_FOR_CHAR if displaying a C-string.
19058
19059 2008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * composite.c (get_composition_id): Handle xoff and yoff in a
19062 composition rule.
19063
19064 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19065 (struct composition): New member lbearing and rbearing.
19066
19067 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19068 (x_get_glyph_overhangs): Handle a composition glyph.
19069 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19070
19071 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19072 composition glyph.
19073
19074 2008-02-01 Kenichi Handa <handa@m17n.org>
19075
19076 * print.c: Include charset.h.
19077 (Vprint_charset_text_property): New variable.
19078 (Qdefault): Extern it.
19079 (PRINT_STRING_NON_CHARSET_FOUND)
19080 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19081 (print_check_string_result): New variable.
19082 (print_check_string_charset_prop): New function.
19083 (print_prune_charset_plist): New variable.
19084 (print_prune_string_charset): New function.
19085 (print_object): Call print_prune_string_charset if
19086 Vprint_charset_text_property is not t.
19087 (print_interval): Print nothing if interval->plist is nil.
19088 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19089 variable. Init and staticpro print_prune_charset_plist.
19090
19091 2008-02-01 Kenichi Handa <handa@m17n.org>
19092
19093 * fontset.c (new_fontset_from_font_name): Use the specified font
19094 for all characters in the new fontset.
19095
19096 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19097 OBJECT args.
19098
19099 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19100 OBJECT args for composition too.
19101
19102 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19103 OBJECT args.
19104
19105 2008-02-01 Kenichi Handa <handa@m17n.org>
19106
19107 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19108
19109 * fontset.c (reorder_font_vector): Adjust for the change of
19110 FONT_DEF format.
19111 (fontset_face): New arg id. Change caller.
19112 (face_for_char): New args pos and object.
19113 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19114 (fs_query_fontset): Check NAME by Fassoc too.
19115 (Fset_fontset_font): Allow non-XLFD font name.
19116 (Ffontset_info): Adjust for the change of FONT_DEF format.
19117
19118 * fontset.h (face_for_char): Adjust prototype.
19119
19120 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19121 (append_space, extend_face_to_end_of_line)
19122 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19123 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19124
19125 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19126 POS and OBJECT args.
19127
19128 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19129 POS and OBJECT args.
19130
19131 2008-02-01 Jason Rumney <jasonr@gnu.org>
19132
19133 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19134 of GlobalAlloc'ed memory.
19135
19136 2008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19139
19140 * charset.h (charset_table_used): Delete extern.
19141
19142 * charset.c (charset_table_used): Make it static.
19143 (map_charset_chars): Fix args to c_function with.
19144
19145 * chartab.c (map_sub_char_table_for_charset): Fix args to
19146 c_function with.
19147
19148 * coding.h (enum coding_result_code): Delete
19149 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19150
19151 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19152 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19153 (Vlast_code_conversion_error): New variables.
19154 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19155 (ONE_MORE_BYTE): Record error if any instead of signaling an
19156 error. If non-ASCII multibyte char is found, return the negative
19157 value of the code. All callers changed to check it.
19158 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19159 (record_conversion_result): New function. Change all codes setting
19160 coding->result to call this function.
19161 (detect_coding_utf_8, decode_coding_utf_8)
19162 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19163 Don't use the local variable incomplete.
19164 (emacs_mule_char): Change the second arg to `const'.
19165 (decode_coding): Fix of flushing out unprocessed data.
19166 (make_conversion_work_buffer): Fix making of a work buffer.
19167 (decode_coding_object): Return coding->dst_object.
19168
19169 * fontset.c (set_fontset_font): Fix args.
19170
19171 * lisp.h (CHARACTERBITS): Define as 22.
19172
19173 * process.c (send_process): Be sure to set coding->src_multibyte.
19174
19175 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19176
19177 2008-02-01 Kenichi Handa <handa@m17n.org>
19178
19179 * xdisp.c (handle_auto_composed_prop): Give limit to
19180 Fnext_single_char_property_change.
19181
19182 2008-02-01 Kenichi Handa <handa@m17n.org>
19183
19184 * composite.c (syms_of_composite): Don't make the composition hash
19185 table weak.
19186
19187 * fontset.c (Fset_fontset_font): Fix docstring.
19188
19189 * lisp.h (detect_coding_system): Adjust prototype.
19190
19191 * fileio.c (kill_workbuf_unwind): Delete this function.
19192 (Finsert_file_contents): Adjust the call of detect_coding_system.
19193 Get conversion_buffer by code_conversion_save. Use the macro
19194 CODING_MAY_REQUIRE_DECODING. After decoding, update
19195 coding_system.
19196
19197 * coding.h (make_conversion_work_buffer): Delete extern.
19198 (code_conversion_save): Extern it.
19199
19200 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19201 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19202 (decode_coding_utf_8): Don't do eol converion.
19203 (detect_coding_utf_16): Check coding->src_chars, not
19204 coding->src_bytes. Add heuristics for those that have no signature.
19205 (decode_coding_emacs_mule, decode_coding_iso_2022)
19206 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19207 Don't do eol converion.
19208 (adjust_coding_eol_type): Return a new coding system.
19209 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19210 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19211 each change.
19212 (decode_coding): Pay attention to undo_list. Do eol conversion for
19213 all types of coding-systems (if necessary).
19214 (Vcode_conversion_work_buf_list): Delete it.
19215 (Vcode_conversion_reused_workbuf): Rename from
19216 Vcode_conversion_reused_work_buf.
19217 (Vcode_conversion_workbuf_name): New variable.
19218 (reused_workbuf_in_use): New variable.
19219 (make_conversion_work_buffer): Delete the arg DEPTH.
19220 (code_conversion_restore): Change argument to cons.
19221 (code_conversion_save): Delete the argument BUFFER. Change callers.
19222 (detect_coding_system): New argument src_chars. Change callers.
19223 Fix for utf-16 detection.
19224 (init_coding_once): Don't use ISO_carriage_return.
19225 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19226 reused_workbuf_in_use.
19227
19228 2008-02-01 Kenichi Handa <handa@m17n.org>
19229
19230 * keymap.c (store_in_keymap): Pay attention to the case that idx
19231 is a cons specifying a character range.
19232
19233 2008-02-01 Kenichi Handa <handa@m17n.org>
19234
19235 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19236 HANDLED_RECOMPUTE_PROPS.
19237
19238 * coding.c (Fdefine_coding_system_internal): Fix checking of
19239 ascii compatibility.
19240
19241 2008-02-01 Kenichi Handa <handa@m17n.org>
19242
19243 * charset.c (find_charsets_in_text): Delete unused locale variable.
19244 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19245
19246 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19247 Resync charset_list to Vemacs_mule_charset_list.
19248
19249 * keymap.c (store_in_keymap): Pay attention to the case that idx
19250 is a cons specifying a character range.
19251
19252 2008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * composite.c (update_compositions): Bind inhibit-read-only, etc
19255 to t before calling remove-list-of-text-properties.
19256
19257 * print.c (print_object): Always print ASCII chars as is.
19258
19259 2008-02-01 Kenichi Handa <handa@m17n.org>
19260
19261 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19262
19263 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19264 is a char table.
19265
19266 2008-02-01 Kenichi Handa <handa@m17n.org>
19267
19268 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19269
19270 2008-02-01 Kenichi Handa <handa@m17n.org>
19271
19272 * xfaces.c (set_lface_from_font_name): Fix for the case that
19273 FONTNAME is not fontset name.
19274
19275 2008-02-01 Kenichi Handa <handa@m17n.org>
19276
19277 * fns.c (base64_encode_1): Fix previous change.
19278
19279 2008-02-01 Kenichi Handa <handa@m17n.org>
19280
19281 * fontset.c (set_fontset_font): New function.
19282 (Fset_fontset_font): If a font is specified for a charset, use
19283 map_charset_chars to store the font spec in a fontset.
19284
19285 2008-02-01 Kenichi Handa <handa@m17n.org>
19286
19287 * fontset.c (fontset_face): Create a fallback fontset on demand.
19288 (make_fontset): Don't create a fallback fontset here.
19289 (free_face_fontset): Free a fallback fontset (if any) too.
19290 (n_auto_fontsets): Delete this variable.
19291 (auto_fontset_alist): New variable.
19292 (new_fontset_from_font_name): Check auto_fontset_alist.
19293 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19294 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19295 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19296 Defsubr Sfontset_list_all.
19297
19298 2008-02-01 Kenichi Handa <handa@m17n.org>
19299
19300 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19301
19302 2008-02-01 Kenichi Handa <handa@m17n.org>
19303
19304 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19305
19306 2008-02-01 Kenichi Handa <handa@m17n.org>
19307
19308 * editfns.c (Fgoto_char): Fix docstring.
19309
19310 2008-02-01 Kenichi Handa <handa@m17n.org>
19311
19312 * insdel.c (insert_from_gap): Adjust intervals correctly.
19313
19314 2008-02-01 Jason Rumney <jasonr@gnu.org>
19315
19316 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19317 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19318 (w32_initialize): Try to load it.
19319 (x_get_font_repertory): Use it if available.
19320 (w32_encode_char): Add shortcut for unicode output.
19321
19322 * w32fns.c (w32_load_system_font): Default charset to -1.
19323 (x_to_w32_charset): Match all fonts for unicode.
19324 (w32_to_x_charset): New parameter matching. Don't return partial
19325 or wildcard charsets.
19326 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19327 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19328 (w32_to_x_font): Match charset to real charset.
19329 (enum_font_cb2): Always list unicode versions.
19330
19331 * makefile.w32-in (temacs): Increase EMHEAP.
19332
19333 2008-02-01 Jason Rumney <jasonr@gnu.org>
19334
19335 * w32term.c (w32_encode_char): New charset parameter.
19336 font_info.encoding becomes encoding_type.
19337 (x_get_font_repertory): New function. Warning: stub only!
19338 (x_new_font): Return quickly if font already set.
19339 (x_new_fontset): fontsetname parameter is Lisp_Object.
19340 Use new fs_query_fontset. Try new_fontset_from_font_name.
19341 Use fontset_name for return value.
19342
19343 * w32term.h: Declare x_get_font_repertory.
19344
19345 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19346 place of find_charset_in_text. Use encode_coding_object in place
19347 of encode_coding.
19348 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19349 decode_coding.
19350
19351 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19352 of x_new_fontset.
19353 (w32_load_system_font): Initialize charset as unicode.
19354 font_info.encoding becomes encoding_type.
19355 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19356 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19357 (syms_of_w32fns): Set get_font_repertory_func.
19358
19359 * w32console.c: Include character.h. Use terminal_encode_buffer
19360 from term.c.
19361 (write_glyphs): Use new version of encode_terminal_code. Use
19362 encode_coding_object in place of encode_coding.
19363
19364 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19365 encoding becomes encoding_type.
19366
19367 * term.c (terminal_encode_buffer): Make externally visible.
19368
19369 * makefile.w32-in: Add character.h dependancies.
19370 (character.o, chartab.o): New targets.
19371
19372 2008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19375 CODING_ID_EOL_TYPE.
19376
19377 2008-02-01 Andreas Schwab <schwab@suse.de>
19378
19379 * coding.c (produce_chars): Revert last change.
19380
19381 2008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * charset.h (charset_unicode): Extern it.
19384
19385 * charset.c (string_xstring_p): Check by (C >= 0x100).
19386 (find_charsets_in_text): Change format of the arc CHARSETS. New
19387 arg MULTIBYTE.
19388 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19389 change of find_charsets_in_text.
19390 (Fsplit_char): Fix doc. Never return unknown.
19391
19392 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19393
19394 * coding.c (Fdefine_coding_system_alias): Update
19395 Vcoding_system_list.
19396
19397 * fontset.c (load_font_get_repertory): Pay attention to the case
19398 that ENCODING of a font is specified by a char-table.
19399
19400 * xterm.c (x_get_font_repertory): Handle the case that the
19401 encoding of font is other than Unicode.
19402
19403 2008-02-01 Kenichi Handa <handa@m17n.org>
19404
19405 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19406 if a character is encodable by the terminal coding system. If
19407 not, produces proper number of `?'s. Update
19408 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19409 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19410
19411 2008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19414 variables.
19415 (encode_terminal_code): Change argument. Encode multiple
19416 characters at once. Store the result of encoding in
19417 terminal_encode_buffer.
19418 (write_glyphs, insert_glyphs): Adjust for the change of
19419 encode_terminal_code.
19420 (term_init): Initialize terminal_encode_buffer and
19421 terminal_encode_buf_size.
19422
19423 * coding.c (consume_chars): If coding->src_object is nil, don't
19424 check annotation.
19425
19426 2008-02-01 Kenichi Handa <handa@m17n.org>
19427
19428 * character.c (char_string): Use ASCII_CHAR_P instead of
19429 SINGLE_BYTE_CHAR_P.
19430
19431 2008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * xdisp.c (handle_auto_composed_prop): Check if the last
19434 characters of auto-composed region is newly composed with the
19435 following characters.
19436 (handle_composition_prop): Fix checking of point being inside
19437 composition.
19438
19439 2008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * fns.c (concat): Don't change multibyteness of the result by
19442 concatenating an 8-bit character.
19443
19444 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19445 multibyteness of the result when newelt is an 8-bit character.
19446
19447 2008-02-01 Dave Love <fx@gnu.org>
19448
19449 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19450 EMACS_INT.
19451
19452 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19453
19454 * xfaces.c (face_numeric_value): Declare dim size_t.
19455 (Finternal_lisp_face_equal_p): Remove unused f.
19456
19457 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19458 (MATRIX_ROW): Remove unused vars.
19459 (draw_glyphs, x_insert_glyphs, fast_find_position)
19460 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19461 byte/char counts.
19462
19463 * regex.c (regex_compile): Remove unused var.
19464
19465 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19466
19467 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19468 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19469
19470 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19471
19472 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19473
19474 * fileio.c (Fwrite_region): Remove unused var.
19475
19476 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19477 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19478
19479 * composite.c (Fremove_list_of_text_properties): Declare.
19480
19481 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19482 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19483 (coding_inherit_eol_type): Remove unused attrs.
19484 (detect_coding): Cast arg of detect_eol.
19485
19486 * charset.c (syms_of_charset): Remove unused var p.
19487 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19488 byte/char counts.
19489
19490 * casetab.c (set_case_table): Remove unused var.
19491
19492 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19493 unused vars.
19494
19495 2008-02-01 Dave Love <fx@gnu.org>
19496
19497 * xterm.c (x_bitmap_mask): Declare.
19498
19499 2008-02-01 Dave Love <fx@gnu.org>
19500
19501 * xterm.c (x_term_init): Fix type error.
19502
19503 * lisp.h: Add Funibyte_char_to_multibyte.
19504
19505 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19506 (Fset_coding_system_priority): Doc fix.
19507
19508 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19509
19510 * indent.c (check_composition): Make start and end EMACS_INT.
19511
19512 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19513
19514 * xdisp.c (handle_composition_prop, check_point_in_composition):
19515 Make buffer positions EMACS_INT.
19516
19517 * composite.c (find_composition, run_composition_function)
19518 (update_compositions, Ffind_composition_internal): Make buffer
19519 positions EMACS_INT.
19520
19521 * composite.h (find_composition, update_compositions): Make
19522 position args EMACS_INT.
19523
19524 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19525
19526 * intervals.c (get_property_and_range):
19527 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19528
19529 * unexalpha.c: Don't include varargs.h.
19530
19531 2008-02-01 Dave Love <fx@gnu.org>
19532
19533 * coding.h (ENCODE_UTF_8): New.
19534
19535 * Makefile.in (gtkutil.o): Depend on coding.h.
19536
19537 * coding.c (Fset_coding_system_priority): Doc fix.
19538
19539 2008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19542 the case of auto saving.
19543
19544 2008-02-01 Andreas Schwab <schwab@suse.de>
19545
19546 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19547 `range' from GC.
19548
19549 2008-02-01 Kenichi Handa <handa@m17n.org>
19550
19551 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19552
19553 2008-02-01 Kenichi Handa <handa@m17n.org>
19554
19555 * fileio.c (choose_write_coding_system): Return a decided coding system.
19556 (Fwrite_region): Set Vlast_coding_system_used to the return value
19557 of choose_write_coding_system.
19558
19559 2008-02-01 Kenichi Handa <handa@m17n.org>
19560
19561 * charset.c (Fset_charset_priority): Pay attention to duplicated
19562 arguments.
19563
19564 * coding.c (QCcategory): New variable.
19565 (syms_of_coding): Defsym it. Set all elements of
19566 Vcoding_category_table and their symbol values.
19567 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19568 coding-category-XXX, and coding-category-list.
19569 (Fdefine_coding_system_internal): Add category in the plist.
19570
19571 2008-02-01 Kenichi Handa <handa@m17n.org>
19572
19573 * callproc.c (Fcall_process): Handle carryover correctly.
19574
19575 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19576 (raw_text_coding_system): Check NILP (coding_system).
19577 (coding_inherit_eol_type): Check NILP (coding_system) and
19578 NILP (parent).
19579 (consume_chars): Fix for the case of raw-text.
19580
19581 * process.c (read_process_output): Handle carryover correctly.
19582
19583 2008-02-01 Dave Love <fx@gnu.org>
19584
19585 * regex.c (re_search_2): Fix last change.
19586
19587 2008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19590 target_multibyte. Even in a unibyte case, return a converted
19591 multibyte char.
19592 (GET_CHAR_AFTER): New macro.
19593 (PATFETCH): Translate via multibyte char.
19594 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19595 (SETUP_MULTIBYTE_RANGE): New macro.
19596 (regex_compile): Setup compiled code so that its multibyteness
19597 matches that of a target. Fix the handling of "[X-YZ]" using
19598 SETUP_MULTIBYTE_RANGE.
19599 (analyse_first) <charset>: For filling fastmap for all multibyte
19600 characters, don't check by BASE_LEADING_CODE_P.
19601 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19602 the same as RE_MULTIBYTE_P (bufp) now.
19603 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19604 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19605 (TRANSLATE_VIA_MULTIBYTE): New macro.
19606 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19607 It is the same as RE_MULTIBYTE_P (bufp) now.
19608 <exactn>: Translate via multibyte.
19609 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19610 translate it.
19611 <charset, charset_not>: Fetch a character by
19612 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19613 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19614 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19615 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19616 by GET_CHAR_AFTER.
19617 (bcmp_translate): Likewise.
19618
19619 * search.c (compile_pattern): Check the member target_multibyte,
19620 not the member multibyte of buf.
19621
19622 * lread.c (read1): While reading a string, set force_singlebyte
19623 and force_multibyte correctly.
19624
19625 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19626 up of unibyte_to_multibyte_table.
19627
19628 2008-02-01 Kenichi Handa <handa@m17n.org>
19629
19630 * coding.c (setup_coding_system): If coding has
19631 post-read-conversion or pre-write-conversion, set
19632 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19633 respectively.
19634 (decode_coding_gap): Run post-read-conversion if any.
19635
19636 * fileio.c (Finsert_file_contents): Even if we read into a
19637 unibyte buffer, check if we must decode the result or not.
19638
19639 2008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * coding.c (make_conversion_work_buffer): Change the work buffer
19642 name to the same one as that of Emacs 21.
19643
19644 2008-02-01 Kenichi Handa <handa@m17n.org>
19645
19646 * coding.h (make_conversion_work_buffer): Adjust prototype.
19647 (code_conversion_restore): Don't extern it.
19648
19649 * coding.c (detected_mask): Delete unused variable.
19650 (decode_coding_iso_2022): Pay attention to the byte sequence of
19651 CTEXT extended segment, and retain those bytes as is.
19652 (decode_coding_ccl): Delete unused variable `valids'.
19653 (setup_coding_system): Delete unused variable `category'.
19654 (consume_chars): Delete unused variable `category'. Make it work
19655 for non-multibyte case.
19656 (make_conversion_work_buffer): Change argument.
19657 (saved_coding): Delete unused variable.
19658 (code_conversion_restore): Don't check saved_coding->destination.
19659 (code_conversion_save): New function.
19660 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19661 instead of record_unwind_protect.
19662 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19663 (detect_coding_system): Delete unused variable `mask'.
19664 (Fdefine_coding_system_internal): Delete unused variable id.
19665
19666 * fileio.c (kill_workbuf_unwind): New function.
19667 (Finsert_file_contents): On replacing, call
19668 make_conversion_work_buffer with correct args, and call
19669 record_unwind_protect with the first arg kill_workbuf_unwind.
19670
19671 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19672
19673 2008-02-01 Kenichi Handa <handa@m17n.org>
19674
19675 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19676 (fontset_add): Fix for the case that TO is less than TO1.
19677 (Ffontset_info): Don't use fallback fontset on checking the
19678 default fontset.
19679 (dump_fontset): New function for debugging.
19680
19681 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19682 coding_type is Qcharset.
19683
19684 2008-02-01 Kenichi Handa <handa@m17n.org>
19685
19686 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19687 (map_char_table): Don't inherit the value from the parent on
19688 initializing VAL. Adjust for the above change.
19689
19690 2008-02-01 Kenichi Handa <handa@m17n.org>
19691
19692 * coding.c (Qsignature, Qendian): Delete these variables.
19693 (syms_of_coding): Don't initialize them.
19694 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19695 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19696 detect_info->found.
19697 (decode_coding_utf_16): Don't detect BOM here.
19698 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19699 is NOT utf_16_without_bom.
19700 (setup_coding_system): For a coding system of type utf-16, check
19701 if the attribute :endian is Qbig or not (not nil or not), and set
19702 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19703 (detect_coding): If coding type is utf-16 and BOM detection is
19704 required, detect it.
19705 (Fdefine_coding_system_internal): For a coding system of type
19706 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19707
19708 2008-02-01 Kenichi Handa <handa@m17n.org>
19709
19710 * coding.c (coding_set_source): Fix for the case that the current
19711 buffer is different from coding->src_object.
19712 (decode_coding_object): Don't use the conversion work buffer if
19713 DST_OBJECT is a buffer.
19714
19715 2008-02-01 Dave Love <fx@gnu.org>
19716
19717 * lread.c (read_emacs_mule_char) [len==2]: Index
19718 emacs_mule_charset correctly.
19719
19720 2008-02-01 Dave Love <fx@gnu.org>
19721
19722 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19723 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19724 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19725 treated specially.)
19726 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19727 (detected_mask): Remove Big5 bits.
19728
19729 2008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 The following changes are to make the font rescaling facility
19732 compatible with Emacs 21.
19733
19734 * xfaces.c (Vface_font_rescale_alist): Rename from
19735 Vface_resizing_fonts.
19736 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19737 (font_rescale_ratio): Rename from font_resizing_ratio.
19738 (split_font_name): Set font->rescale_ratio.
19739 (better_font_p): Pay attention to font->rescale_ratio.
19740 (build_scalable_font_name): Likewise. Change RESX, and RESY
19741 fields.
19742 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19743
19744 2008-02-01 Kenichi Handa <handa@m17n.org>
19745
19746 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19747 (Qutf_16_le): Remove these variables.
19748 (syms_of_coding): Don't DEFSYM them.
19749 (decode_coding_utf_16): Fix handling of BOM.
19750 (encode_coding_utf_16): Fix handling of BOM.
19751
19752 2008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * fileio.c (Finsert_file_contents): On replacing, before decoding
19755 the file into the work buffer, set point of the work buffer to the end.
19756
19757 2008-02-01 Dave Love <fx@gnu.org>
19758
19759 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19760
19761 2008-02-01 Dave Love <fx@gnu.org>
19762
19763 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19764 and fix C types.
19765
19766 2008-02-01 Kenichi Handa <handa@m17n.org>
19767
19768 * xdisp.c (SKIP_GLYPHS): New macro.
19769 (set_cursor_from_row): Pay attention to string display properties.
19770
19771 * category.c (copy_category_entry): Fix for the case that RANGE
19772 is an integer.
19773
19774 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19775
19776 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19777
19778 2008-02-01 Kenichi Handa <handa@m17n.org>
19779
19780 * charset.c (Fcharset_id_internal): New function.
19781 (syms_of_charset): Defsubr it.
19782
19783 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19784 with the last arg charset_list acquired from coding.
19785 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19786 the attribute coding_attr_ccl_valids.
19787
19788 * coding.h (enum define_coding_ccl_arg_index): Set the first
19789 member coding_arg_ccl_decoder to coding_arg_max.
19790
19791 * ccl.h (ccl_driver): Adjust prototype.
19792
19793 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19794 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
19795 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
19796 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19797 last arg Qnil.
19798
19799 2008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19802 call encode_char.
19803
19804 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19805
19806 2008-02-01 Dave Love <fx@gnu.org>
19807
19808 * composite.c (syms_of_composite): Make composition_hash_table weak.
19809
19810 2008-02-01 Kenichi Handa <handa@m17n.org>
19811
19812 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19813 (font_name_registry): Don't extern them.
19814 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19815
19816 * fontset.h (Qfontset): Don't extern it.
19817 (new_fontset_from_font_name): Extern it.
19818
19819 * fontset.c: Give 8 extra slots to fontset objects.
19820 (Qfontset_info): New variable.
19821 (syms_of_fontset): Defsym it.
19822 (FONTSET_FALLBACK): New macro.
19823 (fontset_face): Try also the default fontset.
19824 (make_fontset): Realize a fallback fontset from the default fontset.
19825 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19826 using split_font_name_into_vector and build_font_name_from_vector.
19827 (Fset_fontset_font): Access the elements of font_spec by enum
19828 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19829 name by using split_font_name_into_vector.
19830 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19831 generate a proper font name from the fontset name. Update
19832 Vfontset_alias_alist.
19833 (n_auto_fontsets): New variable.
19834 (new_fontset_from_font_name): New function.
19835 (Ffont_info): Store the information about fonts generated from the
19836 default fontset in the first extra slot of the returned char-table.
19837
19838 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19839 (font_name_registry): Delete function.
19840 (split_font_name_into_vector): New function.
19841 (build_font_name_from_vector): New function.
19842 (font_list): The argument REGISTRY is now a list of registry names.
19843 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19844 specifies an explicit font name, return the name as is. Make a
19845 list of registy names.
19846
19847 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19848 of x_new_fontset.
19849 (Fx_create_frame): Don't call x_new_fontset here. Just use
19850 x_list_fonts to check the existence of fonts.
19851
19852 * xterm.h (x_new_fontset): Adjust prototype.
19853
19854 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19855 string. Use new_fontset_from_font_name to create a fontset from a
19856 font name.
19857
19858 2008-02-01 Kenichi Handa <handa@m17n.org>
19859
19860 * syntax.c (Vfind_word_boundary_function_table): New name for
19861 Vnext_word_boundary_function_table.
19862 (find-word-boundary-function-table): New name for
19863 next-word-boundary-function-table.
19864
19865 2008-02-01 Dave Love <fx@gnu.org>
19866
19867 * Makefile.in: Fix some dependencies.
19868
19869 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19870 set it to nil before returning.
19871
19872 * composite.c (update_compositions): Fix type error.
19873
19874 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19875
19876 2008-02-01 Kenichi Handa <handa@m17n.org>
19877
19878 * xterm.c (x_new_font): Optimize for the case that the font is
19879 already set for the frame.
19880
19881 2008-02-01 Kenichi Handa <handa@m17n.org>
19882
19883 * chartab.c (char_table_ascii): Check if the char table contents
19884 is sub-char-table or not.
19885 (char_table_set, char_table_set_range): Fix argument to
19886 char_table_ascii.
19887
19888 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19889 (detect_coding_utf_8, detect_coding_utf_16)
19890 (detect_coding_emacs_mule, detect_coding_iso_2022)
19891 (detect_coding_sjis, detect_coding_big5)
19892 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19893 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19894 sequence is valid in this coding system. Change callers.
19895 (MAX_ANNOTATION_LENGTH): New macro.
19896 (ADD_ANNOTATION_DATA): New macro.
19897 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19898 ADD_ANNOTATION_DATA. Change the format of annotation data.
19899 (ADD_CHARSET_DATA): New macro.
19900 (emacs_mule_char): New argument ID. Change callers.
19901 (decode_coding_emacs_mule, decode_coding_iso_2022)
19902 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19903 Produce charset annotation data in coding->charbuf.
19904 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19905 to charset annotation data in coding->charbuf.
19906 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19907 coding->common_flags if the coding system is iso-2022 based and
19908 uses designation.
19909 (produce_composition): Adjust for the new annotation data format.
19910 (produce_charset): New function.
19911 (produce_annotation): Handle charset annotation.
19912 (handle_composition_annotation, handle_charset_annotation): New
19913 functions.
19914 (consume_chars): Handle charset annotation. Utilize the above two
19915 functions.
19916 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19917 buffer, get the deleted text as a string and set
19918 coding->src_object to that string.
19919 (detect_coding, detect_coding_system): Use the new struct
19920 coding_detection_info.
19921
19922 * coding.h (struct coding_detection_info): New structure.
19923 (struct coding_system): Adjust prototype of the member `detector'.
19924 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19925
19926 2008-02-01 Kenichi Handa <handa@m17n.org>
19927
19928 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19929
19930 2008-02-01 Dave Love <fx@gnu.org>
19931
19932 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19933 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19934 to new local and nullify apropos_accumulate before returning.
19935 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19936
19937 2008-02-01 Kenichi Handa <handa@m17n.org>
19938
19939 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19940 correctly.
19941
19942 2008-02-01 Dave Love <fx@gnu.org>
19943
19944 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19945
19946 2008-02-01 Kenichi Handa <handa@m17n.org>
19947
19948 The following changes are to make character composition happen
19949 automatically on displaying.
19950
19951 * Makefile.in (lisp, shortlisp): Add composite.elc.
19952
19953 * composite.h (Qauto_composed, Vauto_composition_function)
19954 (Qauto_composition_function): Extern them.
19955
19956 * composite.c (Vcomposition_function_table)
19957 (Qcomposition_function_table): Delete variables.
19958 (Qauto_composed, Vauto_composition_function)
19959 (Qauto_composition_function): New variables.
19960 (run_composition_function): Don't call
19961 compose-chars-after-function.
19962 (update_compositions): Clear `auto-composed' text property.
19963 (compose_chars_in_text): Delete this function.
19964 (syms_of_composite): Staticpro Qauto_composed and
19965 Qauto_composition_function. Declare Vauto_composition_function as
19966 a Lisp variable.
19967
19968 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19969
19970 * xdisp.c (it_props): Add an entry for Qauto_composed.
19971 (handle_auto_composed_prop): New function.
19972
19973 * xselect.c (selection_data_to_lisp_data): Don't call
19974 compose_chars_in_text.
19975
19976 2008-02-01 Dave Love <fx@gnu.org>
19977
19978 * keyboard.c (read_char): Modify checking around use of
19979 Vkeyboard_translate_table.
19980
19981 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19982 and fix C types.
19983
19984 2008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19987 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19988 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19989 the case that the last byte is '\r' correctly.
19990 (decode_coding): Flush out the unprocessed data correctly.
19991 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19992
19993 2008-02-01 Dave Love <fx@gnu.org>
19994
19995 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19996 Add XK_ISO... case.
19997 (xaw_scroll_callback): Revert last change.
19998
19999 2008-02-01 Kenichi Handa <handa@m17n.org>
20000
20001 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20002
20003 2008-02-01 Kenichi Handa <handa@m17n.org>
20004
20005 * xfaces.c (Vface_resizing_fonts): New variable.
20006 (struct font_name): New member `resizing_ratio'.
20007 (font_resizing_ratio): New function.
20008 (split_font_name): Set font->resizing_ratio.
20009 (better_font_p): Pay attention to font->resizing_ratio.
20010 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20011 RESX, and RESY fields.
20012 (try_alternative_families): Try scalable fonts if
20013 Vscalable_fonts_allowed is not Qt.
20014 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20015
20016 2008-02-01 Dave Love <fx@gnu.org>
20017
20018 * xterm.c (xaw_scroll_callback): Cast correctly.
20019
20020 2008-02-01 Dave Love <fx@gnu.org>
20021
20022 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20023 (lispy_kana_keys): Comment out.
20024 (make_lispy_event) [XK_kana_A]: Comment out.
20025
20026 * xterm.c (xaw_scroll_callback): Cast call_data.
20027 (XTread_socket): Deal with ASCII keysyms.
20028 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20029
20030 2008-02-01 Dave Love <fx@gnu.org>
20031
20032 * xterm.c (Vx_keysym_table): New.
20033 (syms_of_xterm): Initialize it.
20034 (XTread_socket): Use it.
20035 From head: Eliminate incorrect optimization that tried to avoid
20036 decoding the output of X*LookupString.
20037 (x_get_font_repertory): Delete charset declaration.
20038
20039 2008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20042 return 0.
20043 (Fdefine_coding_system_internal): Setup
20044 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20045
20046 2008-02-01 Dave Love <fx@gnu.org>
20047
20048 * coding.c (Fcheck_coding_system): Doc fix.
20049
20050 * editfns.c (Finsert_byte): Return a proper value.
20051
20052 2008-02-01 Kenichi Handa <handa@m17n.org>
20053
20054 * coding.c (decode_coding): Fix args to translate_chars. Pay
20055 attention to Vstandard_translation_table_for_decode.
20056 (encode_coding): Fix args to translate_chars. Pay attention to
20057 Vstandard_translation_table_for_encode.
20058
20059 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20060 SINGLE_BYTE_CHAR_P.
20061
20062 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20063 not by SINGLE_BYTE_CHAR_P.
20064
20065 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20066 SINGLE_BYTE_CHAR_P.
20067
20068 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20069 SINGLE_BYTE_CHAR_P.
20070
20071 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20072 by SINGLE_BYTE_CHAR_P.
20073
20074 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20075 SINGLE_BYTE_CHAR_P.
20076
20077 2008-02-01 Dave Love <fx@gnu.org>
20078
20079 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20080
20081 2008-02-01 Dave Love <fx@gnu.org>
20082
20083 * fns.c (Flanginfo): Fix typo.
20084
20085 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20086
20087 2008-02-01 Kenichi Handa <handa@m17n.org>
20088
20089 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20090 (detect_coding_emacs_mule, detect_coding_iso_2022)
20091 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20092 incomplete byte sequence. Don't update *mask when correctly detected.
20093 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20094 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20095 (detect_coding, detect_coding_system): Adjust for the changes above.
20096
20097 2008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * character.c (char_string): Rename from
20100 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20101 (string_char): Rename from string_char.
20102
20103 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20104 if C is greater than MAX_3_BYTE_CHAR.
20105 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20106 string_char instead of string_char_with_unification.
20107
20108 2008-02-01 Dave Love <fx@gnu.org>
20109
20110 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20111
20112 2008-02-01 Kenichi Handa <handa@m17n.org>
20113
20114 * keymap.c (push_key_description): Pay attention to force_multibyte.
20115
20116 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20117
20118 2008-02-01 Dave Love <fx@gnu.org>
20119
20120 * charset.c (define_charset_internal): Rename `supprementary'.
20121
20122 * Makefile.in (lisp, shortlisp): Remove latin-N.
20123
20124 2008-02-01 Dave Love <fx@gnu.org>
20125
20126 * xfns.c (x_window, x_window): Use use_xim.
20127
20128 * xterm.c (use_xim): Initialize.
20129 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20130 (x_term_init): Maybe set use_xim.
20131
20132 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20133
20134 2008-02-01 Kenichi Handa <handa@m17n.org>
20135
20136 * search.c (search_buffer): Fix case-fold-search of multibyte
20137 characters.
20138 (boyer_moore): Rename the last argument to char_high_bits.
20139
20140 2008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * xdisp.c (display_string): Fix for the case of zero width glyph.
20143
20144 * xfns.c (x_set_font): Change the error message of the case that
20145 x_new_fontset returns Qt.
20146
20147 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20148 (Finternal_set_lisp_face_attribute): Use signal_error for the
20149 error of invalid fontset.
20150
20151 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20152 fontset, return Qt.
20153
20154 2008-02-01 Dave Love <fx@gnu.org>
20155
20156 * unexelf.c (unexec): Make .got handling not SGI-specific.
20157
20158 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20159
20160 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20161
20162 * keyboard.c (read_key_sequence): Fix type error.
20163
20164 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20165 type error.
20166
20167 * fontset.c (fontset_add): Return Lisp_Object.
20168
20169 2008-02-01 Dave Love <fx@gnu.org>
20170
20171 * charset.h (charset_ordered_list_tick): Declare extern.
20172
20173 2008-02-01 Kenichi Handa <handa@m17n.org>
20174
20175 The following changes (and some of 2008-02-01 changes of mine) are
20176 for handling syntax, category, and case conversion for unibyte
20177 characters by converting them to multibyte on the fly. With these
20178 changes, we don't have to setup syntax and case tables for unibyte
20179 characters in each language environment.
20180
20181 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20182 multibyte if necessary.
20183
20184 * bytecode.c (Fbyte_code): Likewise.
20185
20186 * character.h (LEADING_CODE_LATIN_1_MIN)
20187 (LEADING_CODE_LATIN_1_MAX): New macros.
20188 (unibyte_to_multibyte_table): Extern it.
20189 (unibyte_char_to_multibyte): New macro.
20190 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20191 (CHAR_LEADING_CODE): New macro.
20192 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20193
20194 * character.c (unibyte_to_multibyte_table): New variable.
20195 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20196 (multibyte_char_to_unibyte): If C is an eight-bit character,
20197 convert it to the corresponding byte value.
20198
20199 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20200 not 1, signals an error. Update the elements of
20201 unibyte_to_multibyte_table.
20202 (init_charset_once): Initialize unibyte_to_multibyte_table.
20203 (syms_of_charset): Define the charset `iso-8859-1'.
20204
20205 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20206 as is without converting it to unibyte. In a unibyte buffer,
20207 convert C to multibyte before checking the syntax.
20208
20209 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20210
20211 * minibuf.c (Fminibuffer_complete_word): Use the macro
20212 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20213
20214 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20215
20216 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20217 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20218 that is zero, convert an eight-bit char to multibyte.
20219 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20220 non-emacs case.
20221 (PATFETCH): Convert an eight-bit char to multibyte.
20222 (HANDLE_UNIBYTE_RANGE): New macro.
20223 (regex_compile): Setup the compiled pattern for multibyte chars
20224 even if the given regex string is unibyte. Use PATFETCH_RAW
20225 instead of PATFETCH in many places. To handle `charset'
20226 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20227 only for ASCII chars.
20228 (analyse_first) <exactn>: Simplify because the compiled pattern
20229 is multibyte.
20230 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20231 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20232 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20233 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20234 multibyte always 1.
20235 (re_search_2): In emacs, set the locale variable multibyte to 1,
20236 otherwise to 0. New local variable target_multibyte. Check it
20237 to decide the multibyteness of STR1 and STR2. If
20238 target_multibyte is zero, convert unibyte chars to multibyte
20239 before translating and checking fastmap.
20240 (TARGET_CHAR_AND_LENGTH): New macro.
20241 (re_match_2_internal): In emacs, set the locale variable multibyte
20242 to 1, otherwise to 0. New local variable target_multibyte. Check
20243 it to decide the multibyteness of STR1 and STR2. Use
20244 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20245 <charset, charset_not>: If multibyte is nonzero, check fastmap
20246 only for ASCII chars. Call bcmp_translate with
20247 target_multibyte, not with multibyte.
20248 <begline>: Declare the local variable C as `unsigned'.
20249 (bcmp_translate): Change the last arg name to target_multibyte.
20250
20251 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20252 the regexp pattern and the matching target. Set cp->buf.multibyte
20253 to the multibyteness of the regexp pattern. Set
20254 cp->but.target_multibyte to the multibyteness of the matching target.
20255 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20256 FETCH_STRING_CHAR_ADVANCE.
20257 (Freplace_match): Convert unibyte chars to multibyte.
20258
20259 * syntax.c (char_quoted, back_comment, scan_words)
20260 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20261 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20262 unibyte chars to multibyte.
20263 (skip_chars): Delete the arg syntaxp, and move the code for
20264 handling syntaxes to skip_syntaxes. Change callers.
20265 Fix the case that the multibyteness of STRING and the current
20266 buffer doesn't match.
20267 (skip_syntaxes): New function.
20268 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20269 SINGLE_BYTE_CHAR_P.
20270
20271 2008-02-01 Kenichi Handa <handa@m17n.org>
20272
20273 * xfaces.c (QCfontset): New variable.
20274 (LFACE_FONTSET): New macro.
20275 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20276 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20277 (Finternal_set_lisp_face_attribute)
20278 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20279 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20280 check also LFACE_FONTSET_INDEX.
20281 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20282 attrs[LFACE_FONT_INDEX].
20283 (syms_of_xfaces): Intern and staticpro QCfontset.
20284
20285 * dispextern.h (enum lface_attribute_index): New member
20286 LFACE_FONTSET_INDEX.
20287
20288 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20289
20290 2008-02-01 Kenichi Handa <handa@m17n.org>
20291
20292 * coding.c (coding_set_destination): Fix coding->destination for
20293 the case converting a region.
20294 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20295 (encode_coding_object): Fix coding->dst_pos and
20296 coding->dst_pos_byte for the case converting a region.
20297
20298 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20299
20300 * character.h (BYTE8_STRING): New macro.
20301
20302 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20303
20304 2008-02-01 Kenichi Handa <handa@m17n.org>
20305
20306 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20307 characters by octal form.
20308
20309 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20310
20311 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20312 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20313 _fetch_multibyte_char_len.
20314 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20315
20316 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20317
20318 * casefiddle.c (casify_object): Simplify. Handle the case that
20319 the case conversion change the byte length.
20320 (casify_region): Likewise.
20321
20322 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20323
20324 * character.c (_fetch_multibyte_char_len): Delete this variable.
20325 (syms_of_character): Setup Vprintable_chars.
20326
20327 * editfns.c (Fchar_equal): Fix for the unibyte case.
20328 (Finsert_byte): New function.
20329 (syms_of_editfns): Defsubr it.
20330
20331 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20332 of direct code 0x3ffff.
20333
20334 * search.c (Freplace_match): Fix for the unibyte case.
20335
20336 2008-02-01 Kenichi Handa <handa@m17n.org>
20337
20338 * lread.c (safe_to_load_p): Fix the logic.
20339
20340 * syntax.c (scan_words): Don't treat characters belonging to
20341 different scripts as constituting a word.
20342
20343 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20344
20345 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20346
20347 * emacs.c (main): In the case of --unibyte, instead of aborting on
20348 finding non-empty buffer, make it unibyte.
20349
20350 2008-02-01 Kenichi Handa <handa@m17n.org>
20351
20352 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20353 to create a fontset.
20354
20355 2008-02-01 Dave Love <fx@gnu.org>
20356
20357 * character.c (Funibyte_char_to_multibyte): Doc fix.
20358
20359 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20360
20361 2008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * fontset.c (fontset_add): Make the type `int'.
20364 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20365
20366 * character.c (unibyte_char_to_multibyte)
20367 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20368 charset_unibyte, not charset_primary.
20369
20370 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20371
20372 * charset.c (charset_unibyte): Rename from charset_primary.
20373 (Funibyte_charset): Rename from Fprimary_charset.
20374 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20375 (syms_of_charset): Adjust for the above changes.
20376
20377 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20378 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20379 it->multibyte_p is zero.
20380
20381 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20382 Delete extern.
20383
20384 2008-02-01 Kenichi Handa <handa@m17n.org>
20385
20386 * coding.c (Fdefine_coding_system_internal): Fix category setting
20387 for a coding system of type iso-2022.
20388
20389 2008-02-01 Kenichi Handa <handa@m17n.org>
20390
20391 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20392
20393 2008-02-01 Kenichi Handa <handa@m17n.org>
20394
20395 * syntax.c (Vnext_word_boundary_function_table): New variable.
20396 (next-word-boundary-function-table): Declare it as a Lisp variable
20397 in syms_of_syntax.
20398 (scan_words): Call functions in Vnext_word_boundary_function_table
20399 if any.
20400
20401 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20402
20403 * fontset.c (fs_load_font): If fontp->charset is not negative,
20404 return fontp without setting its members.
20405
20406 2008-02-01 Dave Love <fx@gnu.org>
20407
20408 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20409
20410 * m/sparc.h (HAVE_ALLOCA): Delete.
20411
20412 * s/irix6-5.h: Don't include strings.h.
20413 (bcopy, bzero, bcmp): Don't undef.
20414
20415 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20416
20417 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20418 (TIOCSIGSEND): Don't test IRIX6.
20419 (bcopy, bzero, bcmp): Define conditionally.
20420
20421 2008-02-01 Kenichi Handa <handa@m17n.org>
20422
20423 * buffer.c (Qas, Qmake, Qto): New variables.
20424 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20425 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20426
20427 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20428 we are inserting a process output into a multibyte buffer.
20429
20430 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20431 multibyte_char_to_unibyte.
20432
20433 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20434 by the primary charset, make it eight-bit char.
20435 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20436
20437 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20438 (charset_8_bit__control, charset_8_bit_graphic)
20439 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20440 (define_charset_internal): New function.
20441 (syms_of_charset): Call define_charset_internal for pre-defined
20442 charsets.
20443
20444 * charset.h (charset_8_bit): Extern it.
20445
20446 * coding.c (make_conversion_work_buffer): Adjust for the change
20447 of Fset_buffer_multibyte.
20448 (encode_coding_raw_text): Increment p0 in the loop.
20449
20450 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20451
20452 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20453 for the change of Fset_buffer_multibyte.
20454
20455 * fns.c (Fstring_to_multibyte): New function.
20456 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20457
20458 2008-02-01 Dave Love <fx@gnu.org>
20459
20460 * xfns.c (x_put_x_image): Declare args.
20461
20462 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20463 (try_font_list): Declare an arg.
20464
20465 * xdisp.c (message2_nolog, set_message): Declare an arg.
20466
20467 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20468
20469 * syntax.c (scan_sexps_forward): Declare an arg.
20470
20471 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20472 Declare an arg.
20473
20474 * lisp.h (Fnew_fontset): Declare.
20475
20476 * keymap.c (push_key_description): Call CHARACTERP correctly.
20477
20478 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20479 (face_for_char): Delete unused vars.
20480 (Fset_fontset_font): Doc fix. Delete unused vars.
20481
20482 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20483
20484 * composite.c (update_compositions): Declare arg.
20485
20486 * cm.c (calccost, cmgoto): Declare args.
20487
20488 * charset.c: Remove `emacs' conditional. Doc fixes.
20489 (map_char_table_for_charset): Declare.
20490
20491 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20492
20493 * ccl.c: Remove `emacs' conditional.
20494
20495 2008-02-01 Kenichi Handa <handa@m17n.org>
20496
20497 The following changes are to allow specifying multiple font
20498 patterns for a character range (specified by script or charset).
20499
20500 * Makefile.in (abbrev.o): Depend on syntax.h.
20501 (xfaces.o): Depend on charset.h.
20502
20503 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20504 SINGLE_BYTE_CHAR_P.
20505
20506 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20507
20508 * character.h (Vchar_script_table): Extern it.
20509
20510 * character.c (Vscript_alist): Delete.
20511 (Vchar_script_table, Qchar_script_table): New variable.
20512 (syms_of_character): Declare Vchar_script_table as a lisp variable
20513 and initialize it.
20514
20515 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20516 have property char-table-extra-slots, make no extra slot.
20517
20518 * dispextern.h (struct face): Delete member `charset'.
20519 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20520 SINGLE_BYTE_CHAR_P.
20521 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20522 Add prototypes.
20523 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20524 (generate_ascii_font_name): Rename from generate_ascii_font.
20525
20526 * fontset.h (get_font_repertory_func): New prototype.
20527 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20528 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20529
20530 * fontset.c (Qprepend, Qappend): New variables.
20531 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20532 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20533 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20534 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20535 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20536 (load_font_get_repertory): New functions.
20537 (fontset_set): Delete.
20538 (fontset_face): New arg FACE. Return face ID, not face.
20539 Complete re-write to handle new fontset structure. Change caller.
20540 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20541 (face_for_char): Don't call lookup_face.
20542 (make_fontset_for_ascii_face): New arg FACE.
20543 (fs_load_font): New arg CHARSET_ID. Don't check
20544 Vfont_encoding_alist here.
20545 (find_font_encoding): New function.
20546 (list_fontsets): Use STRINGP, not ! NILP.
20547 (accumulate_script_ranges): New function.
20548 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20549 re-written to handle new fontset structure.
20550 (Ffontset_font): Return a copy of element.
20551 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20552 docstring of font-encoding-alist.
20553
20554 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20555 (Fset_fotset_font): Fix arguments to 5.
20556
20557 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20558
20559 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20560 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20561 (highlight_trailing_whitespace): Adjust for the change of
20562 lookup_named_face.
20563
20564 * xfaces.c: Include charset.h.
20565 (load_face_font): Delete argument C. Change caller.
20566 (generate_ascii_font_name): Rename from generate_ascii_font.
20567 (font_name_registry): New function.
20568 (cache_face): Store ascii faces before non-ascii faces in buckets.
20569 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20570 Lookup only ascii faces.
20571 (lookup_non_ascii_face): New function.
20572 (lookup_named_face): Delete argument C. Change caller.
20573 (lookup_derived_face): Delete argument C. Change caller.
20574 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20575 a string, just call font_list with it.
20576 (choose_face_font): Delete arguments FACE and C. New arg
20577 FONT_SPEC. Change caller.
20578 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20579 Change caller.
20580 (realize_non_ascii_face): New function.
20581 (realize_x_face): Call load_face_font here.
20582 (realize_tty_face): Delete argument C. Change caller.
20583 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20584 get a face ID.
20585 (dump_realized_face): Don't print charset of FACE.
20586
20587 * xfns.c (x_set_font): Always call x_new_fontset and
20588 store_frame_parameter.
20589 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20590 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20591
20592 * xterm.h (x_get_font_repertory): Extern it.
20593
20594 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20595 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20596 it->multibyte_p is zero.
20597 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20598 (x_new_fontset): If FONTSETNAME doesn't match any existing
20599 fontsets, create a new one.
20600 (x_get_font_repertory): New function.
20601
20602 2008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * coding.c (Ffind_coding_systems_region_internal): Detect an
20605 ASCII only string correctly.
20606
20607 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20608 version is 0.
20609
20610 2008-02-01 Kenichi Handa <handa@m17n.org>
20611
20612 * lread.c: Include "coding.h".
20613 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20614 (load_each_byte, unread_char): New variables.
20615 (readchar_backlog): Delete.
20616 (readchar): Return a character unless load_each_byte is nonzero.
20617 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20618 cons. If unread_char is not -1, simply return it.
20619 (unreadchar): Handle the case that readcharfun is
20620 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20621 (read_multibyte): Delete.
20622 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20623 (read_emacs_mule_char): New functions.
20624 (Fload): Even if the file doesn't have the extension ".elc", if
20625 safe_to_load_p returns a positive version number, assume that the
20626 file contains bytecompiled code. If the version is less than 22,
20627 load the file while decoding multibyte sequences by emacs-mule.
20628 (readevalloop): Don't use readchar_backlog.
20629 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20630 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20631 (read_escape): Delete the arg BYTEREP.
20632 (read1): Set load_each_byte to 1 temporarily while handling
20633 #@NUMBER. Don't call read_multibyte.
20634 (read_vector): Call Fread with a cons. If readcharfun is
20635 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20636 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20637 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20638 and Qload_force_doc_strings.
20639
20640 2008-02-01 Kenichi Handa <handa@m17n.org>
20641
20642 * xdisp.c (face_before_or_after_it_pos): Call
20643 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20644
20645 2008-02-01 Kenichi Handa <handa@m17n.org>
20646
20647 * character.h (TRAILING_CODE_P): New macro.
20648 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20649 (string_char_with_unification): Fix prototype.
20650 (Vscript_alist): Extern it.
20651
20652 * character.c (Vscript_alist): New variable.
20653 (string_char_with_unification, str_as_unibyte)
20654 (string_escape_byte8): Add `const' to local variables.
20655 (syms_of_character): Declare script-alist as a Lisp variable.
20656
20657 * charset.h (Vcharset_ordered_list): Extern it.
20658 (charset_ordered_list_tick): Extern it.
20659 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20660 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20661 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20662 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20663 (Funify_charset): Adjust for the change of Funify_charset.
20664
20665 * charset.c (charset_ordered_list_tick): New variable.
20666 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20667 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20668 deunify intead of unify a charset.
20669 (string_xstring_p): Add `const' to local variables.
20670 (find_charsets_in_text): Add `const' to arguments and local variables.
20671 (encode_char): Adjust for the change of Funify_charset. Fix
20672 detecting of invalid code.
20673 (Fset_charset_priority): Increment charset_ordered_list_tick.
20674 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20675 and TO_CODE.
20676
20677 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20678 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20679 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20680 (decode_coding_ccl, consume_chars)
20681 (Ffind_coding_systems_region_internal)
20682 (Fcheck_coding_systems_region): Add `const' to local variables.
20683
20684 * print.c (print_object): Use octal form for printing the
20685 contents of a bool vector.
20686
20687 2008-02-01 Dave Love <fx@gnu.org>
20688
20689 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20690 <version == 20>: Refuse to load.
20691
20692 2008-02-01 Dave Love <fx@gnu.org>
20693
20694 * fns.c: Move coding.h.
20695 (Qcodeset, Qdays, Qmonths): New.
20696 (concat): Use CHARACTERP instead of INTEGERP.
20697 (Flocale_codeset): Delete.
20698 (Flanginfo): New function.
20699 (syms_of_fns): Change accordingly.
20700
20701 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20702
20703 2008-02-01 Dave Love <fx@gnu.org>
20704
20705 * casetab.c (init_casetab_once, init_casetab_once): Fix
20706 CHAR_TABLE_SET call.
20707
20708 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20709
20710 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20711
20712 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20713 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20714 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20715
20716 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20717
20718 * coding.c (ENCODE_DESIGNATION, decode_eol)
20719 (make_conversion_work_buffer, code_conversion_restore)
20720 (Fdefine_coding_system_internal): Convert Lisp types.
20721 (code_conversion_restore): Use EQ, not ==.
20722 (Fencode_coding_string): Fix code_convert_string call.
20723
20724 * coding.h (code_convert_region): Fix prototype.
20725
20726 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20727
20728 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20729 (Ffontset_info): Convert Lisp types.
20730
20731 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20732
20733 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20734
20735 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20736
20737 * chartab.c: Include "...h", not <...h> in some cases.
20738
20739 * callproc.c (Fcall_process): Remove unused variables.
20740
20741 2008-02-01 Dave Love <fx@gnu.org>
20742
20743 * coding.c (Fset_coding_system_priority): Allow null arg list.
20744
20745 2008-02-01 Dave Love <fx@gnu.org>
20746
20747 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20748 (Fself_insert_and_exit): Use CHARACTERP.
20749
20750 * callproc.c (Fcall_process): Remove unused vars.
20751
20752 * xterm.c (XTread_socket): Add extra dead keysyms.
20753
20754 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20755
20756 * dispextern.h: Remove prototypes for redraw_frame,
20757 redraw_garbaged_frames.
20758
20759 * cmds.c (Fself_insert_command): Use CHARACTERP.
20760
20761 * chartab.c (make_sub_char_table): Remove unused var.
20762 (Fset_char_table_default, Fmap_char_table): Doc fix.
20763
20764 * keymap.c (access_keymap): Remove generic char code.
20765 (push_key_description): Use CHARACTERP.
20766
20767 2008-02-01 Dave Love <fx@gnu.org>
20768
20769 * charset.c: Doc fixes.
20770 (Funify_charset): Extra checking.
20771
20772 2008-02-01 Dave Love <fx@gnu.org>
20773
20774 * lread.c: Remove some unused variables.
20775 (safe_to_load_p): If safe, return the magic number version byte.
20776 (Fload): Maybe use load-with-code-conversion.
20777
20778 2008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * category.c (Fmodify_category_entry): Don't modify the contents
20781 of category_set for characters out of the range. Avoid
20782 unnecessary modification.
20783
20784 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20785 Vchar_unify_table. The default value of the table is now nil.
20786
20787 * character.c (syms_of_character): Setup Vchar_width_table for
20788 eight-bit-control and raw-byte chars.
20789
20790 * charset.h (enum define_charset_arg_index): Delete
20791 charset_arg_parents and add charset_arg_subset and
20792 charset_arg_superset.
20793 (enum charset_attr_index): Delete charset_parents and add
20794 charset_subset and charset_superset.
20795 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20796 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20797 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20798 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20799 (CHARSET_SUPERSET): New macros.
20800 (charset_work): Extern it.
20801 (ENCODE_CHAR): Use charset_work.
20802 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20803 (map_charset_chars): Extern it.
20804
20805 * charset.c (load_charset_map): Set the default value of encoder
20806 and deunifier char-tables to nil.
20807 (map_charset_chars): Change argument. Change callers. Use
20808 map_char_table_for_charset instead of map_char_table.
20809 (Fmap_charset_chars): New optional args from_code and to_code.
20810 (Fdefine_charset_internal): Adjust for the change of
20811 `define-charset' (:parents -> :subset or :superset).
20812 (charset_work): New variable.
20813 (encode_char, syms_of_charset): Adjust for the change of
20814 Fdefine_charset_internal.
20815 (Ffind_charset_string): Setup the vector `charsets' correctly.
20816
20817 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20818 the previous change.
20819 (char_table_ref_and_range): Adjust for the above change.
20820 (map_sub_char_table_for_charset): New function.
20821 (map_char_table_for_charset): New function.
20822
20823 * keymap.c (describe_vector): Handle a char-table directly here.
20824 (describe_char_table): Delete.
20825
20826 * lisp.h (map_charset_chars): Delete.
20827
20828 2008-02-01 Dave Love <fx@gnu.org>
20829
20830 * fns.c (count_combining): Comment out (unused).
20831 (Flocale_codeset): New.
20832 (syms_of_fns): Defsubr it.
20833
20834 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20835 (size_t): Remove.
20836
20837 2008-02-01 Dave Love <fx@gnu.org>
20838
20839 * Makefile.in (chartab.o): Depend on charset.h.
20840
20841 2008-02-01 Kenichi Handa <handa@m17n.org>
20842
20843 * character.c (syms_of_character): Set the default value of
20844 Vprintable_chars to Qnil.
20845
20846 2008-02-01 Dave Love <fx@gnu.org>
20847
20848 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20849
20850 2008-02-01 Kenichi Handa <handa@m17n.org>
20851
20852 * charset.c (load_charset_map): Handle the case that from < to
20853 correctly.
20854
20855 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20856 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20857 Pay attention to raw-8-bit chars.
20858
20859 2008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20862 It is not bytecompiled now.
20863
20864 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20865 (charset_jisx0208): New variables.
20866 (Fdefine_charset_internal): Setup them if appropriate.
20867 (init_charset_once): Initialize them to -1.
20868
20869 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20870 (charset_jisx0208): Extern them.
20871
20872 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20873 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20874 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20875 (setup_iso_safe_charsets): Fix arguments to Fassq.
20876 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20877 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20878 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20879 (encode_coding_iso_2022): Change the 1st arg to
20880 ENCODE_ISO_CHARACTER to a variable.
20881
20882 2008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * charset.h (enum define_charset_arg_index): New enums
20885 charset_arg_min_code and charset_arg_max_code.
20886 (struct charset): New member char_index_offset.
20887
20888 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20889 Take charset->char_index_offset into account.
20890 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20891 args[charset_arg_max_code]. Setup charset.char_index_offset.
20892 (syms_of_charset): Fix args to Fdefine_charset_internal.
20893
20894 2008-02-01 Dave Love <fx@gnu.org>
20895
20896 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20897
20898 2008-02-01 Dave Love <fx@gnu.org>
20899
20900 * coding.c: Doc fixes.
20901 (Fcoding_system_aliases): Fix return value.
20902 (Qmac): Remove (duplicated) definition.
20903
20904 2008-02-01 Dave Love <fx@gnu.org>
20905
20906 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20907 New functions.
20908
20909 * character.c (Fstring): Doc fix.
20910
20911 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20912
20913 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
20914 (font-encoding-alist): Doc fix.
20915
20916 2008-02-01 Dave Love <fx@gnu.org>
20917
20918 * term.c (costs_set): Declare static, non-initialized for pcc.
20919 (encode_terminal_code): Remove unused var.
20920
20921 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20922 for K&R.
20923
20924 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20925
20926 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20927 (suffixes): Move out of make_subsidiaries for K&R.
20928
20929 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20930
20931 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20932
20933 2008-02-01 Dave Love <fx@gnu.org>
20934
20935 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20936
20937 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20938
20939 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
20940
20941 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20942
20943 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20944
20945 2008-02-01 Kenichi Handa <handa@m17n.org>
20946
20947 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20948 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20949
20950 2008-02-01 Kenichi Handa <handa@m17n.org>
20951
20952 * coding.c (decode_coding_charset): Adjust for the change of
20953 Fdefine_coding_system_internal.
20954 (Fdefine_coding_system_internal): For a coding system of
20955 `charset' type, store a list of charset IDs in
20956 `charset_attr_charset_valids' element of coding attributes.
20957
20958 2008-02-01 Kenichi Handa <handa@m17n.org>
20959
20960 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20961 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20962 caller. Handle 2-byte and 3-byte charsets correctly.
20963 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20964 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20965 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20966 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20967 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20968 sequence.
20969 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20970 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20971 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20972 and alt&rule composition.
20973 (decode_coding_iso_2022): Handle composition correctly.
20974 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20975
20976 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20977 re-defining a charset. If the charset has :emacs-mule-id, setup
20978 emacs_mule_bytes.
20979 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20980
20981 2008-02-01 Kenichi Handa <handa@m17n.org>
20982
20983 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20984 (encode_coding_big5, encode_coding_charset): If coding requires safe
20985 encoding, produce a character specified by
20986 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20987
20988 2008-02-01 Dave Love <fx@gnu.org>
20989
20990 * xterm.c (XSetIMValues): Declare.
20991
20992 * process.c: Conditionally include sys/wait.h, pty.h.
20993
20994 * print.c (print_object): Fix print format for 64-bit systems.
20995
20996 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20997
20998 * buffer.c (emacs_strerror): Declare.
20999
21000 * fontset.c (Fclear_face_cache): Declare.
21001 (accumulate_font_info): Comment-out (unused).
21002 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21003 variables.
21004
21005 * character.h (string_escape_byte8): Declare.
21006
21007 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21008 unused vars.
21009 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21010 (Fmap_charset_chars): Doc fix.
21011
21012 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21013 (Fset_coding_system_priority, Fset_coding_system_priority)
21014 (Fdefine_coding_system_internal): Doc fix.
21015
21016 2008-02-01 Dave Love <fx@gnu.org>
21017
21018 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21019
21020 2008-02-01 Kenichi Handa <handa@m17n.org>
21021
21022 * character.c (string_escape_byte8): Make multibyte string with
21023 correct size.
21024
21025 * charset.c (Fmake_char): Delete unnecessary code.
21026
21027 2008-02-01 Kenichi Handa <handa@m17n.org>
21028
21029 * xfns.c (x_encode_text): Allocate coding.destination here, and
21030 call encode_coding_object with dst_object Qnil.
21031
21032 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21033 multibyte form correctly.
21034
21035 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21036 against Vfont_encoding_alist.
21037
21038 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21039 handling of charset list.
21040 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21041 (decode_coding_object): Move point to coding->dst_pos before
21042 calling post-read-conversion function.
21043 (encode_coding_object): Give correct arguments to
21044 pre-write-conversion. Ignore the return value of
21045 pre-write-conversion function. Pay attention to the case that
21046 pre-write-conversion changes the current buffer. If dst_object is
21047 Qt, even if coding->src_bytes is zero, allocate at least one byte
21048 to coding->destination.
21049
21050 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21051
21052 * charset.c (Fmake_char): Make it more backward compatible.
21053 (Fmap_charset_chars): Fix docstring.
21054
21055 2008-02-01 Dave Love <fx@gnu.org>
21056
21057 * coding.c: Doc fixes.
21058 (Fdefine_coding_system_alias): Use names, not symbols, in
21059 coding-system-alist.
21060
21061 2008-02-01 Kenichi Handa <handa@m17n.org>
21062
21063 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21064 of calling free_realized_face.
21065
21066 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21067
21068 * charset.c (read_hex): Don't treat SPC as a comment starter.
21069 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21070 (Fdecode_char): Fix typo.
21071
21072 2008-02-01 Kenichi Handa <handa@m17n.org>
21073
21074 * charset.h (struct charset): New member `code_space_mask'.
21075
21076 * coding.c (coding_set_source): Delete the local variable beg_byte.
21077 (encode_coding_charset, Fdefine_coding_system_internal):
21078 Delete the local variable charset.
21079 (Fdefine_coding_system_internal): Setup
21080 attrs[coding_attr_charset_valids] correctly.
21081
21082 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21083 member to check if CODE is valid or not.
21084 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21085 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21086 is within the range of charset->min_code and carset->max_code.
21087
21088 2008-02-01 Dave Love <fx@gnu.org>
21089
21090 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21091
21092 * dispextern.h (generate_ascii_font): Fix return type.
21093
21094 * xfaces.c (generate_ascii_font): Fix arg declaration.
21095
21096 * coding.c (coding_inherit_eol_type)
21097 (Fset_terminal_coding_system_internal)
21098 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21099
21100 2008-02-01 Kenichi Handa <handa@m17n.org>
21101
21102 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21103 multiple charsets correctly.
21104
21105 2008-02-01 Kenichi Handa <handa@m17n.org>
21106
21107 * search.c (boyer_moore): Fix handling of multibyte character
21108 translation.
21109
21110 * xdisp.c (display_mode_element): When the variable `elt' is
21111 changed, update `this' and `lisp_string'.
21112
21113 2008-02-01 Kenichi Handa <handa@m17n.org>
21114
21115 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21116
21117 * callproc.c (Fcall_process): Be sure to give the current buffer
21118 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21119
21120 * charset.c (struct charset_map_entries): New struct.
21121 (load_charset_map): Rename from parse_charset_map. New args
21122 entries and n_entries. Change caller.
21123 (load_charset_map_from_file): Rename from load_charset_map.
21124 Change caller. New arg control_flag. Call load_charset_map at
21125 the tail.
21126 (load_charset_map_from_vector): New function.
21127 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21128 (encode_char): If the charset is compact, change a character index
21129 to a code point.
21130
21131 * coding.c (coding_alloc_by_making_gap): Check the case that the
21132 source and destination are the same correctly.
21133 (decode_coding_raw_text): Set coding->consumed_char and
21134 coding->consumed to 0.
21135 (produce_chars): If coding->chars_at_source is nonzero, update
21136 coding->consumed_char and coding->consumed before calling
21137 alloc_destination.
21138 (Fdefine_coding_system_alias): Register ALIAS in
21139 Vcoding_system_alist.
21140 (syms_of_coding): Define `no-conversion' coding system at the tail.
21141
21142 * fileio.c (Finsert_file_contents): Set coding_system instead of
21143 val. If the current buffer is multibyte, always call
21144 decode_coding_gap.
21145
21146 * xfaces.c (try_font_list): Give higher priority to fontset's
21147 family than face's family.
21148
21149 2008-02-01 Kenichi Handa <handa@m17n.org>
21150
21151 * callproc.c (Fcall_process): Be sure to give the current buffer
21152 to decode_coding_c_string.
21153
21154 * xfaces.c (try_font_list): Give a family specified in a fontset
21155 higher priority than a family specified in a face.
21156
21157 2008-02-01 Kenichi Handa <handa@m17n.org>
21158
21159 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21160 Fix arguments to insert_from_buffer.
21161
21162 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21163
21164 2008-02-01 Kenichi Handa <handa@m17n.org>
21165
21166 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21167 (decode_coding_gap): Set coding->dst_multibyte correctly.
21168
21169 2008-02-01 Kenichi Handa <handa@m17n.org>
21170
21171 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21172 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21173 (encode_coding_utf_16): Substitute coding->default_char for
21174 non-Unicode characters.
21175 (decode_coding): Don't call record_insert here.
21176 (setup_coding_system): Initialize `surrogate' of
21177 coding->spec.utf_16 to 0.
21178 (EMIT_ONE_BYTE): Fix for multibyte case.
21179
21180 * insdel.c (insert_from_gap): Call record_insert.
21181
21182 2008-02-01 Kenichi Handa <handa@m17n.org>
21183
21184 * casefiddle.c (casify_region): Fix multibyte case.
21185
21186 * character.c (c_string_width): Add return type `int'.
21187 (char_string_with_unification): Delete arg ADVANCED.
21188
21189 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21190 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21191 (CHAR_STRING_ADVANCE): Make it do-while statement.
21192
21193 * chartab.c (sub_char_table_set_range): Optimize for the case
21194 DEPTH == 3. Add workaround code for a GCC optimization bug.
21195
21196 * charset.c (parse_charset_map): Remove an unused variable.
21197
21198 * coding.c: Delete unused variables.
21199
21200 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21201 earlier. If inserted is zero and the coding system doesn't
21202 require flushing, don't call decode_coding_gap.
21203
21204 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21205
21206 2008-02-01 Kenichi Handa <handa@m17n.org>
21207
21208 The following changes are for using Unicode as an internal
21209 character model, and use UTF-8 format for buffer/string
21210 representation.
21211
21212 * .gdbinit (xchartable): Adjust for the change of char table structure.
21213 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21214
21215 * Makefile.in (obj): Add character.o and chartab.o.
21216 (lisp, shortlisp): Remove utf-8.elc.
21217 (*.o): For many files, change dependency on charset.h to
21218 character.h, and add dependency on character.h.
21219 (character.o, chartab.o): New targets.
21220
21221 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21222 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21223 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21224 of "charset.h".
21225
21226 * dired.c, filelock.c: Include "character.h".
21227
21228 * alloc.c: Include "character.h" instead of "charset.h".
21229 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21230 (syms_of_alloc): Remove defsubr for Smake_char_table.
21231
21232 * buffer.c: Include "character.h" instead of "charset.h", don't
21233 include "coding.h".
21234 (Fset_buffer_multibyte): Adjust for UTF-8.
21235
21236 * buffer.h: EXFUN Fbuffer_live_p.
21237
21238 * callproc.c: Include "character.h" instead of "charset.h".
21239 (Fcall_process): Big change for the new code-conversion APIs.
21240
21241 * casetab.c: Include "character.h" instead of "charset.h".
21242 (set_canon, set_identity, shuffle): Adjust for the new
21243 map_char_table spec.
21244 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21245 accessing the char table structure.
21246
21247 * chartab.c: New file that implements char table.
21248
21249 * category.c: Include "character.h".
21250 (copy_category_entry): New function.
21251 (copy_category_table): Call map_char_table and copy_category_entry.
21252 (Fmake_category_table): Initialize all top-level slots.
21253 (char_category_set): New function.
21254 (modify_lower_category_set): Delete.
21255 (Fmodify_category_entry): Call char_table_ref_and_range.
21256
21257 * category.h (CATEGORY_SET): Just call char_category_set.
21258
21259 * ccl.c: Include "character.h".
21260 (Qccl, Qcclp): New variables.
21261 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21262 it's less than 256.
21263 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21264 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21265 and DST type.
21266 (ccl_driver): Change types of argument, adjust code accordingly.
21267 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21268 ccl_driver.
21269 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21270
21271 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21272 New members src_multibyte, dst_multibyte, consumed, and produced.
21273 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21274 (CODING_SPEC_CCL_PROGRAM): New macro.
21275 (ccl_driver): Update prototype.
21276 (Qccl, Qcclp, Fccl_program_p): Extern them.
21277 (CHECK_CCL_PROGRAM): New macro.
21278
21279 * character.c, character.h, chartab.c: New files.
21280
21281 * charset.c: Mostly re-written. Move character and multibyte sequence
21282 handling codes to character.c.
21283
21284 * charset.h: Mostly re-written. Move character and multibyte sequence
21285 handling codes to character.h.
21286
21287 * coding.c, coding.h: Mostly re-written.
21288
21289 * composite.c: Include "character.h" instead of "charset.h".
21290 (CHAR_WIDTH): Move to character.h.
21291 (HASH_KEY, HASH_VALUE): Delete.
21292
21293 * composite.h (enum composition_method): Change order of enumeration
21294 symbols.
21295
21296 * data.c: Include "character.h" instead of "charset.h".
21297 (Faref): Call CHAR_TABLE_REF for a char table.
21298 (Faset): Call CHAR_TABLE_SET for a char table.
21299
21300 * dispextern.h (free_realized_face, check_face_attribytes)
21301 (generate_ascii_font): Extern them.
21302 (free_realized_multibyte_face): Delete extern.
21303
21304 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21305 table structure.
21306
21307 * editfns.c: Include "character.h" instead of "charset.h".
21308 (Fchar_to_string): Always call CHAR_STRING.
21309
21310 * emacs.c (main): Call init_charset_once, init_charset,
21311 syms_of_chartab, and syms_of_character.
21312
21313 * fileio.c: Include "character.h" instead of "charset.h".
21314 (Finsert_file_contents): Big change for the new code-conversion API.
21315 (choose_write_coding_system, Fwrite_region): Likewise.
21316 (build_annotations_2): Delete.
21317 (e_write): Big change for the new code-conversion API.
21318
21319 * fns.c: Include "character.h" instead of "charset.h".
21320 (copy_sub_char_table): Move to chartab.c.
21321 (Fcopy_sequence): Call copy_char_table for a char table.
21322 (concat): Delete codes calling count_multibyte.
21323 (string_char_to_byte, string_byte_to_char): Adjust for the new
21324 multibyte form.
21325 (internal_equal): Adjust for the change of char table structure.
21326 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21327 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21328 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21329 (char_table_translate, optimize_sub_char_table)
21330 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21331 chartab.c.
21332 (char_table_ref_and_index): Delete.
21333 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21334 (Fmd5): Call preferred_coding_system instead of accessing
21335 Vcoding_category_list. Adjust for the new code-conversion API.
21336 (syms_of_fns): Move defsubr for char table related functions to
21337 chartab.c.
21338
21339 * fontset.c: Mostly re-written.
21340
21341 * fontset.h (struct font_info): Change type of the member encoding_type.
21342 (enum FONT_SPEC_INDEX): New enum.
21343 (fontset_font_pattern, fs_load_font): Update prototype.
21344 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21345
21346 * indent.c: Include "character.h" instead of "charset.h".
21347 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21348
21349 * insdel.c: Include "character.h" instead of "charset.h".
21350 (copy_text): Don't refer to Vnonascii_translation_table.
21351 (insert_from_gap): New function.
21352
21353 * keyboard.c: Include "character.h" instead of "charset.h".
21354 (command_loop_1): Never call direct_output_forward_char before
21355 a non-ASCII character.
21356 (read_char): If Vkeyboard_translate_table is a char table, always
21357 translate a character.
21358
21359 * keymap.c: Include "character.h".
21360 (store_in_keymap): Handle the case that IDX is a cons.
21361 (Fdefine_key): Handle the case that KEY is a cons and the car part
21362 is also a cons (range).
21363 (push_key_description): Adjust for the new character code.
21364 (describe_vector): Call describe_char_table for a char table.
21365 (describe_char_table): New function.
21366
21367 * keymap.h (describe_char_table): Extern it.
21368
21369 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21370 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21371 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21372 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21373 Delete.
21374 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21375 structure.
21376 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21377 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21378 (CHARTAB_SIZE_BITS_3): New macros.
21379 (chartab_size): Extern it.
21380 (struct Lisp_Char_Table): Re-design.
21381 (struct Lisp_Sub_Char_Table): New structure.
21382 (HASH_KEY, HASH_VALUE): Move from fns.c.
21383 (CHARACTERBITS): Define as 22.
21384 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21385 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21386 (GC_SUB_CHAR_TABLE_P): New macro.
21387 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21388 (code_convert_string_norecord): Deleted extern.
21389 (init_character_once, syms_of_character, init_charset)
21390 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21391
21392 * lread.c: Include "character.h".
21393 (read_multibyte): New arg NBYTES.
21394 (read_escape): Change the meaning of returned *BYTEREP.
21395 (to_multibyte): Delete.
21396 (read1): Adjust the handling of char table and string.
21397
21398 * print.c: Include "character.h" instead of "charset.h".
21399 (print_string): Convert 8-bit raw bytes to octal form by
21400 string_escape_byte8.
21401 (print_object): Adjust for the new multibyte form. Print 8-bit
21402 raw bytes always in octal form. Handle sub char table correctly.
21403
21404 * process.c: Include "character.h" instead of "charset.h".
21405 (read_process_output, send_process): Adjust for the new
21406 code-conversion API.
21407
21408 * puresize.h (BASE_PURESIZE): Increase.
21409
21410 * regex.c: Include "character.h" instead of "charset.h".
21411 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21412 (regex_compile): Accept a range whose starting and ending
21413 character have different leading bytes.
21414 (analyse_first): Adjust for the above change.
21415
21416 * search.c: Include "character.h" instead of "charset.h".
21417 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21418 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21419
21420 * syntax.c: Include "character.h" instead of "charset.h".
21421 (syntax_parent_lookup): Delete.
21422 (Fmodify_syntax_entry): Accept a cons as CHAR.
21423 (skip_chars): Adjust for the new multibyte form.
21424 (init_syntax_once): Call char_table_set_range instead of directly
21425 accessing the structure of a char table.
21426
21427 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21428 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21429 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21430 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21431
21432 * term.c: Include "buffer.h" and "character.h".
21433 (encode_terminal_code, write_glyphs): Adjust for the new
21434 code-conversion API.
21435 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21436
21437 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21438
21439 * xdisp.c: Include "character.h".
21440 (get_next_display_element): Adjust for the new multibyte form.
21441 (disp_char_vector): Adjust for the new char table structure.
21442 (decode_mode_spec_coding): Adjust for the new structure of
21443 coding system.
21444 (decode_mode_spec): Adjust for the new code-conversion API.
21445
21446 * xfaces.c: Include "character.h" instead of "charset.h".
21447 (load_face_font): Adjust for the change of choose_face_font and
21448 FS_LOAD_FONT.
21449 (generate_ascii_font): New function.
21450 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21451 (set_font_frame_param): Adjust for the change of choose_face_font.
21452 (free_realized_face): Make it public.
21453 (free_realized_faces_for_fontset): Rename from
21454 free_realized_multibyte_face. Free also faces realized for ASCII.
21455 (choose_face_font): Change arguments. Adjust for the change of
21456 fontset_font_pattern and FS_LOAD_FONT.
21457
21458 * xfns.c: Include "character.h".
21459 (x_encode_text): Adjust for the new code-conversion API.
21460
21461 * xselect.c: Don't include "charset.h".
21462 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21463
21464 * xterm.c: Include "character.h".
21465 (x_encode_char): New argument CHARSET. Change caller.
21466 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21467 Call ENCODE_CHAR instead of SPLIT_CHAR.
21468 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21469 CHAR_WIDTH instead of CHARSET_WIDTH.
21470 (XTread_socket): Adjust for the new code-conversion API.
21471 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21472 (x_load_font): Adjust for the change of struct font.
21473
21474 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21475
21476 * xfaces.c (face_at_buffer_position): Remove unused vars.
21477
21478 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21479
21480 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21481 Fix overflow checking.
21482
21483 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21484
21485 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21486 Cancel previous change.
21487
21488 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21489
21490 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21491 ccl->eight_bit_control. Fix check for buffer overflow.
21492 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21493 (ccl_driver): Initialize extra_bytes to 0.
21494
21495 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21496
21497 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21498 return it ORed with ctrl_modifier.
21499
21500 2008-01-29 Miles Bader <miles@gnu.org>
21501
21502 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21503
21504 2008-01-28 Jason Rumney <jasonr@gnu.org>
21505
21506 * w32.c (stat): Don't double check for networked drive.
21507
21508 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21509
21510 * window.c (run_window_configuration_change_hook): New function.
21511 Code extracted from set_window_buffer. Set the selected frame.
21512 (set_window_buffer): Use it.
21513 * window.h (run_window_configuration_change_hook): Declare.
21514 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21515
21516 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21517
21518 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21519
21520 * Makefile.in: Remove references to unused macros.
21521
21522 2008-01-26 Eli Zaretskii <eliz@gnu.org>
21523
21524 * w32.c (g_b_init_get_sid_sub_authority)
21525 (g_b_init_get_sid_sub_authority_count): New static variables.
21526 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21527 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21528 (init_user_info): Use them to retrieve uid and gid.
21529 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21530 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21531 st_uid and st_gid of the file.
21532
21533 2008-01-26 Jason Rumney <jasonr@gnu.org>
21534
21535 * w32.c (logon_network_drive): New function.
21536 (stat): Use it.
21537
21538 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
21539
21540 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21541 invisible text covered with an ellipsis.
21542
21543 2008-01-25 Richard Stallman <rms@gnu.org>
21544
21545 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21546 jump back to beginning. Move some other initializations after that.
21547 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21548 New variables.
21549 (syms_of_xdisp): Init them.
21550
21551 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21552
21553 * buffer.c (reset_buffer_local_variables):
21554 Implement `permanent-local-hook'.
21555 (Qpermanent_local_hook): New variable.
21556 (syms_of_buffer): Init and staticpro it.
21557
21558 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
21559
21560 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21561
21562 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21563
21564 * fns.c (Fclrhash): Return TABLE.
21565
21566 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21567
21568 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21569 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21570 is set even without positional changes.
21571 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21572
21573 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21574
21575 2008-01-23 Jason Rumney <jasonr@gnu.org>
21576
21577 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21578
21579 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21580 the unicode range available in MULE by locale-coding-system.
21581 Improve dbcs lead byte detection. Set event timestamp and modifiers
21582 earlier.
21583
21584 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21585
21586 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21587 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21588 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21589 when used on child processes.
21590
21591 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
21592
21593 * dbusbind.c (Fdbus_method_return_internal): Rename from
21594 Fdbus_method_return.
21595 (Fdbus_unregister_object): Move to dbus.el.
21596 (Fdbus_call_method, Fdbus_method_return_internal)
21597 (Fdbus_send_signal): Improve debug messages.
21598
21599 2008-01-20 Martin Rudalics <rudalics@gmx.at>
21600
21601 * undo.c (undo_inhibit_record_point): New variable.
21602 (syms_of_undo): Initialize it.
21603 (record_point): Don't record point when undo_inhibit_record_point
21604 is set.
21605
21606 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21607
21608 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21609
21610 * xdisp.c (Qauto_hscroll_mode): New var.
21611 (syms_of_xdisp): Initialize it.
21612 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21613 window's buffer.
21614 (hscroll_windows): Don't check automatic_hscrolling_p here.
21615
21616 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21617 vscroll if we're setting window-buffer to the value it already has.
21618
21619 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21620
21621 * m/intel386.h: Remove references to XENIX.
21622
21623 2008-01-17 Andreas Schwab <schwab@suse.de>
21624
21625 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21626 instead of HAVE_X86_64_LIB64_DIR.
21627 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21628
21629 2008-01-17 Glenn Morris <rgm@gnu.org>
21630
21631 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21632 to HAVE_X86_64_LIB64_DIR.
21633
21634 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21635
21636 * s/irix3-3.h:
21637 * s/irix4-0.h:
21638 * s/386-ix.h:
21639 * s/domain.h:
21640 * s/hpux9-x11r4.h:
21641 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21642
21643 * sysdep.c: Remove code containing references to symbols defined
21644 by unsupported systems.
21645
21646 2008-01-16 Glenn Morris <rgm@gnu.org>
21647
21648 * coding.c (select-safe-coding-system-function): Doc fix.
21649
21650 2008-01-15 Glenn Morris <rgm@gnu.org>
21651
21652 * config.in: Revert 2008-01-13 change: this is a generated file.
21653
21654 2008-01-13 Tom Tromey <tromey@redhat.com>
21655
21656 * lisp.h: Fix typo.
21657
21658 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21659
21660 * m/sequent-ptx.h:
21661 * m/sequent.h:
21662 * s/ptx.h:
21663 * s/ptx4-2.h:
21664 * s/ptx4.h: Remove files for systems no longer supported.
21665
21666 * callproc.c (Fcall_process): Fix previous change.
21667
21668 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21669
21670 * unexsunos4.c: Remove file, system not supported anymore.
21671
21672 * m/mips.h:
21673 * m/intel386.h:
21674 * callproc.c:
21675 * config.in:
21676 * ecrt0.c:
21677 * emacs.c:
21678 * fileio.c:
21679 * frame.c:
21680 * getpagesize.h:
21681 * keyboard.c:
21682 * lread.c:
21683 * process.c:
21684 * puresize.h:
21685 * sysdep.c:
21686 * systty.h:
21687 * syswait.h:
21688 * unexec.c:
21689 * xdisp.c:
21690 * alloc.c: Remove code containing references to symbols defined by
21691 unsupported systems.
21692
21693 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21694
21695 * coding.c (detect_coding_mask): Fix previous change.
21696
21697 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21698
21699 * coding.c (detect_coding_iso2022): New arg
21700 latin_extra_code_state. Allow Latin extra codes only
21701 when *latin_extra_code_state is nonzero.
21702 (detect_coding_mask): If there is a NULL byte, detect the encoding
21703 as UTF-16 or binary. If Latin extra codes exist, detect the
21704 encoding as ISO-2022 only when there's no other proper encoding is
21705 found.
21706
21707 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21708
21709 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21710 #ifdef MAC_OS.
21711
21712 2008-01-08 Richard Stallman <rms@gnu.org>
21713
21714 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21715
21716 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
21717
21718 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21719 menu bar in parentheses.
21720
21721 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21722
21723 * m/7300.h:
21724 * m/acorn.h:
21725 * m/alliant-2800.h:
21726 * m/alliant.h:
21727 * m/alliant1.h:
21728 * m/alliant4.h:
21729 * m/altos.h:
21730 * m/amdahl.h:
21731 * m/apollo.h:
21732 * m/att3b.h:
21733 * m/aviion-intel.h:
21734 * m/aviion.h:
21735 * m/celerity.h:
21736 * m/clipper.h:
21737 * m/cnvrgnt.h:
21738 * m/convex.h:
21739 * m/cydra5.h:
21740 * m/delta88k.h:
21741 * m/dpx2.h:
21742 * m/dual.h:
21743 * m/elxsi.h:
21744 * m/f301.h:
21745 * m/gould-np1.h:
21746 * m/gould.h:
21747 * m/i860.h:
21748 * m/ibmps2-aix.h:
21749 * m/ibmrt-aix.h:
21750 * m/ibmrt.h:
21751 * m/irist.h:
21752 * m/is386.h:
21753 * m/isi-ov.h:
21754 * m/mega68.h:
21755 * m/mg1.h:
21756 * m/news-r6.h:
21757 * m/news-risc.h:
21758 * m/news.h:
21759 * m/nh3000.h:
21760 * m/nh4000.h:
21761 * m/ns16000.h:
21762 * m/ns32000.h:
21763 * m/nu.h:
21764 * m/orion.h:
21765 * m/orion105.h:
21766 * m/paragon.h:
21767 * m/pfa50.h:
21768 * m/plexus.h:
21769 * m/pyramid.h:
21770 * m/pyrmips.h:
21771 * m/sh3el.h:
21772 * m/sps7.h:
21773 * m/sr2k.h:
21774 * m/stride.h:
21775 * m/sun1.h:
21776 * m/sun2.h:
21777 * m/sun3-68881.h:
21778 * m/sun3-fpa.h:
21779 * m/sun3-soft.h:
21780 * m/sun3.h:
21781 * m/sun386.h:
21782 * m/symmetry.h:
21783 * m/tad68k.h:
21784 * m/tahoe.h:
21785 * m/targon31.h:
21786 * m/tek4300.h:
21787 * m/tekxd88.h:
21788 * m/tower32.h:
21789 * m/tower32v3.h:
21790 * m/ustation.h:
21791 * m/wicat.h:
21792 * m/xps100.h:
21793 * s/cxux.h:
21794 * s/cxux7.h:
21795 * s/dgux.h:
21796 * s/dgux4.h:
21797 * s/dgux5-4-3.h:
21798 * s/dgux5-4r2.h:
21799 * s/esix.h:
21800 * s/esix5r4.h:
21801 * s/hiuxmpp.h:
21802 * s/hiuxwe2.h:
21803 * s/iris3-5.h:
21804 * s/iris3-6.h:
21805 * s/isc2-2.h:
21806 * s/isc3-0.h:
21807 * s/isc4-0.h:
21808 * s/isc4-1.h:
21809 * s/newsos5.h:
21810 * s/newsos6.h:
21811 * s/osf1.h:
21812 * s/osf5-0.h:
21813 * s/riscix1-1.h:
21814 * s/riscix12.h:
21815 * s/sco4.h:
21816 * s/sco5.h:
21817 * s/sunos4-0.h:
21818 * s/sunos4-1.h:
21819 * s/sunos413.h:
21820 * s/sunos4shr.h:
21821 * s/umax.h:
21822 * s/unipl5-2.h:
21823 * s/xenix.h:
21824 * cxux-crt0.s:
21825 * unexapollo.c:
21826 * unexconvex.c:
21827 * unexenix.c:
21828 * unexsni.c: Remove files for systems no longer supported.
21829
21830 * m/intel386.h: Remove references to unsupported systems.
21831
21832 * w32.c (get_emacs_configuration): Remove reference to i860.
21833
21834 * sysdep.c: Remove dead code.
21835
21836 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21837
21838 * s/rtu.h:
21839 * m/masscomp.h: Remove files. Platform is obsolete.
21840
21841 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
21842
21843 * dbusbind.c (Fdbus_method_return): New function.
21844 (xd_read_message): Add the serial number to the event.
21845 (Fdbus_register_method): Activate the function.
21846
21847 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21848
21849 * keyboard.c (read_key_sequence): Fix typo.
21850
21851 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
21852
21853 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21854 (xd_signature, xd_append_arg): Handle element type detection for
21855 empty arrays.
21856 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21857 SDATA () calls; this must be solved more general.
21858 (Fdbus_register_signal): Use SBYTES instead of strlen.
21859
21860 2008-01-03 Magnus Henoch <magnus@zemdatav>
21861
21862 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21863 unsigned int for byte values (necessary for big-endian platform).
21864 (Fdbus_call_method): Handle the case of no returned arguments.
21865
21866 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21867
21868 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21869
21870 2007-12-31 Magnus Henoch <mange@freemail.hu>
21871
21872 * dbusbind.c (xd_signature): Signature of variant is just "v".
21873
21874 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
21875
21876 * dbusbind.c: Fix several errors and compiler warnings.
21877 Reported by Tom Tromey <tromey@redhat.com>.
21878 (XD_ERROR, XD_DEBUG_MESSAGE)
21879 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21880 (xd_append_arg): Part for basic D-Bus types rewritten.
21881 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21882 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21883 appropriate.
21884 (xd_read_message): Return Qnil. Don't signal an error; it is not
21885 useful during event reading.
21886 (Fdbus_register_signal): Signal an error if the check for
21887 FUNCTIONP fails.
21888 (Fdbus_register_method): New function. The implementation is not
21889 complete, the call of the function signals an error therefore.
21890 (Fdbus_unregister_object): New function, renamed from
21891 Fdbus_unregister_signal. The initial check signals an error, if
21892 the object is not well formed.
21893
21894 2007-12-30 Richard Stallman <rms@gnu.org>
21895
21896 * textprop.c (get_char_property_and_overlay):
21897 Signal error if POSITION is out of range in a buffer.
21898
21899 2007-12-29 Martin Rudalics <rudalics@gmx.at>
21900
21901 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21902 because the original parameters are in pure storage now.
21903
21904 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21905
21906 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21907
21908 2007-12-22 Eli Zaretskii <eliz@gnu.org>
21909
21910 * callint.c (syms_of_callint) <command-history>: Add reference to
21911 history-length in the doc string.
21912
21913 2007-12-17 Jason Rumney <jasonr@gnu.org>
21914
21915 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21916 before passing as wParam.
21917
21918 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
21919
21920 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21921 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21922 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21923 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21924 as number.
21925 (Fdbus_call_method): Fix docstring.
21926
21927 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
21928
21929 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21930 New macros.
21931 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21932 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21933 Simplify.
21934 (xd_signature): New function.
21935 (xd_append_arg): Compute also signatures. Major rewrite.
21936 (xd_retrieve_arg): Make debug messages friendly.
21937 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21938 Check for signatures of arguments.
21939
21940 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
21941
21942 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21943 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21944 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21945 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21946 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21947 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21948 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21949 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21950 (xd_retrieve_value): Remove. Functionality included in ...
21951 (xd_append_arg): New function.
21952 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21953
21954 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
21955
21956 * dbusbind.c (top): Include <stdio.h>.
21957 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21958 dbus_message_new_method_call and dbus_message_new_signal.
21959 (Fdbus_register_signal): Rename unique_name to uname.
21960 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21961 non-existing unique name. Fix typos in matching rule. Return an
21962 object which is useful in Fdbus_unregister_signal.
21963 (Fdbus_unregister_signal): Reimplementation, in order to remove
21964 only the corresponding entry.
21965 (Vdbus_registered_functions_table): Change the order of entries.
21966 Apply these changes in xd_read_message and Fdbus_register_signal.
21967
21968 2007-12-16 Andreas Schwab <schwab@suse.de>
21969
21970 * fileio.c (Finsert_file_contents): Fix overflow check to not
21971 depend on undefined integer overflow.
21972
21973 2007-12-14 Jason Rumney <jasonr@gnu.org>
21974
21975 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21976 for characters above 127.
21977
21978 2007-12-13 Jason Rumney <jasonr@gnu.org>
21979
21980 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21981 before dereferencing array.
21982 (lookup_vk_code): Remove zero comparison.
21983
21984 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
21985
21986 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21987 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21988 Use `unsigned int' instead of `uint'.
21989 (xd_read_message, Fdbus_register_signal): Split expressions into
21990 multiple lines before operators "&&" and "||", according to the
21991 GNU Coding Standards.
21992
21993 2007-12-14 Eli Zaretskii <eliz@gnu.org>
21994
21995 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21996
21997 2007-12-12 Juri Linkov <juri@jurta.org>
21998
21999 * buffer.c (Frename_buffer): In interactive spec replace
22000 `read-buffer' with `read-string' that uses `buffer-name-history'
22001 as history, and the current buffer's name as default.
22002
22003 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22004
22005 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22006 manipulating the backtrace manually.
22007 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22008 (struct backtrace, backtrace_list): Remove.
22009 (command_loop_1): Remove dead var `no_direct'.
22010
22011 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22012 preserve non-built-in buffer-local variables.
22013 (Fkill_all_local_variables): Don't re-create&re-set permanent
22014 buffer-local variables.
22015
22016 2007-12-09 Juri Linkov <juri@jurta.org>
22017
22018 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22019 Lisp code that uses `read-buffer' with current buffer as default.
22020
22021 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
22022
22023 * dbusbind.c (xd_read_message): Generate an event for every
22024 registered handler. There might be several handlers registered
22025 for the same signal.
22026 (Fdbus_register_signal): Don't overwrite a registration for the
22027 same signal. Add a new registration if handlers are different.
22028 (Vdbus_registered_functions_table): Rework doc string.
22029
22030 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
22031
22032 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22033 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22034 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22035 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22036 Unify argument lists.
22037 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22038 arguments and hash table keys. Use unique name for service.
22039 (Fdbus_unregister_signal): Remove checks.
22040 (Vdbus_registered_functions_table): Fix doc string.
22041
22042 2007-12-05 Magnus Henoch <mange@freemail.hu>
22043
22044 * process.c (make_process): Initialize pty_flag to 0.
22045
22046 2007-12-05 Jason Rumney <jasonr@gnu.org>
22047
22048 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22049 specified XBMs.
22050
22051 2007-12-05 Richard Stallman <rms@gnu.org>
22052
22053 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22054
22055 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22056
22057 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22058 New variable.
22059 (mac_try_close_socket) [MAC_OSX]: New function.
22060 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22061 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22062
22063 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22064 Use mac_try_close_socket.
22065
22066 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22067
22068 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22069 reloc_base.
22070 (copy_dysymtab): Compute relocation base here.
22071 (rebase_reloc_address) [__ppc64__]: New function.
22072 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22073 changed.
22074
22075 2007-12-05 Jason Rumney <jasonr@gnu.org>
22076
22077 * w32proc.c (sys_spawnve): Quote args with wildcards.
22078
22079 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22080
22081 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22082 __objc_* sections.
22083 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22084
22085 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
22086
22087 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22088 Move check for Vdbus_registered_functions_table to
22089 xd_read_queued_messages.
22090 (xd_read_queued_messages): Protect xd_read_message calls by
22091 internal_condition_case_1.
22092
22093 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
22094
22095 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22096 Qdbus_system_bus and Qdbus_session_bus, respectively.
22097 (Vdbus_intern_symbols): Remove.
22098 (Vdbus_registered_functions_table): New hash table.
22099 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22100 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22101 Rewrite in order to manage registered functions by hash table
22102 Vdbus_registered_functions_table.
22103
22104 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22105
22106 * xterm.c: Update URL to Window Manager Specification in comment.
22107
22108 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
22109
22110 * config.in (HAVE_DBUS): Add.
22111
22112 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22113 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22114 (obj): Add $(DBUS_OBJ).
22115 (LIBES): Add $(DBUS_LIBS).
22116 (dbusbind.o): New target.
22117
22118 * dbusbind.c: New file.
22119
22120 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22121
22122 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22123 (Qdbus_event): New Lisp symbol.
22124 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22125 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
22126 (keys_of_keyboard): Define dbus-event.
22127
22128 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22129
22130 2007-12-01 Richard Stallman <rms@gnu.org>
22131
22132 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22133
22134 2007-11-30 Jason Rumney <jasonr@gnu.org>
22135
22136 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22137 (w32con_reset_terminal_modes): Clear screen buffer.
22138 (w32_face_attributes): Don't use color indexes that are out of range.
22139 Only reverse the default colors.
22140
22141 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22142 WINDOWSNT.
22143
22144 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22145
22146 2007-11-29 Jason Rumney <jasonr@gnu.org>
22147
22148 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22149 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22150 if the terminal colors are initialized.
22151 (unspecified_fg, unspecified_bg): Remove unused declarations.
22152
22153 2007-11-29 Andreas Schwab <schwab@suse.de>
22154
22155 * keyboard.c (apply_modifiers): Fix typo.
22156
22157 2007-11-29 Richard Stallman <rms@gnu.org>
22158
22159 * keymap.c (Fcurrent_local_map): Doc fix.
22160
22161 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22162
22163 * s/gnu-kfreebsd.h: New file.
22164
22165 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22166
22167 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22168 Don't cast redundantly.
22169
22170 * keyboard.c (KEY_TO_CHAR): New macro.
22171 (parse_modifiers, apply_modifiers): Accept integer arguments.
22172 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22173 for chars and symbol keys.
22174 After doing such remapping, apply function-key-map again.
22175
22176 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22177
22178 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22179 compiled anymore.
22180
22181 2007-11-26 Andreas Schwab <schwab@suse.de>
22182
22183 * process.c (list_processes_1): Fix indentation level of the
22184 command column.
22185
22186 2007-11-23 Andreas Schwab <schwab@suse.de>
22187
22188 * editfns.c (Fformat): Handle %c specially since it requires the
22189 argument to be of type int.
22190
22191 2007-11-23 Markus Triska <markus.triska@gmx.at>
22192
22193 * emacs.c (main): Call init_editfns before init_process, since
22194 init_process sets Vprocess_connection_type depending on OS release.
22195
22196 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22197
22198 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22199 (find_symbol_value): Use do_symval_forwarding.
22200
22201 * data.c (set_internal): Set the value in the `cons-cell' (for
22202 Buffer_Local_values) not only for frame-local variables.
22203
22204 2007-11-22 Andreas Schwab <schwab@suse.de>
22205
22206 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22207 values to sprintf.
22208 * keymap.c (Fsingle_key_description): Likewise.
22209 * print.c (print_object): Likewise.
22210
22211 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22212
22213 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22214 file for image is nil.
22215
22216 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22217
22218 * term.c: Include stdarg.h.
22219 (fatal): Implement using varargs.
22220 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22221
22222 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22223
22224 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22225 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22226 Update call to buffer_slot_type_mismatch.
22227 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22228 (buffer_slot_type_mismatch): Update.
22229 * buffer.c (buffer_local_types): Remove.
22230 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22231 (defvar_per_buffer): Set the type in the buffer_objfwd.
22232
22233 2007-11-21 Jason Rumney <jasonr@gnu.org>
22234
22235 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22236 CreateFileMapping returns NULL on failure.
22237
22238 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22239
22240 * search.c (Fset_match_data): Remove the `evaporate' feature.
22241 (unwind_set_match_data): Don't use the `evaporate' feature.
22242
22243 2007-11-21 Jason Rumney <jasonr@gnu.org>
22244
22245 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22246
22247 * w32console.c (w32con_write_glyphs): Remove unused variables.
22248
22249 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22250
22251 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22252
22253 * s/darwin.h (MULTI_KBOARD): Remove.
22254
22255 * macfns.c (x_create_tip_frame, Fx_create_frame)
22256 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22257
22258 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22259
22260 * buffer.c (Fbuffer_local_value): Remove redundant test.
22261 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22262 than in `current-buffer' to match the comment.
22263 Do the swap using swap_in_global_binding.
22264
22265 * data.c (store_symval_forwarding, set_internal):
22266 * eval.c (specbind): Remove dead code.
22267
22268 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22269 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22270 Since we do not want to see internal Lisp_*fwd objects here.
22271
22272 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22273
22274 * sysdep.c (init_system_name): Use getaddrinfo if available.
22275
22276 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22277 (x_scroll_bar_note_movement): start, end, with, height in struct
22278 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22279
22280 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22281
22282 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22283
22284 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22285
22286 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22287 This undoes Richard's change of 14-Oct-2002.
22288
22289 * alloc.c (allocate_other_vector):
22290 * lisp.h (allocate_other_vector): Remove.
22291
22292 * window.c (struct save_window_data): Move non-lisp data to the end
22293 and make it `int' rather than Lisp_Object.
22294 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22295 Done wrap/unwrap integer values.
22296 (Fset_window_configuration, compare_window_configurations):
22297 Update use of fields to their new types.
22298
22299 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22300 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22301 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22302 (SET_SCROLL_BAR_X_WINDOW): Remove.
22303 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22304 Access the new x_window field directly.
22305 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22306 Don't wrap/unwrap integers into Lisp_Objects.
22307 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22308 (x_scroll_bar_report_motion):
22309 Don't wrap/unwrap integers into Lisp_Objects.
22310 (x_term_init): Use SDATA.
22311 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22312 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22313 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22314 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22315 * xfns.c (x_set_background_color):
22316 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22317 Access the new x_window field directly.
22318
22319 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22320 (allocate_pseudovector): Make non-static.
22321
22322 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22323 (allocate_pseudovector): Declare.
22324 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22325
22326 2007-11-15 Andreas Schwab <schwab@suse.de>
22327
22328 * editfns.c (Fformat): Correctly format EMACS_INT values.
22329 Also take precision into account when formatting an integer.
22330
22331 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22332
22333 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22334
22335 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22336 (syms_of_keyboard): Defsubr it.
22337
22338 * data.c (swap_in_global_binding): Fix longstanding bug where
22339 store_symval_forwarding was not called with the right second argument,
22340 thus causing objfwd-ing from being dropped.
22341
22342 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22343
22344 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22345 (Fx_display_pixel_height, Fx_display_planes)
22346 (Fx_display_color_cells, Fx_server_max_request_size)
22347 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22348 (Fx_display_visual_class, Fx_display_save_under):
22349 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22350 (Fx_display_pixel_height, Fx_display_planes)
22351 (Fx_display_color_cells, Fx_server_max_request_size)
22352 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22353 (Fx_display_mm_height, Fx_display_mm_width)
22354 (Fx_display_backing_store, Fx_display_visual_class)
22355 (Fw32_select_font, Fx_display_save_under):
22356 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22357 (Fx_display_pixel_height, Fx_display_planes)
22358 (Fx_display_color_cells, Fx_server_max_request_size)
22359 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22360 (Fx_display_save_under): Fix typos in docstrings.
22361
22362 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22363
22364 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22365 corresponding to deleted entries; they are an implementation detail.
22366 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22367 Remove variables.
22368 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22369 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22370 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22371 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22372 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22373 (Fw32_define_rgb_color, Fw32_load_color_file)
22374 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22375 Fix typos in docstrings.
22376 (Fx_server_version): Reflow docstring.
22377 (Fw32_shell_execute): Doc fixes.
22378
22379 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
22380
22381 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22382 if w32_parse_hot_key returned nil.
22383
22384 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22385
22386 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22387
22388 2007-11-09 Jason Rumney <jasonr@gnu.org>
22389
22390 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22391
22392 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22393
22394 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22395 Remove W32_SCROLL_BAR_CLICK_EVENT.
22396
22397 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22398 Add MULTIMEDIA_KEY_EVENT.
22399
22400 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22401 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22402 (make_lispy_event) [WINDOWSNT]: Use it to translate
22403 MULTIMEDIA_KEY_EVENT.
22404
22405 * w32term.h (WM_APPCOMMAND): Define if not already.
22406 (GET_APPCOMMAND_LPARAM): Likewise.
22407
22408 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22409 WM_APPCOMMAND.
22410
22411 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22412 (syms_of_w32fns): Export and initialize it.
22413 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22414
22415 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
22416
22417 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22418 twice.
22419
22420 * xdisp.c (handle_face_prop): Fix last change.
22421
22422 2007-11-09 Richard Stallman <rms@gnu.org>
22423
22424 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22425 not just for after-strings and before-strings.
22426 Call face_for_overlay_string and pass the overlay to it.
22427 (handle_display_prop): Determine whether property came from an overlay.
22428 Pass OVERLAY arg to handle_single_display_spec.
22429 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22430 (load_overlay_strings): Fill in it->string_overlays.
22431 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22432
22433 * xfaces.c (face_for_overlay_string): Function renamed from
22434 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22435
22436 * dispextern.h (struct it): New elt string_overlays.
22437 New elt from_overlay, also in stack.
22438 Rearrange a few elements.
22439 (face_for_overlay_string): Decl renamed from
22440 face_at_buffer_position_no_overlays, and add argument.
22441
22442 2007-11-09 Richard Stallman <rms@gnu.org>
22443
22444 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22445 to get the base face for an overlay string.
22446
22447 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22448
22449 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22450
22451 * xdisp.c (handle_stop): Move some code out of loop.
22452
22453 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22454
22455 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22456 Fix conversion from Lisp object to ATSUFontID.
22457
22458 2007-11-09 Jason Rumney <jasonr@gnu.org>
22459
22460 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22461
22462 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22463
22464 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22465 Don't assume regions are aligned to page boundary.
22466 (print_load_command_name): Add LC_UUID if defined.
22467
22468 2007-11-09 Richard Stallman <rms@gnu.org>
22469
22470 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22471
22472 2007-11-07 Jason Rumney <jasonr@gnu.org>
22473
22474 * s/windows95.h: Remove.
22475
22476 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22477
22478 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22479 abort with a message on unhandled store_type values.
22480
22481 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22482
22483 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22484 Remove HAVE_X11R5 and HAVE_X11R4.
22485
22486 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22487
22488 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22489
22490 2007-11-01 Johan Bockgård <bojohan@gnu.org>
22491
22492 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22493 Don't set s->stippled_p here, since it has already been set by
22494 x_set_glyph_string_gc from x_draw_glyph_string.
22495
22496 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22497
22498 * sunfns.c: Remove file.
22499
22500 * m/sun386.h:
22501 * m/sun2.h:
22502 * m/sparc.h: Remove Sun windows code.
22503
22504 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22505
22506 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22507 (init_keyboard): Set current_kboard's window-system to nil.
22508 (tty_read_avail_input): Typo.
22509 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22510
22511 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22512
22513 * s/usg5-4.h:
22514 * s/usg5-3.h:
22515 * s/ptx.h:
22516 * m/is386.h:
22517 * m/ibmps2-aix.h:
22518 * Makefile.in: Remove all mentions of X10.
22519
22520 * dispnew.c (syms_of_display): Don't mention version 10.
22521
22522 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
22523
22524 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22525 ($(BLD)/abbrev.$(O)): Remove.
22526
22527 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22528
22529 Rewrite abbrev.c in Elisp.
22530 * image.c (Qcount): Don't declare as extern.
22531 (syms_of_image): Initialize and staticpro `Qcount'.
22532 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22533 * emacs.c (main): Don't call syms_of_abbrev.
22534 * Makefile.in (obj): Remove abbrev.o.
22535 (abbrev.o): Remove.
22536 * abbrev.c: Remove.
22537
22538 2007-10-26 Martin Rudalics <rudalics@gmx.at>
22539
22540 * window.c (window_min_size_2): Don't count header-line.
22541
22542 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22543
22544 * frame.h (struct frame): Move all bit fields after the first bit
22545 field to take advantage of the available space. Group all the
22546 chars together to reduce wasted space due to padding.
22547
22548 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
22549
22550 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22551
22552 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22553 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22554 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22555 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22556 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22557 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22558 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22559 (last_marked, mark_object_loop_halt): Make static.
22560
22561 * frame.c (syms_of_frame) <delete-frame-functions>:
22562 Fix typo in docstring.
22563
22564 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
22565
22566 * w32.c (init_environment): Fix tiny memory leak.
22567 (w32_get_resource): Remove unused variable `ok'.
22568
22569 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22570
22571 Make `window-system' into a keyboard-local variable (rather than
22572 frame-local as done originally by multi-tty).
22573
22574 * keyboard.h (struct kboard): Add Vwindow_system.
22575 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22576 (mark_kboards): Mark Vwindow_system.
22577
22578 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22579 (init_display): Don't set the obsolete `window-system' frame-param.
22580
22581 * xterm.c (x_term_init):
22582 * w32term.c (w32_create_terminal):
22583 * term.c (init_tty): Set Vwindow_system.
22584 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22585 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22586
22587 * xfns.c (Fx_create_frame, x_create_tip_frame):
22588 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22589 * macfns.c (Fx_create_frame):
22590 Don't set the obsolete `window-system' frame-param.
22591
22592 * frame.h (Qwindow_system): Remove.
22593 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22594 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22595
22596 2007-10-24 Richard Stallman <rms@gnu.org>
22597
22598 * frame.c (x_figure_window_size): For fullscreen case,
22599 set USPosition | PPosition without clobbering rest of window_prompting.
22600
22601 * keyboard.c (Fcurrent_idle_time): Doc fix.
22602
22603 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22604
22605 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22606
22607 * process.c (unwind_request_sigio): Only define if __ultrix__.
22608
22609 * callproc.c (child_setup): Remove spurious *.
22610
22611 * lisp.h (Fget_text_property): Declare.
22612 (have_menus_p): Declare it here rather than in sys-dep header files.
22613 * macterm.h (have_menus_p):
22614 * msdos.h (have_menus_p):
22615 * xterm.h (have_menus_p): Remove.
22616
22617 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22618 (Fmake_variable_frame_local): Just check the variable's const-ness
22619 rather than checking nil or t.
22620
22621 2007-10-22 Jason Rumney <jasonr@gnu.org>
22622
22623 * w32fns.c: Include math.h.
22624 (w32_abort): Declaration moved to nt/config.nt.
22625
22626 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22627 (abort): Redefinition moved to nt/config.nt.
22628
22629 * m/windowsnt.h: Remove.
22630
22631 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
22632
22633 * emacs.c (Fdump_emacs): Fix typo in message.
22634 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22635 <installation-directory>: Reflow docstring.
22636
22637 2007-10-22 Juri Linkov <juri@jurta.org>
22638
22639 * minibuf.c: Allow minibuffer default to be a list of default values.
22640 With empty input use the first element of this list as returned default.
22641 (string_to_object)
22642 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22643 (read_minibuf): If defalt is cons, set histstring to its car.
22644 (Fread_string): If default_value is cons, set val to its car.
22645 (Fread_buffer): If def is cons, use its car.
22646 (Fcompleting_read): If defalt is cons, set val to its car.
22647
22648 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
22649
22650 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22651
22652 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
22653
22654 * doc.c (Fdocumentation): Check for advice in all cases.
22655
22656 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
22657
22658 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22659
22660 2007-10-19 Richard Stallman <rms@gnu.org>
22661
22662 * doc.c (Fdocumentation): Check for and handle an advised function.
22663
22664 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
22665
22666 * process.c (Fset_process_filter): Doc fix.
22667
22668 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22669
22670 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22671 which caused key-translation-map to applied repeatedly (thus breaking
22672 double-mode).
22673
22674 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22675
22676 * xselect.c (x_own_selection, x_handle_selection_clear)
22677 (x_clear_frame_selections):
22678 * w32menu.c (list_of_panes, list_of_items):
22679 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22680 * textprop.c (validate_plist, interval_has_all_properties)
22681 (interval_has_some_properties, interval_has_some_properties_list)
22682 (add_properties, text_property_list):
22683 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22684 * minibuf.c (Fassoc_string):
22685 * macselect.c (x_own_selection, x_clear_frame_selections)
22686 (Fx_disown_selection_internal):
22687 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22688 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22689
22690 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
22691
22692 * process.c: Link to libs for calling res_init() if available.
22693 (Fmake_network_process): Call res_init() before getaddrinfo or
22694 gethostbyname, if possible.
22695
22696 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22697
22698 * lread.c (read1): Set pvectype for char_tables.
22699
22700 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22701 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22702 Add type checks.
22703 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22704
22705 * alloc.c (free_misc): Use XMISCTYPE.
22706 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22707
22708 2007-10-17 Glenn Morris <rgm@gnu.org>
22709
22710 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22711 (syms_of_minibuf): Add Qcompletion_ignore_case.
22712 * dired.c (Qcompletion_ignore_case): Change to external.
22713 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22714 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22715 (Fread_file_name): Use it rather than intern'ing.
22716
22717 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22718 (Fread_coding_system): Ignore case of user input.
22719
22720 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22721
22722 * xdisp.c (handle_display_prop): Ignore display specs after
22723 replacing one when string text is being replaced.
22724 (handle_single_display_spec): Pretend as if characters with display
22725 property haven't been consumed only when buffer text is being replaced.
22726
22727 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22728
22729 * xfns.c (Fx_create_frame, Fx_display_list):
22730 * window.c (window_fixed_size_p, enlarge_window)
22731 (shrink_window_lowest_first):
22732 * macterm.c (init_font_name_table):
22733 * macfns.c (Fx_create_frame, Fx_display_list):
22734 * lread.c (close_load_descs):
22735 * keyboard.c (read_char_x_menu_prompt):
22736 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22737 * coding.c (code_convert_region_unwind): Test the type of an object
22738 rather than just !NILP before extracting data from it.
22739
22740 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22741
22742 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22743 (XMISCANY): New macro.
22744 (XMISCTYPE): Use it.
22745 (struct Lisp_Misc_Any): New type.
22746 (union Lisp_Misc): Use it.
22747 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22748 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22749 (find_symbol_value, set_internal, default_value, Fset_default)
22750 (Fmake_variable_buffer_local, Fmake_local_variable)
22751 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22752 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22753 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22754 * alloc.c (allocate_buffer): Set the size and tag.
22755 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22756 Use XMISCANY.
22757 (die): Follow the GNU convention for error messages.
22758 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22759 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22760 tag any more.
22761 (set_buffer_internal_1):
22762 * frame.c (store_frame_param):
22763 * eval.c (specbind):
22764 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22765
22766 * doc.c (Fsnarf_documentation): Simplify.
22767
22768 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22769
22770 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22771 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22772
22773 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22774
22775 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22776
22777 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22778
22779 * eval.c (do_autoload): Don't save autoloads.
22780
22781 * data.c (Ffset): Save autoload of the function being set.
22782
22783 2007-10-07 John Paul Wallington <jpw@pobox.com>
22784
22785 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22786 parameter before setting up faces.
22787
22788 2007-10-13 Eli Zaretskii <eliz@gnu.org>
22789
22790 * ccl.c (Fregister_code_conversion_map):
22791 * keyboard.c (append_tool_bar_item): Reformat last change.
22792
22793 * lisp.h (eabs): Rename from `abs'. All callers changed.
22794
22795 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22796
22797 * buffer.c (add_overlay_mod_hooklist):
22798 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22799 * fontset.c (make_fontset):
22800 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22801 (append_tool_bar_item):
22802 * macmenu.c (grow_menu_items):
22803 * w32menu.c (grow_menu_items):
22804 * xmenu.c (grow_menu_items): Use larger_vector.
22805
22806 2007-10-13 Eli Zaretskii <eliz@gnu.org>
22807
22808 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22809 selected frame'' on MSDOS).
22810
22811 2007-10-12 Martin Rudalics <rudalics@gmx.at>
22812
22813 * frame.c (Qexplicit_name): New variable.
22814 (x_report_frame_params): Report it in parameter alist.
22815 (syms_of_frame): Intern and staticpro it.
22816
22817 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22818
22819 * macfns.c (x_create_tip_frame): Set terminal for frame.
22820
22821 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22822
22823 * frame.c (Qenvironment): Remove.
22824 (syms_of_frame) <Qenvironment>: Don't initialize.
22825 (Fdelete_frame): Don't treat the `environment' param specially.
22826 * frame.h (Qenvironment): Don't declare.
22827 * callproc.c (set_initial_environment): Don't set unused frame param.
22828
22829 * frame.c (Fframe_with_environment): Remove.
22830 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22831
22832 * lisp.h (Fframe_with_environment): Don't declare.
22833
22834 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
22835
22836 * indent.c (indent_tabs_mode, last_known_column)
22837 (last_known_column_modified): Make static.
22838 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22839
22840 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22841
22842 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22843
22844 2007-10-09 Jason Rumney <jasonr@gnu.org>
22845
22846 * w32term.c (x_set_window_size): Disable code that attempts to tell
22847 Lisp code about a size change before it actually happens.
22848
22849 2007-10-09 Richard Stallman <rms@gnu.org>
22850
22851 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22852 return HANDLED_RETURN.
22853
22854 2007-10-08 Martin Rudalics <rudalics@gmx.at>
22855
22856 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22857 when there's an unread command event.
22858
22859 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22860 window autoselection act appropriately when leaving selected frame.
22861 (syms_of_frame): Initialize focus_follows_mouse.
22862 * frame.h (focus_follows_mouse): Extern it.
22863 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22864 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22865 * msdos.c (dos_rawgetc): Likewise.
22866 * w32term.c (w32_read_socket): Likewise.
22867 * xterm.c (handle_one_xevent): Likewise.
22868 * xdisp.c (syms_of_xdisp): In doc-string of
22869 mouse-autoselect-window mention focus-follows-mouse.
22870
22871 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22872
22873 * macterm.c (mac_load_query_font): Fix missing return value.
22874 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22875 Add BLOCK_INPUT.
22876
22877 2007-10-08 Richard Stallman <rms@gnu.org>
22878
22879 * xdisp.c (get_window_cursor_type): Implement documented behavior
22880 for cursor-in-non-selected-windows = t.
22881
22882 2007-10-08 Jason Rumney <jasonr@gnu.org>
22883
22884 * w32.c (w32_get_resource): Always close registry keys.
22885
22886 2007-10-08 Jason Rumney <jasonr@gnu.org>
22887
22888 * makefile.w32-in (LIBS): Add COMCTL32.
22889
22890 * w32fns.c (globals_of_w32fns): Init common controls.
22891
22892 2007-10-08 Richard Stallman <rms@gnu.org>
22893
22894 * image.c (our_memory_buffer): Rename from omfib_buffer.
22895
22896 2007-10-08 Richard Stallman <rms@gnu.org>
22897
22898 * buffer.c (Foverlays_at): Doc fix.
22899
22900 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22901
22902 * fns.c (Fplist_put): Preserve uneven tail data.
22903
22904 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22905
22906 * termhooks.h (enum event_kind): Remove trailing comma.
22907
22908 * frame.h (enum): Remove trailing comma.
22909
22910 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22911
22912 * w32proc.c (delete_child): Don't terminate threads of zombies.
22913
22914 2007-10-08 Martin Rudalics <rudalics@gmx.at>
22915
22916 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22917
22918 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22919 last-repeatable-command.
22920 (init_kboard): Initialize Vlast_repeatable_command.
22921 (command_loop_1): Set it to real_this_command unless that was
22922 bound to an input event.
22923 (mark_kboards): Mark it.
22924
22925 2007-10-08 Richard Stallman <rms@gnu.org>
22926
22927 * eval.c (condition-case): Doc fix.
22928
22929 2007-10-08 Masatake YAMATO <jet@gyve.org>
22930
22931 * xfaces.c (tty_supports_face_attributes_p): Fix code
22932 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22933 was copied and not edited.
22934
22935 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22936
22937 Add new `input-decode-map' keymap and use it for terminal
22938 escape sequences.
22939 * keyboard.h (struct kboard): Add Vinput_decode_map.
22940 Remove Vlocal_key_translation_map.
22941 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22942 (init_kboard): Init input-decode-map.
22943 Replace local-key-translation-map back with key-translation-map.
22944 (syms_of_keyboard): Declare input-decode-map.
22945 Remove local-key-translation-map. Update docstrings.
22946 (mark_kboards): Mark Vinput_decode_map.
22947 Don't mark Vlocal_key_translation_map.
22948 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22949 Replace local-key-translation-map back with key-translation-map.
22950 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22951 Bind in input-decode-map rather than function-key-map.
22952
22953 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22954 This was made redundant by the previous introduction of XSETPVECTYPE.
22955
22956 2007-10-09 Richard Stallman <rms@gnu.org>
22957
22958 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22959
22960 2007-09-29 Richard Stallman <rms@gnu.org>
22961
22962 * eval.c (internal_condition_case_2, internal_condition_case_1)
22963 (internal_condition_case): Reenable abort if x_catching_errors ()
22964 to see if that really happens and why.
22965
22966 2007-10-06 Andreas Schwab <schwab@suse.de>
22967
22968 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22969
22970 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
22971
22972 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22973
22974 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22975
22976 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22977
22978 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22979
22980 * window.h (struct window):
22981 * window.c (struct save_window_data, struct saved_window):
22982 * termhooks.h (struct terminal):
22983 * process.h (struct Lisp_Process):
22984 * frame.h (struct frame):
22985 * buffer.h (struct buffer):
22986 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22987 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22988 The size field of (pseudo)vectors is now unsigned.
22989 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22990
22991 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22992 Turn `count' into an integer.
22993
22994 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22995 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22996 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22997 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22998 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22999
23000 * alloc.c (allocate_pseudovector): New fun.
23001 (ALLOCATE_PSEUDOVECTOR): New macro.
23002 (allocate_window, allocate_terminal, allocate_frame)
23003 (allocate_process): Use it.
23004 (mark_vectorlike): New function.
23005 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23006 (mark_terminals): Use it.
23007 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23008 (Fmake_byte_code): Use XSETPVECTYPE.
23009
23010 * frame.c (Fframe_parameters): Minor simplification.
23011
23012 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23013
23014 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23015
23016 * buffer.c (Fget_buffer_create, init_buffer_once):
23017 * lread.c (defsubr):
23018 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23019
23020 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23021 defined differently in the m/*.h files.
23022 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23023 (XSETPVECTYPE): New macro.
23024 (XSETPSEUDOVECTOR): Use it.
23025
23026 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23027 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23028
23029 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23030 * lread.c (defvar_per_buffer):
23031 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23032
23033 * window.c (candidate_window_p): Only consider as visible frames that
23034 are on the same terminal.
23035
23036 * m/ibms390x.h (MARKBIT): Remove unused macro.
23037
23038 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
23039
23040 * lread.c (Fload): Fix typo in docstring.
23041
23042 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23043
23044 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23045 of a non-zero value can't yield zero.
23046
23047 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23048
23049 * term.c (term_clear_mouse_face, term_mouse_highlight)
23050 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23051
23052 * print.c (safe_debug_print): Use XHASH.
23053
23054 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23055 Lisp elements such as tags.
23056 (XHASH): New macro.
23057 (EQ): Use it.
23058 (SREF, SSET, STRING_COPYIN): Use SDATA.
23059 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23060
23061 * alloc.c (mark_terminal): Remove left-over declaration.
23062 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23063 (allocate_vectorlike): Remove type argument. Adjust callers.
23064 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23065 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23066
23067 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23068 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23069 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23070 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23071 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23072 Use them.
23073
23074 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23075 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23076 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23077
23078 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23079
23080 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23081 loaded by default.
23082
23083 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23084
23085 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23086 on this tty.
23087 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23088
23089 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23090 Update all users.
23091 (handle_one_term_event): Use Gpm_DrawPointer.
23092 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23093 Signal errors instead of returning nil. Always return nil.
23094 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23095 Make it a noop if gpm-mouse was not activated.
23096 (syms_of_term): Update names.
23097
23098 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23099
23100 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23101 (init_sys_modes): Check that gpm_tty is the current tty.
23102
23103 * alloc.c (allocate_terminal): Set the vector size to only count the
23104 lisp fields. Initialize those to nil.
23105 (mark_object): Don't treat terminals specially.
23106 (mark_terminal): Remove.
23107 (mark_terminals): Use mark_object instead.
23108
23109 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23110 the GC to the beginning.
23111
23112 * indent.h:
23113 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23114
23115 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23116
23117 2007-09-25 Jason Rumney <jasonr@gnu.org>
23118
23119 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23120
23121 * w32console.c (create_w32cons_output): Remove.
23122
23123 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23124
23125 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23126 (reset_sys_modes): Use reset_terminal_modes_hook.
23127
23128 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23129
23130 * eval.c (do_autoload): Don't output any message.
23131
23132 2007-09-24 Juri Linkov <juri@jurta.org>
23133
23134 * emacs.c (standard_args): Change priority of "--no-splash"
23135 from 40 to 3. Add "--no-desktop" with the same priority.
23136
23137 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23138
23139 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23140 and optimize the case where they are all 1.
23141
23142 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
23143
23144 * lisp.h (abs): Define if not defined.
23145 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23146 Don't define `abs', since it's defined in lisp.h.
23147
23148 2007-09-22 Eli Zaretskii <eliz@gnu.org>
23149
23150 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23151 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23152 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23153 (init_tty): Use DEV_TTY instead of "/dev/tty".
23154 [WINDOWSNT]: No need to protect from NAME arg being null.
23155
23156 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23157
23158 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23159 up the tty state.
23160
23161 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23162
23163 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23164 (gpm_tty): Change its type.
23165 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23166 (gpm_tty): Change its type and initialize it.
23167 (Fterm_open_connection): Check the frame is indeed a tty.
23168 Use the new gpm_tty.
23169 (Fterm_close_connection): Use the new gpm_tty.
23170 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23171 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23172
23173 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
23174
23175 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23176 underline_color, to draw strike-through.
23177
23178 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23179
23180 * lisp.h (allocate_terminal): Declare.
23181
23182 * window.c (candidate_window_p): Consider frames that are being placed
23183 by the user as somewhere between visible and iconified.
23184 (window_loop): Prefer windows on the current frame.
23185 (Fselect_window): Move the use of select-frame to the beginning so we
23186 can just delegate all the work (it'll call us back anyway).
23187
23188 * frame.c (Qdisplay_environment_variable):
23189 * frame.h (Qdisplay_environment_variable): Delete.
23190
23191 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23192 of the first arg, since that value may be a union.
23193
23194 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23195 parameter rather than Qdisplay_environment_variable. If all else
23196 fails, look for DISPLAY in initial-environment.
23197
23198 2007-09-21 Glenn Morris <rgm@gnu.org>
23199
23200 * Makefile.in (emacstool): Remove target.
23201 (lisp, shortlisp): Remove termdev.elc.
23202
23203 2007-09-21 Markus Triska <markus.triska@gmx.at>
23204
23205 * xterm.c (x_delete_display): Compile session management conditionally.
23206
23207 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23208
23209 * callproc.c (getenv_internal_1): New function.
23210 (getenv_internal): Use it.
23211 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23212
23213 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23214 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23215 (Fset_terminal_parameter): Work with dead terminals as well.
23216 (Fmodify_terminal_parameters): Remove.
23217
23218 * terminal.c (get_terminal): Handle terminals.
23219 Make sure the terminal returned is live.
23220 (create_terminal): Use allocate_terminal.
23221 (mark_terminals): Move to alloc.c.
23222 (delete_terminal): Use terminal->name as liveness status.
23223 NULL out fields after freeing their contents.
23224 Don't deallocate the object.
23225 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23226 rather than an int.
23227 (Fterminal_live_p): Accept non-integer arguments.
23228 (Fterminal_list): Return terminal objects rather than an ints.
23229
23230 * alloc.c (enum mem_type): New member for `terminal' objects.
23231 (allocate_terminal): New function.
23232 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23233 Handle terminals.
23234 (mark_terminal): New fun.
23235 (mark_terminals): Move from terminal.c.
23236
23237 * term.c (get_tty_terminal): Don't treat output_initial specially.
23238 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23239 (delete_tty): Use terminal->name as liveness status.
23240
23241 * termhooks.h (struct terminal): Make it into a pseudovector.
23242 Remove `deleted' replaced by checking `name's nullness.
23243
23244 * print.c (print_object): Handle terminals.
23245
23246 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23247 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23248
23249 * frame.c (make_terminal_frame):
23250 * keyboard.c (tty_read_avail_input):
23251 * w32term.c (x_delete_terminal):
23252 * xfns.c (Fx_create_frame, x_create_tip_frame):
23253 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23254
23255 2007-09-20 Glenn Morris <rgm@gnu.org>
23256
23257 * process.c (Fmake_network_process): Doc fix.
23258
23259 2007-09-19 Jason Rumney <jasonr@gnu.org>
23260
23261 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23262
23263 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23264
23265 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23266 Fix a C warning regarding variable constness.
23267
23268 * xterm.c (handle_one_xevent): Fix a C warning.
23269
23270 2007-09-18 Jason Rumney <jasonr@gnu.org>
23271
23272 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23273
23274 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23275
23276 * gtkutil.c (gdpy_def): New variable.
23277 (xg_initialize): Initialize gdpy_def.
23278 (xg_display_close): If no other display exists, set gdpy_def to a
23279 new connection.
23280
23281 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23282
23283 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23284 when we have no file name for the icon.
23285 (xg_tool_bar_expose_callback): Remove.
23286 (xg_create_tool_bar): Don't connect expose signal to
23287 xg_tool_bar_expose_callback.
23288 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23289
23290 2007-09-16 Andreas Schwab <schwab@suse.de>
23291
23292 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23293 values instead of zapping them.
23294
23295 2007-09-14 Glenn Morris <rgm@gnu.org>
23296
23297 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23298 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23299 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23300 scope and rename to omfib_buffer for clarity.
23301 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23302
23303 2007-09-14 Kenichi Handa <handa@m17n.org>
23304
23305 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23306
23307 2007-09-13 Jason Rumney <jasonr@gnu.org>
23308
23309 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23310
23311 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23312
23313 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23314 (mac_term_init): Call here instead, passing rif.
23315
23316 2007-09-13 Glenn Morris <rgm@gnu.org>
23317
23318 * s/hpux.h: No longer define `static' as nothing.
23319
23320 2007-09-13 Johan Bockgård <bojohan@gnu.org>
23321
23322 * callint.c (Fcall_interactively): Remove unused var `fun'.
23323
23324 2007-09-12 Romain Francoise <romain@orebokech.com>
23325
23326 * window.c (prefer_window_split_horizontally, display_buffer):
23327 Revert 2007-09-08 change.
23328
23329 2007-09-12 Glenn Morris <rgm@gnu.org>
23330
23331 * alloca.c: Remove file.
23332 * Makefile.in (alloca): Do not undef.
23333 (allocaobj, alloca.o): Remove.
23334 (otherobj): Remove allocaobj.
23335 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23336 * regex.c (C_ALLOCA): Remove all references and code that was only
23337 used when this was defined.
23338 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23339 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23340 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23341
23342 * Makefile.in (SOURCES, unlock, relock): Delete.
23343
23344 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23345 (menu_grab_callback): All uses changed.
23346
23347 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23348 (x_reply_selection_request): All uses changed.
23349
23350 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23351
23352 * lread.c (load_warn_old_style_backquotes): Change message to look
23353 better when it appears in the middle of byte-compiler messages.
23354
23355 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23356
23357 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23358
23359 * xterm.c (x_create_terminal): Add comment.
23360
23361 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23362
23363 2007-09-10 Richard Stallman <rms@gnu.org>
23364
23365 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23366
23367 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23368
23369 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23370 (DEFUN): Document `intspec', use it instead of `prompt'.
23371
23372 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23373
23374 * data.c (Finteractive_form): If the interactive specification starts
23375 with a `(', use it as a Lisp form.
23376
23377 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23378 name and file modes.
23379
23380 * callint.c (Fcall_interactively): Comment fixes.
23381
23382 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23383
23384 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23385 and compiled functions.
23386
23387 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23388
23389 * window.c (prefer_window_split_horizontally): New variable.
23390 (display_buffer): Consider splitting window horizontally depending
23391 on prefer_window_split_horizontally.
23392
23393 2007-09-08 Eli Zaretskii <eliz@gnu.org>
23394
23395 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23396
23397 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23398
23399 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23400
23401 * frame.c (x_set_frame_parameters): Check number is positive before
23402 using XFASTINT.
23403
23404 * window.c (freeze_window_start): Don't presume selected_window holds
23405 a window object.
23406 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23407
23408 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23409
23410 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23411
23412 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23413
23414 * window.c (Vsplit_window_preferred_function): New var.
23415 (Fdisplay_buffer): Use it.
23416 (syms_of_window): Export, and initialize it.
23417
23418 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23419
23420 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23421
23422 2007-09-06 Glenn Morris <rgm@gnu.org>
23423
23424 * gtkutil.c (menu_grab_callback) <cnt>:
23425 * xselect.c (x_reply_selection_request) <cnt>: Move static
23426 variable to file scope.
23427
23428 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23429
23430 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23431 consistent values of selected_frame and selected_window.
23432
23433 2007-09-04 Jason Rumney <jasonr@gnu.org>
23434
23435 * w32console.c (initialize_w32_display): Zero unused hooks.
23436
23437 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23438
23439 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23440 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23441
23442 2007-09-04 Jason Rumney <jasonr@gnu.org>
23443
23444 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23445 in w32console.c. Set up input. Remove XXX comments that have been
23446 confirmed as correct.
23447
23448 * s/ms-w32.h (MULTI_KBOARD): Define.
23449
23450 * w32console.c (one_and_only_w32cons): Remove.
23451 (initialize_w32_display): Take terminal argument.
23452
23453 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23454 initialize_w32_display.
23455 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23456
23457 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23458
23459 * keyboard.c (discard_mouse_events): Discard it.
23460 (make_lispy_event): Translate it to a lisp event.
23461 (lispy_wheel_names): Add wheel-left and right events.
23462 (syms_of_keyboard): Enlarge wheel_syms.
23463
23464 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23465 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23466
23467 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23468
23469 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23470 from WM_MOUSEHWHEEL.
23471 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23472
23473 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23474 terminal.
23475
23476 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23477 keyboard for the terminal.
23478
23479 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23480
23481 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23482 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23483 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23484 and resume-tty-function to resume-tty-hook.
23485 (Fsuspend_tty, Fresume_tty): Use new names.
23486
23487 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23488
23489 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23490 if it starts with "n:".
23491
23492 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23493
23494 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23495
23496 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23497
23498 * frame.h:
23499 * frame.c (Qterm_environment_variable): Remove.
23500 (syms_of_frame): Don't init and staticpro it.
23501
23502 * callproc.c (getenv_internal): Remove special case for $TERM.
23503
23504 * callproc.c (Vinitial_environment): New variable.
23505 (set_initial_environment): Initialize it.
23506 (syms_of_callproc): Declare it.
23507 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23508 TERM under which a process runs is never related to the TERM in which
23509 Emacs is running.
23510
23511 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23512
23513 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23514 * s/darwin.h: ... do it here.
23515
23516 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23517
23518 * lisp.h (set_initial_environment): Rename from set_global_environment.
23519
23520 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23521 removed by mistake on the multi-tty branch.
23522
23523 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23524 (Fmodify_frame_parameters): Return a value.
23525
23526 * image.c (png_load): Comment-out var only used in commented-out code.
23527
23528 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23529 before passing it to mark_object.
23530
23531 * xfaces.c (internal_resolve_face_name): Return a value.
23532 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23533
23534 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23535 (x_icon): Comment-out var only used in commented-out code.
23536
23537 2007-08-29 Romain Francoise <romain@orebokech.com>
23538
23539 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23540 QUIT hasn't been provided.
23541
23542 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23543
23544 * callproc.c (child_setup, getenv_internal): Use the
23545 display-environment-variable and term-environment-variable frame params.
23546 (set_initial_environment): Initialise Vprocess_environment.
23547
23548 * config.in: Disable multi-keyboard support on a mac.
23549
23550 * frame.c (Qterm_environment_variable)
23551 (Qdisplay_environment_variable): New variables.
23552 (syms_of_frame): Intern and staticpro them.
23553 (Fmake_terminal_frame): Disable output method test.
23554
23555 * frame.h: Declare them here.
23556
23557 * macfns.c (x_set_mouse_color): Get rif from the frame.
23558 (x_set_tool_bar_lines): Don't use updating_frame.
23559 (mac_window): Add 2 new parameters for consistency with other systems.
23560 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23561 frame parameters following what is done in X11 and w32. Don't use
23562 FRAME_MAC_DISPLAY_INFO.
23563 (Fx_open_connection, start_hourglass): Remove window-system check.
23564 (x_create_tip_frame): Get the keyboard from the terminal.
23565
23566 * macmenu.c: Reorder includes.
23567 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23568
23569 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23570 terminal parameter.
23571 (x_clear_frame): Add a frame parameter.
23572 (note_mouse_movement): Get rif from the frame.
23573 (mac_term_init): Initialize the terminal.
23574 (mac_initialize): Make static and move terminal initialization ...
23575 (mac_create_terminal): ... to this new function.
23576
23577 * macterm.h (struct mac_display_info): Add terminal.
23578 (mac_initialize): Delete declaration.
23579
23580 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23581
23582 * sysdep.c: Comment out text after #endif.
23583
23584 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23585 is defined. Better initialize ttys in windows. Use terminal
23586 specific mouse_position_hook.
23587
23588 * termhooks.h (union display_info): Add mac_display_info.
23589
23590 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23591 Set the default minibuffer frame, window_system and the rest of the
23592 frame parameters following what is done in X11.
23593
23594 * w32term.c (w32_initialize): Make static.
23595
23596 * xselect.c (x_handle_selection_clear): Only access
23597 terminal->kboard when MULTI_KBOARD is defined.
23598
23599 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23600 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23601
23602 2007-08-29 Jason Rumney <jasonr@gnu.org>
23603
23604 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23605 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23606
23607 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23608 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23609
23610 * keyboard.c (restore_kboard_configuration): Only define when
23611 MULTI_KBOARD defined.
23612
23613 * makefile.w32-in: Update dependancies from Makefile.in.
23614 (OBJ1): Add terminal.$(O)
23615
23616 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23617 Don't define function body.
23618 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23619
23620 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23621
23622 * w32.c (request_sigio, unrequest_sigio): Remove.
23623
23624 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23625 (w32con_clear_frame, w32con_clear_end_of_line)
23626 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23627 (w32con_delete_glyphs, w32con_set_terminal_window)
23628 (scroll_line, w32_sys_ring_bell): Add frame arg.
23629 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23630 Add terminal arg.
23631 (PICK_FRAME): Remove.
23632 (w32con_write_glyphs): Use frame specific terminal coding.
23633 (one_and_only_w32cons): New global variable.
23634 (initialize_w32_display): Use it for storing hooks.
23635 (create_w32cons_output): New function.
23636
23637 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23638 arg a frame.
23639
23640 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23641 Set window_system.
23642 (x_set_tool_bar_lines): Don't use updating_frame.
23643 (Fx_create_frame): Set terminal and ref count.
23644 (Fx_open_connection): Remove window-system check.
23645
23646 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23647
23648 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23649 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23650 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23651 Add frame arg.
23652 (x_delete_terminal, w32_create_terminal): New functions.
23653 (w32_term_init): Create a terminal.
23654 (w32_initialize): Move terminal specific initialization to
23655 w32_create_terminal.
23656
23657 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23658 (w32_clear_rect, w32_clear_area): Use background from frame.
23659 (w32_display_info): Add terminal.
23660 (w32_sys_ring_bell, x_delete_display): Declare here.
23661
23662 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23663
23664 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23665
23666 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23667
23668 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23669 Fix get_named_tty calls for the controlling tty.
23670
23671 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23672
23673 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
23674
23675 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23676
23677 * term.c (tty_insert_glyphs): Add missing first parameter.
23678
23679 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23680
23681 * buffer.c (Fbuffer_list, Fbury_buffer):
23682 Take frame->buried_buffer_list into account.
23683
23684 * cm.c (current_tty): New variable, for cmputc().
23685 (cmputc): Use it.
23686 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23687 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23688 (cmgoto): Add tty parameter. Pass it on to calccost().
23689 Use emacs_tputs() instead of tputs().
23690
23691 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23692 tputs().
23693 (current_tty): New variable, for cmputc().
23694 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23695
23696 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23697 (internal_condition_case, internal_condition_case_1)
23698 (internal_condition_case_2): Don't abort when x_catching_errors.
23699
23700 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23701 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23702 prevent crashes caused by bogus longjmps in read_char.
23703
23704 * keymap.h (Fset_keymap_parent): Add EXFUN.
23705
23706 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23707 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23708 Remove redundant definition.
23709
23710 * macfns.c (x_set_mouse_color, x_make_gc):
23711 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23712
23713 * w32term.c (x_free_frame_resources):
23714 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23715 (w32_initialize): Use the accessor macros for terminal characteristics.
23716
23717 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23718 Use the accessor macros for terminal characteristics.
23719 * msdos.c (internal_terminal_init): Use the accessor macros for
23720 terminal characteristics.
23721 (ScreenVisualBell, internal_terminal_init):
23722 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23723
23724 * termopts.h (no_redraw_on_reenter): Declare.
23725
23726 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23727 (mark_terminals, mark_ttys): Declare.
23728 (Fgarbage_collect): Call them.
23729 (mark_object): Mark buried_buffer_list.
23730
23731 * prefix-args.c: Include stdlib.h for exit.
23732
23733 * syssignal.h: Add comment.
23734
23735 * indent.c: Include stdio.h.
23736
23737 * window.h (Vinitial_window_system): Declare.
23738 (Vwindow_system): Delete declaration.
23739
23740 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23741
23742 * image.c (lookup_image): Don't initialize `c' until the xasserts
23743 have been run.
23744
23745 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23746 FRAME_FOREGROUND_PIXEL.
23747
23748 * print.c (print_preprocess): Don't lose print_depth levels while
23749 iterating.
23750
23751 * widget.c (update_from_various_frame_slots):
23752 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23753
23754 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23755 frames.
23756 (window_internal_height): Remove bogus make_number call.
23757 (init_window_once): Call make_terminal_frame with two zero parameters.
23758
23759 * fileio.c (Fread_file_name): Update comment.
23760
23761 * callint.c (Fcall_interactively):
23762 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23763 Make sure it is correctly unwound.
23764
23765 * xsmfns.c (x_session_close): New function.
23766
23767 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23768 Delete declarations.
23769
23770 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23771 (x_output): Remove background_pixel and foreground_pixel fields.
23772 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23773 (x_delete_device, x_session_close): Declare.
23774
23775 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23776 (read_filtered_event): Call `read_char' with a local
23777 `wrong_kboard_jmpbuf'.
23778
23779 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23780 Don't call single_kboard_state. Use FRAME_RIF.
23781
23782 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23783 systems.
23784
23785 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23786 (Fframe_with_environment, Fset_input_meta_mode)
23787 (Fset_quit_char): EXFUN.
23788 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23789 (init_sys_modes, reset_sys_modes): Update prototypes.
23790 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23791
23792 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23793 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23794 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23795 Delete declarations.
23796 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23797 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23798 New declarations.
23799
23800 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23801 already does that during init_display(). Call syms_of_keymap
23802 before syms_of_keyboard. Call `syms_of_terminal'.
23803 Call set_initial_environment, not set_process_environment.
23804 (shut_down_emacs): Call reset_all_sys_modes() instead of
23805 reset_sys_modes().
23806
23807 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23808 (internal_resolve_face_name, resolve_face_name_error): New functions.
23809 (resolve_face_name): Protect against loops and errors thrown by Fget.
23810 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23811 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23812
23813 * scroll.c: Replace CURTTY() with local variables throughout the
23814 file (where applicable).
23815 (calculate_scrolling, calculate_direct_scrolling)
23816 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23817 characteristics.
23818
23819 * keymap.c (Vfunction_key_map): Remove.
23820 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23821 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23822 (Vkey_translation_map): Remove.
23823 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23824 (Fdescribe_buffer_bindings)
23825 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23826 Update for terminal-local key-translation-map.
23827
23828 * Makefile.in (callproc.o): Update dependencies.
23829 (lisp, shortlisp): Add termdev.elc.
23830 (obj): Add terminal.o.
23831 (terminal.o): Add dependencies.
23832 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23833 (data.o, fns.o): Add termhooks.h dependency.
23834 (SOME_MACHINE_LISP): Add dnd.elc.
23835 (minibuf.o): Fix typo.
23836 Update dependencies.
23837
23838 * data.c (do_symval_forwarding, store_symval_forwarding)
23839 (find_symbol_value): Use the selected frame's keyboard, not
23840 current_kboard.
23841
23842 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23843 Vwindow_system.
23844
23845 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23846 Fmenu_bar_open.
23847 (syms_of_xmenu): Update defsubr.
23848 (mouse_position_for_popup, Fx_popup_menu)
23849 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23850 (set_frame_menubar, free_frame_menubar)
23851 (create_and_show_popup_menu, xmenu_show)
23852 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23853 an X frame.
23854
23855 * xselect.c (x_own_selection): Abort if not an X frame.
23856 (some_frame_on_display): Check if it is an X frame.
23857 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23858
23859 * coding.c: Include frame.h and termhooks.h.
23860 (terminal_coding, keyboard_coding): Delete.
23861 (Fset_terminal_coding_system_internal)
23862 (Fset_keyboard_coding_system_internal)
23863 (Fkeyboard_coding_system)
23864 (Fterminal_coding_system): Add a terminal parameter.
23865 Get terminal_coding from the terminal.
23866 (init_coding_once): Don't call setup_coding_system here.
23867
23868 * dispextern.h (set_scroll_region, turn_off_insert)
23869 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23870 (tty_clear_end_of_line, tty_setup_colors)
23871 (delete_tty, updating_frame)
23872 (produce_special_glyphs, produce_glyphs, write_glyphs)
23873 (insert_glyphs): Remove.
23874 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23875 (tty_turn_off_highlight, get_tty_size): Add declaration.
23876 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23877
23878 * frame.h (enum output_method): Add output_initial.
23879 (struct x_output): Delete.
23880 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23881 Access foreground_pixel and background_pixel directly from the frame.
23882 (tty_display): Delete.
23883 (struct frame): Add buried_buffer_list, foreground_pixel,
23884 background_pixel and terminal. Delete kboard.
23885 (union output_data): Add tty.
23886 (FRAME_KBOARD): Get the kboard from the terminal.
23887 (FRAME_INITIAL_P): New macro.
23888 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23889 (Qterm_environment_variable, Qdisplay_environment_variable)
23890 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23891 New declarations.
23892
23893 * termchar.h (tty_output, tty_display_info): New structures.
23894 (tty_list): Declare.
23895 (FRAME_TTY, CURTTY): New macros.
23896 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23897 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23898 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23899 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23900
23901 * callproc.c: Include frame.h and termhooks.h, for terminal
23902 parameters.
23903 (add_env): New function.
23904 (child_setup): Use it.
23905 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23906 (getenv_internal): Fix get_terminal_param call.
23907 (Fgetenv_internal, egetenv): Update doc.
23908 (syms_of_callproc): Initialize Vprocess_environment to nil.
23909 Register and initialize them. Remove obsolete defvars. Update doc
23910 strings.
23911 (child_setup): Handle Vlocal_environment_variables.
23912 (getenv_internal): Add terminal parameter.
23913 Handle Vlocal_environment_variables.
23914 (Fgetenv_internal): Add terminal parameter.
23915 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23916 environment in a frame (not terminal) parameter. Update doc strings.
23917 (set_initial_environment): Rename from set_global_environment.
23918 Store Emacs environment in initial frame parameter.
23919
23920 * xdisp.c (redisplay_internal): Update references to
23921 `previous_terminal_frame'.
23922 (display_mode_line, Fformat_mode_line): Replace calls to
23923 `push_frame_kboard' with `push_kboard'.
23924 (get_glyph_string_clip_rects): Add extra parentheses and
23925 braces to prevent compiler warnings.
23926 (calc_pixel_width_or_height): Add xassert to check that the
23927 frame is alive. Don't call `lookup_image' on a termcap frame.
23928 (message2_nolog, message3_nolog, redisplay_internal)
23929 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23930 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23931 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23932 (Fx_display_pixel_width, Fx_display_pixel_height)
23933 (Fx_display_planes, Fx_display_color_cells)
23934 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23935 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23936 (Fx_display_backing_store, Fx_display_visual_class)
23937 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23938 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23939
23940 * xfns.c (x_set_foreground_color x_set_background_color)
23941 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23942 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23943 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23944 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23945 terminal that is being deleted.
23946 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23947 frame parameter, and make sure it overrides any user-supplied setting.
23948 (Fx_close_connection, Fx_synchronize): Unify argument names with
23949 the rest of the DEFUNs.
23950
23951 * dispnew.c (Fsend_string_to_terminal): Update call to
23952 `get_tty_terminal'.
23953 (Fredraw_frame, Fsend_string_to_terminal)
23954 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23955 FRAME_TERMCAP_P and FRAME_TTY.
23956 (window_change_signal): Don't believe width/height values that are
23957 impossibly small.
23958 (Vinitial_window_system): Rename from Vwindow_system.
23959 (termscript, Wcm, rif): Delete.
23960
23961 * termhooks.h (struct terminal): New struct containing the
23962 previously global text display hooks and new members NAME,
23963 DELETED and PARAM_ALIST.
23964 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23965 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23966 (FRAME_RIF): New macros.
23967 (get_terminal_param, get_device): New declarations.
23968 (termscript): Delete declaration.
23969
23970 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23971 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23972 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23973 FRAME_FOREGROUND_PIXEL.
23974 (x_fully_uncatch_errors): Disable definition.
23975 (x_scroll_bar_expose): Fix reference to foreground pixel.
23976 (XTread_socket): Disable loop on all X displays.
23977 (x_delete_terminal): Don't set terminal->deleted and let
23978 delete_terminal delete the frames on the terminal.
23979 (x_delete_display): Doc update to reflect changes in
23980 delete_terminal.
23981 (x_display_info) <terminal>: Move member earlier in the struct.
23982 (deleting_tty): Remove old variable.
23983 (Fsuspend_tty): Call clear_tty_hooks.
23984 (Fresume_tty, init_tty): Call set_tty_hooks.
23985 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23986 errors on X frames.
23987 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23988 (handle_one_xevent): Initialize `f' to NULL.
23989 (x_delete_terminal, x_create_terminal): New functions.
23990 (XTset_terminal_modes, XTreset_terminal_modes)
23991 (XTread_socket, x_connection_closed, x_term_init)
23992 (x_term_init, x_delete_display): Add terminal parameter.
23993 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23994 X connections.
23995
23996 * frame.c: Include termchar.h.
23997 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23998 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23999 (Qdisplay_environment_variable): New vars.
24000 (Fframep): Deal with output_initial.
24001 (Fframe-live-p): Doc fix.
24002 (Fwindow-system): New function.
24003 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24004 (make_terminal_frame): Don't create frames on a terminal that is
24005 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24006 (store_frame_param): Check for found_for_frame before calling XFRAME.
24007 (Fmake_terminal_frame): Handle NULL tty names correctly.
24008 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24009 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24010 frames to refer to a deleted frame in their 'environment parameter.
24011 (Fframe_with_environment): New function.
24012 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24013 (get_future_frame_param): New function.
24014 (Fmake_terminal_frame): Use it.
24015 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24016
24017 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24018 * sysdep.c (reset_sys_modes): Update for renames.
24019
24020 * keyboard.c (tty_read_avail_input): New function.
24021 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24022 (syms_of_keyboard): Defsubr them.
24023 (Fset_input_meta_mode, Fset_quit_char): New functions.
24024 (Fset_input_mode): Split to above functions.
24025 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24026 parameter. Use it in call to `read_char'.
24027 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24028 Set wrong_kboard_jmpbuf correctly in recursive calls.
24029 Use current_kboard to access Vkeyboard_translate_table.
24030 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24031 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24032 Update longjmp invocations. Remember the original current_kboard,
24033 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24034 changes it. Comment out unnecessary calls to
24035 `record_single_kboard_state' and `any_kboard_state'.
24036 Update recursive calls.
24037 (wrong_kboard_jmpbuf): Remove global variable.
24038 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24039 Handle deleted interrupted_kboards correctly; that is a legal
24040 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24041 and read_char calls. Abort if interrupted_kboard died in read_char.
24042 (any_kboard_state, single_kboard_state)
24043 (push_frame_kboard): Remove function.
24044 (pop_kboard): Switch out of single_kboard mode if the kboard has
24045 been deleted. Remove unused variable. Help debugging by not
24046 changing current_kboard unnecessarily. Set current_kboard to the
24047 kboard of the selected frame when the stored kboard object has
24048 been deleted before pop_kboard.
24049 (temporarily_switch_to_single_kboard): Change first parameter to a
24050 frame pointer. Throw an error when caller wants to change kboards
24051 while in single_kboard mode. Don't push_kboard if we weren't in
24052 single kboard state. Don't pop_kboard if we popped into any
24053 kboard state.
24054 (restore_kboard_configuration): Abort if pop_kboard changed the
24055 kboard in single_kboard mode. Call pop_kboard only after setting
24056 up single_kboard mode.
24057 (Frecursive_edit): Switch to single_kboard mode only in nested
24058 command loops.
24059 (cmd_error, command_loop, command_loop_1, timer_check):
24060 Comment out unnecessary call to `any_kboard_state' and
24061 `record_single_kboard_state'.
24062 (delete_kboard): Exit single_kboard mode if we have just deleted
24063 that kboard. Use FRAME_KBOARD.
24064 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24065 `fatal_error_signal'.
24066 (record_single_kboard_state): Don't push_kboard if we weren't in
24067 single kboard state. Don't pop_kboard if we popped into any
24068 kboard state.
24069 (push_frame_kboard): Rename to push_kboard.
24070 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24071 (read_avail_input): Read input from all terminals.
24072 (mark_kboards): Also mark Vkeyboard_translate_table.
24073 (kbd_buffer_store_event_hold): Simplify condition.
24074 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24075 (Vkeyboard_translate_table): Move to struct kboard.
24076 (init_kboard): Initialize Vkeyboard_translate_table.
24077 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24078 Vkeyboard_translate_table. Update doc strings. Update docs of
24079 local-function-key-map and function-key-map.
24080
24081 * terminal.c: New file.
24082
24083 * term.c: Include errno.h.
24084 (Vring_bell_function, device_list, initial_device)
24085 (next_device_id, ring_bell, update_begin, update_end)
24086 (set_terminal_window, cursor_to, raw_cursor_to)
24087 (clear_to_end, clear_frame, clear_end_of_line)
24088 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24089 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24090 (syms_of_term): Move their initialization to terminal.c.
24091 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24092 (Ftty_display_color_cells)
24093 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24094 (clear_tty_hooks, set_tty_hooks)
24095 (init_tty, maybe_fatal): New functions.
24096 (Ftty_type): Return nil if terminal is not on a tty instead of
24097 throwing an error. Doc update.
24098 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24099 Doc update. Initialize new subrs and variables.
24100 (delete_tty): Use terminal->deleted.
24101 (tty_set_terminal_modes): Rename from set_terminal_modes.
24102 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24103 (set_scroll_region): Rename to `tty_set_scroll_region'.
24104 (turn_on_insert): Rename to `tty_turn_on_insert'.
24105 (turn_off_insert): Rename to `tty_turn_off_insert'.
24106 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24107 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24108 (toggle_highligh): Rename to `tty_toggle_highlight'.
24109 (background_highlight): Rename to `tty_background_highlight'.
24110 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24111 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24112 (tty_set_scroll_region, tty_background_highlight)
24113 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24114 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24115 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24116 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24117 Add static modifier.
24118 (tty_reset_terminal_modes, tty_set_terminal_window)
24119 (tty_set_scroll_region, tty_background_highlight)
24120 (tty_highlight_if_desired, tty_cursor_to)
24121 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24122 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24123 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24124 renames.
24125
24126 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24127
24128 * keyboard.c: Qrtl is new.
24129 (parse_tool_bar_item): Handle :rtl keyword.
24130 (syms_of_keyboard): Intern :rtl keyword.
24131
24132 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24133
24134 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24135 so no Lisp code is executed.
24136 (file_for_image, find_rtl_image): New functions.
24137 (xg_get_image_for_pixmap): Use file_for_image.
24138 (update_frame_tool_bar): If direction is RTL, use RTL image if
24139 defined. Use Gtk stock images if defined.
24140
24141 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24142
24143 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24144 for nonexistent or zero-width glyph in composition glyph.
24145
24146 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24147
24148 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24149
24150 * xdisp.c (Finvisible_p): New function.
24151 (syms_of_xdisp): defsubr it.
24152
24153 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
24154
24155 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24156 Doc fixes.
24157
24158 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24159
24160 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24161
24162 2007-08-24 Martin Rudalics <rudalics@gmx.at>
24163
24164 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24165 whether decoding has modified buffer contents.
24166
24167 2007-08-24 Jason Rumney <jasonr@gnu.org>
24168
24169 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24170 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24171 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24172 (init_svg_functions) [HAVE_NTGUI]: New function.
24173 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24174 (svg_load_image): Use them.
24175 (svg_load_image) [HAVE_NTGUI]: Implement background.
24176
24177 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24178
24179 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24180 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24181 (LIBX): Remove @RSVG_LIBS@.
24182 (LIBES): Add $(RSVG_LIBS).
24183
24184 * image.c (svg_load_image): Blend with specified background if exists.
24185 Use IMAGE_BACKGROUND. Add Mac OS Support.
24186
24187 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24188 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24189 Remove macros.
24190 [MAC_OSX] (socket_callback): Do nothing.
24191 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24192 ReceiveNextEvent.
24193 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24194 socket_callback.
24195 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24196
24197 2007-08-22 Glenn Morris <rgm@gnu.org>
24198
24199 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24200
24201 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24202
24203 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24204
24205 * image.c: Add support for SVG images. Some additional comments
24206 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24207 (svg_image_p): New function to test for SVG image.
24208 (svg_load): New function to load SVG image.
24209 (svg_load_image): New function, helper for svg_load.
24210 (Qsvg): New Lisp_object.
24211 (svg_keyword_index): New enum.
24212 (svg_format): New static `image_keyword' struct.
24213 (svg_type): New static `image_type' struct.
24214 (librsvg/rsvg.h): Include it.
24215
24216 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24217
24218 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24219
24220 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24221
24222 * lread.c (Qold_style_backquotes): New var.
24223 (syms_of_lread): Init and staticpro it.
24224 (load_warn_old_style_backquotes): New fun.
24225 (Fload): Use them to warn about old style backquotes.
24226 (end_of_file_error, Fload): Remove unused vars.
24227
24228 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24229
24230 * lread.c (Vold_style_backquotes): New var.
24231 (syms_of_lread): Init and export it to Elisp.
24232 (read1): Set it when we find an old-style (back)quote.
24233
24234 2007-08-22 Jason Rumney <jasonr@gnu.org>
24235
24236 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24237
24238 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24239
24240 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24241
24242 2007-08-19 Richard Stallman <rms@gnu.org>
24243
24244 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24245
24246 2007-08-19 Andreas Schwab <schwab@suse.de>
24247
24248 * alloc.c (pure): Round PURESIZE up.
24249
24250 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24251
24252 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24253 active frame.
24254
24255 2007-08-16 Richard Stallman <rms@gnu.org>
24256
24257 * eval.c (Fcommandp): Add parens to clarify.
24258
24259 * minibuf.c (Fall_completions): Use enum for type of table.
24260
24261 * emacs.c (USAGE2): Improve text.
24262
24263 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24264
24265 * term.c (tty_default_color_capabilities): Declare static
24266 variables in file scope, to avoid HPUX compiler problem.
24267
24268 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24269
24270 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24271 to gtk_toolbar_insert.
24272
24273 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24274
24275 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24276
24277 * insdel.c (reset_var_on_error): New fun.
24278 (signal_before_change, signal_after_change):
24279 Use it to reset (after|before)-change-functions to nil in case of error.
24280 Bind inhibit-modification-hooks to t.
24281 Don't bind (after|before)-change-functions to nil while they run.
24282
24283 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24284
24285 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24286 filling pixmap with stippled background.
24287
24288 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24289
24290 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24291 Don't use invisible frame as parent window for repositioning.
24292
24293 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24294
24295 * print.c (new_backquote_output): Rename from old_backquote_output.
24296 (print): Inverse its logic (according to its name) so as to match the
24297 behavior of new_backquote_flag in lread.c.
24298
24299 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24300
24301 * gmalloc.c (posix_memalign): New function.
24302
24303 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24304 ActivateControl/DeactivateControl here.
24305 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24306 frame-notice-user-settings is non-nil.
24307 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24308 for kEventParamFMFontStyle.
24309 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24310 mac_pass_command_to_system and mac_pass_control_to_system here.
24311 (XTread_socket): Call ActivateControl/DeactivateControl here.
24312 (XTread_socket) [TARGET_API_MAC_CARBON]:
24313 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24314 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24315 for window repositioning.
24316
24317 2007-08-08 Glenn Morris <rgm@gnu.org>
24318
24319 * Replace `iff' in doc-strings and comments.
24320
24321 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
24322
24323 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24324
24325 2007-08-07 Martin Rudalics <rudalics@gmx.at>
24326
24327 * fileio.c (Finsert_file_contents): Run format-decode and
24328 after_insert_file_functions on entire buffer when REPLACE is
24329 non-nil and inhibit modification_hooks and point_motion_hooks.
24330 For consistency, run after_insert_file_functions iff something
24331 got inserted. Move signal_after_change and update_compositions
24332 after code running after_insert_file_functions. Make sure that
24333 undo_list doesn't record intermediate steps of the decoding process.
24334
24335 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24336
24337 * emacs.c (main)
24338 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24339 Call malloc_enable_thread on interactive startup.
24340
24341 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24342 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24343 [USE_PTHREAD]: Conditionalize with it.
24344 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24345 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24346 New functions.
24347
24348 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
24349
24350 * xdisp.c (redisplay_window): When restoring original buffer
24351 position, make sure it is still valid.
24352
24353 * image.c (png_load): Ignore png-supplied background color.
24354
24355 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24356
24357 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24358 Use kCFAbsoluteTimeIntervalSince1970.
24359
24360 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24361 New variable.
24362 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24363 event loop should be quit.
24364 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24365 Quit dialog event loop if quit_dialog_event_loop is set.
24366
24367 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24368 (Selection): New typedef. Use instead of ScrapRef.
24369 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24370 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24371 (mac_clear_selection): Rename from clear_scrap.
24372 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24373 scrap_has_target_type. All uses changed.
24374 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24375 (mac_selection_has_target_p): New functions.
24376 (mac_put_selection_value): Rename from put_scrap_string.
24377 (mac_get_selection_value): Rename from get_scrap_string.
24378 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24379 (put_scrap_private_timestamp, scrap_has_target_type)
24380 (get_scrap_private_timestamp): Remove functions.
24381 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24382 (x_own_selection, x_get_local_selection):
24383 Use mac_valid_selection_value_p.
24384 (x_own_selection): Don't use put_scrap_private_timestamp.
24385 Record OWNERSHIP-INFO into Vselection_alist instead.
24386 (x_get_local_selection): Don't check type if request is local.
24387 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24388 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24389
24390 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24391
24392 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24393 add comment explaining why.
24394
24395 2007-08-03 Richard Stallman <rms@gnu.org>
24396
24397 * fileio.c (Fvisited_file_modtime): Use make_time.
24398
24399 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24400
24401 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24402 build.
24403
24404 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24405
24406 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24407
24408 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24409
24410 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24411
24412 2007-07-30 Richard Stallman <rms@gnu.org>
24413
24414 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24415
24416 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24417
24418 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24419
24420 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
24421
24422 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24423 remote default-directory.
24424
24425 * buffer.c (mode-line-format): Update doc string.
24426
24427 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24428
24429 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24430 scroll bar gap.
24431 (x_scroll_bar_create): Set bar->fringe_extended_p.
24432 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24433 on frame edge. Check fringe background extension. Don't clear
24434 extended fringe background area.
24435
24436 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24437 (w32_fill_area): Enclose multiple statements with do ... while (0).
24438
24439 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24440 Extend fringe background to scroll bar gap.
24441 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24442 Set bar->fringe_extended_p.
24443 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24444 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24445 background extension. Don't clear extended fringe background area.
24446
24447 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24448 New member fringe_extended_p.
24449
24450 2007-07-25 Glenn Morris <rgm@gnu.org>
24451
24452 * Relicense all FSF files to GPLv3 or later.
24453
24454 * COPYING: Switch to GPLv3.
24455
24456 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24457
24458 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24459
24460 * data.c (Finteractive_form): Check for the presence of an
24461 `interactive-form' symbol property more thoroughly.
24462
24463 * data.c (Finteractive_form): Use an `interactive-form' property if
24464 present, analogous to the function-documentation property.
24465
24466 2007-07-24 Jason Rumney <jasonr@gnu.org>
24467
24468 * w32fns.c (x_real_positions): Get real position from OS instead of
24469 calculating it.
24470
24471 2007-07-23 Jason Rumney <jasonr@gnu.org>
24472
24473 * filelock.c (current_lock_owner): Allow for @ sign in username.
24474
24475 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
24476
24477 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24478 remote default-directory.
24479
24480 * buffer.c (mode-line-format): Describe above case in doc string.
24481
24482 2007-07-20 Eli Zaretskii <eliz@gnu.org>
24483
24484 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24485 Define if not defined.
24486
24487 2007-07-18 Jason Rumney <jasonr@gnu.org>
24488
24489 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24490
24491 2007-07-18 Richard Stallman <rms@gnu.org>
24492
24493 * data.c (Fsetq_default): Doc fix.
24494
24495 * eval.c (Fsetq): Doc fix.
24496
24497 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
24498
24499 * coding.c (Ffind_operation_coding_system):
24500 * eval.c (For, Fand): Doc fixes.
24501 Reported by Johan Bockgård.
24502
24503 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24504
24505 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24506
24507 * xterm.h: Declare x_ewmh_activate_frame.
24508
24509 * xterm.c (x_ewmh_activate_frame): New function.
24510 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24511
24512 2007-07-17 Martin Rudalics <rudalics@gmx.at>
24513
24514 * window.c (Fdisplay_buffer): If largest or LRU window is the
24515 only window, split it even if it is not eligible for splitting.
24516 This restores the original behavior broken by the 2007-07-15
24517 change.
24518
24519 2007-07-17 Glenn Morris <rgm@gnu.org>
24520
24521 * abbrev.c (abbrev_check_chars): New function.
24522 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24523 Call abbrev_check_chars to check abbrev characters are word
24524 constituents. Doc fix.
24525
24526 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24527
24528 * process.c (Fstart_process, Fmake_network_process)
24529 (read_process_output): Fix up last changes.
24530
24531 2007-07-16 Eli Zaretskii <eliz@gnu.org>
24532
24533 * makefile.w32-in (clean): Don't delete *~.
24534
24535 2007-07-16 Andreas Schwab <schwab@suse.de>
24536
24537 * window.c (Fdisplay_buffer): Use NILP.
24538 (Fset_window_scroll_bars): Likewise.
24539
24540 2007-07-15 Martin Rudalics <rudalics@gmx.at>
24541
24542 * window.c (window_min_size_2): New function.
24543 (window_min_size_1, size_window, Fdisplay_buffer)
24544 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24545 windows without mode- or header-lines when window-min-height is
24546 too small.
24547 (size_window): Reset nodelete_p after testing it, following an
24548 earlier note by Kim F. Storm.
24549 (display_buffer): Do not set split_height_threshold to twice the
24550 value of window_min_height to avoid changing the value of a
24551 customizable variable. Rather explicitly check whether the
24552 height of the window that shall be splitted is at least as large
24553 as split_height_threshold.
24554 (Fwindow_full_width_p): New defun.
24555 (syms_of_window): Defsubr it.
24556
24557 * window.h: Add EXFUN for Fwindow_full_width_p.
24558
24559 2007-07-14 Jason Rumney <jasonr@gnu.org>
24560
24561 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24562
24563 2007-07-14 Richard Stallman <rms@gnu.org>
24564
24565 * eval.c (maybe_call_debugger): New function.
24566 (find_handler_clause): Use maybe_call_debugger.
24567 Call it when the handler says `debug'.
24568 Eliminate DEBUGGER_VALUE_PTR.
24569 (Fsignal): Eliminate debugger_value.
24570 (Qdebug): New variable.
24571 (syms_of_eval): Initialize it.
24572
24573 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
24574
24575 * eval.c (Fprogn):
24576 * keyboard.c (Ftrack_mouse):
24577 * print.c (Fwith_output_to_temp_buffer):
24578 * window.c (Fsave_window_excursion): Doc fix.
24579
24580 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24581
24582 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24583
24584 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24585
24586 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24587 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24588 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24589 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24590 Remove unused encoding_carryover.
24591 * process.c: Adjust all functions accordingly.
24592
24593 2007-07-12 Richard Stallman <rms@gnu.org>
24594
24595 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24596
24597 2007-07-11 Jason Rumney <jasonr@gnu.org>
24598
24599 * makefile.w32-in (LIBS): Include OLE32.
24600
24601 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24602 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24603
24604 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24605
24606 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24607 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24608 from a Lisp_Object into a bare pointer.
24609 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24610 Adjust the code correspondingly.
24611
24612 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24613
24614 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24615 (term_show_mouse_face): Remove unused var `j'.
24616 (handle_one_term_event): Remove unused vars `i' and `j'.
24617 Don't cast return value of ttyname since it's not necessary.
24618
24619 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24620
24621 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24622 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24623
24624 * fns.c (map_char_table): Use an array of int for `indices' rather than
24625 an array of Lisp_Objects (which are only ever integers anyway).
24626 (Fmap_char_table): Update caller.
24627 * lisp.h: Update prototype.
24628 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24629 * fontset.c (Ffontset_info):
24630 * casetab.c (set_case_table): Update callers.
24631
24632 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24633
24634 * keymap.c (struct accessible_keymaps_data)
24635 (struct where_is_internal_data): New structures.
24636 (accessible_keymaps_1, where_is_internal_1): Use them to change
24637 interface to adhere to the one used by map_keymap.
24638 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24639 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24640
24641 * keymap.h (map_keymap_function_t): More informative prototype.
24642
24643 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24644
24645 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24646 (looking_at_1): Don't change search_regs and last_thing_searched
24647 if `inhibit-changing-match-data' is non-nil.
24648 (string_match_1, search_buffer, set_search_regs): Likewise.
24649 (syms_of_search): Add Lisp level definition for
24650 `inhibit-changing-match-data' and set it to nil.
24651 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24652 start and end of the match, instead of using values in search_regs.
24653
24654 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24655
24656 * minibuf.c (Fcompleting_read): New value `confirm-only'
24657 for `require-match'.
24658
24659 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24660
24661 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24662 part of the 2007-06-27 change to syms_of_fileio.
24663
24664 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24665
24666 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24667 Check WINDOWP before using XWINDOW. Consolidate return statements.
24668
24669 2007-06-27 Richard Stallman <rms@gnu.org>
24670
24671 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24672
24673 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
24674
24675 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24676
24677 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24678
24679 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24680 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24681 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24682 (_free_internal, memalign): Use them.
24683 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24684 Initialize to PTHREAD_MUTEX_INITIALIZER.
24685 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24686 (morecore_nolock): Rename from morecore. All uses changed.
24687 Use only nolock versions of internal allocation functions.
24688 (_malloc_internal_nolock, _realloc_internal_nolock)
24689 (_free_internal_nolock): New functions created from
24690 _malloc_internal, _realloc_internal, and _free_internal.
24691 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24692 Copy hook value to automatic variable before its use.
24693 (memalign): Copy hook value to automatic variable before its use.
24694
24695 2007-06-26 Kenichi Handa <handa@m17n.org>
24696
24697 * coding.c (Ffind_operation_coding_system): Docstring improved.
24698 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24699
24700 2007-06-25 David Kastrup <dak@gnu.org>
24701
24702 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24703 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24704 cater for additional parameter.
24705
24706 * keymap.h: Adjust number of parameters to `current-active-maps'.
24707
24708 * doc.c (Fsubstitute_command_keys): Adjust call of
24709 `current-active-maps'.
24710
24711 2007-06-25 David Kastrup <dak@gnu.org>
24712
24713 * callint.c (Fcall_interactively): Make the parsing of interactive
24714 specs somewhat more readable.
24715
24716 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24717
24718 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24719 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24720 if extended background has already been filled.
24721
24722 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24723
24724 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24725 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24726
24727 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24728 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24729 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24730 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24731 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24732 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24733 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24734 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24735 Run timers during dialog popup.
24736 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24737
24738 2007-06-21 Jason Rumney <jasonr@gnu.org>
24739
24740 * image.c (convert_mono_to_color_image): Swap fore and background.
24741
24742 2007-06-20 Jason Rumney <jasonr@gnu.org>
24743
24744 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24745 (w32_free_bdf_font): Unmap memory not handle.
24746
24747 2007-06-20 Sam Steingold <sds@gnu.org>
24748
24749 * gmalloc.c (__morecore): Fix the declaration to comply with the
24750 definition.
24751
24752 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
24753
24754 * w32term.c (w32_delete_display): Remove leftover declaration.
24755 (w32_define_cursor, w32_initialize): Make static.
24756
24757 * w32.c (_wsa_errlist): Fix typo in error message.
24758 (init_environment): Ignore any environment variable from the
24759 registry having a null value.
24760
24761 2007-06-20 Glenn Morris <rgm@gnu.org>
24762
24763 * Makefile.in (LIBGIF): Default to -lgif.
24764
24765 2007-06-17 Jason Rumney <jasonr@gnu.org>
24766
24767 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24768 unicode strings.
24769
24770 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
24771
24772 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24773 Fix typo in docstring.
24774
24775 2007-06-16 Eli Zaretskii <eliz@gnu.org>
24776
24777 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24778 and their keybindings.
24779
24780 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
24781
24782 * composite.c (update_compositions): Fix last fix.
24783
24784 2007-06-14 Jason Rumney <jasonr@gnu.org>
24785
24786 * w32.c (get_process_times_fn): New function pointer.
24787 (globals_of_w32): Intialize it if present in kernel32.dll.
24788 (w32_get_internal_run_time): New function.
24789
24790 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24791
24792 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24793
24794 * composite.c (update_compositions): Check the validness of
24795 compositions.
24796
24797 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24798
24799 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24800 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24801
24802 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24803 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24804
24805 * macgui.h (USE_MAC_TOOLBAR): New define.
24806
24807 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24808 Return immediately unless popup is activated.
24809
24810 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24811 background to scroll bar gap.
24812 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24813 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24814 scroll bars on frame edge. Check fringe background extension.
24815 Don't clear extended fringe background area.
24816 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24817 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24818 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24819 [USE_MAC_TOOLBAR]: New macros.
24820 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24821 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24822 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24823 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24824 [USE_MAC_TOOLBAR]: New functions.
24825 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24826 manually if previous repositioning has failed.
24827 (mac_handle_keyboard_event): Use precomputed event kind.
24828 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24829 as tool bar item click. Handle mouse movement over tool bar items.
24830
24831 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24832 toolbar_win_gravity.
24833 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24834 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24835 Add externs.
24836
24837 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24838 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24839
24840 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
24841
24842 * image.c (search_image_cache): Remove unused variable.
24843
24844 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
24845
24846 * xfns.c, xmenu.c: Link to xaw3d if available.
24847
24848 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24849
24850 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24851 frame_foreground and frame_background.
24852
24853 * image.c (lookup_image): Save frame foreground and background colors.
24854 (search_image_cache): Check if saved and current frame colors match.
24855
24856 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24857
24858 * regex.c (regex_compile): Remove the `regnum' counter.
24859 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24860
24861 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24862
24863 * term.c: Include intervals.h to declare Fget_text_property.
24864
24865 2007-06-10 Jason Rumney <jasonr@gnu.org>
24866
24867 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24868
24869 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
24870
24871 * callint.c (Fcall_interactively):
24872 * editfns.c (Fdelete_and_extract_region):
24873 * fileio.c (Fread_file_name):
24874 * fns.c (Fmapconcat):
24875 * keyboard.c (cmd_error_internal):
24876 * keymap.c (Fkey_description):
24877 * lread.c (openp):
24878 * minibuf.c (read_minibuf):
24879 * search.c (wordify):
24880 * sunfns.c (sel_read):
24881 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24882 * xfns.c (x_default_scroll_bar_color_parameter):
24883 * xmenu.c (menu_help_callback):
24884 * xselect.c (Fx_get_atom_name):
24885 * xterm.c (x_term_init): Use empty_unibyte_string.
24886
24887 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24888
24889 * alloc.c (init_strings): Initialize canonical empty strings.
24890 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24891 canonical empty string when the requested size is 0.
24892
24893 * emacs.c (empty_unibyte_string): Rename from empty_string.
24894 (empty_multibyte_string): New canonical empty string.
24895 (syms_of_emacs): Don't initialize empty_string.
24896
24897 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24898 string, if appropriate.
24899 (empty_unibyte_string, empty_multibyte_string): New externs.
24900 (empty_string): Remove extern.
24901
24902 * lread.c (syms_of_lread): Use empty_unibyte_string.
24903
24904 2007-06-07 Jason Rumney <jasonr@gnu.org>
24905
24906 * s/ms-w32.h: Don't define HAVE_TZNAME.
24907
24908 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24909
24910 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24911
24912 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24913
24914 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24915 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24916
24917 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24918 Don't call next handler.
24919 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24920 Remove argument. Install handler to application.
24921 (set_frame_menubar): Don't change deep_p.
24922 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24923 FRAME_OUTER_TO_INNER_DIFF_Y.
24924 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24925 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24926 [HAVE_DIALOGS]: New macros.
24927 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24928 Use them.
24929 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24930
24931 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24932 init_service_handler. All callers changed. Return OSStatus value.
24933
24934 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24935 All callers changed so as not to call SetPortWindowPort.
24936 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24937 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24938 mac_draw_string_common.
24939 (mac_draw_image_string_qd): Likewise.
24940 (mac_draw_string_common): Use them. Add INLINE.
24941 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24942 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24943 GetGlobalMouse.
24944 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24945 and FRAME_OUTER_TO_INNER_DIFF_Y.
24946 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24947 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24948 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24949 repositioning window to mac_handle_window_event.
24950 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24951 saving window location to mac_handle_window_event
24952 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24953 (install_menu_target_item_handler): Remove argument in extern.
24954 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24955 Also accept command events.
24956 (do_keystroke): New function created from XTread_socket.
24957 (init_command_handler): Remove functions.
24958 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24959 and save window location by kEventWindowShowing and kEventWindowHiding
24960 handlers here. Don't call next handler for window state change and
24961 focus events.
24962 (mac_handle_application_event, mac_handle_keyboard_event)
24963 [TARGET_API_MAC_CARBON]: New functions.
24964 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24965 kEventWindowShowing and kEventWindowHiding events. Move installation
24966 of mouse, font, text input and menu target item handlers to
24967 install_application_handler.
24968 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24969 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24970 New function.
24971 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24972 Register it.
24973 (XTread_socket) [TARGET_API_MAC_CARBON]:
24974 Consolidate SendEventToEventTarget calls.
24975 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24976 Move application activation handler to mac_handle_application_event.
24977 Move keyboard handler to mac_handle_keyboard_event.
24978 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24979 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24980 init_command_handler. Call install_application_handler.
24981
24982 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24983 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24984
24985 2007-06-07 Glenn Morris <rgm@gnu.org>
24986
24987 * emacs.c (main): Use `emacs-copyright' in --version output.
24988
24989 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
24990
24991 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24992
24993 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24994
24995 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24996
24997 * macgui.h: Replace WindowPtr with WindowRef.
24998
24999 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25000 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25001 Replace ControlHandle with ControlRef.
25002 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25003
25004 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25005 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25006 Replace ControlHandle with ControlRef.
25007 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25008 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25009
25010 * macterm.h (struct scroll_bar): Rename member control_handle_low
25011 and control_handle_high to control_ref_low and control_ref_high.
25012 All uses changed.
25013 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25014 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25015 respectively. All uses changed.
25016 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25017 (install_window_handler, remove_window_handler): Replace WindowPtr
25018 with WindowRef in externs.
25019
25020 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
25021
25022 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25023
25024 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
25025
25026 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25027
25028 * frame.c (Fmouse_position, Fmouse_pixel_position):
25029 Condition on HAVE_GPM too.
25030
25031 * term.c (term_mouse_highlight): Remove unused variables.
25032 (Fterm_open_connection): Set gpm_zerobased to 1.
25033 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25034 Use zero based co-ordinates.
25035 (handle_one_term_event): Report a drag as mouse movement too.
25036
25037 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25038
25039 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
25040
25041 * image.c (search_image_cache): New function. Require background
25042 color match if background color is unspecified in the image spec.
25043 (uncache_image, lookup_image): Use it.
25044
25045 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
25046
25047 * window.c (Fshrink_window): Reflow docstring.
25048
25049 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
25050
25051 * Version 22.1 released.
25052
25053 2007-06-01 Richard Stallman <rms@gnu.org>
25054
25055 * xfns.c (x_encode_text): Add GCPRO.
25056
25057 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25058
25059 * xfns.c (x_set_name_internal): Save encoded name before
25060 x_encode_text in case string data is relocated.
25061
25062 2007-05-31 Richard Stallman <rms@gnu.org>
25063
25064 * buffer.c (syms_of_buffer): Doc fix.
25065
25066 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
25067
25068 * sysdep.c (init_sys_modes): Add rather than replace with
25069 O_NONBLOCK.
25070
25071 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25072 term_mouse_moveto.
25073
25074 * termhooks.h (term_mouse_moveto): New extern.
25075
25076 * term.c (mouse_face_window): Rename...
25077 (Qmouse_face_window): ...to this.
25078 (term_show_mouse_face, term_clear_mouse_face)
25079 (term_mouse_highlight): Use Qmouse_face_window.
25080 (term_mouse_moveto): New function.
25081 (term_mouse_position): Make it work.
25082 (syms_of_term): Uncomment assignment to mouse_position_hook.
25083 Staticpro Qmouse_face_window.
25084
25085 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25086
25087 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25088 around current_column call.
25089
25090 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25091
25092 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25093 * xdisp.c (next_element_from_buffer):
25094 * window.c (delete_window):
25095 * term.c (term_mouse_highlight):
25096 * msdos.c (getdefdir):
25097 * macterm.c (mac_create_bitmap_from_bitmap_data)
25098 (init_font_name_table):
25099 * fns.c (Fsxhash):
25100 * data.c (Fmake_local_variable):
25101 * ccl.c (ccl_driver): Likewise.
25102
25103 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25104
25105 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25106 Call mac_wakeup_from_rne on window size change.
25107
25108 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
25109
25110 * image.c (uncache_image): Fix typo.
25111
25112 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25113
25114 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25115
25116 2007-05-22 Richard Stallman <rms@gnu.org>
25117
25118 * xterm.c (x_connection_closed): Remove NO_RETURN.
25119
25120 2007-05-22 Martin Rudalics <rudalics@gmx.at>
25121
25122 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25123
25124 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
25125
25126 * image.c (uncache_image): New function.
25127 (Fimage_refresh): New function.
25128
25129 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25130
25131 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25132
25133 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25134
25135 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25136 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25137
25138 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25139
25140 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25141 conditional on [HAVE_GPM_H].
25142
25143 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25144
25145 * syntax.c (skip_chars): Update syntax-table only after we checked that
25146 the new location is valid.
25147
25148 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25149
25150 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25151 mac_get_window_bounds.
25152
25153 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25154
25155 * Makefile.in (LIBGPM): Allow it to be set from configure.
25156 If set then link Emacs with it.
25157
25158 * config.in: Regenerate.
25159
25160 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25161 New externs.
25162
25163 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25164 Include gpm.h.
25165 (handle_one_term_event, term_gpm): New externs.
25166
25167 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25168 and allow it to be interrupted by SIGIO.
25169
25170 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25171 (wait_reading_process_output): Wait on gpm_fd too.
25172 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25173 (add_gpm_wait_descriptor_called_flag): New variable.
25174 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25175
25176 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25177 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25178 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25179 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25180 (make_lispy_event): Add case GPM_CLICK_EVENT.
25181 (read_avail_input): Handle mouse input.
25182
25183 * term.c (write_glyphs_with_face): New function.
25184 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25185 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25186 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25187 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25188 (last_mouse_x, last_mouse_y): New variables.
25189 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25190 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25191 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25192 (Fterm_close_connection): New functions.
25193 (term_init): Initialise mouse_face_window.
25194
25195 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
25196
25197 * xdisp.c (redisplay_window): If first window line is a
25198 continuation line, recompute the new window start instead of
25199 recentering.
25200
25201 2007-05-18 Glenn Morris <rgm@gnu.org>
25202
25203 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25204 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25205
25206 2007-05-17 Glenn Morris <rgm@gnu.org>
25207
25208 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25209
25210 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25211
25212 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25213 dead key repeat and up events.
25214
25215 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
25216
25217 * image.c (pbm_load): Check image size for monochrome pbm.
25218
25219 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
25220
25221 * xterm.c (XTread_socket): Revert last change.
25222
25223 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
25224
25225 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25226
25227 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25228
25229 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25230
25231 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25232 mixup (YAILOM).
25233
25234 2007-05-07 Andreas Schwab <schwab@suse.de>
25235
25236 * keymap.c (Flookup_key): Fix typo in last change.
25237
25238 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25239
25240 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25241 mapping for unibyte strings.
25242
25243 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25244
25245 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25246 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25247
25248 2007-04-29 Richard Stallman <rms@gnu.org>
25249
25250 * insdel.c (replace_range): For undo, record insertion first.
25251
25252 2007-04-29 Andreas Schwab <schwab@suse.de>
25253
25254 * lisp.h (VECSIZE): Use OFFSETOF.
25255
25256 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25257
25258 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25259 disabled lines.
25260
25261 2007-04-28 Richard Stallman <rms@gnu.org>
25262
25263 * lread.c (read_escape): In a string, \s is always space.
25264
25265 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25266
25267 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25268
25269 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25270 submenu for menu bar items.
25271
25272 See ChangeLog.10 for earlier changes.
25273
25274 ;; Local Variables:
25275 ;; coding: utf-8
25276 ;; add-log-time-zone-rule: t
25277 ;; End:
25278
25279 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
25280
25281 This file is part of GNU Emacs.
25282
25283 GNU Emacs is free software: you can redistribute it and/or modify
25284 it under the terms of the GNU General Public License as published by
25285 the Free Software Foundation, either version 3 of the License, or
25286 (at your option) any later version.
25287
25288 GNU Emacs is distributed in the hope that it will be useful,
25289 but WITHOUT ANY WARRANTY; without even the implied warranty of
25290 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25291 GNU General Public License for more details.
25292
25293 You should have received a copy of the GNU General Public License
25294 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25295
25296 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40