* dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2536a4b7
MA
12010-07-09 Michael Albinus <michael.albinus@gmx.de>
2
3 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
4 allows to suppress errors when polling in Emacs' main loop.
5 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7 (Fdbus_method_error_internal, Fdbus_send_signal)
8 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
9 (Fdbus_register_method): Use it. (Bug#6579)
10
5842a27b
DN
112010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
12
13 * alloc.c: Convert DEFUNs to standard C.
14 * buffer.c:
15 * bytecode.c:
16 * callint.c:
17 * callproc.c:
18 * casefiddle.c:
19 * casetab.c:
20 * category.c:
21 * character.c:
22 * charset.c:
23 * chartab.c:
24 * cmds.c:
25 * coding.c:
26 * composite.c:
27 * data.c:
28 * dbusbind.c:
29 * dired.c:
30 * dispnew.c:
31 * doc.c:
32 * dosfns.c:
33 * editfns.c:
34 * emacs.c:
35 * eval.c:
36 * fileio.c:
37 * filelock.c:
38 * floatfns.c:
39 * fns.c:
40 * font.c:
41 * fontset.c:
42 * frame.c:
43 * fringe.c:
44 * image.c:
45 * indent.c:
46 * insdel.c:
47 * keyboard.c:
48 * keymap.c:
49 * lread.c:
50 * macros.c:
51 * marker.c:
52 * menu.c:
53 * minibuf.c:
54 * msdos.c:
55 * nsfns.m:
56 * nsmenu.m:
57 * nsselect.m:
58 * print.c:
59 * process.c:
60 * search.c:
61 * sound.c:
62 * syntax.c:
63 * term.c:
64 * terminal.c:
65 * textprop.c:
66 * undo.c:
67 * w16select.c:
68 * w32console.c:
69 * w32fns.c:
70 * w32font.c:
71 * w32menu.c:
72 * w32proc.c:
73 * w32select.c:
74 * window.c:
75 * xdisp.c:
76 * xfaces.c:
77 * xfns.c:
78 * xmenu.c:
79 * xselect.c:
80 * xsettings.c:
81 * xsmfns.c: Likewise.
82
83
d568829b
EZ
842010-07-08 Eli Zaretskii <eliz@gnu.org>
85
86 * process.c (kbd_is_on_hold, hold_keyboard_input)
87 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
88
52214050
J
892010-07-08 Jan Djärv <jan.h.d@swipnet.se>
90
91 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
92 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
93 unless USE_LUCID.
94
313d9eb2
DN
952010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
96
d8825aa3
DN
97 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
98
295d0d8f
DN
99 Clean up include guards.
100 * tparam.c: Remove include guards for config.h, string.h and code
101 that assumes #ifndef emacs.
102 * termcap.c:
103 * unexalpha.c:
104 * sysdep.c:
105 * filemode.c:
106 * filelock.c:
107 * bidi.c: Likewise.
108
49d9e6b0
DN
109 Remove prefix-args.c
110 * prefix-args.c: Remove file.
111 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
112 * Makefile.in (temacs${EXEEXT}): Remove references to
113 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
114 (mostlyclean): Remove reference to prefix-args.
115 (prefix-args): Remove.
116
313d9eb2
DN
117 Simplify cstart_of_data, start_of_code and related code.
118 * mem-limits.h: Remove !emacs and _LIBC conditional code.
119 (start_of_data): Merge into start_of_data function.
120 * sysdep.c (start_of_text): Remove. Move simplified versions of
121 it in the only users: unexaix.c and unexec.c.
122 (read_input_waiting): Remove local declaration of quit_char.
123 (start, etext): Remove declarations.
124 (start_of_data): Merge with the version in mem-limits.h and move
125 to vm-limits.c.
126 * vm-limit.c (start_of_data): Merged and simplified version of the
127 code formerly in mem-limits.h and sysdep.c.
128 * unexec.c (start): New declaration, moved from sysdep.c.
129 (start_of_text): Simplified version of the code formerly in sysdep.c.
130 * unexaix.c (start_of_text): Simplified version of the code
131 formerly in sysdep.c.
132 * m/alpha.h (HAVE_TEXT_START): Remove.
133 (TEXT_START): Move ...
134 * unexalpha.c (TEXT_START): ... here.
135 * s/hpux10-20.h (TEXT_START): Remove.
136 * s/darwin.h (TEXT_START):
137 * m/mips.h (TEXT_START):
138 * m/macppc.h (HAVE_TEXT_START):
139 * m/m68k.h (TEXT_START):
140 * m/iris4d.h (TEXT_START):
141 * m/intel386.h (TEXT_START):
142 * m/ibmrs6000.h (TEXT_START):
143 * m/ia64.h (HAVE_TEXT_START):
144 * s/msdos.h (TEXT_START): Likewise.
145
72af86bd
AS
1462010-07-07 Andreas Schwab <schwab@linux-m68k.org>
147
148 * alloc.c (overrun_check_malloc, overrun_check_realloc)
149 (overrun_check_free, xstrdup, allocate_string)
150 (allocate_string_data, compact_small_strings, Fmake_string)
151 (make_unibyte_string, make_multibyte_string)
152 (make_string_from_bytes, make_specified_string, make_float)
153 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
154 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
155 memcpy, memmove, memset, memcmp.
156 * atimer.c (start_atimer, set_alarm): Likewise.
157 * buffer.c (clone_per_buffer_values, report_overlay_modification)
158 (mmap_realloc, init_buffer_once): Likewise.
159 * callint.c (Fcall_interactively): Likewise.
160 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
161 (getenv_internal_1): Likewise.
162 * casefiddle.c (casify_object): Likewise.
163 * ccl.c (ccl_driver): Likewise.
164 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
165 * charset.c (load_charset_map_from_file)
166 (load_charset_map_from_file, load_charset_map_from_vector)
167 (Fdefine_charset_internal): Likewise.
168 * cm.c (Wcm_clear): Likewise.
169 * coding.c (decode_eol, decode_coding_object)
170 (Fset_coding_system_priority, make_subsidiaries): Likewise.
171 * data.c (Faset): Likewise.
172 * dired.c (directory_files_internal, file_name_completion_stat):
173 Likewise.
174 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
175 (clear_glyph_row, copy_row_except_pointers)
176 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
177 (save_current_matrix, restore_current_matrix)
178 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
179 (mirror_line_dance, scrolling_window): Likewise.
180 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
181 Likewise.
182 * doprnt.c (doprnt): Likewise.
183 * editfns.c (Fuser_full_name, make_buffer_string_both)
184 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
185 * emacs.c (sort_args): Likewise.
186 * eval.c (Fapply, Ffuncall): Likewise.
187 * fileio.c (Ffile_name_directory, make_temp_name)
188 (Fexpand_file_name, search_embedded_absfilename)
189 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
190 (auto_save_error): Likewise.
191 * fns.c (Fstring_equal, Fcopy_sequence, concat)
192 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
193 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
194 (Fmake_hash_table): Likewise.
195 * fringe.c (Fdefine_fringe_bitmap): Likewise.
196 * ftfont.c (ftfont_text_extents): Likewise.
197 * getloadavg.c (getloadavg): Likewise.
198 * image.c (define_image_type, make_image, make_image_cache)
199 (x_create_x_image_and_pixmap, xbm_image_p)
200 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
201 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
202 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
203 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
204 (tiff_image_p, tiff_read_from_memory, gif_image_p)
205 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
206 Likewise.
207 * indent.c (scan_for_column, compute_motion): Likewise.
208 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
209 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
210 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
211 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
212 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
213 (store_user_signal_events, menu_bar_items, tool_bar_items)
214 (process_tool_bar_item, append_tool_bar_item)
215 (read_char_minibuf_menu_prompt, read_key_sequence)
216 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
217 Likewise.
218 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
219 Likewise.
220 * lisp.h (STRING_COPYIN): Likewise.
221 * lread.c (Fload, read1, oblookup): Likewise.
222 * msdos.c (Frecent_doskeys): Likewise.
223 * nsfns.m (Fx_create_frame): Likewise.
224 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
225 Likewise.
226 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
227 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
228 Likewise.
229 * nsmenu.m (ns_update_menubar): Likewise.
230 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
231 * print.c (print_unwind, printchar, strout, print_string)
232 (print_error_message): Likewise.
233 * process.c (conv_lisp_to_sockaddr, set_socket_option)
234 (Fmake_network_process, Fnetwork_interface_list)
235 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
236 (init_process): Likewise.
237 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
238 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
239 Likewise.
240 * scroll.c (do_scrolling, do_direct_scrolling)
241 (scrolling_max_lines_saved): Likewise.
242 * search.c (search_buffer, wordify, Freplace_match): Likewise.
243 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
244 * syntax.c (skip_chars, skip_syntaxes): Likewise.
245 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
246 (emacs_set_tty): Likewise.
247 * term.c (encode_terminal_code, calculate_costs)
248 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
249 Likewise.
250 * termcap.c (tgetst1, gobble_line): Likewise.
251 * termhooks.h (EVENT_INIT): Likewise.
252 * tparam.c (tparam1): Likewise.
253 * unexalpha.c (unexec): Likewise.
254 * unexec.c (write_segment): Likewise.
255 * unexmacosx.c (unexec_write_zero): Likewise.
256 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
257 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
258 * w32font.c (w32font_list_family, w32font_text_extents)
259 (w32font_list_internal, w32font_match_internal)
260 (w32font_open_internal, compute_metrics, Fx_select_font):
261 Likewise.
262 * w32menu.c (set_frame_menubar, add_menu_item)
263 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
264 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
265 * w32uniscribe.c (uniscribe_list_family): Likewise.
266 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
267 * window.c (make_window, replace_window, set_window_buffer)
268 (Fsplit_window): Likewise.
269 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
270 (add_to_log, message3, x_consider_frame_title)
271 (append_space_for_newline, extend_face_to_end_of_line)
272 (decode_mode_spec_coding, init_glyph_string): Likewise.
273 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
274 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
275 (face_attr_equal_p, make_realized_face, make_face_cache)
276 (free_realized_faces, lookup_named_face, smaller_face)
277 (face_with_height, lookup_derived_face)
278 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
279 (Finternal_set_font_selection_order, realize_default_face)
280 (compute_char_face, face_at_buffer_position)
281 (face_for_overlay_string, face_at_string_position, merge_faces):
282 Likewise.
283 * xfns.c (xic_create_fontsetname, Fx_create_frame)
284 (Fx_window_property, x_create_tip_frame)
285 (Fx_backspace_delete_keys_p): Likewise.
286 * xfont.c (xfont_list, xfont_match, xfont_list_family)
287 (xfont_text_extents): Likewise.
288 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
289 * xrdb.c (magic_file_p, x_get_resource): Likewise.
290 * xselect.c (x_queue_event, x_get_window_property)
291 (receive_incremental_selection): Likewise.
292 * xsmfns.c (x_session_check_input): Likewise.
293 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
294 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
295 Likewise.
296 * character.h (BCOPY_SHORT): Removed.
297 * config.in: Regenerate.
298 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
299 * emacs.c (main) [PROFILING]: Don't declare
300 dump_opcode_frequencies.
301 * lisp.h (safe_bcopy): Remove declaration.
302 (memset) [!HAVE_MEMSET]: Declare.
303 (memcpy) [!HAVE_MEMCPY]: Likewise.
304 (memmove) [!HAVE_MEMMOVE]: Likewise.
305 (memcmp) [!HAVE_MEMCMP]: Likewise.
306 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
307 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
308 Don't define.
309 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
310 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
311 (BCOPY_DOWNWARD_SAFE): Don't define.
312 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
313 (memcpy) [!HAVE_MEMCPY]: Define.
314 (memmove) [!HAVE_MEMMOVE]: Define.
315 (memcmp) [!HAVE_MEMCMP]: Define.
316
cb768704
J
3172010-07-07 Jan Djärv <jan.h.d@swipnet.se>
318
319 * process.c (kbd_is_on_hold): New variable.
320 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
321 functions.
322 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
323 select on empty input mask.
324 (init_process): Initialize kbd_is_on_hold to 0.
325
326 * process.h (hold_keyboard_input, unhold_keyboard_input)
327 (kbd_on_hold_p): Declare.
328
329 * keyboard.c (input_available_signal): Declare.
330 (kbd_buffer_nr_stored): New function.
331 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
332 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
333 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
334 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
335 (tty_read_avail_input): If input is on hold, return.
336 Don't read more that free slots in kbd_buffer (Bug#6571).
337
3a8ce822
EZ
3382010-07-07 Eli Zaretskii <eliz@gnu.org>
339
340 * msdos.h:
341 * msdos.c:
342 * dosfns.c:
343 * w16select.c: Convert function definitions to ANSI C.
344
345 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
346 unused prototypes.
347
cf84bb53
JB
3482010-07-07 Juanma Barranquero <lekktu@gmail.com>
349
350 * coding.c, sysdep.c: Convert some more functions to standard C.
351
1a4990fb
JB
3522010-07-07 Juanma Barranquero <lekktu@gmail.com>
353
354 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
355 (encode_coding_object): Use SPECPDL_INDEX.
356 (syms_of_coding): Use DOS_NT.
357
c0f2f16b
DN
3582010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
359
48fb6855
DN
360 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
361
c0f2f16b
DN
362 Make the function member of Lisp_Subr use standard C prototypes.
363 * lisp.h (struct Lisp_Subr): Use a union for the function member.
364 (DECL_ALIGN): Add a cast for the function.
365 * eval.c (Feval, Ffuncall): Use the proper type for each type
366 function call.
367
67aecef9
CY
3682010-07-06 Chong Yidong <cyd@stupidchicken.com>
369
370 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
371 fringe face id, so face-remapping-alist works (Bug#6091).
372
b56ceb92
JB
3732010-07-06 Juanma Barranquero <lekktu@gmail.com>
374
375 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
376 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
377 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
378
7af07b96
AS
3792010-07-06 Andreas Schwab <schwab@linux-m68k.org>
380
381 * xterm.c (x_get_keysym_name): Change type of parameter to int.
382 * lisp.h: Declare x_get_keysym_name.
383 * keyboard.c (modify_event_symbol): Don't declare
384 x_get_keysym_name here.
385
69e24e34
DN
3862010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
387
388 * ecrt0.c: Revert conversion to standard C.
389
d3da34e0 3902010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
391
392 * vm-limit.c (memory_warnings):
393 * keyboard.c (modify_event_symbol):
394 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
395 (round2, emacs_rint):
396 * process.c (send_process, old_sigpipe): Convert function
397 definitions and declarations to standard C.
398
3992010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
400
401 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
402 * xdisp.c: Convert function definitions to standard C.
403
404 * cm.c (cmputc): Arg C is now int, not char.
405 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
406
00be444c
J
4072010-07-05 James Cloos <cloos@jhcloos.com>
408
409 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
410
411 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
412 _NET_WM_ICON_NAME atoms.
413
414 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
415 and _NET_WM_ICON_NAME properties, too, matching what is
416 done in the Gtk+ case.
417
e4c8d29a
J
4182010-07-05 Jan Djärv <jan.h.d@swipnet.se>
419
ff919460
J
420 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
421
e4c8d29a
J
422 * xsmfns.c (SSDATA): New macro.
423 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
424 passed to strlen/strcpy/strcat.
425 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
426 7:th arg to XChangeProperty to (unsigned char *)
427
428 * xsettings.c (something_changedCB, parse_settings)
429 (apply_xft_settings): Reformat prototype.
430 (something_changedCB, init_gconf): Remove unused variable i.
431 (read_settings): Remove unused variable long_len.
432
433 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
434 (xg_get_image_for_pixmap, create_dialog)
435 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
436 (menuitem_highlight_callback, make_menu_item)
437 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
438 (xg_create_scroll_bar, xg_update_scrollbar_pos)
439 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
440 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
441 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
442 (xg_tool_bar_item_expose_callback): Reformat prototype.
443 (xg_update_menubar): GList *group => GSList *group.
444 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
445 before use.
446 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
447 to GTK_IMAGE (wimage).
448
dd4c5104
DN
4492010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
450
898b4c5c
DN
451 * atimer.c: Use "" instead of <> for local includes for
452 consistency with the rest of the code.
453
dd4c5104
DN
454 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
455 * xrdb.c (get_system_name):
456 * window.c (shrink_windows):
457 * syntax.c (forw_comment):
458 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
459 (ins_del_costs):
460 * mem-limits.h (start_of_data):
461 * lread.c (readevalloop):
462 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
463 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
464 * frame.c (x_get_focus_frame):
465 * floatfns.c (fmod_float):
466 * fileio.c (choose_write_coding_system):
467 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
468 (malloc_initialize_hook, sort_args, synchronize_locale):
469 * doprnt.c (doprnt):
470 * dired.c (compile_pattern):
471 * data.c (fmod_float):
472 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
473 (map_char_table_for_charset):
474 * charset.c (define_charset_internal):
475 * alloc.c (Fgarbage_collect): Convert declarations or definitions
476 to standard C.
477
9a39b306 4782010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 479 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
480
481 * lread.c (read1): Fix up last change to not mess up `c'.
482
e6cb2cbb
JB
4832010-07-04 Juanma Barranquero <lekktu@gmail.com>
484
485 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
486
438105ed
JB
4872010-07-04 Juanma Barranquero <lekktu@gmail.com>
488
489 Fix prototypes.
490
e5447b22 491 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 492 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
493 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
494 arg, as required by internal_condition_case_1.
dcc7404b 495 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
496 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
497 (analyse_first): Fix "const const".
e5447b22 498 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 499 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 500 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 501
971de7fb
DN
5022010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
503
504 * alloc.c: Convert function definitions to standard C.
505 * atimer.c:
506 * bidi.c:
507 * bytecode.c:
508 * callint.c:
509 * callproc.c:
510 * casefiddle.c:
511 * casetab.c:
512 * category.c:
513 * ccl.c:
514 * character.c:
515 * charset.c:
516 * chartab.c:
517 * cmds.c:
518 * coding.c:
519 * composite.c:
520 * data.c:
521 * dbusbind.c:
522 * dired.c:
523 * dispnew.c:
524 * doc.c:
525 * doprnt.c:
526 * ecrt0.c:
527 * editfns.c:
528 * fileio.c:
529 * filelock.c:
530 * filemode.c:
531 * fns.c:
532 * font.c:
533 * fontset.c:
534 * frame.c:
535 * fringe.c:
536 * ftfont.c:
537 * ftxfont.c:
538 * gtkutil.c:
539 * indent.c:
540 * insdel.c:
541 * intervals.c:
542 * keymap.c:
543 * lread.c:
544 * macros.c:
545 * marker.c:
546 * md5.c:
547 * menu.c:
548 * minibuf.c:
549 * prefix-args.c:
550 * print.c:
551 * ralloc.c:
552 * regex.c:
553 * region-cache.c:
554 * scroll.c:
555 * search.c:
556 * sound.c:
557 * strftime.c:
558 * syntax.c:
559 * sysdep.c:
560 * termcap.c:
561 * terminal.c:
562 * terminfo.c:
563 * textprop.c:
564 * tparam.c:
565 * undo.c:
566 * unexelf.c:
567 * window.c:
568 * xfaces.c:
569 * xfns.c:
570 * xfont.c:
571 * xftfont.c:
572 * xgselect.c:
573 * xmenu.c:
574 * xrdb.c:
575 * xselect.c:
576 * xsettings.c:
577 * xsmfns.c:
578 * xterm.c: Likewise.
579
ae492bec
EZ
5802010-07-03 Eli Zaretskii <eliz@gnu.org>
581
76ea4cc9
EZ
582 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
583 frames other than the initial one. Fix reversal of colors when
584 `reverse' is specified in the frame parameters. Call
585 update_face_from_frame_parameter instead of
586 internal-set-lisp-face-attribute. Initialize screen colors from
587 initial_screen_colors[] when f->default_face_done_p is zero,
588 instead of depending on being called with default-frame-alist as
589 the alist argument.
590
591 * xfaces.c (update_face_from_frame_parameter): Move out of
592 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
593 with HAVE_WINDOW_SYSTEM.
594
1e6255ae
EZ
595 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
596 to menu-bar-mode, if not set in the frame parameters or in
597 default-frame-alist.
598
ae492bec
EZ
599 * w32console.c (sys_tputs): Adjust argument list to prototype in
600 term.c.
601
3a35a84c
JB
6022010-07-03 Juanma Barranquero <lekktu@gmail.com>
603
604 * lisp.h (memory_warnings): Fix prototype.
605
606 * cm.h (evalcost): Fix prototype.
607
608 * cm.c (evalcost): Fix arg type.
609
c532d349
DN
6102010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
611
612 * term.c (term_clear_mouse_face, Fidentity):
613 * syssignal.h (signal_handler_t):
614 * lisp.h (memory_warnings):
615 * coding.h (preferred_coding_system):
616 * cm.h (evalcost):
617 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
618
c0b36d46
EZ
6192010-07-02 Eli Zaretskii <eliz@gnu.org>
620
621 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
622 from prototypes.
623
624 * msdos.h (load_pixmap): Don't define away.
625
383e0970
J
6262010-07-02 Jan Djärv <jan.h.d@swipnet.se>
627
f57e2426
J
628 * lisp.h:
629 * atimer.h: Remove define for P_.
630
631 * alloc.c: Remove __P and P_ from .c and .m files.
632 * atimer.c:
633 * buffer.c:
634 * callint.c:
635 * category.c:
636 * charset.c:
637 * chartab.c:
638 * cm.c:
639 * coding.c:
640 * composite.c:
641 * data.c:
642 * dired.c:
643 * dispnew.c:
644 * doc.c:
645 * editfns.c:
646 * emacs.c:
647 * eval.c:
648 * fileio.c:
649 * filelock.c:
650 * fns.c:
651 * font.c:
652 * fontset.c:
653 * frame.c:
654 * ftfont.c:
655 * ftxfont.c:
656 * gmalloc.c:
657 * gtkutil.c:
658 * image.c:
659 * indent.c:
660 * intervals.c:
661 * keyboard.c:
662 * keymap.c:
663 * lread.c:
664 * marker.c:
665 * menu.c:
666 * minibuf.c:
667 * print.c:
668 * process.c:
669 * scroll.c:
670 * search.c:
671 * sound.c:
672 * strftime.c:
673 * syntax.c:
674 * sysdep.c:
675 * term.c:
676 * terminal.c:
677 * textprop.c:
678 * unexalpha.c:
679 * w32console.c:
680 * w32fns.c:
681 * w32font.c:
682 * w32menu.c:
683 * w32term.c:
684 * w32uniscribe.c:
685 * window.c:
686 * xdisp.c:
687 * xfaces.c:
688 * xfns.c:
689 * xfont.c:
690 * xftfont.c:
691 * xmenu.c:
692 * xselect.c:
693 * xterm.c: Likewise.
694
383e0970 695 Remove P_ and __P macros.
f57e2426
J
696 * atimer.h: Remove P_ and __P macros.
697 * buffer.h:
383e0970
J
698 * category.h:
699 * ccl.h:
700 * character.h:
701 * charset.h:
702 * cm.h:
703 * coding.h:
704 * composite.h:
705 * dispextern.h:
706 * disptab.h:
9e892c8d 707 * dosfns.h:
383e0970
J
708 * font.h:
709 * fontset.h:
710 * frame.h:
711 * gtkutil.h:
712 * indent.h:
713 * intervals.h:
714 * keyboard.h:
715 * keymap.h:
716 * lisp.h:
717 * macros.h:
718 * md5.h:
719 * menu.h:
720 * msdos.h:
721 * nsterm.h:
722 * puresize.h:
723 * region-cache.h:
724 * syntax.h:
725 * syssignal.h:
726 * systime.h:
727 * termhooks.h:
9e892c8d 728 * w32font.h:
383e0970
J
729 * w32term.h:
730 * widget.h:
731 * window.h:
732 * xgselect.h:
733 * xsettings.h:
734 * xterm.h: Likewise.
735
98601119
DN
7362010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
737
d9170db5
DN
738 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
739
98601119
DN
740 Cleanup old code.
741 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
742 * syssignal.h: Remove code for Lynx, not supported anymore.
743 * vm-limit.c: Remove unused code the depends on emacs not being
744 defined and NO_LIM_DATA being defined.
745 * mem-limits.h: Remove dead code.
746
1f984e12
J
7472010-07-01 Jan Djärv <jan.h.d@swipnet.se>
748
c49d071a
J
749 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
750
9d5405ec
J
751 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
752 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
753
7a18115b
J
754 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
755 parameters, they are already absolute.
756
581a8100
J
757 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
758 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
759
760 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
761
762 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
763 FRAME_TOOLBAR_HEIGHT.
764
1f984e12
J
765 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
766 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
767
c1ef4455
CY
7682010-06-30 Chong Yidong <cyd@stupidchicken.com>
769
770 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
771 check default-frame-alist.
772
ce8f5a9a
AS
7732010-06-30 Andreas Schwab <schwab@linux-m68k.org>
774
775 * process.c (create_process): Avoid using invalid file descriptors.
776
777 * callproc.c (child_setup): Avoid closing a file descriptor twice.
778
bf935339
J
7792010-06-30 Jan Djärv <jan.h.d@swipnet.se>
780
781 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
782 Improve documentation. Return font regardless of use_system_font.
783 (syms_of_xsettings): Improve documentation for font-use-system-font.
784
769e9d47
KH
7852009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
786
787 * xftfont.c (xftfont_open): Check font width one by one also when
788 spacing is dual.
789
790 * ftfont.c (ftfont_open): Ditto.
791
6259c2ec
GM
7922010-06-30 Glenn Morris <rgm@gnu.org>
793
a46007e9
GM
794 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
795
6259c2ec
GM
796 * Makefile.in (CANNOT_DUMP): Update for configure name change.
797
798 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
799 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
800 * s/darwin.h (SYSTEM_MALLOC):
801 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
802
5d1d3d04
J
8032010-06-29 Jan Djärv <jan.h.d@swipnet.se>
804
805 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
806 (ns_get_screen): Don't assign integer to f.
807 (Fx_display_color_cells): Declarations before statements.
808
e547b051
J
8092010-06-28 Jan Djärv <jan.h.d@swipnet.se>
810
5fc8e5bc
J
811 * xfns.c (x_default_font_parameter): Remove got_from_system
812 (Bug#6526).
813
e547b051
J
814 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
815 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
816 defines based on what configure finds.
817
818 * xterm.c (XTflash): Use gtk_widget_get_window.
819 (xg_scroll_callback): Use gtk_adjustment_get_upper and
820 gtk_adjustment_get_page_size.
821 (handle_one_xevent): Use gtk_widget_get_mapped.
822 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
823 messages.
824
825 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
826
827 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
828 HAVE_GTK_FILE_SELECTION_NEW.
829
830 * gtkutil.c (xg_display_open, xg_display_close): Remove
831 HAVE_GTK_MULTIDISPLAY, it is always defined.
832 (xg_display_open): Return type is void.
833 (gtk_widget_set_has_window)
834 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
835 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
836 (gtk_adjustment_set_page_increment)
837 (gtk_adjustment_get_step_increment): #define these if not found
838 by configure.
839 (remove_submenu): New define based on Gtk+ version.
840 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
841 gtk_widget_get_window.
842 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
843 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
844 (create_dialog): Use gtk_dialog_get_action_area and
845 gtk_dialog_get_content_area.
846 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
847 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
848 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
849 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
850 g_object_ref and g_object_unref.
851 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
852 gtk_widget_get_sensitive.
853 (xg_update_submenu): Use remove_submenu.
854 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
855 properties instead to get old x and y position.
856 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
857 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 858 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
859 (xg_get_tool_bar_widgets): New function.
860 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
861 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
862 (toolbar_set_orientation): New #define based on if configure
863 finds gtk_orientable_set_orientation.
864 (xg_create_tool_bar): Call toolbar_set_orientation.
865 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
866 instead of gtk_box_pack_start_defaults.
867
b9229673
CY
8682010-06-28 Chong Yidong <cyd@stupidchicken.com>
869
870 * cmds.c (Fdelete_backward_char): Move into Lisp.
871
bbc803b0
DN
8722010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
873
874 * s/freebsd.h (BSD4_2): Remove redundant definition.
875 bsd-common.h defines it already.
876
6431f2e6
CY
8772010-06-27 Chong Yidong <cyd@stupidchicken.com>
878
879 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
880 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
881 tool-bar-mode, which are now set using these X resources at
882 startup, to determine the defaults (Bug#2249).
883
884 * w32fns.c (Fx_create_frame):
885 * nsfns.m (Fx_create_frame): Likewise.
886
887 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
888
8c079ebb
JB
8892010-06-24 Juanma Barranquero <lekktu@gmail.com>
890
891 * gtkutil.c (xg_update_scrollbar_pos):
892 Avoid C99 mid-block variable declaration.
893
e9b7ab96
JD
8942010-06-22 Jan Djärv <jan.h.d@swipnet.se>
895
bc869eca
JD
896 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
897
2b7e356a 898 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
899
900 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
901 if height is less than scroll bar min size.
902 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
903
e9b7ab96
JD
904 * xfns.c (x_default_font_parameter): Try to open font from system
905 before using it (bug#6478). Rename got_from_gconf to got_from_system.
906
32a679fd
JD
9072010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
908
909 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
910
70c4cfbb
EZ
9112010-06-20 Eli Zaretskii <eliz@gnu.org>
912
913 * xdisp.c (try_scrolling): When scroll-conservatively is set to
914 most-positive-fixnum, be extra accurate when scrolling window
915 start, to avoid missing the cursor line.
916
ad5a12b5
EZ
9172010-06-19 Eli Zaretskii <eliz@gnu.org>
918
919 * xdisp.c (try_scrolling): Compute the limit for searching point
920 in forward scroll from scroll_max, instead of an arbitrary limit
921 of 10 screen lines. See
922 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
923 and
924 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
925 for details.
926
2a64315a 9272010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
928
929 * editfns.c (Fbyte_to_string): Pacify compiler.
930
288cf4e9
SM
9312010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * lread.c (read1): Phase out old-style backquotes a bit more.
934
6e6e5760
EZ
9352010-06-12 Eli Zaretskii <eliz@gnu.org>
936
cbc4fd20
EZ
937 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
938 bidimirror.h.
939
940 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
941
317fbf33
EZ
942 * bidi.c (bidi_initialize): Remove explicit initialization of
943 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 944 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 945 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
946
947 * biditype.h: New file.
948
cbc4fd20
EZ
949 * bidimirror.h: New file.
950
6e6e5760
EZ
951 * window.c (syms_of_window): Doc fix (bug#6409).
952
4176cba2
RF
9532010-06-12 Romain Francoise <romain@orebokech.com>
954
955 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
956 ediff-hook.
957
cb4bfcb5
GM
9582010-06-10 Glenn Morris <rgm@gnu.org>
959
64c60c2f
GM
960 * editfns.c (Fbyte_to_string): Pacify compiler.
961
cb4bfcb5
GM
962 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
963
e454a4a3
SM
9642010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
965
966 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
967 Check `object's type before accessing its guts.
968
c1b1acc2
DN
9692010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
970
971 * s/usg5-4.h: Fix previous change.
972 Suggested by Lawrence Mitchell <wence@gmx.li>
973
657d4c0b
AS
9742010-06-08 Andreas Schwab <schwab@linux-m68k.org>
975
976 * minibuf.c (Fall_completions): Add more checks.
977
9b27fd9f
JB
9782010-06-08 Juanma Barranquero <lekktu@gmail.com>
979
980 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
981
a99ebb40
DN
9822010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
983
d7c5d87d
DN
984 * lread.c (X_OK): Remove, unused.
985
0263a941
DN
986 * dispnew.c: Remove obsolete comment.
987
a99ebb40
DN
988 Remove INCLUDED_FCNTL.
989 * xterm.c (INCLUDED_FCNTL):
990 * callproc.c (INCLUDED_FCNTL):
991 * alloc.c (INCLUDED_FCNTL):
992 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
993 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
994
13b5221f
MR
9952010-06-07 Martin Rudalics <rudalics@gmx.at>
996
997 * window.c (Fselect_window): Move `record_buffer' up to the
998 beginning of this function, so the buffer gets recorded
999 even if the selected window does not change.
1000 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1001
5220357f
JB
10022010-06-07 Juanma Barranquero <lekktu@gmail.com>
1003
1004 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1005 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1006
3085237c
DN
10072010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1008
1009 Remove BSTRING related code, all platforms define it.
1010 * s/usg5-4.h (BSTRING): Remove definition.
1011 * s/template.h (BSTRING):
1012 * s/msdos.h (BSTRING):
1013 * s/ms-w32.h (BSTRING):
1014 * s/hpux10-20.h (BSTRING):
1015 * s/gnu-linux.h (BSTRING):
1016 * s/darwin.h (BSTRING):
1017 * s/cygwin.h (BSTRING):
1018 * s/bsd-common.h (BSTRING):
1019 * s/aix4-2.h (BSTRING): Likewise.
1020 * sysdep.c: Remove code depending on BSTRING not being defined.
1021
409f2919
JB
10222010-06-05 Juanma Barranquero <lekktu@gmail.com>
1023
1024 Remove obsolete macro BASE_LEADING_CODE_P.
1025 * character.h (BASE_LEADING_CODE_P): Remove.
1026 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1027 * buffer.c (Fset_buffer_multibyte):
1028 * indent.c (scan_for_column, compute_motion):
1029 * insdel.c (count_combining_before, count_combining_after):
1030 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1031
087fc47a
JB
10322010-06-04 Juanma Barranquero <lekktu@gmail.com>
1033
1034 Turn `directory-sep-char' into a noop.
1035
1036 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1037 (DIRECTORY_SEP): Define unconditionally.
1038
1039 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1040
1041 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1042 call dostounix_filename directly.
1043
1044 * fileio.c (CORRECT_DIR_SEPS): Remove.
1045 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1046 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1047 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1048 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1049
1050 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1051 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1052
0eb7675e
AS
10532010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1054
1055 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1056 address. (Bug#6346)
0eb7675e 1057
78edd3b7
JB
10582010-06-03 Juanma Barranquero <lekktu@gmail.com>
1059
1060 * ccl.c (Fccl_program_p): Fix typo in docstring.
1061
eb697db5
DN
10622010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1063
1064 Move UNEXEC definition to autoconf.
1065 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1066 * s/sol2-10.h (UNEXEC):
1067 * s/irix6-5.h (UNEXEC):
1068 * s/hpux10-20.h (UNEXEC):
1069 * s/gnu-linux.h (UNEXEC):
1070 * s/darwin.h (UNEXEC):
1071 * s/cygwin.h (UNEXEC):
1072 * s/bsd-common.h (UNEXEC):
1073 * s/aix4-2.h (UNEXEC):
1074 * m/alpha.h (UNEXEC): Likewise.
1075 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1076
aa3830c4
JB
10772010-06-03 Juanma Barranquero <lekktu@gmail.com>
1078
1079 Remove obsolete pre-unicode2 macros.
1080 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1081 * composite.c (composition_reseat_it):
1082 * data.c (Faset):
1083 * fns.c (Ffillarray):
1084 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1085 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1086
d234d13e
JL
10872010-06-03 Juri Linkov <juri@jurta.org>
1088
1089 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1090 (Fswitch_to_buffer): Remove unused variable `err'.
1091
0d4bcf4d
GM
10922010-06-03 Glenn Morris <rgm@gnu.org>
1093
e23dc1e2
GM
1094 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1095
05b09564
GM
1096 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1097 now that AH_BOTTOM does it.
1098
824e2978
GM
1099 * m/hp800.h (HAVE_ALLOCA):
1100 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1101
0d4bcf4d
GM
1102 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1103 Remove NOT_C_CODE tests, it is always true now.
1104
c55d2abf
DN
11052010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1106
08a494a3
DN
1107 Fix config.h includes.
1108 * xsettings.c:
1109 * xgselect.c:
1110 * nsterm.m:
1111 * nsselect.m:
1112 * nsimage.m:
1113 * nsfont.m:
1114 * nsfns.m:
1115 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1116 other files do.
1117
75934b1d
DN
1118 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1119
9f32a766
DN
1120 * s/sol2-6.h: Remove obsolete comments.
1121
c55d2abf
DN
1122 Remove unnecessary alloca.h includes.
1123 * keymap.c: Do not include alloca.h, config.h does that.
1124 * sysdep.c: Likewise. Do not define fwrite, not used.
1125
06ac62b4
SM
11262010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1127
1128 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1129 the HAVE_TERMIO where it belongs (bug#6149).
1130
1ab8293c
SM
11312010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1132
1133 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1134 of bug#6305).
1135
6dcfd253
EZ
11362010-05-30 Eli Zaretskii <eliz@gnu.org>
1137
1138 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1139 state is always cached (bug#6306).
1140
6d26bbb2
EZ
11412010-05-29 Eli Zaretskii <eliz@gnu.org>
1142
06fa4a23
EZ
1143 Fix cursor motion in bidi-reordered continued lines.
1144 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1145 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1146 over continuation lines in bidi-reordered buffers. Return
1147 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1148 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1149
f5783df3
MA
11502010-05-28 Michael Albinus <michael.albinus@gmx.de>
1151
1152 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1153
7d56b2dd
KH
11542010-05-28 Kenichi Handa <handa@m17n.org>
1155
1156 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1157 Don't sheck SPEC if it is nil.
1158 (font_list_entities): Call font_delete_unmatched if
b925d231 1159 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1160
e58d4ff7
GM
11612010-05-28 Glenn Morris <rgm@gnu.org>
1162
1163 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1164
f1a5d776
CY
11652010-05-27 Chong Yidong <cyd@stupidchicken.com>
1166
1167 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1168 whether to trash.
1169 (internal_delete_file, Frename_file): Callers changed.
1170 (delete_by_moving_to_trash): Doc fix.
1171 (Fdelete_directory_internal): Don't move to trash.
1172
1173 * callproc.c (delete_temp_file):
1174 * buffer.c (Fkill_buffer): Callers changed.
1175
1176 * lisp.h: Update prototype.
1177
f44a59e6
CY
11782010-05-27 Chong Yidong <cyd@stupidchicken.com>
1179
1180 * xdisp.c (redisplay_window): After redisplay, check if point is
1181 still valid before setting it (Bug#6177).
1182
81ac4f35
GM
11832010-05-27 Glenn Morris <rgm@gnu.org>
1184
1185 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1186 Convert comments to Makefile format.
1187
1188 * Makefile.in (bootstrap-clean): No more Makefile.c.
1189
ccd89fb3
GM
11902010-05-26 Glenn Morris <rgm@gnu.org>
1191
90278cb6
GM
1192 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1193 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1194
ccd89fb3
GM
1195 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1196 Remove.
1197 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1198
b7050583
KH
11992010-05-26 Kenichi Handa <handa@m17n.org>
1200
1201 * composite.c (composition_compute_stop_pos): Fix condition for
1202 backward scanning.
1203
e5458003
GM
12042010-05-25 Glenn Morris <rgm@gnu.org>
1205
c345fe90
GM
1206 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1207 Move before TEMACS_LDFLAGS.
1208 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1209 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1210
2e0689ab
GM
1211 * Makefile.in (NOT_C_CODE): No longer define.
1212 (config.h): No longer include.
1213
8009a5e8
GM
1214 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1215 variables it may reference.
1216
e5458003
GM
1217 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1218 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1219
10f72a37
KH
12202010-05-25 Kenichi Handa <handa@m17n.org>
1221
1222 * dispextern.h (struct composition_it): New members rule_idx and
1223 charpos.
1224
1225 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1226 that the character positions of IT point the last character of the
1227 current grapheme cluster.
1228 (next_element_from_composition): Don't change character positions
1229 of IT.
1230 (append_composite_glyph): Set glyph->charpos to
1231 it->cmp_it.charpos.
1232
1233 * composite.c (autocmp_chars): Change the first argument to RULE,
1234 and try composition with RULE only.
1235 (composition_compute_stop_pos): Record the index number of the
1236 composition rule in CMP_IT->rule_idx.
1237 (composition_reseat_it): Call autocmp_chars repeatedly until the
1238 correct rule of the composition is found.
1239 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1240 is at the last character of the current grapheme cluster when
1241 CMP_IT->reversed_p is nonzero.
1242
171eda53 12432010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1244
171eda53
SM
1245 * editfns.c (Fbyte_to_string): New function.
1246
66a9f7f4
SM
12472010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1248
1249 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1250 Suggested by Masatake YAMATO <yamato@redhat.com>.
1251
d8c315d1
EZ
12522010-05-23 Eli Zaretskii <eliz@gnu.org>
1253
171eda53 1254 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1255
f5b416d2 12562010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1257
1258 * s/netbsd.h: If terminfo is found, use it in preference to
1259 termcap. (Bug#6190) [Backport from trunk]
1260
0416466c
EZ
12612010-05-19 Eli Zaretskii <eliz@gnu.org>
1262
11117830 1263 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1264
1265 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1266 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1267 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1268 and maxpos members instead of start.pos and end.pos, respectively.
1269
1270 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1271 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1272 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1273 (try_window_reusing_current_matrix, try_window_id):
1274 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1275 (init_from_display_pos, init_iterator): Use EMACS_INT for
1276 character and byte positions.
66a9f7f4 1277 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1278 arguments for minimum and maximum buffer positions seen by
1279 display_line for this row. Don't use iterator to find the
1280 position following the maximum one; instead, increment the
11117830
EZ
1281 position found by display_line directly. Fix logic; eol_pos
1282 should be tested before the rest. Handle the case of characters
1283 delivered from display vector (bug#6036). Fix tests related to
1284 it->method. Handle the truncated_on_right_p rows.
1285 (RECORD_MAX_MIN_POS): New macro.
1286 (display_line): Use it to record the minimum and maximum buffer
1287 positions for glyphs in the row being assembled. Record the
1288 position of the newline that terminates the line. If word wrap is
1289 in effect, restore minimum and maximum positions seen up to the
1290 wrap point, when iterator returns to it.
1291 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1292 row and cursor not already at point. Restore original pre-bidi
1293 code for unidirectional buffers.
d36fe237
EZ
1294
1295 * dispnew.c (increment_row_positions, check_matrix_invariants):
1296 Increment and check row->start.pos and row->end.pos, in addition
1297 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1298
11117830
EZ
1299 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1300 Display truncated_on_left_p and truncated_on_right_p flags.
1301 Formatting fixes.
1302 (pmtxrows): Display the ordinal number of each row. Don't display
1303 rows beyond the last one.
1304
1305 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1306 it is not copied by bidi_copy_it.
1307
6e83d800
EZ
13082010-05-22 Eli Zaretskii <eliz@gnu.org>
1309
1310 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1311 (Bug#6237)
1312
110683ad
CY
13132010-05-22 Chong Yidong <cyd@stupidchicken.com>
1314
1315 * image.c (Fimage_flush): Rename from image-refresh.
1316
98fe5161
CY
13172010-05-21 Chong Yidong <cyd@stupidchicken.com>
1318
1319 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1320 just one window.
1321
1322 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1323 (clear_image_cache): If the number of cached images is unusually
1324 large, decrease the cache eviction delay (Bug#6230).
1325
e8752c66
GM
13262010-05-21 Glenn Morris <rgm@gnu.org>
1327
66dbf213
GM
1328 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1329 Move these rules to ns.mk.
1330 * ns.mk: New file.
1331
04384b2d
GM
1332 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1333
e8752c66
GM
1334 * Makefile.in (CANNOT_DUMP): New, set by configure.
1335 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1336
2e2bbddb
JL
13372010-05-20 Juri Linkov <juri@jurta.org>
1338
1339 * fileio.c (Fdelete_file): Change interative spec to use
1340 `read-file-name' like in `find-file-read-args' where the default
1341 value is `default-directory' instead of `buffer-file-name'.
1342 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1343
31c4aaf6
KR
13442010-05-20 Kevin Ryde <user42@zip.com.au>
1345
1346 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1347 (Voverriding_terminal_local_map, Vsystem_key_alist)
1348 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1349
9d5cf9b6
GM
13502010-05-20 Glenn Morris <rgm@gnu.org>
1351
1352 * Makefile.in (DEPDIR): New constant.
1353 (DEPFLAGS): Set with configure, not cpp.
1354 (MKDEPDIR): New, set by configure.
1355 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1356 (clean): Use $DEPDIR.
1357 (deps_frag): Include from configure.
1358 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1359 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1360
ead6f8f5
EZ
1361 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1362 reallocation of the cache. (Bug#6210)
1363
7f34aec3
GM
13642010-05-19 Glenn Morris <rgm@gnu.org>
1365
d494e8f2
GM
1366 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1367
c1d0dcfd
GM
1368 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1369 (GNULIB_VAR): Remove.
1370 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1371
1372 * m/ibms390x.h (LINKER):
1373 * m/macppc.h (LINKER) [GNU_LINUX]:
1374 * s/aix4-2.h (ORDINARY_LINK):
1375 * s/cygwin.h (LINKER):
1376 * s/darwin.h (ORDINARY_LINK):
1377 * s/gnu.h (ORDINARY_LINK):
1378 * s/netbsd.h (LINKER):
1379 * s/usg5-4.h (ORDINARY_LINK):
1380 Move to configure.
1381
7f34aec3
GM
1382 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1383
754790b6
CY
13842010-05-18 Chong Yidong <cyd@stupidchicken.com>
1385
1386 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1387 prevent stack overflow if number of arguments is too large
1388 (Bug#6214).
1389
161e44d1
JB
13902010-05-18 Juanma Barranquero <lekktu@gmail.com>
1391
1392 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1393
be4ff9da
GM
13942010-05-18 Glenn Morris <rgm@gnu.org>
1395
9539dc5d
GM
1396 * s/gnu-linux.h: Combine two conditionals.
1397
1398 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1399 $(POST_ALLOC_OBJ).
1400
40dc6bf4
GM
1401 * Makefile.in (RALLOC_OBJ): New, set by configure.
1402 (rallocobj): Replace with the previous variable.
1403 (otherobj): Use $RALLOC_OBJ.
1404
1405 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1406 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1407
be4ff9da
GM
1408 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1409 (gmallocobj, vmlimitobj): Replace with previous two variables.
1410 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1411
16455a85
GM
14122010-05-17 Glenn Morris <rgm@gnu.org>
1413
1414 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1415 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1416
5fdb7468
GM
14172010-05-16 Glenn Morris <rgm@gnu.org>
1418
7ca1f3f9
GM
1419 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1420
7541dad5
GM
1421 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1422
da53fab9
GM
1423 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1424 trailing "/".
1425
b02a6645
GM
1426 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1427 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1428
8877ca0f
GM
1429 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1430 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1431 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1432 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1433 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1434
5fdb7468
GM
1435 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1436 Remove ${STARTFLAGS}, nothing ever sets it.
1437
95adb4b1
DN
14382010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1439
1440 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1441
676b6304
GM
14422010-05-16 Glenn Morris <rgm@gnu.org>
1443
9beab9ce
GM
1444 * Makefile.in (LIBX_BASE): Always define.
1445
8a95f0e7
GM
1446 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1447
676b6304
GM
1448 * Makefile.in (LIBXT): Always define.
1449
6e546d18
GM
14502010-05-15 Glenn Morris <rgm@gnu.org>
1451
4235ca47 1452 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1453
6e546d18
GM
1454 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1455 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1456
8c5ff6dd
KR
14572010-05-15 Ken Raeburn <raeburn@raeburn.org>
1458
560bb7ae 1459 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1460 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1461
8b4eb796
KR
1462 * emacs.c (main): Initialize initial-environment and
1463 process-environment before generating from env, not after.
1464
8c5ff6dd
KR
1465 Handle --version reasonably in CANNOT_DUMP configuration.
1466 * emacs.c (emacs_version, emacs_copyright): New string variables.
1467 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1468 (syms_of_emacs): Defvar them, and initialize them from the C
1469 string variables.
1470 (main): If initialization hasn't been done, print initial version
1471 info from the C strings, instead of starting an interactive session.
1472
dbd3f723
EZ
14732010-05-15 Eli Zaretskii <eliz@gnu.org>
1474
d20e1419
EZ
1475 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1476 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1477 (bidi_paragraph_init): Remove redundant assertion that we are at
1478 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1479
1480 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1481 (syms_of_xdisp): Defsubr it.
1482
d36fe237
EZ
1483 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1484
dbd3f723
EZ
1485 * Makefile.in: Fix MSDOS-related comments.
1486
02be533b
GM
14872010-05-15 Glenn Morris <rgm@gnu.org>
1488
1a82cca9
GM
1489 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1490 (really-lwlib, really-oldXMenu): Always define.
1491 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1492
3df7b338
GM
1493 * Makefile.in: Simplify cpp conditional.
1494
2b5f541b
GM
1495 * Makefile.in (${ns_appdir}): Simplify using umask.
1496
02be533b
GM
1497 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1498
4e2db1fe
SM
14992010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1500
1501 * eval.c (specbind): Remove left-over duplicate test.
1502 Disallow let-binding frame-local vars. Add comment.
1503
4b292a22
EZ
15042010-05-14 Eli Zaretskii <eliz@gnu.org>
1505
2fe72643 1506 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1507 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1508 (bidi_init_it): Call it.
1509 (bidi_cache_iterator_state): Enlarge the cache if needed.
1510
4e2db1fe 1511 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1512 bidi_get_next_char_visually. All callers changed.
1513
82ebc97b
KH
15142010-05-14 Kenichi Handa <handa@m17n.org>
1515
1516 * dispextern.h (struct composition_it): New member reversed_p.
1517
1518 * composite.c (composition_compute_stop_pos): Search backward if
1519 ENDPOS < CHARPOS.
1520 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1521 Set CMP_IT->reversed_p.
b4b6e17e 1522 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1523
4e2db1fe
SM
1524 * xdisp.c (set_iterator_to_next):
1525 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1526 scanning backward. Call composition_compute_stop_pos if scan
1527 direction is changed.
1528 (next_element_from_buffer): Call composition_compute_stop_pos with
1529 negative ENDPOS if we are scanning backward.
1530 (next_element_from_composition): Pay attention to
1531 IT->cmp_it.reversed_p.
1532
0e5d7800
KH
15332010-05-14 Kenichi Handa <handa@m17n.org>
1534
560bb7ae 1535 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1536
cb027b32
GM
15372010-05-14 Glenn Morris <rgm@gnu.org>
1538
177b0288
GM
1539 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1540
fbc00890
GM
1541 * Makefile.in (mktime, X11, register): Move undefs to configure.
1542
f14d1dfd
GM
1543 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1544 (MSDOS_X_OBJ): New variable.
1545 (MSDOS_SUPPORT_REAL): New constant.
1546 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1547 (obj): Use MSDOS_X_OBJ.
1548 (lisp): Use MSDOS_SUPPORT as a variable.
1549
11842bd8
GM
1550 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1551 (GPM_MOUSE_SUPPORT): Now it's a constant.
1552 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1553 not cpp.
1554
489d31a4 1555 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1556 (ns_appresdir): Remove, unused.
e20f1f07 1557
489d31a4
GM
1558 * Makefile.in (SHELL): Move outside cpp section.
1559
cb027b32
GM
1560 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1561
5a903aa9
GM
15622010-05-13 Glenn Morris <rgm@gnu.org>
1563
3369c79f
GM
1564 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1565 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1566
d5e982a6
GM
1567 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1568 HAVE_WINDOW_SYSTEM must be too.
1569
6192e163
GM
1570 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1571 (lisp): Remove WINNT_SUPPORT.
1572
472c5d6b
GM
1573 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1574 Let configure set these variables (to empty) in this case as well.
1575
0116466b
GM
1576 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1577 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1578
5a903aa9
GM
1579 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1580 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1581 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1582 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1583 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1584 the values output by configure.
5a903aa9
GM
1585 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1586
1a0d7c06
GM
15872010-05-12 Glenn Morris <rgm@gnu.org>
1588
b5457f14
GM
1589 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1590 (LINKER_WAS_SPECIFIED): Remove.
1591
1a0d7c06
GM
1592 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1593 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1594 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1595 * s/cygwin.h (LIB_GCC):
1596 * s/freebsd.h (LIB_GCC):
1597 * s/gnu-linux.h (LIB_GCC):
1598 * s/msdos.h (LIB_GCC):
1599 * s/netbsd.h (LIB_GCC):
1600 Move to configure.
1601
3ffd4615 16022010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1603
1604 * ftfont.c: Fix incorrect parentheses of #if condition for
1605 definining M17N_FLT_USE_NEW_FEATURE.
1606
acddf8ae
GM
16072010-05-11 Glenn Morris <rgm@gnu.org>
1608
1609 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1610 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1611
ae5e04fa
EZ
16122010-05-10 Eli Zaretskii <eliz@gnu.org>
1613
1614 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1615 unibyte buffers. See
1616 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1617
7490175b
GM
16182010-05-10 Glenn Morris <rgm@gnu.org>
1619
97efb629
GM
1620 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1621 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1622 (LIBES): Use LIBS_SYSTEM as a variable.
1623 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1624 * s/aix4-2.h (LIBS_SYSTEM):
1625 * s/freebsd.h (LIBS_SYSTEM):
1626 * s/hpux10-20.h (LIBS_SYSTEM):
1627 * s/sol2-6.h (LIBS_SYSTEM):
1628 * s/unixware.h (LIBS_SYSTEM):
1629 Move to configure.
1630
7490175b
GM
1631 * s/aix4-2.h (MAIL_USE_LOCKF):
1632 * s/bsd-common.h (MAIL_USE_FLOCK):
1633 * s/darwin.h (MAIL_USE_FLOCK):
1634 * s/gnu-linux.h (MAIL_USE_FLOCK):
1635 * s/irix6-5.h (MAIL_USE_FLOCK):
1636 * s/template.h (MAIL_USE_FLOCK):
1637 Move to configure.
1638
0235128c 16392010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1640
1641 * Version 23.2 released.
1642
0235128c 16432010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1644
1645 * composite.c (autocmp_chars): Save point as marker before calling
1646 auto-composition-function (Bug#5984).
1647
1648 * lisp.h (restore_point_unwind): Add prototype.
1649
1650 * fileio.c (restore_point_unwind): Remove static attribute.
1651
0235128c 16522010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1653
1654 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1655 new feature of libotf and m17n-flt.
0235128c
SM
1656 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1657 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1658 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1659 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1660 that OUT is NULL. Use OTF_drive_gsub_with_log and
1661 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1662 OTF_drive_gpos.
1663 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1664 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1665 Setup mflt_enable_new_feature and mflt_try_otf.
1666
4721152c
J
16672010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1668
1669 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1670
1671 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1672 box and toolbar (Bug #6139).
1673 (xg_create_tool_bar): Remove comment (Bug #6139).
1674 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1675 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1676
ee0a16cf
JB
16772010-05-08 Juanma Barranquero <lekktu@gmail.com>
1678
1679 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1680 Update dependencies.
1681
96d79611
EZ
16822010-05-08 Eli Zaretskii <eliz@gnu.org>
1683
1684 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1685 R2L lines.
1686
40c17879
GM
16872010-05-08 Glenn Morris <rgm@gnu.org>
1688
7b42b29f
GM
1689 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1690
40c17879
GM
1691 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1692 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1693 (termcapobj): Replace with TERMCAP_OBJ.
1694 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1695 (LIBES): Use LIBS_TERMCAP as a variable.
1696
1697 * s/freebsd.h (osreldate.h): No longer include, since this file
1698 does not use __FreeBSD_version any more.
1699
1700 * s/aix4-2.h (TERMINFO):
1701 * s/cygwin.h (TERMINFO):
1702 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1703 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1704 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1705 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1706 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1707 * s/irix6-5.h (TERMINFO):
1708 * s/netbsd.h (LIBS_TERMCAP):
1709 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1710 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1711 * s/usg5-4.h (TERMINFO):
1712 Move to configure.
1713
94b612ad
SM
17142010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1715
1716 * eval.c (unbind_to): Don't unbind a local binding into the global
1717 binding when the local binding disappeared. Inversely, don't unbind
1718 a global binding into a newly created local binding.
1719 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1720 can specify the frame to use, when applicable. Adjust callers.
1721
15e12598 17222010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1723 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1724
1725 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1726
f724825e
EZ
17272010-05-07 Eli Zaretskii <eliz@gnu.org>
1728
5cba3209
EZ
1729 * w32fns.c: Include w32.h.
1730 (Fw32_shell_execute): Decode the error message before passing it
1731 to `error'. (Bug#6126)
1732
d16bdfc3
EZ
1733 * msdos.c (dos_set_window_size):
1734 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1735 instead of `XSYMBOL (foo)->value'.
1736
59d93e87
EZ
17372010-05-07 Eli Zaretskii <eliz@gnu.org>
1738
9fdec8bc
EZ
1739 Fix the MS-DOS build, broken by autoconfiscation.
1740
1741 * Makefile.in: Don't use Make-style comments past the "start of
1742 cpp stuff" line.
1743 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1744
1745 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1746 edited directly by msdos/sed1v2.inp).
f724825e 1747
2f86b22b
GM
17482010-05-07 Glenn Morris <rgm@gnu.org>
1749
1750 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1751 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1752 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1753 move out of cpp section.
1754 * s/freebsd.h (LD_SWITCH_SYSTEM):
1755 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1756 * s/netbsd.h (LD_SWITCH_SYSTEM):
1757 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1758
49ebbd65
DN
17592010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1760
1761 Define LIB_STANDARD and START_FILES using autoconf.
1762 * s/usg5-4.h (LIB_STANDARD):
1763 * s/netbsd.h (START_FILES):
1764 * s/irix6-5.h (LIB_STANDARD):
1765 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1766 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1767 * s/freebsd.h (START_FILES):
1768 * s/darwin.h (START_FILES):
1769 * s/cygwin.h (START_FILES):
1770 * s/aix4-2.h (LIB_STANDARD):
1771 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1772 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1773 autoconf, not cpp.
1774
d43c06d6
DN
17752010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1776
28823648
DN
1777 Remove NEED_BSDTTY and NEED_UNISTD_H.
1778 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1779 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1780 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1781 <sys/ptyio.h> and <unistd.h>.
1782
aca00430
DN
1783 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1784
d43c06d6
DN
1785 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1786 * s/gnu.h (START_FILES): Remove empty definition.
1787
3e56b11d
JD
17882010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1789
1790 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1791
e3cf0cde
GM
17922010-05-06 Glenn Morris <rgm@gnu.org>
1793
1794 * Makefile.in (CPP, LN_S): Remove unused variables.
1795
774b9a60
SM
17962010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1797
1798 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1799
4ab92842
LM
18002010-05-05 Lawrence Mitchell <wence@gmx.li>
1801
1802 * m/sparc.h: Fix typo in earlier change.
1803
178f2507
SM
18042010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1805
1806 Misc tweaks.
1807 * eval.c (Fdefvaralias): Remove unintended nested if.
1808 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1809
80f00217 18102010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1811
1812 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1813
ef03a4e6
DN
18142010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1815
58eb6cf0
DN
1816 Remove BSD_PGRPS.
1817 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1818 * s/gnu-linux.h (BSD_PGRPS): Remove.
1819 * term.c (dissociate_if_controlling_tty):
1820 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1821 (init_sys_modes, reset_sys_modes):
1822 * emacs.c (main):
1823 * callproc.c (Fcall_process, child_setup): Remove code depending
1824 on BSD_PGRPS.
1825
ef03a4e6
DN
1826 Remove POSIX_SIGNALS.
1827 * s/usg5-4.h (POSIX_SIGNALS):
1828 * s/netbsd.h (POSIX_SIGNALS):
1829 * s/msdos.h (POSIX_SIGNALS):
1830 * s/ms-w32.h (POSIX_SIGNALS):
1831 * s/hpux11.h (POSIX_SIGNALS):
1832 * s/gnu.h (POSIX_SIGNALS):
1833 * s/gnu-linux.h (POSIX_SIGNALS):
1834 * s/freebsd.h (POSIX_SIGNALS):
1835 * s/darwin.h (POSIX_SIGNALS):
1836 * s/cygwin.h (POSIX_SIGNALS):
1837 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1838 * s/unixware.h:
1839 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1840 * process.c (create_process):
1841 * syssignal.h:
1842 * sysdep.c (wait_for_termination, init_signals):
1843 * process.c (create_process):
1844 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1845 remove all code that assumes the contrary.
1846
49628785
GM
18472010-05-04 Glenn Morris <rgm@gnu.org>
1848
27a2cdfc
GM
1849 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1850 variable.
1851 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1852 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1853 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1854 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1855 LD_SWITCH_SYSTEM_tmp.
1856 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1857 New variables, set by configure.
1858
eb21eab5
GM
1859 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1860 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1861 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1862 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1863 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1864
49628785
GM
1865 * s/aix4-2.h (C_SWITCH_SYSTEM):
1866 * m/alpha.h (C_SWITCH_MACHINE):
1867 Move to configure.in.
1868 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1869 New variables, set by configure.
1870 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1871 $c_switch_machine and $c_switch_system.
1872
7dff330b
DN
18732010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1874
1875 * s/hpux10-20.h (LIB_STANDARD): New definition.
1876 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1877 on it, not used anymore.
1878
53967e09
CY
18792010-05-03 Chong Yidong <cyd@stupidchicken.com>
1880
1881 * eval.c (internal_condition_case_n): Rename from
1882 internal_condition_case_2.
1883 (internal_condition_case_2): New function.
1884
1885 * xdisp.c (safe_call): Use internal_condition_case_n.
1886
1887 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1888 (internal_delete_file, Frename_file): Callers changed.
1889
1890 * buffer.c (Fkill_buffer):
1891 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1892
1893 * lisp.h: Update prototypes.
1894
3dee6fdb
GM
18952010-05-03 Glenn Morris <rgm@gnu.org>
1896
1897 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1898 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1899 (LIBXT): Set with configure, not cpp.
1900 (LIBX): Remove.
1901 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1902
a101e0fb
DN
19032010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1904
1905 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1906 The FreeBSD is not needed, the default works, Solaris version is
1907 not needed, and the remaining case is not supported by configure.
1908
f63d0028
JD
19092010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1910
1911 * xsmfns.c (CHDIR_OPT): New define.
1912 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1913 restarting emacs.
1914
1915 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1916 shut_down_emacs.
1917
1918 * emacs.c (USAGE1): Mention --chdir.
1919 (main): Handle --chdir.
1920 (standard_args): Add --chdir.
1921 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1922 #5552).
1923
e4814a9f
DN
19242010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1925
cd03c74a
DN
1926 Remove LD_SWITCH_MACHINE.
1927 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1928 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1929
c3a398a1
DN
1930 Clean up IRIX code.
1931 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1932 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1933
87e7285c
DN
1934 Clean up AIX code.
1935 * m/ibmrs6000.inp: Remove file, unused.
1936 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1937 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1938 definition ...
1939 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1940
80f00217
JB
1941 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1942 unused.
e4814a9f 1943
59ca28de
EZ
19442010-05-01 Eli Zaretskii <eliz@gnu.org>
1945
197daef4
EZ
1946 Emulate POSIX_SIGNALS on MS-Windows.
1947
1948 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1949 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1950
1951 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1952 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1953 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1954
80f00217
JB
1955 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1956 New stubs.
197daef4 1957
af7c7572
EZ
1958 Miscellaneous fixes of bidi display.
1959
59ca28de
EZ
1960 * xdisp.c (find_row_end): New function, refactored from display_line.
1961 (display_line): Use it.
017ea819
EZ
1962 (extend_face_to_end_of_line): In almost-filled rows, extend only
1963 if the row is R2L and not continued.
166e930d 1964 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1965 Preserve overlay and string info in row->end.
166e930d
EZ
1966 (insert_left_trunc_glyphs): Support addition of left truncation
1967 glyphs to R2L rows.
b47e0dcf 1968 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1969 glyph between adjacent windows. Fix a crash when a display string
1970 is continued to the next line. Don't return zero if cursor was
1971 found by `cursor' property of a display string.
b47e0dcf
EZ
1972 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1973 test for that explicitly.
59ca28de 1974
7acac9f4
GM
19752010-05-01 Glenn Morris <rgm@gnu.org>
1976
1977 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1978 for clarity.
1979 (OTHER_OBJ): Remove.
1980 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1981 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1982
45841e65
KK
19832010-05-01 Karel Klíč <kklic@redhat.com>
1984
1985 * fileio.c (Ffile_selinux_context): Context functions may return null.
1986
afc61943
DN
19872010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1988
80f00217 1989 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1990
5a1bb006
GM
19912010-04-30 Glenn Morris <rgm@gnu.org>
1992
1993 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1994 (OTHER_OBJ): Define as a separate variable, for clarity.
1995
210af043
J
19962010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1997
1998 * xsettings.c: include limits.h and update file comment.
1999
0a7df391
GM
20002010-04-30 Glenn Morris <rgm@gnu.org>
2001
d5096f16
GM
2002 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2003 Set with configure, not cpp.
2004 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2005
7eb1ac33
GM
2006 * Makefile.in (mallocobj): Remove.
2007 (otherobj): Simplify using @OTHER_OBJ@.
2008
517d086b
GM
2009 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2010 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2011 Don't bother making nsgui.h dependency platform-specific.
2012
0a7df391
GM
2013 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2014
d6d23852
SM
20152010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2016
d2630aef
SM
2017 * process.c (read_process_output, exec_sentinel): Don't burp if the
2018 sentinel/filter kills the current buffer (bug#6060).
2019
f9dddf52 2020 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2021 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2022 Remove unused var `args'.
2023 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2024 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2025 * doc.c (store_function_docstring): Use XSETCAR.
2026
f1e3642a
GM
20272010-04-28 Glenn Morris <rgm@gnu.org>
2028
faf535f8
GM
2029 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2030 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2031
c40f9449
GM
2032 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2033
658f86ca
GM
2034 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2035 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2036
bc0b5f61
GM
2037 * Makefile.in (FONT_OBJ): New, set by configure.
2038 (FONT_DRIVERS): Use $FONT_OBJ.
2039
294c50a0
GM
2040 * Makefile.in (LIBXMU): Set with configure, not cpp.
2041 * s/aix4-2.h (LIBXMU):
2042 * s/hpux10-20.h (LIBXMU):
2043 Remove definition, now set in configure.
2044
e6ec4e99
GM
2045 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2046
f1e3642a
GM
2047 * m/amdx86-64.h [i386]: Move this test to configure.in.
2048
c6ea2936
GM
20492010-04-27 Glenn Morris <rgm@gnu.org>
2050
8fdac2c3
GM
2051 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2052 * s/unixware.h (NEED_LIBW): Remove definition.
2053
986fb647
GM
2054 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2055 (TOOLKIT_LIBW): New, set by configure.
2056 (@X_TOOLKIT_TYPE@): No longer define it.
2057
c6ea2936
GM
2058 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2059 (MOTIF_LIBW): Set with configure, not cpp.
2060 * s/aix4-2.h (LIB_MOTIF):
2061 * s/gnu-linux.h (LIB_MOTIF):
2062 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2063
aaa36002
DN
20642010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2065
2066 Reduce CPP usage.
2067 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2068 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2069 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2070 definitions and undefs. Inline definitions in the only user.
2071 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2072
b678dd8b
GM
20732010-04-27 Glenn Morris <rgm@gnu.org>
2074
76cda504
GM
2075 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2076 since the defaults (set by the system file) are fine in most cases.
2077 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2078 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2079 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2080 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2081 Remove definitions, since they are set correctly in s/gnu-linux.h.
2082 * s/freebsd.h (START_FILES, LIB_STANDARD):
2083 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2084 * s/hpux10-20.h (START_FILES):
2085 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2086 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2087
b678dd8b
GM
2088 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2089 (MOTIF_LIBW): Use $LIBXP.
2090 (otherobj): Use $WIDGET_OBJ.
2091
9452ded1
DN
20922010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2093
7e10844c
DN
2094 * Makefile.in (LIBS_MACHINE): Remove, unused.
2095
9452ded1
DN
2096 Use autoconf instead of cpp for LIB_MATH.
2097 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2098 * s/cygwin.h (LIB_MATH): Likewise.
2099 * Makefile.in (LIB_MATH): Do not define with cpp.
2100 (LIBES): Use autoconf for LIB_MATH.
2101
fcebfc6a
KH
21022010-04-26 Kenichi Handa <handa@m17n.org>
2103
2104 * composite.c (Ffind_composition_internal): Fix the return value
2105 for an automatic composition.
2106
39e2ad1b
DN
21072010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2108
2109 Remove all NO_ARG_ARRAY uses.
2110 * fns.c (concat2, concat3, nconc2):
2111 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2112 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2113 * m/xtensa.h (NO_ARG_ARRAY):
2114 * m/template.h (NO_ARG_ARRAY):
2115 * m/sparc.h (NO_ARG_ARRAY):
2116 * m/sh3.h (NO_ARG_ARRAY):
2117 * m/mips.h (NO_ARG_ARRAY):
2118 * m/macppc.h (NO_ARG_ARRAY):
2119 * m/iris4d.h (NO_ARG_ARRAY):
2120 * m/intel386.h (NO_ARG_ARRAY):
2121 * m/ibms390x.h (NO_ARG_ARRAY):
2122 * m/ibms390.h (NO_ARG_ARRAY):
2123 * m/ibmrs6000.h (NO_ARG_ARRAY):
2124 * m/ia64.h (NO_ARG_ARRAY):
2125 * m/hp800.h (NO_ARG_ARRAY):
2126 * m/arm.h (NO_ARG_ARRAY):
2127 * m/amdx86-64.h (NO_ARG_ARRAY):
2128 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2129
adf4f59c
EZ
21302010-04-25 Eli Zaretskii <eliz@gnu.org>
2131
6bdf5d65
EZ
2132 * xdisp.c (display_line): Don't assume 2nd call to
2133 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2134 (iterate_out_of_display_property): New function, body from pop_it.
2135 (pop_it): Use it.
adf4f59c 2136
dfbbda83
GM
21372010-04-24 Glenn Morris <rgm@gnu.org>
2138
2139 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2140 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2141 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2142 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2143
2d4018aa
EZ
21442010-04-24 Eli Zaretskii <eliz@gnu.org>
2145
a49884a6
EZ
2146 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2147 use `get_next_display_element' and `set_iterator_to_next' to
2148 advance to the next character, when looking for the character that
2149 begins the next row.
2150
76db6fcc 2151 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2152 definition of "struct Lisp_Symbol".
2153
70eab5c1
GM
21542010-04-24 Glenn Morris <rgm@gnu.org>
2155
2156 * Makefile.in (CRT_DIR): New variable, set by configure.
2157 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2158 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2159
1ad4cc3d
DN
21602010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2161
e769f484
DN
2162 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2163
4196ff33
DN
2164 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2165
879b0ee4
DN
2166 Remove redundant flags.
2167 * s/freebsd.h (C_SWITCH_SYSTEM):
2168 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2169 * s/netbsd.h (C_SWITCH_SYSTEM):
2170 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2171 of these.
2172
03cbbcb8
DN
2173 Simplify m/intel386.h.
2174 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2175 user: ecrt0.c.
2176 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2177 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2178 the only user: s/unixware.h.
2179 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2180 from m/intel386.h.
2181 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2182 moved here from m/intel386.h.
2183
1ad4cc3d
DN
2184 * m/mips.h: Remove #if 0 code.
2185
8785b888
EZ
21862010-04-23 Eli Zaretskii <eliz@gnu.org>
2187
728588cc
EZ
2188 Fix display of composed characters from L2R scripts in bidi buffers.
2189 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2190 After advancing IT past the composition, resync the bidi iterator
2191 with IT's position. (Bug#5977)
2192
a63f80b4
DN
21932010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2194
2195 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2196 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2197
ff5dec5c
SM
21982010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2199
2200 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2201
8785b888
EZ
22022010-04-23 Eli Zaretskii <eliz@gnu.org>
2203
58ccf243 2204 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2205 * xdisp.c (pop_it): When the stack is popped after displaying
2206 from a string, bidi-iterate to exit from the text portion covered
2207 by the `display' property or overlay. (Bug#5988, bug#5920)
2208
feeb1604
DN
22092010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2210
8e324eb6
DN
2211 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2212 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2213
809fcaba
DN
2214 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2215 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2216
ed710380
DN
2217 Simplify STARTFILES definition.
2218 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2219 relying on Makefile.in to define it.
2220 * s/cygwin.h (START_FILES): Likewise.
2221 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2222
feeb1604
DN
2223 Clean up Solaris code.
2224 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2225 (LIB_MOTIF): Remove, configure takes care of this.
2226 (NOT_USING_MOTIF): Remove, unused.
2227 * xrdb.c: Remove #if 0-ed #include.
2228 (SYSV): Remove conditional for old SysV.
2229 * sysdep.c (closedir): Remove conditional code for Solaris,
2230 Solaris has closedir.
2231
a0d0b563
JD
22322010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2233
2234 * xsettings.c (read_and_apply_settings): Check if current_font is
2235 NULL before strcmp (Bug#6001).
2236
56bae7c7
DN
22372010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2238
2239 Clean up HP-UX files.
2240 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2241 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2242 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2243 * s/hpux10-20.h: ... to the only user, here.
2244
372b7a95
EZ
22452010-04-21 Eli Zaretskii <eliz@gnu.org>
2246
2247 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2248 use buffer-local values of paragraph-start and paragraph-separate.
2249 <paragraph_start_re, paragraph_separate_re>: Rename from
2250 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2251 (Bug#5992)
2252
f904c0f9
JD
22532010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2254
2255 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2256 current_tool_bar_style are new.
2257 (store_config_changed_event): Rename from store_font_changed_event.
2258 (XSETTINGS_TOOL_BAR_STYLE): New define.
2259 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2260 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2261 HAVE_XFT.
2262 (something_changedCB): store_font_changed_event is now
2263 store_config_changed_event
2264 (parse_settings): Rename from parse_xft_settings. Read
2265 non-xft xsettings outside #ifdef HAVE_XFT.
2266 (read_settings): Renamed from read_xft_settings.
2267 (apply_xft_settings): Take current settings as parameter. Do not
2268 call read_(xft)_settings.
2269 (read_and_apply_settings): New function.
2270 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2271 read_and_apply_settings if there are settings to be read.
2272 (init_xsettings): Renamed from init_xfd_settings.
2273 Call read_and_apply_settings unconditionally.
2274 (xsettings_initialize): Call init_xsettings.
2275 (Ftool_bar_get_system_style): New function.
2276 (syms_of_xsettings): Define Qmonospace_font_name and
2277 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2278 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2279 dynamic-setting.
31a01b90 2280 Move misplaced HAVE_GCONF
f904c0f9
JD
2281
2282 * xsettings.h (Ftool_bar_get_system_style): Declare.
2283
2284 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2285 Qtext, Qboth, Qboth_horiz are new.
2286 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2287 Vtool_bar_style, tool_bar_max_label_size.
2288
2289 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2290
2291 * keyboard.c: QClabel is new.
2292 (parse_tool_bar_item): Take out QClabel from tool bar items.
2293 Try to construct a label if ther is no QClabel.
2294 (syms_of_keyboard): Intern :label as QClabel.
2295
2296 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2297 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2298 New.
2299
2300 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2301 dynamic-setting.el.
2302
2303 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2304 (xg_make_tool_item, xg_show_toolbar_item): New function.
2305 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2306 Call xg_make_tool_item to make a tool bar item.
2307 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2308
2309 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2310 into account for toolbars.
2311
c632dfda
JD
23122010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2313
2314 * data.c (make_blv): Declarations before code (Bug#5993).
2315
10efe302
GM
23162010-04-21 Glenn Morris <rgm@gnu.org>
2317
2318 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2319 Define using autoconf, not cpp.
2320 (LIBXSM): New variable, set by autoconf.
2321 (LIBXT): Use $LIBXSM.
2322
4285ac5a
DN
23232010-04-21 Dan Nicolaescu <local_user@dannlt>
2324
3ec759e7
DN
2325 Remove NOMULTIPLEJOBS, unused.
2326 * s/template.h (NOMULTIPLEJOBS):
2327 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2328
4285ac5a
DN
2329 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2330 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2331 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2332 detects -znocombreloc and passes it to the linker
2333 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2334
2807228d
GM
23352010-04-21 Glenn Morris <rgm@gnu.org>
2336
2337 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2338
574c05e2
KK
23392010-04-21 Karel Klíč <kklic@redhat.com>
2340
2341 * Makefile.in (LIBSELINUX_LIBS): New.
2342 (LIBES): Add $LIBSELINUX_LIBS.
2343 * eval.c, lisp.h (call7): New function.
2344 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2345 (Ffile_selinux_context, Fset_file_selinux_context):
2346 New functions.
2347 (Fcopy_file): New parameter preserve-selinux-context.
2348 (Frename_file): Preserve selinux context when renaming by copy-file.
2349
91eac4bb 23502010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2351 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2352
50426a04
JB
2353 Don't depend on cm.c or termcap.c on Windows, use stubs.
2354 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2355 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2356 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2357 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2358 (sys_tputs, sys_tgetstr): New stubs.
2359 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2360 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2361
938efb77
JB
23622010-04-20 Juanma Barranquero <lekktu@gmail.com>
2363
2364 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2365
b4bf28b7
SM
23662010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2367
8b1e1112
SM
2368 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2369 Just signal a warning rather than an error when inside a let.
2370 (Fmake_variable_frame_local): Add the same test.
2371
933ac235
SM
2372 * font.c (syms_of_font): Make the style table vars read-only.
2373
b4bf28b7
SM
2374 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2375 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2376
2377 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2378
93d68d0c
EZ
23792010-04-20 Eli Zaretskii <eliz@gnu.org>
2380
2381 Fix R2L paragraph display on TTY.
2382
2383 * xdisp.c (unproduce_glyphs): New function.
2384 (display_line): Use it when produced glyphs are discarded from R2L
2385 glyph rows.
2386 (append_composite_glyph): In R2L rows, prepend the glyph rather
2387 than appending it.
2388
2389 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2390 rather than append it. Set up the resolved_level and bidi_type
2391 attributes of the appended glyph.
283ccc18
EZ
2392 (produce_special_glyphs): Mirror the backslash continuation
2393 character in R2L lines.
93d68d0c 2394
283ccc18 2395 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2396
283ccc18
EZ
2397 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2398 append_stretch_glyph.
2399 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2400 off-by-one error in computing x at end of text in the row.
2401 (append_stretch_glyph): In reversed row, prepend the glyph rather
2402 than append it. Set resolved_level and bidi_type of the glyph.
2403 (extend_face_to_end_of_line): If the row is reversed, prepend a
2404 stretch glyph whose width is such that the rightmost glyph will be
2405 drawn at the right margin of the window. Fix off-by-one error on
2406 TTY frames in testing whether a line needs face extension. Fix
2407 face extension at ZV. If this is the last glyph row, use
2408 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2409 region face.
2410 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2411 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2412 row->continuation_lines_width.
283ccc18
EZ
2413 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2414 are at ZV. Fixes a crash when reseated to ZV by
2415 try_window_reusing_current_matrix.
45903529
EZ
2416 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2417 which happens with R2L glyph rows. Fixes a crash when inserting a
2418 character at end of an R2L line.
283ccc18
EZ
2419 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2420 treat them as having zero-width characters. Improve comments.
2421 Don't reverse pos_before and pos_after for reversed glyph rows.
2422 Set cursor.x to negative value when the cursor might be on the
2423 left fringe.
2424 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2425 left fringe, not the right one.
f951a506
EZ
2426 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2427 (erase_phys_cursor): For reversed cursor_row, support cursor on
2428 the left fringe.
2429
283ccc18
EZ
2430 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2431 of continuation indicators on the fringes.
2432 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2433 left fringe.
2434
f951a506
EZ
2435 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2436 draw cursor on the left fringe.
2437
2438 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2439 cursor on the left fringe.
2440
f951a506
EZ
2441 * dispnew.c (update_text_area): Handle reversed desired rows when
2442 the cursor is on the left fringe.
2443 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2444 below, not by 0, for when the cursor is on the left fringe.
2445
3bb49aaf
JD
24462010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2447
2448 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2449 widget is a scrollbar.
2450
c0be27fd
KH
24512010-04-20 Kenichi Handa <handa@m17n.org>
2452
2453 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2454 only when the arg CHARSET_LIST is nil.
2455
ce5b453a
SM
24562010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2457
2458 Make variable forwarding explicit rather the using special values.
2459 Basically, this makes the structure of buffer-local values and object
2460 forwarding explicit in the type of Lisp_Symbols rather than use
2461 special Lisp_Objects for that. This tends to lead to slightly more
2462 verbose code, but is more C-like, simpler, and makes it easier to make
2463 sure we handled all cases, among other things by letting the compiler
2464 help us check it.
2465 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2466 Removing forwarding objects.
2467 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2468 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2469 explicit rather than hiding them inside Lisp_Object "values".
2470 (XFWDTYPE): New macro.
2471 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2472 (XBUFFER_LOCAL_VALUE): Remove.
2473 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2474 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2475 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2476 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2477 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2478 Remove the Lisp_Misc_* header.
2479 (struct Lisp_Buffer_Local_Value): Redefine.
2480 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2481 (struct Lisp_Misc_Any): Add filler to get the right size.
2482 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2483 Lisp_Intfwd.
2484 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2485 (DEFVAR_KBOARD): Allocate a forwarding object.
2486 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2487 (let_shadows_global_binding_p): New function.
2488 (union Lisp_Val_Fwd): New type.
2489 (make_blv): New function.
2490 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2491 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2492 (swap_in_symval_forwarding, find_symbol_value, Fset)
2493 (let_shadows_buffer_binding_p, set_internal, default_value)
2494 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2495 (Fkill_local_variable, Fmake_variable_frame_local)
2496 (Flocal_variable_p, Flocal_variable_if_set_p)
2497 (Fvariable_binding_locus):
2498 * xdisp.c (select_frame_for_redisplay):
2499 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2500 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2501 * frame.c (store_frame_param):
2502 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2503 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2504 value structure.
2505 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2506 (clone_per_buffer_values): Only adjust markers into the current buffer.
2507 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2508 (Fbuffer_local_value, set_buffer_internal_1)
2509 (swap_out_buffer_local_variables):
2510 Adapt to the new symbol value structure.
2511 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2512 (defvar_per_buffer): Take a new arg for the fwd object.
2513 (buffer_lisp_local_variables): Return a proper alist (different fix
2514 for bug#4138).
2515 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2516 (Fgarbage_collect): Don't handle buffer_defaults specially.
2517 (mark_object): Handle new symbol value structure rather than the old
2518 special Lisp_Misc_* objects.
2519 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2520 * term.c (set_tty_color_mode):
2521 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2522 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2523 a buffer_local_flags.
2524 * print.c (print_object): Get rid of impossible forwarding objects.
2525
fd3998ff
EZ
25262010-04-19 Eli Zaretskii <eliz@gnu.org>
2527
2528 * bidi.c (bidi_get_type, bidi_get_category)
2529 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2530 (bidi_type_of_next_char, bidi_level_of_next_char):
2531 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2532
e42cd1a7
JB
25332010-04-19 Juanma Barranquero <lekktu@gmail.com>
2534
2535 * dired.c (Ffile_attributes): Fix typo in docstring.
2536
6e104790 25372010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2538
2539 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2540 NSInteger (Bug#5811).
2541
6e104790 25422010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2543
2544 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2545 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2546
6e104790 25472010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2548
2549 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2550
6e104790
SM
25512010-04-19 Chong Yidong <cyd@stupidchicken.com>
2552
2553 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2554 terminal frames (Bug#5837).
2555
37dcfea0
EZ
25562010-04-19 Eli Zaretskii <eliz@gnu.org>
2557
d1da276f
EZ
2558 * .gdbinit (xsubchartable): New command.
2559
37dcfea0
EZ
25602010-04-19 Eli Zaretskii <eliz@gnu.org>
2561
2562 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2563 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2564 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2565 and
2566 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2567
e9515805
SM
25682010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2569
2570 * alloc.c (Fpurecopy): Hash-cons if requested.
2571 (syms_of_alloc): Update purify-flag docstring.
2572
22aa44a8
JD
25732010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2574
2575 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2576 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2577
ebb5722e
EZ
25782010-04-17 Eli Zaretskii <eliz@gnu.org>
2579
2580 Fix a crash when an NSM character is inserted at BEGV.
2581
2582 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2583 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2584 NEUTRAL_B or UNKNOWN_BT.
2585
0f4442ef
EZ
25862010-04-16 Eli Zaretskii <eliz@gnu.org>
2587
2588 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2589 other rows with cursor unless they are different from this row and
2590 this row is part of a continued line. (Bug#5943)
2591
7d4e45f8
DN
25922010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2593
2594 * s/freebsd.h: Restore osreldate.h include.
2595 Suggested by Naohiro Aota.
2596
5ba5ec85
J
25972010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2598
2599 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2600
20af301d
CY
26012010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2602
2603 * s/cygwin.h: Avoid linking against static libgcc.
2604
a4b000fb
JL
26052010-04-15 Juri Linkov <juri@jurta.org>
2606
2607 * window.c: Add Qscroll_command.
2608 Remove Vscroll_preserve_screen_position_commands.
2609 (window_scroll_pixel_based, window_scroll_line_based): Check the
2610 `scroll-command' property on the last command instead of searching
2611 the last command in Vscroll_preserve_screen_position_commands.
2612 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2613 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2614 (scroll-preserve-screen-position): Doc fix.
2615 (Vscroll_preserve_screen_position_commands): Remove variable.
2616
bc319ba4
DN
26172010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2618
6bb24457
DN
2619 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2620
19d4c244
DN
26212010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2622
2623 Reduce cpp use in Makefile.in.
2624 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2625 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2626 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2627 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2628 (CRT0_COMPILE): Remove, inline it in the only user.
2629
32129746
JL
26302010-04-14 Juri Linkov <juri@jurta.org>
2631
2632 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2633 `scroll-up-command' and `M-v' from `scroll-down' to
2634 `scroll-down-command'.
2635
9013a7f8
JL
26362010-04-14 Juri Linkov <juri@jurta.org>
2637
2638 * window.c (Vscroll_preserve_screen_position_commands): New variable
2639 with the default value as the list of Qscroll_down and Qscroll_up.
2640 (window_scroll_pixel_based, window_scroll_line_based): Search the
2641 last command in the list Vscroll_preserve_screen_position_commands
2642 instead of comparing with Qscroll_up and Qscroll_down.
2643
4bef8d26
JD
26442010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2645
92848133
JD
2646 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2647 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2648 does that.
2649
4bef8d26
JD
2650 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2651 to zero.
2652
58b963f7
SM
26532010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2654
84164a0d
SM
2655 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2656
2b0a91e7
SM
2657 Try to solve the problem of spurious EOF chars in long lines of text
2658 sent to interactive subprocesses.
2659 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2660 (system_process_attributes): Remove unused var `ttotal'.
2661 * process.c (send_process): Don't bother breaking long line with EOF
2662 chars when talking to ttys any more.
2663 (wait_reading_process_output): Output a warning when called in such
2664 a way that it could block without being interruptible.
2665
58b963f7
SM
2666 Try to detect file modification within the same second.
2667 * buffer.h (struct buffer): New field modtime_size.
2668 * buffer.c (reset_buffer): Initialize it.
2669 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2670 (Fverify_visited_file_modtime): Check it.
2671 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2672 (Fset_visited_file_modtime): Set (or clear) it.
2673
01f5787b
SM
26742010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2675
2676 * process.c (status_notify): Remove unused var `ro'.
2677
83725342
JD
26782010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2679
2680 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2681 more than one visual (Bug#5938).
2682
b9465836
DN
26832010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2684
50426a04
JB
2685 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2686 Undefine.
b9465836 2687
8d9c8ece
DN
26882010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2689
b1f52161
DN
2690 Remove C_SWITCH_SYSTEM_TEMACS.
2691 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2692 (malloc, realloc, free): Use emacs, not temacs for conditional
2693 definition.
2694
2695 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2696 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2697
8d9c8ece
DN
2698 Use autoconf, not cpp for some variables.
2699 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2700 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2701 (ALL_CFLAGS): Use them as make variables.
2702 (really-lwlib, really-oldXMenu): Do not pass them.
2703
1ecb2d3f
JD
27042010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2705
2706 * xmenu.c (apply_systemfont_to_dialog): New.
2707 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2708
3a4fa2f2
SM
27092010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2710
97e53006
SM
2711 * process.c (exec_sentinel): Preserve current-buffer.
2712
3a4fa2f2
SM
2713 * process.c (read_process_output): Move the save-current-buffer to
2714 apply to both the filter and the non-filter branches.
2715
88df7221
DN
27162010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2717
2718 * s/msdos.h (UNEXEC): New definition.
2719
5634ff85
YM
27202010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2721
6eff5c3d
YM
2722 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2723 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2724
2725 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2726 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2727 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2728 TRY_WINDOW_CHECK_MARGINS.
2729
2730 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2731 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2732 width only when it is for padding.
5634ff85 2733
b13aef54
J
27342010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2735
2736 * xfns.c (Fx_show_tip): Call try_window in a loop until
2737 fonts_changed_p is zero (Bug#2423).
2738
21d28484
EZ
27392010-04-08 Eli Zaretskii <eliz@gnu.org>
2740
2741 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2742 the end of TEXT_AREA. (Bug#5856)
2743
0269ef77
JD
27442010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2745
2746 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2747 HAVE_GCONF.
2748
5930fe97
EZ
27492010-04-08 Eli Zaretskii <eliz@gnu.org>
2750
2751 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2752 prev.orig_type, for resolving type of NSM. (Bug#5858)
2753
99852628
JD
27542010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2755
2756 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2757 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2758 in current_font.
2759 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2760 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2761 New functions.
2762 (syms_of_xsettings): Initialize current_font.
2763 defsubr Sfont_get_system_normal_font.
99852628
JD
2764
2765 * xsettings.h (Ffont_get_system_normal_font,
2766 xsettings_get_system_normal_font): Declare.
2767
2768 * xfns.c (extern xlwmenu_default_font): Remove.
2769 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2770 to xlwmenu.c.
2771
2772 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2773 menu items in UTF-8.
2774
2775 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2776 (apply_systemfont_to_menu): New function.
2777 (set_frame_menubar, create_and_show_popup_menu): Call
2778 apply_systemfont_to_menu.
2779
7fc874c4
J
27802010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2781
2782 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2783 FRAME_LINE_TO_PIXEL_Y.
2784
2785 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2786 pixelwidth/height.
2787
863bf481
DN
27882010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2789
5e5a3b92
DN
2790 Simplify code for HP machines.
2791 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2792 for GNU_LINUX, not needed.
2793 (UNEXEC, NEED_BSDTTY): Move definitions...
2794 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2795
863bf481
DN
2796 * m/iris4d.h (UNEXEC): Move definition ...
2797 * s/irix6-5.h (UNEXEC): ... here.
2798
3e6bec3b
JD
27992010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2800
2801 * xfns.c (set_machine_and_pid_properties): New function.
2802 (Fx_create_frame): Call set_machine_and_pid_properties.
2803
2912322b
SM
28042010-04-03 Eli Zaretskii <eliz@gnu.org>
2805
1502b819
EZ
2806 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2807 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2808 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2809
2912322b
SM
2810 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2811 in this function. (Bug#5703)
2812
28132010-04-03 Chong Yidong <cyd@stupidchicken.com>
2814
2815 * nsterm.h: Fix last change.
2816
c435b432
DN
28172010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2818
a568f507
DN
2819 * m/intel386.h (NO_REMAP): Move definition ...
2820 * s/msdos.h (NO_REMAP): ... here.
2821
4cd9f6c2
DN
2822 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2823
c435b432
DN
2824 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2825 used on those platforms.
2826
42a2c622
DN
28272010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2828
2829 Remove extern errno declarations.
2830 * xterm.c:
2831 * xrdb.c:
2832 * w32term.c:
2833 * unexec.c:
2834 * unexaix.c:
2835 * sysdep.c:
2836 * process.c:
2837 * lread.c:
2838 * keyboard.c:
2839 * floatfns.c:
2840 * filelock.c:
2841 * fileio.c:
2842 * emacs.c (main):
2843 * ecrt0.c:
2844 * dispnew.c:
2845 * callproc.c:
2846 * buffer.c: Remove errno extern declarations.
2847 * s/netbsd.h (NEED_ERRNO): Remove.
2848
8224f93d
DN
28492010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2850
2851 Remove all uses of LIBX11_SYSTEM.
2852 * Makefile.in (LIBX11_SYSTEM): Remove.
2853 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2854 instead.
2855
814062c7
EZ
28562010-04-01 Eli Zaretskii <eliz@gnu.org>
2857
ed68db4d
EZ
2858 Remove support for DJGPP v1.x (bug#5813).
2859
2860 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2861 * s/msdos.h:
2862 * unexec.c (make_hdr, copy_text_and_data):
2863 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2864 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2865 (IT_set_terminal_modes, __write, _rename, gethostname)
2866 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2867 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2868 the value of __DJGPP__.
ed68db4d
EZ
2869 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2870 compatibility code.
8224f93d
DN
2871 * lread.c:
2872 * gmalloc.c (memalign):
2873 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2874 * emacs.c (main):
2875 * dosfns.c (init_dosfns):
ed68db4d
EZ
2876 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2877
52f4d8d5
EZ
28782010-04-01 Eli Zaretskii <eliz@gnu.org>
2879
814062c7
EZ
2880 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2881 string with `cursor' property comes from an `after-string'
2882 overlay. (Bug#5816)
2883
0dc2e11d
GM
28842010-04-01 Glenn Morris <rgm@gnu.org>
2885
2886 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2887 Define as Makefile variables.
2888 (LIBX): Use above variables rather than directly using autoconf.
2889
1d29df59
DN
28902010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2891
2892 Clean up BSD_SYSTEM use.
2893 * xterm.c:
2894 * process.c:
2895 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2896 for including <sys/ioctl.h>.
2897 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2898 code is only used for MSDOS.
2899
1546c559
JL
29002010-03-31 Juri Linkov <juri@jurta.org>
2901
2902 * image.c: Add `Qextension_data'.
2903 (syms_of_image): Initialize and staticpro `Qextension_data'.
2904 (Fimage_metadata): Rename from `Fimage_extension_data'.
2905 (gif_load): Put GIF extension data to the property
2906 `Qextension_data'.
2907
6521c534
CY
29082010-03-31 Chong Yidong <cyd@stupidchicken.com>
2909
2910 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2911 * nsterm.h: Fix prototype.
2912
52c30783
EZ
29132010-03-31 Eli Zaretskii <eliz@gnu.org>
2914
2915 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2916 trailing whitespace in right-to-left rows.
2917
855a0da7
SM
29182010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2919
2920 Get rid of the direct_output optimizations.
2921 * keyboard.c (nonundocount): Remove extern declaration.
2922 (command_loop_1): Remove brittle optimisation for cheap and
2923 common operations.
2924 * xdisp.c (redisplay_internal): Don't bother checking
2925 redisplay_performed_directly_p any more.
2926 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2927 any more.
2928 * dispnew.c (redisplay_performed_directly_p)
2929 (direct_output_for_insert, direct_output_forward_char):
2930 * dispextern.h (redisplay_performed_directly_p)
2931 (direct_output_for_insert, direct_output_forward_char): Remove.
2932 * cmds.c (nonundocount): Make it static.
2933
85738751 29342010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2935
2936 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2937
85738751 29382010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2939
2940 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2941 invisible (Bug#5766).
2942
85738751 29432010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2944
855a0da7
SM
2945 * xdisp.c (x_consider_frame_title, update_window_cursor):
2946 Remove HAVE_NS conditionals.
194d44e7 2947 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2948
2949 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2950 filename for the title.
2951 (ns_set_doc_edited): Do nothing if the selected window is a
2952 minibuffer window.
2953
2954 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2955 ns_set_doc_edited.
2956
2957 * nsterm.m: Remove unneeded prototype.
2958
85738751 29592010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2960
2961 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2962 in the DOC file. (Bug#5336)
2963
85738751 29642010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2965
2966 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2967
75d1428c
SM
29682010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2969
2970 * window.c (keys_of_window): Remove redundant/overridden bindings.
2971
82043cfb
EZ
29722010-03-30 Eli Zaretskii <eliz@gnu.org>
2973
2974 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2975 Restore original behavior when the iterator is not bidi_p.
2976
b5dd0ae7
DN
29772010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2978
2979 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2980
bd924a5d
EZ
29812010-03-30 Eli Zaretskii <eliz@gnu.org>
2982
2983 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2984 are outside the range of cached character positions.
2985
3580374b
JB
29862010-03-30 Juanma Barranquero <lekktu@gmail.com>
2987
2988 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2989
a7b02820
EZ
29902010-03-30 Eli Zaretskii <eliz@gnu.org>
2991
2992 Initial support for bidirectional editing.
2993
2994 * Makefile.in (obj): Include bidi.o.
2995 (bidi.o): New target.
2996
2997 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2998 ($(BLD)/bidi.$(O)): New target.
2999
3000 * bidi.c: New file.
3001
3002 * buffer.h (struct buffer): New members bidi_display_reordering
3003 and bidi_paragraph_direction.
3004
3005 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3006 and bidi_paragraph_direction.
3007 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3008 and bidi-paragraph-direction.
3009 (Fbuffer_swap_text): Swap the values of
3010 bidi_display_reordering and bidi_paragraph_direction.
3011
3012 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3013 (bidi_type_t, bidi_dir_t): New types.
3014 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3015 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3016 prev_stop, base_level_stop, and eol_pos.
3017 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3018 (IT_STACK_SIZE): Enlarge to 5.
3019 (struct glyph_row): New member reversed_p.
3020 <string_buffer_position>: Update prototype.
3021 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3022 glyph_row if bidi_it.paragraph_dir == R2L.
3023 (struct glyph): New members resolved_level and bidi_type.
3024
3025 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3026 processing or buffer's direction is right-to-left.
3027 (prepare_desired_row): Preserve the reversed_p flag.
3028 (row_equal_p): Compare the reversed_p attributes as well.
3029
3030 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3031 bidi_init_it and set it->paragraph_embedding from the current
3032 buffer's value of bidi_paragraph_direction.
3033 (reseat_1): Initialize bidi_it.first_elt.
3034 (set_iterator_to_next, next_element_from_buffer): Use the value of
3035 paragraph_embedding to determine the paragraph direction.
3036 (set_iterator_to_next): Under bidi reordering, call
3037 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3038 new_paragraph flag is set in the bidi iterator.
3039 (next_element_from_buffer): If bidi_it.first_elt is set,
3040 initialize paragraph direction and find the first character to
3041 display in the visual order. If reseated to a middle of a line,
3042 prime the bidi iterator starting at the line's beginning. Handle
3043 the situation where we overstepped stop_charpos due to
3044 non-linearity of the bidi iteration. Likewise for when we back up
3045 beyond the previous stop_charpos. When moving across stop_charpos,
3046 record it in prev_stop.
3047 (display_line): Set row->end and it->start for the next row to the
3048 next character in logical order. Always extend reversed_p rows to
3049 the end of line, even if they end at ZV. Copy the reversed_p flag
3050 to the next glyph row. Keep calling set_cursor_from_row for
3051 bidi-reordered rows even if we already have a possible candidate
3052 for cursor position. Set row_end after all the row's glyphs have
3053 been produced, by looping over the glyphs. Record the position
3054 after EOL in it->eol_pos, and use it to set end_pos of the last
3055 row produced for a continued line.
3056 <Qright_to_left, Qleft_to_right>: New variables.
3057 (syms_of_xdisp): Initialize and staticpro them.
3058 (string_buffer_position_lim): New function.
3059 (string_buffer_position): Most of code moved to
3060 string_buffer_position_lim. Last argument and return value are
3061 now EMACS_INT; all callers changed.
3062 (set_cursor_from_row): Rewritten to support bidirectional text and
3063 reversed glyph rows.
3064 (text_outside_line_unchanged_p, try_window_id): Disable
3065 optimizations if we are reordering bidirectional text and the
3066 paragraph direction can be affected by the change.
3067 (append_glyph, append_composite_glyph)
3068 (produce_image_glyph, append_stretch_glyph): Set the
3069 resolved_level and bidi_type members of each glyph.
3070 (append_glyph): If the glyph row is reversed, prepend the glyph
3071 rather than appending it.
3072 (handle_stop_backwards): New function.
3073 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3074 (reseat): call handle_stop_backwards to recompute prev_stop and
3075 base_level_stop for the new position.
3076 (handle_invisible_prop): Under bidi iteration, skip invisible text
3077 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3078 paragraph direction. Update IT->prev_stop after skipping
3079 invisible text.
3080 (move_it_in_display_line_to): New variables prev_method
3081 and prev_pos. Compare for strict equality in
3082 BUFFER_POS_REACHED_P.
3083 (try_cursor_movement): Examine all the candidate rows that occlude
3084 point, to return the best match. If rows are bidi-reordered
3085 and point moved backwards, back up to the row that is not a
3086 continuation line, and start looking for a suitable row from
3087 there.
3088
3089 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3090 rather than appending, if the glyph_row's reversed_p flag is set.
3091 Set the resolved_level and bidi_type members of each glyph.
3092
3093 * .gdbinit (pbiditype): New command.
3094 (pgx): Use it to display bidi level and type of the glyph.
3095 (pitx): Display some bidi information about the iterator.
3096 (prowlims, pmtxrows): New commands.
3097
32a8894e
DN
30982010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3099
3100 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3101 * s/usg5-4.h (LIBS_DEBUG):
3102 * s/irix6-5.h (C_DEBUG_SWITCH):
3103 * s/gnu-linux.h (LIBS_DEBUG):
3104 * s/darwin.h (LIBS_DEBUG):
3105 * s/bsd-common.h (LIBS_DEBUG):
3106 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3107 * m/iris4d.h (LIBS_DEBUG):
3108 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3109
3110 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3111 (LIBS_DEBUG): Remove definition.
3112
649dbf36
CY
31132010-03-27 Chong Yidong <cyd@stupidchicken.com>
3114
3115 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3116 Windows.
3117
cad4261f
YM
31182010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3119
3120 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3121 `connect' (Bug#5723).
3122
cd591dbc
HE
31232010-03-25 Helmut Eller <eller.helmut@gmail.com>
3124
3125 * process.c (Fmake_network_process): Call `select' for interrupted
3126 `connect' rather than creating new socket (Bug#5173).
3127
e867cb5d 31282010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3129
3130 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3131
3132 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3133
3134 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3135
e867cb5d 31362010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3137
3138 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3139 XLoadQueryFont.
3140
e867cb5d 31412010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3142
3143 * coding.c (decode_coding_ccl): Fix previous change for the
3144 multibyte case.
fb608df3
KH
3145 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3146 case that the output buffer is fullfilled.
3147 (encode_coding): Setup ccl program here.
fbdc1721 3148
5845f0ed
DN
31492010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3150
814fb708
DN
3151 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3152
5845f0ed
DN
3153 Simplify LIBS_MACHINE definitions.
3154 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3155 * m/iris4d.h (LIBS_MACHINE): Likewise.
3156 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3157 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3158 * s/netbsd.h: Remove commented out code.
5845f0ed 3159
b7064064
DN
31602010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3161
df7734b2
DN
3162 Remove dead code dealing with POSIX_SIGNALS.
3163 * atimer.c (set_alarm): Remove dead code, all USG systems define
3164 POSIX_SIGNALS.
3165 * data.c (arith_error): Likewise.
3166 * keyboard.c (input_available_signal, handle_user_signal)
3167 (interrupt_signal): Likewise.
3168 * process.c (sigchld_handler): Likewise.
3169 (create_process): Remove if 0 code. Remove HPUX conditional when
3170 !defined (POSIX_SIGNALS), it cannot be true.
3171 * syssignal.h: Remove USG5_4 and USG conditionals when
3172 !POSIX_SIGNALS, they cannot be true.
3173
b7064064
DN
3174 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3175 NO_SOCK_SIGIO, not used anymore.
3176
55da5ee3
DN
31772010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3178
0be96e3a
DN
3179 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3180 support vax on BSDs.
3181
55da5ee3
DN
3182 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3183 * s/aix4-2.h (ORDINARY_LINK): ... here.
3184
c0282183
AS
31852010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3186
82c3d67a
AS
3187 * Makefile.in (abs_builddir): Define.
3188 (bootstrap_exe): Use it.
3189 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3190
3613edce
SM
31912010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3192
3193 * Makefile.in (bootstrap_exe): Use an absolute name.
3194
7f110ddc
DN
31952010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3196
22e87574
DN
3197 Remove support for old GNU/Linux using libc version 5.
3198 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3199 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3200
05a670e6
DN
3201 Consolidate redundant definitions in s/bsd-common.h.
3202 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3203 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3204 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3205 doing it in all files that include this one.
3206 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3207 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3208 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3209 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3210 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3211 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3212 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3213 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3214 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3215
2968f561
DN
3216 Consolidate redundant definitions.
3217 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3218 it's undefined in all files that include this one.
3219 (POSIX_SIGNALS): Define here instead of doing it in all files that
3220 include this one.
3221 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3222 (POSIX_SIGNALS): Do not define.
3223 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3224 (POSIX_SIGNALS): Do not define.
3225 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3226 (POSIX_SIGNALS): Do not define.
3227
15d25dc0
DN
3228 Remove support for old UNIX System V systems.
3229 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3230 * s/usg-5-4-2.h: Remove.
3231
07e339e4
DN
3232 Remove support for Solaris on PPC and for old versions.
3233 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3234 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3235 that cancel each other.
3236 * s/sol2-3.h:
3237 * s/sol2-4.h:
3238 * s/sol2-5.h: Remove.
3239 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3240 (NO_REMAP): Remove, unused.
3241 (UNEXEC): Move definition ...
3242 * s/aix4-2.h (UNEXEC): ... here.
3243
7f110ddc
DN
3244 * s/openbsd.h: Remove support for non-ELF and for systems that do
3245 not support shared libraries.
3246 * s/netbsd.h:
3247 * s/freebsd.h: Likewise.
3248
605f35cd
DN
32492010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3250
3251 Remove non-working support for lynxos 3.0.
3252 * s/lynxos.h: Remove file.
3253
3254 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3255 COFF_BSD_SYMBOLS, nothing defines it anymore.
3256
aed71cf4
DN
32572010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3258
3259 Remove obsolete uses of HAVE_SHM.
3260 * emacs.c (standard_args):
3261 (Fdump_emacs):
3262 (syms_of_emacs): Remove code depending on HAVE_SHM.
3263
3264 * alloc.c: Remove HAVE_SHM dependent definition.
3265
3266 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3267
aded53ff
GM
32682010-03-18 Glenn Morris <rgm@gnu.org>
3269
17284745
GM
3270 * emacs.c (USAGE4): Hard-code bug address.
3271 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3272 (bug_reporting_address): Remove.
3273 (main): Don't call bug_reporting_address.
3274
aded53ff
GM
3275 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3276 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3277
303500aa
CY
32782010-03-15 Chong Yidong <cyd@stupidchicken.com>
3279
3280 * xfns.c (Fx_create_frame):
3281 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3282 on left.
3283
cef3058f
CY
32842010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3285
3286 * editfns.c (Fformat): Account for string precision when computing
3287 field width (Bug#5710).
3288
a647d59d
CY
32892010-03-12 Chong Yidong <cyd@stupidchicken.com>
3290
4fa42018
CY
3291 * xfns.c (Fx_create_frame): Set default to Qright.
3292
a647d59d
CY
3293 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3294 all window systems.
3295
6da23aaa
EZ
32962010-03-12 Eli Zaretskii <eliz@gnu.org>
3297
a96f6398 3298 These changes remove termcap.c from the build on Posix platforms.
83d02def 3299 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3300 (MSDOS_OBJ): ...to here.
3301 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3302 now identical to when LIBS_TERMCAP is defined.
3303
3304 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3305
3306 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3307
a96f6398 3308 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3309
288f9fc0
CY
33102010-03-10 Chong Yidong <cyd@stupidchicken.com>
3311
3312 * Branch for 23.2.
3313
d48cd3f4
SM
33142010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3315
3316 Cleanup setup of gl_state in various parts of the code.
3317 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3318 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3319 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3320 (skip_chars):
3321 * regex.c (regex_compile): Use it.
3322 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3323 it's now set in regex_compile when/if we need it.
3324
618db430
SM
33252010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3326
c0335e02
SM
3327 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3328 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3329 (QUIT): Use it to consolidate code and remove redundancy.
3330 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3331
254c06a8
SM
3332 * regex.c (regex_compile): Setup gl_state as well.
3333
618db430
SM
3334 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3335 (in_classes): Use CONSP before XCAR/XCDR.
3336
233f0c9f
CY
33372010-03-03 Chong Yidong <cyd@stupidchicken.com>
3338
3339 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3340 definitions, so that keyboard macros are correctly handled
3341 (Bug#5481).
3342
75f80e63
EZ
33432010-03-02 Eli Zaretskii <eliz@gnu.org>
3344
3345 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3346 text that could be relocated inside the call to emacs_mule_char.
3347 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3348 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3349
dcfb9bc4
KH
33502010-03-02 Kenichi Handa <handa@m17n.org>
3351
fc9a17bc
KH
3352 * character.c (parse_str_as_multibyte): Fix handling of the
3353 multibyte form of raw-bytes.
3354 (str_as_multibyte): Likewise.
3355
dcfb9bc4
KH
3356 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3357 form of raw-bytes.
3358
412c01b6
CY
33592010-02-28 Chong Yidong <cyd@stupidchicken.com>
3360
3361 * charset.c (load_charset_map_from_file)
3362 (load_charset_map_from_vector): Zero out allocated
3363 charset_map_entries before using them.
3364
df7e1ea0
AS
33652010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3366
3367 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3368
fe69a722
CY
33692010-02-27 Chong Yidong <cyd@stupidchicken.com>
3370
4ed28cf4
CY
3371 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3372 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3373
7379cfce
KH
33742010-02-26 Kenichi Handa <handa@m17n.org>
3375
f88cc4d6
KH
3376 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3377
7379cfce
KH
3378 * xdisp.c (reseat_to_string): Fix previous change.
3379
cf2fdcfb
CY
33802010-02-26 David Reitter <david.reitter@gmail.com>
3381
3382 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3383 Lisp_Object (Bug#4736).
3384
cc6c7c75
KH
33852010-02-25 Kenichi Handa <handa@m17n.org>
3386
3387 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3388
32e737d7
JD
33892010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3390
3391 * xterm.c (XTflash): Move declarations before statements.
3392
3393 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3394 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3395 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3396 (xg_create_tool_bar): Remove unused variables.
3397 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3398 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3399
676cae9f
CY
34002010-02-21 Chong Yidong <cyd@stupidchicken.com>
3401
3402 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3403
886cc2b8
SM
34042010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3405
3406 * term.c (fatal): Add a final \n if needed (bug#5596).
3407
ddb2d8e2
CY
34082010-02-18 Chong Yidong <cyd@stupidchicken.com>
3409
3410 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3411
2a4f8d3d
GM
34122010-02-18 Glenn Morris <rgm@gnu.org>
3413
3414 * callint.c (Finteractive): Doc fix.
3415
ebaf11b6
KH
34162010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3417
886cc2b8
SM
3418 * coding.c (record_conversion_result):
3419 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3420 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3421 memory allocation error.
3422
d0396581
KH
34232010-02-17 Kenichi Handa <handa@m17n.org>
3424
886cc2b8
SM
3425 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3426 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3427 (decode_coding): Setup ccl program here. Keep looping when the
3428 decoder stopped because the output buffer is
3429 fullfilled (bug#5534).
3430
3431 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3432
98599f74
JD
34332010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3434
471e4f04 3435 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3436 bug #5571.
886cc2b8 3437 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3438 overdrawn.
98599f74 3439
182659ae
JD
34402010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3441
3442 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3443 doing_interact here.
3444 (ice_connection_closed): New function.
3445 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3446 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3447 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3448 returns I/O error.
3449 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3450 bug #5512.
3451
9be32c4e 34522010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3453
3454 * nsfont.m (nsfont_open): The system's value for the font descent
3455 is negative, so round it down to avoid clipping.
3456
a2f3eb19
CY
34572010-02-06 Chong Yidong <cyd@stupidchicken.com>
3458
3459 * charset.c (load_charset_map_from_file)
3460 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3461 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3462
3088147c
CY
34632010-02-05 Chong Yidong <cyd@stupidchicken.com>
3464
3465 * charset.c (load_charset_map_from_file): Allocate large
3466 charset_map_entries structure on the heap rather than the stack.
3467 (Bug#5526).
3468
b57d9029
KH
34692010-01-31 Kenichi Handa <handa@m17n.org>
3470
3471 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3472 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3473
c67d885b
CY
34742010-01-31 Chong Yidong <cyd@stupidchicken.com>
3475
3476 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3477 <deactivated@gmail.com> (Bug#3605).
3478
8fab2362
CY
34792010-01-31 David De La Harpe Golden <david@harpegolden.net>
3480
3481 * fileio.c (Frename_file): Correctly rename symlinks to
3482 directories (Bug#5496).
3483
cb2a62f2
CY
34842010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3485
3486 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3487
944c7a26
AS
34882010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3489
3490 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3491
c024ac08
CY
34922010-01-29 Chong Yidong <cyd@stupidchicken.com>
3493
3494 * frame.c (DEFAULT_ROWS): Change default to 35.
3495
3496 * xfns.c (x_default_font_parameter): Change default XFT font to
3497 monospace-10 (Bug#3643).
3498
af93af83
EZ
34992010-01-29 Eli Zaretskii <eliz@gnu.org>
3500
3501 * w32inevt.c (key_event): Remove unnecessary comparison of
3502 event->uChar.AsciiChar with 128.
3503
ca0eb708
CY
35042010-01-28 Chong Yidong <cyd@stupidchicken.com>
3505
b242dbfc
CY
3506 * fileio.c (Frename_file): Fix last change (Bug#5487).
3507
ca0eb708
CY
3508 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3509
3510 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3511
45d45af5
JD
35122010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3513
3514 * xfns.c (Fx_create_frame): Remove window size matching code from
3515 2010-01-15.
a73f9c9d 3516 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3517
7e233730
JR
35182010-01-27 Jason Rumney <jasonr@gnu.org>
3519
3520 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3521 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3522
86e893e3
KH
35232010-01-27 Kenichi Handa <handa@m17n.org>
3524
3525 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3526 pattern string (Bug#4209).
86e893e3 3527
8719abec
CY
35282010-01-27 David De La Harpe Golden <david@harpegolden.net>
3529
3530 * fileio.c (Frename_file): Call copy-directory and
3531 delete-directory for directories, in order to handle cross-device
3532 renaming (Bug#3353).
3533
844794c8
JD
35342010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3535
aa3e13b5 3536 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3537 sizes 24 and 10. Bug #3643.
844794c8 3538
bd4b5750
SM
35392010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3540
8dc1adf6 3541 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3542 * keymap.c (shadow_lookup): Add `remap' arg.
3543 (describe_map, describe_vector): Update calls to shadow_lookup.
3544 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3545 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3546 perform remapping during shadow_lookup check of remapped_sequences.
3547
285d07e2
CY
35482010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3549
3550 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3551 png_check_sig, which has been removed in libpng 1.4.
3552
c6d09b8d
CY
35532010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3554
3555 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3556 lacks this header file).
3557
3d782998
YM
35582010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3559
3560 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3561 as in Emacs 22.
3562
2aff7c53
YM
35632010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3564
3565 * lisp.h (make_pure_string): String pointer arg now points to const.
3566
3567 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3568 args now point to const.
3569
74327f7a
EZ
35702010-01-22 Eli Zaretskii <eliz@gnu.org>
3571
3572 * lread.c (Fload): Don't treat files without .elc extension as
3573 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3574 them. (bug#5303)
3575
4d1e6632
KH
35762010-01-20 Kenichi Handa <handa@m17n.org>
3577
3578 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3579 treat the source as actual byte sequence.
3580
1fdede8f
AM
35812010-01-19 Alan Mackenzie <acm@muc.de>
3582
3583 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3584 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3585 `signal_after_change_p' to `coherent_change_p', and make the
3586 invocation of `modify_region' conditional on it.
3587
67477f30
JD
35882010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3589
3590 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3591 for debug purpose.
3592 (syms_of_xsettings): Declare xft-settings.
3593
244b023e
CY
35942010-01-18 Chong Yidong <cyd@stupidchicken.com>
3595
3596 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3597
617364fe
CY
35982010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3599
3600 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3601
4fe22cdf
CY
36022010-01-16 Chong Yidong <cyd@stupidchicken.com>
3603
3604 * emacs.c (standard_args): Adjust arg priorities to reflect how
3605 they are processed in startup.el.
3606
e118d2be
AS
36072010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3608
3609 * Makefile.in (lisp, shortlisp): Update.
3610
523ae620
SM
36112010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3612
3613 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3614 code, link the new kboard into all_kboard before running Lisp code,
3615 and protect the new terminal with GCPRO (Bug#5365).
3616 (x_term_init): Remove unused var `atom'.
3617 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3618
f0d13888
JD
36192010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3620
3621 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3622 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3623 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3624 this. Bug #3643.
f0d13888 3625
cc320f07
KH
36262010-01-15 Kenichi Handa <handa@m17n.org>
3627
3628 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3629
7ffdf101
CY
36302010-01-15 Chong Yidong <cyd@stupidchicken.com>
3631
3632 * nsterm.m (Qnone): Define.
3633
3634 * nsfns.m (Qnone): Move definition to nsterm.m.
3635
d12bd917
KH
36362010-01-14 Kenichi Handa <handa@m17n.org>
3637
3638 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3639 systems.
3640
d9a7c140
KH
36412010-01-14 Kenichi Handa <handa@m17n.org>
3642
3643 Make auto-composition work on all buffers even if they are
3644 fundamental mode.
3645
3646 * composite.c (Vauto_composition_mode): New variable.
3647 (composition_compute_stop_pos): Check Vauto_composition_mode
3648 instead of Vauto_composition_function.
3649 (composition_adjust_point, Ffind_composition_internal): Likewise.
3650 (syms_of_composite): Declare Lisp variable
3651 "auto-composition-mode" here.
3652
63286bb2
CY
36532010-01-13 Chong Yidong <cyd@stupidchicken.com>
3654
3655 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3656 during call to vendor-specific-keysyms (Bug#5365).
3657
c2623ee7
YM
36582010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3659
3660 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3661 Call SIGNAL_THREAD_CHECK (Bug#5333).
3662
3663 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3664 Call SIGNAL_THREAD_CHECK.
3665
0b5397c2
SM
36662010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3667
3668 Try to fix bug#5314. This is probably not the final word, tho.
3669 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3670 recent-auto-save-p as a side-effect.
3671 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3672 * buffer.c (Fkill_buffer, reset_buffer):
3673 * editfns.c (Fsubst_char_in_region):
3674 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3675 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3676
dc954cb2
KH
36772010-01-13 Kenichi Handa <handa@m17n.org>
3678
3679 Display buffer name, etc. in mode line by composing correctly.
3680
3681 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3682 STRING is not nil.
0b5397c2 3683 (display_mode_element): Adjust for the change of
dc954cb2
KH
3684 decode_mode_spec and display_line.
3685 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3686 (display_string): Handle the case that STRING is non-null and
3687 LISP_STRING is not nil.
3688
0b5397c2
SM
3689 * xterm.c (x_draw_composite_glyph_string_foreground):
3690 Pay attention to s->face->overstrike.
dc954cb2
KH
3691
3692 * composite.c (composition_reseat_it): Don't check PT if STRING is
3693 non nil.
3694
4a00eaca
YM
36952010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3696
3697 * keyboard.c (read_char): Don't apply previous change when current
3698 buffer is unchanged by command execution.
3699
60abb287
JD
37002010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3701
3702 * keyboard.c (read_char): Return after executing from special map.
3703
893db5bc
GM
37042010-01-12 Glenn Morris <rgm@gnu.org>
3705
3706 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3707 bug-gnu-emacs rather than emacs-pretest-bug.
3708
4d03ece0
CY
37092010-01-11 Chong Yidong <cyd@stupidchicken.com>
3710
3711 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3712 initializing the Lisp variables that depend on them.
3713
1df47e38
YM
37142010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3715
3716 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3717 Clear areas that will not be updated after change of menu bar lines.
3718 Clear the menu bar window's current matrix when the window gets empty.
3719
2f1c6384
CY
37202010-01-09 Chong Yidong <cyd@stupidchicken.com>
3721
e398c61c
CY
3722 * intervals.h, textprop.c (extend_property_ranges): Return value
3723 and args changed. Discard properties that begin at or after the
3724 new end (Bug#5306).
3725
3726 * editfns.c (Fformat): Caller changed.
3727
e5a29a10
CY
3728 * nsterm.m (ns_set_default_prefs): Delete function.
3729 (syms_of_nsterm): Initialize ns_command_modifier,
3730 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3731 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3732
2f1c6384
CY
3733 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3734 position (Bug#4040).
3735
d427a9fa
EZ
37362010-01-09 Eli Zaretskii <eliz@gnu.org>
3737
3738 * editfns.c (Ffloat_time): Doc fix.
3739
21b9df2f
JD
37402010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3741
3742 * xfns.c (Fx_create_frame): Don't create frame larger than display
3743 by default bug#3643.
3744
4b00d3b1
YM
37452010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3746
3747 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3748 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3749 windows above internal border.
3750
3751 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3752 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3753 windows above internal border.
3754
3755 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3756 tool bar windows specially.
3757
3758 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3759
3760 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3761 specially.
3762 (XTflash): Take account of menu bar height.
3763
3764 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3765 specially.
3766
5075d853
JD
37672010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3768
ac146f82 3769 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3770 also be true before we can return early (bug #5339).
3771
474217c8
CY
37722010-01-06 David Reitter <david.reitter@gmail.com>
3773
3774 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3775 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3776 (Bug#3233).
3777
c0e6d47d
JD
37782010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3779
d0cf45b7
JD
3780 * font.c (font_open_entity): Enable chache and call cached_font_ok
3781 for the driver if defined.
3782 (QCuser_spec): New symbol.
3783 (font_spec_from_name): Save name as user-spec.
3784 (font_load_for_lface): Keep user-spec instead of name.
3785 (font_open_by_name): Save name as user-spec.
3786 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3787 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3788
3789 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3790 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3791 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3792
3793 * font.h (struct font_driver): Add cached_font_ok.
3794
c0e6d47d
JD
3795 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3796
7c583cd8
JD
37972010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3798
3799 * xterm.c (x_new_font): Move code for setting rows/cols before
3800 resizing ...
ac146f82 3801 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3802
3803 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3804 (xg_frame_resized, xg_frame_set_char_size):
3805 Call xg_clear_under_internal_border.
7c583cd8 3806 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3807
03f77f0a
CY
38082010-01-05 Chong Yidong <cyd@stupidchicken.com>
3809
3810 * keyboard.c (read_key_sequence): Catch keyboard switch after
3811 making a new tty frame (Bug#5095).
3812
2a1ef5be
KH
38132010-01-05 Kenichi Handa <handa@m17n.org>
3814
3815 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3816
e3eb1dae
SM
38172010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3818
3819 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3820 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3821 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3822
777013f2
MA
38232010-01-03 Michael Albinus <michael.albinus@gmx.de>
3824
3825 * dbusbind.c (xd_add_watch): Improve debug message.
3826 (xd_remove_watch): Improve debug message. If DATA is the session
3827 bus, unset D-Bus session environment.
3828 (Fdbus_init_bus): Pass the bus as argument to
3829 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3830
8932b1c2
CY
38312010-01-01 Chong Yidong <cyd@stupidchicken.com>
3832
87231e2c
CY
3833 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3834
4801c5fa
CY
3835 * lread.c (syms_of_lread): Make it clearer that these are the
3836 names of loaded files (Bug#5068).
3837
8932b1c2
CY
3838 * eval.c (run_hook_with_args): Handle the case where the global
3839 value has the obsolete single-function form (Bug#5026).
3840
11e3c684
CY
38412009-12-27 Chong Yidong <cyd@stupidchicken.com>
3842
3843 * minibuf.c (Fall_completions): Minor optimization.
3844
5b28ce35
EZ
38452009-12-26 Eli Zaretskii <eliz@gnu.org>
3846
5ce6e4f4
JB
3847 * .gdbinit (pgx): Fix display of composite glyphs.
3848 Display cmp.from and cmp.to as well.
3849 (pitx): Fix last change.
5b28ce35 3850
bcffff46
KH
38512009-12-25 Kenichi Handa <handa@m17n.org>
3852
3853 * composite.h (composition_adjust_point): Update prototype.
3854
3855 * composite.c (composition_reseat_it): Don't make a composition
3856 spanning over point.
3857 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3858 composable characters.
3859 (composition_adjust_point): New arg NEW_PT. Callers changed.
3860
3861 * keyboard.c (command_loop_1): Force redisplay if the last point
3862 was within a composition.
3863 (adjust_point_for_property): Don't adjust point for automatic
3864 composition when called after buffer modification.
3865
3f670e9a
EZ
38662009-12-19 Eli Zaretskii <eliz@gnu.org>
3867
5ce6e4f4
JB
3868 * .gdbinit (pitx): Don't use enum names, use their values.
3869 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3870 (pgx): Don't use enum names, use their values.
3871 (pitmethod): New helper command.
3872 (pitx): Use it to display iteration method.
3873 (pgrowit): New command.
3874
ad903955
EZ
3875 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3876
3f670e9a
EZ
3877 Update dependencies in Makefile.in.
3878
3879 * Makefile.in (alloc.o): Depend on termhooks.h.
3880 (atimer.o): Depend on blockinput.h.
3881 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3882 and frame.h.
3883 (callint.o): Depend on systime.h, coding.h, and composite.h.
3884 (callproc.o): Depend on buffer.h.
3885 (casefiddle.o): Don't depend on charset.h.
3886 (casetab.o): Depend on character.h.
3887 (ccl.o): Depend on composite.h.
3888 (chartab.o): Depend on ccl.h.
3889 (cm.o): Depend on dispextern.h.
3890 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3891 (coding.o): Don't depend on $(INTERVALS_H).
3892 (composite.o): Don't depend on dispextern.h explicitly (it's in
3893 $(INTERVALS_H)). Depend on ccl.h.
3894 (data.o): Depend on systime.h, coding.h, composite.h,
3895 dispextern.h, font.h, and ccl.h.
3896 (dired.o): Depend on composite.h.
3897 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3898 composite.h (it's in $(INTERVALS_H)).
3899 (doc.o): Depend on systime.h, coding.h, and composite.h.
3900 (editfns.o): Don't depend explicitly on dispextern.h.
3901 (emacs.o): Depend on frame.h and coding.h.
3902 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3903 (fileio.o): Depend on frame.h and commands.h. Don't depend
3904 explicitly on dispextern.h.
3905 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3906 composite.h.
3907 (fns.o): Don't depend on termhooks.h.
3908 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3909 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3910 coding.h, $(INTERVALS_H), window.h, xterm.h.
3911 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3912 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3913 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3914 fontset.h, ccl.h, and ftfont.h.
3915 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3916 (gtkutil.o): Depend on dispextern.h and composite.h.
3917 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3918 termhooks.h, and ccl.h.
3919 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3920 (intervals.o): Depend on systime.h and coding.h.
3921 (keyboard.o): Depend on composite.h and coding.h.
3922 (keymap.o): Depend on coding.h and frame.h.
3923 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3924 (macros.o): Depend on systime.h, coding.h, and composite.h.
3925 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3926 and atimer.h.
3927 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3928 dispextern.h explicitly.
0b5397c2
SM
3929 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3930 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3931 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3932 (regex.o): Don't depend on charset.h.
3933 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3934 (search.o): Don't depend explicitly on composite.h.
3935 (sound.o): Depend on atimer.h and systime.h.
3936 (syntax.o): Don't depend explicitly on composite.h.
3937 (sysdep.o): Depend on coding.h and composite.h.
3938 (term.o): Depend on xterm.h and buffer.h.
3939 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3940 (textprop.o): Don't depend on dispextern.h explicitly.
3941 (undo.o): Depend on dispextern.h.
3942 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3943 dispextern.h and composite.h explicitly.
3944 (xdisp.o): Depend on ccl.h.
3945 (xfaces.o): Depend on coding.h and ccl.h.
3946 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3947 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3948 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3949 ftfont.h.
3950 (xgselect.o): New dependency.
3951 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3952 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3953 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3954 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3955 (xsmfns.o): Depend on frame.h and dispextern.h.
3956 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3957 sysselect.h.
3958
7a6f7fea
AS
39592009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3960
3961 * font.c (Fclear_font_cache): Pass correct cache argument to
3962 font_clear_cache.
3963
f4c21026
AS
39642009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3965
3966 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3967 twice.
3968
f7ab0997
CY
39692009-12-15 Chong Yidong <cyd@stupidchicken.com>
3970
3971 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3972 calling file-remote-p. Reported by Jim Meyering.
3973
fa8e045a
MA
39742009-12-15 Michael Albinus <michael.albinus@gmx.de>
3975
3976 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3977 avoid compiler warnings. (Bug #5217)
fa8e045a 3978
a63dba42
KH
39792009-12-14 Kenichi Handa <handa@m17n.org>
3980
3981 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3982 in 8-bit encoding.
3983
5ce6e4f4 39842009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3985
3986 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3987 tooltip windows.
3988
223e5fc6
JD
39892009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3990
36acb2a7
JD
3991 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3992 Xatom_net_window_type.
3993
3994 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3995 Xatom_net_window_type.
3996
b8f00677
JD
3997 * xterm.c (my_log_handler): New function.
3998 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3999 so we can filter out buggy messages. (Bug #5120).
b8f00677 4000
e5f0bc9a
JD
4001 * xterm.c (xg_scroll_callback): Parameter list changed,
4002 use parameter GtkScrollType to determine scroll/line/page.
4003 Only allow dragging if a button < 4 is grabbed (bug #5177).
4004 (xg_end_scroll_callback): New function.
4005 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4006 xg_create_scroll_bar.
4007
4008 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4009 (scroll_end_callback): Remove.
4010 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4011 button-release-event. Replace value-changed event with change-value,
4012 bug #5177,
4013 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4014 bug #5177.
4015
4016 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4017 (xg_create_scroll_bar): Add GCallback end_callback.
4018
223e5fc6
JD
4019 * xftfont.c (QClcdfilter): New variable.
4020 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4021 (syms_of_xftfont): Initialize QClcdfilter.
4022
3c055b77
JD
40232009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4024
4025 * xsettings.c (struct xsettings): Add member seen.
4026 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4027 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4028 (apply_xft_settings): Only update Xft settings with what member seen
4029 indicates as new.
4030
05fe33ff
EZ
40312009-12-12 Eli Zaretskii <eliz@gnu.org>
4032
4033 * dispextern.h (struct text_pos): Use EMACS_INT;
4034 (struct glyph): Use EMACS_INT for charpos.
4035 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4036 region_beg_charpos, region_end_charpos,
4037 redisplay_end_trigger_charpos, and also for
4038 iterator_stack_entry.end_charpos and
4039 iterator_stack_entry.stop_charpos.
4040
e8d7886a
JD
40412009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4042
5ce6e4f4 4043 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4044 (xg_create_scroll_bar): Call scroll_end_callback on button release
4045 event (bug #5177).
4046 (xg_event_is_for_scrollbar): != replaced with ==.
4047
d0db2ec8
KH
40482009-12-12 Kenichi Handa <handa@m17n.org>
4049
4050 * ftfont.c (struct ftfont_info): New member matrix.
4051 (ftfont_open): Setup xftfont_info->matrix.
4052 (MFLTFontFT): New member matrix.
4053 (FLOOR, CEIL, ROUND): New macros.
4054 (ftfont_get_metrics): Handle matrix transformation.
4055 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4056
4057 * xftfont.c (struct xftfont_info): New member matrix.
4058 (xftfont_open): Setup xftfont_info->matrix.
4059
40602009-12-10 Kenichi Handa <handa@m17n.org>
4061
4062 * xdisp.c (append_space_for_newline): Consider face-remapping.
4063
2cc7b62f
AS
40642009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4065
b87dd913
AS
4066 * xsettings.c: Include "keyboard.h".
4067
eba5eb94
AS
4068 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4069
2cc7b62f
AS
4070 Fix implicit function declarations.
4071 * cmds.c: Include "frame.h".
4072 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4073 * frame.h: Move declaration of delete_frame outside of
4074 HAVE_WINDOW_SYSTEM.
4075
a4ef73c8
CY
40762009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4077
4078 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4079
4080 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4081 GTK builds.
4082
944a300c
AS
40832009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4084
4085 * unexelf.c (unexec): Don't search for .data twice.
4086
022eef62
CY
40872009-12-05 Chong Yidong <cyd@stupidchicken.com>
4088
426ac949
CY
4089 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4090 if push failed.
4091 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4092 of push_display_prop (Bug#5000).
4093
022eef62
CY
4094 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4095 value of font_list_entities (Bug#5085).
4096
be95bee9
JB
40972009-12-04 Juanma Barranquero <lekktu@gmail.com>
4098
4099 Fix `string-to-number' to deal consistently with integers and floats.
4100 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4101 trailing characters, not just whitespace.
4102 (read1): Pass new arg 0 to keep old behavior.
4103 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4104 trailing chars, as it is already done for integers. Doc fixes.
4105 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4106
24c2d7ce
EZ
41072009-12-04 Eli Zaretskii <eliz@gnu.org>
4108
0b5397c2
SM
4109 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4110 Delete unused enumeration value.
24c2d7ce 4111
7e694795
EZ
41122009-12-03 Eli Zaretskii <eliz@gnu.org>
4113
4114 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4115
84b31826
SM
41162009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4117
4118 * process.c (Fmake_network_process): Fix up the tests for
4119 "connectionless socket", so they DTRT for seqpacket sockets as well.
4120
f00c449b
SM
41212009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4122
4123 * process.c (Qseqpacket): New symbol.
4124 (HAVE_SEQPACKET): New macro.
4125 (Fmake_network_process): Accept new :type `seqpacket'.
4126 (init_process): Add `seqpacket' feature when applicable.
4127 (syms_of_process): Initialize Qseqpacket.
4128
8096a0ff
YM
41292009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4130
4131 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4132 if entity is Qnil.
4133
3e0de07f
SM
41342009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4135
4136 * print.c (print_preprocess): Preprocess the key_and_value table of
4137 hashtables, even tho they're "hidden" (bug#5082).
4138
abeafb2a
JD
41392009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4140
4141 * frame.c (frame_make_pointer_invisible)
4142 (frame_make_pointer_visible): Declare f before statements.
4143
4bf47195
EZ
41442009-11-28 Eli Zaretskii <eliz@gnu.org>
4145
4146 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4147 omitted dependencies on lisp.h.
4148
c525b3f2
JD
41492009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4150
ece2d4ed
JD
4151 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4152 is NULL.
4153
4154 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4155
4156 * frame.c (frame_make_pointer_invisible)
3e0de07f 4157 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4158 frame.
4159
c525b3f2
JD
4160 * search.c (simple_search): Remove warning by making *p const.
4161
2f00e299
DN
41622009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4163
4164 * xdisp.c (power_letter): Remove duplicate const.
4165
084b049b
JD
41662009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4167
a1fadc6f
JD
4168 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4169
5ce6e4f4 4170 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4171 defaults (bug #5025).
4172
28259cac
SM
41732009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4174
4175 * insdel.c (adjust_markers_for_delete): Move it in the
4176 right direction! (bug#4803)
4177
e8e14166
YM
41782009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4179
4180 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4181
4182 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4183
86677b58
GM
41842009-11-24 Glenn Morris <rgm@gnu.org>
4185
4186 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4187
581e51e8
JD
41882009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4189
cfc86c7a
JD
4190 * Makefile.in: Must create deps for ecrt0.o in its rule.
4191
581e51e8
JD
4192 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4193 because that is what Gtk+ font dialog understands.
4194
4195 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4196 of Fcopy_sequence.
4197 (font_open_by_name): Put name given into QCname for font-object returned.
4198
4199 * frame.c (x_set_font): Save original font name as frame parameter
4200 font-parameter.
4201
4202 * xsettings.c (set_default_xft_settings): New function.
4203 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4204 is found.
4205
8b264ecb
AS
42062009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4207
4208 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4209 searching backwards through multibyte buffer.
4210
872870b2
JD
42112009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4212
4213 * xterm.c: #include xgselect.h.
4214 (x_initialize): Call xgselect_initialize.
4215
4216 * xsettings.c (something_changedCB): C++ comments => C comments.
4217 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4218 does that now.
4219
4220 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4221 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4222 (scroll_bar_button_cb): Remove.
5ce6e4f4 4223 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4224 event.
4225 (xg_create_scroll_bar): Don't bind button-press-event and
4226 button-release-event.
4227
4228 * process.c: Include xgselect.h if defined (USE_GTK) ||
4229 defined (HAVE_GCONF).
4230 (wait_reading_process_output): Call xg_select for the same condition.
4231
4232 * xgselect.c (xg_select): New function to better integrate with
4233 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4234
4235 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4236
4237 * Makefile.in (XOBJ): Add xgselect.o.
4238
62a6e103
AS
42392009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4240
0b5397c2
SM
4241 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4242 Remove ignored second argument. All callers changed.
62a6e103
AS
4243 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4244 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4245 * xdisp.c (string_char_and_length): Likewise.
4246
b0ca0f33
DN
42472009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4248
4249 * xterm.c (x_new_font):
4250 * print.c (print_object):
4251 * cmds.c (Fself_insert_command): Move declarations before statements.
4252
dd5a6279
CY
42532009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4254
4255 * s/cygwin.h: Remove unneeded linker flags.
4256
4a8e097d
JD
42572009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4258
0d1d0d26
JD
4259 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4260
4261 * xsettings.h: Declare xsettings_get_system_font.
4262
4263 * xsettings.c (xsettings_get_system_font): New function.
4264 (init_gconf): No use initiating gconf unless we have Xft also.
4265 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4266 HAVE_GCONF.
4267
4a8e097d
JD
4268 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4269 add a blank entry so it doesn't collapse into nothing.
4270
8ab1650e
SM
42712009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4272
4273 * lread.c (Funintern): Comment out last change.
4274
82c602f0
RS
42752009-11-19 Richard Stallman <rms@gnu.org>
4276
4277 * lread.c (Funintern): Error if symbol is t or nil.
4278
87e32266
SM
42792009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4280
4281 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4282 representation of Lisp integers.
4283 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4284
1b9ac145
AS
42852009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4286
4287 * lisp.h: Remove declaration of Ffont_get_system_font.
4288 * xfns.c: Move include of "xsettings.h".
4289 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4290
dfb3c4c6
JD
42912009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4292
87e32266
SM
4293 * xsettings.c (something_changedCB, Ffont_get_system_font):
4294 Check use_system_font.
dfb3c4c6
JD
4295 (syms_of_xsettings): DEFVAR font-use-system-font.
4296
9370c1d8
AS
42972009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4298
25fe851a
AS
4299 * xfns.c (x_default_font_parameter): Remove dead assignment.
4300
9370c1d8
AS
4301 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4302
637fa988
JD
43032009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4304
87e32266 4305 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4306 not have FC_LCD_*. #define them if not there.
a6eb20d8 4307
87e32266 4308 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4309
637fa988
JD
4310 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4311
4312 * xterm.c (handle_one_xevent): Call xft_settings_event for
4313 ClientMessage, PropertyNotify and DestroyNotify.
4314 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4315 Call xsettings_initialize.
4316
4317 * xftfont.c (xftfont_fix_match): New function.
4318 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4319 Call xftfont_fix_match after XftFontMatch.
4320
4321 * xfont.c (xfont_driver): Initialize all members.
4322
87e32266
SM
4323 * xfns.c (x_default_font_parameter):
4324 Try font from Ffont_get_system_font.
637fa988
JD
4325 Do not get font from x_default_parameter if we got one from
4326 Ffont_get_system_font.
87e32266 4327 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4328
4329 * w32font.c (w32font_driver): Initialize all members.
4330
4331 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4332
4333 * lisp.h: Declare syms_of_xsettings.
4334
87e32266
SM
4335 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4336 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4337
4338 * ftfont.c (ftfont_filter_properties): New function.
4339
4340 * frame.c (x_set_font): Remove unused variable lval.
4341
87e32266 4342 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4343
4344 * font.c (font_put_extra): Don't return if val is nil, it means
4345 boolean option is off.
4346 (font_parse_fcname): Collect all extra properties in extra_props
4347 and call filter_properties for all drivers with extra_props and
4348 font as parameter.
87e32266
SM
4349 (font_open_entity): Do not use cache, it does not pick up new
4350 fontconfig settings like hinting.
637fa988
JD
4351 (font_load_for_lface): If spec had a name in it, store it in entity.
4352
a73f9c9d 4353 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4354
4355 * config.in: HAVE_GCONF is new.
4356
4357 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4358 xsettings.o is new.
4359
5a942932
KH
43602009-11-17 Kenichi Handa <handa@m17n.org>
4361
4362 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4363 back to the default font in case that no suitable font is found.
4364
b7c7a4d1
SM
43652009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4366
4367 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4368 Suggested by Chad Brown <yandros@mit.edu>.
4369 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4370
072f1e39
JD
43712009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4372
4373 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4374
5d1e70a2
AS
43752009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4376
87e32266 4377 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4378
a53cfbe5
JD
43792009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4380
473a99b7
JD
4381 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4382 has a parent.
4383
a53cfbe5 4384 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4385 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4386
4387 * config.in: Generated (AUTO_DEPEND).
4388
f04bb9b2
MA
43892009-11-13 Michael Albinus <michael.albinus@gmx.de>
4390
b7c7a4d1 4391 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4392 Vdbus_registered_functions_table, because it contains also
4393 properties. Fix docstring.
b7c7a4d1 4394 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4395
8f11f7ec
SM
43962009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4397
4398 * alloc.c (mark_object): Don't reprocess marked strings.
4399 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4400 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4401
8a605fe8
KH
44022009-11-13 Kenichi Handa <handa@m17n.org>
4403
8f11f7ec 4404 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4405 semantics of Vword_combining_categories.
4406 (Vword_combining_categories): Describe the slight change of the
4407 semantics.
4408
241c4680
EZ
44092009-11-13 Eli Zaretskii <eliz@gnu.org>
4410
4411 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4412
4413 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4414
5d58e44c
SM
44152009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4416
4417 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4418
5e13f9d3
JB
44192009-11-12 Juanma Barranquero <lekktu@gmail.com>
4420
4421 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4422
cf54c754
DR
44232009-11-11 David Reitter <david.reitter@gmail.com>
4424
4425 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4426 variables to fix 2009-11-09 change.
4427
a4ada374
DN
44282009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4429
91433552
DN
4430 * process.c (ifflag_def): Make flag_sym constant.
4431 (Fnetwork_interface_info): Use a constant pointer.
4432 (ifflag_table):
4433 * xfns.c (cursor_bits):
4434 * xdisp.c (power_letter):
4435 * termcap.c (speeds, esctab):
4436 * sysdep.c (baud_convert):
4437 * keyboard.c (lispy_accent_codes, modifier_names):
4438 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4439 (jpeg_format, tiff_format, gif_format, svg_format)
4440 (interlace_start, interlace_increment, gs_format):
4441 * gtkutil.c (separator_names):
4442 * fringe.c (swap_nibble):
4443 * fns.c (base64_value_to_char, base64_char_to_value):
4444 * fileio.c (make_temp_name_tbl):
4445 * coding.c (suffixes): Make constant.
4446
f4265f6c
DN
4447 * frame.c (make_initial_frame):
4448 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4449 build_string.
4450 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4451
04420943
DN
4452 * s/freebsd.h:
4453 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4454
0a5d24ae
DN
4455 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4456 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4457
a4ada374
DN
4458 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4459 * xterm.c (syms_of_xterm):
4460 * xfaces.c (syms_of_xfaces):
4461 * xdisp.c (syms_of_xdisp):
4462 * lread.c (syms_of_lread):
4463 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4464 build_string.
91433552 4465
a4ada374
DN
4466 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4467
af98fc7f
SM
44682009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4469
8ab1650e 4470 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4471
e90292a9
JD
44722009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4473
4474 * keyboard.h: Declare timer_check.
4475
4476 * keyboard.c (timer_check_2): New function that does what the old
4477 timer_check did.
4478 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4479 returned, i.e. don't return -1 with timers pending.
4480
4481 * process.c: Remove extern declaration of timer_check.
4482
4483 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4484 even if timer_check returned -1.
4485
af98fc7f
SM
4486 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4487 xg_dialog_data.
e90292a9
JD
4488 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4489 the event loop.
4490 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4491 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4492 Destroy the dialog after xg_dialog_run.
4493
045b83c0
SM
44942009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4495
4496 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4497
1fb99a3a
JD
44982009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4499
4500 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4501
04e452cb
JB
45022009-11-09 Juanma Barranquero <lekktu@gmail.com>
4503
4504 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4505
ef7417fd
SM
45062009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4507
4508 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4509 w32menu.c, and nsmenu.m.
4510 Simplify the obsolete case where position is nil.
4511 (cleanup_popup_menu): New function, moved from nsmenu.m.
4512 (struct skp): Remove slot `notreal'.
4513 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4514 adjust callers.
4515 (single_menu_item): Adjust call to parse_menu_item.
4516 (syms_of_menu): Defsubr x-popup-menu.
4517 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4518 (keymap_panes): Don't export any more.
4519 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4520 (xmenu_show): Declare.
4521 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4522 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4523 * keyboard.h (parse_menu_item): Update declaration.
4524 * xmenu.c (Fx_popup_menu): Remove.
4525 (syms_of_xmenu): Don't defsubr x-popup-menu.
4526 * w32menu.c (Fx_popup_menu): Remove.
4527 (syms_of_w32menu): Don't defsubr x-popup-menu.
4528 * nsmenu.m (cleanup_popup_menu): Remove.
4529 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4530 moved to menu.c's Fx_popup_menu.
4531 (Fx_popup_menu): Remove.
4532 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4533 menu_items (it's done in menu.c already).
4534
424d6179
SM
45352009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4536
4537 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4538 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4539
c0df13a6 45402009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4541
4542 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4543 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4544 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4545 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4546
2de9f71c
SM
45472009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4548
4549 Let integers use up 2 tags to give them one extra bit and thus double
4550 their range.
4551 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4552 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4553 New macros.
4554 (enum Lisp_Type): Use them. Give explicit values.
4555 (Lisp_Type_Limit): Remove.
4556 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4557 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4558 Pay attention to USE_2_TAGS_FOR_INTS.
4559 (INTEGERP): Use LISP_INT_TAG_P.
4560 * fns.c (internal_equal): Simplify the default case.
4561 (sxhash): Use case_Lisp_Int.
4562 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4563 any more.
4564 (Ftype_of): Use case_Lisp_Int.
4565 (store_symval_forwarding): Take into account the fact that Ints can
4566 now have more than one tag.
4567 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4568 buffer_slot_type_mismatch):
4569 * xfaces.c (face_attr_equal_p):
4570 * print.c (print_object):
4571 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4572 Use case_Lisp_Int.
4573
323637a2
EZ
45742009-11-06 Eli Zaretskii <eliz@gnu.org>
4575
7ac65b38
EZ
4576 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4577
323637a2
EZ
4578 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4579 warning.
4580
e511451f
JD
45812009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4582
4583 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4584
4585 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4586
4587 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4588 ButtonPressRelease and MotionNotify (bug#4870).
4589
5e2327cf
DN
45902009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4591
5adc433e
DN
4592 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4593
d67b4f80
DN
4594 * xterm.c (syms_of_xterm):
4595 * xselect.c (syms_of_xselect):
4596 * xmenu.c (syms_of_xmenu):
4597 * xfns.c (syms_of_xfns):
4598 * xfaces.c (syms_of_xfaces):
4599 * xdisp.c (syms_of_xdisp):
4600 * window.c (syms_of_window):
4601 * w32fns.c (syms_of_w32fns):
4602 * undo.c (syms_of_undo):
4603 * textprop.c (syms_of_textprop):
4604 * terminal.c (syms_of_terminal):
4605 * syntax.c (syms_of_syntax):
4606 * sound.c (syms_of_sound):
4607 * search.c (syms_of_search):
4608 * print.c (syms_of_print):
4609 * minibuf.c (syms_of_minibuf):
4610 * macros.c (syms_of_macros):
4611 * keymap.c (syms_of_keymap, initial_define_key)
4612 (initial_define_lispy_key):
4613 * keyboard.c (syms_of_keyboard):
4614 * insdel.c (syms_of_insdel):
4615 * image.c (syms_of_image):
4616 * fringe.c (syms_of_fringe):
4617 * frame.c (syms_of_frame):
4618 * fontset.c (syms_of_fontset):
4619 * fns.c (syms_of_fns):
4620 * fns.c (syms_of_fns):
4621 * fileio.c (syms_of_fileio):
4622 * fileio.c (syms_of_fileio):
4623 * eval.c (syms_of_eval):
4624 * doc.c (syms_of_doc):
4625 * dispnew.c (syms_of_display):
4626 * dired.c (syms_of_dired):
4627 * dbusbind.c (syms_of_dbusbind):
4628 * data.c (syms_of_data):
4629 * composite.c (syms_of_composite):
4630 * coding.c (syms_of_coding):
4631 * cmds.c (syms_of_cmds):
4632 * charset.c (define_charset_internal, syms_of_character):
4633 * ccl.c (syms_of_ccl):
4634 * category.c (syms_of_category, init_category_once):
4635 * casetab.c (syms_of_casetab):
4636 * casefiddle.c (syms_of_casefiddle):
4637 * callint.c (syms_of_callint):
4638 * bytecode.c (syms_of_bytecode):
4639 * buffer.c (keys_of_buffer, syms_of_buffer):
4640 * alloc.c (syms_of_alloc):
4641 * process.c (syms_of_process, init_process):
4642 * lread.c (syms_of_lread, init_obarray):
4643 * font.c (build_style_table):
4644 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4645 intern_c_string, calls to make_pure_string with
4646 make_pure_c_string. Use pure_cons instead of Fcons.
4647
5e2327cf
DN
4648 * process.c (socket_options): Make it const.
4649 (set_socket_option, init_process): Use a const pointer.
4650
4651 * lread.c (intern_c_string): New function.
4652 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4653 (defvar_int): Uset it. Make the name const char*.
4654
4655 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4656 (defvar_int): Update prototypes.
4657 (DEFUN, EXFUN): Support for prototypes is now required.
4658 (intern_c_string): New prototype.
4659 (struct Lisp_Subr): Make symbol_name constant.
4660
4661 * font.c (struct table_entry): Remove unused member. Make NAMES
4662 constant.
4663 (weight_table, slant_table, width_table): Make constant.
4664
4665 * emacs.c (struct standard_args): Make name and longname constant.
4666
4667 * character.h (DEFSYM): Use intern_c_string.
4668
a56eaaef
DN
46692009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4670
4671 * alloc.c (make_pure_c_string): New function.
4672
4673 * eval.c (Fautoload): Purecopy all arguments.
4674
f6a07420
KH
46752009-11-05 Kenichi Handa <handa@m17n.org>
4676
4677 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4678 the buffer in case of replace.
4679
5d28d4b1
DN
46802009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4681
4682 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4683
b349d111
SM
46842009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4685
d528b1ce
SM
4686 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4687 when applicable (bug#4851).
4688
b349d111
SM
4689 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4690 (P_): Support for prototypes is now required.
4691
c38eb027
CY
46922009-10-31 Chong Yidong <cyd@stupidchicken.com>
4693
4694 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4695 (Bug#4827).
4696
0405f8d9
EZ
46972009-10-30 Eli Zaretskii <eliz@gnu.org>
4698
d528b1ce 4699 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4700
ca0a881a
DN
47012009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4702
4703 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4704
d528b1ce
SM
4705 * lread.c (Fload): Purecopy the file name when building
4706 Vpreloaded_file_list.
ca0a881a 4707
47e0e0e4
JR
47082009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4709
4710 * w32fns.c (syms_of_w32fns): Change default value of
4711 w32-scroll-lock-modifier to nil. (Bug#2827)
4712
057bce6f
JB
47132009-10-26 Juanma Barranquero <lekktu@gmail.com>
4714
782a943e 4715 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4716
242bc74c
AS
47172009-10-26 Andreas Schwab <schwab@redhat.com>
4718
4719 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4720
522d013a
JB
47212009-10-26 Juanma Barranquero <lekktu@gmail.com>
4722
4723 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4724 For delta < 0, skip check that only makes sense when the mini-window
4725 is going to be enlarged. (Bug#4534)
4726
18060980
CY
47272009-10-25 Chong Yidong <cyd@stupidchicken.com>
4728
4729 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4730 string in menu maps (Bug#4471).
4731
fec8f0fe
CY
47322009-10-24 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4735 FRAME_NS_VIEW on terminal frames (Bug#4765).
4736
10d66ec0
AS
47372009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4738
1cae01f7
AS
4739 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4740 DBUS_TYPE_UINTnn separately to get proper sign extension.
4741
58a12889
AS
4742 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4743 can properly handle unsigned types.
d528b1ce 4744 (make_uid, make_gid): Remove.
58a12889 4745
987c9327
AS
4746 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4747 types again.
4748
522d013a 4749 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4750 (system_process_attributes): Likewise.
4751
905a9ed3
DN
47522009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4753
4754 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4755
4756 * eval.c (Fautoload): Purecopy the filename. Simplify.
4757
4758 * category.c (Fdefine_category): Purecopy docstring.
4759
a599b3e8
AS
47602009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4761
7b792fc9
AS
4762 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4763
a599b3e8
AS
4764 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4765
b35ac83e
CY
47662009-10-23 Chong Yidong <cyd@stupidchicken.com>
4767
4768 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4769 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4770 (Bug#4775).
4771
e8903e00
SM
47722009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4773
4774 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4775 (init_fileio_once):
4776 * lisp.h (init_fileio_once): Remove.
4777 * emacs.c (main): Don't call init_fileio_once.
4778
8f43cbf3
DN
47792009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4780
4781 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4782
26898943
AS
47832009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4784
4785 * doprnt.c (doprnt): Fix overflow check.
4786
5c646d5a
JD
47872009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4788
3132a7ea
JD
4789 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4790
5c646d5a
JD
4791 * xterm.h (x_wait_for_event): Declare it.
4792
4793 * xterm.c (pending_event_wait): New variable.
4794 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4795 see pending_event_wait.eventtype.
4796 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4797 (x_new_font): Call change_frame_size with new rows/columns before we
4798 try to resize the frame.
5c646d5a 4799 (x_wait_for_event): New function.
d528b1ce
SM
4800 (x_set_window_size_1): Don't change gravity unless change_gravity
4801 is set.
5c646d5a
JD
4802 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4803 don't change frame size, instead wait for the ConfigureNotify.
4804 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4805 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4806 (x_initialize): Initialize pending_event_wait.
4807
4808 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4809 size.
4810
4811 * widget.c (EmacsFrameSetValues): Add comment.
4812 (EmacsFrameSetCharSize): Just call x_set_window_size.
4813
4814 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4815 x_wait_for_event.
d528b1ce 4816 (flush_and_sync): Remove again.
5c646d5a
JD
4817 (xg_get_font_name): Suggest monospace if no previous font is known.
4818
e9c1637d
SM
48192009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4820
4821 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4822 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4823
5a72cccb
YM
48242009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4825
4826 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4827 processing pending events when event is filtered for input method.
ab04798f 4828 (Bug#3681)
5a72cccb 4829
2629aa37
JB
48302009-10-20 Juanma Barranquero <lekktu@gmail.com>
4831
4832 * fns.c: Add #endif accidentally removed in previous change.
4833
c3417a74
DN
48342009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4835
4836 * fns.c: Remove code for unsupported system: MAC_OS.
4837 * image.c: Likewise. Include setjmp.h.
4838
9685cef2
JD
48392009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4840
4841 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4842 pixel -1 (bug #4742).
4843
d7306fe6
DN
48442009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4845
019d2c4c
DN
4846 * process.c (create_pty): Remove conditionals for no longer
4847 supported systems: UNIPLUS and RTU.
4848
ee6bacd4
DN
4849 * xterm.c:
4850 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4851
d7306fe6
DN
4852 * alloc.c: Do not define struct catchtag.
4853 * eval.c: Move struct catchtag definition ...
4854 * lisp.h: ... here.
4855
4856 * image.c: Move png.h #include earlier to avoid warnings.
4857
4858 * xterm.c:
4859 * xsmfns.c:
4860 * xselect.c:
4861 * xrdb.c:
4862 * xmenu.c:
4863 * xftfont.c:
4864 * xfont.c:
4865 * xfns.c:
4866 * xfaces.c:
4867 * xdisp.c:
4868 * window.c:
4869 * widget.c:
4870 * w32xfns.c:
4871 * w32uniscribe.c:
4872 * w32term.c:
4873 * w32select.c:
4874 * w32reg.c:
4875 * w32proc.c:
4876 * w32menu.c:
4877 * w32inevt.c:
4878 * w32heap.c:
4879 * w32font.c:
4880 * w32fns.c:
4881 * w32console.c:
4882 * w32.c:
4883 * w16select.c:
4884 * vm-limit.c:
4885 * unexsol.c:
4886 * unexec.c:
4887 * unexcw.c:
4888 * unexaix.c:
4889 * undo.c:
4890 * tparam.c:
4891 * textprop.c:
4892 * terminfo.c:
4893 * terminal.c:
4894 * termcap.c:
4895 * term.c:
4896 * syntax.c:
4897 * sound.c:
4898 * sheap.c:
4899 * search.c:
4900 * scroll.c:
4901 * region-cache.c:
4902 * regex.c:
4903 * ralloc.c:
4904 * process.c:
4905 * print.c:
b024548b
DN
4906 * nsterm.m:
4907 * nsselect.m:
4908 * nsmenu.m:
4909 * nsimage.m:
4910 * nsfont.m:
4911 * nsfns.m:
d7306fe6
DN
4912 * msdos.c:
4913 * minibuf.c:
4914 * menu.c:
4915 * marker.c:
4916 * macros.c:
4917 * keymap.c:
4918 * keyboard.c:
4919 * intervals.c:
4920 * insdel.c:
4921 * indent.c:
4922 * gtkutil.c:
4923 * ftxfont.c:
4924 * ftfont.c:
4925 * fringe.c:
4926 * frame.c:
4927 * fontset.c:
4928 * font.c:
4929 * fns.c:
4930 * floatfns.c:
4931 * filelock.c:
4932 * fileio.c:
4933 * emacs.c:
4934 * editfns.c:
4935 * dosfns.c:
4936 * doprnt.c:
4937 * doc.c:
4938 * dispnew.c:
4939 * dired.c:
4940 * dbusbind.c:
4941 * data.c:
4942 * composite.c:
4943 * coding.c:
4944 * cmds.c:
4945 * cm.c:
4946 * chartab.c:
4947 * charset.c:
4948 * character.c:
4949 * ccl.c:
4950 * category.c:
4951 * casetab.c:
4952 * casefiddle.c:
4953 * callproc.c:
4954 * callint.c:
4955 * bytecode.c:
4956 * buffer.c:
4957 * atimer.c: Include setjmp.h. (Bug#4643)
4958
fd5f21e6
SM
49592009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4960
4c0354d7
SM
4961 Remove leftover table unibyte_to_multibyte_table.
4962 * character.c (unibyte_to_multibyte_table): Remove.
4963 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4964 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4965 * character.h (UNIBYTE_TO_CHAR): New macro.
4966 (MAKE_CHAR_MULTIBYTE): Use it.
4967 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4968 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4969 (message_dolog, set_message_1):
4970 * search.c (Freplace_match):
4971 * editfns.c (Fcompare_buffer_substrings):
4972 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4973 (concat):
4974 * insdel.c (copy_text, count_size_as_multibyte):
4975 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4976 * term.c (produce_glyphs):
4977 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4978 * regex.c (RE_CHAR_TO_MULTIBYTE):
4979 * cmds.c (internal_self_insert):
4980 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4981
fd5f21e6
SM
4982 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4983
4418646e
DN
49842009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4985
4986 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4987
35f5c1d2
JB
49882009-10-16 Juanma Barranquero <lekktu@gmail.com>
4989
4990 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4991
a0cd8f6b
AR
49922009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4993
4994 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4995 still needed under Tiger.
4996
4997 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4998
4999 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5000 __Apple__.
5001
5002 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5003
01a8d3fa
KH
50042009-10-15 Kenichi Handa <handa@m17n.org>
5005
5006 * print.c (print_object): Escape a symbol like "2E10" too.
5007
bf6c75c9 50082009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5009
5010 Cleanups and changes for 64-bit compile under Snow Leopard.
5011 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5012
5013 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5014
c5959062 5015 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5016 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5017 cast argument.
5018 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5019 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5020
5021 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5022
5023 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5024 where appropriate.
5025
5026 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5027 where appropriate.
6e4780c5
JB
5028 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5029 Use stringWithUTF8String.
bf6c75c9
AR
5030 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5031
6e4780c5
JB
5032 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5033 Add formal protocol mention to inheritance.
bf6c75c9
AR
5034 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5035
6e4780c5
JB
5036 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5037 Fix printf format.
bf6c75c9
AR
5038 (ns_query_color): Use CGFloat where appropriate.
5039 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5040 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5041 argument.
5042
3d87f118
AR
5043 * config.in (NS_HAVE_NSINTEGER): Drop.
5044
a95c8102
AR
5045 * dbusbind.c (dbus-method-return-internal)
5046 (dbus-method-error-internal): Use long format in printf, and cast
5047 argument.
5048
5049 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5050 in printf, and cast argument.
5051
6873acca 5052 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5053 cast argument.
5054
9ec6f100
GM
50552009-10-11 Glenn Morris <rgm@gnu.org>
5056
5057 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5058
5be883cd
JD
50592009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5060
5061 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5062 menu bar with a small width so it doesn't enlarge the frame.
5063
d7a39b51
JB
50642009-10-08 Juanma Barranquero <lekktu@gmail.com>
5065
5066 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5067
0c2b6f8e
GM
50682009-10-06 Glenn Morris <rgm@gnu.org>
5069
5070 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5071 SOME_MACHINE_LISP (this enters indirectly via DOC).
5072
e02131a2
EZ
50732009-10-05 Eli Zaretskii <eliz@gnu.org>
5074
5075 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5076
b4744254
EZ
50772009-10-04 Eli Zaretskii <eliz@gnu.org>
5078
5079 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5080 Doc fix.
5081
dbf64827
JB
50822009-10-03 Martin Rudalics <rudalics@gmx.at>
5083
5084 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5085
e9a0aef8
MA
50862009-10-02 Michael Albinus <michael.albinus@gmx.de>
5087
d528b1ce 5088 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5089 used anymore outside fileio.c.
5090
5091 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5092
64eb2b56
JB
50932009-10-01 Juanma Barranquero <lekktu@gmail.com>
5094
5095 * lisp.h (Qdelete_directory_internal):
5096 Declare, instead of Qdelete_directory.
5097
5098 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5099
9d28c33e
SM
51002009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5101
5102 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5103
9d8f3bd9
MA
51042009-10-01 Michael Albinus <michael.albinus@gmx.de>
5105
9d28c33e 5106 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5107 Fdelete_directory. It is not a command anymore. It has no file
5108 name handler.
5109
9694740b
SM
51102009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5111
5112 * xdisp.c (get_next_display_element): Use an enum in last change.
5113
748e162f
KH
51142009-09-28 Kenichi Handa <handa@m17n.org>
5115
9694740b 5116 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5117 unibyte_display_via_language_environment in handling
5118 Vnobreak_char_display.
5119
17efd58d
AR
51202009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5121
5122 * nsterm.h (ns_app_name): New extern variable.
5123
5124 * nsterm.m (ns_app_name): New variable.
5125 (ns_term_init): Set and use it.
5126 (ns_term_shutdown): Use it.
5127
5128 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5129 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5130
5131 * nsfns.m (ns_set_name_iconic, ns_set_name)
5132 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5133 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5134
9694740b
SM
5135 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5136 Remove double-casting in client_data comparison.
31c2d412 5137
3208cb35
YM
51382009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5139
5140 * keyboard.c (make_lispy_event): Remember last wheel direction.
5141 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5142
b7d552d6
GM
51432009-09-26 Glenn Morris <rgm@gnu.org>
5144
5145 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5146 internal.elc. Add term/pc-win.elc.
5147 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5148 term/x-win.elc.
5149 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5150 term/w32-win.elc.
5151 (NS_SUPPORT): New.
5152 (lisp): Add NS_SUPPORT.
5153 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5154
4ff670a8
DR
51552009-09-25 David Reitter <david.reitter@gmail.com>
5156
5157 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5158 on Mac OS X 10.6+ (bug#4513).
5159
feabfb6c
JB
51602009-09-24 Juanma Barranquero <lekktu@gmail.com>
5161
5162 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5163 some parts of Emacs code (like font selection) don't grok them.
5164 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5165
de59072a
AS
51662009-09-24 Andreas Schwab <schwab@redhat.com>
5167
5168 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5169
a489517b
JB
51702009-09-24 Juanma Barranquero <lekktu@gmail.com>
5171
5172 * dired.c (Fdirectory_files): Fix typo in docstring.
5173
0592970c
AR
51742009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5175
5176 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5177 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5178 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5179 under GNUstep.
5180 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5181
5182 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5183 glyph advancement.
5184
48e8a88b
AR
51852009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5186
5187 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5188 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5189
5190 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5191 deleted (bug #4492).
5192
e14f0a78
AR
5193 * nsfont.m (Vns_reg_to_script): New lisp variable.
5194 (syms_of_nsfont): Declare it.
5195 (ns_registry_to_script): New function.
5196 (ns_get_req_script): Call it.
5197 (ns_findfonts): Don't give up on non-unicode registry.
5198
5199 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5200
5b650faa
SM
52012009-09-20 Tom Tromey <tromey@redhat.com>
5202
5203 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5204 batch mode (bug#4228).
5205
a489517b 52062009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5207
5208 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5209 carefully. (Bug #4339)
0bae4e09 5210
fcfe06f3
CY
52112009-09-18 Chong Yidong <cyd@stupidchicken.com>
5212
d798ba87 5213 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5214
31642728
AR
52152009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5216
5217 * emacs.c (inhibit_x_resources): Update doc string for NS.
5218 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5219 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5220
5221 * nsterm.h (ns_no_defaults): Remove.
5222
5223 * nsterm.m (ns_no_defaults): Remove.
5224 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5225 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5226 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5227 don't update the NSWindow itself.
5228 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5229 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5230
5231 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5232 ns_use_qd_smoothing.
5233
5234 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5235 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5236 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5237 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5238
8686ac71
JB
52392009-09-17 Juanma Barranquero <lekktu@gmail.com>
5240
5241 * emacs.c (inhibit_x_resources): New variable.
5242 (main) [HAVE_NS]: Don't process --quick command line option.
5243 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5244
5245 * lisp.h (inhibit_x_resources): Declare it extern.
5246
5247 * w32reg.c (x_get_string_resource):
5248 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5249
e227ba05
EZ
52502009-09-17 Eli Zaretskii <eliz@gnu.org>
5251
362654a6
JB
5252 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5253 Add lisp/term/internal.elc.
e227ba05 5254
742d40e8
SM
52552009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5256
5257 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5258 (bug#4461).
5259
005bd5a2
DN
52602009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5261
5262 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5263
5264 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5265 (OBJECTS_MACHINE): Remove, unused.
5266
f9af9719
SM
52672009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5268
5269 * frame.c (x_get_resource_string): Remove unused.
5270
0307c7d2
JD
52712009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5272
5273 * xterm.c (x_new_font): Call change_frame_size before calling
5274 x_set_window_size, in case frame size won't change.
5275
5276 * frame.c (x_set_font): Remove dead code.
5277
428b13d6
SM
52782009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5279
5280 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5281
5766c380
SM
52822009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5283
5284 * lread.c (Fload): Don't output a message after loading an obsolete
5285 package any more (done in Lisp now).
5286
2fd0161b
CY
52872009-09-12 Chong Yidong <cyd@stupidchicken.com>
5288
5289 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5290
bc5e75b6
SM
52912009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5292
5293 * keymap.c (Fwhere_is_internal): Use nconc2.
5294
c31c985e
AM
52952009-09-11 Alan Mackenzie <acm@muc.de>
5296
5297 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5298 batch mode.
5299
78012bd2
AS
53002009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5301
5302 * xdisp.c (display_mode_element): Detect cycles.
5303
9d889332
SM
53042009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5305
5306 * keymap.c (where_is_internal): Don't erroneously return nil right after
5307 filling the cache.
5308 (where_is_internal_1): Fix up typo.
5309
7ab5d780
GM
53102009-09-11 Glenn Morris <rgm@gnu.org>
5311
5312 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5313 share a common doc-string.
5314
5238a749
SM
53152009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5316
66d77eda
SM
5317 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5318 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5319
5238a749
SM
5320 * keymap.c (QCadvertised_binding): New constant.
5321 (syms_of_keymap): Initialize it.
5322 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5323 if applicable.
5324
19f48442
SM
53252009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5326
50d4ba39
SM
5327 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5328 (parse_menu_item): Streamline since bindings are recomputed all the
5329 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5330 more and don't support lmenu's menu-alias any more either.
5331
a88a5372
SM
5332 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5333 (where_is_internal): Strip it down to only traverse the keymaps.
5334 Move the cache handling from Fwhere_is_internal to here.
5335 (Fwhere_is_internal): Move the handling of remapping and the choice of
5336 the best binding from where_is_internal to here.
5337 Unify the cached/noncached paths, so remapping is also handled
5338 correctly when the cache is used, and so the cache can be used to
5339 speed up remap-handling when applicable.
5340 Give preference to non-remapped bindings.
5341 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5342 non-remapped bindings.
5343 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5344 command remapping.
5345
19f48442
SM
5346 * xdisp.c (display_mode_element): Move list length limit from 50 to
5347 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5348
599498c3 53492009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5350
5351 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5352
f9b7b5ac
SM
53532009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5354
a53af587
JB
5355 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5356 (Bug#4334)
5357
f9b7b5ac
SM
5358 * keymap.c (where_is_internal): Filter out shadowed remappings.
5359 Assume that where_is_internal returns unshadowed bindings to simplify
5360 the code and get rid of the gotos. Use ASIZE.
5361
04f4b72d
JD
53622009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5363
4da146f2
JD
5364 * xterm.c (x_focus_changed): If we get a focusout and pointer
5365 is invisible, make it visible.
5366
04f4b72d
JD
5367 * xterm.h: Remove condition for declaration of
5368 x_*_window_to_frame.
5369
7cef7ce3
SM
53702009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5371
5372 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5373 initial terminal as well.
5374
a54fa5b7
JD
53752009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5376
5377 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5378 x_menubar_window_to_frame.
a54fa5b7 5379
50426a04 5380 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5381 (XTmouse_position): Do not return valid positions
5382 for clicks in the menubar and the toolbar for Gtk+.
5383
5384 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5385 if the widget for the event has the same top level as a frame,
5386 return the frame.
5387 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5388 internal windows, bug #4122.
5389 (x_non_menubar_window_to_frame): Remove.
5390
5a021dd0
GM
53912009-09-02 Glenn Morris <rgm@gnu.org>
5392
5393 * buffer.c (default-major-mode): Move most of the doc from here...
5394 (major-mode): ... to here.
5395
548fe2f3
NR
53962009-08-30 Nick Roberts <nickrob@snap.net.nz>
5397
5398 * process.c (wait_reading_process_output): Keep the descriptor
5399 when pty is used by a non-child process, e.g., in I/O buffer of
5400 GDB this allows inferior to be restarted.
5401
e0840eef
EZ
54022009-08-29 Eli Zaretskii <eliz@gnu.org>
5403
5404 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5405 both branches into one.
5406
82e98df4
SM
54072009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5408
5409 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5410 (main): Use enable-multibyte-characters rather than
5411 default-enable-multibyte-characters. Output a warning message when
5412 running a unibyte session.
5413
890617cb
YM
54142009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5415
5416 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5417 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5418 (copy_data_segment): Also copy __program_vars section.
5419 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5420 (dump_it) [LC_DYLD_INFO]: Use it.
5421
5422 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5423
e7adeadc
EZ
54242009-08-28 Eli Zaretskii <eliz@gnu.org>
5425
5426 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5427 $(SRC)/buildobj.h.
5428 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5429 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5430 $(SRC)/buildobj.h.
5431 (clean): Add buildobj.h.
5432
3ed8bbdc
TZ
54332009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5434
5435 * print.c (print_object): Set escapeflag to 1 when printing
5436 hashtable keys and values.
5437
155a6764
SM
54382009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5439
5440 * lread.c (read_integer): Use doubles (and potentially return a float
5441 number) as we do in string-to-number.
5442 (read1): Use strtol to read integers, signal errors on strtol's
5443 overflow and use floats if strtol's output is too large for
5444 Elisp integers.
5445
877610de
EZ
54462009-08-27 Eli Zaretskii <eliz@gnu.org>
5447
5448 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5449 (make-buildobj-SH): Fix last change.
5450 (SRC): Move to before where it's first used.
5451
ef73e7be
KH
54522009-08-27 Kenichi Handa <handa@m17n.org>
5453
550c8289
KH
5454 * process.c (send_process): Use encode_coding_object instead of
5455 encode_coding_string to perform eol-conversion even if the string
5456 is unibyte.
5457
60afa08d
KH
5458 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5459 character.
5460
ef73e7be 5461 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5462 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5463
7b3a82d7
DN
54642009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5465
5654bf63
DN
5466 * callproc.c (Fcall_process): Remove always true #if.
5467
7b3a82d7
DN
5468 * lisp.h: Replace #if 0 code for checking with text pointing to
5469 the --enable-checking configure flag.
5470
5471 * emacs.c (main): Mention the --enable-profiling configure flag
5472 instead of using CFLAGS.
5473
878bde49
KR
54742009-08-26 Ken Raeburn <raeburn@raeburn.org>
5475
5476 * Makefile.in (buildobj.h): New target.
5477 (doc.o): Depend on it.
5478 (temacs${EXEEXT}): Don't generate buildobj.lst.
5479 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5480 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5481 ($(BLD)/doc.$(O)): Depend on it.
5482 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5483 provided by Eli Zaretskii.)
5484 ($(TEMACS)): Don't generate buildobj.lst.
5485 * doc.c: Include buildobj.h.
5486 (buildobj): New static variable.
5487 (Fsnarf_documentation): Use it, instead of opening and reading
5488 buildobj.lst.
5489
1574224c
MA
54902009-08-25 Michael Albinus <michael.albinus@gmx.de>
5491
5492 * dbusbind.c (Fdbus_call_method)
5493 (Fdbus_call_method_asynchronously): Use English numeric format for
5494 timeout values in doc string.
5495
d9da2f45
KH
54962009-08-25 Kenichi Handa <handa@m17n.org>
5497
ef73e7be
KH
5498 * alloc.c (mark_char_table): New function.
5499 (mark_object): Use mark_char_table for a char-table.
5500
d9da2f45
KH
5501 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5502 (CHAR_TABLE_REF): Use it.
5503
c8edcc01
KR
55042009-08-23 Ken Raeburn <raeburn@raeburn.org>
5505
5506 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5507 before invoking the newly build emacs to check for load-path
5508 shadowing.
5509
7763401b
GM
55102009-08-22 Glenn Morris <rgm@gnu.org>
5511
5512 * Makefile.in (bootstrap_exe): New variable.
5513 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5514 Use ${bootstrap_exe}.
5515
729eadda
EZ
55162009-08-22 Eli Zaretskii <eliz@gnu.org>
5517
5518 * coding.h (encode_coding_string): Don't encode unibyte strings.
5519 (Bug#4047)
5520
eb4c6ace
MA
55212009-08-22 Michael Albinus <michael.albinus@gmx.de>
5522
5523 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5524
5525 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5526 intended as hotfix only.
5527 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5528
36e34d1b
AR
55292009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5530
5531 * nsterm.m (ns_get_color): Update documentation properly for last
5532 change, and clean up loose ends in the code left by it. Fix
5533 longstanding bug with 16-bit hex parsing, and add support for
5534 yet another X11 format (rgb:r/g/b) for compatibility.
5535 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5536 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5537
f983eb8a
SM
55382009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5539
5540 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5541
3f56d3c6
MA
55422009-08-20 Michael Albinus <michael.albinus@gmx.de>
5543
5544 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5545 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5546 (xd_initialize, xd_pending_messages): Check, whether
5547 $DBUS_SESSION_BUS_ADDRESS is set.
5548
fb641d68
YM
55492009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5550
5551 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5552
5553 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5554
cf59a374
GM
55552009-08-20 Glenn Morris <rgm@gnu.org>
5556
5557 * emacs.c (system-type): Doc fix.
5558
1373f3be
SM
55592009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5560
5561 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5562 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5563
058ed861
MA
55642009-08-18 Michael Albinus <michael.albinus@gmx.de>
5565
1373f3be
SM
5566 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5567 New functions.
058ed861
MA
5568 (xd_initialize): Revert change from 2009-08-16.
5569
563a866e 55702009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5571
5572 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5573 font-group vector, return nil.
5fc05db0 5574
e42bdf01
CY
55752009-08-17 Chong Yidong <cyd@stupidchicken.com>
5576
5577 * process.c (status_notify): Don't perform redisplay.
5578 (Fdelete_process, list_processes_1, process_send_signal):
5579 Expliticly perform redisplay.
5580 (wait_reading_process_output): Always check process status, but
5581 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5582
4230ab74
KR
55832009-08-17 Ken Raeburn <raeburn@raeburn.org>
5584
1373f3be 5585 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5586 (XFLOAT_INIT): New macro for storing a float value.
5587 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5588 * fns.c (sxhash): Copy out the value of a float in order to
5589 examine its bytes.
5590 * dbusbind.c (xd_append_arg): Likewise.
5591
4230ab74
KR
5592 * emacs.c (main): Don't call syms_of_data twice.
5593
a0645cdd
MA
55942009-08-16 Michael Albinus <michael.albinus@gmx.de>
5595
5596 * dbusbind.c (xd_initialize): Add connection file descriptor to
5597 input_wait_mask, in order to let select() detect, whether a new
5598 message has been arrived.
ca4f31ea 5599 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5600
485db0ba
MA
56012009-08-15 Michael Albinus <michael.albinus@gmx.de>
5602
1373f3be
SM
5603 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5604 New functions.
485db0ba
MA
5605
5606 * lisp.h (xd_pending_messages): Declare.
5607
5608 * keyboard.c (readable_events): Call xd_pending_messages.
5609
b5b98ff4
CY
56102009-08-15 Chong Yidong <cyd@stupidchicken.com>
5611
1373f3be 5612 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5613
f8354c6e
CY
5614 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5615
b5b98ff4
CY
5616 * buffer.c (set_buffer_internal_1)
5617 (swap_out_buffer_local_variables): Check for unbound local
5618 variables (Bug#4138).
5619
8b9fc636
EZ
56202009-08-14 Eli Zaretskii <eliz@gnu.org>
5621
5622 * process.c (create_pty): Fix last change.
5623
ce959360
CY
56242009-08-13 Chong Yidong <cyd@stupidchicken.com>
5625
5626 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5627 (xbm_load_image): Caller changed.
64b807c9 5628 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5629
c7baf7e9
NR
56302009-08-13 Nick Roberts <nickrob@snap.net.nz>
5631
5632 * process.c (create_pty): New function.
5633 (Fstart_process): Use it to allow Emacs to just associate a pty
5634 with the buffer. See associated change in gdb-mi.el.
5635 (list_processes_1): Deal with no program name.
5636 (start_process_unwind): Use pid == -2 to mean no process.
5637
1ac9108a
SM
56382009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5639
5640 * cmds.c (nonundocount): New global variable.
5641 (keys_of_cmds): Initialize it.
5642 (Fself_insert_command): Use it to combine upto 20 sequential chars
5643 into a single undo entry, just like the Qself_insert_command code in
5644 keyboard.c does.
5645 Call frame_make_pointer_invisible, also like the Qself_insert_command
5646 code in keyboard.c does.
5647 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5648 than its own local replacement for it.
5649
e267324c
KR
56502009-08-10 Ken Raeburn <raeburn@raeburn.org>
5651
1ac9108a 5652 * fns.c (concat): Don't re-set string length to its current value.
77437343 5653
1ac9108a
SM
5654 * coding.h (decode_coding_string, encode_coding_string):
5655 Use SBYTES macro.
f0bed503 5656
1ac9108a 5657 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5658 (doprnt): Merge with doprnt1, discarding lispstrings code.
5659 * lisp.h (doprnt_lisp): Don't declare.
5660
416e006d
JL
56612009-08-07 Juri Linkov <juri@jurta.org>
5662
5663 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5664
6f7d5780
DN
56652009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5666
5667 * print.c (syms_of_print): Undo previous change.
5668
f19a0f5b
TZ
56692009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5670
5671 * lread.c (read1, syms_of_lread): Read hashtables back from the
5672 readable format.
5673
5674 * print.c (print_preprocess, print_object): Print hashtables fully
5675 and readably.
5676 (syms_of_print): Provide 'hashtable-print-readable.
5677
b9173dc2
AR
56782009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5679
5680 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5681 no family set.
5682 (nsfont_open): Handle case when entity has no family.
5683
1586503c
AR
56842009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5685
5686 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5687 element, not a list, for match case.
5688
087048cd
KH
56892009-07-28 Kenichi Handa <handa@m17n.org>
5690
5691 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5692 rigidly.
5693
5694 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5695 font_parse_xlfd. Check font properties more rigidly.
5696
780c2506
DN
56972009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5698
31fd7c5c
JB
5699 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5700 bsd-common.h.
780c2506 5701
a8c0cc18
KH
57022009-07-27 Kenichi Handa <handa@m17n.org>
5703
5704 * xfaces.c (face_with_height): Call font_clear_prop.
5705
4fbe2306
CY
57062009-07-26 Chong Yidong <cyd@stupidchicken.com>
5707
111d9af3
CY
5708 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5709
5710 * xterm.c (x_term_init): Use Qx.
5711
4fbe2306
CY
5712 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5713
1ac9108a 5714 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5715 (ns_get_color): Revert 2009-07-16 change.
5716
beb0b7f9
EZ
57172009-07-25 Eli Zaretskii <eliz@gnu.org>
5718
5719 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5720 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5721
2baf5e76
KR
57222009-07-25 Ken Raeburn <raeburn@raeburn.org>
5723
1ac9108a
SM
5724 * coding.h (decode_coding_string, encode_coding_string):
5725 Use SCHARS macro.
8890e5f5 5726
2baf5e76 5727 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5728 (load_depth): Delete.
2baf5e76
KR
5729 (Qload_in_progress): New variable.
5730 (load_unwind): Don't reference load_depth or load_in_progress.
5731 (Fload): Likewise; specbind Qload_in_progress instead.
5732 (init_lread): Don't initialize load_depth.
5733 (syms_of_lread): Initialize and protect Qload_in_progress.
5734
1395c6f5
AR
57352009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5736
5737 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5738
4e2f36cf
AR
57392009-07-23 Yavor Doganov <yavor@gnu.org>
5740
5741 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5742
5dd9a6f7
AR
57432009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5744
5745 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5746 Bugs 3792, 3720, 2402.
5747 (ns_lookup_indexed_color): Check for bad index.
5748 (ns_index_color): Init unused slot to 0.
5749 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5750 Bug 3714, possibly 3082.
5dd9a6f7 5751
c902b920
JR
57522009-07-22 Jason Rumney <jasonr@gnu.org>
5753
1ac9108a
SM
5754 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5755 Position IME window at cursor (Bug#2570).
c902b920
JR
5756 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5757 (globals_of_w32fns): Dynamically load functions required above.
5758
5759 * w32term.c (w32_draw_window_cursor): Send message to reposition
5760 any IME window.
5761
090101cf
CY
57622009-07-21 Chong Yidong <cyd@stupidchicken.com>
5763
5764 * fileio.c: Revert 2009-07-16 changes.
5765 (Vauto_save_include_big_deletions): New variable.
5766 (Fdo_auto_save): Disable auto-save only if
5767 auto-save-include-big-deletions is nil.
5768
e6583e3d
CY
57692009-07-21 Chong Yidong <cyd@stupidchicken.com>
5770
5771 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5772 the overflowed pixels into account (Bug#3879).
5773
ece435a5
KR
57742009-07-21 Ken Raeburn <raeburn@raeburn.org>
5775
5776 * lread.c (load_depth): New variable.
5777 (Fload, load_unwind, init_lread): Set it to the load recursion
5778 depth; set load_in_progress as a simple boolean based on the
5779 current load_depth. (Bug#3892)
5780
40b2d973
AR
57812009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5782
5783 * nsfont.m (ns_has_attribute): Remove.
5784 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5785
10be7e0d
JL
57862009-07-18 Juri Linkov <juri@jurta.org>
5787
5788 * process.c (Fset_process_query_on_exit_flag): Mention killing
5789 a buffer in docstring.
5790
fa055055
KH
57912009-07-17 Kenichi Handa <handa@m17n.org>
5792
5793 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5794
042f7b69
YM
57952009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5796
5797 * nsfns.m (Fns_set_alpha): Remove function.
5798 (syms_of_nsfns): Don't defsubr it.
5799
5800 * nsterm.m (ns_get_color): Remove incompatible color formats.
5801 (ns_color_to_lisp): Generate #rrggbb color format string.
5802
4be941e3
RS
58032009-07-16 Richard Stallman <rms@gnu.org>
5804
5805 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5806 (Fset_buffer_auto_saved): Handle save_length = -2.
5807
4e6b227d
CY
58082009-07-16 Chong Yidong <cyd@stupidchicken.com>
5809
5810 * xterm.c (Qx_gtk_map_stock): New var.
5811
5812 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5813 of calling intern each time.
5814
a1856973
YM
58152009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5816
5817 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5818 does tiling.
5819
5820 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5821
497e54d8
KH
58222009-07-14 Kenichi Handa <handa@m17n.org>
5823
72d36834
KH
5824 * font.c (font_vconcat_entity_vectors): New function.
5825 (struct font_sort_data): New member font_driver_preference.
5826 (font_compare): Check font_driver_preference.
5827 (font_sort_entities): The format of the first argument changed.
5828 (font_delete_unmatched): Likewise.
5829 (font_list_entities): The return type changed.
5830 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5831 (font_find_for_lface): Adjuste for the above changes.
5832 Don't suppress the checking of C even if the repertory supports it.
5833 (Flist_fonts): Adjust for the above changes.
72d36834 5834
1ac9108a
SM
5835 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5836 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5837 Reject a font who has adstyle property that is different from a
5838 langname derived from registry property.
1ac9108a 5839 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5840
b6046155
EZ
58412009-07-13 Eli Zaretskii <eliz@gnu.org>
5842
5843 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5844 local copy of dirfilename.
5845
fb6b6049
KH
58462009-07-13 Kenichi Handa <handa@m17n.org>
5847
e2402a5e
KH
5848 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5849 against max_char.
5850
fb6b6049
KH
5851 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5852 calling XSYMBOL (sym).
5853
65156807
EZ
58542009-07-11 Eli Zaretskii <eliz@gnu.org>
5855
1ac9108a
SM
5856 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5857 New function.
5858 (directory_files_internal) [WINDOWSNT]:
5859 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5860 the filesystem of the directory is fast or slow.
5861
5862 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5863 file name.
5864 (is_slow_fs): New function.
5865 (stat): Use it to determine whether to issue more system calls to
5866 get accurate file attributes, when w32-get-true-file-attributes is
5867 `local'.
5868
e0ab5fcf
JD
58692009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5870
5871 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5872 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5873 parameter font-parameter as default to the font dialog.
5874
784ceded
KH
58752009-07-10 Kenichi Handa <handa@m17n.org>
5876
5877 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5878
fb8edc0b
EZ
58792009-07-09 Eli Zaretskii <eliz@gnu.org>
5880
1ac9108a 5881 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5882
fb8edc0b
EZ
5883 * w32.c (stat): Treat UNC file names as residing on remote
5884 drives. (Bug#3542)
5885
635c75b1
KH
58862009-07-09 Kenichi Handa <handa@m17n.org>
5887
5888 * fontset.c (fontset_find_font): Fix previous change.
5889
c1d5ce94
MA
58902009-07-08 Michael Albinus <michael.albinus@gmx.de>
5891
5892 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5893 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5894 error flag.
5895
edb61b39
KH
58962009-07-08 Kenichi Handa <handa@m17n.org>
5897
374bf7e4
KH
5898 * fontset.c (fontset_find_font): Fix the logic of handling
5899 charset_matched.
5900 (font_for_char): Delete unused var.
5901 (generate_ascii_font_name): Delete it.
5902
edb61b39
KH
5903 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5904
5905 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5906 (encode_coding_sjis): Fix the code range check.
5907
0f3f018c
CY
59082009-07-07 Chong Yidong <cyd@stupidchicken.com>
5909
5910 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5911 (Fexpand_file_name): Copy string data properly (Bug#3772).
5912
fcaf6f3a
JD
59132009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5914
5915 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5916 first MapNotify.
5917
6809ca75
KH
59182009-07-07 Kenichi Handa <handa@m17n.org>
5919
5920 * character.h (unibyte_has_multibyte_table): Delete extern.
5921 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5922
5923 * charset.c (Fset_charset_priority): Update charset_unibyte.
5924 (syms_of_charset): Initialize charset_unibyte.
5925
5926 * character.c (unibyte_has_multibyte_table): Delete it.
5927 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5928 charset_unibyte.
5929 (multibyte_char_to_unibyte_safe): Likewise.
5930 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5931
1ac9108a 5932 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5933 (x_produce_glyphs): Likewise.
5934
5935 * .gdbinit (xcharset): Fix the treating $arg0.
5936
ad9e2d54
EZ
59372009-07-04 Eli Zaretskii <eliz@gnu.org>
5938
5939 Emulation of `getloadavg' on MS-Windows.
50426a04 5940 * w32.c: Include float.h.
ad9e2d54
EZ
5941 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5942 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5943 (get_native_system_info, get_system_times): New functions.
5944 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5945 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5946 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5947 g_b_init_get_system_times, and num_of_processors.
5948
0a3472c7
JR
59492009-07-03 Jason Rumney <jasonr@gnu.org>
5950
5951 * w32term.c (w32_initialize): Use standard types.
5952
80904120
EZ
59532009-07-03 Eli Zaretskii <eliz@gnu.org>
5954
5955 * dired.c (Ffile_attributes): Decode user and group names by the
5956 locale's encoding. (Bug#3443)
5957
6978862d
DN
59582009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5959
f8d23104
DN
5960 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5961 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5962
5963 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5964
5965 * term.c (init_tty): Remove spurious #ifdef.
5966
6978862d
DN
5967 * m/mips.h: Mention this file is also used for netbsd.
5968 * m/pmax.h: Remove file.
5969
e044e4fc
JD
59702009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5971
5972 * xterm.h (struct x_display_info): Add invisible_cursor.
5973 (struct x_output): Add current_cursor.
5974
5975 * xterm.c (XTtoggle_invisible_pointer): New function.
5976 (x_define_frame_cursor): Don't define cursor if invisible or the
5977 same as before. Set current_cursor.
5978 (x_create_terminal): Set toggle_invisible_pointer_hook.
5979
5980 * xfns.c (make_invisible_cursor): New function.
5981 (x_set_mouse_color): Call make_invisible_cursor.
5982 Set current_cursor.
5983 (x_window): Set current_cursor.
5984
5985 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5986
5987 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5988 inserting a character.
5989 (read_avail_input): Call frame_make_pointer_visible.
5990
5991 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5992 (frame_make_pointer_invisible, frame_make_pointer_visible):
5993 New functions.
e044e4fc
JD
5994 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5995
5996 * frame.h: Declare frame_make_pointer_invisible and
5997 frame_make_pointer_visible.
5998 (struct frame): Add pointer_invisible.
5999
574c8efa
JD
60002009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6001
7b507248
JD
6002 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6003 frame isn't visible.
6004 (xg_frame_resized): If width/height is -1, get size of window
6005 from X server.
6006
6007 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6008 for MapNotify.
6009
835bdaa7 6010 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6011 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6012 (flush_and_sync): Reintroduce.
574c8efa 6013
3f1c6666 60142009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6015
31fd7c5c 6016 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6017
6018 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6019 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6020
6021 * frame.h: Declare Qsticky.
6022
cad9ef74
JD
6023 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6024
6025 * nsfns.m (ns_frame_parm_handlers): Ditto.
6026
6027 * frame.c: Declare Qsticky.
6028 (frame_parms): Add sticky.
6029
6030 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6031
6032 * xterm.h: Declare x_set_sticky.
6033
6034 * xterm.c (x_set_sticky): New function.
6035
69b16610
JD
6036 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6037 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6038 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6039
6040 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6041
6042 * frame.c: Qmaximized is new.
6043 (x_set_frame_parameters): Do not handle fullscreen specially.
6044 Only set width and height if explicitly set.
6045 (x_set_fullscreen): Handle Qmaximized.
6046 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6047 (syms_of_frame): Initialize Qmaximized.
6048
1ac9108a
SM
6049 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6050 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6051
6052 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6053 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6054 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6055 set gravity to NorthWestGravity when USE_GTK.
6056 (set_wm_state): New function.
31fd7c5c 6057 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6058 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6059 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6060 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6061 to x_real_positions and x_fullscreen_adjust.
6062
6063 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6064 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6065 flush_and_sync.
6066 (xg_height_changed): New function.
6067 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6068 and gtk_window_set_policy. Set frame gravity after parsing the
6069 geometry string.
3f1c6666
JD
6070 (xg_update_frame_menubar, free_frame_menubar)
6071 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6072 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6073 Remove calls to xg_frame_set_char_size.
6074
fd503d99
KH
60752009-07-01 Kenichi Handa <handa@m17n.org>
6076
6077 * keyboard.c (decode_keyboard_code): New function.
6078 (tty_read_avail_input): Decode the input bytes if necessary.
6079
1ac9108a
SM
6080 * coding.c (setup_coding_system):
6081 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6082 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6083 use Qno_conversion.
6084
24ed93fb
YM
60852009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6086
6087 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6088
99061dfc
CY
60892009-06-30 Chong Yidong <cyd@stupidchicken.com>
6090
1ac9108a 6091 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6092
ff90fbde
JR
60932009-06-30 Jason Rumney <jasonr@gnu.org>
6094
6095 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6096 is already loaded.
6097 Set user model ID if supported (bug#1849).
6098
5f445726
JM
60992009-06-29 Jim Meyering <meyering@redhat.com>
6100
6101 Remove useless if-before-xfree test.
6102 * nsfont.m (nsfont_close): Remove useless test.
6103 * term.c (delete_tty): Likewise.
6104 * w32.c (system_process_attributes): Likewise.
6105 * w32font.c (w32font_close): Likewise.
6106 * xfaces.c (x_free_gc): Likewise.
6107 * xselect.c (buffer): Likewise.
6108
b9607587
AS
61092009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6110
6111 * process.c (send_process): Keep decoded string in a local
6112 variable and protect it from GC. (Bug#3521)
6113
89ba96f4
EZ
61142009-06-28 Eli Zaretskii <eliz@gnu.org>
6115
6116 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6117 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6118
098a1589
CY
61192009-06-28 Chong Yidong <cyd@stupidchicken.com>
6120
485422be
CY
6121 * xdisp.c (start_display, handle_face_prop)
6122 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6123 (redisplay_window, try_window_id, produce_image_glyph):
6124 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6125
098a1589
CY
6126 * xterm.c (x_update_window_begin, x_new_focus_frame)
6127 (x_scroll_bar_handle_click, handle_one_xevent)
6128 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6129 (x_make_frame_visible, x_make_frame_invisible)
6130 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6131 code chunks that are now obsolete.
6132
78c38319
MA
61332009-06-28 Michael Albinus <michael.albinus@gmx.de>
6134
6135 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6136 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6137 for hours, when optimzation is enabled.
6138 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6139 (xd_read_message): Make them static.
6140
4189ed40
CY
61412009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6142
6143 * term.c (turn_on_face): Allow simultaneously bold and dim
6144 terminal faces (Bug#3530).
6145
cd9b5e16
CY
61462009-06-27 Chong Yidong <cyd@stupidchicken.com>
6147
4e23bedb
CY
6148 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6149
cd9b5e16
CY
6150 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6151 truncation glyphs (Bug#3686).
6152
07cc3c35
GM
61532009-06-27 Glenn Morris <rgm@gnu.org>
6154
6155 * m/pmax.h: Restore file, with only netbsd portions.
6156
31fd7c5c 61572009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6158
cd9b5e16 6159 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6160
42d4a64f
KH
61612009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6162
6163 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6164 the arg FORCE_SYMBOL.
6165
930fe55b 61662009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6167
6168 * fontset.c (fontset_find_font): When a usable rfont_def is found
6169 in a fallback font-group, make it the first element of the group.
6170
57ebc3fd
CY
61712009-06-24 Chong Yidong <cyd@stupidchicken.com>
6172
6173 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6174
f084f942
KH
61752009-06-24 Kenichi Handa <handa@m17n.org>
6176
6177 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6178 set for C.
6179 (fontset_font): Record the availability of a font for C both in
6180 the realized fontsets of the current one and the default one.
6181
2f686c87
DN
61822009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6183
6184 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6185 conditional, it is always defined on AIX.
6186
666e158e
MB
61872009-06-23 Miles Bader <miles@gnu.org>
6188
6189 * window.c (Vrecenter_redisplay): New variable.
6190 (syms_of_window): Initialize it.
6191 (Qtty): New extern declaration.
6192 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6193
c6da7cd2
JM
61942009-06-23 Jim Meyering <meyering@redhat.com>
6195
1ac9108a
SM
6196 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6197 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6198 pointer dereferences are guaranteed to be valid.
c6da7cd2 6199
678dca3d
KH
62002009-06-23 Kenichi Handa <handa@m17n.org>
6201
74d75424
KH
6202 * emacs.c (main): Call init_font ().
6203
6204 * font.h (Vfont_log): Extern it.
6205 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6206
6207 * font.c (font_sort_entities, font_list_entities)
6208 (font_matching_entity, font_open_entity)
6209 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6210 (Vfont_log): Delete static.
6211 (font_log_env_checked): Delete this variable.
6212 (font_add_log): Don't check font_log_env_checked.
6213 (font_deferred_log): Check Vfont_log.
6214 (init_font): New function.
6215
678dca3d
KH
6216 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6217
6218 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6219
6220 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6221
6222 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6223
6224 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6225 (face_for_char): Don't call font_deferred_log here.
6226 (font_for_char): Likewise.
6227
8a668709
CY
62282009-06-22 Chong Yidong <cyd@stupidchicken.com>
6229
9a01ee33
CY
6230 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6231 rather than its background_width for drawing the overline and
6232 underline (Bug#489).
6233
6234 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6235 rather than its background_width for drawing the overline and
6236 underline (Bug#489).
ec7c9926
CY
6237 (xg_default_icon_file): New variable.
6238 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6239 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6240
8a668709
CY
6241 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6242 (load_overlay_strings): Remove externs.
6243 (fast_find_position): Function deleted.
6244 (mouse_face_from_buffer_pos): New function, based on
6245 fast_find_position. Correctly handle before-strings,
6246 display-strings, and after-strings (Bug#1220).
6247 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6248
4d4c02d8
CY
62492009-06-21 Chong Yidong <cyd@stupidchicken.com>
6250
1ac9108a 6251 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6252 (move_it_in_display_line_to, move_it_in_display_line_to)
6253 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6254
70243478
CY
62552009-06-21 Chong Yidong <cyd@stupidchicken.com>
6256
6257 * Branch for 23.1.
6258
13087e59
JR
62592009-06-21 Jason Rumney <jasonr@gnu.org>
6260
6261 * w32term.c (keyboard_codepage): New static variable.
6262 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6263 (w32_read_socket) [WM_CHAR]: Use it to decode character
6264 input (bug#3237).
6265 (w32_initialize): Initialize it.
6266 (codepage_for_locale): New function.
6267
4735b74e
KR
62682009-06-20 Ken Raeburn <raeburn@raeburn.org>
6269
6270 * process.c (status_message): Pass Faset index argument as a lisp
6271 object, so as to work with USE_LISP_UNION_TYPE.
6272
0e727afa
YM
62732009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6274
6275 * coding.c (Ffind_coding_systems_region_internal):
6276 Cache checked characters.
6277
cf299835
KH
62782009-06-18 Kenichi Handa <handa@m17n.org>
6279
1ac9108a 6280 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6281
90f20d94
AS
62822009-06-18 Andreas Schwab <aschwab@redhat.com>
6283
6284 * xdisp.c (redisplay_internal): Check that the frame is still
6285 live after redisplay of its windows.
6286 (redisplay_windows): Check that the window is still live.
6287
7f1faf1c
KH
62882009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6289
6290 * coding.c (detect_coding_utf_16): Fix previous change.
6291
cc13543e
KH
62922009-06-16 Kenichi Handa <handa@m17n.org>
6293
6294 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6295 UTF-16 by checking the dispersion of Eth and Oth bytes.
6296
977b85f4
AS
62972009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6298
6299 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6300
66bd43d1
KH
63012009-06-15 Kenichi Handa <handa@m17n.org>
6302
6303 * process.c (status_message): Fix previous change. Be sure to
6304 decode a localized string.
6305
cb5ca9c5
YM
63062009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6307
6308 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6309 add comment explaining why.
6310
ec7709ba 63112009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6312
ec7709ba 6313 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6314
4b7f335c
AR
63152009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6316
6317 * nsfont.m (ns_attribute_value): Remove.
6318 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6319 (ns_has_attribute): Shrink the normal range.
6320 (ns_findfonts): Don't worry about requested spec in determining
6321 need for synthItal.
e41820ee 6322 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6323
73b26103
SZ
63242009-06-14 Seiji Zenitani <zenitani@mac.com>
6325
6326 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6327
5753e4da
KH
63282009-06-11 Kenichi Handa <handa@m17n.org>
6329
6330 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6331 overhang for the static composition case.
6332
3561b671
KH
63332009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6334
5753e4da
KH
6335 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6336 overhang for the automatic composition case.
6337
3561b671
KH
6338 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6339 composition case.
6340
852bbd41
CY
63412009-06-10 Chong Yidong <cyd@stupidchicken.com>
6342
6343 * xdisp.c (get_next_display_element): When handling wrap-prefix
6344 and line-prefix, treat \n as a control character (bug#3502).
6345
9903d1e6
KH
63462009-06-10 Kenichi Handa <handa@m17n.org>
6347
6348 * font.c (font_parse_family_registry): Fix for one-char foundry.
6349 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6350
0bcbaaaa
CY
63512009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6352
6353 * process.c (status_message): Fix handling of multibyte signal
6354 string (Bug#3499).
6355
40aa3f13
JM
63562009-06-09 Jim Meyering <meyering@redhat.com>
6357
1f80c7e2
CY
6358 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6359 color name is missing.
40aa3f13 6360
72d51285
KH
63612009-06-09 Kenichi Handa <handa@m17n.org>
6362
6363 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6364 FROM-CODE and TO-CODE are codepoints of CHARSET.
6365
c1d04d84
AR
63662009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6367
6368 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6369
63702009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6371
6372 Changes to support :script/:lang/:otf in NS font driver.
6373 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6374 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6375 indicate not part of font driver interface, and change callers.
6376 (ns_get_family): Remove pointless null check.
6377 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6378 ns_spec_to_descriptor, ns_descriptor_to_entity.
6379 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6380 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6381 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6382 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6383 (ns_get_req_script, ns_accumulate_script_ranges)
6384 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6385 New functions.
6386 (nsfont_list, nsfont_match): Use ns_findfonts.
6387 (nsfont_open): Use font descriptor instead of traits.
6388 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6389 (dump_glyphstring): Rename to ns_dump_glyphstring.
6390
c7eb9816
AR
6391 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6392
c1d04d84
AR
6393 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6394
6395 * fontset.c (fontset_from_font): Remove NS-specific code.
6396
ec7709ba 63972009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6398
6399 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6400 nonactive windows.
6401
31fd7c5c 64022009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6403
1ac9108a 6404 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6405
68852c13 64062009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6407
6408 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6409
6756cd1d
CY
64102009-06-07 Chong Yidong <cyd@stupidchicken.com>
6411
6412 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6413 account for the overflowing of newlines into the last glyph on the
6414 display line (Bug#3482).
6415
28bf482a
DR
64162009-06-05 David Reitter <david.reitter@gmail.com>
6417
ec7709ba
JB
6418 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6419 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6420 Fns_selection_exists_p, Fns_selection_owner_p.
6421
fdb55376
JR
64222009-06-03 Jason Rumney <jasonr@gnu.org>
6423
6424 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6425 available. (Bug#3379)
6426
05129fbe
KH
64272009-05-29 Kenichi Handa <handa@m17n.org>
6428
1ac9108a
SM
6429 * coding.c (get_translation_table):
6430 Check Venable_character_translation.
05129fbe 6431
ec7709ba 64322009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6433
ec7709ba
JB
6434 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6435 (x_make_frame_visible): Move frame to front rather than calling
15891144 6436 ns_raise_frame().
ec7709ba 6437 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6438 isn't key window.
ec7709ba 6439 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6440 drawRect may be called by NSView even if the frame is hidden.
6441
ec7709ba
JB
6442 * nsfns.m (Fx_create_frame): Follow other ports in
6443 determining visibility; default to t. Ensure async_visible is set.
15891144 6444
21f73755
EZ
64452009-05-23 Eli Zaretskii <eliz@gnu.org>
6446
6447 * dired.c (Ffile_attributes): Doc fix.
6448
34001e41
CY
64492009-05-22 Chong Yidong <cyd@stupidchicken.com>
6450
6451 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6452
46306a17
SM
64532009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6454
6455 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6456 and xfont_scratch_props.
6457 (syms_of_xfont): Do it here instead.
6458 (xfont_find_ccl_program): Delete, unused.
6459 (xfont_open): Delete unused var `i'.
6460
ef6e0694
KH
64612009-05-21 Kenichi Handa <handa@m17n.org>
6462
6463 * fontset.c (Qlatin): Don't make it static.
6464
46306a17
SM
6465 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6466 New functions.
ef6e0694
KH
6467 (xfont_scripts_cache, xfont_scratch_props): New variables.
6468 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6469 (xfont_list_pattern): Argument changed. Callers changed.
6470 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6471 (xfont_list): Don't reject a font spec with :script property.
6472 (xfont_has_char): Fix setting of encoding.
6473 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6474 xfont_scratch_props.
6475
64762009-05-19 Kenichi Handa <handa@m17n.org>
6477
46306a17 6478 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6479 Callers changed.
6480
64812009-05-18 Kenichi Handa <handa@m17n.org>
6482
6483 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6484
ac71ced7
SM
64852009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6486
6487 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6488 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6489
1c6d1051
YM
64902009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6491
6492 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6493 (x_delete_terminal): Dissociate resource database from display and
6494 then call XrmDestroyDatabase before closing display.
6495
9b9b779c
AR
64962009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6497
6498 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6499 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6500 whether selected frame is viable before raising it (based on patch
6501 by David Reitter), and improve commentary.
6502 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6503
cccd42d5
KH
65042009-05-15 Kenichi Handa <handa@m17n.org>
6505
6506 * font.c (Ffont_spec): Check arguments.
6507
337fbd17
CY
65082009-05-14 Chong Yidong <cyd@stupidchicken.com>
6509
6510 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6511 weight when testing attributes (Bug#3282).
6512
47a6002f
JD
65132009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6514
6515 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6516 what we expect to get in the next ConfigureNotify event.
6517
9cb363db
YM
6518 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6519 before Xft one (Bug#1696).
6520
b9126609
CY
65212009-05-07 David Reitter <david.reitter@gmail.com>
6522
6523 * nsfns.m (Fx_display_planes): Compute bitplanes using
6524 NSBitsPerPixelFromDepth (Bug#3207).
6525
27a69fd9
CY
65262009-05-10 Chong Yidong <cyd@stupidchicken.com>
6527
6528 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6529
00f37552
TTN
65302009-05-10 Ulrich Mueller <ulm@gentoo.org>
6531
6532 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6533
2d82a920
DR
65342009-05-07 David Reitter <david.reitter@gmail.com>
6535
ec7709ba
JB
6536 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6537 Respect mouse face background.
2d82a920 6538
46b0d52d
DR
65392009-05-07 David Reitter <david.reitter@gmail.com>
6540
ec7709ba
JB
6541 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6542 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6543 in ns_update_begin and ns_update_end.
6544
ce1b23bb
SM
65452009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6546
5996e1b7
SM
6547 * nsfns.m (ns_get_screen): Rewrite.
6548 Don't presume selected-frame is of type `ns'.
6549
ba98e3a0
SM
6550 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6551 all drivers.
6552
ce1b23bb
SM
6553 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6554
bcda200f
YM
65552009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6556
6557 * keyboard.h (add_user_signal): Fix typo in extern.
6558
6559 * lisp.h (add_user_signal): Remove extern.
6560
6561 * unexelf.c (unexec): Consider a section to precede the .bss section
6562 if its addresses overlap that of .bss.
6563 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6564 instead of dumping process.
6565
864660a2
SM
65662009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6567
6568 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6569
50da4e56
SM
65702009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6571
6572 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6573
51520a1a
DN
65742009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6575
6576 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6577 any statements.
6578
409ea3a1
AS
65792009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6580
59c4c60f
AS
6581 * process.c (read_process_output): Make sure the current buffer is
6582 always restored.
6583
409ea3a1
AS
6584 * coding.c (record_conversion_result): Don't modify
6585 Vlast_code_conversion_error for successful result.
6586 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6587
56f00ed2
KH
65882009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6589
6590 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6591 (load_charset_map): Remove unnecessary code.
56f00ed2 6592
4491c9d2
DR
65932009-04-30 David Reitter <david.reitter@gmail.com>
6594
35f5b128 6595 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6596 through f24.
6597
6970f632
CY
65982009-04-30 Chong Yidong <cyd@stupidchicken.com>
6599
6600 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6601
6602 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6603 face_at_buffer_position.
6604 (face_before_or_after_it_pos, get_next_display_element)
6605 (note_mouse_highlight): Update face_at_buffer_position call.
6606
6607 * term.c (term_mouse_highlight):
6608 * msdos.c (IT_note_mouse_highlight):
6609 * fontset.c (Finternal_char_font):
35f5b128 6610 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6611
6612 * dispextern.h (face_at_buffer_position): Update prototype.
6613
0c616f63
KH
66142009-04-30 Kenichi Handa <handa@m17n.org>
6615
35f5b128 6616 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6617
ad3aaf33
AS
66182009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6619
6620 * callproc.c (Fcall_process): Fix GC protection. Make sure
6621 current buffer is always restored.
6622
c3c963a0
YM
66232009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6624
6625 * atimer.c (init_atimer): Also clear stopped_atimers.
6626
6627 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6628
7e3386cb
YM
6629 * process.c (create_process): Clean up merger residues of
6630 2008-07-17 change.
6631
91f68422
CY
66322009-04-29 Ulrich Mueller <ulm@gentoo.org>
6633
6634 * lread.c (Vread_circle): New variable.
6635 (read1): Disable recursive read if Vread_circle is nil.
6636
24b34550
KH
66372009-04-29 Kenichi Handa <handa@m17n.org>
6638
6639 * fontset.h (set_default_ascii_font): Delete extern.
6640
6641 * fontset.c (set_default_ascii_font): Delete this unused function.
6642
6643 * frame.c (x_set_font): When ARG is a font-object, check if the
6644 font-object matches with the ASCII font-spec of the frame's
9c358bda 6645 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6646
77bf07e1
AS
66472009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6648
6649 * fns.c (Flocale_info): Protect vector from GC during decoding.
6650
6651 * process.c (Fstart_process): Protect argv strings from GC during
6652 encoding.
6653
2c55aacf
AS
66542009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6655
6656 * sysdep.c: Include <ctype.h>.
6657
b892d3c9
DR
66582009-04-27 David Reitter <david.reitter@gmail.com>
6659
35f5b128 6660 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6661 Remove commented-out code.
6662
9d0644c4
JB
66632009-04-26 Johan Bockgård <bojohan@gnu.org>
6664
6665 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6666
b7053016
JR
66672009-04-25 Jason Rumney <jasonr@gnu.org>
6668
6669 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6670
4e8231f3
YM
66712009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6672
6673 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6674 Swap bytes in short integer if fringe bitmap width > 8.
6675
493dcf2c
KH
66762009-04-23 Kenichi Handa <handa@m17n.org>
6677
6678 * xfaces.c (Fx_list_fonts): If a font size is specified in
6679 PATTERN, set it in returned scalable fonts.
6680
401e9e57
CY
66812009-04-22 Chong Yidong <cyd@stupidchicken.com>
6682
708e05dc
CY
6683 * keyboard.c (Fset_input_meta_mode): Doc fix.
6684
6685 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6686
1ac9108a 6687 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6688
6689 * coding.c (Fterminal_coding_system): Doc fix.
6690
6691 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6692 (Fx_display_pixel_height, Fx_display_planes)
6693 (Fx_display_color_cells, Fx_server_max_request_size)
6694 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6695 (Fx_display_mm_height, Fx_display_mm_width)
6696 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6697 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6698 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6699 (check_x_display_info): Handle terminal objects instead of
6700 terminal ids.
6701
401e9e57
CY
6702 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6703 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6704 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6705 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6706
df80c7f0
KH
67072009-04-21 Kenichi Handa <handa@m17n.org>
6708
5a8f12af 6709 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6710 (font_score): Check AVGWIDTH too.
908567ef 6711
df80c7f0
KH
6712 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6713 worst case.
1ac9108a
SM
6714 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6715 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6716
705af33f
JR
67172009-04-19 Jason Rumney <jasonr@gnu.org>
6718
6719 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6720 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6721
6722 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6723 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6724 get_phys_cursor_geometry.
6725
b71ac3dd 6726 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6727 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6728 using get_phys_cursor_geometry.
6729
6730 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6731 correctly calculated.
6732
dc2933eb
JD
67332009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6734
1ac9108a
SM
6735 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6736 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6737 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6738 is deprecated.
6739
973e7849
AS
67402009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6741
6742 * font.c (font_put_frame_data): Use xfree instead of free.
6743
314d66f4
JB
67442009-04-17 Juanma Barranquero <lekktu@gmail.com>
6745
6746 * w32font.c (Qja, Qko): Remove declarations.
6747 (syms_of_w32font): Don't DEFSYM them.
6748
cf702558
CY
67492009-04-17 Chong Yidong <cyd@stupidchicken.com>
6750
6751 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6752
6753 * font.h (Qja, Qko): Extern them.
6754
6755 * ftfont.c (Qja, Qko): Remove declarations.
6756
6757 * xfont.c (Qja, Qko): Remove declarations.
6758
b50504f5
KH
67592009-04-17 Kenichi Handa <handa@m17n.org>
6760
bde25748
KH
6761 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6762 string from a vector to handle Latin-1 characters correctly.
6763
b50504f5
KH
6764 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6765 entity even if the cache hits.
6766
f4646fff
AS
67672009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6768
6769 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6770 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6771
e7deaab0
AS
6772 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6773 * lisp.h: Adjust prototypes.
6774
0a0e7d49
CY
67752009-04-16 Chong Yidong <cyd@stupidchicken.com>
6776
6777 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6778 change (Bug#3003).
6779
3c908a57
KH
67802009-04-16 Kenichi Handa <handa@m17n.org>
6781
1ac9108a 6782 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6783
6784 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6785 adstyle.
6786
6787 * ftfont.c (Qja, Qko): Don't make them static.
6788 (enum ftfont_cache_for): New enum.
6789 (fc_charset_table): Undo the previous change.
6790 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6791 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6792 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6793 non-scarable font, try to get AVERAGE_WIDTH.
6794 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6795 Change ft_face_cache from a list of a hash-table. Don't check
6796 `ja' and `ko' adstyle here.
6797 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6798 FTFONT_CACHE_FOR_CHARET.
6799 (ftfont_get_charset): Undo the previous change.
1ac9108a 6800 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6801 (ftfont_close): Likewise.
6802 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6803
6804 * font.c (font_sort_entites): Change the meaning of the arg
6805 BEST-ONLY. Don't optimize for VEC of lenght 1.
6806 (font_select_entity): Just return the value of font_sort_entites.
6807
6808 * xfaces.c (merge_face_vectors): Reflect font properties in
6809 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6810 font_clear_prop if a face attribute doesn't change.
6811
3c908a57
KH
6812 * charset.h (charset_ksc5601): Extern it.
6813
6814 * charset.c (charset_ksc5601): New variable.
6815 (Fdefine_charset_internal): Set charset_ksc5601.
6816 (init_charset_once): Initialize charset_ksc5601 to -1.
6817
d65859c3
DN
68182009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6819
6820 * fileio.c (history_delete_duplicates): Remove unused declaration.
6821
6822 * callint.c (history_delete_duplicates): New declaration.
6823 (Fcall_interactively): Remove command history duplicates when
6824 history_delete_duplicates is true.
6825
3ba010e5
EZ
68262009-04-14 Eli Zaretskii <eliz@gnu.org>
6827
6828 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6829
06f19b91
KH
68302009-04-14 Kenichi Handa <handa@m17n.org>
6831
6832 * font.c (Ffont_info): Fix docstring. Fix the second element of
6833 the returned value (bug#2949).
6834
2cce8bfc
CY
68352009-04-14 Chong Yidong <cyd@stupidchicken.com>
6836
6837 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6838
d156542d
KH
68392009-04-14 Kenichi Handa <handa@m17n.org>
6840
6841 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6842 encoding charset is ascii_compatible.
6843
6844 * charset.c (Fdefine_charset_internal): Make charset
6845 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6846 code_offset is 0, and covers all ASCII characters.
6847
86fa089e
SM
68482009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6849
6850 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6851 (ns_string_to_pasteboard_internal):
6852 * nsmenu.m (process_dialog):
6853 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6854 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6855 * lisp.h (Fx_load_color_file): Declare.
6856
a8a3728b
KH
68572009-04-13 Kenichi Handa <handa@m17n.org>
6858
1ac9108a 6859 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6860 (font_select_entity): Suppress the code to optimize for the same
6861 kind of fonts.
6862 (font_load_for_lface): Get a font that supports at least ASCII
6863 characters.
6864
6865 * ftfont.c (Qja, Qko): New variables.
6866 (fc_charset_table): Delete uniquifier data for iso8859-1.
6867 (ftfont_get_latin1_charset): New function.
6868 (get_adstyle_property): New function.
6869 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6870 bitmap fonts.
6871 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6872 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6873 `ko' or `ja'.
6874 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6875 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6876 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6877 property.
6878 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6879 (syms_of_ftfont): DEFSYM Qja and Qko.
6880
483670b5
KH
68812009-04-09 Kenichi Handa <handa@m17n.org>
6882
12b55765
KH
6883 * charset.c (map_charset_chars): For a charset of `superset'
6884 method, fix calculation of code range.
6885
483670b5
KH
6886 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6887 from the list of extra properties.
6888 (font_clear_prop): Be sure to delete `:name' font property.
6889
57d3b93b
KH
68902009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6891
b4b2c2ca
YM
6892 * dispnew.c (redraw_overlapping_rows): Fix detection of
6893 overlapping for topmost and bottommost rows.
6894
1ac9108a 6895 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6896
472c3609
JR
68972009-04-06 Jason Rumney <jasonr@gnu.org>
6898
6899 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6900
ab193662
KH
69012009-04-06 Kenichi Handa <handa@m17n.org>
6902
6903 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6904
6905 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6906
0c26f026
KH
69072009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6908
6909 * ftfont.c (ftfont_open): Fix checking of the return value of
6910 FT_Load_Char. Fix setting font->underline_thickness.
6911
e173bbce
CY
69122009-04-04 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6915 (Fterminal_parameters, Fterminal_parameter)
6916 (Fset_terminal_parameter): In doc string, refer to terminal
6917 objects rather than terminal ids.
6918
693a2698
EZ
69192009-04-04 Eli Zaretskii <eliz@gnu.org>
6920
6921 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6922 ret_lim_data. (Bug#2867)
6923
d5221487
CY
69242009-04-03 Chong Yidong <cyd@stupidchicken.com>
6925
6926 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6927 so they don't get wider than the window, matching 2006-01-23
6928 change to the partner function in xdisp.c (Bug#2800).
6929
223509a3
KH
69302009-04-03 Kenichi Handa <handa@m17n.org>
6931
6932 * print.c (print_object): Make each lowest sub_char_table start a
6933 new line (Bug#2866).
6934
74fcd0b1
KH
69352009-04-02 Kenichi Handa <handa@m17n.org>
6936
6937 * fontset.c (fontset_font): Record no-font when a fontset
6938 explicitly tells not to try another font-specs.
6939
c542407d
SM
69402009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6941
6942 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6943
e3869731
KH
69442009-03-30 Kenichi Handa <handa@m17n.org>
6945
d8d2f142
KH
6946 * fontset.c (fontset_from_font): Specify only registry in a
6947 font-spec for all characters supported by that registry.
6948
e3869731
KH
6949 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6950 even if HAVE_M17N_FLT is not defined.
6951
5da5f805
CY
69522009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6953
6954 * ftfont.c: Conditionalize prototyping and use of
6955 ftfont_variation_glyphs.
6956
ab226c50
SM
69572009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6958
9628fed7
SM
6959 * frame.c (delete_frame): Work around compiler bug.
6960
6961 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6962 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6963 Some more EMACS_INT.
6964 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6965
6966 * xdisp.c (dump_glyph): Fix typo.
6967
ae19ba7c
SM
6968 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6969 (adjust_markers_gap_motion, adjust_markers_for_delete)
6970 (adjust_markers_for_insert, adjust_point)
6971 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6972 (make_gap, copy_text, count_size_as_multibyte, insert)
6973 (insert_and_inherit, insert_before_markers)
6974 (insert_before_markers_and_inherit, insert_1)
6975 (count_combining_before, count_combining_after, insert_1_both)
6976 (insert_from_string, insert_from_string_before_markers)
6977 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6978 (insert_from_buffer_1, adjust_after_replace)
6979 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6980 (replace_range_2, del_range, del_range_1, del_range_byte)
6981 (del_range_both, del_range_2, modify_region)
6982 (prepare_to_modify_buffer, signal_before_change)
6983 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6984 for buffer positions and sizes.
6985 * lisp.h: Adjust prototypes accordingly.
6986
6987 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6988 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6989 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6990
ab226c50
SM
6991 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6992
46dfb8fb
JD
69932009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6994
6995 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6996 lines and columns so we keep the same pixel height and width.
6997
6998 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6999 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7000 (x_handle_net_wm_state): New function to update frame parameter
7001 fullscreen.
7002 (x_term_init): Initialize atoms for _NET_WM_STATE.
7003
7004 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7005
d347e494
SM
70062009-03-27 Kevin Ryde <user42@zip.com.au>
7007
7008 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7009 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7010 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7011 (Fgpm_mouse_stop): Pass that new parameter.
7012 * termhooks.h (close_gpm): Adjust prototype.
7013
84db11d6
SM
70142009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7015
c95a5008
SM
7016 * lisp.h (Fx_focus_frame): Declare.
7017
84db11d6
SM
7018 * callint.c (Fcall_interactively): For '^' just delegate the work to
7019 handle-shift-selection.
7020 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7021
0a1958d6
CY
70222009-03-24 Chong Yidong <cyd@stupidchicken.com>
7023
0bfdff23
CY
7024 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7025
0a1958d6
CY
7026 * data.c (Qinteractive_form): New variable.
7027 (Finteractive_form): Use it.
7028
7029 * eval.c (Fcommandp): Use Qinteractive_form.
7030
58aec0d6
JR
70312009-03-24 Jason Rumney <jasonr@gnu.org>
7032
7033 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7034 Calculate total size precisely. Decode environment variables
7035 before substituting. (Bug#38)
7036
553dd618
KH
70372009-03-24 Kenichi Handa <handa@m17n.org>
7038
7039 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7040 encoding (Bug#2722).
553dd618 7041
c39ea606
JD
70422009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7043
7044 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7045 that gdpy is set.
7046
bc9b2b5e
AM
70472009-03-22 Alan Mackenzie <acm@muc.de>
7048
7049 * callint.c (Finteractive): Clarify the doc string - even
7050 promptless elements need \n separators.
7051
9f995a76
JR
70522009-03-22 Jason Rumney <jasonr@gnu.org>
7053
7054 * w32term.c (syms_of_w32term): Doc fix for
7055 x-use-underline-position-properties.
7056
22749e9a
EZ
70572009-03-21 Eli Zaretskii <eliz@gnu.org>
7058
7059 * w32.c (getpwuid): Change argument type to unsigned.
7060 (struct w32_id): Change type of `rid' member to unsigned.
7061 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7062 argument ID to unsigned. All callers changed.
7063 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7064
e00553bf
EZ
70652009-03-20 Eli Zaretskii <eliz@gnu.org>
7066
7067 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7068 negative, produce a float value.
7069
7070 * dired.c (make_uid, make_gid): New functions.
7071 (Ffile_attributes): Use them to avoid negative UID and GID.
7072
f761d6b6
JB
70732009-03-20 Juanma Barranquero <lekktu@gmail.com>
7074
7075 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7076 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7077 Fix typos in docstrings.
7078
d507f8d7
KH
70792009-03-19 Kenichi Handa <handa@m17n.org>
7080
7081 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7082 changed, use font_load_for_lface to get a new font object.
7083 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7084
7085 * frame.c (x_set_font): Handle the case that ARG is a cons.
7086
c68845e0
GM
70872009-03-19 Glenn Morris <rgm@gnu.org>
7088
7089 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7090
bfa49dd1
CY
70912009-03-19 Chong Yidong <cyd@stupidchicken.com>
7092
7093 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7094
8458d4c1
KH
70952009-03-19 Kenichi Handa <handa@m17n.org>
7096
7097 * charset.c (load_charset_map_from_file): When a mapfile can't be
7098 loaded, signal an error.
7099
78e7d1fe
EZ
71002009-03-18 Eli Zaretskii <eliz@gnu.org>
7101
7102 * dired.c (Ffile_attributes): Make sure UID and GID are always
7103 positive, even if the value is too large for a positive EMACS_INT.
7104 Doc fix.
7105
7106 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7107
5da9fdfa
YM
71082009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7109
7110 * xmenu.c (xdialog_show): Move Fredisplay call ...
7111 (Fx_popup_dialog): ... here.
7112
7519c40d
SM
71132009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7114
7115 * dired.c (file_name_completion): Disable the first optimization just
7116 installed, since it is not implemented correctly.
7117
2cd298e2
SM
71182009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7119
7120 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7121 only if the entry can affect bestmatch.
2cd298e2
SM
7122 Stop the search early, as Ftry_completion already does.
7123
48d37adf
CY
71242009-03-17 Chong Yidong <cyd@stupidchicken.com>
7125
e10c9c93 7126 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7127
9286b16a
CY
71282009-03-15 Chong Yidong <cyd@stupidchicken.com>
7129
7130 * keyboard.c (parse_menu_item): Don't display remappings as menu
7131 equivalent bindings (Bug#788).
7132
f7b146dc
JR
71332009-03-15 Jason Rumney <jasonr@gnu.org>
7134
7135 * w32term.h (WM_EMACS_PAINT): New message.
7136 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7137 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7138 before passing to lisp thread. (Bug#950)
7139
f761d6b6 71402009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7141
d93f9575
CY
7142 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7143 variable as it was never reset.
7144 (ns_term_init): Remove initialization of Lisp-settable defaults
7145 and ns_expand_space.
7146 (-setPanelFromDefaultValues): Remove ns_expand_space.
7147 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7148 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7149 i.e. no additional spacing, similar to Carbon port.
7150
d93f9575
CY
7151 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7152 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7153
305018ec
JD
71542009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7155
7156 * sound.c (alsa_configure): Remove call to deprecated
7157 snd_pcm_sw_params_set_xfer_align.
7158
f761d6b6 71592009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7160
7161 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7162 after clicking in a detached tool bar.
7163 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7164
46e722a9
SM
71652009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7166
348db3dd
SM
7167 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7168 int/Lisp_Object mixup).
46e722a9 7169
a3d16f39
KH
71702009-03-13 Kenichi Handa <handa@m17n.org>
7171
7172 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7173 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7174 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7175 (set_fontset_font): Change ARG to a vector. Handle range_list in
7176 ARG correctly.
7177 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7178 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7179 the above change.
7180 (fontset_from_font): Fix previous change.
fe24f56a 7181 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7182 entry. If FONTSET is the default fontset, don't set the extra
7183 slot of the returning char-table.
7184
b066e6b6
JB
71852009-03-12 Juanma Barranquero <lekktu@gmail.com>
7186
7187 * nsfns.m (Fx_close_connection): Doc fix.
7188 (Fns_do_applescript): Reflow docstring.
7189 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7190 (Fx_display_pixel_width, Fx_display_pixel_height)
7191 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7192 Fix typos in docstrings.
7193 (Fns_set_alpha): Fix typos in error messages.
7194
d472514e 71952009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7196
d472514e 7197 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7198 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7199 were used for such events.
7200
d472514e
JB
7201 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7202 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7203
d472514e 7204 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7205 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7206
fb930676
KH
72072009-03-11 Kenichi Handa <handa@m17n.org>
7208
ff85581a
KH
7209 * font.h (font_open_by_spec): Extern it.
7210
c50b7e98
KH
7211 * font.c (font_open_by_spec): New function.
7212 (font_open_by_name): Use font_open_by_spec.
7213
fb930676
KH
7214 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7215 fontset of the frame.
7216
7217 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7218 modify the default font of frames that use this fontset.
7219 (num_auto_fontsets): New variable.
7220 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7221 name. Be sure to set FONTSET_ASCII to the correct font name.
7222 (update_auto_fontset_alist): New function.
7223
df4e8455
JB
72242009-03-11 Juanma Barranquero <lekktu@gmail.com>
7225
7226 * makefile.w32-in: Update dependencies.
7227
0a375797
AR
72282009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7229
7230 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7231
61313fa3
SM
72322009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7233
7234 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7235
b55103fb
CY
72362009-03-10 Chong Yidong <cyd@stupidchicken.com>
7237
7238 * lread.c (Feval_buffer): Doc fix.
7239
dde2559c
KH
72402009-03-09 Kenichi Handa <handa@m17n.org>
7241
7242 * charset.c (Qfile_name_handler_alist): Extern it.
7243 (load_charset_map_from_file): Temporarily bind
7244 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7245
df4e8455 72462009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7247
47f588bb
GM
7248 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7249 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7250
4ddf94bd
AR
72512009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7252
4c9bdfc2
AR
7253 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7254 (x_set_window_size): Change back to calculated method of setting
7255 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7256 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7257 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7258
fe41ae9e
AR
7259 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7260
4c9bdfc2
AR
7261 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7262 accelerator in parens under GNUstep.
7263
825d0875
KH
72642009-03-06 Kenichi Handa <handa@m17n.org>
7265
7266 These changes are to detect incorrect composition sequence without
f3b3be74 7267 looking ahead the source. (Bug#2370)
825d0875
KH
7268
7269 * coding.h: Include "composite.h".
7270 (enum compisition_state): New enum.
7271 (struct compisition_status): New struct.
7272 (struct iso_2022_spec): New member cmp_status.
7273 (struct emacs_mule_spec): New struct.
7274 (struct coding_system): New members ctext_extended_segment_len and
7275 embedded_utf_8. Change the union member
7276 spec.emacs_mule_full_support to spec.emacs_mule.
7277
7278 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7279 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7280 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7281 (ADD_COMPOSITION_DATA): New arg nbytes.
7282 (emacs_mule_char): New arg cmp_status.
7283 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7284 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7285 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7286 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7287 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7288 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7289 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7290 (EMACS_MULE_COMPOSITION_END): New macro.
7291 (emacs_mule_finish_composition): New function.
7292 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7293 (decode_coding_emacs_mule): Avoid long looking ahead while
7294 handling composition.
7295 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7296 (ENCODE_COMPOSITION_RULE): New macro.
7297 (finish_composition): New function.
7298 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7299 (DECODE_COMPOSITION_START): New implementation.
7300 (DECODE_COMPOSITION_END): Likewise.
7301 (STORE_COMPOSITION_RULE): New macro.
7302 (decode_coding_iso_2022): Avoid long looking ahead while handling
7303 composition, CTEXT extended segment, and embedded UTF-8.
7304 (setup_coding_system): For a coding of type iso-2022, reset
7305 CODING_ISO_EXTSEGMENT_LEN (coding) and
7306 CODING_ISO_EMBEDDED_UTF_8 (coding).
7307 (get_translation): Delete arguments last_block, from_nchars,
7308 to_nchars. Callers changed.
7309 (produce_chars): Don't modify charbuf. Adjusted for the change of
7310 get_translation.
98a326f7 7311 (produce_composition): Adjust for the new annotation sequence.
825d0875 7312 (handle_composition_annotation): Likewise.
98a326f7 7313 (consume_chars): Adjust for the change of get_translation.
825d0875 7314
ccbc4452
AR
73152009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7316
4ddf94bd 7317 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7318
988a7ddb
KH
73192009-03-05 Kenichi Handa <handa@m17n.org>
7320
7321 * font.c (font_select_entity): New function.
7322 (font_find_for_lface): Use font_select_entity to select a font.
7323
7324 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7325 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7326 font with C restriction.
7327
98a326f7 73282009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7329
be1bce46 7330 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7331
10ea2b82
JR
73322009-03-04 Jason Rumney <jasonr@gnu.org>
7333
2c93b248 7334 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7335 characters that have already been read. (Bug#2569)
2c93b248 7336
10ea2b82
JR
7337 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7338 Log an error message if check_image_size failed.
7339 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7340 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7341
71a0c011
EZ
73422009-03-02 Eli Zaretskii <eliz@gnu.org>
7343
7344 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7345 when decoding process output.
7346
2f63bba8
RS
73472009-03-01 Richard M Stallman <rms@gnu.org>
7348
7349 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7350
7351 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7352
0a9564cb
EZ
73532009-02-28 Eli Zaretskii <eliz@gnu.org>
7354
7355 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7356 (decode_coding_emacs_mule, decode_coding_iso_2022)
7357 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7358 (decode_coding_raw_text, decode_coding_charset)
7359 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7360 Honor inhibit-eol-conversion. (Bug #2186)
7361
449148b3
JR
73622009-02-28 Jason Rumney <jasonr@gnu.org>
7363
7364 * coding.c (detect_coding_charset): If not checking latin extra,
7365 fail on characters between 0x80 and 0xA0. (Bug#2354)
7366
a4aee864
EZ
73672009-02-28 Eli Zaretskii <eliz@gnu.org>
7368
7369 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7370 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7371
d88bee5a
GM
73722009-02-27 Glenn Morris <rgm@gnu.org>
7373
7374 * callint.c (Finteractive): Doc fix.
7375
a808f22d
KH
73762009-02-27 Kenichi Handa <handa@m17n.org>
7377
7378 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7379
caf8d60c
CY
73802009-02-27 Chong Yidong <cyd@stupidchicken.com>
7381
7382 * font.c (font_style_to_value): Set value for unknown symbols to
7383 100 instead of 255.
b61137ea
CY
7384 (weight_table, slant_table, width_table): Treat "unspecified" as
7385 the default value.
caf8d60c 7386
1a0de25c
JB
73872009-02-26 Juanma Barranquero <lekktu@gmail.com>
7388
7389 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7390
8fc45744
JB
73912009-02-25 Juanma Barranquero <lekktu@gmail.com>
7392
107bd7d1
JB
7393 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7394 error as soon as a recursive load is detected.
8fc45744 7395
f097e223
AR
73962009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7397
7398 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7399 before caching.
7400
8810a12f
KH
74012009-02-24 Kenichi Handa <handa@m17n.org>
7402
7403 * fontset.c (fontset_find_font): Fix the condition for checking
7404 unavailable font.
7405
2c7d1565
GM
74062009-02-24 Glenn Morris <rgm@gnu.org>
7407
7408 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7409 whitespace that confuses documentation.
7410
a20878b6
MB
74112009-02-23 Miles Bader <miles@gnu.org>
7412
7413 * process.c (Flist_system_processes, Fprocess_attributes)
7414 (syms_of_process): Rename `system-process-attributes' to
7415 `process-attributes'.
7416
b3b58c01
AS
74172009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7418
1b3b981b
AS
7419 * coding.h (struct coding_system): Make safe_charsets a pointer to
7420 unsigned char.
7421 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7422 being 255.
7423 (SAFE_CHARSET_P): Likewise.
7424 (setup_iso_safe_charsets): Properly setup safe_charsets.
7425 (Fdefine_coding_system_internal): Likewise.
7426 (setup_coding_system): Likewise. Remove unneeded casts.
7427 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7428 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7429 unneeded casts.
7430
b3b58c01
AS
7431 * insdel.c (del_range_2): Don't modify gap contents when called
7432 from decode_coding_object. (Bug#1809)
7433
0b6f228c
CY
74342009-02-21 Chong Yidong <cyd@stupidchicken.com>
7435
7436 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7437 Qfont_object.
7438 (Ftype_of): Recognize font objects.
7439
7440 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7441
7442 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7443 moved to data.c.
7444
52f8870b
AR
74452009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7446
7447 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7448 async_iconified. Based on a patch by Christian Lynbech
7449 <christian.lynbech@tieto.com>.
7450 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7451
7087d5e9
GM
74522009-02-20 Glenn Morris <rgm@gnu.org>
7453
7454 * syntax.c (Fskip_chars_forward): Fix doc typo.
7455
41d2ceef
CY
74562009-02-20 Chong Yidong <cyd@stupidchicken.com>
7457
7458 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7459
1a3b7ca6
CY
74602009-02-19 Chong Yidong <cyd@stupidchicken.com>
7461
7462 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7463
73cce38d
KH
74642009-02-19 Kenichi Handa <handa@m17n.org>
7465
7466 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7467 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7468
a51092ee
DN
74692009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7470
7471 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7472
c423ecca
KH
74732009-02-18 Kenichi Handa <handa@m17n.org>
7474
7475 * font.c (font_check_otf_features): Fix handling of `nil' element.
7476 (Ffont_spec): Describe :lang and :otf in the docstring.
7477
4c1958f4
AS
74782009-02-16 Andreas Schwab <schwab@suse.de>
7479
7480 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7481 string.
7482
5704f39a
KH
74832009-02-16 Kenichi Handa <handa@m17n.org>
7484
7485 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7486 (Bug#1723)
5704f39a 7487
8f0085aa
CY
74882009-02-14 Chong Yidong <cyd@stupidchicken.com>
7489
a057d86a 7490 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7491
7492 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7493 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7494
aff01dd9
EZ
74952009-02-14 Eli Zaretskii <eliz@gnu.org>
7496
7497 * msdos.c (MAX_SCREEN_BUF): New macro.
7498 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7499 Encode the entire run of glyphs sharing the same face, instead of
7500 doing that one glyph at a time (fixes a bug with displaying
7501 double-size characters).
7502
ba301db3
AR
75032009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7504
7505 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7506
7507 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7508 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7509 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7510
7511 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7512 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7513
51d861de
SM
75142009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7515
ac146f82 7516 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7517 invisible areas.
7518
7fed8996
JR
75192009-02-12 Jason Rumney <jasonr@gnu.org>
7520
631ea4fb
JR
7521 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7522 (add_font_entity_to_list): Call check_face_name even when family
7523 is unspecified.
7524
cb4a3e42
JR
7525 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7526 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7527 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7528
7fed8996 7529 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7530 raster fonts. (Bug#2219)
7fed8996 7531
895416e3
KH
75322009-02-12 Kenichi Handa <handa@m17n.org>
7533
7534 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7535 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7536 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7537 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7538 (find_automatic_composition): While looking forward and backward,
7539 check static composition. Fix where to stop looking forward.
7540 (composition_adjust_point): Fix checking of static composition.
7541 (Fcomposition_get_gstring): Pay attention to
1dacf998 7542 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7543
7544 * lisp.h (fast_looking_at): Extern it.
7545
7546 * search.c (fast_looking_at): New function.
7547
51d861de 7548 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7549 <struct glyph>.u.cmp.to.
7550 (append_composite_glyph): Likewise.
7551
51d861de 7552 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7553 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7554 composition.
51d861de 7555 (append_composite_glyph): Adjust for the change of
895416e3
KH
7556 <strcut glyph>.u.cmp.to.
7557
8510724d
JB
75582009-02-11 Juanma Barranquero <lekktu@gmail.com>
7559
7560 * casetab.c (init_casetab_once):
7561 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7562 * font.c (font_update_lface):
7563 * fontset.c (Fnew_fontset):
7564 * ftfont.c (ftfont_drive_otf):
7565 * xfont.c (xfont_open):
7566 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7567
294fa707
SM
75682009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7569
7570 * fileio.c (Fwrite_region): !NILP -> CONSP.
7571
b5bfebec
AS
75722009-02-10 Andreas Schwab <schwab@suse.de>
7573
7574 * process.c (send_process): Properly relocate pointer into data
adab88bd 7575 when using encoded data. (Bug#2272)
b5bfebec 7576
cb84a2be
KH
75772009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7578
7579 * coding.c (detect_coding_charset): Fix previous change.
7580
89e09428
JR
75812009-02-08 Jason Rumney <jasonr@gnu.org>
7582
7583 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7584 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7585
4470a277
AS
75862009-02-07 Andreas Schwab <schwab@suse.de>
7587
7588 * unexelf.c (unexec): Fix error message.
7589
3175b12a
AR
75902009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7591
7592 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7593 when modal window is active. (Bug #2152)
3175b12a
AR
7594 (applicationShouldTerminate:): Remove now-unneeded while loop
7595 around NSRunAlertPanel.
7596
7597 * nsmenu.m (popupSession): New file-global variable.
7598 (pop_down_menu): End the popupSession before closing dialog.
7599 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7600 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7601 don't query NSApp for events (just sleep instead).
7602
8434d0b8
EZ
76032009-02-07 Eli Zaretskii <eliz@gnu.org>
7604
51d861de
SM
7605 * coding.c (syms_of_coding) <translation-table-for-input>:
7606 Modify doc string to discourage use for character code unification.
8434d0b8 7607
aa82edfd
CY
76082009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7609
7610 * atimer.c (run_timers): Update pending_atimers.
7611
2d283c7c
CY
76122009-02-06 Chong Yidong <cyd@stupidchicken.com>
7613
eb306cab
CY
7614 * image.c (svg_load_image): Fix last change.
7615
2d283c7c
CY
7616 * xfns.c (Fx_create_frame): Signal an error if no font is
7617 found (Bug#2147).
7618
4d8e170e
JB
76192009-02-05 Juanma Barranquero <lekktu@gmail.com>
7620
7621 * character.c (syms_of_character) <script-representative-chars>:
7622 Fix typo in docstring.
7623
c96169a0
AR
76242009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7625
7626 * nsmenu.m (pop_down_menu): New function.
7627 (ns_popup_dialog): Call it on unwind.
7628 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7629 call timer_check() (Bug#2154).
7630 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7631 handling_signal is set.
7632 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7633
31fd7c5c 7634 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7635
7636 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7637
7638 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7639
51d861de
SM
7640 * keyboard.c (poll_for_input_1, handle_async_input):
7641 Set handling_signal under HAVE_NS.
c96169a0 7642
aacd8ba1
GM
76432009-02-04 Glenn Morris <rgm@gnu.org>
7644
7645 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7646
4cb75c4b
KH
76472009-02-04 Kenichi Handa <handa@m17n.org>
7648
7649 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7650
7651 * charset.c (Fchar_charset): New optional arg restriction.
7652
7653 * coding.h (coding_system_charset_list): Extern it.
7654
7655 * coding.c (coding_system_charset_list): New function.
7656
7657 * composite.c: Include coding.h and termhooks.h.
7658 (composition_gstring_p): Fix for the terminal case.
7659 (composition_gstring_width): Likewise.
7660 (fill_gstring_body): Likewise.
7661 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7662 the frame.
7663 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7664 is within a composition.
867d4bb3 7665 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7666
7667 * term.c (encode_terminal_code): Fix handling of composition.
7668 (produce_composite_glyph): For static composition, get pixel_width
7669 from struct composition.
7670
826ba17e
AS
76712009-02-02 Andreas Schwab <schwab@suse.de>
7672
7673 * unexelf.c (unexec): Handle unaligned bss offset.
7674
8ad093db
AR
76752009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7676
7677 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7678 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7679
8ad093db
AR
7680 * keyboard.c (handle_interrupt): Don't call
7681 quit_throw_to_read_char() under NS.
d0a76a6e 7682
8ad093db
AR
7683 * blockinput.h: Remove NS-specific code.
7684
4d18a7a2
DN
76852009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7686
db878925
DN
7687 * dispnew.c (window_change_signal): Don't try to get the size of a
7688 suspended tty frame.
7689 * term.c (Fresume_tty): Resize if the size has changed while the
7690 tty was suspended.
7691
4d18a7a2
DN
7692 * alloc.c (mark_stack): Properly conditionalize previous change.
7693
8984df7c
JB
76942009-01-30 Juanma Barranquero <lekktu@gmail.com>
7695
7696 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7697 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7698 Remove; this code is not used on Windows.
7699
75f4f1ac
EZ
77002009-01-30 Eli Zaretskii <eliz@gnu.org>
7701
7702 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7703 EOLs that also has stray ^M characters.
7704
07a1e794
JB
77052009-01-30 Juanma Barranquero <lekktu@gmail.com>
7706
7707 * atimer.c (run_timers, alarm_signal_handler):
7708 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7709 * w32inevt.c (w32_console_read_socket):
7710 * w32term.c (w32_read_socket):
7711 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7712
a8b11cc9
CY
77132009-01-30 Chong Yidong <cyd@stupidchicken.com>
7714
7715 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7716 Initialize it as a relative filename pattern.
7717 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7718 (Fcall_process_region): Simplify temp file creation using
7719 temporary-file-directory.
7720
c279587b
EZ
77212009-01-29 Eli Zaretskii <eliz@gnu.org>
7722
7723 * msdos.c: Rename pending_signals to msdos_pending_signals.
7724 (sig_suspender, sigprocmask): Adjust.
7725
a8fe3242
CY
77262009-01-29 Chong Yidong <cyd@stupidchicken.com>
7727
7728 * keyboard.c (pending_signals): New var.
7729 (poll_for_input, input_available_signal, init_keyboard): Set it.
7730 (process_pending_signals): New function.
7731
7732 * lisp.h (QUIT): Check pending_signals instead of
7733 interrupt_input_pending. Use process_pending_signals.
7734
51d861de 7735 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7736
51d861de 7737 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7738
7739 * sysdep.c (emacs_write): Use process_pending_signals.
7740
7741 * xterm.c (XTread_socket): Update pending_signals.
7742
7743 * w32term.c (w32_read_socket): Update pending_signals.
7744
7745 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7746
6570a1c4
KH
77472009-01-29 Kenichi Handa <handa@m17n.org>
7748
7749 * xftfont.c (xftfont_has_char): New function.
7750 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7751
d72a4afa
AR
77522009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7753
7754 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7755 under GNUstep.
7756 (ns_query_color): New declaration.
7757
7758 * nsterm.m (ns_confirm_quit): New variable.
7759 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7760 (EmacsApp-applicationShouldTerminate:): Use it.
7761 (EmacsPrefsController): Let user set it.
7762 (ns_query_color): New function.
7763 (ns_defined_color): Use it.
7764 (ns_initialize): Drop.
7765 (ns_term_init): Add two lines from ns_initialize(), and set
7766 input_interrupt_mode to nil.
7767
7768 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7769 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7770
9fe78804
KH
77712009-01-28 Kenichi Handa <handa@m17n.org>
7772
7773 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7774 (fontset_get_font_group): Remember that no font-group is specified
7775 for C.
9fe78804 7776
fa57de36
CY
77772009-01-27 Chong Yidong <cyd@stupidchicken.com>
7778
930600e9
CY
7779 * fns.c (concat): Check for string overflow (bug#1787).
7780
fa57de36
CY
7781 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7782 Quadruple undo limits (bug#1501).
7783
7179ce7b
KH
77842009-01-27 Kenichi Handa <handa@m17n.org>
7785
7786 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7787 directly use GT_Get_Char_index.
7788
7789 * xftfont.c (struct xftfont_info): New member `index'.
7790
7791 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7792 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7793
5be8fcc0
CY
77942009-01-26 Kenichi Handa <handa@m17n.org>
7795
7796 * fontset.c (fontset_find_font): Fix handling of non-cons return
7797 value of fontset_get_font_group.
7798 (fontset_font): Revert last change.
7799
19ae3e61
JR
78002009-01-26 Jason Rumney <jasonr@gnu.org>
7801
7802 * w32font.c (w32font_list_internal): Return quickly if registry is
7803 unknown. Simplify final return.
7804 (add_font_entity_to_list): Break complex logic down into more
7805 manageable chunks. Move unknown registry check to
7806 w32font_list_internal.
7807
8612b71a
AR
78082009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7809
7810 Changes to remove Feval calls from GUI under NS.
7811
d8038940
JB
7812 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7813 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7814 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7815
7816 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7817 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7818 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7819 instead of NON_ASCII_KEYSTROKE_EVENT.
7820 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7821 (EmacsApp-applicationShouldTerminate:): Query user.
7822 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7823 instead of Feval.
7824
7825 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7826
7827 * keyboard.c (kbd_buffer_get_event): Check for it.
7828 (keys_of_keyboard): Define lispy keys for
7829 ns-put/unput-working-text.
7830
7831 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7832 versions.
7833 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7834
6288ae55
CY
78352009-01-25 Chong Yidong <cyd@stupidchicken.com>
7836
7837 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7838 setting current_buffer directly. (Bug#2044)
6288ae55 7839
289e7f8f
CY
78402009-01-24 Chong Yidong <cyd@stupidchicken.com>
7841
5ce87308 7842 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7843 any work. (Bug#1952, bug#1990).
5ce87308 7844
64cc3cf6 7845 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7846
b3243e6f
AR
78472009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7848
7849 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7850 (ns_no_defaults): New declaration.
7851 (main): Use it.
e0d2e69a 7852
d900b2af 7853 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7854
d900b2af 7855 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7856
d900b2af
AR
7857 * nsterm.m (ns_no_defaults): New variable.
7858 (ns_initialize): Don't read defaults when ns_no_defaults.
7859 (EmacsView-readSelectionFromPasteboard:)
7860 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7861 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7862 (ns_dumpglyphs_stretch): New function.
7863 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7864 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7865
e0d2e69a
AR
7866 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7867
3ac71f5d
CY
78682009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7869
7870 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7871 call for Sparc64.
7872
3fe53a83
AR
78732009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7874
7875 * nsfns.m:
7876 * nsgui.h:
7877 * nsmenu.m:
7878 * nsselect.m:
7879 * nsterm.h:
7880 * nsterm.m: Remove '23' comments that indicated code added during
7881 update from emacs-20 -> emacs-23.
7882
10f87c6f 78832009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7884
7885 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7886 ns_alternate_modifier. (Bug#1217)
a3b53a85 7887
c7cef62d
AR
7888 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7889 Display all shortcuts, including those w/o super modifier.
7890
575fb8bd
AR
7891 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7892
918b848b
CY
78932009-01-22 Chong Yidong <cyd@stupidchicken.com>
7894
7895 * fileio.c (Vwrite_region_post_annotation_function)
7896 (Vwrite_region_annotation_buffers): New vars.
7897 (build_annotations_unwind): Just reset
7898 Vwrite_region_annotation_buffers.
7899 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7900 Call write-region-post-annotation-function.
7901 (build_annotations): Add to Vwrite_region_annotation_buffers if
7902 buffer changes.
7903
a39e2539
AR
79042009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7905
7906 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7907 Tiger.
51d861de
SM
7908 * nsfns.m (ns_do_applescript):
7909 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7910
35ed44db
AR
79112009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7912
7913 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7914
cbe0b5bf
AR
79152009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7916
7917 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7918
6049d3a0
AR
7919 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7920
7921 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7922 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7923 handle Ctrl-tab. (Bug#1841)
7924 (ns_get_color): Use unsigned long long for scanned hex string value.
7925 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7926 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7927 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7928 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7929 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7930 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7931 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7932
d3810c21 7933 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7934 DPI. (Bug#1316)
d3810c21
AR
7935 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7936 values in onTiger section.
4c7077c3 7937
e301e634
CY
79382009-01-19 Chong Yidong <cyd@stupidchicken.com>
7939
7f82490b
CY
7940 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7941 Check return value of font_spec_from_name.
64cc3cf6 7942 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7943
7944 * font.c (font_spec_from_name): Return Qnil if font name could not
7945 be parsed.
7946 (font_parse_name): Treat a `?' character as part of an XLFD.
7947
e301e634
CY
7948 * fns.c (Fsubstring): Doc fix.
7949
1c0db158
KH
79502009-01-19 Kenichi Handa <handa@m17n.org>
7951
51d861de 7952 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7953 (ftfont_list): Likewise.
7954
acf20901
JB
79552009-01-18 Juanma Barranquero <lekktu@gmail.com>
7956
fff4e459
JB
7957 * dbusbind.c (Fdbus_register_signal):
7958 * process.c (conv_sockaddr_to_lisp):
7959 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7960
acf20901
JB
7961 * callproc.c (Fgetenv_internal): Doc fix.
7962
e7abcdfb
CY
79632009-01-16 Chong Yidong <cyd@stupidchicken.com>
7964
7965 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7966 it is not even used.
7967
b60861e6
GM
79682009-01-16 Glenn Morris <rgm@gnu.org>
7969
7970 * font.c (Ffont_variation_glyphs): Silence compiler.
7971
8db52afe
JB
79722009-01-15 Juanma Barranquero <lekktu@gmail.com>
7973
7974 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7975 Reported by David Robinow <drobinow@gmail.com>.
7976
4cddb209
KH
79772009-01-15 Kenichi Handa <handa@m17n.org>
7978
51d861de 7979 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7980
f247f67b
JR
79812009-01-14 Jason Rumney <jasonr@gnu.org>
7982
7983 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7984 never a fontset. (Bug#1562)
f247f67b 7985
f56a4450
KH
79862009-01-14 Kenichi Handa <handa@m17n.org>
7987
7988 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7989 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7990
4e99855e
CY
79912009-01-13 Chong Yidong <cyd@stupidchicken.com>
7992
7993 * font.c (font_clear_prop): If clearing the family, clear the font
7994 width index too.
7995
fff4e459 7996 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7997
24f01470
JB
79982009-01-12 Juanma Barranquero <lekktu@gmail.com>
7999
8000 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8001 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8002 functions, use sizeof.
8003
a41240a3
MR
80042009-01-12 Martin Rudalics <rudalics@gmx.at>
8005
8006 * keyboard.c (read_char): Fix case where last_nonmenu_event
8007 returned a bad value with submenus. (Bug#447)
8008
944636b8
CY
80092009-01-12 Chong Yidong <cyd@stupidchicken.com>
8010
8011 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8012 family, clear the font width index too.
8013
0dad7c6f
JR
80142009-01-11 Jason Rumney <jasonr@gnu.org>
8015
8016 * keyboard.c (cmd_error_internal): Exit when errors occur before
8017 frame creation and not in daemon mode. (Bug#1836)
8018
7c2363af
CY
80192009-01-10 Chong Yidong <cyd@stupidchicken.com>
8020
8021 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8022 of a display vector, backtrack.
8023 (try_window_reusing_current_matrix): Check glyph type before
8024 referencing charpos member.
8025
97b1b294
EZ
80262009-01-10 Eli Zaretskii <eliz@gnu.org>
8027
8028 Fix Bug #876:
8029
8030 * coding.c (inhibit_null_byte_detection): New variable.
8031 (detect_coding, detect_coding_system): Don't pay attention to null
8032 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8033 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8034 <inhibit-iso-escape-detection>: Doc fix.
8035
4624b6e3
JR
80362009-01-09 Jason Rumney <jasonr@gnu.org>
8037
8038 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8039 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8040 Only report Unicode Plane 2 fonts as unicode-sip.
8041
323b840c
CY
80422009-01-09 Chong Yidong <cyd@stupidchicken.com>
8043
51d861de
SM
8044 * xfaces.c (Fx_font_family_list): Delete function.
8045 Move compatibility version to faces.el.
323b840c 8046
51d861de 8047 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8048
eba7400d
MR
80492009-01-09 Martin Rudalics <rudalics@gmx.at>
8050
8051 * frame.c (x_set_frame_parameters): Remember requested value for
8052 fullscreen before it's reset by the parameter handler.
8053
4b09796d
GM
80542009-01-09 Glenn Morris <rgm@gnu.org>
8055
8056 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8057 (last_command_event): ... and update all users.
4b09796d
GM
8058 (last_input_char): For clarity, rename to...
8059 (last_input_event): ... and update all users.
8060 (last-command-char, last-input-char): Move to subr.el as aliases.
8061 * cmds.c, commands.h: Update for last_command_char rename.
8062
14ccea62
CY
80632009-01-08 Chong Yidong <cyd@stupidchicken.com>
8064
51d861de 8065 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8066
5f004711
JR
80672009-01-08 Jason Rumney <jasonr@gnu.org>
8068
8069 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8070 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8071 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8072 Don't declare.
fff4e459 8073 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8074 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8075
b71f6f73
KH
80762009-01-07 Kenichi Handa <handa@m17n.org>
8077
50b06221 8078 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8079 remember the coding system used for decoding in
50b06221
KH
8080 coding_system (Bug#1039).
8081
b71f6f73 8082 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8083 breaking the loop. (Bug#870)
b71f6f73
KH
8084 (decode_coding_utf_16, decode_coding_emacs_mule)
8085 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8086 (decode_coding_charset): Likewise.
8087
56f668f7
MR
80882009-01-05 Martin Rudalics <rudalics@gmx.at>
8089
8090 * frame.c (x_set_frame_parameters): Make sure height (width) get
8091 applied when fullwidth (fullheight) is set. (Bug#1522)
8092
5da9424d
JB
80932009-01-04 Juanma Barranquero <lekktu@gmail.com>
8094
8095 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8096 (utc_base): Declare as ULONGLONG, not long double.
8097 (convert_time_raw): Delete.
8098 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8099 (initialize_utc_base): New function.
8100 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8101 (convert_from_time_t): Use initialize_utc_base; compute result with
8102 64-bit arithmetic.
8103 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8104
c4605e09
EZ
81052009-01-03 Eli Zaretskii <eliz@gnu.org>
8106
9acef61c 8107 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8108 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8109 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8110 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8111 [!subprocesses]: Define.
8112 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8113 (Flist_system_processes, Fsystem_process_attributes)
8114 [!subprocesses]: Call list_system_processes and
8115 system_process_attributes instead of returning Qnil.
8116
9acef61c
JB
8117 * dosfns.c (system_process_attributes, list_system_processes):
8118 New functions.
c4605e09
EZ
8119
8120 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8121
8122 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8123 Don't use the default (no-op) implementation.
8124
8b7d0a16
JR
81252009-01-03 Jason Rumney <jasonr@gnu.org>
8126
a6d46bc1
JR
8127 * keyboard.c (parse_modifiers_uncached): Wheel events are
8128 clicks (bug#687).
8129
8b7d0a16
JR
8130 * w32term.c (x_query_colors, x_query_color): New functions.
8131
8132 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8133 (svg_load_image): Cast returned pointers from dynamically loaded
8134 functions. Eliminate W32 specific code.
8135
bfe11752
DN
81362009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8137
89e2438a
DN
8138 * nsfns.m (x_set_foreground_color, x_set_background_color)
8139 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8140 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8141 x_ prefix instead of ns_. Update references.
8142 (syms_of_nsfns): Add a FIXME comment.
8143
8144 * nsterm.m (x_set_cursor_type): New prototype.
8145 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8146
bfe11752
DN
8147 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8148 for Solaris instead of incorrectly providing Qutime and Qcutime.
8149
031da700
EZ
81502009-01-02 Eli Zaretskii <eliz@gnu.org>
8151
8152 * w32.c (process_times): Compute sum of utime and stime.
8153 (system_process_attributes): Add Qtime to the alist.
8154
8155 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8156 and add them to the alist.
8157
8158 * process.c (top level) <Qtime, Qctime>: New variables.
8159 (syms_of_process): staticpro them.
8160 (Fsystem_process_attributes): Add their documentation to the doc
8161 string.
8162
8163 * process.h: Declare Qtime and Qctime.
8164
df23bf08
JR
81652009-01-02 Jason Rumney <jasonr@gnu.org>
8166
9acef61c 8167 * image.c (Qgobject): New symbol.
df23bf08
JR
8168 (syms_of_image): Initialize it.
8169 (init_svg_functions): Load some functions from gobject library.
8170
5bbdf7aa
DN
81712009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8172
8173 * frame.c (make_terminal_frame): Remove redundant code and useless
8174 block.
8175
63136da6
AS
81762009-01-01 Andreas Schwab <schwab@suse.de>
8177
8178 * process.c (conv_sockaddr_to_lisp): Add workaround for
8179 getsockname bug on BSD.
8180
9ef69046
CY
81812009-01-01 Chong Yidong <cyd@stupidchicken.com>
8182
d6fafbe0
CY
8183 * xfns.c (x_create_tip_frame): Set border width of the X window.
8184
51d861de 8185 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8186
f9c34147
JR
81872009-01-01 Jason Rumney <jasonr@gnu.org>
8188
9acef61c 8189 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8190 Don't block input, as per earlier xterm.c changes.
8191
f5497e45
AR
81922008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8193
8194 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8195 (ns_appkit_version_int): New function.
8196 (x-server-version): Use ns_appkit_version_int and follow 21+
8197 convention of returning 3 integers.
8198
c19cab20
KH
81992008-12-30 Kenichi Handa <handa@m17n.org>
8200
8201 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8202 (CHAR_SURROGATE_PAIR_P): New macro.
8203
8204 * font.h (struct font_driver): New member get_variation_glyphs.
8205
9acef61c 8206 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8207 (Ffont_variation_glyphs): New function.
8208 (syms_of_font): Defsubr it.
8209
8210 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8211 ftfont_variation_glyphs.
8212 (setup_otf_gstring): New function.
8213 (ftfont_drive_otf): Use it.
8214 (ftfont_shape_by_flt): Handle variation selector.
8215 (ftfont_variation_glyphs): New function.
8216
28cd591f
MR
82172008-12-30 Martin Rudalics <rudalics@gmx.at>
8218
8219 * frame.c (Vemacs_iconified): Remove.
8220
7f714baf
JR
82212008-12-30 Jason Rumney <jasonr@gnu.org>
8222
8223 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8224 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8225
9d2d22ab
CY
82262008-12-30 Chong Yidong <cyd@stupidchicken.com>
8227
8228 * indent.c (Fvertical_motion): Don't advance iterator if we have
8229 reseated to the desired position.
8230
8231 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8232 checking for pos match.
8233
545312c2
KH
82342008-12-30 Kenichi Handa <handa@m17n.org>
8235
1ede3eb6
KH
8236 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8237 just get the low 8-bit of the code.
8238
545312c2
KH
8239 * font.c (font_intern_prop): Validate str as multibyte.
8240
bd7bbf29
DN
82412008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8242
31e0750e
DN
8243 * dispextern.h (struct face): Move lface and hash from the middle
8244 of bitfields.
8245
bd7bbf29
DN
8246 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8247
b5672e7c
DN
82482008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8249
8250 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8251 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8252 instead of intervals.h.
8253
d704470f
AS
82542008-12-26 Andreas Schwab <schwab@suse.de>
8255
8256 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8257 cons.
8258
54b33868
MR
82592008-12-26 Martin Rudalics <rudalics@gmx.at>
8260
8261 * textprop.c (Qminibuffer_prompt): New variable.
8262 (syms_of_textprop): Initialize it.
8263 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8264 in minibuffer-prompt face. (Bug#1662)
8265
40b615d6
JR
82662008-12-25 Jason Rumney <jasonr@gnu.org>
8267
8268 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8269
baae5c2d
JR
82702008-12-24 Jason Rumney <jasonr@gnu.org>
8271
8272 * ralloc.c (r_alloc_reset_variable): New function.
8273
8274 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8275 record of what points where. (Bug#716)
baae5c2d 8276
a9051c88
DN
82772008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8278
8279 * minibuf.c (read_minibuf): Follow the non-interactive case when
8280 running as a daemon, before detaching.
8281
8b146312
AS
82822008-12-22 Andreas Schwab <schwab@suse.de>
8283
8284 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8285 * gtkutil.c (free_widget_value): Use xfree instead of free.
8286
56f2de10
MR
82872008-12-22 Martin Rudalics <rudalics@gmx.at>
8288
8289 * frame.c (delete_frame): New function derived from
8290 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8291 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8292 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8293 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8294 * frame.h: Extern delete_frame.
8295 * window.c (window_loop):
8296 * terminal.c (delete_terminal):
8297 * xterm.c (x_connection_closed):
8298 * xfns.c (Fx_hide_tip):
9acef61c 8299 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8300
1fc200d6
JR
83012008-12-21 Jason Rumney <jasonr@gnu.org>
8302
8303 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8304 when character maps to .notdef character.
8305
5e252df2
SM
83062008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8307
8308 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8309
99b72cc4
JR
83102008-12-20 Jason Rumney <jasonr@gnu.org>
8311
8312 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8313 a graphical frame on Windows. (Bug#1325)
99b72cc4 8314
acc49a52
JD
83152008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8316
8317 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8318
6ea15123
CY
83192008-12-20 Chong Yidong <cyd@stupidchicken.com>
8320
8321 * minibuf.c (Fread_buffer): Doc fix.
8322
b2dab6c8
JR
83232008-12-20 Jason Rumney <jasonr@gnu.org>
8324
54ea0c87 8325 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8326 server name in UNC paths. (Bug#719)
54ea0c87 8327
b2dab6c8 8328 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8329 charbuf. (Bug#1035)
b2dab6c8 8330
6d1921be
DN
83312008-12-19 Daniel Engeler <engeler@gmail.com>
8332
8333 * sysdep.c (serial_configure): Fix typo.
8334
53934c98
DN
83352008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8336
8337 * sysdep.c: Include alloca.h.
f4f634e8
DN
8338 (system_process_attributes): Add implementation for Solaris.
8339
8340 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8341
06e111a6
DN
83422008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8343
8344 Reorganize implementation of Flist_system_processes and
8345 Fsystem_process_attributes. No functional changes.
8346 * process.c: Don't #include pwd.h, grp.h and limits.h.
8347 (Flist_system_processes): Just call list_system_processes.
8348 (Fsystem_process_attributes): Just call system_process_attributes.
8349 (procfs_list_system_processes, time_from_jiffies)
8350 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8351 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8352
8353 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8354 (list_system_processes): Rename from
8355 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8356 Provide a do nothing implementation.
8357 (system_process_attributes): Rename from
8358 procfs_list_system_processes.
8359 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8360 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8361
8362 * w32.c (list_system_processes): Rename from
8363 w32_list_system_processes.
8364 (system_process_attributes): Rename from
8365 w32_system_process_attributes.
8366
8367 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8368
8369 * process.h (w32_list_system_processes)
8370 (w32_system_process_attributes): Remove.
362654a6
JB
8371 (list_system_processes, system_process_attributes):
8372 New prototypes.
06e111a6 8373
6a705b23
KH
83742008-12-19 Kenichi Handa <handa@m17n.org>
8375
8376 * xfont.c (xfont_decode_coding_xlfd): New function.
8377 (xfont_encode_coding_xlfd): New function.
8378 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8379 (xfont_list): Decode and encode XLFD by iso-8859-1.
8380 (xfont_match): Likewise.
8381 (xfont_list_family): Likewise.
8382 (xfont_open): Likewise.
8383
d66c0241 8384 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8385 names are utf-8.
8386
d66c0241 8387 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8388 names are utf-8.
8389
5a130941
JD
83902008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8391
8392 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8393 changed.
bfd20325
JD
8394 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8395 clicked on a detached tool bar button.
5a130941 8396
fd95644b
DN
83972008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8398
8399 * emacs.c (main): Print and error and exit when no data is read
8400 from the pipe.
8401
e6eee6ae
JR
84022008-12-17 Jason Rumney <jasonr@gnu.org>
8403
8404 * w32font.c (w32font_has_char): Always return -1.
8405
a35dd56b
KH
84062008-12-16 Kenichi Handa <handa@m17n.org>
8407
8408 * font.c (font_open_entity): Fix previous change.
8409
0e3635c2
DN
84102008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8411
8412 * process.c: Include <limits.h>.
8413
d4835507 84142008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8415
8416 * font.c (font_update_drivers): Fix mistake in reconstructing the
8417 driver list.
8418
84192008-12-16 Chong Yidong <cyd@stupidchicken.com>
8420
8421 * font.c (font_clear_cache): Fix format of font cache data.
8422
e2cbc401
CY
84232008-12-15 Chong Yidong <cyd@stupidchicken.com>
8424
8425 * xftfont.c (xftfont_open): Free Xft font pattern if
8426 XftFontOpenPattern fails.
8427
8428 * xterm.c (x_free_frame_resources): Remove extraneous call to
8429 free_frame_faces.
8430
b131d535
CY
84312008-12-13 Chong Yidong <cyd@stupidchicken.com>
8432
8433 * xterm.c (x_delete_display): Move xim_close_dpy call to
8434 x_delete_terminal.
8435 (x_delete_terminal): Call xim_close_dpy.
8436
e6df5336
JR
84372008-12-13 Jason Rumney <jasonr@gnu.org>
8438
8439 * w32font.c (intern_font_name): New function.
8440 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8441 (w32font_open_internal, Fx_select_font): Decode font name.
8442 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8443
8444 * w32font.h (intern_font_name): Declare new function.
8445
8446 * w32uniscribe.c (add_opentype_font_name_to_list):
8447 Use intern_font_name.
8448
20d68145
CY
84492008-12-13 Chong Yidong <cyd@stupidchicken.com>
8450
9f2554de
CY
8451 * frame.c (Fdelete_frame): Call free_font_driver_list.
8452
3d9bec9a
CY
8453 * font.c (free_font_driver_list): Implement missing function.
8454
20d68145
CY
8455 * w32term.c (w32_term_init): Don't initialize the image cache
8456 here; it will be done in init_frame_faces.
8457
8458 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8459 (struct x_display_info): Remove unused member null_pixel. New
8460 member xim_callback_data.
8461
8462 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8463 (xim_initialize): Save pointer to callback function data.
8464 (xim_close_dpy): Free callback function data. Call XCloseIM,
8465 reverting 2008-11-04 change by David Smith.
8466 (x_term_init): Don't initialize the image cache here; it will be
8467 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8468 (x_delete_display): Free x_dnd_atoms member.
8469
96f9306b
KH
84702008-12-13 Kenichi Handa <handa@m17n.org>
8471
6dec9044
JB
8472 * font.c (font_rescale_ratio): Moved from xfaces.c.
8473 Argument type changed. Handle a font-spec too.
96f9306b 8474 (font_score): Check Vface_font_rescale_alist.
6dec9044 8475 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8476
8477 * xfaces.c (font_rescale_ratio): Moved to font.c.
8478
8d5b4964
CY
84792008-12-13 Chong Yidong <cyd@stupidchicken.com>
8480
8481 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8482
e6df5336
JR
84832008-12-12 Jason Rumney <jasonr@gnu.org>
8484
8485 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8486 Vwindow_system_version to the real w32 major version.
8487
97c6058a
DN
84882008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8489
8490 * term.c (init_tty): Move setting the terminal name before the
8491 potential user: maybe_fatal.
8492
ec4e88d7
CY
84932008-12-11 Chong Yidong <cyd@stupidchicken.com>
8494
d4835507
JB
8495 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8496 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8497
b4233ec9
JR
84982008-12-11 Jason Rumney <jasonr@gnu.org>
8499
8ec71e23 8500 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8501 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8502
b4233ec9 8503 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8504 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8505
011a0143
JB
85062008-12-11 Juanma Barranquero <lekktu@gmail.com>
8507
8508 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8509
3c309f34
JB
85102008-12-11 Juanma Barranquero <lekktu@gmail.com>
8511
8512 * process.c (Fsystem_process_attributes, syms_of_process):
8513 Fix typo in name of Ssystem_process_attributes.
8514 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8515
fedc6ab5
JB
85162008-12-11 Juanma Barranquero <lekktu@gmail.com>
8517
8518 * syntax.c (Fmodify_syntax_entry): Doc fix.
8519
ba3de0e8
JB
85202008-12-10 Juanma Barranquero <lekktu@gmail.com>
8521
8522 * font.c (Ffont_spec): Move usage to end of docstring.
8523
174f1c74
JR
85242008-12-10 Jason Rumney <jasonr@gnu.org>
8525
8526 * w32font.c (Qcham): New symbol.
8527 (font_supported_scripts): Add cham, and comments for other new
8528 scripts in bitfield from OpenType spec.
9d32f818
JR
8529 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8530 contain characters beyond the bmp.
174f1c74 8531
7b649478
KH
85322008-12-10 Kenichi Handa <handa@m17n.org>
8533
8534 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8535 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8536 Qunicode_sip.
8537
2133e2d1
JB
85382008-12-10 Juanma Barranquero <lekktu@gmail.com>
8539
8540 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8541 (Fcoding_system_put): Use QCdefault_char.
8542 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8543
9af886ee
CY
85442008-12-09 Chong Yidong <cyd@stupidchicken.com>
8545
74d819eb
CY
8546 * xftfont.c (syms_of_xftfont): Fix typo.
8547
4ccfa1c0 8548 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8549
7c19d3ae
DN
85502008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8551
8552 * emacs.c (main): Close daemon_pipe on exec.
8553
567826bb
CY
85542008-12-08 Chong Yidong <cyd@stupidchicken.com>
8555
8556 * termchar.h (struct tty): New members termcap_term_buffer and
8557 termcap_strings_buffer.
8558
8559 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8560 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8561 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8562 All callers changed.
8563 (init_tty): Store termcap data and string buffers in new struct
8564 tty members termcap_term_buffer and termcap_strings_buffer.
8565 (delete_tty): Free them.
4ccfa1c0 8566 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8567
aa96c42b
SZ
85682008-12-07 Seiji Zenitani <zenitani@mac.com>
8569
8570 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8571 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8572
b7e1d896
CY
85732008-12-06 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * coding.c (make_conversion_work_buffer): Disable buffer
8576 modification hooks in the work buffer.
8577
b5ec91a5
EZ
85782008-12-05 Eli Zaretskii <eliz@gnu.org>
8579
8580 * process.c (procfs_system_process_attributes): If `nread' has a
8581 negative value, assign zero to it.
8582
a5d2a52b
CY
85832008-12-05 Chong Yidong <cyd@stupidchicken.com>
8584
68c5540b 8585 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8586
7bf1bb21
KH
85872008-12-05 Kenichi Handa <handa@m17n.org>
8588
8589 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8590 second character is a combining character.
8591
2fdc7d00
EZ
85922008-12-05 Eli Zaretskii <eliz@gnu.org>
8593
8594 * process.c (procfs_system_process_attributes): Don't use cmd,
8595 cmdsize, and q without initializing them first.
8596
bf6bfba8
JR
85972008-12-04 Jason Rumney <jasonr@gnu.org>
8598
8599 * w32font.c (w32font_draw): Initialize orig_clip before getting
8600 it, and delete it when finished.
8601
a3b1a468
DN
86022008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8603
8604 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8605 case when running as a daemon before detaching.
8606
8b8be8eb
JB
86072008-12-03 Juanma Barranquero <lekktu@gmail.com>
8608
805f2638 8609 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8610
b1bde622
KH
86112008-12-03 Kenichi Handa <handa@m17n.org>
8612
e500c47d
KH
8613 * font.c (font_at): Set `multibyte' at first.
8614
ca516334
KH
8615 * coding.c (decode_coding_charset): Check type of an element of
8616 vector VALIDS.
7bf1bb21 8617 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8618
4ccfa1c0 8619 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8620 (font_for_char): Likewise.
8621
1e5ecd37
CY
86222008-12-03 Chong Yidong <cyd@stupidchicken.com>
8623
d5b01609 8624 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8625 (font_update_lface): Handle fonts with corrupted size specs,
8626 i.e. non-int and non-float.
d5b01609 8627
11e3a6e4 8628 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8629 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8630 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8631
ab06788b
CY
8632 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8633
1e5ecd37 8634 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8635 underline_minimum_offset for underline position.
1e5ecd37 8636
63c125ab
DN
86372008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8638
8639 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8640
8641 * character.c (c_string_width): Specify the type for LEN.
8642
3a8406e1
KH
86432008-12-03 Kenichi Handa <handa@m17n.org>
8644
4ccfa1c0 8645 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8646 (decode_coding_utf_8): Likewise.
4ccfa1c0 8647 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8648 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8649
651df7d9
CY
86502008-12-02 Chong Yidong <cyd@stupidchicken.com>
8651
8652 * keyboard.c (make_lispy_position): Only use PT if the selected
8653 window is current.
8654
1f625c6c
AS
86552008-12-02 Andreas Schwab <schwab@suse.de>
8656
f7741ce9
AS
8657 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8658
1f625c6c
AS
8659 * doprnt.c (doprnt1): Fix size of charbuf.
8660
92bc2678
CY
86612008-12-02 Chong Yidong <cyd@stupidchicken.com>
8662
8663 * keyboard.c (timer_check): Revert last change.
8664
93b9e8cc
JB
86652008-12-02 Juanma Barranquero <lekktu@gmail.com>
8666
8667 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8668
fd7a37d5
JB
86692008-12-01 Juanma Barranquero <lekktu@gmail.com>
8670
8671 * makefile.w32-in: Update dependencies.
8672 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8673
c115043b
AS
86742008-12-01 Andreas Schwab <schwab@suse.de>
8675
8676 * font.c (register_font_driver): Use xmalloc.
8677 (font_put_frame_data): Likewise.
8678
f5668d2a
CY
86792008-12-01 Chong Yidong <cyd@stupidchicken.com>
8680
860d96be
CY
8681 * xfaces.c (realize_x_face): Make abort condition clearer.
8682
f5668d2a
CY
8683 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8684
379c17e7
CY
86852008-11-30 Chong Yidong <cyd@stupidchicken.com>
8686
8687 * keyboard.c (timer_check): After a timer runs, ensure that the
8688 selected window's buffer is current.
8689
35f36d65
JB
86902008-11-30 Juanma Barranquero <lekktu@gmail.com>
8691
f952c61c
JB
8692 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8693 It was accidentally restored by the Unicode merge.
8694
35f36d65
JB
8695 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8696
b23077df
JB
86972008-11-29 Juanma Barranquero <lekktu@gmail.com>
8698
8699 * w32proc.c: Include "coding.h".
8700 (Fw32_short_file_name): Encode filename passed to Windows API.
8701 (Fw32_long_file_name): Encode filename passed to Windows API and
8702 decode back the result. (Bug#1433)
8703
b8ebe9dd
KH
87042008-11-29 Kenichi Handa <handa@m17n.org>
8705
8cc53f96
KH
8706 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8707 not before accessing it.
8708
b8ebe9dd
KH
8709 * charset.c (Fdefine_charset_internal): After calculating
8710 min_char, max_char, and fastmap, copy the charset structure again.
8711 (encode_char): Fix the previous change.
8712
59bc82c0
SZ
87132008-11-28 Seiji Zenitani <zenitani@mac.com>
8714
8715 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8716
8717 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8718
8719 * nsterm.m (x_set_frame_alpha): New function.
8720
32247e3d
EZ
87212008-11-27 Eli Zaretskii <eliz@gnu.org>
8722
8723 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8724
b003e5ff
JB
87252008-11-27 Juanma Barranquero <lekktu@gmail.com>
8726
8727 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8728 pointer to check_face_name.
8729
708550f5
KH
87302008-11-27 Kenichi Handa <handa@m17n.org>
8731
8732 * category.h (SET_CATEGORY_SET): Call set_category_set.
8733 (set_category_set): Extern it.
8734
8735 * category.c (hash_get_category_set): New function.
8736 (Fmodify_category_entry): Adjusted for the change of
8737 char_table_ref_and_range. Call hash_get_category_set to get a
8738 category set to store in the table.
8739
8740 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8741 Funify_charset.
8742
2ae37cf0 8743 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8744 (DECODE_CHAR): Check if the decoder vector is ready.
8745 (ENCODE_CHAR): Check if the encoder char-table is ready.
8746 (maybe_unify_char): Extern it.
8747
8748 * charset.c (Vchar_unified_charset_table): Delete it.
8749 (inhibit_load_charset_map): New variable.
8750 (temp_charset_work): New variable.
8751 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8752 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8753 New macros.
8754 (load_charset_map): Meaning of control_flag changed. If
8755 inhibit_load_charset_map is nonzero, setup a table in
8756 temp_charset_work.
8757 (load_charset): New argument control_flag.
8758 (map_charset_for_dump): New function.
8759 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8760 map_charset_for_dump.
8761 (Fdefine_charset_internal): If the charset method is MAP, load
8762 mapping tables by calling load_charset.
8763 (Funify_charset): Don't load a mapping table but directly set
8764 Vchar_unify_table.
8765 (maybe_unify_char): New function.
8766 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8767 Handle the case of inhibit_load_charset_map being nonzero.
8768 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8769 Handle the case of inhibit_load_charset_map being nonzero.
8770 (Fclear_charset_maps): Just free temp_charset_work.
8771 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8772 variable.
8773
8774 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8775 change of char_table_ref_and_range.
8776 (char_table_ref_and_range): Change the meaning of argument FROM
8777 and TO. Now the caller must provide initial values for *FROM
8778 and *TO.
8779
8780 * fontset.c (fontset_add): Adjusted for the change of
8781 char_table_ref_and_range.
8782 (fontset_get_font_group): Likewise.
8783 (Ffontset_info): Likewise.
8784
8785 * keymap.c (describe_vector): Adjusted for the change of
8786 char_table_ref_and_range. For char-table, put boundary between
8787 non-ASCII and 8-bit characters.
8788
8789 * print.c (print_object): For bool-vector, delete unnecessary
8790 check of ASCII_BYTE_P.
8791
9196133b
JR
87922008-11-26 Jason Rumney <jasonr@gnu.org>
8793
8794 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8795 leading in font height. (Bug#879)
9196133b 8796
9f688acf
GM
87972008-11-26 Glenn Morris <rgm@gnu.org>
8798
8799 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8800 redefinition with ifdef. (Bug#1383)
8801
90d19aff
AR
88022008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8803
8804 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8805
4ccfa1c0 88062008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8807
8808 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8809 New EmacsView methods.
8810 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8811 Fixes bug #1048,1357,1414.
8812
88132008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8814
8815 Fix bug #1362.
8816 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8817 is not an indexed color.
8818 * nsterm.m (free_indexed_color): Add argument checking.
8819 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8820
e7d5ecb3
CY
88212008-11-24 Chong Yidong <cyd@stupidchicken.com>
8822
8823 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8824 Document confirm-after-completion value for
8825 minibuffer-completion-confirm.
8826
c285743c
JR
88272008-11-24 Jason Rumney <jasonr@gnu.org>
8828
8829 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8830 warning.
8831
b0857706
JR
88322008-11-23 Jason Rumney <jasonr@gnu.org>
8833
8834 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8835 restored before returning.
8836
8837 * w32font.c (check_face_name): New function.
8838 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8839 fonts. (Bug#642)
b0857706 8840
ee50ff07
MR
88412008-11-22 Martin Rudalics <rudalics@gmx.at>
8842
8843 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8844 confirm-nonexistent-file-or-buffer in doc-string.
8845
b8ff72fa
SM
88462008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8847
8848 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8849 Fix copy/paste typo. Add checks.
8850
cee53ed4
KH
88512008-11-21 Kenichi Handa <handa@m17n.org>
8852
8853 * coding.c (detect_coding_iso_2022): Reject invalid composition
8854 sequence.
8855 (DECODE_COMPOSITION_START): If the current source is the last
8856 block, and the current composition doesn't end, regard this
8857 sequence as invalid.
8858 (decode_coding_iso_2022): Handle invalid composition sequence.
8859
f6ef1e65
MR
88602008-11-20 Martin Rudalics <rudalics@gmx.at>
8861
8862 * window.c (coordinates_in_window): Don't return
8863 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8864 line when the window is not the rightmost one. (Bug#1372)
8865
e08b1705
MR
88662008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8867
8868 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8869
ad98e89f
EZ
88702008-11-15 Eli Zaretskii <eliz@gnu.org>
8871
8872 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8873 and bright_bg if noninteractive is non-zero.
8874
fb098a4b
CY
88752008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8876
8877 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8878 x_draw_glyph_string_background.
8879
8880 * w32term.c (x_draw_glyph_string): Likewise.
8881
ce952b6e
CY
88822008-11-15 Chong Yidong <cyd@stupidchicken.com>
8883
8884 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8885 the next glyph string once past the overhang width.
8886
8887 * nsterm.m (ns_draw_glyph_string): Likewise.
8888
8889 * w32term.c (x_draw_glyph_string): Likewise.
8890
26ea7079
CY
88912008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8892
8893 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8894 double file close.
8895
1c33c906
MR
88962008-11-14 Martin Rudalics <rudalics@gmx.at>
8897
8898 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8899 dedicated status of window before attempting to display another
8900 buffer in it.
8901
8fc29035
JB
89022008-11-14 Juanma Barranquero <lekktu@gmail.com>
8903
8904 * msdos.c (Fmsdos_long_file_names):
8905 (syms_of_msdos) <dos-unsupported-char-glyph>:
8906 * dosfns.c (Fint86): Fix typos in docstrings.
8907
55fb4286
EZ
89082008-11-14 Eli Zaretskii <eliz@gnu.org>
8909
8910 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8911
3fda0315
KY
89122008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8913
8914 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8915
7e849c17
CY
89162008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8917
8918 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8919
8920 * frame.h: Negative alpha means "don't touch".
8921
8922 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8923
8924 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8925
b9fd67bd
DN
89262008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8927
8928 * hftctl.c:
8929 * chpdef.h:
8930 * acldef.h: Remove files used only for systems no longer supported.
8931
8932 * Makefile.in: Fix .o alphabetical ordering.
8933 (hftctl.o): Remove dependency, file removed.
8934 (keymap.o, print.o): Depend on charset.h.
8935
d5998e03
KH
89362008-11-10 Kenichi Handa <handa@m17n.org>
8937
2ae37cf0 8938 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8939
be70e183
CY
89402008-11-08 Chong Yidong <cyd@stupidchicken.com>
8941
8942 * dired.c (file_name_completion): If completion_ignore_case is
8943 enabled, ignore case when checking completion-regexp-list.
8944
7cf94eac
EZ
89452008-11-08 Eli Zaretskii <eliz@gnu.org>
8946
8947 * vm-limit.c (get_lim_data): Fix last change.
8948
ee107a89
KH
89492008-11-08 Kenichi Handa <handa@m17n.org>
8950
8951 * character.c (Fget_byte): New function.
8952 (syms_of_character): Defsubr Fget_byte.
8953
5fd15622
CY
89542008-11-07 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8957 cursor position is valid after scrolling.
8958
13d62fad
JB
89592008-11-06 Juanma Barranquero <lekktu@gmail.com>
8960
8961 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8962
a1dd2936
GM
89632008-11-06 Glenn Morris <rgm@gnu.org>
8964
8965 * xterm.c (handle_one_xevent): Don't let popup menus cause
8966 mouse-autoselect-window related window switching. (Bug#1261)
8967
860cd236
CY
89682008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8969
8970 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8971
653a3150
AS
89722008-11-04 Andreas Schwab <schwab@suse.de>
8973
8974 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8975
870f5cac
CY
89762008-11-03 Chong Yidong <cyd@stupidchicken.com>
8977
8978 * xfns.c (Fx_wm_set_size_hint): New function.
8979
1e02f3cb
MR
89802008-11-03 Martin Rudalics <rudalics@gmx.at>
8981
8982 * textprop.c (Fprevious_single_char_property_change): Return 0
8983 when there's no change in a string. (Bug#1301)
8984
e630dfc6
MR
89852008-11-02 Martin Rudalics <rudalics@gmx.at>
8986
8987 * frame.c (do_switch_frame): New argument NORECORD passed to
8988 Fselect_window.
8989 (Fselect_frame): New argument NORECORD passed to
8990 do_switch_frame.
8991 (Fset_frame_selected_window): New argument NORECORD passed to
8992 Fselect_frame.
8993 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8994 in call of do_switch_frame.
8995 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8996 Handle NORECORD argument in call of Fselect_frame.
8997 * lisp.h (do_switch_frame, Fselect_frame)
8998 (Fset_frame_selected_window): Adjust declarations.
8999 * window.c (select_frame_norecord): New function.
9000 (run_window_configuration_change_hook): Use it and call
9001 Fselect_frame with NORECORD set.
9002 (Fselect_window): Pass NORECORD to Fselect_frame.
9003 (Fset_window_configuration): Handle NORECORD argument in call of
9004 do_switch_frame.
9005 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9006 Fset_frame_selected_window.
9007 * keyboard.c (command_loop_1): Handle NORECORD in call of
9008 Fselect_frame (currently ifdefd).
9009
9020b223
GM
90102008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9011
9012 * emacs.c (USAGE2): Untabify.
9013
793ffee8
SM
90142008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9015
9016 * composite.c (fill_gstring_header): Fix copy/paste typo.
9017
ab6d1131
MR
90182008-10-31 Martin Rudalics <rudalics@gmx.at>
9019
9020 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9021 (Fother_window): Rename argument and rewrite doc-string.
9022 (select_window_norecord): Fix return value. (Bug#1276)
9023
601a9cf1
JB
90242008-10-30 Juanma Barranquero <lekktu@gmail.com>
9025
9026 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9027 new frames overriding foreground for tooltips. Based on similar patch
9028 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9029
813b0652
CY
90302008-10-29 Chong Yidong <cyd@stupidchicken.com>
9031
9032 * emacs.c (Fdaemon_initialized): Initialize nfd.
9033
4414f58f
MR
90342008-10-29 Martin Rudalics <rudalics@gmx.at>
9035
9036 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9037 (Fwindow_text_height): Clarify doc-strings.
9038 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9039 doc-string of window-scroll-functions.
9040
ecdcaa09
RS
90412008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9042
9043 * category.c (syms_of_category): Fix typo in docstring.
9044
23fe745a
JB
90452008-10-28 Juanma Barranquero <lekktu@gmail.com>
9046
9047 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9048 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9049 Fix typos in docstrings.
9050
ff808935
DN
90512008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9052
9053 * emacs.c (daemon_pipe): Make non-static.
9054 (IS_DAEMON): Move definition ...
9055 * lisp.h (IS_DAEMON): ... here.
9056 (daemon_pipe): Declare.
9057 (is_daemon): Remove.
9058 * dispnew.c (init_display): Use IS_DAEMON.
9059
fc012771
SM
90602008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9061
9062 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9063 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9064
9065 * emacs.c (is_daemon): Remove.
9066 (main): Don't set is_daemon.
9067 (IS_DAEMON): New macro.
9068 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9069 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9070 parent exits.
9071 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9072
d8bdbe6f
CY
90732008-10-27 Chong Yidong <cyd@stupidchicken.com>
9074
d1a072bf
CY
9075 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9076 over-sized glyph, draw it with the default glyph width.
9077
e2e325aa
CY
9078 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9079 glyph, draw it with the default glyph width.
9080
9081 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9082 glyph, draw it with the default glyph width.
9083
d8bdbe6f
CY
9084 * xdisp.c (try_scrolling): When computing the distance from the
9085 scroll margin to PT, try moving some distance past the window
9086 bottom before giving up.
9087
7bfac547
MR
90882008-10-27 Martin Rudalics <rudalics@gmx.at>
9089
9090 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9091 (Fset_window_buffer): Explain in doc-string that a window can be
9092 "strongly" dedicated to its buffer.
9093
4ff029f6
DN
90942008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9095
9096 * emacs.c (daemon_name): New variable.
9097 (main): Deal with --daemon=SERVER_NAME.
9098 (Fdaemonp): Return a name if one was passed to --daemon.
9099
5790ef40
DN
91002008-10-26 Romain Francoise <romain@orebokech.com>
9101
f9bd0df9 9102 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9103 (main): Create a pipe before forking, make the parent exit only after
9104 the child has closed its end of the pipe. Move closing the
9105 descriptors ...
9106 (Fdaemon_initialized): ... here. New function.
9107
f5385255
SM
91082008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9109
4d632321
SM
9110 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9111 the previous unoptimized table.
9112
f5385255
SM
9113 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9114 the distinction between non-nil and non-t value of `dedicated'.
9115
6c56a0f3
CY
91162008-10-25 Chong Yidong <cyd@stupidchicken.com>
9117
9118 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9119 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9120
fec89261
MR
91212008-10-25 Martin Rudalics <rudalics@gmx.at>
9122
9123 * window.c (Fget_buffer_window, Fdelete_windows_on)
9124 (Freplace_buffer_in_windows): Make buffer argument optional and
9125 rename to buffer_or_name.
9126
34fcddd0
CY
91272008-10-24 Chong Yidong <cyd@stupidchicken.com>
9128
f5385255
SM
9129 * xdisp.c (handle_single_display_spec, handle_display_prop):
9130 Undo 2005-05-16 change.
34fcddd0
CY
9131 (handle_stop): Pop iterator if it's loaded with an empty string.
9132 (get_overlay_strings_1): Don't save iterator if it's loaded with
9133 an empty string (bug#1201).
9134
064766f2
KH
91352008-10-24 Kenichi Handa <handa@m17n.org>
9136
9137 * ftfont.c (ftfont_otf_features): Fix previous change.
9138 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9139 calling ftfont_otf_features.
9140
f9bd0df9 91412008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9142
9143 * font.c (font_match_p): Fix for the case that a vector of
9144 characters is in script-representative-chars.
9145
1dae9197
MA
91462008-10-24 Michael Albinus <michael.albinus@gmx.de>
9147
9148 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9149 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9150 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9151 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9152 macro. (Bug#1186)
1dae9197 9153
f9bd0df9 91542008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9155
9156 * s/sol2-10.h: New file.
9157
878a4584
JB
91582008-10-23 Juanma Barranquero <lekktu@gmail.com>
9159
9160 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9161 poor beast has survived 9+ years and the jump from xterm.c!).
9162
cd265ca6
MR
91632008-10-23 Martin Rudalics <rudalics@gmx.at>
9164
9165 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9166 Reword doc-string.
f5385255 9167 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9168
472a4dc9
JB
91692008-10-23 Juanma Barranquero <lekktu@gmail.com>
9170
9171 * character.c (syms_of_character) <script-representative-chars>:
9172 <unicode-category-table>: Doc fixes.
9173
159bd5a2
NF
91742008-10-23 Noah Friedman <friedman@splode.com>
9175
9176 * coding.c (make_conversion_work_buffer): Check that
9177 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9178 Fget_buffer_create.
9179
49f9c344
KH
91802008-10-23 Kenichi Handa <handa@m17n.org>
9181
9182 * font.c (font_add_log): Check the values of extra properties.
9183
12bb3111
MR
91842008-10-22 Martin Rudalics <rudalics@gmx.at>
9185
9186 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9187 Reword doc-string.
9188 (Fset_window_parameter): Use NILP.
9189 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9190 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9191
bbeb4e99
JB
91922008-10-22 Juanma Barranquero <lekktu@gmail.com>
9193
9194 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9195
91962008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9197
9198 * nsfns.m (ns_appkit_version): New function.
9199 (x-server-version): Use it.
9200 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9201 (x-server-vendor): Don't check_ns().
9202
9203 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9204
a9b555d3
JB
92052008-10-22 Juanma Barranquero <lekktu@gmail.com>
9206
9207 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9208 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9209
4626499f
KH
92102008-10-22 Kenichi Handa <handa@m17n.org>
9211
e3681952
KH
9212 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9213 scripts.
9214
4626499f
KH
9215 * category.c (word_boundary_p): Check scripts instead of charset.
9216 Handle nil value in word-separating-categories and
9217 word-combining-categories.
9218 (syms_of_category): Fix docstrings of word-separating-categories
9219 and word-combining-categories.
9220
1560f91a
EZ
92212008-10-21 Eli Zaretskii <eliz@gnu.org>
9222
9223 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9224 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9225
f4668441
MR
92262008-10-21 Martin Rudalics <rudalics@gmx.at>
9227
9228 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9229 Rename arg "buffer" to "buffer_or_name".
9230 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9231 it optional.
9232 (no_switch_window): Remove since the return value is not used.
a9b555d3 9233 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9234 Consider window as dedicated when Fwindow_dedicated_p returns a
9235 non-nil value.
9236 * lisp.h: Remove prototype for no_switch_window.
9237
fd75ddb2
JD
92382008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9239
9240 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9241 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9242
07295713
KH
92432008-10-21 Kenichi Handa <handa@m17n.org>
9244
9245 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9246 check Vlatin_extra_code_table.
9247
712adc82
EZ
92482008-10-20 Eli Zaretskii <eliz@gnu.org>
9249
9250 * fileio.c (Fset_file_modes): Doc fix.
9251
f549eb0b
MA
92522008-10-19 Michael Albinus <michael.albinus@gmx.de>
9253
9254 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9255 in arrays.
9256
aac0c6e3
MR
92572008-10-19 Martin Rudalics <rudalics@gmx.at>
9258
9259 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9260 Mention kill-buffer in doc-string.
9261 (Fset_window_buffer): Reinsert tem check removed in last commit.
9262 (Fenlarge_window, Fshrink_window): Have argument names and
9263 doc-string follow Elisp manual more closely.
9264
92652008-10-18 Eli Zaretskii <eliz@gnu.org>
9266
9267 * fileio.c (Fset_file_modes): Doc fix.
9268
92692008-10-18 Martin Rudalics <rudalics@gmx.at>
9270
9271 * window.c (Fwindow_width, Fset_window_start)
9272 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9273 (Fdelete_windows_on, Freplace_buffer_in_windows):
9274 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9275 (Fwindow_dedicated_p): Make window argument optional.
9276 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9277 (Fset_window_buffer): Respect any non-nil dedicated value for
9278 window. Rename "buffer" argument to "buffer_or_name".
9279
92802008-10-18 Ulrich Mueller <ulm@gentoo.org>
9281
9282 * m/sh3.h: New file, machine description for SuperH.
9283
92842008-10-17 Martin Rudalics <rudalics@gmx.at>
9285
9286 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9287
92882008-10-17 Kenichi Handa <handa@m17n.org>
9289
9290 * ftfont.c (ftfont_otf_features): Fix indexing
9291 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9292
92932008-10-16 Magnus Henoch <mange@freemail.hu>
9294
9295 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9296 (Fdbus_call_method_asynchronously): Ditto.
9297 This change makes C-h f display the argument list.
9298
92992008-10-16 Chong Yidong <cyd@stupidchicken.com>
9300
9301 * fileio.c (Fexpand_file_name): Doc fix.
9302
9303 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9304 of :foreground and :background equivalent to unspecified (20.x
9305 compatibility).
9306
93072008-10-15 Eli Zaretskii <eliz@gnu.org>
9308
9309 * buffer.c (syms_of_buffer): Doc fix.
9310
93112008-10-14 Kenichi Handa <handa@m17n.org>
9312
9313 * font.c (font_clear_prop): When clearing font width, clear the
9314 average width field too.
9315
93162008-10-12 Andreas Schwab <schwab@suse.de>
9317
9318 * ftfont.c (ftfont_shape_by_flt): Make static.
9319 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9320
9321 * font.c: Don't include <m17n-flt.h>.
9322
93232008-10-10 Eli Zaretskii <eliz@gnu.org>
9324
9325 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9326
93272008-10-09 Eli Zaretskii <eliz@gnu.org>
9328
9329 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9330 away code.
9331
93322008-10-09 Chong Yidong <cyd@stupidchicken.com>
9333
9334 * dispnew.c (update_text_area): Avoid looping due to large glyph
9335 overhangs (bug#1070).
9336
93372008-10-09 Kenichi Handa <handa@m17n.org>
9338
9339 * fontset.c (face_for_char): If face->fontset is negative, just
9340 return ascii_face.
9341
f5385255
SM
9342 * font.c (font_delete_unmatched): Fix previous change.
9343 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9344
93452008-10-09 Martin Rudalics <rudalics@gmx.at>
9346
9347 * frame.c (Fraise_frame): On text-only terminals select frame in
9348 order to make it visible. (Bug#1061)
9349
93502008-10-08 Chong Yidong <cyd@stupidchicken.com>
9351
9352 * fontset.c (fontset_find_font): Check frame validity.
9353
93542008-10-07 Chong Yidong <cyd@stupidchicken.com>
9355
a9b555d3 9356 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9357 (xg_display_close): Allow Emacs to close all displays (bug#985).
9358
93592008-10-06 Andreas Schwab <schwab@suse.de>
9360
f5385255 9361 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9362
93632008-10-06 Chong Yidong <cyd@stupidchicken.com>
9364
f5385255 9365 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9366
a9b555d3 9367 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9368
9369 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9370 during initialization.
9371
93722008-10-04 Eli Zaretskii <eliz@gnu.org>
9373
9374 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9375 whole thing on MSDOS frames as well as on a TTY.
9376
9377 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9378 well as for TTY.
9379 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9380 well as on a TTY.
9381
9382 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9383 as well as for TTY.
9384
9385 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9386
9387 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9388 MSDOS frames as well.
9389
93902008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9391
9392 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9393 correct arguments.
b71ac3dd 9394 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9395
93962008-10-03 Glenn Morris <rgm@gnu.org>
9397
9398 * emacs.c (USAGE1): Add --daemon.
9399
94002008-10-02 Eli Zaretskii <eliz@gnu.org>
9401
9402 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9403 100, so it's in percents as advertised.
9404
94052008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9406
9407 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9408 (ns_output.current_cursor, ns_output.desired_cursor)
9409 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9410 (FRAME_NEW_CURSOR_COLOR): Remove.
9411
9412 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9413 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9414 enumeration (HOLLOW_BOX_CURSOR, etc.).
9415
9416 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9417 (draw_window_cursor): Simplify code.
f5385255
SM
9418 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9419 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9420 updates manually.
a9b555d3
JB
9421 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9422 Use core Emacs cursor types.
aac0c6e3 9423
b8ff72fa 9424 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9425
94262008-10-02 Martin Rudalics <rudalics@gmx.at>
9427
9428 * process.c (Faccept_process_output): Fix doc-string.
9429
94302008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9431
9432 * gmalloc.c (__sbrk): Also define for uClibc.
9433
9434 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9435 for uClibc.
9436
94372008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9438
9439 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9440 styles.
9441 (nsfont_open): Reenable the cache.
9442
94432008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9444
9445 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9446 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9447
94482008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9449
9450 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9451 a suspended terminal.
9452
94532008-09-30 Michael Albinus <michael.albinus@gmx.de>
9454
9455 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9456
94572008-09-30 Eli Zaretskii <eliz@gnu.org>
9458
9459 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9460
94612008-09-30 Chong Yidong <cyd@stupidchicken.com>
9462
9463 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9464 in a continued line coincides with a line beginning.
9465
94662008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9467
9468 * nsfont.m (nsfont_trait_distance): Fix bug.
9469 (nsfont_list): Return a list rather than a vector (syncs with Handa
9470 changes of 2008-05-14).
9471 (nsfont_open): Improve logging.
9472
94732008-09-29 Andreas Schwab <schwab@suse.de>
9474
9475 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9476
94772008-09-28 Martin Rudalics <rudalics@gmx.at>
9478
9479 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9480 name as char-resolve-modifiers.
9481 Reported by: Markus Triska <markus.triska@gmx.at>
9482
94832008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9484
9485 * dispnew.c (init_display): Return earlier when running as a daemon.
9486
94872008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9488
9489 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9490
94912008-09-27 Eli Zaretskii <eliz@gnu.org>
9492
9493 * composite.c (Fcomposition_get_gstring)
9494 (Fcompose_region_internal, Fcompose_string_internal)
9495 (Ffind_composition_internal): Doc fix.
9496 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9497 (syms_of_composite) <auto-composition-function>: Doc fix.
9498 (syms_of_composite) <composition-function-table>: Doc fix.
9499
95002008-09-25 Chong Yidong <cyd@stupidchicken.com>
9501
9502 * search.c (wordify): New argument for lax word-ends.
9503 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9504
95052008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9506
9507 * lisp.h (is_daemon): Declare.
9508 * dispnew.c (init_display): Do not try to initialize the terminal
9509 when running as a daemon.
9510
95112008-09-22 Chong Yidong <cyd@stupidchicken.com>
9512
9513 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9514 x_display_pixel_height.
9515
95162008-09-22 Martin Rudalics <rudalics@gmx.at>
9517
9518 * undo.c (record_point): Don't call Fundo_boundary for first
9519 change. (Bug#731)
9520
95212008-09-22 Juanma Barranquero <lekktu@gmail.com>
9522
9523 * emacs.c (Fdaemonp): Doc fix.
9524
95252008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9526
9527 * emacs.c (main): Place #ifdef in the proper place.
9528
95292008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9530
9531 * emacs.c (standard_args): Add --daemon.
9532 (main): Disconnect from the terminal when --daemon is passed.
9533 (is_daemon): New variable.
9534 (Fdaemonp): New function.
9535 (syms_of_emacs): Defsubr it.
9536
95372008-09-20 Chong Yidong <cyd@stupidchicken.com>
9538
9539 * xdisp.c (get_next_display_element): Handle string display
9540 correctly when checking for the end of a box run.
9541
95422008-09-20 Glenn Morris <rgm@gnu.org>
9543
9544 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9545 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9546 (Frename_file): Avoid copying to trash if a rename involves
9547 a delete. (Bug#964).
9548
95492008-09-20 Eli Zaretskii <eliz@gnu.org>
9550
9551 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9552 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9553 frames as well as termcap frames.
9554 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9555 get_named_tty.
9556
95572008-09-19 Eli Zaretskii <eliz@gnu.org>
9558
9559 * process.c (procfs_system_process_attributes): Fix cmdline in
9560 case /proc/PID/cmdline is empty.
9561
9562 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9563 x_display_pixel_height.
9564
95652008-09-19 Juanma Barranquero <lekktu@gmail.com>
9566
9567 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9568
9569 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9570 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9571
95722008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9573
9574 * dispextern.h (struct it): Move line_wrap away from the middle of
9575 bitfields. Move voffset in struct iterator_stack_entry after the
9576 bitfields. Move tab_width near after another short.
9577
95782008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9579
9580 * frame.h (struct frame): Move alpha from the middle of bitfields.
9581
9582 * window.h (struct window): Move frozen_window_start_p after the
9583 rest of the bitfields to reduce padding.
9584
95852008-09-18 Chong Yidong <cyd@stupidchicken.com>
9586
9587 * xterm.h (x_display_info): Remove `height' and `width' members.
9588
9589 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9590
9591 * w32term.h (w32_display_info): Remove `height', `width',
9592 `height_in', and `width_in' members.
9593
b8ff72fa
SM
9594 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9595 New functions.
aac0c6e3
MR
9596 (x_calc_absolute_position): Use them.
9597 (x_term_init): Omit removed `height' and `width' members.
9598
b8ff72fa
SM
9599 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9600 New functions.
aac0c6e3
MR
9601 (w32_read_socket, x_calc_absolute_position): Use them.
9602 (w32_initialize_display_info, w32_term_init): Omit removed members
9603 of w32_display_info.
9604
b8ff72fa
SM
9605 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9606 New functions.
9607 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9608
b8ff72fa
SM
9609 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9610 New functions.
aac0c6e3
MR
9611 (x_calc_absolute_position): Use them.
9612 (x_term_init): Omit removed `height' and `width' members.
9613
9614 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9615 (compute_tip_xy):
9616 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9617 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9618 x_display_pixel_width.
9619
96202008-09-18 Kenichi Handa <handa@m17n.org>
9621
9622 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9623 (composition_compute_stop_pos): Fix handling of static composition.
9624 (Fcomposition_get_gstring): Check FROM and TO at first.
9625
96262008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9627
46e722a9 9628 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9629 mixup (YAILOM).
9630
96312008-09-17 Chong Yidong <cyd@stupidchicken.com>
9632
9633 * indent.c (Fvertical_motion): Use position reported by iterator
9634 instead of PT for determining screen motion (bug#943).
9635
96362008-09-17 Romain Francoise <romain@orebokech.com>
9637
9638 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9639
96402008-09-17 Kenichi Handa <handa@m17n.org>
9641
9642 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9643
9644 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9645 if necessary.
9646
96472008-09-16 Kenichi Handa <handa@m17n.org>
9648
9649 * coding.c (make_conversion_work_buffer): Avoid calling
9650 Fget_buffer_create if it is not necessary.
9651
96522008-09-15 Martin Rudalics <rudalics@gmx.at>
9653
9654 * window.c (Fselect_window): Don't update window_select_count and
9655 use_time when norecord is not nil.
9656
96572008-09-14 Kenichi Handa <handa@m17n.org>
9658
9659 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9660 specpdl_ptr.
9661
96622008-09-12 Kenichi Handa <handa@m17n.org>
9663
9664 * indent.c (scan_for_column): Don't handle automatic composition
9665 if the current buffer is not associated with a window.
9666
9667 * composite.c (composition_reseat_it): If the current buffer is
9668 not associated with a window, ignore the automatic composition.
9669 (find_automatic_composition): Likewise.
9670
96712008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9672
9673 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9674 (Fgpm_mouse_stop): Use it.
9675 * termhooks.h (close_gpm): Declare.
9676 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9677 connection if Gpm_GetEvent fails.
9678
9679 * window.c (set_window_buffer): Always preserve current-buffer.
9680
96812008-09-12 Glenn Morris <rgm@gnu.org>
9682
9683 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9684
96852008-09-11 Glenn Morris <rgm@gnu.org>
9686
9687 * charset.c (charset-map-path): Doc fix.
9688
96892008-09-10 Kenichi Handa <handa@m17n.org>
9690
9691 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9692
9693 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9694 compose a grapheme cluster with the preceding base glyph.
9695
9696 * composite.c (composition_compute_stop_pos): Fix previous change.
9697 Reset cmp_it->id to -1 at first.
9698
96992008-09-10 Glenn Morris <rgm@gnu.org>
9700
9701 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9702
97032008-09-09 Chong Yidong <cyd@stupidchicken.com>
9704
9705 * keyboard.c (read_key_sequence): Reapply translation maps when
9706 switching keyboards.
9707
97082008-09-09 Kenichi Handa <handa@m17n.org>
9709
9710 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9711 characters.
9712
9713 * composite.c (FORWARD_CHAR): Fix calculation
9714 of (POSITION).pos_byte.
9715 (composition_compute_stop_pos): Limit the search of composition to
9716 at most 500 characters ahead. If we reach the limit or find a
9717 newline, set cmp_it->ch to -2 and return 0.
9718 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9719
97202008-09-08 Kenichi Handa <handa@m17n.org>
9721
9722 * indent.c (Fvertical_motion): Be sure to set
9723 it_overshoot_expected if it.cmp_it.id is non-negative.
9724
97252008-09-07 Andreas Schwab <schwab@suse.de>
9726
9727 * callproc.c (Fcall_process): Don't hold references to string data
9728 across garbage collection. Move initialisation of new_argv down
9729 to avoid compiler bug.
9730
97312008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9732
9733 * process.c (Fsystem_process_attributes): Doc fix.
9734
97352008-09-07 Chong Yidong <cyd@stupidchicken.com>
9736
9737 * callproc.c (Fcall_process): Canonicalize current directory name.
9738
9739 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9740 iterator advances to the next line if the current line ends in a
9741 continued tab.
9742
97432008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9744
9745 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9746 member to point to cmp_from.
9747
9748 * xdisp.c: Doc fix for references to gidx data member.
9749
97502008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9751
9752 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9753
97542008-09-07 Kenichi Handa <handa@m17n.org>
9755
9756 * composite.c (FORWARD_CHAR): Check STOP after
9757 incrementing (POSITION).pos.
9758
97592008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9760
9761 * process.c (Fsystem_process_attributes): Doc fix.
9762
97632008-09-06 Chong Yidong <cyd@stupidchicken.com>
9764
9765 * keyboard.c (Ftop_level): Doc fix.
9766
97672008-09-06 Eli Zaretskii <eliz@gnu.org>
9768
9769 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9770 minibuffer, don't let lower part of menu invade the echo area.
9771
9772 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9773 "char *q" to access menu text and advance through it. Revert the
9774 change that displayed ">" instead of ASCII character 0x10.
9775
97762008-09-05 Eli Zaretskii <eliz@gnu.org>
9777
9778 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9779 toggle boxes and radio buttons on MS-DOS as well.
9780
97812008-09-05 Kenichi Handa <handa@m17n.org>
9782
9783 * composite.c (autocmp_chars): Check lookback count.
9784 (composition_compute_stop_pos): Set cmp_it->lookback.
9785 (composition_reseat_it): Check lookback count.
9786 (struct position_record): New struct.
9787 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9788 (find_automatic_composition): New function.
9789 (composition_adjust_point): Use find_automatic_composition.
9790
9791 * dispextern.h (struct composition_it): New member lookback.
9792
97932008-09-02 Chong Yidong <cyd@stupidchicken.com>
9794
9795 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9796 if moving by a single line.
9797
97982008-09-02 Andreas Schwab <schwab@suse.de>
9799
9800 * xterm.c (x_delete_display): Fix merge error.
9801
9802 * fileio.c (Fexpand_file_name): Remove unused variables.
9803
98042008-09-02 Eli Zaretskii <eliz@gnu.org>
9805
9806 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9807 storage on all platforms, not just on DOS_NT.
9808
98092008-09-02 Jason Rumney <jasonr@gnu.org>
9810
b8ff72fa
SM
9811 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9812 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9813
98142008-09-01 Chong Yidong <cyd@stupidchicken.com>
9815
9816 * xfaces.c (Finternal_set_alternative_font_family_alist)
9817 (Finternal_set_alternative_font_registry_alist): Properly copy
9818 entire alist structure.
9819
98202008-09-01 Kenichi Handa <handa@m17n.org>
9821
d66c0241 9822 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9823 representative chars of the script is a vector.
d66c0241
JB
9824 (ftfont_list): Handle the case where the representative chars of
9825 the script is a vector.
aac0c6e3
MR
9826
9827 * character.c (syms_of_character): Docstring of
9828 script-representative-chars fixed.
9829
98302008-08-31 Eli Zaretskii <eliz@gnu.org>
9831
9832 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9833 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9834 the menu. Allocate larger buffer for `text', to account for
9835 possible ^C characters.
9836
98372008-08-31 Martin Rudalics <rudalics@gmx.at>
9838
9839 * xdisp.c (prepare_menu_bars): Don't call
9840 Vwindow_size_change_functions with arg Qt.
9841
98422008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9843
9844 * font.h (font_range):
9845 * fileio.c (report_file_error):
46e722a9
SM
9846 * composite.c (composition_update_it): Yet another int/Lisp_Object
9847 mixup (YAILOM).
aac0c6e3
MR
9848
98492008-08-30 Glenn Morris <rgm@gnu.org>
9850
9851 * data.c (Fmake_variable_frame_local): Doc fix.
9852
9853 * frame.c (Fmodify_frame_parameters): Doc fix.
9854
98552008-08-30 Eli Zaretskii <eliz@gnu.org>
9856
9857 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9858 needed by GetTokenInformation.
9859 (w32_system_process_attributes): Check return values of all system
9860 APIs.
9861
9862 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9863 only when the state changes.
9864 (IT_update_begin, IT_update_end): Add termscript trace.
9865
9866 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9867 clipboard is unavailable. Set dst to NULL if it doesn't point to
9868 malloc'ed data.
9869 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9870 passing random values to xfree.
9871
9872 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9873 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9874
98752008-08-29 Jason Rumney <jasonr@gnu.org>
9876
9877 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9878
98792008-08-29 Eli Zaretskii <eliz@gnu.org>
9880
9881 * composite.c (fill_gstring_body): Avoid compiler warnings.
9882
9883 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9884 LGLYPH_SET_CODE to avoid compiler warnings.
9885
2ae37cf0 9886 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9887
9888 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9889
9890 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9891 LGLYPH_SET_CODE.
9892
98932008-08-29 Kenichi Handa <handa@m17n.org>
9894
9895 * fileio.c (report_file_error): Don't downcase the first character
9896 of errstring if it is still unibyte.
9897
98982008-08-29 Kenichi Handa <handa@m17n.org>
9899
9900 These changes are to re-implement the automatic composition so
9901 that it doesn't use text properties.
9902
9903 * Makefile.in (ftfont.o): Depend on composite.h.
9904 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9905
9906 * character.h (Vunicode_category_table): Extern it.
9907
9908 * character.c (Vunicode_category_table): New variable.
9909 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9910
9911 * chartab.c (optimize_sub_char_table): Perform more greedy
9912 optimization.
9913
b8ff72fa
SM
9914 * composite.h (enum composition_method):
9915 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9916 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9917 (Vcomposition_function_table): Extern it.
9918 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9919 (composition_gstring_put_cache, composition_gstring_from_id)
9920 (composition_gstring_p, composition_gstring_width)
9921 (composition_compute_stop_pos, composition_reseat_it)
9922 (composition_update_it, composition_adjust_point): Extern them.
9923 (Fcomposition_get_gstring): EXFUN it.
9924
d66c0241 9925 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9926 (Vcomposition_function_table)
9927 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9928 (gstring_hash_table, gstring_work, gstring_work_headers):
9929 New variables.
aac0c6e3
MR
9930 (gstring_lookup_cache, composition_gstring_put_cache)
9931 (composition_gstring_from_id, composition_gstring_p)
9932 (composition_gstring_width, fill_gstring_header)
9933 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9934 (composition_reseat_it, composition_update_it)
b8ff72fa 9935 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9936 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9937 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9938 Defsubr composition_get_gstring.
aac0c6e3
MR
9939
9940 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9941 cmp_id.
9942 (struct glyph_string): Delete the member gidx. New members
9943 cmp_id, cmp_from, and cmp_to.
9944 (enum it_method): Delete GET_FROM_COMPOSITION.
9945 (struct composition_it): New struct.
9946 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9947 Delete c, len, cmp_id, cmp_len in u.comp.
9948
9949 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9950 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9951 (enum lglyph_indices): Likewise.
b8ff72fa 9952 (font_range): Adjust extern.
aac0c6e3
MR
9953 (font_fill_lglyph_metrics): Extern it.
9954
9955 * font.c (QCf): New variable.
9956 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9957 (font_prepare_composition): Delete this function.
9958 (font_range): Type and arguments changed.
9959 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9960 (font_fill_lglyph_metrics): New function.
b8ff72fa 9961 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9962 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9963 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9964 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9965
9966 * fontset.h (font_for_char): Extern it.
9967
9968 * fontset.c (font_for_char): New function.
9969
9970 * ftfont.c: Include composite.h.
9971 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9972 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9973
9974 * indent.c: Include composite.h and dispextern.h.
9975 (check_composition): Delete this function.
9976 (scan_for_column): Handle composition by
9977 composition_compute_stop_pos, composition_reseat_it, and
9978 composition_update_it.
9979 (compute_motion): Likewise.
9980 (Fvertical_motion): Fix checking of composition.
9981
9982 * keyboard.c (adjust_point_for_property): Check composition by
9983 composition_adjust_point.
9984
b8ff72fa 9985 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9986 struct glyph_string.
9987
b8ff72fa
SM
9988 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9989 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9990 struct glyph.
9991 (produce_composite_glyph): Likewise.
9992
b8ff72fa
SM
9993 * w32term.c (x_draw_composite_glyph_string_foreground):
9994 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9995 (x_draw_glyph_string): Likewise.
9996
9997 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9998 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9999
10000 * xdisp.c: Include font.h.
10001 (it_props): Delete the entry for Qauto_composed.
10002 (init_iterator): Initialize it->cmp_it.id to -1.
10003 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10004 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10005 (handle_auto_composed_prop): Delete it.
10006 (handle_composition_prop): Handle only static composition.
10007 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10008 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10009 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10010 (pop_it): Likewise.
10011 (get_next_element): Delete next_element_from_composition.
10012 (CHAR_COMPOSED_P): New macro.
10013 (get_next_display_element): For automatic composition, get a face
10014 from the font in the glyph-string.
10015 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10016 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10017 (next_element_from_string): Check if the character at the current
10018 position is composed by CHAR_COMPOSED_P.
10019 (next_element_from_buffer): Likewise.
d66c0241
JB
10020 (next_element_from_composition): Adjust for the change of struct it.
10021 Update it->cmp_it.
b8ff72fa
SM
10022 (dump_glyph): Adjust for the change of struct glyph.
10023 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10024 it and struct glyph. Don't handle automatic composition here.
10025 (fill_gstring_glyph_string): New function.
10026 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10027 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10028 (BUILD_GSTRING_GLYPH_STRING): New macro.
10029 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10030 automatic composition.
b8ff72fa 10031 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10032 struct glyph.
b8ff72fa 10033 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10034
b8ff72fa 10035 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10036 the change of struct glyph_string.
10037 (x_draw_glyph_string): Likewise.
10038
100392008-08-29 Glenn Morris <rgm@gnu.org>
10040
10041 * buffer.c (word-wrap): Doc fix.
10042 * xdisp.c (truncate-partial-width-windows): Doc fix.
10043 Increase default to 50.
10044
100452008-08-29 Chong Yidong <cyd@stupidchicken.com>
10046
10047 * xdisp.c (update_tool_bar_unwind): New function.
10048 (update_tool_bar): Temporarily set selected frame before building
10049 tool-bar items.
10050
100512008-08-28 Michael Albinus <michael.albinus@gmx.de>
10052
10053 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10054 snprintf, respectively.
10055 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10056
100572008-08-28 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10060 LDFLAGS to GNUstep CC invocation.
10061
100622008-08-27 Chong Yidong <cyd@stupidchicken.com>
10063
10064 * indent.c (Fvertical_motion): Revert last change. Handle the
10065 general case where we are moving forward, and PT spans multiple
10066 screen lines.
10067
10068 * eval.c (find_handler_clause): Temporarily increase
10069 max-lisp-eval-depth while printing the backtrace buffer, to
10070 guarantee that help-mode code can run.
10071
100722008-08-27 Eli Zaretskii <eliz@gnu.org>
10073
10074 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10075 colors under -rv.
10076 (IT_set_frame_parameters): Don't swap foreground and background
10077 colors if `(reverse . t)' is present in the frame properties.
10078 (internal_terminal_init): Call init_frame_faces only for the
10079 initial frame.
10080
100812008-08-27 Andreas Schwab <schwab@suse.de>
10082
10083 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10084
100852008-08-27 Andreas Schwab <schwab@suse.de>
10086
10087 * search.c (search_buffer): Set char_base to zero only at the end.
10088
100892008-08-27 Kenichi Handa <handa@m17n.org>
10090
b8ff72fa 10091 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10092
100932008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10094
10095 * xterm.c (x_term_init): Temporarily hide the partially
10096 initialized terminal while calling vendor-specific-keysyms.
10097
100982008-08-26 Eli Zaretskii <eliz@gnu.org>
10099
10100 * msdos.c (internal_terminal_init): Most initializations done only
10101 once, especially initial_screen_colors[] and termscript open.
10102
101032008-08-26 Chong Yidong <cyd@stupidchicken.com>
10104
10105 * eval.c (Fcondition_case): Doc fix.
10106
10107 * widgetprv.h (EmacsFramePart): Change font member to the new font
10108 struct.
10109
10110 * widget.c: Include character.h and font.h for XSETFONT.
10111 (setup_frame_gcs): Compute X font id from font struct, just once.
10112
101132008-08-26 Eli Zaretskii <eliz@gnu.org>
10114
10115 * term.c (get_named_tty): Fix last change.
10116
101172008-08-26 Chong Yidong <cyd@stupidchicken.com>
10118
10119 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10120 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10121
101222008-08-25 Eli Zaretskii <eliz@gnu.org>
10123
10124 * frame.c (do_switch_frame): Mark previously displayed frame as
10125 obscured for FRAME_MSDOS_P frames as well.
10126
101272008-08-24 Eli Zaretskii <eliz@gnu.org>
10128
10129 * frame.c (make_terminal_frame): Initialize f->terminal,
10130 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10131 Set the top frame to newly created frame.
10132 (Fmake_terminal_frame): Reuse the_only_display_info.
10133
10134 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10135 estimating available memory.
10136
b97439ce 101372008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10138
10139 * nsterm.m (ns_draw_window_cursor): Don't call
10140 NSDisableScreenUpdates and NSEnableScreenUpdates on
10141 non-NS_IMPL_COCOA systems.
10142
101432008-08-23 Andreas Schwab <schwab@suse.de>
10144
10145 * process.c (procfs_system_process_attributes): Fix use of
10146 uninitialized variables.
10147
101482008-08-23 Eli Zaretskii <eliz@gnu.org>
10149
10150 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10151
10152 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10153 calling tty-set-up-initial-frame-faces.
10154
b8ff72fa
SM
10155 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10156 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10157
10158 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10159 addition to output_termcap.
10160
10161 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10162
10163 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10164 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10165 highlight.
10166
10167 * process.c [!subprocesses]: Define QCname.
10168 (syms_of_process): Intern and staticpro it.
10169
10170 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10171 Adjust for changes in encoding/decoding routines.
10172 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10173 encode_coding and decode_coding.
10174
b8ff72fa 10175 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10176
10177 * dosfns.c: Include frame.h before termhooks.h.
10178 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10179 variable termscript.
10180
10181 * s/msdos.h (USER_FULL_NAME): Define.
10182 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10183
10184 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10185 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10186 pw->pw_gecos.
10187
10188 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10189 SELECTED_FRAME as additional (1st) argument.
10190 (tty_read_avail_input): Handle output_msdos_raw in
10191 addition to output_termcap.
10192
10193 * msdos.c: Include frame.h before termhooks.h.
10194 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10195 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10196 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10197 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10198 (IT_set_terminal_modes, IT_reset_terminal_modes)
10199 (IT_set_frame_parameters): Use tty->termscript instead of a global
10200 variable termscript.
10201 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10202 global variable terminal_coding. Don't refer to
10203 Vnonascii_translation_table.
10204 (internal_terminal_init): Set Vwindow_system in current_kboard.
10205 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10206 Announce date and time of session start, if termscript is open.
10207 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10208 term.c:init_tty). Open termscript only of not already open.
10209 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10210 here instead of dos_ttraw. Don't initialize display if this is an
10211 initial tty. Don't set FRAME_FONT.
10212 (Vwindow_system_version): Bump to 23.
10213 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10214 is available, set up mouse_position_hook.
10215 (dos_ttraw, IT_set_terminal_modes): If called with initial
10216 terminal, do nothing.
10217 (IT_set_frame_parameters): Handle the Qtty_type frame
10218 parameter by calling internal_terminal_init.
10219 (dos_set_window_size, show_mouse_face)
10220 (clear_mouse_face, IT_note_mode_line_highlight)
10221 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10222 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10223 (initialize_msdos_display): New function.
10224 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10225 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10226 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10227 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10228 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10229 (request_sigio, unrequest_sigio): Don't define, now defined on
10230 sysdep.c.
10231 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10232
10233 * term.c [MSDOS]: Include msdos.h.
10234 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10235 conditional to DOS_NT. Allow only one call to this function in a
10236 session. Don't allocate a new struct tty_display_info; instead,
10237 reuse the_only_display_info. Call get_tty_size to get screen
10238 dimensions. Call init_baud_rate to set bad_rate.
10239 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10240 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10241 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10242 (get_tty_terminal, get_named_tty, Ftty_type)
10243 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10244 output_termcap.
b8ff72fa
SM
10245 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10246 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10247 only when subprocesses are supported.
aac0c6e3
MR
10248
10249 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10250 f->output_data.x.
10251 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10252 terminal devices.
10253
5582fbc7 10254 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10255 x_output.
10256 (FRAME_FONT): Use output_data.tty.
10257 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10258 (struct x_display_info): Rename from display_info. Update all users in
10259 msdos.c.
aac0c6e3 10260 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10261 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10262 (dos_ttraw): Update prototype.
10263
10264 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10265 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10266
102672008-08-23 Jason Rumney <jasonr@gnu.org>
10268
10269 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10270 (fn_TIFFSetDirectory): New library function used.
10271 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10272 (tiff_load): Use :index to select among multiple images. Set count
10273 property when multiple images exist.
10274 (gif_format): Use :index, not :image.
10275
102762008-08-23 Chong Yidong <cyd@stupidchicken.com>
10277
10278 * xdisp.c (try_scrolling): Check INT_MAX instead of
10279 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10280 to obtain INT_MAX.
10281
102822008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10283
10284 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10285
102862008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10287
10288 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10289 GNUstep library location.
10290
102912008-08-21 Chong Yidong <cyd@stupidchicken.com>
10292
10293 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10294 before using it.
10295
10296 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10297
102982008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10299
10300 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10301 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10302 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10303 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10304 (EmacsApp-cursor_blink_handler): Remove declaration.
10305 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10306 match 01 Feb 2008 changes in xterm.c.
10307 (ns_read_socket): Add cast to avoid warning.
10308 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10309 GNUstep.
10310
103112008-08-20 Chong Yidong <cyd@stupidchicken.com>
10312
10313 * xselect.c (x_get_foreign_selection): Return nil if desired
10314 selection could not be obtained, instead of signalling an error.
10315
103162008-08-20 David Reitter <david.reitter@gmail.com>
10317
10318 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10319 * nsterm.m: Remove ns-specific code for cursor blinking.
10320 (ns_draw_window_cursor): Clear cursor properly rather than
10321 redrawing the area. Respect width of bar cursors.
10322 These changes enable the use of generic blink-cursor-mode and
10323 generic cursor types in NS and support smooth cursor movements (do
10324 not blink off after command).
10325 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10326 Nextstep, too.
10327
103282008-08-19 Kenichi Handa <handa@m17n.org>
10329
10330 * font.c (Vfont_log_deferred): New variable.
10331 (font_add_log): Check Vfont_log_deferred.
10332 (font_deferred_log): New function.
10333
10334 * font.h (font_deferred_log): Extern it.
10335
10336 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10337 for sorting.
10338 (face_for_char): Use deferred log.
10339
103402008-08-18 Kenichi Handa <handa@m17n.org>
10341
10342 * fontset.c (face_for_char): Add font log.
10343
10344 * font.c (font_add_log): Add the font properties :script, :lang,
10345 and :otf in the log.
10346
103472008-08-17 Chong Yidong <cyd@stupidchicken.com>
10348
10349 * xdisp.c: Remove dead code.
10350 (handle_invisible_prop, next_overlay_string): Defer call to
10351 setup_for_ellipsis.
10352 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10353
103542008-08-15 Chong Yidong <cyd@stupidchicken.com>
10355
10356 * xfaces.c (lookup_derived_face): Properly handle possible zero
10357 return value of get_lface_attributes.
10358 (merge_faces): Don't tell lookup_derived_face to signal an error
10359 if face is not found.
10360
10361 * dired.c (Fdirectory_files): Doc fix.
10362
10363 * process.c (make_process): Initialize kill_without_query struct
10364 member.
10365
103662008-08-15 Eli Zaretskii <eliz@gnu.org>
10367
10368 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10369 Alternative calculation of totphys for Visual Studio 6.
10370
10371 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10372
10373 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10374 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10375 All users changed.
10376 (stat): Only root directory passed to GetDriveType. Allow RAM
10377 disk as well as local fixed disk when w32-get-true-file-attributes
10378 is set to `local'.
10379 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10380 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10381 (w32_cached_id, w32_add_to_cache): New functions.
10382 (get_name_and_id): Look account names in the cache before calling
10383 lookup_account_sid.
10384 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10385 New initialization flags.
10386 (globals_of_w32): Initialize them to zero.
10387 (w32_system_process_attributes): Use w32_cached_id and
10388 w32_add_to_cache.
10389
103902008-08-14 Lawrence Mitchell <wence@gmx.li>
10391
10392 * lread.c (Fread_char, Fread_char_exclusive): If no character
10393 event is read before timeout is reached, return nil, rather than
10394 converting to a number.
10395
103962008-08-14 Chong Yidong <cyd@stupidchicken.com>
10397
10398 * fns.c (use_dialog_box): Doc fix.
10399
10400 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10401 on OS X.
10402
104032008-08-13 Chong Yidong <cyd@stupidchicken.com>
10404
10405 * frame.c (Qns_parse_geometry): New var.
10406 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10407
104082008-08-11 Chong Yidong <cyd@stupidchicken.com>
10409
10410 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10411 space character in calculating tabs.
10412
104132008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10416
104172008-08-10 Glenn Morris <rgm@gnu.org>
10418
10419 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10420 silence gcc "limited range of data type" warnings in some
10421 make_fixnum_or_float calls.
10422
104232008-08-09 Eli Zaretskii <eliz@gnu.org>
10424
10425 * w32.c (w32_system_process_attributes): If the process does not
10426 exist, return nil.
10427
10428 * w32.c: Include thelp32.h, psapi.h and coding.h.
10429 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10430 declarations.
10431 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10432 (Process32Next_Proc): New typedefs.
10433 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10434 (g_b_init_process32_next, g_b_init_open_thread_token)
10435 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10436 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10437 (g_b_init_get_process_working_set_size)
10438 (g_b_init_global_memory_status_ex): New static variables.
10439 (globals_of_w32): Initialize them.
10440 (create_toolhelp32_snapshot, process32_first, process32_next)
10441 (open_thread_token, impersonate_self, revert_to_self)
10442 (get_process_memory_info, get_process_working_set_size)
10443 (global_memory_status, global_memory_status_ex): New wrapper
10444 functions.
10445 (w32_list_system_processes, w32_system_process_attributes)
10446 (enable_privilege, restore_privilege, ltime, process_times):
10447 New functions.
10448 (convert_time_raw): New function.
10449 (convert_time): Remove conversion of FILETIME into time in 100
10450 nsec units, call convert_time_raw instead.
10451
10452 * process.h (w32_list_system_processes, w32_system_process_attributes):
10453 Add prototypes.
10454 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10455 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10456 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10457 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10458
10459 * process.c (Fsystem_process_attributes): Doc fix.
10460
104612008-08-08 Chong Yidong <cyd@stupidchicken.com>
10462
10463 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10464 a continued multi-char glyph; if so, advance to the actual glyph.
10465
104662008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10467
10468 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10469
10470 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10471 (.m.o): Use it.
10472 * config.in: Regenerate.
10473
104742008-08-07 Chong Yidong <cyd@stupidchicken.com>
10475
10476 * xdisp.c (redisplay_window): Revert last change.
10477 (try_window): Check bottom scroll margin too.
10478
104792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10480
10481 * config.in: Regenerate.
10482
10483 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10484 -list-load-path-shadows'.
10485 (nsgui.h): Reduce number of things depending on it.
10486
104872008-08-06 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10490 instead of window-end which does the wrong thing at eob.
10491 (try_cursor_movement): Minor optimization.
10492 (redisplay_window): If scroll margin is defined, don't assume
10493 window doesn't need scrolling.
10494
104952008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10496
10497 * config.in: Regenerate.
10498
10499 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10500 (mostlyclean): Don't delete *.d under NS.
10501
10502 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10503
105042008-08-06 Kenichi Handa <handa@m17n.org>
10505
10506 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10507
105082008-08-06 Andreas Schwab <schwab@suse.de>
10509
10510 * config.in: Regenerate.
10511
105122008-08-05 Chong Yidong <cyd@stupidchicken.com>
10513
10514 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10515 forcing a window start.
10516
10517 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10518 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10519
105202008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10521
10522 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10523 argument.
10524
105252008-08-05 Juanma Barranquero <lekktu@gmail.com>
10526
10527 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10528 <scroll-down-aggressively, before-change-functions>:
10529 <after-change-functions>: Reflow docstrings.
10530
105312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10532 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10533
10534 Dock menu customization, based on a patch by Ken Raeburn, plus some
10535 other fixes.
10536 * nsmenu.m (dockMenu): New variable.
10537 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10538
10539 * nsterm.h (dockMenu): Declare.
10540
10541 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10542 (ns_term_init): Initialize dockMenu.
10543 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10544 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10545 left.
10546
10547 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10548
105492008-08-04 Chong Yidong <cyd@stupidchicken.com>
10550
10551 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10552
10553 * config.in: Regenerate.
10554
105552008-08-04 Seiji Zenitani <zenitani@mac.com>
10556
10557 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10558
105592008-08-04 Chong Yidong <cyd@stupidchicken.com>
10560
10561 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10562
105632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10564
10565 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10566
10567 * keyboard.h: Comment an #endif.
10568
10569 * lisp.h (have_menus_p): Adjust comment.
10570
10571 * menu.c (find_and_return_menu_selection): Fix comparison with
10572 client_data.
10573
10574 * nsmenu.m (popup_activated_flag): New variable.
10575 (popup_activated): New function.
10576 (menu-or-popup-active-p): New exported lisp definition.
10577 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10578 when popup done.
10579 (ns_popup_dialog): Set popup_activated_flag.
10580
10581 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10582 version for GNUstep (handled by conditional typedef in nsterm.m).
10583 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10584 in rgb.txt).
10585
10586 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10587
10588 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10589
10590 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10591
10592 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10593 shortcircuit if popup_activated like GTK and X toolkit.
10594
10595 * m/inter386.h: Change DARWIN to DARWIN_OS.
10596
10597 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10598 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10599 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10600 comment on NO_SOCK_SIGIO.
10601
106022008-08-03 Chong Yidong <cyd@stupidchicken.com>
10603
10604 * nsterm.m (windowDidResize): Remove stopModal call.
10605
106062008-08-03 Andreas Schwab <schwab@suse.de>
10607
10608 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10609 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10610
106112008-08-02 Chong Yidong <cyd@stupidchicken.com>
10612
10613 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10614 Don't use uninitialized pointer variable when using getrlimit.
10615
106162008-08-02 Jason Rumney <jasonr@gnu.org>
10617
10618 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10619
106202008-08-02 Eli Zaretskii <eliz@gnu.org>
10621
10622 * alloc.c (NSTATICS): Bump to 0x640.
10623
10624 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10625
10626 * lisp.h: Add prototype for directory_files_internal.
10627
10628 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10629 New functions.
10630 (syms_of_process): Defsubr them. Add initializations for various
10631 Q* symbols used in procfs_system_process_attributes.
10632 (procfs_list_system_processes, procfs_system_process_attributes)
10633 [HAVE_PROCFS]: New functions.
10634 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10635 (procfs_get_total_memory): New functions.
10636
106372008-08-01 Juanma Barranquero <lekktu@gmail.com>
10638
10639 * xfaces.c (Fx_load_color_file): Fix previous change;
10640 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10641
106422008-08-01 Michael Albinus <michael.albinus@gmx.de>
10643
10644 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10645
106462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10647
10648 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10649
106502008-08-01 Chong Yidong <cyd@stupidchicken.com>
10651
10652 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10653
10654 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10655 define NSApplicationDelegateReplySuccess.
10656 (EmacsView -converstationIdentifier): Use long instead of
10657 NSInteger for GNUstep, since it doesn't have NSInteger.
10658
10659 * xmenu.c: Revert last change.
10660
10661 * keyboard.h: Fix last change.
10662
106632008-08-01 Juanma Barranquero <lekktu@gmail.com>
10664
10665 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10666 on Windows.
10667
106682008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10669
10670 Warning clearing and clean-up in NS port.
10671 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10672 Add prototypes.
10673 * nsgui.h (FACE_DEFAULT): Remove, unused.
10674 (XGCValues): Change colors to unsigned long.
10675 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10676 nsterm.m.
10677 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10678 (ns_list_fonts): Remove, unused.
10679 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10680 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10681 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10682 (nsfont_draw): Compare face colors to 0, not nil.
10683 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10684 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10685 (-addSubmenuWithTitle:): Use NSMenuItem class.
10686 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10687 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10688 (ns_clip_to_row): Make gc arg a BOOL.
10689 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10690 ns_clip_to_row() call.
10691 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10692 used). Cast FRAME_FONT assignments.
10693 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10694 (ns_string_to_lispmod): Change arg to const char.
10695 (ns_term_init): Use NSMenuItem class.
10696 (EmacsApp -openFile:): Move to different section of file.
10697 (EmacsApp -application:openFiles:): Don't return a value, call
10698 -replyToOpenOrPrint:.
10699 (EmacsView -keyDown:): Fix up cast.
10700 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10701 (EmacsView -menuDown:): Cast tag in call to
10702 find_and_call_menu_selection().
10703 (ns_list_fonts): Remove, unused.
10704 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10705 (ns_fontname_to_xlfd): Make static.
10706 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10707 Remove prototypes (now in keyboard.h).
10708 (next_menubar_widget_id): Remove, unused.
10709 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10710 Remove prototypes (now in keyboard.h).
10711 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10712
107132008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10714
10715 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10716 (floatfns.o): Depend on syssignal.h.
10717 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10718
10719 * systty.h: Fix previous change that removed BSD_TERMIOS.
10720 Add comments to #ifdefs.
10721
107222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10723
10724 * w32fns.c (w32-load-color-file): Remove.
10725 (x-open-connection): Use renamed Fx_load_color_file.
10726 * xfaces.c (x-load-color-file): Add.
10727 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10728 Emacs.clr.
10729 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10730
107312008-07-31 Michael Albinus <michael.albinus@gmx.de>
10732
10733 * dbusbind.c (Fdbus_call_method_asynchronously)
10734 (Fdbus_method_error_internal): New defuns.
10735 (xd_read_message): Handle also reply messages.
10736 (Vdbus_registered_functions_table): Extend docstring.
10737
107382008-07-31 Juanma Barranquero <lekktu@gmail.com>
10739
10740 * keyboard.c (gobble_input): Fix previous change.
10741
107422008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10743
10744 * bitmaps/README:
10745 * xfns.c:
10746 * termcap.c:
10747 * term.c:
10748 * syswait.h:
10749 * systty.h:
10750 * systime.h:
10751 * syssignal.h:
10752 * sysdep.c:
10753 * process.h:
10754 * process.c:
10755 * print.c:
10756 * ndir.h:
10757 * lread.c:
10758 * keyboard.c:
10759 * getpagesize.h:
10760 * floatfns.c:
10761 * fileio.c:
10762 * emacs.c:
10763 * doc.c:
10764 * dispnew.c:
10765 * dired.c:
10766 * data.c:
10767 * callproc.c:
10768 * buffer.c:
10769 * README:
10770 * Makefile.in:
10771 * s/template.h:
10772 * s/msdos.h:
10773 * m/vax.h: Remove VMS support.
10774 * s/vms.h:
10775 * vlimit.h:
10776 * uaf.h:
10777 * temacs.opt:
10778 * param.h:
10779 * ioctl.h: Remove file.
10780
107812008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10782
10783 * s/ms-w32.h (MULTI_KBOARD): Remove.
10784 * xterm.c:
10785 * xselect.c:
10786 * xfns.c:
10787 * window.c:
10788 * w32term.c:
10789 * w32fns.c:
10790 * terminal.c:
10791 * termhooks.h:
10792 * term.c:
10793 * sysdep.c:
10794 * keyboard.h:
10795 * keyboard.c:
10796 * frame.h:
10797 * frame.c:
10798 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10799 * config.in: Regenerate.
10800
108012008-07-30 Jason Rumney <jasonr@gnu.org>
10802
10803 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10804
10805 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10806 (w32font_open_internal): Get unicode version of textmetrics.
10807 Don't enable or disable glyph indices here.
10808 (w32font_open): Disable use of glyph indices.
10809
10810 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10811
108122008-07-30 Chong Yidong <cyd@stupidchicken.com>
10813
10814 * minibuf.c (Vread_buffer_function): Doc fix.
10815
108162008-07-30 John Paul Wallington <jpw@pobox.com>
10817
10818 * minibuf.c (read_buffer_completion_ignore_case): New var.
10819 (Fread_buffer): Use it.
10820
108212008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10822
10823 * systty.h (sensemode): Remove empty #if. Remove reference to
10824 BSD_TERMIOS, unused.
10825
10826 * sysdep.c: Remove reference to DGUX.
10827 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10828
10829 * config.in: Regenerate.
10830
108312008-07-30 Jason Rumney <jasonr@gnu.org>
10832
10833 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10834
108352008-07-29 Jason Rumney <jasonr@gnu.org>
10836
10837 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10838 is populated.
10839 (uniscribe_encode_char): Always use uniscribe.
10840 Avoid using context if cache is populated.
10841
108422008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10843
10844 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10845 open menu.
10846
10847 * gtkutil.c (menu_nav_ended): Remove.
10848 (create_menus): Remove signal connect for menu_nav_ended.
10849
108502008-07-28 Chong Yidong <cyd@stupidchicken.com>
10851
10852 * xdisp.c (redisplay_window): Check return value of
10853 compute_window_start_on_continuation_line before forcing a window
10854 start.
10855
108562008-07-28 Jason Rumney <jasonr@gnu.org>
10857
10858 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10859
10860 * w32term.c (w32_enable_unicode_output, cleartype_active):
10861 Remove obsolete display options.
10862 (x_draw_glyph_string_background): Don't use old cleartype_active
10863 workaround.
10864 (w32_initialize): Remove cleartype_active initialization.
10865 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10866
108672008-07-28 Andreas Schwab <schwab@suse.de>
10868
10869 * lisp.h (init_weak_hash_tables, syms_of_font)
10870 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10871 (remove_hash_entry): Don't declare.
10872 * eval.c (maybe_call_debugger): Make static and move before use.
10873 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10874 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10875 * xterm.h (x_set_frame_alpha): Declare.
10876
108772008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10878
10879 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10880 (create_menus): Connect selection-done to menu_nav_ended.
10881
108822008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10883
10884 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10885 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10886 parameter with read of 'alpha' one.
10887 (Qns_frame_parameter): Remove.
5582fbc7 10888 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10889 (next-selection-coding-system, Vselection_coding_system)
10890 (Vnext_selection_coding_system): Drop.
10891
108922008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10893
10894 * nsfns.m (do-applescript, do_applescript): Rename to
10895 ns-do-applescript, ns_do_applescript, and move within file.
10896
108972008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10898
10899 Remove support for Mac Carbon.
10900 * mactoolbox.c:
10901 * macterm.h:
10902 * macterm.c:
10903 * macselect.c:
10904 * macmenu.c:
10905 * macgui.h:
10906 * macfns.c:
10907 * mac.c: Remove file.
10908 * s/darwin.h:
10909 * m/intel386.h:
10910 * xfaces.c:
10911 * xdisp.c:
10912 * window.c:
10913 * tparam.c:
10914 * termhooks.h:
10915 * termcap.c:
10916 * term.c:
10917 * syssignal.h:
10918 * sysselect.h:
10919 * sysdep.c:
10920 * process.c:
10921 * lread.c:
10922 * lisp.h:
10923 * keyboard.c:
10924 * image.c:
10925 * fringe.c:
10926 * frame.h:
10927 * frame.c:
10928 * fontset.c:
10929 * font.h:
10930 * font.c:
10931 * fns.c:
10932 * fileio.c:
10933 * emacs.c:
10934 * dispnew.c:
10935 * dispextern.h:
10936 * config.in:
10937 * atimer.c:
2ae37cf0 10938 * Makefile.in: Remove code for Carbon.
aac0c6e3 10939
f0131492 109402008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10941
10942 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10943
109442008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10945
10946 * macterm.h (kCGBitmapByteOrder32Host): New define for
10947 non-universal SDKs.
10948
10949 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10950 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10951
10952 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10953 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10954
109552008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10956
10957 * w32inevt.c: Include dispextern.h.
10958
109592008-07-26 Andreas Schwab <schwab@suse.de>
10960
10961 * print.c (print_object): Fix off-by-one in last change.
10962
109632008-07-25 Juanma Barranquero <lekktu@gmail.com>
10964
10965 * term.c (syms_of_term): Don't initialize default_orig_pair,
10966 default_set_foreground and default_set_background on Windows.
10967
109682008-07-25 Jason Rumney <jasonr@gnu.org>
10969
10970 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10971 ScriptItemize. Clean up return value checking. Remove unused
10972 variables.
10973 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10974 shaping engine.
10975
10976 * w32font.c (w32font_has_char): Handle the case where we can't
10977 determine the script for a character.
10978
109792008-07-25 Chong Yidong <cyd@stupidchicken.com>
10980
10981 * term.c (syms_of_term): Initialize default_orig_pair,
10982 default_set_foreground, and default_set_background.
10983
10984 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10985 clash (bug#86).
10986 (getloadavg): Callers changed.
10987
10988 * image.c (svg_load_image): Fix last change.
10989 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10990 image size is valid. Use g_object_unref instead of deprecated
10991 rsvg_handle_free to free rsvg handle.
10992 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10993
109942008-07-25 Jason Rumney <jasonr@gnu.org>
10995
10996 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10997 surrogates before looking up glyph index.
10998 (w32font_text_extents): Encode as surrogates if falling back to
10999 functions that need UTF-16 wide chars.
11000
11001 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11002 BMP as surrogates before looking up glyph index.
11003
110042008-07-25 Chong Yidong <cyd@stupidchicken.com>
11005
11006 * image.c (svg_load_image): Check for failure in return value of
11007 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11008
110092008-07-25 Jason Rumney <jasonr@gnu.org>
11010
11011 * w32font.c (Fx_select_font): Reverse sense of second arg.
11012
110132008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11014
11015 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11016 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11017
11018 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11019 (PURESIZE): Use it.
11020
110212008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11022
11023 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11024 * m/alpha.h (TEXT_END):
11025 * m/ibmrs6000.h (TEXT_END):
11026 * m/macppc.h (TEXT_END):
11027 * s/darwin.h (TEXT_END):
11028 * s/msdos.h (TEXT_END): Remove, unused.
11029 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11030 * s/cygwin.h: Remove comment.
11031
11032 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11033 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11034 * m/intel386.h (DOT_GLOBAL_START):
11035 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11036 (USG): Remove, file not used on USG platforms.
11037
11038 * Makefile.in (HAVE_X11): Remove empty #else.
11039
110402008-07-24 Andreas Schwab <schwab@suse.de>
11041
11042 * fileio.c (Finsert_file_contents): Properly adjust undo list
11043 after format conversion.
11044
110452008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11046
11047 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11048 (menu_nav_ended): Remove.
11049 (create_menus): Remove signal connect for menu_nav_ended.
11050 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11051 create_menus.
11052 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11053
110542008-07-23 Jason Rumney <jasonr@gnu.org>
11055
11056 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11057 with opened font.
11058 (w32font_open): Set font type to gdi.
11059
11060 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11061
110622008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11063
11064 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11065 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11066 defines it.
11067 * unexec.c (ADDR_CORRECT): Define unconditionally.
11068
11069 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11070
11071 * unexec.c: Remove code depending on !COFF and USG, the file is
11072 not used for such systems.
11073
11074 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11075 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11076 (LD_SWITCH_SYSTEM_1): Remove, update users.
11077
11078 * s/darwin.h (DATA_END):
11079 * m/intel386.h (DATA_END):
11080 * m/ibmrs6000.h (DATA_END):
11081 * m/alpha.h (DATA_END): Remove, unused.
11082
11083 * config.in: Regenerate.
11084 * s/ms-w32.h (subprocesses): Define unconditionally.
11085 * s/template.h (subprocesses): Update comment.
11086 * s/vms.h (subprocesses):
11087 * s/usg5-4.h (subprocesses):
11088 * s/hpux10-20.h (subprocesses):
11089 * s/gnu-linux.h (subprocesses):
11090 * s/cygwin.h (subprocesses):
11091 * s/bsd-common.h (subprocesses):
11092 * s/aix4-2.h (subprocesses):
11093 * s/darwin.h (subprocesses): Do not define, defined by default now.
11094
11095 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11096 Remove all references.
11097 (temacs): Add GNUstep specific ld flags.
11098
11099 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11100 similarly to what X does.
11101
111022008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11103
11104 * nsfns.m (x-list-fonts): Remove.
11105 (syms_of_nsfns): Drop the x-list-fonts declaration.
11106 * nsterm.m: Get rid of remaining "//" comments.
11107
111082008-07-22 Chong Yidong <cyd@stupidchicken.com>
11109
11110 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11111
11112 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11113 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11114 (Fns_own_selection_internal, Fx_disown_selection_internal)
11115 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11116
11117 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11118 ... */' style of docstrings. Doc fixes.
11119
111202008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11121
11122 * terminfo.c (UP, BC, PC): Undo previous change.
11123
11124 * nsfns.m: Rename ns prefixed functions/variables to the
11125 corresponding x versions. Update references.
11126
111272008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11128
11129 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11130
111312008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11132
11133 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11134 Remove forwarding functions.
11135 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11136 non-static.
11137 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11138 non-static.
11139 (ns_frame_parm_handlers): Use the new names.
11140 (syms_of_nsfns): Move to the end of file.
11141
11142 * nsterm.m (syms_of_nsterm): Move to the end of file.
11143
11144 * dispnew.c (init_display): Remove code for X10.
11145
111462008-07-22 Jason Rumney <jasonr@gnu.org>
11147
11148 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11149 bare drive.
11150
111512008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11152
11153 * nsterm.m (syms_of_nsterm): Remove debugging println.
11154
111552008-07-22 David Reitter <david.reitter@gmail.com>
11156
11157 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11158 Carbon implementation of the same functionality: execute arbitrary
11159 AppleScript code.
11160
111612008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11162
11163 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11164 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11165 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11166 (Fx_display_mm_height, Fx_display_mm_width)
11167 (Fx_display_backing_store, Fx_display_visual_class)
11168 (Fx_display_save_under, Fx_open_connection)
11169 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11170 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11171 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11172 (Fx_display_pixel_width, Fx_display_pixel_height)
11173 (Fx_display_usable_bounds, Fx_display_planes)
11174 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11175 ... */' style of docstrings.
11176
111772008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11178
11179 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11180 on this platform.
11181 (mips):
11182 * m/iris4d.h (mips): Do not define.
11183 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11184
11185 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11186
11187 * image.c:
11188 * nsfns.m:
11189 * nsselect.m:
11190 * nsterm.h:
11191 * nsterm.m: Rename ns prefixed functions/variables to the
11192 corresponding x versions. Update references.
11193
11194 * m/ibms390x.h (NO_REMAP): Do not undefine.
11195
11196 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11197
111982008-07-21 Chong Yidong <cyd@stupidchicken.com>
11199
11200 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11201 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11202 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11203 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11204 (Fns_display_mm_height, Fns_display_mm_width)
11205 (Fns_display_backing_store, Fns_display_visual_class)
11206 (Fns_display_save_under, Fns_open_connection)
11207 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11208 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11209 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11210 (Fns_display_pixel_width, Fns_display_pixel_height)
11211 (Fns_display_usable_bounds, Fx_display_planes)
11212 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11213
112142008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11215
11216 * print.c (print_object): Check print_depth before searching for
11217 circularities.
11218
112192008-07-21 Michael Albinus <michael.albinus@gmx.de>
11220
11221 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11222 only sprintf.
11223
112242008-07-21 Kenichi Handa <handa@m17n.org>
11225
11226 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11227
112282008-07-20 Andreas Schwab <schwab@suse.de>
11229
11230 * syntax.c (find_start_pos, find_start_value)
11231 (find_start_value_byte, find_start_begv, find_defun_start)
11232 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11233
112342008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11235
11236 * s/sol2-3.h: Insert contents of s/sol2.h.
11237 (LD_SWITCH_SYSTEM): Remove redundant definition.
11238 * s/sol2.h: Remove, unused.
11239
112402008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11241
11242 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11243
112442008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11245
11246 * Makefile.in (ns_appdir): Fix typo in find command.
11247
112482008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11249
11250 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11251
11252 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11253 added not supported anymore.
11254
11255 * s/usg5-4-2.h (LIBS_SYSTEM):
11256 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11257
11258 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11259 * s/lynxos.h (GETPGRP_NO_ARG):
11260 * s/hpux10-20.h (NO_SIOCTL_H):
11261 * s/gnu.h (GETPGRP_NO_ARG):
11262 * s/gnu-linux.h (NO_SIOCTL_H):
11263 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11264 * s/cygwin.h (GETPGRP_NO_ARG):
11265 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11266 (C_DEBUG_SWITCH): Remove duplicate definition.
11267
11268 * m/ibms390.h: Remove boilerplate comments.
11269
11270 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11271
11272 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11273 (wait_reading_process_output): Remove code for SunOS, platform not
11274 supported anymore. Use SOLARIS2 instead of sun.
11275
112762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11277
11278 * font.c (font_open_by_name): Under NS, default lface height to zero.
11279 (font_open_for_lface): Under NS, set size based on frame fontsize.
11280 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11281 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11282
112832008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11284
11285 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11286 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11287 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11288 YES/NO.
11289 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11290 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11291 * Makefile.in (clean): Clear out build destination dir.
11292
112932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11294
11295 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11296 xterm, xselect.
11297 * lisp.h: Remove declaration of hash_remove.
11298 * nsgui.h: Remove redefinitions of hash_remove.
11299 * fns.c (hash_remove): Rename to hash_remove_from_table.
11300
113012008-07-19 Seiji Zenitani <zenitani@mac.com>
11302
11303 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11304 strdup() the family UTF8String before modifying it.
11305
113062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11307
11308 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11309 NS_FACE_BACKGROUND with 0 instead of nil.
11310 * nsfont.m (nsfont_draw): Same.
11311
113122008-07-19 Chong Yidong <cyd@stupidchicken.com>
11313
11314 * nsfns.m (ns_set_background_color): Fix crash.
11315
113162008-07-18 Chong Yidong <cyd@stupidchicken.com>
11317
11318 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11319
113202008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11321
11322 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11323
113242008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11325
11326 * gtkutil.c: Include <config.h> instead of "config.h".
11327
11328 * lisp.h (Foverlay_buffer): Add EXFUN.
11329
11330 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11331 child process to complete child_setup. Undo 2005-09-21 change.
11332
11333 * s/darwin.h: Mention setsid after vfork.
11334
113352008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11336
11337 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11338 Depend on macgui.h.
11339
11340 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11341 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11342
11343 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11344 and f19.
11345 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11346
11347 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11348 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11349 Remove enumerators.
11350
11351 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11352 Check if FACE_FROM_ID returns NULL.
11353
113542008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11355
11356 * w32inevt.c (change_frame_size): Remove extern declaration.
11357 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11358 change_frame_size.
11359
113602008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11361
11362 * getloadavg.c: Revert last change (2008-07-15).
11363
113642008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11365
11366 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11367 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11368 from configure.
11369
113702008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11371
11372 * s/sol2.h:
11373 * s/sol2-4.h: Reorganize conditionals.
11374
11375 * ecrt0.c: Remove code depending on m68000, not used anymore.
11376
11377 * fns.c (hash_remove): Make static.
11378 * lisp.h (hash_remove): Don't prototype.
11379
11380 * m/ibmrs6000.h:
11381 * m/ibms390x.h:
11382 * m/macppc.h: Remove boilerplate comments.
11383
11384 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11385 Solaris, which does not need them.
11386
11387 * m/vax.h: Remove comments about unsupported systems.
11388
11389 * s/darwin.h: Reorganize ifdefs.
11390
113912008-07-17 Andreas Schwab <schwab@suse.de>
11392
11393 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11394
113952008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11396
11397 Use SDATA. Follow coding convention of placing operators at
11398 beginning of next line rather than end of previous line, and placing
11399 spaces around infix operators.
11400
11401 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11402 in case it was defined already.
11403 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11404 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11405 ns_default.
11406 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11407 Lisp_Objects.
11408 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11409 (ns_defined_color, ns_color_to_lisp): Declare.
11410 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11411 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11412 it's accepted even with USE_LISP_UNION_TYPE.
11413 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11414 (update_frame_tool_bar): Remove apparently obsolete tests for
11415 non-integerness of f->tool_bar_lines.
11416 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11417 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11418 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11419 (nsfont_open): Don't confuse NULL for Qnil.
11420 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11421 * menu.h (find_and_call_menu_selection):
11422 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11423 (find_and_return_menu_selection): Always return something.
11424 * frame.h: Include dispextern.h for Display_Info.
11425 (display_x_get_resource): Declare.
11426
114272008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11428
11429 * syntax.c: Remove stdio.h include accidentally introduced in
11430 Emacs.app commit.
11431 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11432 NS_IMPL_COCOA.
11433 * keyboard.c (handle_async_input, input_available_signal): Remove
11434 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11435
114362008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11437
11438 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11439 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11440 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11441 Use SDATA.
11442
11443 * keymap.c: Remove all NS-specific code.
11444 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11445 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11446 where_is_preferred_modifier, return a different value depending on how
11447 preferred is the binding.
11448 (where_is_internal): Adjust accordingly.
11449 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11450 Adjust to new preferred_sequence_p.
11451 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11452 * keyboard.c (parse_solitary_modifier): Not static any more.
11453 * keyboard.h (parse_solitary_modifier): Declare.
11454
114552008-07-16 Andreas Schwab <schwab@suse.de>
11456
11457 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11458 of easymenu.
11459
114602008-07-16 Chong Yidong <cyd@stupidchicken.com>
11461
11462 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11463 that we don't move off the line.
11464
114652008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11466
11467 * keyboard.c (Qsuper): Remove.
11468 (parse_menu_item): Don't call where_is_internal specially for NS.
11469
114702008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11471
11472 * s/gnu-linux.h: Remove boilerplate comments.
11473
11474 * m/alpha.h (__ELF__): Consolidate conditions.
11475
11476 * m/m68k.h (linux): Use GNU_LINUX instead.
11477 Remove boilerplate comments.
11478
11479 * m/intel386.h: Undo refactoring from previous change.
11480 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11481 too, remove dead code.
11482 (linux): Use GNU_LINUX instead.
11483
114842008-07-16 Jason Rumney <jasonr@gnu.org>
11485
11486 * w32gui.h: Repeat 26 June changes lost by last change.
11487
114882008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11489
11490 * systty.h: Remove code for Aix on 386, unsupported platform.
11491
11492 * s/ms-w32.h: Remove boilerplate comments.
11493 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11494
11495 * s/gnu-linux.h (TERM): Remove support.
11496 (HAVE_SYSVIPC): Remove, unused.
11497 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11498 for this system.
11499
11500 * process.c: Remove support for IRIS, unused.
11501 Remove support for TERM, not relevant anymore.
11502
11503 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11504 used with the definition.
11505
11506 * s/aix4-2.h (static): Do not undef.
11507
11508 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11509 only used on Aix.
11510 (HAVE_SYSVIPC): Remove, unused.
11511
11512 * m/hp800.h (CANNOT_DUMP): Do not undef.
11513
11514 * m/alpha.h: Fix comment.
11515
11516 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11517 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11518 used by this configuration.
11519 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11520 * unexec.c: Remove code depending on HPUX and
11521 USG_SHARED_LIBRARIES, not used with this file. Remove code
11522 depending on IRIS, unused. Remove if 0-ed code.
11523
11524 * s/template.h: Remove comments about static.
11525
11526 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11527 Remove if 0-ed code.
11528 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11529 were the same as the default.
11530 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11531 Remove boilerplate comments.
11532 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11533 (HAVE_SYSVIPC): Remove, unused.
11534 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11535
11536 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11537 Remove boilerplate comments.
11538 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11539 Remove boilerplate comments.
11540 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11541 Remove boilerplate comments.
11542 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11543
11544 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11545 USG systems which do not use DATA_SEG_BITS.
11546 Refactor code. Remove boilerplate comments.
11547
11548 * m/ibms390.h:
11549 * m/m68k.h:
11550 * s/bsd-common.h:
11551 * s/cygwin.h:
11552 * s/darwin.h:
11553 * s/freebsd.h:
11554 * s/gnu.h:
11555 * s/msdos.h: Remove boilerplate comments.
11556
11557 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11558 do not use this file.
aac0c6e3
MR
11559 (IRIS_4D): Remove, unused.
11560
11561 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11562 do not use this file.
aac0c6e3
MR
11563 (SIGN_EXTEND_CHAR):
11564 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11565 * unexmips.c: Remove file, unused.
11566
11567 * editfns.c (Fuser_full_name): Replace the only use of
11568 USER_FULL_NAME with its value.
11569 * config.in: Regenerate.
11570
115712008-07-16 David Reitter <david.reitter@gmail.com>
11572
11573 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11574 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11575
115762008-07-16 Glenn Morris <rgm@gnu.org>
11577
11578 * emacs.c (system-type): Doc fix.
11579
115802008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11581
11582 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11583 If the cache doesn't work, let's fix it, rather than work around it.
11584
115852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11586
11587 * Makefile.in: Correct additions for nsfont.o in last commit.
11588 * nsfont.m: New file (forgot last commit).
11589
115902008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11591
11592 * callproc.c (set_initial_environment): Initialize
11593 Vprocess_environment under CANNOT_DUMP (fixes crash when
11594 batch-compiling for bootstrap).
11595
115962008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11597 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11598
11599 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11600 fix crash due to different init order.
11601
116022008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11603
11604 Changes and additions for NeXTstep windowing system (Cocoa and
11605 GNUstep) support.
11606
11607 * Makefile.in:
11608 * config.in: Support defines and build commands for NS port.
11609 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11610 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11611 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11612 windowing.
11613 (struct face): Add synth_ital field.
11614 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11615 (init_display): Initialize Vinitial_window_system to "ns" when so
11616 compiled.
11617 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11618 (display_arg): Use under NS.
11619 (main): Under NS, allocate autorelease pool and handle command line
11620 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11621 (standard_args): Add NS-specific args.
11622 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11623 * font.c (DEFAULT_ENCODING): New variable.
11624 (font_find_for_lface): Use it.
11625 (syms_of_font): Load syms_of_nsfont under NS.
11626 * font.h: Declare nsfont_driver when compiled under NS.
11627 * fontset.c: When compiling under NS, include nsterm.h.
11628 (fontset_from_font): Autoconstruct fontset under NS.
11629 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11630 symbol, document and use it.
11631 (do_switch_frame): When for_deletion under Cocoa, add
11632 Fraise_frame(Qnil).
11633 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11634 (x_get_arg): Allow "yes" and "no" as boolean values.
11635 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11636 Qright under Cocoa.
11637 (focus-follows-mouse): Default to 0 under NS.
11638 * frame.h (enum output_method): Add output_ns.
11639 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11640 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11641 (FRAME_WINDOW_P): NS-specific definition.
11642 * fringe.c (max_used_fringe_bitmap): Make public.
11643 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11644 (getloadavg): Use NeXT code under descendant OS's.
11645 * image.c (includes and header section, x_create_bitmap_from_data)
11646 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11647 (image_background_transparent, x_clear_image_1)
11648 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11649 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11650 (x_to_xcolors, x_from_xcolors, x_disable_image)
11651 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11652 other GUIs, including XPM support using code originally written for
11653 Carbon GUI.
11654 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11655 using NS API.
11656 (image_ascent): Use font metrics macros instead of direct struct field
11657 access.
11658 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11659 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11660 Also, handle NS as GTK for menu bar purposes.
11661 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11662 toolkit where they differ.
11663 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11664 use cachelist, still needed under NS.
11665 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11666 (struct widget_value): Define it here for menu.c.
11667 * keymap.c (includes): Include modifier internals.
11668 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11669 NS.
11670 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11671 support for preferring sequences using certain modifiers, specified by
11672 the FIRSTONLY argument.
11673 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11674 under NS GNUstep implementation.
11675 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11676 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11677 * menu.c: Include nsterm.h under NS.
11678 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11679 (free_menubar_widget_tree_value, update_submenu_strings)
11680 (find_and_call_menu_selection): Treat NS as X and NT.
11681 (find_and_return_menu_selection): New function, used for popup menus.
11682 * nsgui.h:
11683 * nsterm.h:
11684 * nsfns.m:
11685 * nsimage.m:
11686 * nsmenu.m:
11687 * nsselect.m:
11688 * nsterm.m: New files.
11689 * process.c (wait_reading_process_output): Under NS, call ns_select()
11690 instead of plain select().
11691 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11692 beginning of buffer.
11693 * sysselect.h (init_process): Rename when compiling under Cocoa to
11694 avoid name conflict.
11695 * termhooks.h (display_info): Add ns_display_info to union.
11696 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11697 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11698 COCOA environment.
11699 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11700 unexec() signature. (Note, this will dump, but the resulting file
11701 crashes; unexosx is used instead; keeping around for reference and
11702 possible aid in getting dump working under GNUstep.)
11703 * w32gui.h (button_type, widget_value): Remove definitions (now in
11704 keyboard.h).
11705 * window.c: Include nsterm.h when compiling under NS.
11706 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11707 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11708 other GUI windowing systems.
11709 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11710 GTK.
11711 (x_consider_frame_title): Under NS, set icon type and frame
11712 modified-state indicator; use ns_set_name_as_filename() when using
11713 formatted title.
11714 (update_window_cursor): Make public when compiling under NS.
11715 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11716 (hourglass_atimer, Vhourglass_delay
11717 * xfaces.c (header section, init_frame_faces, clear_font_table)
11718 (defined_color, unload_color, x_face_list_fonts)
11719 (prepare_face_for_display): Add NS support parallel to other GUIs.
11720 Emulate GCs like other non-X GUIs.
11721 (split_font_name): Don't lowercase font name under NS.
11722 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11723 under NS.
11724 * s/darwin.h: Add support for compilation under NS.
11725
117262008-07-15 Jason Rumney <jasonr@gnu.org>
11727
11728 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11729 (w32_show_hourglass): Rename from show_hourglass.
11730 (w32_hide_hourglass): Rename from hide_hourglass.
11731 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11732 (Vhourglass_delay): Declare extern.
11733 (hourglass_started): Remove.
11734
11735 * xdisp.c (Vhourglass_delay): Remove static.
11736 (hourglass_started, start_hourglass, cancel_hourglass):
11737 Don't include these versions on WINDOWSNT.
11738
117392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11740
11741 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11742 variables (formerly in xfns.c).
11743 (show_hourglass, hide_hourglass): New prototypes (same).
11744 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11745 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11746 in xfns.c).
11747 (syms_of_xdisp): Declare/initialize display-hourglass,
11748 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11749 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11750 formerly in xfns.c.
11751 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11752 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11753 (start_hourglass, cancel_hourglass): Remove.
11754 (show_hourglass, hide_hourglass): Remove prototypes and static
11755 modifiers.
11756 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11757 hourglass_atimer, hourglass_shown_p declaration/initialization.
11758 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11759 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11760 (start_hourglass, cancel_hourglass): Remove.
11761 (show_hourglass, hide_hourglass): Remove prototypes and static
11762 modifiers.
11763 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11764 hourglass_atimer, hourglass_shown_p declaration/initialization.
11765 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11766 (DEFAULT_HOURGLASS_DELAY): Remove.
11767 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11768 hourglass_shown_p declaration/initialization.
11769
117702008-07-14 Jason Rumney <jasonr@gnu.org>
11771
11772 * w32fns.c (w32_get_arg): Remove wrapper function.
11773 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11774 directly.
11775 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11776
117772008-07-14 Kenichi Handa <handa@m17n.org>
11778
11779 * xfont.c (xfont_open): Add workaround for X's bug.
11780
117812008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11782
11783 * fontset.c: Include <stdio.h> unconditionally.
11784
117852008-07-13 Michael Albinus <michael.albinus@gmx.de>
11786
11787 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11788 for filtering.
11789
117902008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11791
11792 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11793
11794 * m/macppc.h:
11795 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11796
11797 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11798 (SPECIAL_EMACS_INT):
11799 * m/ia64.h (SPECIAL_EMACS_INT):
11800 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11801 * s/gnu.h (NLIST_STRUCT):
11802 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11803 * s/gnu-linux.h (LINUX):
11804 * s/msdos.h (HAVE_FACES):
11805 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11806
11807 * systty.h:
11808 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11809 anymore.
11810
118112008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11812
11813 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11814 always defined as int.
11815
11816 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11817 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11818 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11819 * s/freebsd.h (HAVE_WAIT_HEADER):
11820 * s/bsd-common.h (HAVE_UNION_WAIT):
11821 * s/aix4-2.h (HAVE_WAIT_HEADER):
11822 * m/mips.h (HAVE_UNION_WAIT):
11823 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11824 (COFF, static): Do not define, they are undefined later in the file.
11825
11826 * process.c (update_status): Don't use a union.
11827 (status_convert):
11828 (sigchld_handler): Use int instead of WAITTYPE.
11829
118302008-07-12 Chong Yidong <cyd@stupidchicken.com>
11831
11832 * indent.c (Fvertical_motion): Restore hscroll before moving to
11833 goal column.
11834
118352008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11836
11837 * lisp.h: Remove left over code.
11838
118392008-07-11 Andreas Schwab <schwab@suse.de>
11840
11841 * lisp.h: Fix logic in last change.
11842
11843 * menu.h: New file.
11844 * menu.c: Include it.
11845 * xmenu.c: Likewise.
11846 * Makefile.in: Update dependencies.
11847
118482008-07-11 Kenichi Handa <handa@m17n.org>
11849
11850 * fontset.c (fontset_from_font): Cancel the previous change.
11851
118522008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11853
11854 * lisp.h:
11855 * w32heap.c:
11856 * emacs.c:
11857 * alloc.c: Replace all references of NO_UNION_TYPE with
11858 USE_LISP_UNION_TYPE.
11859
11860 * m/xtensa.h (NO_UNION_TYPE):
11861 * m/vax.h (NO_UNION_TYPE):
11862 * m/template.h (NO_UNION_TYPE):
11863 * m/sparc.h (NO_UNION_TYPE):
11864 * m/mips.h (NO_UNION_TYPE):
11865 * m/macppc.h (NO_UNION_TYPE):
11866 * m/m68k.h (NO_UNION_TYPE):
11867 * m/iris4d.h (NO_UNION_TYPE):
11868 * m/intel386.h (NO_UNION_TYPE):
11869 * m/ibms390x.h (NO_UNION_TYPE):
11870 * m/ibms390.h (NO_UNION_TYPE):
11871 * m/ibmrs6000.h (NO_UNION_TYPE):
11872 * m/ia64.h (NO_UNION_TYPE):
11873 * m/hp800.h (NO_UNION_TYPE):
11874 * m/arm.h (NO_UNION_TYPE):
11875 * m/amdx86-64.h (NO_UNION_TYPE):
11876 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11877 defining it the same.
11878
118792008-07-10 Chong Yidong <cyd@stupidchicken.com>
11880
11881 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11882
118832008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11884
11885 * fileio.c:
50426a04 11886 * sysdep.c:
aac0c6e3
MR
11887 * systty.h:
11888 * m/ibmrs6000.h:
11889 * m/iris4d.h:
11890 * s/aix4-2.h:
11891 * s/freebsd.h:
11892 * s/gnu-linux.h:
11893 * s/hpux10-20.h:
11894 * s/hpux11.h:
11895 * s/netbsd.h:
11896 * s/sol2-3.h:
11897 * s/sol2-4.h:
11898 * s/sol2.h:
11899 * s/usg5-4.h:
11900 * s/vms.h: Remove references to unused variables.
11901
119022008-07-10 Andreas Schwab <schwab@suse.de>
11903
11904 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11905 pattern before matching the generic family.
11906
119072008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11908
11909 * unexec.c:
11910 * s/vms.h:
11911 * s/usg5-4-2.h:
11912 * s/sol2-5.h:
11913 * s/freebsd.h:
11914 * s/darwin.h: Remove dead code.
11915
11916 * m/template.h:
11917 * m/sparc.h:
11918 * m/mips.h:
11919 * m/m68k.h:
11920 * m/iris4d.h:
11921 * m/intel386.h:
11922 * m/ibms390x.h:
11923 * m/ibms390.h:
11924 * m/ia64.h:
11925 * m/hp800.h:
11926 * m/arm.h:
11927 * m/amdx86-64.h: Remove dead code and references to unused
11928 and compiler defined symbols.
11929
11930 * unexmips.c:
11931 * unexelf.c: Remove references to desupported systems.
11932
11933 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11934
11935 * m/powermac.h: Remove boilerplate comments.
11936 (NO_REMAP): Remove unused definition.
11937
11938 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11939 define them.
11940
119412008-07-10 Kenichi Handa <handa@m17n.org>
11942
11943 * xfont.c (xfont_open): Log the reason of failure.
11944
119452008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11946
11947 * fontset.c (fontset_get_font_group):
11948 * font.c (font_check_otf): Specify argument types.
11949
119502008-07-09 Kenichi Handa <handa@m17n.org>
11951
11952 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11953 non-ASCII char is found.
11954
11955 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11956 (reorder_font_vector): Change the arg preferred_family to font.
11957 Prefer the spec matching with font.
11958 (fontset_get_font_group): New function.
11959 (fontset_find_font): Change the format of an element of a realized
11960 fontset. Use fontset_get_font_group.
11961 (fontset_font): Try the current fontset, the default fontset, the
11962 fallbacks of the current fontset, and the fallbacks of the default
11963 fontset in this order.
11964 (face_for_char): Delete the shortcut to use the current font.
11965 (fontset_from_font): Don't set fonts for Latin in the fontset.
11966
11967 * font.h (font_make_object, font_match_p): Adjust prototypes.
11968
11969 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11970
11971 * font.c (font_make_object): New arg entity and pixelsize.
11972 (font_check_otf_features, font_check_otf): New functions.
11973 (font_match_p): Check :lang, :script, and :otf properties.
11974
11975 * xfont.c (xfont_open): Adjust it for the change of
11976 font_make_object.
11977 (xfont_text_extents): Fix initial setting of metrics.
11978
11979 * ftfont.c (struct ftfont_info): New member index, delete member
11980 fc_charset_idx. Make the member order compatible with struct
11981 xftfont_info.
11982 (fc_charset_table): Change charset names to registry names.
11983 (ftfont_pattern_entity): Delete the args registry and
11984 fc_charset_idx. Change the value of :font-entity property
11985 to (FONTNAME . INDEX). Always set :registry property to
11986 `iso10646-1'.
11987 (struct ftfont_cache_data): New struct.
11988 (ftfont_lookup_cache): New arg for_face.
11989 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11990 (ftfont_driver): Set the member otf_capability.
11991 (ftfont_get_charset): Adjust it for the change of
11992 fc_charset_table.
11993 (OTF_TAG_SYM): New macro.
11994 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11995 for the change of fc_charset_table.
11996 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11997 ftfont_pattern_entity. Add FC_INDEX to objset.
11998 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11999 and ftfont_pattern_entity.
12000 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12001 font_make_object, struct ftfont_info.
12002 (ftfont_has_char): Use ftfont_get_fc_charset.
12003 (ftfont_otf_features, ftfont_otf_capability): New functions.
12004 (ftfont_shape): Use ftfont_get_otf.
12005 (ftfont_text_extents): Fix initial setting of metrics.
12006
12007 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12008 member order compatible with struct ftfont_info.
12009 (xftfont_open): Add FC_CHARSET to the pattern. Set
12010 xftfont_info->ft_size. Don't unlock the face. Check BDF
12011 properties if appropriate.
12012 (xftfont_close): Unlock the face.
12013 (xftfont_anchor_point, xftfont_shape): Deleted.
12014 (syms_of_xftfont): Don't set members anchor_point and shape of
12015 xftfont_driver.
12016
12017 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12018 font_make_object.
12019
12020 * w32font.c (w32font_open): Adjust it for the change of
12021 font_make_object.
12022 (w32font_open_internal): Don't set properties of font_object here.
12023
120242008-07-08 Chong Yidong <cyd@stupidchicken.com>
12025
12026 * macfns.c (x_create_tip_frame):
12027 * w32fns.c (x_create_tip_frame):
12028 * xfns.c (x_create_tip_frame): Pass parameter argument to
12029 face-set-after-frame-default.
12030
12031 * xfaces.c (Finternal_merge_in_global_face): Save merged
12032 attributes for the default face back into the face vector.
12033
120342008-07-08 Andreas Schwab <schwab@suse.de>
12035
12036 * fontset.h: Declare fontset_from_font. Don't declare
12037 new_fontset_from_font and fontset_from_font_name.
12038 * xterm.c: Include "fontset.h".
12039 * Makefile.in (xterm.o): Update dependencies.
12040
120412008-07-08 Glenn Morris <rgm@gnu.org>
12042
12043 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12044 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12045
120462008-07-07 Chong Yidong <cyd@stupidchicken.com>
12047
12048 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12049 (x_set_frame_parameters): Don't bind it.
12050
120512008-07-07 Juanma Barranquero <lekktu@gmail.com>
12052
12053 * w32fns.c (map_w32_filename): Declare extern.
12054
120552008-07-07 Jason Rumney <jasonr@gnu.org>
12056
12057 * w32term.c (WS_EX_LAYERED): Define if not already.
12058
120592008-07-06 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * xfaces.c (set_font_frame_param): Don't try to set the font
12062 parameter if it is still unspecified in the lface.
12063
120642008-07-05 Chong Yidong <cyd@stupidchicken.com>
12065
12066 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12067 face if it didn't already exist.
12068
12069 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12070
120712008-07-05 Andreas Schwab <schwab@suse.de>
12072
12073 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12074
120752008-07-05 Chong Yidong <cyd@stupidchicken.com>
12076
12077 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12078 word-wrapping.
12079 (IT_DISPLAYING_WHITESPACE): New macro.
12080 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12081 when word-wrapping. Simplify word-wrapping logic. Use correct
12082 pixel positions when saving copies of the iterator.
12083 (display_line): Use proper wrap point if the last character on a
12084 line was preceded by whitespace.
12085
120862008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12087
12088 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12089
120902008-07-04 Kenichi Handa <handa@m17n.org>
12091
12092 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12093
12094 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12095
120962008-07-02 Jason Rumney <jasonr@gnu.org>
12097
12098 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12099 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12100
12101 * xdisp.c (next_element_from_display_vector): Move assignment out
12102 of if statement.
12103
121042008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12105
12106 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12107
12108 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12109 (syms_of_fileio): Initialize and export them.
12110 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12111
12112 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12113 (Fsystem_move_file_to_trash): New function.
12114 (syms_of_w32fns): Export it to lisp.
12115
121162008-07-01 Jason Rumney <jasonr@gnu.org>
12117
12118 * w32font.c (w32font_text_extents): Don't count overhang as part
12119 of width.
12120
121212008-06-30 Miles Bader <miles@gnu.org>
12122
12123 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12124 Add `avoid_cursor_p' field.
12125
12126 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12127 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12128 (append_glyph, append_composite_glyph, produce_image_glyph)
12129 (append_stretch_glyph): Initialize avoid_cursor_p.
12130 (get_it_property): Rename from `get_line_height_property'.
12131 (x_produce_glyphs): Use get_it_property.
12132 (handle_line_prefix, push_display_prop): New functions.
12133 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12134 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12135 New variables.
12136 (syms_of_xdisp): Initialize them.
12137
121382008-06-30 Kenichi Handa <handa@m17n.org>
12139
12140 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12141 XftDefaultSubstitute (they are called in XftFontMatch).
12142 (xftfont_open): Fix args to ftfont_font_format.
12143
12144 * ftfont.c (fc_charset_table): New member lang.
12145 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12146 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12147 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12148 (ftfont_open): Fix args to ftfont_font_format.
12149 (ftfont_font_format): New arg filename.
12150
121512008-06-30 Chong Yidong <cyd@stupidchicken.com>
12152
12153 * xfaces.c (Finternal_merge_in_global_face): If default face was
12154 modified, realize it again. Update the font face attribute.
12155
121562008-06-29 Jason Rumney <jasonr@gnu.org>
12157
12158 * w32term.c (x_set_frame_alpha): Fix logic.
12159
121602008-06-29 Kenichi Handa <handa@m17n.org>
12161
12162 * fontset.c (Finternal_char_font): Return font-object instead of
12163 font-name.
12164
12165 * composite.c (get_composition_id): Fix the width calculation for TAB.
12166
121672008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12168
12169 * indent.c (Fvertical_motion): Properly handle float column arg.
12170
121712008-06-28 Jason Rumney <jasonr@gnu.org>
12172
12173 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12174 (pfnSetLayeredWindowAttributes): New function pointer.
12175 (w32_initialize): Initialize it when supported.
12176 (x_set_frame_alpha): New function.
12177
12178 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12179 (w32_frame_parm_handlers): Set alpha handler.
12180
12181 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12182
121832008-06-27 Jason Rumney <jasonr@gnu.org>
12184
12185 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12186 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12187 (w32_to_x_charset, x_to_w32_charset)
12188 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12189 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12190 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12191 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12192 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12193 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12194 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12195 (Qw32_charset_unicode): Remove.
12196 (syms_of_w32fns): Update for above changes.
12197
12198 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12199 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12200 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12201 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12202 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12203 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12204 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12205 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12206 (syms_of_w32font): Update for above changes.
12207
122082008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12209
12210 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12211 removed #if.
12212 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12213
122142008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12215 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12216
12217 * makefile.w32-in (LOCAL_FLAGS):
12218 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12219
12220 * sysdep.c (_spawnlp, _getpid):
12221 Declare with explicit _cdecl instead of _CRTAPI1.
12222
12223 * editfns.c (Fget_internal_run_time):
12224 Check for WINDOWSNT with #ifdef, not #if.
12225
122262008-06-26 Jason Rumney <jasonr@gnu.org>
12227
12228 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12229
12230 * w32term.c (x_draw_glyph_string_foreground)
12231 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12232 Use FONT_HANDLE macro.
12233 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12234
12235 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12236 (uniscribe_encode_char): Use FONT_HANDLE macro.
12237
12238 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12239 (w32font_text_extents): Use precast w32_font.
12240 (w32font_close): Free cached metrics.
12241 (w32font_open_internal): Allocate space for name on stack.
12242
122432008-06-26 Chong Yidong <cyd@stupidchicken.com>
12244
12245 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12246
122472008-06-26 Jason Rumney <jasonr@gnu.org>
12248
12249 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12250 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12251
122522008-06-26 Juanma Barranquero <lekktu@gmail.com>
12253
12254 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12255
122562008-06-26 Jason Rumney <jasonr@gnu.org>
12257
12258 * w32bdf.c, w32bdf.h: Remove obsolete files.
12259
12260 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12261
12262 * w32gui.h: Don't include w32bdf.h.
12263 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12264 Remove obsolete font support.
12265
12266 * w32font.h (struct w32font_info): Remove compat_w32_font.
12267 Add hfont member.
12268 (FONT_COMPAT): Remove obsolete macro.
12269
12270 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12271 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12272 (w32font_open_internal): Remove compat code. Set new hfont member.
12273 (Fx_select_font): Use new hfont member.
12274
12275 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12276 (uniscribe_encode_char): Use new hfont member.
12277
12278 * w32term.c (x_draw_glyph_string_foreground)
12279 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12280 (x_draw_glyph_string): Use metrics in w32font_info.
12281
122822008-06-26 Kenichi Handa <handa@m17n.org>
12283
12284 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12285
122862008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12287
12288 * unexnext.c:
12289 * m/ews4800.h:
12290 * m/hp9000s300.h:
12291 * m/ibm370aix.h:
12292 * m/mips-siemens.h:
12293 * m/ncr386.h:
12294 * m/next.h:
12295 * m/pmax.h:
12296 * m/powerpcle.h:
12297 * m/tandem-s2.h:
12298 * s/386bsd.h:
12299 * s/bsd386.h:
12300 * s/bsd4-1.h:
12301 * s/bsd4-2.h:
12302 * s/bsdos2-1.h:
12303 * s/bsdos2.h:
12304 * s/bsdos3.h:
12305 * s/bsdos4.h:
12306 * s/nextstep.h:
12307 * s/ultrix4-3.h:
12308 * s/usg5-0.h:
12309 * s/usg5-2-2.h:
12310 * s/usg5-2.h:
12311 * s/usg5-4-3.h:
12312 * s/ux4800.h:
12313 * s/uxpds.h:
12314 * s/uxpv.h: Remove support for obsolete systems.
12315 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12316 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12317 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12318 Remove, insert contents in s/aix4-2.h.
12319 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12320 * s/bsd4-3.h: Rename to ...
12321 * s/bsd-common.h: ... this.
12322 * data.c:
12323 * doc.c:
12324 * ecrt0.c:
12325 * emacs.c:
12326 * fileio.c:
12327 * floatfns.c:
12328 * keyboard.c:
12329 * mem-limits.h:
12330 * print.c:
12331 * process.c:
12332 * sysdep.c:
12333 * syssignal.h:
12334 * systty.h:
12335 * syswait.h:
12336 * term.c:
12337 * unexec.c:
12338 * unexelf.c:
12339 * unexhp9k800.c:
12340 * m/hp800.h:
12341 * m/ibmrs6000.h:
12342 * m/mips.h:
12343 * m/vax.h:
12344 * s/darwin.h:
12345 * s/freebsd.h:
12346 * s/gnu.h:
12347 * s/ms-w32.h:
12348 * s/msdos.h:
12349 * s/netbsd.h:
12350 * s/template.h: Remove references to obsolete variables.
12351
12352 * Makefile.in: Add dependencies for all unexec files.
12353 (admindir): Remove unused variable.
12354 (UNEXEC_SRC): Remove references.
12355
123562008-06-25 Chong Yidong <cyd@stupidchicken.com>
12357
12358 * xfns.c (x_default_font_parameter): If Xft is available, first
12359 try Monospace-12 for the default font.
12360
123612008-06-25 Jason Rumney <jasonr@gnu.org>
12362
12363 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12364
123652008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12366
12367 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12368
12369 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12370
123712008-06-25 Juanma Barranquero <lekktu@gmail.com>
12372
12373 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12374 <scroll-conservatively>: Fix typo in docstring.
12375
12376 * xselect.c (Fx_send_client_event): Doc fix.
12377
123782008-06-25 Kenichi Handa <handa@m17n.org>
12379
12380 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12381
12382 * font.c (font_parse_fcname): Remove unused variables.
12383 (font_sort_entites): Delete the arg SPEC. Caller changed.
12384 Fix for the case of ! best_only.
12385 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12386
12387 * lisp.h (Fstring_to_unibyte): EXFUN it.
12388
12389 * character.h (str_to_unibyte): Extern it.
12390
12391 * character.c (str_to_unibyte): New function.
12392
12393 * fns.c (Fstring_to_unibyte): New function.
12394 (syms_of_fns): Defsubr it.
12395
123962008-06-24 Kenichi Handa <handa@m17n.org>
12397
12398 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12399 DPI too.
12400 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12401
124022008-06-24 Andreas Schwab <schwab@suse.de>
12403
12404 * Makefile.in (${lispsource}loaddefs.el): Rename from
12405 ../lisp/loaddefs.el.
12406 (bootstrap-clean): Do what distclean does but don't remove
12407 Makefile.
12408 (distclean): Depend on bootstrap-clean and remove Makefile.
12409
124102008-06-24 Chong Yidong <cyd@stupidchicken.com>
12411
12412 * buffer.h (struct buffer): New member word_wrap.
12413
12414 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12415 word-wrap.
12416 (init_buffer_once): Initialize them.
12417
12418 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12419 line_wrap enum possessing three possible values.
12420
12421 * termopts.h: Replace truncate_partial_width_windows with
12422 Vtruncate_partial_width_windows.
12423
12424 * dispnew.c (direct_output_for_insert): Avoid direct output when
12425 inserting a space with word wrap on.
12426
12427 * indent.c (compute_motion): Obey integer values of
12428 truncate-partial-width-windows.
12429
12430 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12431 replacing truncate_partial_width_windows.
12432 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12433 truncate only if the window width is below that integer.
12434 (start_display, resize_mini_window, produce_stretch_glyph)
12435 (display_string, move_it_in_display_line_to): Use line_wrap.
12436 (back_to_previous_visible_line_start, reseat_1): Reset
12437 string_from_display_prop_p.
12438 (display_line): Extend default face to end of line when wrapping.
12439
124402008-06-24 Kim F. Storm <storm@cua.dk>
12441
12442 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12443 to wrap continued lines at word boundaries.
12444
124452008-06-24 Jason Rumney <jasonr@gnu.org>
12446
12447 * font.c (Ffont_face_attributes): Multiply pixel size before point
12448 conversion to avoid multiplying rounding error.
12449
124502008-06-23 Jason Rumney <jasonr@gnu.org>
12451
12452 * w32term.c (x_draw_glyph_string_background)
12453 (x_draw_glyph_string): Remove old bdf font code.
12454
12455 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12456
124572008-06-22 Kenichi Handa <handa@m17n.org>
12458
12459 * font.c (font_find_for_lface): Try the adstyle specified in
12460 the property of LFACE_FONT of LFACE (if any).
12461
124622008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12463 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12464
12465 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12466
124672008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12468
12469 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12470 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12471 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12472 (witness-emacs): Remove.
12473 (lisp, shortlisp): Move loaddefs.el earlier.
12474 (mostlyclean): Forget about witness-emacs.
12475
124762008-06-22 Glenn Morris <rgm@gnu.org>
12477
12478 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12479 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12480
124812008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12482
12483 * Makefile.in (PRECOMP): Remove.
12484 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12485 (witness-emacs): Run `compile-first'.
12486 (.el.elc): Use the new compile-onefile target.
12487
124882008-06-21 Kenichi Handa <handa@m17n.org>
12489
12490 * xftfont.c (xftfont_open): Handle QCembolden only when
12491 FC_EMBOLDEN is defined.
12492
124932008-06-21 Andreas Schwab <schwab@suse.de>
12494
12495 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12496 (.el.elc): Likewise.
12497
124982008-06-21 Miles Bader <miles@gnu.org>
12499
12500 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12501 build dir, not the lisp source dir.
12502
125032008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12504
12505 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12506 (bootstrapclean): Remove.
12507 (.el.elc): New rule.
12508 (PRECOMP): New var.
12509 (../lisp/subdirs.el): Remove.
12510 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12511 (witness-emacs): New target.
12512 (mostlyclean): Remove witness-emacs as well.
12513 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12514 Add witness-emacs dependency.
12515
125162008-06-20 Chong Yidong <cyd@stupidchicken.com>
12517
12518 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12519 defined by the font.
12520
125212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12522
12523 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12524 (bootstrap-clean): New target that keeps TAGS around.
12525 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12526 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12527
125282008-06-20 Jason Rumney <jasonr@gnu.org>
12529
12530 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12531 Remove obsolete font code.
12532
12533 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12534 to determine language support.
12535
125362008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12537
12538 * sysdep.c (cfsetspeed): New fun extracted from the code.
12539 (cfmakeraw): Move before first use.
12540
125412008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12542
12543 * sysdep.c (cfmakeraw): Provide fallback implementation.
12544 (serial_configure): Provide fallback implementation of cfsetspeed.
12545
125462008-06-20 Kenichi Handa <handa@m17n.org>
12547
12548 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12549 the pattern.
12550
12551 * fontset.c (fontset_from_font): Copy font_spec before changing
12552 the elements.
12553
12554 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12555
125562008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12557
12558 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12559 for explicit `font' parameters.
12560
12561 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12562
125632008-06-19 Kenichi Handa <handa@m17n.org>
12564
12565 * frame.c: Include <ctype.h>.
12566 (x_set_font_backend): Allow spacing characters in the X resource
12567 for FontBackend.
12568
125692008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12570
12571 * w32fns.c, xfns.c (Qfont_param): New var.
12572 (syms_of_w32fns): Initialize it.
12573 (x_default_font_parameter): Record explicit `font' into
12574 `font-parameter'.
12575
125762008-06-18 Kenichi Handa <handa@m17n.org>
12577
12578 * font.c (font_parse_xlfd): Fix previous change.
12579 (font_parse_fcname): Don't use :fc-unknown-spec.
12580 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12581 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12582 (font_add_log): Prepend the driver name to the resulting fonts.
12583
12584 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12585 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12586 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12587
12588 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12589 (QCembolden): New variables.
12590 (syms_of_xftfont): DEFSYM them.
12591 (xftfont_open): Call XftFontMatch. Don't trust the result of
12592 XftTextExtents8 if the pixel_size is less than 5.
12593
125942008-06-18 Andreas Schwab <schwab@suse.de>
12595
12596 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12597 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12598
125992008-06-18 Jason Rumney <jasonr@gnu.org>
12600
12601 * w32font.c (w32font_list, w32font_match): Add logging.
12602
12603 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12604
126052008-06-17 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * font.c (font_parse_fcname): Store divider characters for
12608 unknown-spec list. For known key symbols, intern using correct
12609 symbol name.
12610
126112008-06-17 Kenichi Handa <handa@m17n.org>
12612
12613 * xfaces.c (realize_default_face): If the frame is not on window
12614 system, set the fontset of face to nil.
12615
126162008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12617
12618 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12619
126202008-06-16 Juanma Barranquero <lekktu@gmail.com>
12621
12622 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12623 (build_font_name_from_vector): Delete externs.
12624
12625 * xfaces.c (struct font_name): Don't declare.
12626
126272008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12628
12629 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12630
126312008-06-16 Chong Yidong <cyd@stupidchicken.com>
12632
12633 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12634
126352008-06-16 Juanma Barranquero <lekktu@gmail.com>
12636
12637 * font.c (Ffont_spec): Fix usage in docstring.
12638 (Ffont_face_attributes): Doc fix.
12639
126402008-06-16 Andreas Schwab <schwab@suse.de>
12641
12642 * font.c (Ffont_face_attributes): Fix definition.
12643
126442008-06-16 Jason Rumney <jasonr@gnu.org>
12645
12646 * font.h (font_style_symbolic_from_value): Remove.
12647
12648 * font.c (font_style_symbolic_from_value): Remove.
12649 (font_style_symbolic): Revert to pre 2008-06-13 version.
12650
12651 * w32font.c (w32_to_fc_weight): New function.
12652 (w32font_full_name, logfont_to_fcname): Use it.
12653
126542008-06-16 Kenichi Handa <handa@m17n.org>
12655
12656 * font.c (font_check_object): Delete it.
12657 (font_clear_cache): Check if a font-object is alive.
12658 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12659 font-object to nil.
12660 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12661 (font_at): Don't call font_check_object.
12662 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12663
126642008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12665
12666 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12667
126682008-06-16 Chong Yidong <cyd@stupidchicken.com>
12669
12670 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12671
126722008-06-15 Chong Yidong <cyd@stupidchicken.com>
12673
12674 * font.c (font_parse_fcname): Only one decimal point.
12675 (font_unparse_fcname): Handle data in family and foundry indices
12676 as symbols, not strings.
12677 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12678
12679 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12680
12681 * font.h (font_unparse_gtkname): Add prototype.
12682
126832008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12684
12685 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12686
126872008-06-15 Andreas Schwab <schwab@suse.de>
12688
12689 * font.c (font_update_drivers): Fix crash when no drivers match.
12690
126912008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12692
12693 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12694 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12695
126962008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12697
12698 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12699
127002008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12701
12702 * process.c (Fserial_process_configure, Fprocess_send_eof):
12703 Use EQ to compare Lisp_Objects.
12704
127052008-06-13 Jason Rumney <jasonr@gnu.org>
12706
12707 * w32fns.c (Fw32_select_font): Remove old font API function.
12708
12709 * w32font.c (logfont_to_fcname): New function.
12710 (Fx_select_font): New font dialog function compatible with
12711 GTK/fontconfig version.
12712
12713 * font.c (font_style_symbolic_from_value): New function.
12714 (font_style_symbolic): Use it.
12715
12716 * font.h (font_style_symbolic_from_value): Declare new function.
12717
127182008-06-13 Juanma Barranquero <lekktu@gmail.com>
12719
12720 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12721 <font-width-table>: Fix typos in docstrings.
12722
127232008-06-13 Daniel Engeler <engeler@gmail.com>
12724
12725 These changes add serial port access.
12726 * process.c: Add HAVE_SERIAL.
12727 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12728 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12729 (list_processes_1, select_wrapper, Fstop_process)
12730 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12731 (status_notify): Modify to handle serial processes.
12732 [HAVE_SERIAL] (Fserial_process_configure)
12733 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12734 New functions.
12735 * process.h (struct Lisp_Process): Add `type'.
12736 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12737 New functions.
12738 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12739 serial ports.
b71ac3dd 12740 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12741 * w32.h: Add FILE_SERIAL.
12742 (struct _child_process): Add ovl_read, ovl_write.
12743
127442008-06-13 Kenichi Handa <handa@m17n.org>
12745
12746 * dispextern.h (enum lface_attribute_index): New member
12747 LFACE_FOUNDRY_INDEX.
12748
12749 * font.c (font_score): Delete arg alternate_families. Check only
12750 weight, slant, width, and size. Ignore the difference of alias
12751 style symbols.
12752 (font_sort_entites): Adjust for the above change. Reflect the
12753 order of font-driver to scores.
12754 (font_list_entities): Don't check alternate_familes here.
12755 (font_clear_prop): Handle foundry.
12756 (font_update_lface): Don't parse "foundry-family" form here.
12757 Handle FONT_FOUNDRY_INDEX.
12758 (font_find_for_lface): Likewise. Handle alternate families here.
12759 If registry is nil, try iso8859-1 and ascii-0.
12760 (font_open_for_lface): Pay attention to size in ENTITY.
12761 (font_open_by_name): Simplify by calling font_load_for_lface.
12762 (free_font_driver_list): Delete it.
12763 (font_update_drivers): Preserve the order of backends.
12764 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12765 of font_score and font_sort_entites.
12766 (font_update_sort_order): Likewise.
12767
12768 * xfaces.c (LFACE_FOUNDRY): New macro.
12769 (check_lface_attrs): Check foundry.
12770 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12771 (merge_face_vectors): Check foundry.
12772 (merge_face_ref): Likewise.
12773 (Finternal_set_lisp_face_attribute): Likewise.
12774 (x_update_menu_appearance): Likewise.
12775 (Finternal_get_lisp_face_attribute): Likewise.
12776 (lface_hash): Likewise.
12777 (lface_same_font_attributes_p): Likewise.
12778 (x_supports_face_attributes_p): Likewise.
12779 (tty_supports_face_attributes_p): Likewise.
12780 (Finternal_set_alternative_font_family_alist): Intern strings.
12781 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12782 (realize_default_face): Set LFACE_FOUNDRY (lface).
12783
12784 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12785 font-driver at first.
12786
12787 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12788
127892008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12790
12791 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12792
127932008-06-12 Jim Meyering <meyering@redhat.com>
12794
12795 Make unexec_free handle NULL the same way free does.
12796 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12797
127982008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12799
12800 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12801 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12802 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12803 (WEAK_ALIAS): Simplify.
12804 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12805 when searching a unibyte buffer.
12806
128072008-06-12 Chong Yidong <cyd@stupidchicken.com>
12808
12809 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12810
128112008-06-12 Juanma Barranquero <lekktu@gmail.com>
12812
12813 * w32font.c: Include ctype.h.
12814
128152008-06-11 Jason Rumney <jasonr@gnu.org>
12816
12817 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12818 misreported as space.
12819 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12820 as aliases for registry iso10646-1.
12821
128222008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12823
12824 * buffer.c (clone_per_buffer_values): Skip `name'.
12825
128262008-06-11 Chong Yidong <cyd@stupidchicken.com>
12827
12828 * font.c (font_parse_fcname): Fix last change; accept decimal
12829 points in font size.
12830
128312008-06-10 Jason Rumney <jasonr@gnu.org>
12832
12833 * w32uniscribe.c (add_opentype_font_name_to_list):
12834 Skip non unicode fonts.
12835
128362008-06-10 Chong Yidong <cyd@stupidchicken.com>
12837
12838 * xfns.c (Fx_font_dialog): New function.
12839
12840 * gtkutil.c (xg_dialog_response_cb): Rename from
12841 xg_file_response_callback.
12842 (pop_down_dialog): Rename from pop_down_file_dialog.
12843 (xg_get_file_name): Callers changed.
12844 (xg_get_font_name): New function.
12845
12846 * gtkutil.h (xg_get_font_name): Insert prototype.
12847
128482008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12849
12850 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12851 x_underline_minimum_display_offset.
12852 (syms_of_xdisp): Declare it here rather than in xterm.c.
12853 * dispextern.h (underline_minimum_offset): Declare it.
12854 * w32term.c (x_draw_glyph_string): Use it.
12855 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12856 (syms_of_xterm): Don't declare it any more.
12857 (x_draw_glyph_string): Adjust to the new name.
12858
8719abec 128592008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12860
12861 * xterm.c (x_underline_minimum_display_offset): New var.
12862 (x_draw_glyph_string): Use it.
12863 (syms_of_xterm): Declare it.
12864
128652008-06-10 Chong Yidong <cyd@stupidchicken.com>
12866
12867 * font.c (font_parse_fcname): Accept GTK-style font names too.
12868
128692008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12870
12871 * dired.c (file_name_completion): Don't return t if the match is exact
12872 but with different capitalization.
12873 * minibuf.c (Ftry_completion): Simplify.
12874
12875 * window.c (Vwindow_point_insertion_type): New var.
12876 (set_window_buffer): Use it.
12877 (syms_of_window): Init and export it to Lisp.
12878
128792008-06-10 Kenichi Handa <handa@m17n.org>
12880
12881 * font.h (font_intern_prop): Prototype adjusted.
12882
12883 * font.c (font_intern_prop): New arg force_symbol.
12884 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12885 Adjust for the change of font_intern_prop.
12886
12887 * ftfont.c (ftfont_pattern_entity):
12888 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12889 (w32_registry):
12890 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12891 the change of font_intern_prop.
12892
128932008-06-09 Juanma Barranquero <lekktu@gmail.com>
12894
12895 * w32menu.c (digest_single_submenu): Declare extern.
12896
128972008-06-09 Jason Rumney <jasonr@gnu.org>
12898
12899 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12900
12901 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12902 (parse_single_submenu): Remove.
12903 (digest_single_submenu): Remove.
12904 (syms_of_w32menu): Don't initialise variables that have moved
12905 to menu.c.
12906 (set_frame_menubar): Sync with version in xmenu.c.
12907 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12908
12909 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12910 Make static again.
12911
129122008-06-09 Jason Rumney <jasonr@gnu.org>
12913
12914 Changes to w32 files related to the move of common menu code
12915 to menu.c on 2008-06-08 by Chong Yidong.
12916
12917 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12918 defs to w32gui.h.
12919 (single_keymap_panes, push_menu_item, push_menu_pane):
12920 Make globally visible.
12921
12922 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12923 (local_free, malloc_widget_value, free_widget_value)
12924 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12925 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12926 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12927 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12928 (menu_items, menu_items_allocated, menu_items_used)
12929 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12930 (init_menu_items, finish_menu_items, discard_menu_items)
12931 (grow_menu_items, push_submenu_start, push_submenu_end)
12932 (push_left_right_boundary, push_menu_pane, push_menu_item)
12933 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12934 (free_menubar_widget_tree_value, parse_single_submenu)
12935 (update_submenu_strings): Remove functions.
12936 (xmalloc_widget_value): Remove and declare extern.
12937
12938 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12939 (OBJ1): Build it.
12940
12941 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12942 (local_heap, local_alloc, local_free, malloc_widget_value)
12943 (free_widget_value): Define here.
12944
129452008-06-09 Kenichi Handa <handa@m17n.org>
12946
12947 * font.h (Qascii_0): Extern it.
12948
12949 * font.c (Qascii_0): New variable.
12950 (syms_of_font): DEFSYM it.
12951 (font_open_by_name): If the registry "iso8859-1" fails, try also
12952 "ascii-0".
12953
12954 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12955
129562008-06-08 Kenichi Handa <handa@m17n.org>
12957
12958 * .gdbinit (xfont): New command.
12959
129602008-06-08 Andreas Schwab <schwab@suse.de>
12961
12962 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12963 * Makefile.in (menu.o): Update dependencies.
12964
12965 * Makefile.in (obj): Always add menu.o.
12966 * emacs.c (main): Always call syms_of_menu.
12967 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12968
129692008-06-08 Chong Yidong <cyd@stupidchicken.com>
12970
12971 * Makefile.in: Compile menu.c.
12972
12973 * lisp.h: Declare syms_of_menu.
12974
12975 * emacs.c (main): Call syms_of_menu.
12976
12977 * keyboard.h: Relocate platform-independent menu definitions from
12978 xmenu.c.
12979
12980 * menu.c: New file. Relocate platform-independent menu
12981 definitions from xmenu.c. Suggested by Adrian Robert.
12982
12983 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12984 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12985 (menu_items_used, menu_items_n_panes)
12986 (menu_items_submenu_depth): Move to keyboard.h.
12987 (init_menu_items, finish_menu_items, unuse_menu_items)
12988 (discard_menu_items, restore_menu_items, save_menu_items)
12989 (grow_menu_items, push_submenu_start, push_submenu_end)
12990 (push_left_right_boundary, push_menu_pane, push_menu_item)
12991 (keymap_panes, single_keymap_panes, single_menu_item)
12992 (list_of_panes, list_of_items, find_and_call_menu_selection)
12993 (xmalloc_widget_value, free_menubar_widget_value_tree)
12994 (parse_single_submenu, digest_single_submenu)
12995 (update_submenu_strings): Move to menu.c.
12996
129972008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12998
12999 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13000
130012008-06-06 Miles Bader <miles@gnu.org>
13002
13003 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13004 face, not frame default.
13005
130062008-06-05 Martin Rudalics <rudalics@gmx.at>
13007
13008 * window.c (pop_up_windows, pop_up_frames)
13009 (display_buffer_reuse_frames, Vpop_up_frame_function)
13010 (Vdisplay_buffer_function, Veven_window_heights)
13011 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13012 (Vspecial_display_function, Vsame_window_buffer_names)
13013 (Vsame_window_regexps, split_height_threshold)
13014 (Vsplit_window_preferred_function): Move those vars to window.el.
13015 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13016 (Fdisplay_buffer): Move those functions to window.el.
13017 (syms_of_window): Remove corresponding declarations.
13018 (display_buffer): New function.
13019 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13020 * dispnew.c (Flast_nonminibuf_frame): New function.
13021 * buffer.c (Fpop_to_buffer): Move to window.el.
13022
130232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13024
13025 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13026
130272008-06-05 Kenichi Handa <handa@m17n.org>
13028
13029 * coding.c (detect_coding): Fix previous change.
13030 (detect_coding_system): Likewise.
13031
130322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13033
13034 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13035
13036 * keymap.c (Vminibuffer_local_filename_must_match_map):
13037 Rename from Vminibuffer_local_must_match_filename_map.
13038 (syms_of_keymap):
13039 * minibuf.c (Fcompleting_read): Adjust accordingly.
13040 * commands.h: Rename declaration as well.
13041
130422008-06-05 Kenichi Handa <handa@m17n.org>
13043
13044 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13045 family name.
13046 (Ffont_put): Likewise.
13047
13048 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13049 current font-spec.
13050
13051 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13052 is unspecified.
13053
13054 * xfaces.c (realize_x_face): If the font-related face attributes
13055 are the same as those of default face, realize a new fontset from
13056 default->fontset.
13057 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13058
130592008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13060
13061 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13062 (move_it_in_display_line): New wrapper.
13063
13064 * window.c (window_scroll_pixel_based_preserve_x)
13065 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13066 (window_scroll_pixel_based, window_scroll_line_based):
13067 Use them to preserve column positions.
13068 (syms_of_window): Initialize them.
13069
13070 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13071 (HPOS . VPOS) pair.
13072
13073 * dispextern.h (move_it_in_display_line): Declare.
13074
130752008-06-05 Juanma Barranquero <lekktu@gmail.com>
13076
13077 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13078 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13079 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13080
130812008-06-04 Juanma Barranquero <lekktu@gmail.com>
13082
13083 * window.c (Fset_window_parameter): Doc fix.
13084 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13085
130862008-06-04 Joakim Verona <joakim@verona.se>
13087
13088 * window.h (struct window): Add new member window_parameters.
13089
13090 * window.c (Fwindow_parameters, Fwindow_parameter)
13091 (Fset_window_parameter): New defuns.
13092 (syms_of_window): Defsubr the new defuns.
13093 (make_window): Initialize window_parameters to nil.
13094
130952008-06-04 John Paul Wallington <jpw@pobox.com>
13096
13097 * eval.c (Fdefmacro): Doc fix.
13098
130992008-06-04 Kenichi Handa <handa@m17n.org>
13100
13101 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13102 Be sure to call setup_coding_system when we find a proper coding system.
13103 (detect_coding_system): Fix handling of coding->head_ascii.
13104
131052008-06-03 Andreas Schwab <schwab@suse.de>
13106
13107 * font.c (font_prop_validate_spacing): Fix last change.
13108
131092008-06-03 Kenichi Handa <handa@m17n.org>
13110
13111 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13112 (font_parse_fcname): Fix handling of unknown key.
13113
13114 * xfont.c (xfont_list): Try an alias.
13115
13116 * charset.c (char_charset): Return NULL if the arg charset_list is
13117 specified and C doesn't belong to any of them.
13118
131192008-06-02 Chip Coldwell <coldwell@redhat.com>
13120
13121 * font.c (font_pixel_size): Don't take cdr of an integer.
13122
131232008-06-02 Jim Meyering <meyering@redhat.com>
13124
13125 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13126 * alloc.c (xfree): Return right away for a NULL arg.
13127 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13128 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13129 * mac.c (create_apple_event_from_event_ref): Likewise.
13130 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13131 Likewise.
13132 * doprnt.c (doprnt1): Likewise.
13133 * frame.c (frame): Likewise.
13134 * keyboard.c (wipe_kboard): Likewise.
13135 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13136 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13137 * term.c (tty_default_color_capabilities, maybe_fatal)
13138 (delete_tty): Likewise.
13139 * w16select.c (string): Likewise.
13140 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13141 * w32bdf.c (w32_free_bdf_font): Likewise.
13142 * w32fns.c (w32_unload_font): Likewise.
13143 * w32font.c (w32font_close): Likewise.
13144 * window.c (size_window): Likewise.
13145 * xselect.c (receive_incremental_selection): Likewise.
13146 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13147 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13148 * w32.c (stat): Likewise.
13149
13150 Remove useless if-before-free tests.
13151 * editfns.c (Fset_time_zone_rule): Likewise.
13152 * lread.c (nosuffix): Likewise.
13153 * ralloc.c (get_bloc): Likewise.
13154 * regex.c (reg_free): Likewise.
13155 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13156 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13157 * xsmfns.c (smc_save_yourself_CB): Likewise.
13158
131592008-06-02 Kenichi Handa <handa@m17n.org>
13160
13161 * font.c (font_find_for_lface): Handle float font size.
13162 (font_open_for_lface): Likewise.
13163
13164 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13165 comparing the properties.
13166
131672008-06-01 Jason Rumney <jasonr@gnu.org>
13168
13169 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13170 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13171 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13172 Don't add empty script list.
13173 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13174
131752008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13176
13177 * Makefile.in (dot, dotdot): Remove, update users.
13178 ".." has been used elsewhere in the file for a long time.
13179 (LIBXT_STATIC): Remove conditional based on unused variable.
13180
131812008-06-01 Miles Bader <miles@gnu.org>
13182
13183 * xfaces.c (Vface_remapping_alist): New variable.
13184 (syms_of_xfaces): Initialize it.
13185 (enum named_merge_point_kind): New type.
13186 (struct named_merge_point): Add `named_merge_point_kind' field.
13187 (push_named_merge_point): Make cycle detection respect different
13188 named-merge-point kinds.
13189 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13190 Remove face-name alias resolution.
13191 (lface_from_face_name): New definition using
13192 `lface_from_face_name_no_resolve'.
13193 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13194 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13195 (get_lface_attributes): New definition that layers face-remapping on
13196 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13197 (lookup_basic_face): New function.
13198 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13199 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13200 `get_lface_attributes'.
13201 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13202 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13203 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13204
13205 * xdisp.c (init_iterator): Pass base_face_id through
13206 `lookup_basic_face' when we actually use it as a face-id.
13207 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13208 DEFAULT_FACE_ID.
13209
13210 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13211 lookup the initial face-id.
13212
13213 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13214
132152008-06-01 Juanma Barranquero <lekktu@gmail.com>
13216
13217 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13218 (Fremove_text_properties): Fix typos in docstrings.
13219
132202008-05-31 Kenichi Handa <handa@m17n.org>
13221
13222 * font.c (font_list_entities): Fix the car part of data to be
13223 stored in the cache.
13224
13225 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13226
132272008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13228
13229 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13230 Add a `test' argument so another predicate than `equal' can be used.
13231 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13232 (map_char_table): Remove unused vars `c' and `i'.
13233 * lisp.h (Foptimize_char_table): Adjust declaration.
13234 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13235
132362008-05-30 Kenichi Handa <handa@m17n.org>
13237
13238 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13239 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13240 defined.
13241
132422008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13243
13244 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13245 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13246 frame-local settings for the same variable.
13247
132482008-05-30 Kenichi Handa <handa@m17n.org>
13249
13250 * fontset.c (Ffont_info): Move to font.c.
13251 (syms_of_fontset): Delete defsubr of Sfont_info.
13252
13253 * font.c (font_style_to_value, font_score): Delete casting of the
13254 args to xstcasecmp.
13255 (register_font_driver): Increment num_font_drivers only when
13256 registering the driver globally.
13257 (Ffont_info): Move from fontset.c. Handle a font object too.
13258 (syms_of_font): Defsubr Sfont_info.
13259
132602008-05-29 Kenichi Handa <handa@m17n.org>
13261
13262 * coding.h (enum define_coding_utf8_arg_index): New enum.
13263 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13264 coding_attr_utf_bom.
13265 (enum utf_bom_type): Rename from utf_16_bom_type.
13266 (struct utf_16_spec): Adjust for the above change.
13267 (struct coding_system): Add utf_8_bom in `spec' union.
13268
13269 * coding.c (CODING_UTF_8_BOM): New macro.
13270 (enum coding_category): Delete coding_category_utf_8, add
13271 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13272 coding_category_utf_8_sig.
13273 (CATEGORY_MASK_UTF_8): Delete it.
13274 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13275 (CATEGORY_MASK_UTF_8_SIG): New macros.
13276 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13277 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13278 CATEGORY_MASK_UTF_8_SIG.
13279 (CATEGORY_MASK_UTF_8): New macro.
13280 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13281 (detect_coding_utf_8): Check BOM.
13282 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13283 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13284 (encode_coding_utf_16): Likewise.
13285 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13286 (detect_coding, detect_coding_system): Handle utf-8-auto.
13287 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13288 (syms_of_coding): Fix setting up of Vcoding_category_table.
13289
132902008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13291
13292 * process.c (Faccept_process_output): If `millisec' is non-nil,
13293 `seconds' default to 0.
13294 (wait_reading_process_output): Also return non-nil if we read output
13295 from a non-running process.
13296
132972008-05-29 Jason Rumney <jasonr@gnu.org>
13298
13299 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13300 `raster' specified.
13301 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13302 in the uniscribe backend, but disallow any font that has no
13303 unicode subrange support.
13304
133052008-05-29 Juanma Barranquero <lekktu@gmail.com>
13306
13307 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13308 Fix typos in docstrings.
13309
133102008-05-29 Kenichi Handa <handa@m17n.org>
13311
13312 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13313 (Fx_family_fonts): Set frame correctly.
13314
133152008-05-28 Jason Rumney <jasonr@gnu.org>
13316
13317 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13318
133192008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13320
13321 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13322 calling build_annotations.
13323
133242008-05-28 Juanma Barranquero <lekktu@gmail.com>
13325
13326 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13327 (Fencode_coding_string):
13328 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13329 <latin-extra-code-table>: Fix typos in docstrings.
13330 (syms_of_coding) <coding-system-alist>: Doc fix.
13331 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13332
133332008-05-28 Kenichi Handa <handa@m17n.org>
13334
13335 * fontset.c (Ffont_info): Don't call font_close_object.
13336
13337 * font.c (font_parse_family_registry): Use Ffont_put to validate
13338 foundry and family.
13339 (font_delete_unmatched): Don't check spacing.
13340 (font_list_entities): Add spacing to the spec to list fonts.
13341
13342 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13343 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13344
13345 * coding.c (encode_coding_raw_text): Fix previous change.
13346 (encode_coding_object): When the dst_object is a buffer and is
13347 different from src_object, move gap to PT.
13348
133492008-05-27 Chong Yidong <cyd@stupidchicken.com>
13350
13351 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13352
133532008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13354
13355 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13356 all branches. Compute it differently.
13357
13358 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13359
133602008-05-27 Juanma Barranquero <lekktu@gmail.com>
13361
13362 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13363 into "else if () ... else ...".
13364
133652008-05-27 Jason Rumney <jasonr@gnu.org>
13366
13367 * w32font.c (w32font_open_internal): Determine if glyph indices
13368 are likely to work here.
13369
133702008-05-27 Chong Yidong <cyd@stupidchicken.com>
13371
13372 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13373 draw overlap glyphs with appropriate highlighting.
13374
133752008-05-27 Kenichi Handa <handa@m17n.org>
13376
13377 * xfont.c (xfont_open): Fix calculation of font->average_width.
13378
133792008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13380
13381 * casefiddle.c (casify_object): Try to guess better whether the
13382 argument is a byte or a char.
13383
133842008-05-26 Andreas Schwab <schwab@suse.de>
13385
13386 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13387 Always send multiples of format size.
13388
13389 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13390
133912008-05-26 Jason Rumney <jasonr@gnu.org>
13392
13393 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13394 (compute_metrics): Don't set failure if we just cleared the cache.
13395 (w32_weight_table): Remove unused variable.
13396 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13397 backwards compatibility.
13398
133992008-05-25 Kenichi Handa <handa@m17n.org>
13400
13401 * w32term.c (x_draw_glyph_string):
13402 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13403
13404 * xfaces.c: Delete unused function prototypes.
13405 (xstrlwr, font_frame): Delete them.
13406 (clear_face_cache): Delete unused variable.
13407
13408 * xftfont.c (xftfont_open): Delete unused variable.
13409 If underline_thickness is not 1, adjust underline_position.
13410
13411 * ftxfont.c (ftxfont_open): Delete unused variable.
13412
13413 * fontset.c (face_for_char): Optimize for the case of no charset
13414 property.
13415
13416 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13417 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13418 (otf_open, font_otf_capability, generate_otf_features)
13419 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13420 Comment out by surrounding "#if 0" and "#endif" for the moment.
13421 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13422 (syms_of_font): Codes for accessing above commented out.
13423
134242008-05-24 Eli Zaretskii <eliz@gnu.org>
13425
13426 * w32proc.c: Include dispextern.h.
13427
13428 * w32.c: Include dispextern.h.
13429
134302008-05-23 Juanma Barranquero <lekktu@gmail.com>
13431
13432 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13433 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13434 Fix typos in docstrings.
13435
134362008-05-23 Jason Rumney <jasonr@gnu.org>
13437
13438 * xsmfns.c: Remove includes that are already included by config.h.
13439
134402008-05-23 Kenichi Handa <handa@m17n.org>
13441
13442 * charset.c (Qemacs, charset_emacs): New variables.
13443 (char_charset): Fix for non-Unicode characters.
13444 (syms_of_charset): Define charset_emacs.
13445
13446 * w32term.c (x_draw_glyph_string): Be sure to update
13447 s->underline_thickness and s->underline_position. Be sure to draw
13448 underline within the current line area.
13449
13450 * xterm.c (x_draw_glyph_string): Be sure to update
13451 s->underline_thickness and s->underline_position. Be sure to draw
13452 underline within the current line area.
13453
13454 * fontset.c: Delete unused variables and add casting for char *
13455 throughout the file.
13456 (fontset_font): Try the fallback fonts of the current fontset
13457 before consulting the default fontset.
13458
13459 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13460
13461 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13462
134632008-05-22 Jason Rumney <jasonr@gnu.org>
13464
13465 * font.c: Don't include strings.h.
13466
13467 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13468
13469 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13470 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13471 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13472 to call xstrcasecmp.
13473
13474 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13475
13476 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13477
13478 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13479
13480 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13481
134822008-05-22 Kenichi Handa <handa@m17n.org>
13483
13484 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13485
13486 * font.c (font_prop_validate_style): Adjust for the format
13487 change of font_style_table.
13488
13489 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13490 two args.
13491
13492 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13493 two args.
13494
134952008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13496
13497 * minibuf.c (keys_of_minibuf): Delete.
13498 * lisp.h (keys_of_minibuf): Delete.
13499 * emacs.c (main): Don't call keys_of_minibuf.
13500
135012008-05-22 Kenichi Handa <handa@m17n.org>
13502
13503 * ftfont.c (ftfont_resolve_generic_family): Rename from
13504 ftfont_list_generic_family. Return a single family for each
13505 generic family.
13506 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13507 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13508 Call font_add_log.
13509 (ftfont_match): Call font_add_log.
13510
13511 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13512 (FONT_DEBUG): Define it.
13513 (font_add_log): Extern it.
13514 (font_assert): Rename from xassert.
13515
13516 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13517 (xfont_list_family): Call font_add_log.
13518 (xfont_match): Likewise.
13519 (memq_no_quit): Delete.
13520
13521 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13522 call of Ffont_xlfd_name.
13523
13524 * xfaces.c (struct table_entry, slant_table, weight_table)
13525 (swidth_table): Move to font.c.
13526
13527 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13528 xassert are changed to font_assert. Delete many unused variables.
13529 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13530 New variables.
13531 (struct table_entry): Move from xfaces.c and modified.
13532 (weight_table, slant_table, width_table): Move from xfaces.c and
13533 contents adjusted for the change of struct table_entry.
13534 (font_style_to_value, font_style_symbolic): Adjust for the
13535 format change of font_style_table.
13536 (font_parse_family_registry): Don't overwrite existing foundry and
13537 family of font_spec.
13538 (font_score): Fix calculation of diff for sizes.
13539 (font_sort_entites): Call font_add_log.
13540 (font_delete_unmatched): Return a newly created list.
13541 (font_list_entities): Fix previous change. Call font_add_log.
13542 (font_matching_entity, font_open_entity, font_close_entity):
13543 Call font_add_log.
13544 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13545 (Finternal_set_font_style_table): Delete.
13546 (BUILD_STYLE_TABLE): New macro.
13547 (build_style_table): New function.
13548 (Vfont_log, font_log_env_checked): New variables.
13549 (font_add_log): New function.
13550 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13551 Declare Lisp variables "font-weight-table", "font-slant-table",
13552 "font-width-table", and "font-log". Initialize font_style_table.
13553
135542008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13555
13556 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13557
135582008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13559 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13560
13561 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13562 (Vframe_alpha_lower_limit): New variable.
13563 (x_set_alpha): New function.
13564
13565 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13566
13567 * xfns.c (x-create-frame, Qalpha):
13568 Initialize the frame parameter `alpha'.
13569 * xterm.c (OPAQUE, OPACITY): New.
13570 (x_set_frame_alpha): New function.
13571 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13572
13573 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13574 * w32fns.c (w32_frame_parm_handlers): Likewise.
13575
135762008-05-20 Jason Rumney <jasonr@gnu.org>
13577
13578 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13579 truetype fonts to opentype list.
13580
135812008-05-20 Juanma Barranquero <lekktu@gmail.com>
13582
13583 * fontset.c (Ffontset_info): Doc fix.
13584 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13585 <ignore-relative-composition>: Fix typos in docstrings.
13586
13587 * font.c (syms-of-font) <font-encoding-alist>:
13588 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13589 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13590 (Ffont_otf_alternates): Doc fixes.
13591
135922008-05-20 Kenichi Handa <handa@m17n.org>
13593
13594 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13595 font.h through out the file.
13596 (FONT_DRIVERS): Rename from FONTOBJ.
13597 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13598 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13599
13600 * emacs.c (main): Call syms_of_font unconditionally.
13601
13602 * font.h (find_font_encoding): Extern it.
13603
13604 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13605 fontset.c.
194d44e7 13606 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13607 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13608 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13609 only when HAVE_WINDOW_SYSTEM is defined.
13610 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13611 when HAVE_WINDOW_SYSTEM is defined.
13612
13613 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13614 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13615
13616 * xfaces.c: Include font.h unconditionally.
13617 (merge_face_ref, merge_face_vectors)
13618 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13619
136202008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13621
13622 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13623 indirect_variable.
13624 * eval.c (lisp_indirect_variable): New fun.
13625 (Fuser_variable_p): Use it.
13626
136272008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13628
13629 * lisp.h (indirect_variable):
13630 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13631 Use Lisp_Symbol pointers rather than Lisp_Object.
13632 Adjust callers.
13633 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13634 To this end, change calling-convention.
13635
13636 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13637 if some non-hidden buffers are selected by string&pred.
13638
136392008-05-19 Chong Yidong <cyd@stupidchicken.com>
13640
13641 * process.c (wait_reading_process_output): Always check status
13642 when in batch mode.
13643
136442008-05-19 Kenichi Handa <handa@m17n.org>
13645
13646 * font.c (font_list_entities): Fix handling of cache.
13647 (font_matching_entity): Likewise.
13648
13649 * ftfont.c (cs_iso8859_1): Delete.
13650 (ft_face_cache): New variable.
13651 (struct ftfont_info): New member fc_charset_idx.
13652 (ftfont_build_basic_charsets): Delete.
13653 (fc_charset_table): New variable.
13654 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13655 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13656 Callers changed.
13657 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13658 (ftfont_spec_pattern): New argument fc_charset_idx.
13659 Check registry more rigidly. Change callers.
13660 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13661 change of :font-entity property of the font.
13662
13663 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13664 property of the font.
13665
136662008-05-18 Juanma Barranquero <lekktu@gmail.com>
13667
13668 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13669 (Funencodable_char_position, Fcheck_coding_systems_region)
13670 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13671 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13672 (Ffind_operation_coding_system, Fset_coding_system_priority)
13673 (Fcoding_system_eol_type): Doc fixes.
13674
136752008-05-17 Glenn Morris <rgm@gnu.org>
13676
13677 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13678
136792008-05-16 Eli Zaretskii <eliz@gnu.org>
13680
13681 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13682 and st_gid.
13683
13684 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13685 HAVE_WINDOW_SYSTEM is not defined.
13686
13687 * xfaces.c (merge_face_ref, merge_face_vectors)
13688 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13689 HAVE_WINDOW_SYSTEM is defined.
13690 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13691
136922008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13693
13694 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13695
136962008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13697
13698 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13699
137002008-05-15 Kenichi Handa <handa@m17n.org>
13701
13702 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13703 preference.
13704
137052008-05-15 Glenn Morris <rgm@gnu.org>
13706
13707 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13708
137092008-05-15 Chong Yidong <cyd@stupidchicken.com>
13710
13711 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13712 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13713
13714 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13715
137162008-05-15 Kenichi Handa <handa@m17n.org>
13717
13718 * ftfont.c (ftfont_list): Downcase family name to check generic
13719 families.
13720
13721 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13722 font-spec for QCfont value.
13723
13724 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13725 buffer. Check the return value of it.
13726
137272008-05-14 Jason Rumney <jasonr@gnu.org>
13728
13729 * w32term.c (w32_get_glyph_overhangs): Remove.
13730 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13731
137322008-05-14 Kenichi Handa <handa@m17n.org>
13733
13734 * font.c (font_prop_validate): Make nil a valid value.
13735 (font_clear_cache): Check if the cached vector of entities is nil
13736 or not.
13737
137382008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13739
13740 * emacs.c (main_thread): Conditionalize on
13741 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13742 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13743
13744 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13745 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13746 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13747
137482008-05-14 Kenichi Handa <handa@m17n.org>
13749
13750 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13751 has no corresponding coding system.
13752
137532008-05-14 Jason Rumney <jasonr@gnu.org>
13754
13755 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13756
13757 * w32font.h (w32font_open_internal): Update declaration.
13758
13759 * w32font.c (w32font_open_internal): Change last argument from
13760 w32font_info struct to font object. Fill in font object from
13761 font_entity. Get Outline metrics if possible. Use them to
13762 calculate underline position and thickness. Use xlfd name as name
13763 property. Don't set codepage.
13764 (w32font_open): Pass font_object to w32font_open_internal. Don't
13765 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13766 (w32font_draw): Use s->font.
13767 (clear_cached_metrics): Don't clear non-existent blocks.
13768
13769 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13770 font was not found.
13771 (x_draw_glyph_string): Use underline position and thickness from font.
13772
13773 * w32uniscribe.c (uniscribe_open): Pass font_object to
13774 w32font_open_internal.
13775
137762008-05-14 Kenichi Handa <handa@m17n.org>
13777
13778 These changes are to delete all legacy font-handling codes, and
13779 make Emacs use only font-backends.
13780
13781 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13782 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13783
13784 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13785
13786 * charset.h (Vcharset_non_preferred_head)
13787 (Vcurrent_iso639_language): Extern them.
13788
13789 * charset.c (Vcharset_non_preferred_head): New variable.
13790 (Vcurrent_iso639_language): New variable.
13791 (syms_of_charset): Declare it as a Lisp variable.
13792 (char_charset): Don't check non preferred charsets. As a last
13793 resort, return charset_unicode.
13794 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13795
13796 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13797 conditionals. Don't check enable_font_backend. Delete all codes
13798 used only when USE_FONT_BACKEND is not defined.
13799
13800 * dispextern.h (struct glyph_string): Change type of `font' to
13801 `struct font *'.
13802 (struct glyph_string): New member underline_position and
13803 underline_thickness.
13804 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13805 (struct face): Change type of `font' to `struct font *'. Remove
13806 members `font_name', `font_info_id'.
13807 (per_char_metric, encode_char): Delete externs.
13808 (calc_pixel_width_or_height): Adjust the prototype.
13809
13810 * emacs.c (enable_font_backend): Delete extern.
13811 (main): Don't set enable_font_backend. Don't check the command
13812 line argument "-disable-font-backend".
13813
13814 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13815 (enum font_property_index): New members FONT_DPI_INDEX,
13816 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13817 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13818 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13819 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13820 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13821 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13822 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13823 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13824 (struct font_spec, struct font_entity): New structs.
13825 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13826 (struct font): Many members from old "struct font_info" moved to
13827 here. Members font and entity deleted.
13828 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13829 the new font-related objects.
13830 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13831 (CHECK_FONT_GET_OBJECT): Likewise.
13832 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13833 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13834 (struct font_driver): New members case_sensitive anc check. Type
13835 of the member list and open changed.
13836 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13837 (font_symbolic_width, font_find_object, font_get_spec)
13838 (font_set_lface_from_name): Delete extern.
13839 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13840
13841 * font.c: Include <strings.h>.
13842 (enable_font_backend): Delete it.
13843 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13844 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13845 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13846 (null_string): Delete it.
13847 (null_vector): Make it static.
13848 (font_family_alist): Delete it.
13849 (Qnormal): Extern it.
13850 (QCextra, QClanguage): Delete it.
13851 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13852 (font_make_spec, font_make_entity, font_make_object)
13853 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13854 the string. Callers changed.
13855 (font_pixel_size): Adjusted for the format change of font-related
13856 objects.
13857 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13858 (font_style_to_value, font_style_symbolic): New function.
13859 (build_font_family_alist): Delete it.
13860 (font_registry_charsets): Use Fassoc_string instead of
13861 assq_no_quit.
13862 (font_prop_validate_symbol): Don't return null_string.
13863 (font_prop_validate_style): Adjusted for the change of
13864 style-related values in a font vector.
13865 (font_property_table): Delete entries for QClanguage and
13866 QCantialias, add entries for QCavgwidth.
13867 (get_font_prop_index): Delete the 2nd argument FROM.
13868 (font_prop_validate): Arguments changed.
13869 (font_put_extra): Adjusted for the change of font-related objects.
13870 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13871 (font_parse_fcname, font_unparse_fcname)
13872 (font_prepare_composition): Likewise.
13873 (font_parse_family_registry): Renamed from font_merge_old_spec.
13874 (otf_open): Delete the 1st arg entity.
13875 (font_otf_capability): Adjusted for the above change.
13876 (font_score): New arg alternate_families. Adjusted for the change
13877 of font-related objects.
13878 (font_sort_entites): New arg best_only.
13879 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13880 Delete them.
13881 (font_match_p): Check alternate families.
13882 (font_find_object): Delete it.
13883 (font_check_object): New function.
13884 (font_clear_cache): Adjusted for the change of font-related objects.
13885 (font_delete_unmatched): New arg.
13886 (font_list_entities): Call font_driver->list with a spec that
13887 doesn't specify style-related properties.
13888 (font_matching_entity): Arguments changed. Caller changed.
13889 (font_open_entity): Adjusted for the change of font-related objects.
13890 (font_close_object, font_has_char, font_encode_char)
13891 (font_get_name, font_get_spec): Likewise.
13892 (font_spec_from_name, font_clear_prop, font_update_lface):
13893 New functions.
13894 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13895 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13896 (font_at): Adjusted for the change of font-related objects.
13897 (font_range): New function.
13898 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13899 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13900 (Fcopy_font_spec, Fmerge_font_spec): New function.
13901 (Ffont_family_list): Renamed from list-families.
13902 (Finternal_set_font_style_table): Arguments changed.
13903 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13904 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13905 change of font-related objects.
13906 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13907
13908 * fontset.h (struct font_info): Delete it. Most members go to
13909 struct font.
13910 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13911 (enum FONT_SPEC_INDEX): Delete it.
13912 (font_info, list_fonts_func, load_font_func, query_font_func)
13913 (set_frame_fontset_func, find_ccl_program_func)
13914 (get_font_repertory_func, new_fontset_from_font_name): Delete
13915 externs.
13916 (fontset_from_font_name): Extern it.
13917 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13918 (FONT_INFO_FROM_FACE): Deleted.
13919 (face_for_font): Adjust prototype.
13920
13921 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13922 conditionals. Don't check enable_font_backend. Delete all codes
13923 used only when USE_FONT_BACKEND is not defined.
13924 (get_font_info_func, list_font_func, load_font_func)
13925 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13926 (get_font_repertory_func): Delete them.
13927 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13928 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13929 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13930 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13931 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13932 (fontset_compare_rfontdef): New function.
13933 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13934 rfont-defs by qsort. Adjusted for the change of font-group vector.
13935 (load_font_get_repertory): Deleted.
13936 (fontset_find_font): Use new macros to ref/set elements of
13937 font-def and rfont-def.
13938 (fontset_font): Fix the timing of remembering that no font for C.
13939 (free_face_fontset): Do nothing if the face has no fontset.
13940 (face_suitable_for_char_p): Use new macros to ref/set elements of
13941 rfont-def.
13942 (face_for_char): Likewise. Call face_for_char with font_object.
13943 (fs_load_font): Delete. Delete #pragma surrounding it.
13944 (fs_query_fontset): Use strcasecmp instead of strcmp.
13945 (generate_ascii_font_name): Adjusted for the format change of
13946 font-spec.
13947 (Fset_fontset_font): Likewise. Use new macros to set elements of
13948 font-def.
13949 (Fnew_fontset): Use font_unparse_xlfd to generate
13950 FONTSET_ASCII (fontset).
13951 (new_fontset_from_font_name): Deleted.
13952 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13953 a fontset is already created for the font. FIx updating of
13954 Vfontset_alias_alist.
13955 (fontset_ascii_font): Deleted.
13956 (Ffont_info): Adjusted for the format change of font-spec.
13957 (Finternal_char_font): Likewise.
13958 (Ffontset_info): Likewise.
13959 (syms_of_fontset): Don't check load_font_func.
13960
13961 * fns.c (internal_equal): Handle PREV_FONT.
13962
13963 * frame.h: Delete USE_FONT_BACKEND conditional.
13964
13965 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13966 conditionals. Don't check enable_font_backend. Delete all codes
13967 used only when USE_FONT_BACKEND is not defined.
13968 (x_set_font): Call x_new_font, not x_new_fontset2.
13969 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13970 already set for the frame.
13971
13972 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13973 a font-entity by font_make_entity. Use font_intern_prop instead
13974 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13975 font property. If a font is scalable, set avgwidth property to 0.
13976 Set font-entity property by font_put_extra.
13977 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13978 (ffont_driver): Adjusted for the change of struct font_driver.
13979 (ftfont_spec_pattern): New function.
13980 (ftfont_list): Return a list, not vector.
13981 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13982 (ftfont_list_family): Don't downcase names.
13983 (ftfont_free_entity): Deleted.
13984 (ftfont_open): Return a font-object. Adjusted for the change of
13985 struct font. Get underline_thickness and underline_position from
13986 font property. Don't update dpyinfo->smallest_font_height and
13987 dpyinfo->smallest_char_width.
13988 (ftfont_close): Don't free `struct font'.
13989 (ftfont_has_char): Adjusted for the format change of font-entity.
13990 (ftfont_encode_char, ftfont_text_extents): Likewise.
13991
13992 * ftxfont.c (ftxfont_list): Return a list, not vector.
13993 (ftxfont_open): Return a font-object. Adjusted for the change of
13994 struct font. Get underline_thickness and underline_position from
13995 font property. Don't update dpyinfo->smallest_font_height and
13996 dpyinfo->smallest_char_width.
13997 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13998 (ftxfont_draw): Adjusted for the change of struct font.
13999
14000 * image.c (image_ascent): Don't include "charset.h". Include
14001 "character.h" and "font.h".
14002
14003 * lisp.h (enum pvec_type): New member PREV_FONT.
14004 (Fassoc_string): EXFUN it.
14005
14006 * print.c: Include font.h.
14007 (print_object): Handle font-related objects.
14008
14009 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14010 conditionals. Don't check enable_font_backend. Delete all codes
14011 used only when USE_FONT_BACKEND is not defined.
14012 (handle_auto_composed_prop): Do nothing if it->f is not on a
14013 window system. Check how many following characters can be
14014 displayed by the same font.
14015 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14016 'struct font *'.
14017 (get_char_face_and_encoding): Assign the whole encoding task to
14018 the `encode-char' method of a font driver.
14019 (fill_composite_glyph_string): Adjusted for the change of `struct
14020 face' and `struct glyph_string'.
14021 (fill_glyph_string): Likewise.
14022 (get_per_char_metric): Arguments changed.
14023 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14024 and `struct glyph_string'.
14025 (produce_stretch_glyph, calc_line_height_property)
14026 (x_produce_glyphs): Likewise.
14027
14028 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14029 conditionals. Don't check enable_font_backend. Delete all codes
14030 used only when USE_FONT_BACKEND is not defined. Use
14031 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14032 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14033 (Qp): Extern them.
14034 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14035 Deleted.
14036 (struct font_name): Deleted.
14037 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14038 (compare_fonts_by_sort_order): New function.
14039 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14040 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14041 Deleted.
14042 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14043 compare_fonts_by_sort_order.
14044 (Fx_font_family_list): Call Ffont_family_list.
14045 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14046 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14047 (face_symbolic_slant, face_symbolic_swidth)
14048 (split_font_name_into_vector, build_font_name_from_vector)
14049 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14050 (font_rescale_ratio, split_font_name, build_font_name)
14051 (free_font_names, sort_fonts, x_face_list_fonts)
14052 (face_font_available_p, sorted_font_list, cmp_font_names)
14053 (font_list_1, concat_font_list, font_list, remove_duplicates):
14054 Deleted.
14055 (Fx_list_fonts): Use Ffont_list.
14056 (LFACE_AVGWIDTH): Deleted.
14057 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14058 by FONTP.
14059 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14060 (set_lface_from_font_name): Delete it.
14061 (set_lface_from_font): Renamed from
14062 set_lface_from_font_and_fontset. Caller changed. Don't set
14063 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14064 for face.
14065 (merge_face_vectors): Copy font-spec if necessary.
14066 Clear properties of the font-spec if necessary.
14067 (merge_face_ref): Clear properties of the font-spec if necessary.
14068 (Finternal_set_lisp_face_attribute): Likewise.
14069 (set_font_frame_param): Use font_load_for_lface to load a
14070 font-object, and call Fmodify_frame_parameters with it.
14071 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14072 font name by Ffont_xlfd_name.
14073 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14074 QCslant, and QCwidth.
14075 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14076 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14077 Compare fonts by EQ.
14078 (lookup_non_ascii_face): Deleted.
14079 (face_for_font): The 2nd argument changed.
14080 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14081 Check atomic font properties by case insensitive.
14082 (realize_non_ascii_face): Set face->overstrike correctly.
14083 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14084 (dump_realized_face): Get font name from
14085 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14086
14087 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14088 conditionals. Don't check enable_font_backend. Delete all codes
14089 used only when USE_FONT_BACKEND is not defined.
14090 (xic_create_xfontset): Original code deleted and renamed from
14091 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14092 (x_make_gc): Don't set GCFont in GCs.
14093 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14094 opened by "fixed".
14095 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14096 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14097 get_font_repertory_func.
14098
14099 * xfont.c: Include <stdlib.h> and "ccl.h".
14100 (struct xfont_info): New structure.
14101 (xfont_query_font): Deleted.
14102 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14103 moved from xterm.c.
14104 (xfont_driver): Adjusted for the change of struct font_driver.
14105 (compare_font_names): New function.
14106 (xfont_list_pattern): Sort font names case insensitively. Make
14107 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14108 (xfont_list): Return a list, not vector.
14109 (xfont_match): If the font doesn't have QCname property, generate
14110 a name from the other font properties.
14111 (xfont_open): Return a font-object. Adjusted for the change of
14112 struct font. Get underline_thickness and underline_position from
14113 font property. Don't update dpyinfo->smallest_font_height and
14114 dpyinfo->smallest_char_width.
14115 (xfont_close): Don't free struct font.
14116 (xfont_prepare_face): Adjusted for the change of struct font.
14117 (xfont_done_face): Deleted.
14118 (xfont_has_char): Adjusted for the change of struct font.
14119 (xfont_encode_char, xfont_draw): Likewise.
14120 (xfont_check): New function.
14121
14122 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14123 callback function.
14124 (xftfont_match): Adjusted for the format change of font-entity.
14125 (xftfont_open): Adjusted for the format change of font-entity and
14126 font-object. Adjusted for the change of struct font. Return a
14127 font-object. Don't update dpyinfo->smallest_font_height and
14128 dpyinfo->smallest_char_width.
14129 (xftfont_close): Block input while calling XftFontClose.
14130 (xftfont_prepare_face): Don't block input while calling
14131 xftfont_get_colors. Adjusted for the change of struct font.
14132 (xftfont_shape): Return value of error case fixed.
14133
14134 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14135
14136 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14137 conditionals.
14138 (FONT_WIDTH): Return (f)->max_width.
14139 (struct x_display_info): Delete member `font'.
14140 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14141 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14142 (struct x_output): Change type of `font' to `struct font *'.
14143
14144 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14145 conditionals. Don't check enable_font_backend. Delete all codes
14146 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14147 (x_per_char_metric, x_encode_char): Deleted.
14148 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14149 (x_compute_glyph_string_overhangs): Adjusted for the change of
14150 `struct face'.
14151 (x_draw_glyph_string_foreground)
14152 (x_draw_composite_glyph_string_foreground): Likewise.
14153 (x_draw_glyph_string): Likewise. Use font->underline_position and
14154 font->underline_thickness.
14155 (x_new_font): Renamed from x_new_fontset2.
14156 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14157 (x_check_font): Call `check' method of a font driver.
14158 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14159 (x_query_font, x_get_font_repertory): Deleted.
14160 (x_find_ccl_program): Renamed and moved to xfont.c.
14161 (x_redisplay_interface): Adjusted for the change of `struct
14162 redisplay_interface'.
14163
14164 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14165 conditionals. Don't check enable_font_backend. Delete all codes
14166 used only when USE_FONT_BACKEND is not defined. Surround non-used
14167 code by "#ifdef OLD_FONT" and "endif".
14168 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14169
14170 * w32font.h (struct w32font_info): New member.
14171 (FONT_COMPAT): New macro.
14172 (w32font_open_internal): Prototype adjusted.
14173
14174 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14175 OLD_FONT" and "endif".
14176
14177 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14178 conditionals. Don't check enable_font_backend. Delete all codes
14179 used only when USE_FONT_BACKEND is not defined.
14180 (w32font_open): Return a font-object. Make a font-object by
14181 font_make_object. Adjusted for the change of struct w32font_info.
14182 (w32font_close): Don't free struct font. Adjusted for the change
14183 of struct w32font_info.
14184 (w32font_encode_char, w32font_text_extents, w32font_draw):
14185 Adjusted for the change of struct w32font_info.
14186 (w32font_draw): Likewise.
14187 (w32font_list_internal): Return a list, not vector.
14188 (w32font_open_internal): Change the 4th arg to font-object.
14189 Adjusted for the change of struct w32font_info and font-object format.
14190 (add_font_name_to_list): Don't downcase names.
14191 (w32_enumfont_pattern_entity): Make a font-entity by
14192 font_make_entity. Adjusted for the format change of font-entity.
14193 Use FONT_SET_STYLE to set a style-related font property. If a
14194 font is scalable, set avgwidth property to 0. Set font-entity
14195 property by font_put_extra.
14196 (font_matches_spec): Adjusted for the format change of font-entity.
14197 (w32_weight_table, w32_decode_weight): New variables.
14198 (w32_encode_weight): New function.
14199 (fill_in_logfont): Adjusted for the format change of font-spec.
14200 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14201 weight value.
14202 (w32font_driver): Adjusted for the change of struct font_driver.
14203
14204 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14205 conditionals. Don't check enable_font_backend. Surround non-used
14206 code by "#ifdef OLD_FONT" and "endif".
14207 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14208 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14209
14210 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14211 conditionals. Don't check enable_font_backend. Delete all codes
14212 used only when USE_FONT_BACKEND is not defined. Surround non-used
14213 code by "#ifdef OLD_FONT" and "endif".
14214
14215 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14216 (uniscribe_open): Return value changed to font-object.
14217 Adjusted for the format change of font-object.
14218 (uniscribe_otf_capability): Adjusted for the change of struct font.
14219 (add_opentype_font_name_to_list): Don't downcase names.
14220 (uniscribe_font_driver): Adjusted for the change of struct
14221 font_driver.
14222
142232008-05-13 Chong Yidong <cyd@stupidchicken.com>
14224
14225 * dispnew.c (update_frame_1): Check if tty output is still valid
14226 before flushing it.
14227
142282008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14229
14230 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14231 to Gtk+ menus.
14232
142332008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14234
14235 * dired.c (file_name_completion): Tweak the code so as to always do it
14236 in a single pass. Tighten the scope of some variables.
14237
14238 * dired.c (Qdefault_directory): New var.
14239 (file_name_completion): Use it instead of Fexpand_file_name.
14240 (syms_of_dired): Initialize it.
14241
142422008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14243
14244 * fileio.c (double_dollars): Remove dead code.
14245
142462008-05-10 Eli Zaretskii <eliz@gnu.org>
14247
14248 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14249 Mention w32-get-true-file-attributes in doc string.
14250
14251 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14252
142532008-05-09 Glenn Morris <rgm@gnu.org>
14254
14255 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14256 2008-04-23.
14257
142582008-05-09 Eli Zaretskii <eliz@gnu.org>
14259
14260 Support for reporting owner and group of each file on MS-Windows:
14261 * dired.c (stat_uname, stat_gname): New functions, with special
14262 implementation for w32.
14263 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14264
14265 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14266 (dflt_group_name): New static variable.
14267 (dflt_group): Rename from the_group.
14268 (init_user_info): Init dflt_group fields. Get user's group name
14269 from LookupAccountSid.
14270 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14271 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14272 New initialization states.
14273 (globals_of_w32): Initialize them to zero. Initialize the default
14274 group name to "None".
14275 (GetFileSecurity_Name): New global var, the name of the function
14276 to call for GetFileSecurity.
14277 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14278 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14279 (get_file_security, get_security_descriptor_owner)
14280 (get_security_descriptor_group, is_valid_sid)
14281 (get_file_security_desc, get_rid, get_name_and_id)
14282 (get_file_owner_and_group): New functions.
14283 (stat): Use get_file_security_desc and get_file_owner_and_group to
14284 report the owner and primary group of each file. Don't ignore the
14285 high 32 bits of file's size, now that st_size is 64-bit wide.
14286 Fix test when to get true file attributes.
14287 (init_user_info): Use get_rid instead of equivalent inline code.
14288 (fstat): Don't ignore the high 32 bits of file's size.
14289
142902008-05-09 Chong Yidong <cyd@stupidchicken.com>
14291
14292 * image.c (png_load): Use correct bit-depth for setting background
14293 color.
14294
142952008-05-08 Eli Zaretskii <eliz@gnu.org>
14296
14297 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14298 epa-hook.elc.
14299
143002008-05-08 Juanma Barranquero <lekktu@gmail.com>
14301
14302 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14303
143042008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14305
14306 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14307 because the original parameters are in pure storage now.
14308 (mac_window): Remove unused params. Update callers.
14309
143102008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14311
14312 * lread.c (substitute_object_recurse): Use lower-level primitives.
14313 Don't signal errors when traversing sub-char-tables.
14314 Don't loop over all the possible characters when traversing char-tables.
14315
14316 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14317 just like we do in print.c.
14318
143192008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14320
14321 * minibuf.c (Ftry_completion): Remove code left over from when we used
14322 scmp instead of Fcompare_strings.
14323
143242008-05-04 Juanma Barranquero <lekktu@gmail.com>
14325
14326 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14327
143282008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14329
14330 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14331 Create bitmap context in native byte order.
14332
14333 * macterm.c (XDrawLine)
14334 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14335 context in native byte order.
14336
143372008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14338
14339 * config.in: Regenerate.
14340
14341 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14342 New definitions for Image I/O support.
14343 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14344 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14345 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14346 (mac_data_provider_release_data, image_load_image_io)
14347 [USE_MAC_IMAGE_IO]: New functions.
14348 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14349 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14350 (init_image_func_pointer) [MAC_OSX]: Remove function.
14351 (image_load_quartz2d) [MAC_OSX]: Check availability of
14352 CGImageCreateWithPNGDataProvider at compile time.
14353 Use lowercase `false' for boolean constant.
14354 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14355 Use image_load_image_io.
14356 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14357 Don't check MyCGImageCreateWithPNGDataProvider.
14358 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14359 Don't call init_image_func_pointer.
14360
14361 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14362
14363 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14364 Make variable non-static.
14365 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14366 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14367
14368 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14369 (RED_FROM_ULONG): Mask off higher bits.
14370 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14371
14372 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14373 Include AvailabilityMacros.h.
14374 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14375 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14376
143772008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14378
14379 * chartab.c (Fset_char_table_range): If range is t, really set all
14380 chars to that value.
14381
143822008-05-03 Eli Zaretskii <eliz@gnu.org>
14383
14384 * dired.c (Ffile_attributes): Don't allow the device number become
14385 negative.
14386
143872008-05-02 Daiki Ueno <ueno@unixuser.org>
14388
14389 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14390
143912008-05-02 Juri Linkov <juri@jurta.org>
14392
14393 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14394 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14395 DEFAULT argument as a list of default values in docstrings.
14396
143972008-05-01 Chong Yidong <cyd@stupidchicken.com>
14398
14399 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14400
144012008-05-01 Martin Rudalics <rudalics@gmx.at>
14402
14403 * dispnew.c (change_frame_size_1): Preserve small windows when
14404 shrinking frames by calling set_window_height|width with third
14405 arg 2.
14406
14407 * window.h (struct window): Replace field too_small_ok by field
14408 resize_proportionally.
14409
14410 * window.c (make_window): Initialize resize_proportionally.
14411 (enlarge_window): Temporarily set resize_proportionally to make
14412 sure that shrink_windows does scale the window proportionally.
14413 (shrink_windows): When window has resize_proportionally set try
14414 to shrink it proportionally by stealing from other windows.
14415 (struct saved_window, Fset_window_configuration)
14416 (compare_window_configurations): Handle resize_proportionally.
14417 (WINDOW_TOTAL_SIZE): New macro.
14418 (window_min_size, shrink_windows, size_window): Use it.
14419 (check_min_window_sizes): Remove. Invalid values of
14420 window-min-height|width are handled by window_min_size_2 now.
14421 (size_window, Fsplit_window, enlarge_window)
14422 (adjust_window_trailing_edge, grow_mini_window): Don't call
14423 check_min_window_sizes.
14424 (window_min_size_2, window_min_size_1, window_min_size):
14425 New argument safe_p for retrieving "safe" minimum sizes.
14426 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14427 (adjust_window_trailing_edge, grow_mini_window):
14428 Adjust arguments of window_min_size... functions.
14429 (shrink_windows): Argument min_size removed. New argument
14430 safe_p allows shrinking windows to their safe minimum sizes.
14431 Calculate minimum size and decide whether a window shall be
14432 deleted for each window individually.
14433 (size_window): When nodelete_p equals 2, tell shrink_windows to
14434 delete windows only if their new minimum size is no more safe.
14435 (shrink_window_lowest_first): Call window_min_size_1 to make
14436 sure to preserve modeline of bottom-most window when resizing
14437 the minibuffer.
14438 (Fset_window_configuration, Fcurrent_window_configuration)
14439 (compare_window_configurations): Do not handle
14440 window-min-height|width any more.
14441 (syms_of_window): Clarify window-min-height|width doc-strings.
14442
144432008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14444
14445 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14446 some more. Copy some of the code from Ftry_completions.
14447 Remove special case code that dates back to initial revision when the
14448 slash was only added when necessary and that can't trigger nowadays.
14449
144502008-04-27 Kenichi Handa <handa@m17n.org>
14451
14452 * font.c (font_prop_validate): Signal `error' instead of `font'.
14453
144542008-04-29 Jason Rumney <jasonr@gnu.org>
14455
14456 * w32fns.c (Fw32_battery_status): New defun.
14457 (syms_of_w32fns): Defsubr it.
14458
144592008-04-28 Andreas Schwab <schwab@suse.de>
14460
14461 * dired.c (file_name_completion): Fix another mixing of encoded
14462 and decoded names.
14463
144642008-04-28 Juanma Barranquero <lekktu@gmail.com>
14465
14466 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14467
144682008-04-27 Juanma Barranquero <lekktu@gmail.com>
14469
14470 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14471
144722008-04-27 Andreas Schwab <schwab@suse.de>
14473
14474 * dired.c (file_name_completion): Fix inappropriate mixing of
14475 encoded and decoded names.
14476
14477 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14478
14479 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14480
144812008-04-26 Eli Zaretskii <eliz@gnu.org>
14482
14483 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14484 2008-03-31, it's not needed anymore with `struct stat' definition
14485 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14486 for the same reasons.
14487
144882008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14489
14490 * m/sparc.h: Additional redefinitions for GNU/Linux.
14491
144922008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14493
14494 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14495 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14496 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14497 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14498 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14499 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14500 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14501 Likewise.
14502
14503 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14504 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14505 (mac_ax_number_of_characters): Add externs.
14506 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14507 [USE_MAC_TSM]: Likewise.
14508 (mac_handle_text_input_event) [MAC_OSX]:
14509 Handle kEventTextInputOffsetToPos for no active input area case.
14510 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14511 (mac_handle_document_access_event)
14512 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14513 (install_application_handler) [MAC_OSX]: Register handlers for
14514 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14515 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14516 Register mac_handle_document_access_event.
14517
14518 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14519 Make functions non-static.
14520
145212008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14522
14523 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14524 (read_file_name_completion_ignore_case, insert_default_directory)
14525 (Qdefault_directory): Move to minibuffer.el.
14526 (Fread_file_name): Call the new `read-file-name' instead.
14527
145282008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14529
14530 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14531 Make function non-static.
14532 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14533 Remove function.
14534 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14535 Move to mactoolbox.c.
14536 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14537
14538 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14539 (mac_rect_make): New macro.
14540
14541 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14542 instead of float.
14543 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14544 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14545 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14546 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14547 CGRectMake.
14548 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14549 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14550 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14551 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14552 instead of WindowRef in argument type.
14553 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14554 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14555 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14556 instead of DISPLAY. All uses changed.
14557 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14558 (x_calc_absolute_position): Simplify so as not to use
14559 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14560
14561 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14562 instead of WindowRef in argument type.
14563 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14564 [TARGET_API_MAC_CARBON]: Remove externs.
14565 (create_apple_event, mac_event_parameters_to_lisp)
14566 [TARGET_API_MAC_CARBON]: Add externs.
14567
14568 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14569 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14570 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14571 is clicked.
14572 (x_activate_menubar): Remove extern for saved_menu_event_location.
14573 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14574 Move from mac.c.
14575
145762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14577
14578 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14579 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14580
145812008-04-23 Jason Rumney <jasonr@gnu.org>
14582
14583 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14584 attributes only for local files.
14585
14586 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14587 default to Qlocal.
14588
145892008-04-22 Juri Linkov <juri@jurta.org>
14590
14591 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14592 read-buffer-to-switch instead of using the letter "B".
14593
145942008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14595
14596 * fileio.c (Qdefault_directory): New variable.
14597 (Fread_file_name): Use it to pass `dir' to the completion functions.
14598
145992008-04-20 Chong Yidong <cyd@stupidchicken.com>
14600
14601 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14602
146032008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14604
14605 * keyboard.c (Vpre_help_message): Remove.
14606 (show_help_echo): Remove default C code.
14607
14608 * dired.c (directory_files_internal, file_name_completion):
14609 Only call ENCODE_FILE if the string is indeed decoded.
14610
146112008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14612
14613 * Makefile.in (TOOLKIT_DEFINES): Remove.
14614 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14615
146162008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14617
14618 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14619 (mactoolbox.o): New target.
14620
14621 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14622 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14623
14624 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14625 Use mac_set_frame_window_background instead of XSetWindowBackground.
14626 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14627 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14628 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14629 instead of SetWindowTitleWithCFString.
14630 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14631 Move function to mactoolbox.c.
14632 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14633 Use mac_set_window_modified instead of SetWindowModified.
14634 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14635 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14636 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14637 FrontNonFloatingWindow. Use mac_activate_window instead of
14638 ActivateWindow. Use mac_active_non_floating_window instead of
14639 ActiveNonFloatingWindow.
14640 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14641 Use mac_show_hourglass and mac_hide_hourglass.
14642 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14643 instead of GetGlobalMouse.
14644 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14645 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14646 Use mac_bring_window_to_front instead of BringToFront.
14647 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14648 mactoolbox.c.
14649 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14650 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14651 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14652 mactoolbox.c.
14653
14654 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14655 (XtPointer): Move typedef from macmenu.c.
14656 (enum button_type): Move enum from macmenu.c.
14657 (widget_value): Move typedef from macmenu.c.
14658 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14659 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14660 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14661 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14662 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14663 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14664 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14665 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14666 (Selection): Move typedef from macselect.c.
14667 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14668 macterm.c.
14669 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14670 (mac_is_window_collapsed, mac_bring_window_to_front)
14671 (mac_send_window_behind, mac_hide_window, mac_show_window)
14672 (mac_collapse_window, mac_front_non_floating_window)
14673 (mac_active_non_floating_window, mac_activate_window)
14674 (mac_move_window_structure, mac_move_window, mac_size_window)
14675 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14676
14677 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14678 (enum mac_menu_kind): Move enum to mactoolbox.c.
14679 (min_menu_id): Move variable to mactoolbox.c.
14680 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14681 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14682 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14683 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14684 [TARGET_API_MAC_CARBON]: Likewise.
14685 (XtPointer): Move typedef to macgui.h.
14686 (enum button_type): Move enum to macgui.h.
14687 (widget_value): Move typedef to macgui.h.
14688 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14689 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14690 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14691 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14692 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14693 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14694 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14695 (popup_activated_flag): Make variable non-static.
14696 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14697 (add_menu_item, fill_menu, dispose_menus):
14698 Move functions to mactoolbox.c.
14699 (restore_show_help_function, menu_target_item_handler)
14700 (install_menu_target_item_handler, mac_handle_dialog_event)
14701 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14702 [TARGET_API_MAC_CARBON]: Likewise.
14703 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14704 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14705 (find_and_call_menu_selection, name_is_separator): Make function
14706 non-static.
14707 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14708 to mactoolbox.c.
14709 (set_frame_menubar): Don't call install_menu_quit_handler.
14710 (menu_item_selection): New variable.
14711 (mac_menu_show): Use create_and_show_popup_menu.
14712 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14713 selection but set variable menu_item_selection. All uses changed.
14714 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14715 Call install_menu_quit_handler. Move to mactoolbox.c.
14716
14717 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14718 (Selection): Move typedef to macgui.h.
14719 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14720 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14721 Make variables non-static.
14722 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14723 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14724 Make functions non-static.
14725 (Vmac_service_selection) [MAC_OSX]: Likewise.
14726 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14727 (mac_valid_selection_target_p, mac_clear_selection)
14728 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14729 (mac_put_selection_value, mac_selection_has_target_p)
14730 (mac_get_selection_value, mac_get_selection_target_list)
14731 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14732 Move functions to mactoolbox.c.
14733 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14734 Likewise.
14735 (copy_scrap_flavor_data, mac_handle_service_event)
14736 (install_service_handler) [MAC_OSX]: Likewise.
14737 (syms_of_macselect) <Vmac_dnd_known_types>:
14738 Use mac_dnd_default_known_types.
14739
14740 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14741 Move to mactoolbox.c.
14742 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14743 (Fx_selection_owner_p): Add EXFUN.
14744 (install_window_handler, remove_window_handler, XSetWindowBackground):
14745 Remove externs.
14746 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14747 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14748 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14749 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14750 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14751 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14752 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14753 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14754 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14755 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14756 (mac_valid_selection_target_p, mac_clear_selection)
14757 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14758 (mac_put_selection_value, mac_selection_has_target_p)
14759 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14760 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14761 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14762 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14763 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14764 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14765 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14766 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14767 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14768
14769 * mactoolbox.c: New file.
14770
147712008-04-18 Jason Rumney <jasonr@gnu.org>
14772
14773 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14774
147752008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14776
14777 * character.c (Fmultibyte_char_to_unibyte):
14778 Return latin1 chars unchanged.
14779
14780 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14781 relocated if it points to `name'.
14782
147832008-04-17 Kenichi Handa <handa@m17n.org>
14784
14785 * data.c (Faset): Allow setting a multibyte character in an
14786 ASCII-only unibyte string.
14787
14788 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14789
147902008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14791
14792 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14793 done in config.h.
14794
147952008-04-16 Juanma Barranquero <lekktu@gmail.com>
14796
14797 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14798 (Fchar_direction): Add usage in the docstring.
14799
148002008-04-15 Chong Yidong <cyd@stupidchicken.com>
14801
14802 * keyboard.c (read_key_sequence): Remove always-true checks.
14803
148042008-04-14 Jason Rumney <jasonr@gnu.org>
14805
14806 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14807 compatibility struct, for better underline positioning.
14808
148092008-04-13 David Hansen <david.hansen@gmx.net>
14810
14811 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14812 string.
14813
148142008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14815
14816 * m/hp800.h (XUINT, XSET): Remove.
14817
148182008-04-12 Juanma Barranquero <lekktu@gmail.com>
14819
14820 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14821 previous change.
14822
148232008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14824
14825 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14826 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14827
148282008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14829
14830 * keymap.h (map_keymap_canonical): Declare.
14831 * xmenu.c (single_keymap_panes): Use it.
14832
148332008-04-11 Glenn Morris <rgm@gnu.org>
14834
14835 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14836 set the target's value to that of the alias.
14837
148382008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14839
14840 * term.c (set_tty_color_mode): Left over typo.
14841
148422008-04-10 Michael Albinus <michael.albinus@gmx.de>
14843
14844 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14845 only after check for file name handler functions. Signal, when
14846 native functionality is not supported.
14847 (syms_of_fileio): Declare it unconditionally.
14848
148492008-04-10 Jason Rumney <jasonr@gnu.org>
14850
14851 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14852 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14853
14854 * w32.c (logon_network_drive): Also logon to remote drives that
14855 are mapped to drive letters.
14856
148572008-04-10 Glenn Morris <rgm@gnu.org>
14858
14859 * xdisp.c (truncate-partial-width-windows): Doc fix.
14860
148612008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14862
14863 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14864 Move functions to minibuffer.el.
14865 (syms_of_fileio): Don't declare them.
14866
148672008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14868
14869 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14870 (syms_of_minibuf): Remove its initialization.
14871
14872 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14873
148742008-04-09 Juanma Barranquero <lekktu@gmail.com>
14875
14876 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14877
148782008-04-09 Jason Rumney <jasonr@gnu.org>
14879
14880 * makefile.w32-in (distclean): Delete makefile too.
14881 (maintainer-clean): New target.
14882
14883 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14884
14885 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14886 for new font backend and composite cases.
14887
148882008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14889
14890 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14891 Most of the code moved to run_timers.
14892 (do_pending_atimers): Call run_timers.
14893 (run_timers): New function.
14894
14895 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14896 run atimers.
14897
14898 * process.c (wait_reading_process_output): The same as above.
14899
149002008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14901
14902 * minibuf.c (last_exact_completion): Remove variable.
14903 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14904 (complete_and_exit_1, complete_and_exit_2)
14905 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14906 (Fdisplay_completion_list, display_completion_list_1)
14907 (Fminibuffer_completion_help, Fself_insert_and_exit)
14908 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14909 minibuffer.el.
14910 (syms_of_minibuf): Remove corresponding initializations.
14911
14912 * keyboard.c (Qdeactivate_mark): New var.
14913 (command_loop_1): Use it to call `deactivate-mark'.
14914 (syms_of_keyboard): Initialize it.
14915
14916 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14917 to another frame.
14918 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14919 Don't call set_tty_color_mode.
14920 (store_frame_param): Reset previous_frame rather than call
14921 set_tty_color_mode.
14922 * term.c (set_tty_color_mode): Rewrite.
14923 * dispextern.h (set_tty_color_mode): New type.
14924 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14925
149262008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14927
14928 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14929 for generic chars, which do not exist any more in emacs-unicode.
14930
149312008-04-08 Michael Albinus <michael.albinus@gmx.de>
14932
14933 * coding.c (detect_coding_emacs_mule)
14934 (Ffind_operation_coding_system): Fix typo.
14935
149362008-04-08 Jason Rumney <jasonr@gnu.org>
14937
14938 * w32uniscribe.c (SNAME): Extract only symbol name.
14939
14940 * w32font.h (struct w32_metric_cache): New struct.
14941 (w32font_info): Use it.
14942 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14943 (CACHE_BLOCKSIZE): New constants.
14944
14945 * w32font.c (Qja, Qko, Qzh): New symbols.
14946 (syms_of_w32font): Initialise them.
14947 (font_matches_spec): Use them to filter by language.
14948 (recompute_cached_metrics): Remove function.
14949 (compute_metrics, clear_cached_metrics): New functions.
14950 (w32font_encode_char): Use them to manage metric cache.
14951 (w32font_text_extents): Cache metrics for all glyphs on demand.
14952 Delay converting glyph indices to WORD until needed.
14953 (w32font_open_internal): Initialize metric cache to empty.
14954 (registry_to_w32_charset): Charset should always be a symbol.
14955 (fill_in_logfont, list_all_matching_fonts): Family should
14956 always be a symbol.
14957
149582008-04-06 Jason Rumney <jasonr@gnu.org>
14959
14960 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14961 Give up if glyph indices not supported. Use uniscribe obtained
14962 ABC widths for individual metrics. Map glyph clusters back to
14963 characters using fClusterStart flag. Return number of glyphs
14964 produced, not chars processed.
14965 (uniscribe_shape): Map char at FROM to current glyph.
14966
149672008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14968
14969 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14970 Use SetMenuItemHierarchicalMenu.
14971
149722008-04-05 Jason Rumney <jasonr@gnu.org>
14973
14974 * image.c (pbm_load): Allow color values up to 65535.
14975 Throw an error if max_color_idx is outside the supported range.
14976 Report an error when image size is invalid.
14977 Read two bytes at a time when raw images have max_color_idx above 255.
14978
aac0c6e3
MR
149792008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14980
14981 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14982 append "CCL: Quitted" when the CCL program is quitted.
14983 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14984
14985 * ccl.h (struct ccl_program): New member quit_silently.
14986
149872008-04-05 Chong Yidong <cyd@stupidchicken.com>
14988
14989 * search.c (compile_pattern_1): Treat non-nil and non-string of
14990 search-spaces-regexp as nil.
14991
14992 * minibuf.c (Fassoc_string): Tweak docstring.
14993
149942008-04-05 Eli Zaretskii <eliz@gnu.org>
14995
14996 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14997 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14998 2008-03-14 to force inode be positive.
14999
15000 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15001 _S_* ones, since we now use our own sys/stat.h.
15002 (stat, fstat): Don't mangle the inode number.
15003 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15004
150052008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15006
15007 * frame.h (struct frame): Give one more bit to `visible' since we use
15008 values larger than 1 to indicate obscured frames on ttys.
15009
15010 * keymap.c (Qkeymap_canonicalize): New var.
15011 (Fmap_keymap_internal): New fun.
15012 (describe_map): Use keymap-canonicalize.
15013
15014 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15015 (Fundo_boundary): Set them.
15016 (syms_of_undo): Initialize them.
15017 (record_point): Use them instead of last_point_position*.
15018 (last_undo_buffer): Change type.
15019
150202008-04-04 Jason Rumney <jasonr@gnu.org>
15021
15022 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15023 (recompute_cached_metrics): Don't set ascent and descent per char.
15024
15025 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15026 (uniscribe_check_otf): Add GC protection before consing.
15027 Rearrange loop for counting features.
15028
150292008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15030
15031 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15032 buffer with byte-size of source buffer.
15033
150342008-04-03 Chong Yidong <cyd@stupidchicken.com>
15035
15036 * callint.c (Fcall_interactively): Handle temporary region even
15037 when shift-select-mode is off.
15038
150392008-04-03 Jason Rumney <jasonr@gnu.org>
15040
15041 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15042
150432008-04-03 Kenichi Handa <handa@m17n.org>
15044
15045 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15046 (CATEGORY_MASK_UTF_16): Likewise.
15047 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15048 binary file.
15049 (detect_coding): Add null-byte detection for a binary file.
15050 (detect_coding_system): Likewise.
15051
150522008-04-03 Jason Rumney <jasonr@gnu.org>
15053
15054 * w32uniscribe.c: New file.
15055
15056 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15057
15058 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15059
15060 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15061 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15062 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15063 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15064 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15065 (Qphonetic): New symbols.
15066 (syms_of_w32font): Initialize them.
15067 (font_supported_scripts): Use them.
15068 (w32font_list_family): List all charsets.
15069 (w32font_text_extents, recompute_cached_metrics): Fix metric
15070 calculations.
15071 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15072 Give opentype fonts their own format.
15073 (font_matches_spec): New arguments backend and logfont.
15074 Handle :otf spec for uniscribe backend.
15075 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15076 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15077
15078 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15079 font backend.
15080 (globals_of_w32fns): Initialize uniscribe font backend.
15081
15082 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15083 dependencies.
15084 (w32uniscribe.$(O)): New file to build.
15085 (FONT_OBJ): Include w32uniscribe.$(O).
15086 (LIBS): Add uniscribe libraries.
15087
15088 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15089
150902008-04-02 Chong Yidong <cyd@stupidchicken.com>
15091
15092 * callint.c (Vshift_select_mode): New var.
15093 (Finteractive): Document new ^ spec.
15094 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15095 is present.
15096
15097 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15098 (command_loop_1): Avoid running the direct display versions of
15099 forward-char and backward-char if shift-selection may occur.
15100 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15101 shift-translation takes place.
15102
15103 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15104 avoid clobbering by define-minor-mode.
15105
15106 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15107 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15108
15109 * syntax.c (Fforward_word): Add ^ interactive spec.
15110
15111 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15112 (Fscroll_right): Add ^ interactive spec.
15113
151142008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15115
15116 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15117
15118 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15119
15120 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15121
151222008-03-31 Juri Linkov <juri@jurta.org>
15123
15124 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15125
151262008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15127
15128 * gtkutil.c (xg_set_geometry): Fix indentation.
15129 (xg_resize_outer_widget): Remove.
15130 (x_wm_size_hint_off): Fix indentation.
15131 (xg_frame_set_char_size): Call flush_and_sync after
15132 gtk_window_resize.
15133 (x_wm_set_size_hint): Pass NULL as geometry window to
15134 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15135 Add menu bar and tool bar height to base height.
15136 (xg_update_frame_menubar, free_frame_menubar)
15137 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15138 (update_frame_tool_bar, free_frame_tool_bar):
15139 Change xg_resize_outer_widget to xg_frame_set_char_size.
15140
151412008-03-30 Michael Albinus <michael.albinus@gmx.de>
15142
15143 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15144 (Fdbus_call_method): New parameter TIMEOUT.
15145 (dbus-send-signal): Optimize UNGCPRO call.
15146
151472008-03-29 Juri Linkov <juri@jurta.org>
15148
15149 * window.c (Fdisplay_buffer): Move call to
15150 Vsplit_window_preferred_function out of conditions that check
15151 if window is eligible for vertical splitting.
15152 When Vsplit_window_preferred_function is non-nil, call it and use
15153 its non-nil return value as window. Otherwise, continue doing
15154 vertical splitting using Fsplit_window with arg horflag=nil.
15155 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15156 default value from `split-window' to nil.
15157
151582008-03-29 Juri Linkov <juri@jurta.org>
15159
15160 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15161 for interactive code letters 'b' and 'B'.
15162
151632008-03-29 Eli Zaretskii <eliz@gnu.org>
15164
15165 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15166 multibyte string.
15167
151682008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15169
15170 * keyboard.c (pending_funcalls): New var.
15171 (timer_check): Run it.
15172 (syms_of_keyboard): Initialize it.
15173 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15174 (Vdelete_terminal_functions): New vars.
15175 (syms_of_terminal): Initialize them.
15176 (Fdelete_terminal): Run delete-terminal-functions.
15177 * xdisp.c (safe_eval): Rewrite.
15178 (safe_call2): New fun.
15179 * frame.c (Qdelete_frame_functions): New var.
15180 (syms_of_frame): Initialize it.
15181 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15182 * lisp.h (safe_call2, pending_funcalls): Declare.
15183
151842008-03-28 Andreas Schwab <schwab@suse.de>
15185
15186 * indent.c (Fmove_to_column): Move declaration before statements.
15187
151882008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15189
15190 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15191 (struct frame): Use bit fields for boolean vars.
15192
15193 * process.c (server_accept_connection): Simplify naming.
15194 (emacs_get_tty_pgrp): Use SDATA.
15195
15196 * coding.c (decode_coding_object): Fix last change.
15197
151982008-03-27 Jason Rumney <jasonr@gnu.org>
15199
15200 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15201
152022008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15203
15204 * charset.c (Fdefine_charset_internal): Change the way of
15205 registering charsets in Vcharset_order_list.
15206 (syms_of_charset): Make the charset `eight-bit' supplementary.
15207
152082008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15209
15210 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15211 operations, to avoid having the difference between pointers
15212 overflow.
15213
152142008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15215
15216 * indent.c (check_display_width): New fun.
15217 (scan_for_column): Use it.
15218
15219 * data.c (syms_of_data): Mark most-positive-fixnum and
15220 most-negative-fixnum as constants.
15221
15222 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15223
15224 * indent.c (scan_for_column): Extract from current_column_1.
15225 Merge with the same code from Fmove_to_column.
15226 (current_column_1, Fmove_to_column): Use it.
15227
152282008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15229
15230 * keymap.c (map_keymap_internal): New fun.
15231 (map_keymap): Use it.
15232 (Fmap_keymap_internal): New fun.
15233 (Fmap_keymap): Remove left-out test from before make_save_value.
15234
15235 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15236
15237 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15238 Use XCAR/XCDR.
15239
15240 * process.h (struct Lisp_Process): Remove filter_multibyte.
15241 * process.c (QCfilter_multibyte): Remove.
15242 (setup_process_coding_systems): Don't use filter_multibyte.
15243 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15244 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15245 (Fset_process_filter_multibyte): Change the coding-system to
15246 approximate the previous behavior.
15247 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15248 coding-system.
15249
15250 * coding.c (decode_coding_object): When not decoding into a buffer,
15251 obey the coding system's preference of (uni|multi)byte.
15252
152532008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15254
15255 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15256 every char is changed and has a different byte-length.
15257 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15258 Fix int -> EMACS_INT.
15259
152602008-03-23 David Hansen <david.hansen@gmx.net>
15261
15262 * dbusbind.c (xd_read_message): Remove extra copying of message
15263 strings. Check for NULL `interface' or `member'.
15264
152652008-03-22 Eli Zaretskii <eliz@gnu.org>
15266
15267 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15268 cFileName a file name that includes `?' characters, use the 8+3
15269 alias in cAlternateFileName instead.
15270
152712008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15272
15273 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15274
152752008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15276
15277 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15278 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15279 work on current_buffer only instead (that was already the case
15280 for some of the code anyway).
15281 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15282 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15283 (SET_PT, SET_PT_BOTH): Adjust.
15284 * intervals.h (set_point, temp_set_point, set_point_both)
15285 (temp_set_point_both): Remove redundant declarations.
15286
152872008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15288
15289 * fileio.c (Finsert_file_contents):
15290 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15291 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15292 when buffer != current_buffer anyway.
15293
152942008-03-20 Andreas Schwab <schwab@suse.de>
15295
15296 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15297 as default.
15298
152992008-03-19 Jason Rumney <jasonr@gnu.org>
15300
15301 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15302 (syms_of_w32fns): Initialize them.
15303 (HOURGLASS_ID): New constant.
15304 (x_window_to_frame): Don't check hourglass_window.
15305 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15306 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15307 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15308 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15309 Only change the cursor if hourglass is not active.
15310 (Fx_create_frame): Initialize frame's current_cursor.
15311 (hourglass_atimer): Remove.
15312 (hourglass_started): New function.
15313 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15314 (show_hourglass): Adapt to w32, changing argument to frame.
15315
15316 * w32term.h (struct w32_output): Remove hourglass_window.
15317 Add current_cursor.
15318
15319 * eval.c (call_debugger, Fsignal):
15320 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15321 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15322 (Fexecute_extended_command, cancel_hourglass_unwind):
15323 * minibuf.c (read_minibuf):
15324 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15325
153262008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15327
15328 * window.c (run_funs): New fun.
15329 (run_window_configuration_change_hook): Use it to run the buffer-local
15330 and the global part of the hook.
15331
15332 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15333 (unwind_format_mode_line): Restore selected window.
15334 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15335
153362008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15337
15338 * editfns.c (Fchar_equal): Check they are valid characters.
15339
15340 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15341
153422008-03-17 Andreas Schwab <schwab@suse.de>
15343
15344 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15345 against a charset.
15346
15347 * lisp.h (Fbuffer_list): Declare.
15348
153492008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15350
aac0c6e3
MR
15351 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15352 handlebox_widget is != 0.
15353
153542008-03-16 Juri Linkov <juri@jurta.org>
15355
15356 * callint.c (Fcall_interactively): For interactive code letters
15357 'b' and 'B' put the buffer list into the list of default "future"
15358 values of the minibuffer.
15359
153602008-03-16 Andreas Schwab <schwab@suse.de>
15361
15362 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15363 modifiers.
15364
15365 * regex.c (re_match_2_internal): Correct matching of a charset
15366 against latin-1 characters.
15367
153682008-03-16 Kenichi Handa <handa@m17n.org>
15369
15370 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15371 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15372 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15373 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15374 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15375 CHAR_STRING_ADVANCE.
15376 (produce_chars): Fix for the case that the source and the
15377 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15378 instead of CHAR_STRING_ADVANCE.
15379 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15380 STRING_CHAR_ADVANCE.
15381
153822008-03-15 Andreas Schwab <schwab@suse.de>
15383
15384 * regex.c (re_match_2_internal): Correct matching of eight bit
15385 characters in unibyte strings.
15386
153872008-03-15 Martin Rudalics <rudalics@gmx.at>
15388
15389 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15390 at end of range when it coincides with the end of the buffer.
15391
153922008-03-14 Eli Zaretskii <eliz@gnu.org>
15393
15394 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15395
15396 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15397
153982008-03-14 Jason Rumney <jasonr@gnu.org>
15399
15400 * editfns.c (initial_tz): New variable.
15401 (syms_of_editfns): Initialize it.
15402 (Fset_time_zone_rule): Set it when first called.
15403 Use it when TZSTRING is nil.
15404
15405 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15406 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15407 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15408 (globals_of_w32fns): Initialize them.
15409 (compute_tip_xy): Use them to position tooltips.
15410
154112008-03-14 Glenn Morris <rgm@gnu.org>
15412
15413 * emacs.c (main): Revert previous change.
15414 (standard_args): Revert -internal-script back to -scriptload,
15415 and remove the long-option form.
15416
154172008-03-13 Glenn Morris <rgm@gnu.org>
15418
15419 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15420 Remove option -enable-font-backend.
15421
154222008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15423
15424 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15425
154262008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15427
15428 * xterm.c (x_connection_closed): For GTK: If this is the last
15429 terminal just exit without closing the display.
15430
154312008-03-11 Jason Rumney <jasonr@gnu.org>
15432
15433 * w32font.c (w32font_full_name): Use floor to round.
15434
f0131492 154352008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15436
15437 * sound.c (alsa_configure): Declare vol at beginning of block.
15438
15439 * fontset.c (Ffontset_info): Remove extra semicolon.
15440
154412008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15442
15443 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15444 size of resulting string.
15445
154462008-03-10 Jason Rumney <jasonr@gnu.org>
15447
15448 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15449
154502008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15451
15452 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15453 Don't pretend as if characters with display property haven't been
15454 consumed for string-replacing-string case.
15455
154562008-03-08 Kim F. Storm <storm@cua.dk>
15457
15458 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15459 (get_next_display_element, next_element_from_string)
15460 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15461
154622008-03-08 Andreas Schwab <schwab@suse.de>
15463
15464 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15465
154662008-03-06 Jason Rumney <jasonr@gnu.org>
15467
15468 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15469 when charset not specified. Only translate ANSI to unicode when
15470 font_type is truetype.
15471 (w32font_coverage_ok): New function.
15472 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15473
154742008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15475
15476 * lread.c (Fread_char): Resolve modifiers.
15477 (Fread_char_exclusive): Likewise.
15478
15479 * character.c (char_resolve_modifier_mask): New function.
15480 (char_string): Use char_resolve_modifier_mask.
15481 (Fchar_resolve_modifiers): New function.
15482 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15483 function.
15484
154852008-03-04 Jason Rumney <jasonr@gnu.org>
15486
15487 * makefile.w32-in: Always include w32font.c in the build.
15488 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15489
154902008-03-04 Andreas Schwab <schwab@suse.de>
15491
15492 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15493 (versionclean): Likewise.
15494
154952008-03-04 Juanma Barranquero <lekktu@gmail.com>
15496
15497 * .cvsignore: Add oo.
15498
154992008-03-03 Andreas Schwab <schwab@suse.de>
15500
15501 * coding.c (decode_coding_object): Inhibit gap shrinking while
15502 decoding in place.
15503
155042008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15505
15506 * w32term.c: Remove unused include "gnu.h".
15507 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15508
15509 * gnu.h: Rename to ...
15510 * emacs-icon.h: ... this.
15511 * xterm.c: Use emacs-icon.h instead of gnu.h.
15512 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15513
155142008-03-03 Juanma Barranquero <lekktu@gmail.com>
15515
15516 * w32font.c: Include math.h.
15517
155182008-03-03 Jason Rumney <jasonr@gnu.org>
15519
15520 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15521 Compute options separately.
15522 (w32font_open_internal): Set glyph_idx before caching metrics.
15523
15524 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15525 Define if system headers don't.
15526 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15527 (w32font_encode_char): Don't declare here.
15528
15529 * w32font.c (Quniscribe, QCformat): New symbols.
15530 (syms_of_w32font): Define them.
15531 (w32font_has_char): Indicate uncertainty.
15532 (w32font_encode_char): Encode as glyph point. Make static.
15533 (recompute_cached_metrics): New function.
15534 (w32font_open_internal): Use it. Set font to use glyph points
15535 initially. Set format based on type of font.
15536 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15537 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15538 on it. Set format based on information available here.
15539 (add_font_entity_to_list): Identify backend based on opentype_only.
15540
155412008-03-02 Andreas Schwab <schwab@suse.de>
15542
15543 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15544
15545 * coding.c (decode_coding_big5, produce_chars):
15546 Fix typos in last change.
15547
155482008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15549
15550 * gnu.h: New icon.
15551
155522008-03-02 Kenichi Handa <handa@m17n.org>
15553
15554 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15555 `dos', don't decode '\r' if that is the last in the source.
15556 (decode_coding_utf_16, decode_coding_emacs_mule)
15557 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15558 (decode_coding_raw_text, decode_coding_charset): Likewise.
15559 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15560
155612008-03-01 Jason Rumney <jasonr@gnu.org>
15562
15563 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15564
155652008-03-01 Kim F. Storm <storm@cua.dk>
15566
15567 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15568
155692008-03-01 Jason Rumney <jasonr@gnu.org>
15570
15571 * w32font.c (w32font_full_name): New function.
15572 (w32font_open_internal): Use it.
15573
155742008-03-01 Kim F. Storm <storm@cua.dk>
15575
15576 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15577
155782008-03-01 Jason Rumney <jasonr@gnu.org>
15579
15580 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15581
155822008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15583
15584 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15585 xg_frame_resized when the event is for the edit widget.
15586
15587 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15588
15589 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15590 set_char_size.
15591 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15592 operations on widgets here. Just set frame size if needed.
15593 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15594 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15595 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15596 the whole frame.
15597 (xg_create_tool_bar): Move attachment of the tool bar to
15598 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15599 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15600
156012008-03-01 Jason Rumney <jasonr@gnu.org>
15602
15603 * w32fns.c (w32_msg_pump): Disable debug code.
15604
156052008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15606
15607 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15608
156092008-02-29 Chong Yidong <cyd@stupidchicken.com>
15610
15611 * xdisp.c (next_overlay_string): Don't set
15612 overlay_strings_at_end_processed_p if we're currently reading from
15613 a display string.
15614
156152008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15616
15617 * xdisp.c (get_overlay_strings_1): Fix typo.
15618
156192008-02-29 Chong Yidong <cyd@stupidchicken.com>
15620
15621 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15622
156232008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15624
15625 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15626
15627 * xdisp.c (display_mode_element): Cancel the previous change.
15628 (decode_mode_spec): Likewise.
15629 (handle_auto_composed_prop): Don't make composition if it->string
15630 is a string.
15631
156322008-02-27 Kim F. Storm <storm@cua.dk>
15633
15634 * lisp.h (GLYPH): Change type from int to struct with separate char
15635 and face_id members.
15636 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15637 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15638 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15639 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15640 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15641 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15642 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15643 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15644 handle new Lisp glyph code encoding, either an integer or a cons.
15645
15646 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15647 (GLYPH_ALIAS): Delete.
15648 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15649 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15650 (GLYPH_FROM_CHAR): Replace macro by ...
15651 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15652
15653 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15654 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15655 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15656 (GLYPH_INVALID_P): New macro.
15657 (spec_glyph_lookup_face): Update prototype.
15658
15659 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15660 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15661 new glyph code encoding.
15662 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15663 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15664
15665 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15666 Adapt to new glyph type and new glyph code encoding.
15667
15668 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15669
15670 * indent.c (current_column, current_column_1, Fmove_to_column)
15671 (compute_motion): Adapt to new glyph code encoding.
15672
15673 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15674
156752008-02-27 Chong Yidong <cyd@stupidchicken.com>
15676
15677 * process.c (wait_reading_process_output): Check for window
15678 changes caused by timers.
15679 Suggested by Johan Bockgård.
15680
156812008-02-27 Glenn Morris <rgm@gnu.org>
15682
15683 * emacs.c (USAGE1): Add `--disable-font-backend'.
15684
156852008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15686
15687 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15688 is made to the buffer.
15689
156902008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15691
15692 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15693 (face_at_string_position):
15694 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15695 (face_at_string_position):
15696 * xdisp.c (display_string, next_overlay_change):
15697 * buffer.h (overlays_at):
15698 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15699 Update callers.
15700
157012008-02-26 Chong Yidong <cyd@stupidchicken.com>
15702
15703 * editfns.c (Fformat): Doc fix.
15704
157052008-02-26 Juanma Barranquero <lekktu@gmail.com>
15706
15707 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15708 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15709 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15710
157112008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15712
15713 * buffer.c (Fbuffer_swap_text): New function.
15714 (syms_of_buffer): Defsubr it.
15715
157162008-02-25 Chong Yidong <cyd@stupidchicken.com>
15717
15718 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15719
157202008-02-25 Jason Rumney <jasonr@gnu.org>
15721
15722 * w32font.c (w32font_draw): Draw one character at a time when padding.
15723
157242008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15725
15726 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15727 Handle a nil arg. Use run_window_configuration_change_hook.
15728 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15729 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15730 Use run_window_configuration_change_hook.
15731
157322008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15733
15734 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15735 1-pixel width.
15736
157372008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15738
15739 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15740 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15741 if the glyph in the font is zero pixel with.
15742
15743 * dispextern.h (struct glyph_string): New member padding_p.
15744
15745 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15746
15747 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15748
15749 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15750
15751 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15752
15753 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15754
157552008-02-25 Jason Rumney <jasonr@gnu.org>
15756
15757 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15758
157592008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15760
15761 Allow fine-grained image-cache flushing.
15762 * dispextern.h (struct image): Add `dependencies' field.
15763 (clear_image_caches): Change arg to Lisp_Object.
15764 * image.c (make_image): Initialize `dependencies' field.
15765 (clear_image_cache): Change arg to allow fine-grained flushing.
15766 Perform the flush even if image-cache-eviction-delay is nil.
15767 (clear_image_caches): Change arg to Lisp_Object.
15768 (Fclear_image_cache): Expand meaning of the argument.
15769 (mark_image): Mark `dependencies' field.
15770 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15771 (lface_hash): Use XHASH rather than XFASTINT.
15772 (face_at_buffer_position): Fix int -> EMACS_INT position.
15773 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15774 (select_frame_for_redisplay): Remove code duplication.
15775 (redisplay_internal): Adapt arg to call to clear_image_caches.
15776
157772008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15778
15779 * s/vms4-0.h:
15780 * s/vms4-2.h:
15781 * s/vms4-4.h:
15782 * s/vms5-5.h: Remove, unused.
15783
15784 * s/irix5-2.h:
15785 * s/irix6-0.h:
15786 * s/riscos5.h:
15787 * s/mach-bsd4-3.h:
15788 * m/mips4.h: Remove files for obsolete systems.
15789
15790 * Makefile.in:
15791 * filelock.c:
15792 * unexmips.c:
15793 * m/hp9000s300.h:
15794 * m/iris4d.h:
15795 * s/aix3-1.h:
15796 * s/hpux.h:
15797 * s/msdos.h:
15798 * s/usg5-0.h:
15799 * s/usg5-2-2.h:
15800 * s/usg5-2.h:
15801 * s/usg5-3.h: Remove references to obsolete variables.
15802
15803 * s/irix5-0.h: Remove, move all the contents ...
15804 * s/irix6-5.h: ... here. Simplify.
15805 * config.in: Regenerate.
15806
158072008-02-24 Jason Rumney <jasonr@gnu.org>
15808
15809 * w32term.c (x_draw_glyph_string_background): Clear the background
15810 manually when cleartype is in use.
15811 (x_draw_glyph_string_foreground): Draw text transparently when
15812 cleartype is in use.
15813
15814 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15815 a font into it unless we have to.
15816
158172008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15818
15819 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15820 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15821
aac0c6e3
MR
158222008-02-18 Jason Rumney <jasonr@gnu.org>
15823
15824 * w32fns.c (Fw32_shell_execute): Encode parameters.
15825
158262008-02-09 Eli Zaretskii <eliz@gnu.org>
15827
15828 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15829
158302008-02-05 Juanma Barranquero <lekktu@gmail.com>
15831
15832 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15833
158342008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15835
15836 * xterm.c (x_set_offset): Don't change the gravity if
15837 CHANGE_GRAVITY is -1.
15838
158392008-02-23 Chong Yidong <cyd@stupidchicken.com>
15840
15841 * fileio.c (auto_save_error_occurred): New var.
15842 (auto_save_error): Set it.
15843 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15844 error occurred.
15845
158462008-02-23 Eli Zaretskii <eliz@gnu.org>
15847
15848 * w32.c (globals_of_w32): Add initializations for
15849 g_b_init_get_sid_sub_authority and
15850 g_b_init_get_sid_sub_authority_count.
15851
158522008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15853
15854 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15855 (font_parse_xlfd): Use them for sanity check.
15856 (Finternal_set_font_style_table): Make sure the table is bijective.
15857
15858 Consolidate the image_cache to the terminal struct.
15859 * termhooks.h (P_): Remove redundant def.
15860 (struct terminal): New field `image_cache'.
15861 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15862 of FRAME_X_IMAGE_CACHE.
15863 * xterm.h (struct x_display_info): Remove image_cache field.
15864 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15865 * w32term.h (struct w32_display_info): Remove image_cache field.
15866 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15867 * macterm.h (struct mac_display_info): Remove image_cache field.
15868 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15869 * xterm.c (x_term_init):
15870 * w32term.c (w32_term_init):
15871 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15872 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15873 Remove declarations.
15874 (clear_image_caches, mark_image_cache): New declarations.
15875 * xfaces.c (clear_face_cache):
15876 * xdisp.c (redisplay_internal): Use clear_image_caches.
15877 * image.c (clear_image_cache): Don't check that a frame is on
15878 a window-system before checking if it shares the same cache.
15879 (clear_image_caches): New function.
15880 (Fclear_image_cache): Use it.
15881 (mark_image): Move from allo.c.
15882 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15883 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15884 (mark_object): Don't call mark_image_cache for frames.
15885 (mark_terminals): Call mark_image_cache.
15886
15887 * lisp.h (Fdelete_terminal): Declare.
15888
15889 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15890 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15891 wrong_type_argument.
15892
158932008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15894
15895 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15896 malayalam.el, and tamil.el. Add sinhala.el.
15897
158982008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15899
15900 * xterm.c (x_connection_closed): Consolidate identical tests.
15901 (x_delete_terminal): Don't crash if called via x_connection_closed.
15902
159032008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15904
15905 * xdisp.c (decode_mode_spec): New arg string.
15906 (display_mode_element): Adjust for the above change.
15907
159082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15909
15910 * callint.c (Fcall_interactively): Use AREF.
15911
159122008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15913
15914 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15915
159162008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15917
15918 * xfns.c (Fx_show_tip): Set string to " " if empty.
15919
159202008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15921
15922 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15923 with Qt.
15924
159252008-02-17 Kenichi Handa <handa@m17n.org>
15926
15927 * ftfont.c (ftfont_shape): Return Lispy number.
15928
15929 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15930 for GCs.
15931 (Finternal_set_font_selection_order): Call font_update_sort_order
15932 only when enable_font_backend is set.
15933 (realize_x_face): Set face->font_info to that of default face only
15934 when enable_font_backend is set.
15935
15936 * xdisp.c (handle_composition_prop): Set it->c to the fist
15937 character of the composed region.
15938 (fill_composite_glyph_string): Set base_face->font_info to
15939 s->font_info. Get a face for ascii from base_face->ascii_face.
15940 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15941 with a face already decided.
15942 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15943 non-negative.
15944 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15945 call font_prepare_composition unconditionally.
15946
15947 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15948
15949 * xterm.h (struct x_display_info): New member font.
15950
15951 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15952 (x_set_mouse_face_gc, x_new_font): Likewise.
15953 (x_term_init): Setup display_info->font.
15954 (x_delete_terminal): Free display_info->font.
15955
15956 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15957
15958 * ftxfont.c (ftxfont_default_fid): Delete it.
15959 (ftxfont_open): Set xfont->fid to 0.
15960 (ftxfont_end_for_frame): Clear data specific to the frame and the
15961 font-driver.
15962
15963 * xftfont.c (xftfont_default_fid): Delete it.
15964 (xftfont_open): Set xfont->fid to 0.
15965
15966 * fontset.c (FONTSET_OBJLIST): New macro.
15967 (fontset_find_font): Update font-object list of the fontset.
15968 (free_realized_fontset): New function.
15969 (free_face_fontset): Call free_realized_fontset.
15970 (Ffont_info): Call font_close_object only when enable_font_backend
15971 is set.
15972
15973 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15974 [HAVE_NTGUI]: Include w32term.h.
15975 [MAC_OS]: Include macterm.ch.
15976 (font_otf_ValueRecord): Use make_number.
15977 (font_finish_cache): Fix handling of reference count.
15978 (font_clear_cache): Update num_fonts.
15979 (font_open_entity): Update smallest_char_width and
15980 smallest_font_height of the frame.
15981 (font_close_object): Update num_fonts.
15982 (Fclear_font_cache): Fix finding the target cache data.
15983
159842008-02-16 Glenn Morris <rgm@gnu.org>
15985
15986 * fontset.c (Finternal_char_font): Fix compilation warning.
15987
159882008-02-16 Eli Zaretskii <eliz@gnu.org>
15989
15990 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15991 instead of char arrays. Enlarge the size of array passed to
15992 get_token_information.
15993
15994 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15995 warnings.
15996
159972008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15998
15999 * .gdbinit: Don't set `args', it breaks gdb --args.
16000
160012008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16002
16003 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16004 within a narrowed buffer.
16005
160062008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16007
16008 * coding.c (decode_coding_object, encode_coding_object):
16009 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16010
160112008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16012
16013 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16014 hardcoding 1.
16015 (detect_coding_system):
16016 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16017 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16018 * insdel.c (insert_from_gap):
16019 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16020 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16021 (string_to_multibyte):
16022 * character.c (chars_in_text, multibyte_chars_in_text):
16023 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16024
16025 * character.h (FETCH_STRING_CHAR_ADVANCE)
16026 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16027 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16028 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16029
16030 * casefiddle.c (casify_region): Only call after-change and composition
16031 functions on the part of the region that was changed.
16032
16033 * keyboard.c (read_avail_input):
16034 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16035
160362008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16037
16038 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16039 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16040
160412008-02-11 Juanma Barranquero <lekktu@gmail.com>
16042
16043 * w32menu.c (push_submenu_start, push_submenu_end)
16044 (push_left_right_boundary, push_menu_pane, push_menu_item):
16045 * keyboard.c (read_key_sequence): Don't pass args with side effects
16046 to AREF, it fails when compiling with -DENABLE_CHECKING.
16047
160482008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16049
16050 * Makefile.in (${lispsource}international/charprop.el):
16051 Delete this target.
16052
16053 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16054 emacs-unicode-2.
16055
160562008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16057
16058 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16059
160602008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16061
16062 * frame.c (Qnoelisp): New symbol.
16063 (syms_of_frame): Initialize it.
16064 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16065 harmless Elisp code, from a strong `force' from x_connection_closed.
16066 * frame.h (Qnoelisp): Declare.
16067 * xterm.c (x_connection_closed): Pass `noelisp'.
16068
16069 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16070 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16071 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16072 rather than `int' for the type of `type'.
16073
160742008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16075
16076 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16077
16078 * Makefile.in (GNUC): Remove support for gcc-1.x.
16079
160802008-02-10 Richard Stallman <rms@gnu.org>
16081
16082 * lisp.h (ASET): Use AREF, not ASLOT.
16083
160842008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16085
16086 * lisp.h (ASET): Check bounds.
16087
160882008-02-10 Glenn Morris <rgm@gnu.org>
16089
16090 * buffer.c (mode-name): Doc fix.
16091
160922008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16093
16094 * Makefile.in:
16095 * emacs.c:
16096 * gmalloc.c:
16097 * keyboard.c:
16098 * lisp.h:
16099 * m/ibm370aix.h:
16100 * process.c:
16101 * regex.c:
16102 * s/hpux.h:
16103 * sysdep.c:
16104 * sysselect.h:
16105 * systty.h:
16106 * unexec.c:
16107 * w32term.c:
16108 * xsmfns.c:
16109 * xterm.c: Remove code that deals with obsolete variables.
16110
16111 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16112
16113 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16114 nothing else needs it anymore.
16115
161162008-02-09 Eli Zaretskii <eliz@gnu.org>
16117
16118 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16119 instead of unibyte_char_to_multibyte.
16120
161212008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16122
16123 * s/gnu-linux.h: Remove commented out code.
16124
16125 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16126
16127 * Makefile.in: Update what RMS says about using autoconf.
16128 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16129 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16130 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16131 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16132
161332008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16134
16135 * keymap.c (Fkey_description): Move side effect outside of macro call.
16136
16137 * xfaces.c (Finternal_make_lisp_face):
16138 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16139
16140 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16141 (syms_of_fontset): Use ASET.
16142
16143 * fns.c (concat): Move side effect outside of macro call.
16144 (hash_clear): Use ASET.
16145
161462008-02-08 Richard Stallman <rms@gnu.org>
16147
16148 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16149 If FORCE, and frame has a surrogate minibuffer for another frame,
16150 delete the other frame first.
16151
161522008-02-07 Timo Savola <timo.savola@iki.fi>
16153
16154 * xterm.c (x_detect_focus_change): Handle embed client message.
16155 (handle_one_xevent): Ditto.
16156 (handle_one_xevent): If embedded and we get a button press/release,
16157 request focus.
16158 (xembed_set_info, xembed_send_message): New functions.
16159 (x_make_frame_visible): Call xembed_set_info if embedded.
16160 (x_make_frame_invisible): Call xembed_set_info if embedded.
16161 (x_term_init): Initialize Xatom_XEMBED.
16162 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16163 (x_iconify_frame): Ditto.
16164
16165 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16166 (enum xembed_info, enum xembed_message, enum xembed_focus)
16167 (enum xembed_modifier, enum xembed_accelerator): New.
16168 (xembed_set_info, xembed_send_message): Declare.
16169 (FRAME_X_EMBEDDED_P): New.
16170
16171 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16172 gtk_plug_new.
16173
16174 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16175 window ID of a frame.
16176 (x_window): Reparent frame if embedded.
16177 (Fx_create_frame): Don't set border width if embedded.
16178
16179 * emacs.c (USAGE3): Add --parent-id.
16180 (standard_args): Ditto.
16181
161822008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16183
16184 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16185
161862008-02-07 Jim Meyering <meyering@redhat.com>
16187
16188 Use "do...while (0)", not "if (1)...else" in macro definitions.
16189 The latter provokes a warning from gcc about the empty else, when
16190 followed by ";". Also, without that trailing semicolon, it would
16191 silently swallow up any following statement.
16192 * syntax.h (SETUP_SYNTAX_TABLE)
16193 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16194 * buffer.h (DECODE_POSITION): Likewise.
16195 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16196 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16197 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16198 (FETCH_CHAR_ADVANCE): Likewise.
16199 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16200
162012008-02-07 Jim Meyering <meyering@redhat.com>
16202
16203 * lread.c [lint]: Don't include <sys/inode.h>.
16204
162052008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16206
16207 * xselect.c (x_handle_dnd_message):
16208 * xmenu.c (digest_single_submenu, xmenu_show):
16209 * xdisp.c (with_echo_area_buffer_unwind_data)
16210 (format_mode_line_unwind_data, unwind_format_mode_line)
16211 (display_menu_bar):
16212 * eval.c (Ffetch_bytecode):
16213 * doc.c (store_function_docstring):
16214 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16215 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16216 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16217
162182008-02-07 Kenichi Handa <handa@m17n.org>
16219
16220 * ftxfont.c (ftxfont_open): Don't set
16221 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16222
16223 * ftfont.c (ftfont_open): Fix previous change.
16224
162252008-02-06 Jason Rumney <jasonr@gnu.org>
16226
16227 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16228 Use cached metrics for ASCII characters.
16229 (w32font_open_internal): Don't set font's owning_frame.
16230 Cache metrics for ASCII characters.
16231
16232 * w32font.h (struct w32font_info): Add ascii_metrics.
16233 Remove owning_frame.
16234
162352008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16236
16237 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16238 to negative value.
16239
16240 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16241
16242 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16243
16244 * charset.c (syms_of_charset): Set QCtest and Qeq.
16245
162462008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16247
16248 * process.c (Fstart_process):
16249 * callproc.c (Fcall_process): Handle the case where
16250 Funhandled_file_name_directory returns nil.
16251
16252 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16253 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16254 * font.c (check_gstring): Use them and AREF to access the vector before
16255 we know it's really a gstring.
16256 (Ffont_shape_text): Fix typo.
46e722a9 16257 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16258
16259 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16260 Declare.
16261
16262 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16263
162642008-02-05 Jason Rumney <jasonr@gnu.org>
16265
16266 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16267 Set smallest_font_height and smallest_char_width in display info.
16268
162692008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16270
16271 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16272
162732008-02-05 Miles Bader <miles@gnu.org>
16274
16275 * xfaces.c (get_lface_attributes, merge_named_face)
16276 (lookup_named_face, lookup_derived_face, realize_named_face):
16277 Revert 2008-02-01 change by cyd@stupidchicken.com.
16278
162792008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16280
16281 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16282 fallback fonts.
16283 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16284
162852008-02-04 Jason Rumney <jasonr@gnu.org>
16286
16287 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16288 set full_name.
16289 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16290
162912008-02-03 Jason Rumney <jasonr@gnu.org>
16292
16293 * makefile.w32-in (OBJ1): Include font.o here.
16294 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16295
162962008-02-02 Jason Rumney <jasonr@gnu.org>
16297
16298 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16299
163002008-02-01 Jason Rumney <jasonr@gnu.org>
16301
16302 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16303
16304 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16305
163062008-02-01 Andreas Schwab <schwab@suse.de>
16307
16308 * Makefile.in (shortlisp, lisp): Update for rename of
16309 ../lisp/language/myanmar.el.
16310
163112008-02-01 Chong Yidong <cyd@stupidchicken.com>
16312
16313 * xfaces.c (get_lface_attributes): Delete function.
16314 (merge_named_face, lookup_named_face, lookup_derived_face)
16315 (realize_named_face): Call lface_from_face_name directly, and use
16316 the fact that merge_face_vectors does not alter its FROM argument.
16317
163182008-02-01 Jason Rumney <jasonr@gnu.org>
16319
16320 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16321 input in the default locale. Handle non-Unicode multibyte input.
16322
163232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16324
16325 * fontset.c (reorder_font_vector): Exclude nil elements from the
16326 font group. Don't try multiple fonts.
16327 (fontset_font): Adjust for the above change.
16328 (Finternal_char_font): Return nil if the found font doesn't
16329 contain the character ch.
16330
16331 * Makefile.in (lisp, shortlisp): Add cham.el.
16332
163332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16334
16335 * font.h (FONTP): Make it return 1 also for a font-object.
16336
16337 * .gdbinit (xfontset): New function.
16338
16339 * font.c (font_find_for_lface): Check if the character C is
16340 supported or not only for the first font.
16341
16342 * fontset.c (reorder_font_vector): Fix typo.
16343 (fontset_find_font): Don't add a font-spec specifying a script.
16344 Use 0 (not Qt) for the indication of empty font-group. Change the
16345 format of RFONT-DEF. Return Qt if no font in the font-group
16346 support the character.
16347 (fontset_font): Adjust for the above change. If no font was
16348 found the character, remember that.
16349 (face_for_char): Adjust for the change of RFONT-DEF.
16350 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16351 no font for the target.
16352 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16353
163542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16355
16356 * font.c (font_load_for_face): Handle the case that the font in
16357 face->lface is a string.
16358
163592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16360
16361 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16362
163632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16364
16365 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16366 Fix previous change. If the frame is not on a window system,
16367 signal an error.
16368
163692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16370
16371 * coding.c (decode_coding_object, encode_coding_object): Adjust
16372 marker positions after conversion.
16373
16374 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16375
163762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16377
16378 * font.c (font_find_for_lface): Fix the handling of the return
16379 value of font_has_char.
16380 (Ffont_shape_text): Fix previous change.
16381
16382 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16383 (fontset_ref_and_range): Delete it.
16384 (fontset_find_font): Call char_table_ref_and_range instead of
16385 FONTSET_REF_AND_RANGE.
16386 (make_fontset): Don't setup font groups of Latin here.
16387 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16388 (new_fontset_from_font): Make the specified font the default for
16389 all Latin characters.
16390
163912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16392
16393 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16394 is on a window system before accessing the fontset of the frame.
16395
163962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16397
16398 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16399
16400 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16401 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16402
16403 * font.c (Ffont_shape_text): If the font driver doesn't have a
16404 shaper function, make zero-width glyphs to have at least one-pixel
16405 width. Fix setting of `to' field of glyphs.
16406
164072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16408
16409 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16410 glyphs.
16411
16412 * font.h (struct font_driver): Improve docstring of member `shape'.
16413
164142008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * composite.c (syms_of_composite): Fix docstring of
16417 auto-composition-function.
16418
16419 * font.h (LGLYPH_SIZE): New macro.
16420
16421 * font.c (Ffont_fill_gstring): Stop filling when a character not
16422 supported by the font is found.
16423 (Ffont_shape_text): When a shape callback function returns nil,
16424 try at most two more times with larger gstring.
16425 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16426
16427 * xdisp.c (handle_auto_composed_prop): Change the argument to
16428 auto-composition-function.
16429
16430 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16431 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16432 Lispy glyph and store it in the lgstring.
16433
16434 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16435
16436 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16437
164382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16439
16440 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16441
16442 * fontset.c (Vfont_encoding_charset_alist): New variable.
16443 (syms_of_fontset): DEFVAR it.
16444 (reorder_font_vector, fontset_find_font): Optimize for the case of
16445 no need of reordering.
16446 (face_for_char): Map the charset property by
16447 Vfont_encoding_charset_alist.
16448
164492008-02-01 Jason Rumney <jasonr@gnu.org>
16450
16451 * w32font.c (logfonts_match): Don't check adstyle here.
16452 (font_matches_spec): Check here against physical font instead.
16453 (add_font_entity_to_list): Avoid some substitutions.
16454
16455 * font.c (font_parse_fcname): Default weight and slant to normal.
16456 (font_score): Prefer normal fonts if weight or slant unspecified.
16457 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16458 match freetype scores.
16459
164602008-02-01 Jason Rumney <jasonr@gnu.org>
16461
16462 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16463 font, as it may have been deleted.
16464 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16465 most common hyphenless variation.
16466 (logfonts_match): Check generic family.
16467 (font_matches_spec): Don't check generic family here.
16468 (fill_in_logfont): Set generic family based on adstyle.
16469
16470 * w32font.h (w32font_get_cache): Update declaration.
16471
164722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16473
16474 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16475
16476 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16477 If none of the new drivers are available, call font_update_drivers
16478 with the old drivers.
16479
16480 * w32font.c (w32font_get_cache): Adjust the argument type.
16481
16482 * xfont.c (xfont_get_cache): Adjust the argument type.
16483
16484 * font.h (struct font_driver): Change argument type of get_cache.
16485
16486 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16487
16488 * font.c (Ffont_get): Fix arguments to Fassoc.
16489 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16490 (font_clear_cache): New function.
16491 (font_list_entities, font_matching_entity): Use font_get_cache.
16492 (font_update_drivers): Call font_clear_cache when finishing a driver.
16493
16494 * fontset.c (fontset_find_font): Fix previous change.
16495
164962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16497
16498 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16499 dpyinfo->font_table.
16500 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16501 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16502
16503 * font.c (font_at): Handle the case that the arg C is negative.
16504 Handle the unibyte case.
16505 (Ffont_at): Call font_at with the arg C -1.
16506
16507 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16508 the position here, and call font_at with the arg C -1.
16509 Don't check the range of the existing composition at the point.
16510
165112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16512
16513 * fontset.c (fontset_add): New args charset_id and family.
16514 Change caller.
16515 (load_font_get_repertory, fontset_find_font): Assume that
16516 font_spec is always a font-spec object.
16517 (Fset_fontset_font): Always store a font-spec object in a fontset.
16518
16519 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16520 instead of get_property_and_range.
16521
165222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16523
16524 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16525 (xftfont_open): Don't keep locking face.
16526 (xftfont_close): Don't unlock face.
16527 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16528
16529 * fontset.c (fontset_find_font): Don't prefer a font of
16530 supplementary charset.
16531
165322008-02-01 Kenichi Handa <handa@m17n.org>
16533
16534 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16535 script, langsys_tag to langsys, new member script.
16536 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16537 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16538 listing to the script specified in that property. Fix arg to
16539 OTF_check_features.
16540
165412008-02-01 Jason Rumney <jasonr@gnu.org>
16542
16543 * w32font.h: New file.
16544
16545 * w32font.c: Include it.
16546 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16547 (w32font_open): Set owning_frame.
16548 (w32font_text_extents): Use owning_frame.
16549 (struct font_callback_data): Add opentype_only field.
16550 (add_font_entity_to_list): Use it to filter fonts.
16551 Don't check against full name.
16552 (w32font_list_internal): New function.
16553 (w32font_list): Use it.
16554 (w32font_match_internal): New function.
16555 (w32font_match): Use it.
16556 (w32font_open_internal): New function.
16557 (w32font_open): Use it.
16558 (w32font_get_cache, w32font_close, w32font_has_char)
16559 (w32font_encode_char, w32font_text_extents, w32font_draw):
16560 Make non-static.
16561
16562 * makefile.w32-in (w32font.o): Depend on w32font.h.
16563
165642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16565
16566 * charset.c (Fdefine_charset_internal): Record a supplementary
16567 charset at the tail of Vcharset_order_list.
16568
16569 * font.c (Ffont_shape_text): Fix the return value.
16570
16571 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16572
16573 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16574
165752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16576
16577 * ftfont.c (struct OpenTypeSpec): New struct.
16578 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16579 (ftfont_get_open_type_spec): New function.
16580 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16581
16582 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16583
165842008-02-01 Jason Rumney <jasonr@gnu.org>
16585
16586 * w32font.c (add_font_entity_to_list): Compare only the beginning
16587 of full name.
16588
165892008-02-01 Kenichi Handa <handa@m17n.org>
16590
16591 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16592 Never return HANDLED_RECOMPUTE_PROPS.
16593
165942008-02-01 Kenichi Handa <handa@m17n.org>
16595
16596 * font.c (font_gstring_produce): Delete it.
16597
16598 * composite.h (COMPOSITION_METHOD):
16599 Handle COMPOSITION_WITH_GLYPH_STRING.
16600
166012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16602
16603 * xfont.c (Qx): Delete.
16604 (syms_of_xfont): Don't initialize Qx.
16605
16606 * composite.h (enum composition_method):
16607 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16608
166092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16610
16611 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16612 (choose_face_font): Accept new form of font-spec.
16613
16614 * frame.h (font_driver_list): Declare it unconditionally.
16615 (struct frame): Define members font_driver_list and font_data_list
16616 unconditionally.
16617
16618 * fontset.c: Include "font.h" unconditionally.
16619 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16620 (Fset_fontset_font): Accept a font-spec object.
16621
16622 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16623 PIXEL_SIZE part a wild card.
16624
16625 * dispextern.h (struct glyph_string): Define members clip and
16626 num_clips unconditionally.
16627 (struct face): Define members font_info and extra unconditionally.
16628
16629 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16630 ftfont_info only when HAVE_LIBOTF is defined.
16631
166322008-02-01 Andreas Schwab <schwab@suse.de>
16633
16634 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16635 and end.
16636
166372008-02-01 Jason Rumney <jasonr@gnu.org>
16638
16639 * w32font.c (w32font_driver): Add new fields.
16640
166412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16642
16643 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16644 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16645 (LIBES): Add @M17N_FLT_CFLAGS@.
16646
16647 * composite.c (compose_text): Don't treat the new style
16648 composition specially.
16649
16650 * emacs.c (main): Call syms_of_font unconditionally.
16651
16652 * font.h (FONT_ENTITY_NOT_LOADABLE)
16653 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16654 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16655 (struct font_driver): New member shape.
16656 (font_registry_charsets): Extern it.
16657 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16658 (font_otf_capability, font_drive_otf): Delete their externs.
16659
16660 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16661 (font_charset_alist, font_registry_charsets): Move from xfont.c
16662 and rename.
16663 (font_prop_validate_otf): New function.
16664 (font_property_table): Register it for QCotf.
16665 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16666 (font_drive_otf): Delete.
16667 (font_prepare_composition): New arg F. Adjust for the change of
16668 lispy gstring.
16669 (font_find_for_lface): New arg C.
16670 (font_load_for_face): Adjust for the change of font_find_for_lface.
16671 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16672 lispy gstring.
16673 (Ffont_shape_text): New function.
16674 (Fopen_font): If the font size is not given, use 12-pixel.
16675 (Ffont_at): New arg STRING.
16676 (syms_of_font): Initalize font_charset_alist.
16677 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16678 conditionally.
16679
16680 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16681 fonts of the same font-spec. Change the format of RFONT-DEF.
16682 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16683 Adjust for the change of RFONT-DEF.
16684 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16685
16686 * ftfont.h: New file.
16687
16688 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16689 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16690 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16691 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16692 font_otf_capability and font_drive_otf, set ftfont_shape.
16693 (ftfont_list): Adjust for the change of :otf property value.
16694 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16695 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16696 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16697 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16698 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16699 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16700
16701 * w32term.c (x_draw_composite_glyph_string_foreground):
16702 Adjust for the change of lispy gstring.
16703
16704 * xdisp.c (handle_composition_prop): Adjust for the change of
16705 lispy gstring. Call a function for auto-composition with the
16706 third arg it->window.
16707 (fill_composite_glyph_string): Adjust for the change of lispy string.
16708 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16709
16710 * xfaces.c (set_font_frame_param): Adjust for the change of
16711 font_find_for_lface.
16712
16713 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16714 (xfont_registry_charsets): Likewise. Change caller.
16715 (syms_of_xfont): Don't handle x_font_charset_alist.
16716
16717 * xftfont.c: Include "ftfont.h".
16718 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16719 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16720 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16721 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16722 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16723 Set xftfont_driver.shape to xftfont_shape.
16724
16725 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16726 the change of lispy gstring.
16727
167282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16729
16730 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16731
167322008-02-01 Jason Rumney <jasonr@gnu.org>
16733
16734 * w32font.c (w32font_draw): Fill background manually.
16735
167362008-02-01 Jason Rumney <jasonr@gnu.org>
16737
16738 * font.c (Qfontp): Remove unused symbol.
16739 (QCantialias): New symbol.
16740 (syms_of_font): Define it.
16741 (font_property_table): Set a validator for QCantialias.
16742
16743 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16744 Define if not already.
16745 (QCfamily): Share with xfaces.c.
16746 (Qstandard, Qsubpixel, Qnatural): New symbols.
16747 (syms_of_w32font): Define them. Don't define QCfamily here.
16748 (w32_antialias_type, lispy_antialias_type): New functions.
16749 (w32_enumfont_pattern_entity): New arg requested_font.
16750 Set antialias parameter if non-default was requested.
16751 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16752
167532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16754
16755 * lread.c (read1): Undo the previous change.
16756
167572008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16758
16759 * frame.c (Fdelete_frame): Call font_update_drivers only when
16760 USE_FONT_BACKEND is defined.
16761
167622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16763
16764 * font.h (struct font_bitmap): New member bits_per_pixel.
16765 (struct font_driver): New members start_for_frame and end_for_frame.
16766 (struct font_data_list): New struct.
16767 (font_put_frame_data, font_get_frame_data): Extern them.
16768
16769 * frame.h (struct frame): New member font_data_list.
16770
16771 * font.c (font_update_drivers): Call driver->start_for_frame and
16772 driver->end_for_frame at proper timings.
16773 (font_put_frame_data, font_get_frame_data): New functions.
16774 (Ffont_spec): Add usage in the docstring.
16775
16776 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16777 (Fdelete_frame): Call font_update_drivers.
16778
16779 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16780 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16781 (xftfont_get_xft_draw): New function.
16782 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16783 (xftfont_end_for_frame): New function.
16784 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16785
16786 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16787 Change argument. Cache GCs in the per-frame data.
16788 (struct ftxfont_frame_data): New struct.
16789 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16790 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16791 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16792 (ftxfont_end_for_frame): New function.
16793 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16794
16795 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16796
167972008-02-01 Kenichi Handa <handa@m17n.org>
16798
16799 * xselect.c (Vselection_coding_system)
16800 (Vnext_selection_coding_system): Delete them.
16801 (syms_of_xselect): Don't declare selection-coding-system and
16802 next-selection-coding-system. They are declared in select.el.
16803
168042008-02-01 Jason Rumney <jasonr@gnu.org>
16805
16806 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16807
16808 * w32fns.c: Include imm.h.
16809 (get_composition_string_fn, get_ime_context_fn): New optional
16810 system functions.
16811 (globals_of_w32fns): Load them from imm32.dll.
16812 (ignore_ime_char): New flag.
16813 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16814 WM_IME_ENDCOMPOSITION messages.
16815
16816 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16817 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16818
168192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16820
16821 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16822 (READCHAR_REPORT_MULTIBYTE): New macro.
16823 (readchar): New 2nd arg MULTIBYTE.
16824 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16825 Make symbol's name multibyte according to the multibyteness of the
16826 source.
16827
168282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16829
16830 * xfaces.c (face_for_overlay_string): Call lookup_face with
16831 correct arguments (fix of synching with the trunk).
16832
168332008-02-01 Kenichi Handa <handa@m17n.org>
16834
16835 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16836 (font_prop_validate_non_neg, font_prop_validate_spacing):
16837 Delete argument prop_index.
16838 (font_property_table): Change arguments to validater. Change Callers.
16839 (font_lispy_object): Delete.
16840 (font_at): Use font_find_object instead fo font_lispy_object.
16841
168422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16843
16844 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16845 and file names.
16846
168472008-02-01 Jason Rumney <jasonr@gnu.org>
16848
16849 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16850 (font_matches_spec): Remove debug output.
16851 (add_font_entity_to_list): Avoid using substituted fonts.
16852
168532008-02-01 Jason Rumney <jasonr@gnu.org>
16854
16855 * doc.c (Fsnarf_documentation):
16856 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16857
168582008-02-01 Miles Bader <miles@gnu.org>
16859
16860 * dispextern.h (struct glyph_row): Only define "clip" field if
16861 HAVE_WINDOW_SYSTEM is defined.
16862
168632008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16864
16865 Fix up multi-tty merge.
16866
16867 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16868 and indentation.
16869
16870 * xfaces.c (free_realized_face, clear_face_gcs):
16871 Include font_done_for_face in the input_blocked section, just in case.
16872
16873 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16874 (get_char_face_and_encoding): Undo last change and remove the *other*
16875 duplicate definition (i.e. keep the one that's better scoped and that
16876 includes code for the font-backend).
16877
16878 * terminal.c (create_terminal): Default keyboard_coding to
16879 `no-conversion' and terminal_coding to `undecided'.
16880
16881 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16882
16883 * fontset.c (free_realized_fontsets): Check that the table entry does
16884 contain a fontset before trying to compare it to `base'.
16885
16886 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16887 syms_of_charset, and syms_of_coding earlier because init_window_once
16888 now needs Vcoding_system_hash_table to be setup.
16889
16890 * coding.h (default_buffer_file_coding): Remove.
16891
16892 * coding.c (default_buffer_file_coding): Remove.
16893 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16894 than ->symbol, and use the terminal-local coding system.
16895 (syms_of_coding): Don't setup the coding-systems that are not
16896 terminal-local.
16897 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16898
16899 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16900 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16901
16902 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16903 in chartab.c and were re-added here by mistake.
16904 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16905
16906 * doc.c (Fsnarf_documentation):
16907 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16908 src to etc.
16909
16910 * ChangeLog.10: Add mistakenly removed entry.
16911
169122008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16913
16914 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16915
169162008-02-01 Miles Bader <miles@gnu.org>
16917
16918 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16919 Add extra args to FACE_FOR_CHAR.
16920
169212008-02-01 Kenichi Handa <handa@m17n.org>
16922
16923 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16924 in sequence.
16925
16926 * chartab.c (map_sub_char_table, map_char_table): If the range
16927 contains just one character, call the function with that character
16928 even if the depth is not 3.
16929
169302008-02-01 Jason Rumney <jasonr@gnu.org>
16931
16932 * w32font.c (w32font_text_extents): Calculate metrics for the
16933 whole string.
16934
169352008-02-01 Jason Rumney <jasonr@gnu.org>
16936
16937 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16938
169392008-02-01 Jason Rumney <jasonr@gnu.org>
16940
16941 * w32term.c (x_set_glyph_string_clipping): Use
16942 get_glyph_string_clip_rects.
16943 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16944 Adjust for the change of struct glyph_string.
16945
16946 * w32font.c (w32font_draw): Do clipping here.
16947
169482008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * xftfont.c (xftfont_draw): Adjust for the change of struct
16951 glyph_string.
16952
16953 * xterm.c (x_set_glyph_string_clipping): Use
16954 get_glyph_string_clip_rects.
16955 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16956 Adjust for the change of struct glyph_string.
16957
16958 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16959 the resulting clip(s}.
16960 (expose_overlaps): Add arg r. Change callers. Set it to
16961 row->clip temporarily.
16962 (expose_window): Redraw rows overlapping the exposed area.
16963
16964 * dispextern.h (struct glyph_row): New member clip.
16965 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16966 clip_height, new member clip, and num_clips.
16967
169682008-02-01 Kenichi Handa <handa@m17n.org>
16969
16970 * data.c (Fchar_or_string_p): Fix docstring.
16971
169722008-02-01 Kenichi Handa <handa@m17n.org>
16973
16974 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16975 create a temporary XftDraw object.
16976
169772008-02-01 Kenichi Handa <handa@m17n.org>
16978
16979 * font.c (Ffontp): Fix docstring.
16980
16981 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16982 strong evidence of ISO-2022.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16987 SYNTAX_ENTRY_FOLLOW_PARENT.
16988
169892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16990
16991 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16992 its type.
16993 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16994 Update to the new type of weak_hash_tables and next_weak.
16995
16996 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16997 a plain C pointer to Lisp_Hash_Table.
16998
16999 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17000 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17001 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17002 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17003 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17004 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17005 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17006 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17007 (GC_EQ): Remove since they've been identical to their non-GC_
17008 alter-egos ever since the markbit was eradicated.
17009
17010 * alloc.c:
17011 * buffer.c:
17012 * buffer.h:
17013 * data.c:
17014 * fileio.c:
17015 * filelock.c:
17016 * fns.c:
17017 * frame.h:
17018 * lisp.h:
17019 * macterm.c:
17020 * print.c:
17021 * process.c:
17022 * w32fns.c:
17023 * w32menu.c:
17024 * w32term.c:
17025 * xfns.c:
17026 * xmenu.c:
17027 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17028
170292008-02-01 Kenichi Handa <handa@m17n.org>
17030
17031 * chartab.c (map_sub_char_table): Make it work for the top-level
17032 char-table. Fix handling of parent char-table.
17033 (map_char_table): Adjust for the above change.
17034
170352008-02-01 Jason Rumney <jasonr@gnu.org>
17036
17037 * w32font.c (Qgdi): Rename from Qw32.
17038
170392008-02-01 Jason Rumney <jasonr@gnu.org>
17040
17041 * w32bdf.c (get_quoted_string): Make function static.
17042
170432008-02-01 Kenichi Handa <handa@m17n.org>
17044
17045 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17046 bigger ascent and descent than those of the font, use them as
17047 font's ascent and descent.
17048
170492008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * Makefile.in (${lispsource}international/charprop.el): Move this
17052 target within "#ifdef HAVE_UNIDATA" and "#endif".
17053
170542008-02-01 Kenichi Handa <handa@m17n.org>
17055
17056 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17057 (shortlisp): Add ../lisp/language/tai-viet.el.
17058
170592008-02-01 Ulrich Mueller <ulm@gentoo.org>
17060
17061 * Makefile.in (${lispsource}international/charprop.el): Depend on
17062 temacs${EXEEXT}.
17063
170642008-02-01 Jason Rumney <jasonr@gnu.org>
17065
17066 * w32font.c (w32font_close): Delete the GDI font object.
17067
17068 * w32menu.c: Include character.h.
17069
17070 * w32proc.c: Likewise.
17071
17072 * w32select.c: Likewise.
17073
17074 * makefile.w32-in (w32proc.o): Depend on character.h.
17075
170762008-02-01 Jason Rumney <jasonr@gnu.org>
17077
17078 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17079
17080 * w32menu.c (syms_of_w32menu): Likewise.
17081
17082 * w32proc.c (syms_of_ntproc): Likewise.
17083
17084 * w32select.c (syms_of_w32select): Likewise.
17085
17086 * w32term.c (syms_of_w32term): Likewise.
17087
170882008-02-01 Jason Rumney <jasonr@gnu.org>
17089
17090 * w32font.c (w32font_draw): Delete brush after using it.
17091
170922008-02-01 Jason Rumney <jasonr@gnu.org>
17093
17094 * w32font.c (w32font_open): Don't set font_idx.
17095 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17096 to font settings.
17097 (w32font_draw): Fill background explicitly.
17098
170992008-02-01 Jason Rumney <jasonr@gnu.org>
17100
17101 * w32term.c (w32_initialize): Don't call w32font_initialize.
17102
17103 * w32font.c (w32font_info): Remove subranges.
17104 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17105 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17106 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17107 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17108 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17109 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17110 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17111 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17112 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17113 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17114 New symbols.
17115 (font_callback_data): New struct.
17116 (w32font_list, w32font_match): Use it.
17117 (w32font_open): Don't populate subranges.
17118 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17119 (w32font_encode_char): Always return unicode code-point as-is.
17120 (w32font_text_extents): Supply a transformation matrix to
17121 GetGlyphOutline. Never look up by glyph index. Avoid looping
17122 twice. Use unicode version of GetTexExtentPoint32 instead of
17123 glyph index version.
17124 (set_fonts_frame): Remove.
17125 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17126 set frame parameter. Use backward compatible fake foundries.
17127 Save generic family in extra slot under QCfamily. Make width slot
17128 constant. Save QCspacing value. Save list of scripts instead of
17129 binary subranges.
17130 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17131 (add_font_entity_to_list): Use font_callback_data struct. Filter
17132 unwanted fonts.
17133 (add_one_font_entity_to_list): Use font_callback_data struct.
17134 (w32_registry): Default to iso10646_1.
17135 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17136 string font registries. Don't fill in font name if it is a generic
17137 family name, fill family instead. Use spacing, family and script
17138 extra info to fill pitch, family and charset fields.
17139 (list_all_matching_fonts): Use font_callback_data struct.
17140 (unicode_range_for_char): Remove.
17141 (font_supported_scripts): New function.
17142 (w32font_initialize): Remove.
17143 (syms_of_w32font): Update which symbols are defined.
17144
171452008-02-01 Jason Rumney <jasonr@gnu.org>
17146
17147 * font.c (font_pixel_size): Reverse assq_no_quit args.
17148
17149 * w32term.h (FONT_WIDTH): Report max width, not average.
17150 (FONT_MAX_WIDTH): Remove.
17151 (FONT_AVG_WIDTH): New macro.
17152
17153 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17154 redefinition of FONT_WIDTH.
17155
17156 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17157 (w32_cache_char_metrics): Use FONT_WIDTH.
17158
17159 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17160
171612008-02-01 Jason Rumney <jasonr@gnu.org>
17162
17163 * w32font.c (w32font_open): Make lfHeight negative.
17164
17165 * w32fns.c (x_default_font_parameter): Use new style font name.
17166 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17167
171682008-02-01 Jason Rumney <jasonr@gnu.org>
17169
17170 * w32font.c (QCsubranges): New symbol.
17171 (w32font_open, w32font_has_char): Get subranges from subproperty
17172 of extra.
17173 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17174 (syms_of_w32font): Define :subranges symbol.
17175
17176 * font.c (font_put_extra): Expose externally.
17177
17178 * font.h (font_put_extra): Move declaration from font.c.
17179
17180 * font.c (Ffont_get): Use font driver to determine otf capability.
17181 (adjust_anchor): Check if driver defines anchor_point before using.
17182
17183 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17184 (w32font_draw): Use options.
17185 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17186 Fix detection of truetype fonts.
17187 (registry_to_w32_charset): Handle charsets other than iso8859-1
17188 expressed as lisp symbols.
17189 (w32_registry): Express charset as lisp symbol.
17190 (fill_in_logfont): Reverse pixel and point height logic.
17191 Don't set width here. Set quality to default.
17192
17193 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17194 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17195
17196 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17197 Remove redundant loop and allocation.
17198
17199 * makefile.w32-in (font.o, w32font.o): New objects.
17200 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17201 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17202
17203 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17204 STORE_XCHARB a valid l-value.
17205
17206 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17207 calculations for non-Truetype fonts.
17208 (x_draw_glyph_string): Sync with xterm.c.
17209 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17210 Remove redundant code.
17211 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17212
17213 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17214 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17215
17216 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17217 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17218
17219 * w32font.c: New file for w32 font backend.
17220
172212008-02-01 Kenichi Handa <handa@m17n.org>
17222
17223 * term.c: Don't include "buffer.h" twice.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * character.c (Funibyte_string): New function.
17228 (syms_of_character): Defsubr it.
17229
172302008-02-01 Jason Rumney <jasonr@gnu.org>
17231
17232 * w32term.c [USE_FONT_BACKEND]:
17233 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17234 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17235 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17236 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17237 (x_free_frame_resources): Sync with xterm.c.
17238
172392008-02-01 Andreas Schwab <schwab@suse.de>
17240
17241 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17242 char-table size.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17247
172482008-02-01 Kenichi Handa <handa@m17n.org>
17249
17250 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17251 font_otf_gpos, add font_drive_otf.
17252
17253 * fontset.c (fontset_find_font): Pay attention to font size
17254 specified for a font.
17255 (reorder_font_vector): Check contents of font_def.
17256
17257 * font.c (struct otf_list): Delete it.
17258 (otf_list): Make it a lisp variable.
17259 (otf_open): Use lispy otf_list.
17260 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17261 (check_otf_features): New function.
17262 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17263 New functions.
17264 (font_drive_otf): New function merging font_otf_gsub and
17265 font_otf_gpos.
17266 (font_open_for_lface): New arg spec. Change argument order.
17267 (font_load_for_face): Adjust for the change of font_open_for_lface.
17268 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17269 Ffont_otf_gpos.
17270 (syms_of_font): Staticpro otf_list. Delete defsubr of
17271 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17272
17273 * xfaces.c (set_font_frame_param): Adjust for the change of
17274 font_open_for_lface.
17275
17276 * font.h (font_open_for_lface): Adjust prototype.
17277 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17278 member otf_drive.
17279 (font_otf_gsub, font_otf_gpos): Delete externs.
17280 (font_drive_otf): Extern it.
17281
172822008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * font.c (font_at): If the window W is not on a window system,
17285 return Qnil.
17286
17287 * coding.c (produce_chars, encode_coding): Don't call
17288 insert_from_gap if no characters to produce.
17289
172902008-02-01 Kenichi Handa <handa@m17n.org>
17291
17292 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17293 Fclear_face_cache.
17294
17295 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17296
172972008-02-01 Miles Bader <miles@gnu.org>
17298
17299 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17300 Parse "--disable-font-backend" option.
17301 (standard_args): Add "--disable-font-backend" option.
17302
173032008-02-01 Kenichi Handa <handa@m17n.org>
17304
17305 * fontset.c (fontset_find_font): New function.
17306 (fontset_font): Use fontset_find_font.
17307 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17308 Register the specified font for all Latin characters.
17309 (new_fontset_from_font): Register the specified font for all Latin
17310 characters.
17311 (dump_fontset): For a realized fontset, include the base fontset
17312 name in the returned vector.
17313
173142008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * character.h (CHAR_STRING): Cast C to unsigned on calling
17317 char_string.
17318
17319 * character.c (char_string): Type of arg C changed to unsigned.
17320 Signal an error if C is an invalid character code.
17321
17322 * editfns.c (general_insert_function, Fchar_to_string):
17323 Use CHARACTERP, not INTEGERP.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17328 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17329
17330 * regex.c (analyse_first): Fix for multibyte characters in "case
17331 charset:" and "case categoryspec:".
17332
173332008-02-01 Andreas Schwab <schwab@suse.de>
17334
17335 * Makefile.in (LIBES): Move standard libraries to the end.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17340 nonzero, don't shrink the buffer nextb.
17341
17342 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17343
17344 * coding.c (coding_alloc_by_making_gap): New arg offset.
17345 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17346 offset.
17347 (decode_coding_iso_2022): Update coding->safe_charsets.
17348 (decode_coding_gap): Temporarily set
17349 current_buffer->text->inhibit_shrinking to 1.
17350
173512008-02-01 Kenichi Handa <handa@m17n.org>
17352
17353 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17354 indexing into elements of s->cmp and s->char2b.
17355
173562008-02-01 Juanma Barranquero <lekktu@gmail.com>
17357
17358 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17359
173602008-02-01 Kenichi Handa <handa@m17n.org>
17361
17362 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17363 target_multibyte instead of multibyte.
17364 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17365 (bcmp_translate): Change the argument name from multibyte to
17366 target_multibyte.
17367
173682008-02-01 Kenichi Handa <handa@m17n.org>
17369
17370 These changes are to compile a regexp into a pattern that can be
17371 used both for multibyte and unibyte targets.
17372
17373 * Makefile.in (search.o): Depend on charset.h.
17374
17375 * character.c (multibyte_char_to_unibyte_safe): New function.
17376
17377 * search.c: Include "charset.h".
17378 (compile_pattern_1): Delete argument multibyte. Don't set
17379 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17380 (compile_pattern): Don't compare cp->buf.target_multibyte.
17381 Compare cp->buf.charset_unibyte.
17382 (compile_pattern): Set cp->buf.target_multibyte.
17383
17384 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17385
17386 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17387
17388 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17389 multibyte. Change callers.
17390 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17391 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17392 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17393 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17394 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17395 (regex_compile): Make the compiled pattern usable both for
17396 multibyte and unibyte targets.
17397 (analyse_first): Make the fastmap usable both for multibyte and
17398 unibyte targets.
17399 (TRANSLATE_VIA_MULTIBYTE): Delete.
17400 (re_match_2_internal): Pay attention to the case that the
17401 multibyteness of bufp and target may be different.
17402
174032008-02-01 Kenichi Handa <handa@m17n.org>
17404
17405 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17406 empty box occupy at least one column width.
17407
174082008-02-01 Miles Bader <miles@gnu.org>
17409
17410 * Makefile.in: Remove redundant HAVE_XFT clause.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17415
174162008-02-01 Kenichi Handa <handa@m17n.org>
17417
17418 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17419 being nil.
17420
174212008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * search.c (simple_search): Fix previous change.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * xftfont.c (ftfont_font_format): Extern declaration.
17436
17437 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17438
17439 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17440 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17441
17442 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17443 (ftfont_font_format): Fix previous change.
17444
17445 * font.h (Ffont_xlfd_name): EXFUN it.
17446
17447 * font.c (font_parse_xlfd): Fix the array size of `f'.
17448 (register_font_driver): Use EQ to compare driver->type.
17449
17450 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17451 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17452 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17453
174542008-02-01 Kenichi Handa <handa@m17n.org>
17455
17456 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17457 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17458
174592008-02-01 Kenichi Handa <handa@m17n.org>
17460
17461 * xfont.c (xfont_open): Set font->format.
17462
17463 * xftfont.c (xftfont_open): Set font->format.
17464
17465 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17466 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17467 (ftfont_open): Set font->format.
17468 (ftfont_font_format): New function.
17469
17470 * font.h (struct font): New member format.
17471
17472 * font.c (Qopentype): New variable.
17473 (syms_of_font): Defsym it.
17474 (Fquery_font): Change the format of the last element of the return
17475 value.
17476
174772008-02-01 Kenichi Handa <handa@m17n.org>
17478
17479 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17480 last resort.
17481
174822008-02-01 Kenichi Handa <handa@m17n.org>
17483
17484 * coding.c (detect_coding_charset): Fix detection of multi-byte
17485 charset.
17486
174872008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17488
17489 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * xdisp.c (get_next_display_element): Set it->face_id for the
17494 first component of a composition.
17495 (x_produce_glyphs): Check if the font is changed or not for composition.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * fontset.c (Qlatin): New variable.
17500 (syms_of_fontset): Define it as a lisp symbol.
17501 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17502
175032008-02-01 Kenichi Handa <handa@m17n.org>
17504
17505 * font.c (font_unparse_fcname): Pay attention to the case that
17506 some of font property is a null string.
17507
175082008-02-01 Kenichi Handa <handa@m17n.org>
17509
17510 * term.c: Include "composite.h".
17511 (encode_terminal_code): Output all components of composition.
17512 Check the size of encode_terminal_src.
17513 (produce_glyphs): For composition, call produce_composite_glyph.
17514 (append_composite_glyph, produce_composite_glyph): New functions.
17515
17516 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17517 is not found, get font_info from the current ascii face.
17518
175192008-02-01 Kenichi Handa <handa@m17n.org>
17520
17521 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17522 buffer-file-name to Qnil before calling insert_from_buffer.
17523
17524 * font.c (font_unparse_fcname): Pay attention to the case that
17525 foundry is a null string.
17526
175272008-02-01 Kenichi Handa <handa@m17n.org>
17528
17529 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17530
17531 * font.c (Qunicode_sip): New variable.
17532 (syms_of_font): Declare it as a Lisp symbol.
17533
17534 * font.h (Qunicode_sip): Extern it.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * composite.c (get_composition_id): Pay attention to TAB component.
17539
17540 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17541 TAB. Adjust for the change of s->char2b which always points to
17542 the first element of allocated memory.
17543
17544 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17545
17546 * xdisp.c (handle_composition_prop): Set it->c to the first
17547 non-TAB component.
17548 (fill_composite_glyph_string): Change argument.
17549 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17550 (x_produce_glyphs): Fix handling of left/right padding.
17551
175522008-02-01 Kenichi Handa <handa@m17n.org>
17553
17554 * coding.c (detect_coding_system): Fix for handling off
17555 inhibit_iso_escape_detection. Fix for the case that no coding
17556 system is defined for a specific coding category.
17557
175582008-02-01 Kenichi Handa <handa@m17n.org>
17559
17560 * font.c (font_matching_entity): Delete unused local var.
17561
17562 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17563 opening a font.
17564
17565 * fileio.c (Finsert_file_contents): On recovering a file, assume
17566 Unix-like eol.
17567 (choose_write_coding_system): On auto-saving a file, force
17568 Unix-like eol.
17569
17570 * coding.c (setup_coding_system): Fix setting of
17571 coding->common_flags based on eol_type.
17572 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17573 inherit from it.
17574
175752008-02-01 Kenichi Handa <handa@m17n.org>
17576
17577 * alloc.c (NSTATICS): Increas to 0x600.
17578
175792008-02-01 Kenichi Handa <handa@m17n.org>
17580
17581 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17582 (ftfont_list): Don't check :name property.
17583 (ftfont_match): New function.
17584 (ftfont_pattern_entity): If the pattern doesn't contain
17585 FC_SPACING, don't assume FC_MONO.
17586
17587 * font.h (struct font_driver): New member `match'.
17588 (font_update_drivers): Adjust prototype.
17589
17590 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17591 property of FONT.
17592 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17593 them unconditionally.
17594 (font_matching_entity): New function.
17595 (font_open_by_name): Try font_matching_entity if exact match is
17596 not found.
17597 (font_update_drivers): Delete the arg FONT. Return a list of
17598 actually used backends. Don't free faces, font caches here.
17599 Don't store data in frame parameters. Don't call x_set_font.
17600 (Ffont_spec): Store :name property as is.
17601 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17602 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17603 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17604 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17605 Call font->driver->otf_gsub instead of font_otf_gsub.
17606
17607 * frame.c (x_set_font_backend): Do more works that were done in
17608 font_update_drivers before.
17609
17610 * xfont.c (xfont_match): New function.
17611 (xfont_driver): Set xfont_driver.match to xfont_match.
17612 (xfont_draw): Set font in GC if necessary.
17613
17614 * ftxfont.c (ftxfont_match): New function.
17615 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17616
17617 * xftfont.c (xftfont_match): New function.
17618 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * font.h (struct font): New member scalable.
17623 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17624 (font_otf_gsub): Adjust prototype.
17625
17626 * font.c (font_otf_capability): Fix handling of the default langsys.
17627 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17628 Check the contents of SPEC.
17629 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17630 (check_gstring): New function.
17631 (REPLACEMENT_CHARACTER): New macro.
17632 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17633 glyph codes of GSTRING.
17634 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17635 (font_prepare_composition): Set cmp->glyph_len.
17636 (font_open_entity): Set font->scalable.
17637 (Ffont_get): Handle :otf property.
17638 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17639 functions.
17640 (Fquery_font): Use font->font.full_name.
17641 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17642 Sfont_otf_alternates.
17643
17644 * ftfont.c (ftfont_open): Set font->font.full_name and
17645 font->font.name properly. Fix calculation of font->font.height
17646 and font->min_width.
17647
17648 * ftxfont.c (ftxfont_create_gcs): New function.
17649 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17650 (ftxfont_draw_backgrond): Fix filling region.
17651 (ftxfont_default_fid): New function.
17652 (ftxfont_open): Set xfont->fid to the return value of
17653 ftxfont_default_fid.
17654 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17655 (ftxfont_done_face): Free only GCs that are created by
17656 ftxfont_create_gcs.
17657 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17658
17659 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17660 Clip to src->width, etc (not src->clip_XXX).
17661
17662 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17663 FontBackend frame parameter.
17664
176652008-02-01 Kenichi Handa <handa@m17n.org>
17666
17667 * font.h (struct font_driver_list): New member `on'.
17668 (Fclear_font_cache): EXFUN it.
17669 (font_update_drivers): Extern it.
17670
17671 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17672 (font_list_entities): Check driver_list->on.
17673 (register_font_driver): Initalize `on' member to 0.
17674 (font_update_drivers): New function.
17675 (Fclear_font_cache): Check driver_list->on.
17676
17677 * frame.h (Qfont_backend): Extern it.
17678 (x_set_font_backend): Extern it.
17679
17680 * frame.c (Qfont_backend): New variable.
17681 (frame_parms): New element for font-backend.
17682 (x_set_font_backend): New function.
17683
17684 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17685 FontBackend frame parameter.
17686 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17687 x_set_font_backend.
17688
17689 * xfont.c (xfont_list): Don't try listing by :name property if the
17690 name is not for XLFD.
17691
176922008-02-01 Kenichi Handa <handa@m17n.org>
17693
17694 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17695 (LGLYPH_SET_TO): New macros.
17696 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17697 element of G is vector or not.
17698 (font_at): Extern it.
17699
17700 * font.c: Include window.h.
17701 (font_lispy_object): New function.
17702 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17703 end of valid glyph.
17704 (font_close_object): Fix getting (struct font *).
17705 (font_at): New function.
17706 (Ffont_get): If FONT is a font-object, get entity from it.
17707 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17708 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17709 range check.
17710 (Ffont_at): New function.
17711 (syms_of_font): Defsubr Sfont_at.
17712
17713 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17714 before the entry for Qcomposition.
17715 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17716 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17717 the font in gstring.
17718 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17719 LGLYPH_FORM (g) to detect the end of valid glyph.
17720 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17721 we are composing with gstring.
17722
17723 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17724 Check if adjustment is vector or not.
17725
17726 * Makefile.in (font.o): Make it depends on window.h.
17727
177282008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17731 adjustment is vector or not.
17732
177332008-02-01 Miles Bader <miles@gnu.org>
17734
17735 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17736
177372008-02-01 Kenichi Handa <handa@m17n.org>
17738
17739 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17740 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17741 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17742
17743 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17744 (DEVICE_DELTA): Fix typo.
17745 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17746 LGLYPH format.
17747
17748 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17749 the change of LGLYPH format.
17750
177512008-02-01 Kenichi Handa <handa@m17n.org>
17752
17753 * ftfont.c (ftfont_list): Fix typo.
17754 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17755
177562008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17757
17758 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17759
17760 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17761 xftface_info is non-NULL.
17762
177632008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17764
17765 * ftfont.c (ftfont_list): Move misplaced #endif.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * ftfont.c (ftfont_list): Pay attention to the case that
17770 FC_CAPABILITY is not defined.
17771
177722008-02-01 Kenichi Handa <handa@m17n.org>
17773
17774 * xftfont.c (xftfont_open): Set charset related members to -1.
17775
17776 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17777 QCname.
17778 (ftfont_open): Set charset related members to -1.
17779
17780 * fontset.c (Votf_script_alist): New variable.
17781 (syms_of_fontset): Initialize it.
17782 (fontset_font): Delete unused variable.
17783
17784 * fontset.h (Votf_script_alist): Extern it.
17785
17786 * font.c (font_find_for_lface): Optimize code.
17787
17788 * font.h (font_close_object, font_merge_old_spec): Extern them.
17789
177902008-02-01 Kenichi Handa <handa@m17n.org>
17791
17792 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17793 (syms_of_font): Initialize them.
17794 (font_pixel_size): Allow float value in dpi.
17795 (font_prop_validate_type): Delete.
17796 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17797 Change caller.
17798 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17799 (font_prop_validate_extra): Delete.
17800 (font_prop_validate_spacing): New function.
17801 (font_property_table): Add elements for all known properties.
17802 (get_font_prop_index): Rename from check_font_prop_name. New
17803 argument FROM. Change caller.
17804 (font_prop_validate): Validate all known properties.
17805 (font_put_extra): Delete argument force. Change caller.
17806 (font_expand_wildcards): Make it static. Fix the way of shrinking
17807 the possible range.
17808 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17809 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17810 Change caller.
17811 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17812 (font_parse_fcname): Delete argument merge. Fix parsing of point
17813 size. Don't validate properties values here. Change caller.
17814 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17815 (font_open_by_name): Delete unused variable.
17816 (Ffont_spec): Likewise. Validate property values.
17817 (Ffont_match_p): New function.
17818
17819 * font.h (QCscalable): Extern it.
17820 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17821
17822 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17823
17824 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17825 (xfont_list_pattern): New function.
17826 (xfont_list): Use xfont_list_pattern.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * font.h (Flist_fonts): EXFUN it.
17831
178322008-02-01 Jason Rumney <jasonr@gnu.org>
17833
17834 * w32term.c (w32_initialize): Add back smoothing_type and
17835 smoothing_enabled definitions.
17836
178372008-02-01 Kenichi Handa <handa@m17n.org>
17838
17839 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17840 s->face->font on determining underline position.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17845 (font_has_char): Accept font-object too.
17846 (font_find_for_lface): Try at first with a size specified in face.
17847
178482008-02-01 Kenichi Handa <handa@m17n.org>
17849
17850 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17851 font_open_by_name.
17852
178532008-02-01 Kenichi Handa <handa@m17n.org>
17854
17855 * font.h (QCspacing, QCdpi): Extern them.
17856 (enum font_spacing): New enum.
17857 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17858
17859 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17860 (QCspacing, QCdpi): New variables.
17861 (syms_of_font): Initialize them.
17862 (font_pixel_size): New function.
17863 (font_put_extra): New function.
17864 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17865 in FONT_EXTRA.
17866 (font_parse_fcname): Handle enumerated values (e.g. bold).
17867 Fix handling font size. Add QCname property that contains only
17868 unknown properties.
17869 (font_score): Change argument. Change caller. Pay attention to
17870 FONT_PIXEL_SIZE_QUANTUM.
17871 (font_sort_entites, font_list_entities, font_find_for_lface)
17872 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17873 (Ffont_spec): Add QCname property that contains only unknown properties.
17874
17875 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17876 include weight in listing pattern, instead check weight of each
17877 listed font. Don't include scalable in pattern. Pay attention to
17878 FONT_PIXEL_SIZE_QUANTUM.
17879
178802008-02-01 Kenichi Handa <handa@m17n.org>
17881
17882 * font.c (font_parse_fcname): Fix parsing of point-size.
17883 (font_unparse_fcname): Produce symbolic names for style properties.
17884 (font_list_entities): Handle float size correctly.
17885 (font_open_by_name): Prefer `normal' property values if the name
17886 doesn't specify them.
17887
17888 * fontset.c (Finternal_char_font): Use font_get_name, not
17889 Ffont_xlfd_name.
17890
17891 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17892 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17893 pattern. Don't force scalable.
17894
17895 * xftfont.c (xftfont_open): For generating a name, start from
17896 96-byte buffer.
17897
178982008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17899
17900 * frame.h (x_new_fontset2): Fix prototype.
17901
179022008-02-01 Kenichi Handa <handa@m17n.org>
17903
17904 * font.h (struct font_driver): Delete member parse_name.
17905 (font_match_p, font_get_spec, font_parse_fcname)
17906 (font_unparse_fcname): Extern them.
17907 (font_get_name): Adjust prototype.
17908
17909 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17910 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17911 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17912 unnecessary checks for weight, slant, and swidth.
17913 (font_parse_fcname): New function.
17914 (font_unparse_fcname): New function.
17915 (font_parse_name): New function.
17916 (font_match_p): New function.
17917 (font_get_name): Change return value to Lisp string.
17918 (font_get_spec): New function.
17919 (Qunspecified, Qignore_defface): Don't extern them.
17920 (font_find_for_lface): Assume that LFACE is fully specified.
17921 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17922 object, use it for FACE.
17923 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17924 driver->parse_name.
17925 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17926
17927 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17928 prototype.
17929
17930 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17931 argument F. Don't call Fnew_fontset. Instead, directly call
17932 make_fontset.
17933
17934 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17935
17936 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17937 of x_new_fontset2.
17938
17939 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17940 (Qsans__serif): New variables.
17941 (ftfont_generic_family_list): New variable.
17942 (syms_of_ftfont): Initialize the above variables.
17943 (ftfont_pattern_entity): Delete argument NAME.
17944 (ftfont_list_generic_family): New function.
17945 (ftfont_parse_name): Delete this function.
17946 (ftfont_list): Try generic family only when FcFontList found no font.
17947 (ftfont_list_family): Fix args to FcObjectSetBuild.
17948
17949 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17950 object in attrs[LFACE_FONT_INDEX].
17951 (set_lface_from_font_name): Cancel all changes for font-backend.
17952 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17953 function.
17954 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17955 font object in QCfont attribute.
17956 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17957 (realize_default_face) [USE_FONT_BACKEND]: Call
17958 set_lface_from_font_and_fontset.
17959
17960 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17961 "fixed", and signal error here if no suitable font was found.
17962
17963 * xfont.c (xfont_parse_name): Delete this function.
17964
17965 * xftfont.c (xftfont_open): Change coding style of error
17966 handling. Generate fontconfig's fontname pattern.
17967
17968 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17969 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17970
17971 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17972 Both args FONTSET and FONT_OBJECT must be existing ones.
17973
179742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17975
17976 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17977
179782008-02-01 Kenichi Handa <handa@m17n.org>
17979
17980 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17981
17982 * font.h (struct font): Fix typo.
17983
17984 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17985 XLFD_XXX_INDEX.
17986 (enum xlfd_field_mask): New enum.
17987 (intern_font_field): Changed argument. Change caller. If digits
17988 are followed by non-digits, return a symbol.
17989 (font_expand_wildcards): New function.
17990 (font_parse_xlfd): Fix wildcard handling.
17991 (Ffont_spec): If :name is specified, reflect the info in the other
17992 properties.
17993
17994 * ftfont.c (ftfont_pattern_entity): Fix typo.
17995 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17996 locale.
17997
179982008-02-01 Kenichi Handa <handa@m17n.org>
17999
18000 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18001
18002 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18003 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18004 registry doesn't specify encoding part.
18005 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18006 (font_open_by_name): At first try parsing the name.
18007 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18008 as Lisp symbols.
18009
18010 * fontset.c (reorder_font_vector): Pay attention to the case that
18011 the 3rd element of font_def is nil.
18012 (fontset_font): For the default fontset, append one more fontset
18013 elements for a script-based font specification. Don't add script
18014 attribute on finding a font.
18015 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18016 font name.
18017 (fontset_ascii_font): If a font can't be opened, return nil.
18018
18019 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18020 (ftfont_pattern_entity): New function.
18021 (ftfont_get_cache): Assume that freetype_font_cache is already
18022 initialized.
18023 (ftfont_list): Handle the case that a file is specified in font
18024 name. Use ftfont_pattern_entity to generate entities.
18025 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18026 (syms_of_ftfont): Initialize freetype_font_cache.
18027
18028 * xftfont.c (xftfont_open): Make the font name fontconfig's
18029 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18030 (xftfont_close): Free font->font.name if not NULL.
18031
18032 * xfont.c (xfont_list): If script is specified for a font, return
18033 null_vector.
18034 (xfont_list_family): Declare argument type.
18035
18036 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18037 name, set LFACE_FONT (lface) to nil.
18038
18039 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18040 return Qnil.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18045 (standard_args): Add "-enable-font-backend".
18046
180472008-02-01 Kenichi Handa <handa@m17n.org>
18048
18049 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18050 (struct xftdraw_list, xftdraw_list): Delete them.
18051 (register_xftdraw, check_xftdraw): Delete them.
18052 (xftfont_prepare_face): Don't call register_xftdraw.
18053 (xftfont_done_face): Don't call check_xftdraw.
18054 (xftfont_draw): Get background color only when with_background is
18055 nonzero.
18056
18057 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18058
180592008-02-01 Kenichi Handa <handa@m17n.org>
18060
18061 These changes are for the new font handling codes.
18062
18063 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18064 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18065 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18066 (FONTSRC, FONTOBJ): New variables.
18067 (obj): Add $(FONTOBJ).
18068 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18069 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18070 @LIBOTF_LIBS@.
18071 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18072 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18073
18074 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18075
18076 * character.h (Vscript_representative_chars): Extern it.
18077
18078 * character.c (Vscript_representative_chars): New variable.
18079 (syms_of_character): Declare it as a Lisp variable.
18080
18081 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18082 enable_font_backend is nonzero, accept the composition method
18083 COMPOSITION_WITH_GLYPH_STRING.
18084
18085 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18086 enumeration COMPOSITION_WITH_GLYPH_STRING.
18087
18088 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18089 members clip_x, clip_y, clip_width, and clip_height.
18090 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18091
18092 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18093 --enable-font-backend. Call syms_of_font.
18094
18095 * fns.c (assoc_no_quit): New function.
18096
18097 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18098 (face_for_font, new_fontset_from_font)
18099 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18100
18101 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18102 (fontset_font, fontset_ascii, face_for_char)
18103 (make_fontset_for_ascii_face, Ffont_info)
18104 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18105 is nonzero, use font-backend mechanism.
18106 (find_font_encoding): Make it non-static.
18107 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18108 New functions.
18109
18110 * frame.h (struct frame): New members resx and resy.
18111 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18112 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18113
18114 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18115 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18116
18117 * lisp.h (assoc_no_quit): Extern it.
18118
18119 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18120 Through out the file, use FONT_INFO_FROM_FACE instead of
18121 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18122 rif->per_char_metric.
18123 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18124 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18125 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18126 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18127 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18128 nonzero, use font-backend mechanism.
18129 (get_per_char_metric): New function.
18130
18131 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18132 (set_lface_from_font_name)
18133 (set_font_frame_param, free_realized_face)
18134 (prepare_face_for_display, clear_face_gcs)
18135 (Finternal_set_font_selection_order, realize_x_face)
18136 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18137 font-backend mechanism.
18138 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18139 (load_face_font) [USE_FONT_BACKEND]: Abort.
18140 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18141 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18142
18143 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18144 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18145 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18146 nonzero, register all available font drivers. Call
18147 x_default_font_parameter for deciding a font.
18148 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18149
18150 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18151 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18152 (x_set_glyph_string_clipping_exactly)
18153 (x_compute_glyph_string_overhangs)
18154 (x_draw_glyph_string_foreground)
18155 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18156 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18157 enable_font_backend is nonzero, use font-backend mechanism.
18158 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18159
181602008-02-01 Kenichi Handa <handa@m17n.org>
18161
18162 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18163 system_eol_type.
18164 (syms_of_coding): Initialize system_eol_type.
18165
18166 * process.c (Fset_process_coding_system): Inherit system's eol
18167 format if necessary.
18168
181692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18170
18171 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * coding.c (decode_eol): Pay attention to buffer relocation in
18176 del_range_2.
18177 (decode_coding): Call decode_eol before restoring undo_list.
18178
181792008-02-01 Kenichi Handa <handa@m17n.org>
18180
18181 * charset.c (Fdefine_charset_internal): Fix setting of
18182 emacs_mule_bytes.
18183
181842008-02-01 Kenichi Handa <handa@m17n.org>
18185
18186 * keyboard.c (read_char): Check if C is a character or not before
18187 looking up Vkeyboard_translate_table.
18188
181892008-02-01 Kenichi Handa <handa@m17n.org>
18190
18191 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18192 condition to terminate the loop.
18193
181942008-02-01 Kenichi Handa <handa@m17n.org>
18195
18196 * coding.c (produce_composition): Compare charbuf[i] instead of
18197 args[i] against 0.
18198 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18199
182002008-02-01 Kenichi Handa <handa@m17n.org>
18201
18202 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18203 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18204 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18205 detect_coding.
18206 (emacs_mule_char): Handle old style (Emacs 20) component character
18207 of a composition.
18208 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18209 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18210 composition rule.
18211 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18212
182132008-02-01 Kenichi Handa <handa@m17n.org>
18214
18215 * coding.c (encode_coding_ccl): Allocate destination dynamically
18216 when necessary.
18217
182182008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18221 the loop. When quitted, show a proper error message.
18222
182232008-02-01 Kenichi Handa <handa@m17n.org>
18224
18225 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18226 src->clip_head and src->clip_tail temporarily instead of src->hl.
18227
18228 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18229 character sequence.
18230 (Fccl_execute_on_string): Use ASET, not XSET.
18231
182322008-02-01 Kenichi Handa <handa@m17n.org>
18233
18234 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18235
182362008-02-01 Kenichi Handa <handa@m17n.org>
18237
18238 * coding.c (decode_coding): Fix the condition of terminating the
18239 decoding loop.
18240
182412008-02-01 Kenichi Handa <handa@m17n.org>
18242
18243 * data.c (Faset): On setting a character bigger than 255 in a
18244 unibyte string, signal an error instead of make the string multibyte.
18245
182462008-02-01 Kenichi Handa <handa@m17n.org>
18247
18248 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18249 made by a mapping table.
18250
182512008-02-01 Kenichi Handa <handa@m17n.org>
18252
18253 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18254 not.
18255 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18256 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18257
18258 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18259 s->face is NULL or not.
18260
182612008-02-01 Kenichi Handa <handa@m17n.org>
18262
18263 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18264 (x_draw_glyph_string): Fix drawing of right_overhang and
18265 left_overhang around/on cursor.
18266
18267 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18268
182692008-02-01 Kenichi Handa <handa@m17n.org>
18270
18271 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18272
182732008-02-01 Kenichi Handa <handa@m17n.org>
18274
18275 * coding.c (Fdefine_coding_system_internal)
18276 (Fdefine_coding_system_alias): Avoid a duplicated element in
18277 Vcoding_system_alist.
18278
182792008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18282
18283 * coding.c (Qcoding_system_define_form): New variable.
18284 (syms_of_coding): Intern and staticpro it.
18285 (Fcoding_system_p): Check Qcoding_system_define_form.
18286 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18287
18288 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18289 Fcoding_system_p.
18290 (CHECK_CODING_SYSTEM): If ID is not available, call
18291 Fcheck_coding_system.
18292 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18293 Try also Fcheck_coding_system.
18294
182952008-02-01 Kenichi Handa <handa@m17n.org>
18296
18297 * coding.c (code_conversion_restore): GCPRO arg.
18298
182992008-02-01 Kenichi Handa <handa@m17n.org>
18300
18301 * character.c (lisp_string_width): Check multibyteness of STRING.
18302
183032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18304
18305 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18306 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18307 (decode_mac_font_name): Use decode_coding_c_string instead of
18308 decode_coding.
18309 (x_load_font): Initialize fontp->fontset to -1. Set
18310 fontp->encoding_type.
18311
183122008-02-01 Kenichi Handa <handa@m17n.org>
18313
18314 * search.c (search_buffer): Give up BM search on case-fold-search
18315 if one of a target character has a case-equivalence of different
18316 byte length even if that target charcter is an ASCII.
18317 (simple_search): Fix calculation of byte length of matched text.
18318 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18319
183202008-02-01 Kenichi Handa <handa@m17n.org>
18321
18322 * coding.c (decode_coding): Fix handling of invalid bytes.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18327 Unicode characters.
18328
183292008-02-01 Kenichi Handa <handa@m17n.org>
18330
18331 * coding.c (encode_coding_object): If a pre-write-conversion
18332 function makes a new buffer, kill it.
18333
183342008-02-01 Kenichi Handa <handa@m17n.org>
18335
18336 * coding.c (QCascii_compatible_p): New variable.
18337 (syms_of_coding): Initialize it.
18338 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18339 calling string_char.
18340 (record_conversion_result): Add `default:' case.
18341 (coding_charset_list): Delete unused variable `coding_type'.
18342 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18343 property in the plist of the coding system.
18344 (Fcoding_system_put): Check QCascii_compatible_p.
18345
183462008-02-01 Miles Bader <miles@gnu.org>
18347
18348 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18349 removed calculation of frame `f', as it's now used.
18350
183512008-02-01 Kenichi Handa <handa@m17n.org>
18352
18353 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18354 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18355 (UNIDATA): New variable.
18356 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18357 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18358 $(RUN_TEMACS) unconditionally.
18359
183602008-02-01 Kenichi Handa <handa@m17n.org>
18361
18362 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18363 (admindir): New variable.
18364 ($(lispsource)international/charprop.el): New target.
18365
183662008-02-01 Miles Bader <miles@gnu.org>
18367
18368 * character.c (chars-in-region): Remove obsolete function.
18369 (syms_of_character): Remove its initialization.
18370
183712008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18372
18373 * w32select.c (validate_coding_system)
18374 (setup_windows_coding_system): New functions.
18375 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18376 setup_windows_coding_system.
18377 (setup_config, Fw32_get_clipboard_data): Use
18378 validate_coding_system.
18379 (Fx_selection_exists): Move call to setup_config to a place
18380 where signals are allowed.
18381
18382 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18383 (Fcheck_coding_system): Add declarations.
18384
183852008-02-01 Kenichi Handa <handa@m17n.org>
18386
18387 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18388
183892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18390
18391 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18392 string as the second argument for x_new_fontset.
18393
183942008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18397 (encode_coding_object): Use safe_call instead of call2.
18398
183992008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18402
18403 * Makefile.in (lisp): Include charprop.el.
18404
184052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18406
18407 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18408 Not sure if it's unnecessary.
18409
184102008-02-01 Steven Tamm <steventamm@mac.com>
18411
18412 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18413 some possibly unnecessary fontset checking code that crashed
18414 when creating a new frame.
18415
184162008-02-01 Kenichi Handa <handa@m17n.org>
18417
18418 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18419 lookup_face.
18420
18421 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18422
18423 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18428 (coding_charset_list): New function.
18429
18430 * coding.h (coding_charset_list): Extern it.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18435 concatenation of family and registry.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * character.h (BYTE8_STRING): Fix typo.
18440
18441 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18442 string to multibyte (sync to HEAD).
18443
18444 * casefiddle.c (casify_region): Handle changes in byte-length
18445 using replace_range_2 (sync to HEAD).
18446
184472008-02-01 Andreas Schwab <schwab@suse.de>
18448
18449 * chartab.c (map_char_table): GCPRO table and arg.
18450
184512008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18454 already at limit.
18455
184562008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18459 instead of fast_c_string_match_ignore_case.
18460 (find_font_encoding): Change argument to Lisp_Object. Use
18461 fast_string_match_ignore_case instead of
18462 fast_c_string_match_ignore_case. Change caller.
18463
184642008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * xdisp.c (get_next_display_element): In unibyte case, decide to
18467 display in octal form by checking a character by
18468 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18469
18470 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18471
18472 * character.c (unibyte_has_multibyte_table): New variable.
18473
18474 * character.h (unibyte_has_multibyte_table): Extern it.
18475 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18476
184772008-02-01 Kenichi Handa <handa@m17n.org>
18478
18479 * coding.c (encode_coding_iso_2022): Fix handling of charset
18480 annotation.
18481
184822008-02-01 Kenichi Handa <handa@m17n.org>
18483
18484 * coding.c (setup_coding_system): If coding_system is nil, use
18485 Qundecided.
18486 (Fterminal_coding_system): Return nil if terminal coding system is
18487 `undecided'.
18488 (syms_of_coding): Define coding-system `undecided' here. Setup
18489 terminal_coding as `undecided'.
18490
184912008-02-01 Kenichi Handa <handa@m17n.org>
18492
18493 * xdisp.c (message_dolog, set_message_1): Call
18494 unibyte_char_to_multibyte with arg type int.
18495
18496 * lread.c (read1): Fix reading of a char-table.
18497
18498 * print.c (print_object): Include sub char-table in circularities
18499 detection.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18504 Append the found sequences in car of ARGS instead of prepending.
18505
185062008-02-01 Kenichi Handa <handa@m17n.org>
18507
18508 * fileio.c (report_file_error): Make a unibyte string from
18509 strerror (errorno).
18510 (Fsubstitute_in_file_name): Fix the arg to
18511 unibyte_char_to_multibyte. It is evaluated twice.
18512
185132008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18516
185172008-02-01 Kenichi Handa <handa@m17n.org>
18518
18519 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18520 BOM is not found.
18521 (detect_coding, detect_coding_system): Optimization for ISO-2022
18522 when no 8-bit data is found.
18523
185242008-02-01 Jason Rumney <jasonr@gnu.org>
18525
18526 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18527
185282008-02-01 Kenichi Handa <handa@m17n.org>
18529
18530 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18531 CHARS.
18532
185332008-02-01 Steven Tamm <steventamm@mac.com>
18534
18535 * macterm.c (mac_encode_char): Add charset argument and update
18536 to use encoding_type.
18537 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18538 switch to pure fontset.
18539 (decode_mac_font_name): Temporarily remove decoding.
18540 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18541 (x_load_font): Temporarily remove encoding.
18542
185432008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 * xfaces.c (Fface_font): If frame is not on a window system,
18546 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18547 refer to face->font.
18548 (split_font_name_into_vector, build_font_name_from_vector)
18549 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18550 when HAVE_WINDOW_SYSTEM is defined.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18555 (x_produce_glyphs): Fix setting of members of cmp in case
18556 cmp->glyph_len is zero.
18557
18558 * fontset.c (Fset_fontset_font): Fix docstring.
18559 (Ffontset_info): Make it backward compatible. New arg ALL.
18560
185612008-02-01 Kim F. Storm <storm@cua.dk>
18562
18563 * process.c (read_process_output): Grow decoding_buf when needed;
18564 this could cause a crash in allocate_string and compact_small_strings.
18565
185662008-02-01 Kenichi Handa <handa@m17n.org>
18567
18568 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18569
185702008-02-01 Kenichi Handa <handa@m17n.org>
18571
18572 * coding.c (setup_coding_system): Set coding->common_flags
18573 correctly for raw-text.
18574 (consume_chars): On encoding unibyte text by raw-text, don't check
18575 multibyte form.
18576 (encode_coding): On encoding by raw-text, never use translation tables.
18577
18578 * fileio.c (e_write): Short cut for the case of no encoding.
18579
185802008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * coding.c (detect_coding, detect_coding_system): Delete unused
18583 variables.
18584
185852008-02-01 Kenichi Handa <handa@m17n.org>
18586
18587 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18588 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18589
185902008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * coding.c (Ffind_coding_systems_region_internal): Include
18593 raw-text and no-conversion in the result.
18594
185952008-02-01 Kenichi Handa <handa@m17n.org>
18596
18597 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18598 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18599 FONT_DEF.
18600 (font_def_arg, add_arg, from_arg, to_arg): New args.
18601 (set_fontset_font): Change argument.
18602 (Fset_fontset_font): Fix for the case that TARGET is a script
18603 name and charset name.
18604 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18605
186062008-02-01 Kenichi Handa <handa@m17n.org>
18607
18608 * fontset.c (fontset_font): Rename from fontset_face. Change return
18609 value.
18610 (face_suitable_for_char_p, face_for_char): Adjust for the change
18611 of fontset_font.
18612 (make_fontset_for_ascii_face): Fix setting of the fontset element
18613 for ASCII.
18614 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18615 to get a font name.
18616 (Ffontset_info): Adjust for the change of fontset_font.
18617
18618 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18619
18620 * character.h (LEADING_CODE_LATIN_1_MIN)
18621 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18622
186232008-02-01 Kenichi Handa <handa@m17n.org>
18624
18625 * editfns.c (check_translation): New function.
18626 (Ftranslate_region_internal): Handle M:N mapping.
18627
186282008-02-01 Kenichi Handa <handa@m17n.org>
18629
18630 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18635 goto invalid_code.
18636 (decode_coding_iso_2022): Fix handling of invalid designation.
18637
18638 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18639 after calling code_conversion_save.
18640
186412008-02-01 Kenichi Handa <handa@m17n.org>
18642
18643 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18644
18645 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18646
18647 * fontset.c: Include "intervals.h".
18648 (fontset_face): Fix comparing of Lisp_Objects.
18649 (free_face_fontset, new_fontset_from_font_name): Fix
18650 Lisp_Object/int mixup.
18651
18652 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18653
18654 * coding.c: Add many prototypes for static functions.
18655 (get_translation_table): Allow max_lookup to be NULL.
18656 (decode_coding, Ffind_coding_systems_region_internal)
18657 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18658 get_translation_table with max_lookup NULL.
18659
186602008-02-01 Kenichi Handa <handa@m17n.org>
18661
18662 * coding.c (get_translation_table): Declare it as Lisp_Object.
18663 (LOOKUP_TRANSLATION_TABLE): New macro.
18664 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18665 instead of CHAR_TABLE_REF.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18670 annotation data format.
18671 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18672 Change arguments FROM and TO to single argument NCHARS. Change caller.
18673 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18674 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18675 (decode_coding_ccl, decode_coding_charset): Pay attention to
18676 coding->charbuf_used.
18677 (get_translation): New function.
18678 (produce_chars): New arguments translation_table and last_block.
18679 Translate characters here. Return number of carryover chars.
18680 Change caller.
18681 (produce_composition): New argument pos. Change caller.
18682 Adjust for the change of annotation data format.
18683 (produce_charset, produce_annotation): Likewise.
18684 (decode_coding, encode_coding): Don't call translate_chars.
18685 (consume_chars): New arg translation_table. Change caller.
18686 (translate_chars): Delete.
18687 (syms_of_coding): Make translation-table's number of extra slots 2.
18688
186892008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * search.c (simple_search): Fix setting this_pos_byte in backward
18692 search.
18693
18694 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18695 byte sequence.
18696 (detect_coding_ccl): Fix setting of the variable valids.
18697
186982008-02-01 Kenichi Handa <handa@m17n.org>
18699
18700 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18701
18702 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18703
18704 * editfns.c (Ftranslate_region_internal): Rename from
18705 Ftranslate_region. Accept a char-table in TABLE.
18706 (syms_of_editfns): Defsubr Stranslate_region_internal.
18707
18708 * xfaces.c (set_lface_from_font_name): If a font is specified for
18709 a frame, generate a fontset from the font.
18710 (build_scalable_font_name): If the scalable font is requested for
18711 a specific size, don't change that size.
18712 (try_font_list): Try a scalable font also in the case that a
18713 pattern string is specified.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * xfaces.c (Fface_font): New optional arg CHARACTER.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * charset.h (CHARSET_OFFSET): New macro.
18722
187232008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18726
18727 * fontset.c (fontset_face): Handle the case that repertory is a
18728 char-table.
18729 (find_font_encoding): Return nil for unknown encoding.
18730 (Fset_fontset_font): Ignore a font of unknown encoding.
18731
187322008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * keymap.c (describe_vector): Handle default value of a char table.
18735
18736 * fontset.c (fontset_face): Handle fallback fonts correctly.
18737 (Ffontset_info): Return infomation about fallback fonts.
18738
187392008-02-01 Kenichi Handa <handa@m17n.org>
18740
18741 * fontset.c (FONTSET_DEFAULT): New macro.
18742 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18743 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18744 the case that it is nil.
18745 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18746 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18747
18748 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18749 subset or superset.
18750
187512008-02-01 Kenichi Handa <handa@m17n.org>
18752
18753 * emacs.c (main): Call init_charset after syms_of_XXX.
18754
18755 * charset.c (Vcharset_map_directory): Delete.
18756 (Vcharset_map_path): New variable.
18757 (load_charset_map_from_file): Use Vcharset_map_path instead.
18758 (init_charset): Initialize Vcharset_map_path.
18759 (syms_of_charset): Delete declaration of "charset-map-directory",
18760 add declaration of "charset-map-path".
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18765 ASCII only string.
18766
18767 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18768
18769 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18770 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18771
187722008-02-01 Kenichi Handa <handa@m17n.org>
18773
18774 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18775
18776 * coding.c (QCmnemonic, QCdefalut_char)
18777 (QCdecode_translation_table, QCencode_translation_table)
18778 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18779 (get_translation_table): Return a list of translation tables if
18780 necessary.
18781 (decode_coding): Call get_translation_table with ENCODEP 0.
18782 (char_encodable_p): If translation_table is non-nil, always call
18783 translate_char.
18784 (Fdefine_coding_system_internal): Accept list of translation
18785 tables as :encode-translation-table and :decode-translation-table.
18786 (Fcoding_system_put): New function.
18787 (syms_of_coding): Declare new symbols. Defsubr
18788 Scoding_system_put.
18789 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18790 typically JISX0212.
18791
18792 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18793 when the charset is superset type.
18794
18795 * character.c (translate_char): Accept list of translation tables.
18796
187972008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18800 (CODING_ATTR_TRANS_TBL): New macro.
18801
18802 * coding.c (get_translation_table): New function.
18803 (translate_chars): Fix the bug of skipping annotation data.
18804 (decode_coding, encode_coding): Utilize get_translation_table.
18805 (char_encodable_p, Funencodable_char_position): Translate char if
18806 necessary.
18807 (Ffind_coding_systems_region_internal)
18808 (Fcheck_coding_systems_region): Setup translation table for encode
18809 in a coding system attribute vector in advance.
18810 (Fdefine_coding_system_internal): Allow a symbol as translation
18811 table. For shift-jis type coding system, allow 4th charset.
18812
188132008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18816
18817 * xdisp.c (get_next_display_element): Pass -1 as POS to
18818 FACE_FOR_CHAR if displaying a C-string.
18819
188202008-02-01 Kenichi Handa <handa@m17n.org>
18821
18822 * composite.c (get_composition_id): Handle xoff and yoff in a
18823 composition rule.
18824
18825 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18826 (struct composition): New member lbearing and rbearing.
18827
18828 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18829 (x_get_glyph_overhangs): Handle a composition glyph.
18830 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18831
18832 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18833 composition glyph.
18834
188352008-02-01 Kenichi Handa <handa@m17n.org>
18836
18837 * print.c: Include charset.h.
18838 (Vprint_charset_text_property): New variable.
18839 (Qdefault): Extern it.
18840 (PRINT_STRING_NON_CHARSET_FOUND)
18841 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18842 (print_check_string_result): New variable.
18843 (print_check_string_charset_prop): New function.
18844 (print_prune_charset_plist): New variable.
18845 (print_prune_string_charset): New function.
18846 (print_object): Call print_prune_string_charset if
18847 Vprint_charset_text_property is not t.
18848 (print_interval): Print nothing if interval->plist is nil.
18849 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18850 variable. Init and staticpro print_prune_charset_plist.
18851
188522008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * fontset.c (new_fontset_from_font_name): Use the specified font
18855 for all characters in the new fontset.
18856
18857 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18858 OBJECT args.
18859
18860 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18861 OBJECT args for composition too.
18862
18863 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18864 OBJECT args.
18865
188662008-02-01 Kenichi Handa <handa@m17n.org>
18867
18868 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18869
18870 * fontset.c (reorder_font_vector): Adjust for the change of
18871 FONT_DEF format.
18872 (fontset_face): New arg id. Change caller.
18873 (face_for_char): New args pos and object.
18874 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18875 (fs_query_fontset): Check NAME by Fassoc too.
18876 (Fset_fontset_font): Allow non-XLFD font name.
18877 (Ffontset_info): Adjust for the change of FONT_DEF format.
18878
18879 * fontset.h (face_for_char): Adjust prototype.
18880
18881 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18882 (append_space, extend_face_to_end_of_line)
18883 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18884 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18885
18886 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18887 POS and OBJECT args.
18888
18889 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18890 POS and OBJECT args.
18891
188922008-02-01 Jason Rumney <jasonr@gnu.org>
18893
18894 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18895 of GlobalAlloc'ed memory.
18896
188972008-02-01 Kenichi Handa <handa@m17n.org>
18898
18899 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18900
18901 * charset.h (charset_table_used): Delete extern.
18902
18903 * charset.c (charset_table_used): Make it static.
18904 (map_charset_chars): Fix args to c_function with.
18905
18906 * chartab.c (map_sub_char_table_for_charset): Fix args to
18907 c_function with.
18908
18909 * coding.h (enum coding_result_code): Delete
18910 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18911
18912 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18913 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18914 (Vlast_code_conversion_error): New variables.
18915 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18916 (ONE_MORE_BYTE): Record error if any instead of signaling an
18917 error. If non-ASCII multibyte char is found, return the negative
18918 value of the code. All callers changed to check it.
18919 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18920 (record_conversion_result): New function. Change all codes setting
18921 coding->result to call this function.
18922 (detect_coding_utf_8, decode_coding_utf_8)
18923 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18924 Don't use the local variable incomplete.
18925 (emacs_mule_char): Change the second arg to `const'.
18926 (decode_coding): Fix of flushing out unprocessed data.
18927 (make_conversion_work_buffer): Fix making of a work buffer.
18928 (decode_coding_object): Return coding->dst_object.
18929
18930 * fontset.c (set_fontset_font): Fix args.
18931
18932 * lisp.h (CHARACTERBITS): Define as 22.
18933
18934 * process.c (send_process): Be sure to set coding->src_multibyte.
18935
18936 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18937
189382008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * xdisp.c (handle_auto_composed_prop): Give limit to
18941 Fnext_single_char_property_change.
18942
189432008-02-01 Kenichi Handa <handa@m17n.org>
18944
18945 * composite.c (syms_of_composite): Don't make the composition hash
18946 table weak.
18947
18948 * fontset.c (Fset_fontset_font): Fix docstring.
18949
18950 * lisp.h (detect_coding_system): Adjust prototype.
18951
18952 * fileio.c (kill_workbuf_unwind): Delete this function.
18953 (Finsert_file_contents): Adjust the call of detect_coding_system.
18954 Get conversion_buffer by code_conversion_save. Use the macro
18955 CODING_MAY_REQUIRE_DECODING. After decoding, update
18956 coding_system.
18957
18958 * coding.h (make_conversion_work_buffer): Delete extern.
18959 (code_conversion_save): Extern it.
18960
18961 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18962 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18963 (decode_coding_utf_8): Don't do eol converion.
18964 (detect_coding_utf_16): Check coding->src_chars, not
18965 coding->src_bytes. Add heuristics for those that have no signature.
18966 (decode_coding_emacs_mule, decode_coding_iso_2022)
18967 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18968 Don't do eol converion.
18969 (adjust_coding_eol_type): Return a new coding system.
18970 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18971 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18972 each change.
18973 (decode_coding): Pay attention to undo_list. Do eol conversion for
18974 all types of coding-systems (if necessary).
18975 (Vcode_conversion_work_buf_list): Delete it.
18976 (Vcode_conversion_reused_workbuf): Rename from
18977 Vcode_conversion_reused_work_buf.
18978 (Vcode_conversion_workbuf_name): New variable.
18979 (reused_workbuf_in_use): New variable.
18980 (make_conversion_work_buffer): Delete the arg DEPTH.
18981 (code_conversion_restore): Change argument to cons.
18982 (code_conversion_save): Delete the argument BUFFER. Change callers.
18983 (detect_coding_system): New argument src_chars. Change callers.
18984 Fix for utf-16 detection.
18985 (init_coding_once): Don't use ISO_carriage_return.
18986 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18987 reused_workbuf_in_use.
18988
189892008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 * keymap.c (store_in_keymap): Pay attention to the case that idx
18992 is a cons specifying a character range.
18993
189942008-02-01 Kenichi Handa <handa@m17n.org>
18995
18996 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18997 HANDLED_RECOMPUTE_PROPS.
18998
18999 * coding.c (Fdefine_coding_system_internal): Fix checking of
19000 ascii compatibility.
19001
190022008-02-01 Kenichi Handa <handa@m17n.org>
19003
19004 * charset.c (find_charsets_in_text): Delete unused locale variable.
19005 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19006
19007 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19008 Resync charset_list to Vemacs_mule_charset_list.
19009
19010 * keymap.c (store_in_keymap): Pay attention to the case that idx
19011 is a cons specifying a character range.
19012
190132008-02-01 Kenichi Handa <handa@m17n.org>
19014
19015 * composite.c (update_compositions): Bind inhibit-read-only, etc
19016 to t before calling remove-list-of-text-properties.
19017
19018 * print.c (print_object): Always print ASCII chars as is.
19019
190202008-02-01 Kenichi Handa <handa@m17n.org>
19021
19022 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19023
19024 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19025 is a char table.
19026
190272008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19030
190312008-02-01 Kenichi Handa <handa@m17n.org>
19032
19033 * xfaces.c (set_lface_from_font_name): Fix for the case that
19034 FONTNAME is not fontset name.
19035
190362008-02-01 Kenichi Handa <handa@m17n.org>
19037
19038 * fns.c (base64_encode_1): Fix previous change.
19039
190402008-02-01 Kenichi Handa <handa@m17n.org>
19041
19042 * fontset.c (set_fontset_font): New function.
19043 (Fset_fontset_font): If a font is specified for a charset, use
19044 map_charset_chars to store the font spec in a fontset.
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * fontset.c (fontset_face): Create a fallback fontset on demand.
19049 (make_fontset): Don't create a fallback fontset here.
19050 (free_face_fontset): Free a fallback fontset (if any) too.
19051 (n_auto_fontsets): Delete this variable.
19052 (auto_fontset_alist): New variable.
19053 (new_fontset_from_font_name): Check auto_fontset_alist.
19054 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19055 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19056 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19057 Defsubr Sfontset_list_all.
19058
190592008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19062
190632008-02-01 Kenichi Handa <handa@m17n.org>
19064
19065 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19066
190672008-02-01 Kenichi Handa <handa@m17n.org>
19068
19069 * editfns.c (Fgoto_char): Fix docstring.
19070
190712008-02-01 Kenichi Handa <handa@m17n.org>
19072
19073 * insdel.c (insert_from_gap): Adjust intervals correctly.
19074
190752008-02-01 Jason Rumney <jasonr@gnu.org>
19076
19077 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19078 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19079 (w32_initialize): Try to load it.
19080 (x_get_font_repertory): Use it if available.
19081 (w32_encode_char): Add shortcut for unicode output.
19082
19083 * w32fns.c (w32_load_system_font): Default charset to -1.
19084 (x_to_w32_charset): Match all fonts for unicode.
19085 (w32_to_x_charset): New parameter matching. Don't return partial
19086 or wildcard charsets.
19087 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19088 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19089 (w32_to_x_font): Match charset to real charset.
19090 (enum_font_cb2): Always list unicode versions.
19091
19092 * makefile.w32-in (temacs): Increase EMHEAP.
19093
190942008-02-01 Jason Rumney <jasonr@gnu.org>
19095
19096 * w32term.c (w32_encode_char): New charset parameter.
19097 font_info.encoding becomes encoding_type.
19098 (x_get_font_repertory): New function. Warning: stub only!
19099 (x_new_font): Return quickly if font already set.
19100 (x_new_fontset): fontsetname parameter is Lisp_Object.
19101 Use new fs_query_fontset. Try new_fontset_from_font_name.
19102 Use fontset_name for return value.
19103
19104 * w32term.h: Declare x_get_font_repertory.
19105
19106 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19107 place of find_charset_in_text. Use encode_coding_object in place
19108 of encode_coding.
19109 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19110 decode_coding.
19111
19112 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19113 of x_new_fontset.
19114 (w32_load_system_font): Initialize charset as unicode.
19115 font_info.encoding becomes encoding_type.
19116 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19117 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19118 (syms_of_w32fns): Set get_font_repertory_func.
19119
19120 * w32console.c: Include character.h. Use terminal_encode_buffer
19121 from term.c.
19122 (write_glyphs): Use new version of encode_terminal_code. Use
19123 encode_coding_object in place of encode_coding.
19124
19125 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19126 encoding becomes encoding_type.
19127
19128 * term.c (terminal_encode_buffer): Make externally visible.
19129
19130 * makefile.w32-in: Add character.h dependancies.
19131 (character.o, chartab.o): New targets.
19132
191332008-02-01 Kenichi Handa <handa@m17n.org>
19134
19135 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19136 CODING_ID_EOL_TYPE.
19137
191382008-02-01 Andreas Schwab <schwab@suse.de>
19139
19140 * coding.c (produce_chars): Revert last change.
19141
191422008-02-01 Kenichi Handa <handa@m17n.org>
19143
19144 * charset.h (charset_unicode): Extern it.
19145
19146 * charset.c (string_xstring_p): Check by (C >= 0x100).
19147 (find_charsets_in_text): Change format of the arc CHARSETS. New
19148 arg MULTIBYTE.
19149 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19150 change of find_charsets_in_text.
19151 (Fsplit_char): Fix doc. Never return unknown.
19152
19153 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19154
19155 * coding.c (Fdefine_coding_system_alias): Update
19156 Vcoding_system_list.
19157
19158 * fontset.c (load_font_get_repertory): Pay attention to the case
19159 that ENCODING of a font is specified by a char-table.
19160
19161 * xterm.c (x_get_font_repertory): Handle the case that the
19162 encoding of font is other than Unicode.
19163
191642008-02-01 Kenichi Handa <handa@m17n.org>
19165
19166 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19167 if a character is encodable by the terminal coding system. If
19168 not, produces proper number of `?'s. Update
19169 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19170 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19175 variables.
19176 (encode_terminal_code): Change argument. Encode multiple
19177 characters at once. Store the result of encoding in
19178 terminal_encode_buffer.
19179 (write_glyphs, insert_glyphs): Adjust for the change of
19180 encode_terminal_code.
19181 (term_init): Initialize terminal_encode_buffer and
19182 terminal_encode_buf_size.
19183
19184 * coding.c (consume_chars): If coding->src_object is nil, don't
19185 check annotation.
19186
191872008-02-01 Kenichi Handa <handa@m17n.org>
19188
19189 * character.c (char_string): Use ASCII_CHAR_P instead of
19190 SINGLE_BYTE_CHAR_P.
19191
191922008-02-01 Kenichi Handa <handa@m17n.org>
19193
19194 * xdisp.c (handle_auto_composed_prop): Check if the last
19195 characters of auto-composed region is newly composed with the
19196 following characters.
19197 (handle_composition_prop): Fix checking of point being inside
19198 composition.
19199
192002008-02-01 Kenichi Handa <handa@m17n.org>
19201
19202 * fns.c (concat): Don't change multibyteness of the result by
19203 concatenating an 8-bit character.
19204
19205 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19206 multibyteness of the result when newelt is an 8-bit character.
19207
192082008-02-01 Dave Love <fx@gnu.org>
19209
19210 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19211 EMACS_INT.
19212
19213 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19214
19215 * xfaces.c (face_numeric_value): Declare dim size_t.
19216 (Finternal_lisp_face_equal_p): Remove unused f.
19217
19218 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19219 (MATRIX_ROW): Remove unused vars.
19220 (draw_glyphs, x_insert_glyphs, fast_find_position)
19221 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19222 byte/char counts.
19223
19224 * regex.c (regex_compile): Remove unused var.
19225
19226 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19227
19228 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19229 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19230
19231 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19232
19233 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19234
19235 * fileio.c (Fwrite_region): Remove unused var.
19236
19237 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19238 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19239
19240 * composite.c (Fremove_list_of_text_properties): Declare.
19241
19242 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19243 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19244 (coding_inherit_eol_type): Remove unused attrs.
19245 (detect_coding): Cast arg of detect_eol.
19246
19247 * charset.c (syms_of_charset): Remove unused var p.
19248 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19249 byte/char counts.
19250
19251 * casetab.c (set_case_table): Remove unused var.
19252
19253 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19254 unused vars.
19255
192562008-02-01 Dave Love <fx@gnu.org>
19257
19258 * xterm.c (x_bitmap_mask): Declare.
19259
192602008-02-01 Dave Love <fx@gnu.org>
19261
19262 * xterm.c (x_term_init): Fix type error.
19263
19264 * lisp.h: Add Funibyte_char_to_multibyte.
19265
19266 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19267 (Fset_coding_system_priority): Doc fix.
19268
19269 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19270
19271 * indent.c (check_composition): Make start and end EMACS_INT.
19272
19273 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19274
19275 * xdisp.c (handle_composition_prop, check_point_in_composition):
19276 Make buffer positions EMACS_INT.
19277
19278 * composite.c (find_composition, run_composition_function)
19279 (update_compositions, Ffind_composition_internal): Make buffer
19280 positions EMACS_INT.
19281
19282 * composite.h (find_composition, update_compositions): Make
19283 position args EMACS_INT.
19284
19285 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19286
19287 * intervals.c (get_property_and_range):
19288 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19289
19290 * unexalpha.c: Don't include varargs.h.
19291
192922008-02-01 Dave Love <fx@gnu.org>
19293
19294 * coding.h (ENCODE_UTF_8): New.
19295
19296 * Makefile.in (gtkutil.o): Depend on coding.h.
19297
19298 * coding.c (Fset_coding_system_priority): Doc fix.
19299
193002008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19303 the case of auto saving.
19304
193052008-02-01 Andreas Schwab <schwab@suse.de>
19306
19307 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19308 `range' from GC.
19309
193102008-02-01 Kenichi Handa <handa@m17n.org>
19311
19312 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19313
193142008-02-01 Kenichi Handa <handa@m17n.org>
19315
19316 * fileio.c (choose_write_coding_system): Return a decided coding system.
19317 (Fwrite_region): Set Vlast_coding_system_used to the return value
19318 of choose_write_coding_system.
19319
193202008-02-01 Kenichi Handa <handa@m17n.org>
19321
19322 * charset.c (Fset_charset_priority): Pay attention to duplicated
19323 arguments.
19324
19325 * coding.c (QCcategory): New variable.
19326 (syms_of_coding): Defsym it. Set all elements of
19327 Vcoding_category_table and their symbol values.
19328 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19329 coding-category-XXX, and coding-category-list.
19330 (Fdefine_coding_system_internal): Add category in the plist.
19331
193322008-02-01 Kenichi Handa <handa@m17n.org>
19333
19334 * callproc.c (Fcall_process): Handle carryover correctly.
19335
19336 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19337 (raw_text_coding_system): Check NILP (coding_system).
19338 (coding_inherit_eol_type): Check NILP (coding_system) and
19339 NILP (parent).
19340 (consume_chars): Fix for the case of raw-text.
19341
19342 * process.c (read_process_output): Handle carryover correctly.
19343
193442008-02-01 Dave Love <fx@gnu.org>
19345
19346 * regex.c (re_search_2): Fix last change.
19347
193482008-02-01 Kenichi Handa <handa@m17n.org>
19349
19350 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19351 target_multibyte. Even in a unibyte case, return a converted
19352 multibyte char.
19353 (GET_CHAR_AFTER): New macro.
19354 (PATFETCH): Translate via multibyte char.
19355 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19356 (SETUP_MULTIBYTE_RANGE): New macro.
19357 (regex_compile): Setup compiled code so that its multibyteness
19358 matches that of a target. Fix the handling of "[X-YZ]" using
19359 SETUP_MULTIBYTE_RANGE.
19360 (analyse_first) <charset>: For filling fastmap for all multibyte
19361 characters, don't check by BASE_LEADING_CODE_P.
19362 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19363 the same as RE_MULTIBYTE_P (bufp) now.
19364 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19365 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19366 (TRANSLATE_VIA_MULTIBYTE): New macro.
19367 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19368 It is the same as RE_MULTIBYTE_P (bufp) now.
19369 <exactn>: Translate via multibyte.
19370 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19371 translate it.
19372 <charset, charset_not>: Fetch a character by
19373 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19374 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19375 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19376 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19377 by GET_CHAR_AFTER.
19378 (bcmp_translate): Likewise.
19379
19380 * search.c (compile_pattern): Check the member target_multibyte,
19381 not the member multibyte of buf.
19382
19383 * lread.c (read1): While reading a string, set force_singlebyte
19384 and force_multibyte correctly.
19385
19386 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19387 up of unibyte_to_multibyte_table.
19388
193892008-02-01 Kenichi Handa <handa@m17n.org>
19390
19391 * coding.c (setup_coding_system): If coding has
19392 post-read-conversion or pre-write-conversion, set
19393 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19394 respectively.
19395 (decode_coding_gap): Run post-read-conversion if any.
19396
19397 * fileio.c (Finsert_file_contents): Even if we read into a
19398 unibyte buffer, check if we must decode the result or not.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 * coding.c (make_conversion_work_buffer): Change the work buffer
19403 name to the same one as that of Emacs 21.
19404
194052008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * coding.h (make_conversion_work_buffer): Adjust prototype.
19408 (code_conversion_restore): Don't extern it.
19409
19410 * coding.c (detected_mask): Delete unused variable.
19411 (decode_coding_iso_2022): Pay attention to the byte sequence of
19412 CTEXT extended segment, and retain those bytes as is.
19413 (decode_coding_ccl): Delete unused variable `valids'.
19414 (setup_coding_system): Delete unused variable `category'.
19415 (consume_chars): Delete unused variable `category'. Make it work
19416 for non-multibyte case.
19417 (make_conversion_work_buffer): Change argument.
19418 (saved_coding): Delete unused variable.
19419 (code_conversion_restore): Don't check saved_coding->destination.
19420 (code_conversion_save): New function.
19421 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19422 instead of record_unwind_protect.
19423 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19424 (detect_coding_system): Delete unused variable `mask'.
19425 (Fdefine_coding_system_internal): Delete unused variable id.
19426
19427 * fileio.c (kill_workbuf_unwind): New function.
19428 (Finsert_file_contents): On replacing, call
19429 make_conversion_work_buffer with correct args, and call
19430 record_unwind_protect with the first arg kill_workbuf_unwind.
19431
19432 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19433
194342008-02-01 Kenichi Handa <handa@m17n.org>
19435
19436 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19437 (fontset_add): Fix for the case that TO is less than TO1.
19438 (Ffontset_info): Don't use fallback fontset on checking the
19439 default fontset.
19440 (dump_fontset): New function for debugging.
19441
19442 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19443 coding_type is Qcharset.
19444
194452008-02-01 Kenichi Handa <handa@m17n.org>
19446
19447 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19448 (map_char_table): Don't inherit the value from the parent on
19449 initializing VAL. Adjust for the above change.
19450
194512008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * coding.c (Qsignature, Qendian): Delete these variables.
19454 (syms_of_coding): Don't initialize them.
19455 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19456 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19457 detect_info->found.
19458 (decode_coding_utf_16): Don't detect BOM here.
19459 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19460 is NOT utf_16_without_bom.
19461 (setup_coding_system): For a coding system of type utf-16, check
19462 if the attribute :endian is Qbig or not (not nil or not), and set
19463 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19464 (detect_coding): If coding type is utf-16 and BOM detection is
19465 required, detect it.
19466 (Fdefine_coding_system_internal): For a coding system of type
19467 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19468
194692008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * coding.c (coding_set_source): Fix for the case that the current
19472 buffer is different from coding->src_object.
19473 (decode_coding_object): Don't use the conversion work buffer if
19474 DST_OBJECT is a buffer.
19475
194762008-02-01 Dave Love <fx@gnu.org>
19477
19478 * lread.c (read_emacs_mule_char) [len==2]: Index
19479 emacs_mule_charset correctly.
19480
194812008-02-01 Dave Love <fx@gnu.org>
19482
19483 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19484 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19485 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19486 treated specially.)
19487 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19488 (detected_mask): Remove Big5 bits.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 The following changes are to make the font rescaling facility
19493 compatible with Emacs 21.
19494
19495 * xfaces.c (Vface_font_rescale_alist): Rename from
19496 Vface_resizing_fonts.
19497 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19498 (font_rescale_ratio): Rename from font_resizing_ratio.
19499 (split_font_name): Set font->rescale_ratio.
19500 (better_font_p): Pay attention to font->rescale_ratio.
19501 (build_scalable_font_name): Likewise. Change RESX, and RESY
19502 fields.
19503 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19508 (Qutf_16_le): Remove these variables.
19509 (syms_of_coding): Don't DEFSYM them.
19510 (decode_coding_utf_16): Fix handling of BOM.
19511 (encode_coding_utf_16): Fix handling of BOM.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * fileio.c (Finsert_file_contents): On replacing, before decoding
19516 the file into the work buffer, set point of the work buffer to the end.
19517
195182008-02-01 Dave Love <fx@gnu.org>
19519
19520 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19521
195222008-02-01 Dave Love <fx@gnu.org>
19523
19524 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19525 and fix C types.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * xdisp.c (SKIP_GLYPHS): New macro.
19530 (set_cursor_from_row): Pay attention to string display properties.
19531
19532 * category.c (copy_category_entry): Fix for the case that RANGE
19533 is an integer.
19534
19535 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19536
19537 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * charset.c (Fcharset_id_internal): New function.
19542 (syms_of_charset): Defsubr it.
19543
19544 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19545 with the last arg charset_list acquired from coding.
19546 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19547 the attribute coding_attr_ccl_valids.
19548
19549 * coding.h (enum define_coding_ccl_arg_index): Set the first
19550 member coding_arg_ccl_decoder to coding_arg_max.
19551
19552 * ccl.h (ccl_driver): Adjust prototype.
19553
19554 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19555 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19556 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19557 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19558 last arg Qnil.
19559
195602008-02-01 Kenichi Handa <handa@m17n.org>
19561
19562 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19563 call encode_char.
19564
19565 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19566
195672008-02-01 Dave Love <fx@gnu.org>
19568
19569 * composite.c (syms_of_composite): Make composition_hash_table weak.
19570
195712008-02-01 Kenichi Handa <handa@m17n.org>
19572
19573 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19574 (font_name_registry): Don't extern them.
19575 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19576
19577 * fontset.h (Qfontset): Don't extern it.
19578 (new_fontset_from_font_name): Extern it.
19579
19580 * fontset.c: Give 8 extra slots to fontset objects.
19581 (Qfontset_info): New variable.
19582 (syms_of_fontset): Defsym it.
19583 (FONTSET_FALLBACK): New macro.
19584 (fontset_face): Try also the default fontset.
19585 (make_fontset): Realize a fallback fontset from the default fontset.
19586 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19587 using split_font_name_into_vector and build_font_name_from_vector.
19588 (Fset_fontset_font): Access the elements of font_spec by enum
19589 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19590 name by using split_font_name_into_vector.
19591 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19592 generate a proper font name from the fontset name. Update
19593 Vfontset_alias_alist.
19594 (n_auto_fontsets): New variable.
19595 (new_fontset_from_font_name): New function.
19596 (Ffont_info): Store the information about fonts generated from the
19597 default fontset in the first extra slot of the returned char-table.
19598
19599 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19600 (font_name_registry): Delete function.
19601 (split_font_name_into_vector): New function.
19602 (build_font_name_from_vector): New function.
19603 (font_list): The argument REGISTRY is now a list of registry names.
19604 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19605 specifies an explicit font name, return the name as is. Make a
19606 list of registy names.
19607
19608 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19609 of x_new_fontset.
19610 (Fx_create_frame): Don't call x_new_fontset here. Just use
19611 x_list_fonts to check the existence of fonts.
19612
19613 * xterm.h (x_new_fontset): Adjust prototype.
19614
19615 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19616 string. Use new_fontset_from_font_name to create a fontset from a
19617 font name.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * syntax.c (Vfind_word_boundary_function_table): New name for
19622 Vnext_word_boundary_function_table.
19623 (find-word-boundary-function-table): New name for
19624 next-word-boundary-function-table.
19625
196262008-02-01 Dave Love <fx@gnu.org>
19627
19628 * Makefile.in: Fix some dependencies.
19629
19630 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19631 set it to nil before returning.
19632
19633 * composite.c (update_compositions): Fix type error.
19634
19635 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19636
196372008-02-01 Kenichi Handa <handa@m17n.org>
19638
19639 * xterm.c (x_new_font): Optimize for the case that the font is
19640 already set for the frame.
19641
196422008-02-01 Kenichi Handa <handa@m17n.org>
19643
19644 * chartab.c (char_table_ascii): Check if the char table contents
19645 is sub-char-table or not.
19646 (char_table_set, char_table_set_range): Fix argument to
19647 char_table_ascii.
19648
19649 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19650 (detect_coding_utf_8, detect_coding_utf_16)
19651 (detect_coding_emacs_mule, detect_coding_iso_2022)
19652 (detect_coding_sjis, detect_coding_big5)
19653 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19654 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19655 sequence is valid in this coding system. Change callers.
19656 (MAX_ANNOTATION_LENGTH): New macro.
19657 (ADD_ANNOTATION_DATA): New macro.
19658 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19659 ADD_ANNOTATION_DATA. Change the format of annotation data.
19660 (ADD_CHARSET_DATA): New macro.
19661 (emacs_mule_char): New argument ID. Change callers.
19662 (decode_coding_emacs_mule, decode_coding_iso_2022)
19663 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19664 Produce charset annotation data in coding->charbuf.
19665 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19666 to charset annotation data in coding->charbuf.
19667 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19668 coding->common_flags if the coding system is iso-2022 based and
19669 uses designation.
19670 (produce_composition): Adjust for the new annotation data format.
19671 (produce_charset): New function.
19672 (produce_annotation): Handle charset annotation.
19673 (handle_composition_annotation, handle_charset_annotation): New
19674 functions.
19675 (consume_chars): Handle charset annotation. Utilize the above two
19676 functions.
19677 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19678 buffer, get the deleted text as a string and set
19679 coding->src_object to that string.
19680 (detect_coding, detect_coding_system): Use the new struct
19681 coding_detection_info.
19682
19683 * coding.h (struct coding_detection_info): New structure.
19684 (struct coding_system): Adjust prototype of the member `detector'.
19685 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19686
196872008-02-01 Kenichi Handa <handa@m17n.org>
19688
19689 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19690
196912008-02-01 Dave Love <fx@gnu.org>
19692
19693 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19694 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19695 to new local and nullify apropos_accumulate before returning.
19696 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19697
196982008-02-01 Kenichi Handa <handa@m17n.org>
19699
19700 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19701 correctly.
e3eea1fc 19702
aac0c6e3
MR
197032008-02-01 Dave Love <fx@gnu.org>
19704
19705 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19706
197072008-02-01 Kenichi Handa <handa@m17n.org>
19708
19709 The following changes are to make character composition happen
19710 automatically on displaying.
19711
19712 * Makefile.in (lisp, shortlisp): Add composite.elc.
19713
19714 * composite.h (Qauto_composed, Vauto_composition_function)
19715 (Qauto_composition_function): Extern them.
19716
19717 * composite.c (Vcomposition_function_table)
19718 (Qcomposition_function_table): Delete variables.
19719 (Qauto_composed, Vauto_composition_function)
19720 (Qauto_composition_function): New variables.
19721 (run_composition_function): Don't call
19722 compose-chars-after-function.
19723 (update_compositions): Clear `auto-composed' text property.
19724 (compose_chars_in_text): Delete this function.
19725 (syms_of_composite): Staticpro Qauto_composed and
19726 Qauto_composition_function. Declare Vauto_composition_function as
19727 a Lisp variable.
19728
19729 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19730
19731 * xdisp.c (it_props): Add an entry for Qauto_composed.
19732 (handle_auto_composed_prop): New function.
19733
19734 * xselect.c (selection_data_to_lisp_data): Don't call
19735 compose_chars_in_text.
19736
197372008-02-01 Dave Love <fx@gnu.org>
19738
19739 * keyboard.c (read_char): Modify checking around use of
19740 Vkeyboard_translate_table.
19741
19742 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19743 and fix C types.
19744
197452008-02-01 Kenichi Handa <handa@m17n.org>
19746
19747 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19748 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19749 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19750 the case that the last byte is '\r' correctly.
19751 (decode_coding): Flush out the unprocessed data correctly.
19752 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19753
197542008-02-01 Dave Love <fx@gnu.org>
19755
19756 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19757 Add XK_ISO... case.
19758 (xaw_scroll_callback): Revert last change.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19763
197642008-02-01 Kenichi Handa <handa@m17n.org>
19765
19766 * xfaces.c (Vface_resizing_fonts): New variable.
19767 (struct font_name): New member `resizing_ratio'.
19768 (font_resizing_ratio): New function.
19769 (split_font_name): Set font->resizing_ratio.
19770 (better_font_p): Pay attention to font->resizing_ratio.
19771 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19772 RESX, and RESY fields.
19773 (try_alternative_families): Try scalable fonts if
19774 Vscalable_fonts_allowed is not Qt.
19775 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19776
197772008-02-01 Dave Love <fx@gnu.org>
19778
19779 * xterm.c (xaw_scroll_callback): Cast correctly.
19780
197812008-02-01 Dave Love <fx@gnu.org>
19782
19783 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19784 (lispy_kana_keys): Comment out.
19785 (make_lispy_event) [XK_kana_A]: Comment out.
19786
19787 * xterm.c (xaw_scroll_callback): Cast call_data.
19788 (XTread_socket): Deal with ASCII keysyms.
19789 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19790
197912008-02-01 Dave Love <fx@gnu.org>
19792
19793 * xterm.c (Vx_keysym_table): New.
19794 (syms_of_xterm): Initialize it.
19795 (XTread_socket): Use it.
19796 From head: Eliminate incorrect optimization that tried to avoid
19797 decoding the output of X*LookupString.
19798 (x_get_font_repertory): Delete charset declaration.
19799
198002008-02-01 Kenichi Handa <handa@m17n.org>
19801
19802 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19803 return 0.
19804 (Fdefine_coding_system_internal): Setup
19805 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19806
198072008-02-01 Dave Love <fx@gnu.org>
19808
19809 * coding.c (Fcheck_coding_system): Doc fix.
19810
19811 * editfns.c (Finsert_byte): Return a proper value.
19812
198132008-02-01 Kenichi Handa <handa@m17n.org>
19814
19815 * coding.c (decode_coding): Fix args to translate_chars. Pay
19816 attention to Vstandard_translation_table_for_decode.
19817 (encode_coding): Fix args to translate_chars. Pay attention to
19818 Vstandard_translation_table_for_encode.
19819
19820 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19821 SINGLE_BYTE_CHAR_P.
19822
19823 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19824 not by SINGLE_BYTE_CHAR_P.
19825
19826 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19827 SINGLE_BYTE_CHAR_P.
19828
19829 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19830 SINGLE_BYTE_CHAR_P.
19831
19832 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19833 by SINGLE_BYTE_CHAR_P.
19834
19835 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19836 SINGLE_BYTE_CHAR_P.
19837
198382008-02-01 Dave Love <fx@gnu.org>
19839
19840 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19841
198422008-02-01 Dave Love <fx@gnu.org>
19843
19844 * fns.c (Flanginfo): Fix typo.
19845
19846 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19847
198482008-02-01 Kenichi Handa <handa@m17n.org>
19849
19850 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19851 (detect_coding_emacs_mule, detect_coding_iso_2022)
19852 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19853 incomplete byte sequence. Don't update *mask when correctly detected.
19854 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19855 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19856 (detect_coding, detect_coding_system): Adjust for the changes above.
19857
198582008-02-01 Kenichi Handa <handa@m17n.org>
19859
19860 * character.c (char_string): Rename from
19861 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19862 (string_char): Rename from string_char.
19863
19864 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19865 if C is greater than MAX_3_BYTE_CHAR.
19866 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19867 string_char instead of string_char_with_unification.
19868
198692008-02-01 Dave Love <fx@gnu.org>
19870
19871 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19872
198732008-02-01 Kenichi Handa <handa@m17n.org>
19874
19875 * keymap.c (push_key_description): Pay attention to force_multibyte.
19876
19877 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19878
198792008-02-01 Dave Love <fx@gnu.org>
19880
19881 * charset.c (define_charset_internal): Rename `supprementary'.
19882
19883 * Makefile.in (lisp, shortlisp): Remove latin-N.
19884
198852008-02-01 Dave Love <fx@gnu.org>
19886
19887 * xfns.c (x_window, x_window): Use use_xim.
19888
19889 * xterm.c (use_xim): Initialize.
19890 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19891 (x_term_init): Maybe set use_xim.
19892
19893 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19894
198952008-02-01 Kenichi Handa <handa@m17n.org>
19896
19897 * search.c (search_buffer): Fix case-fold-search of multibyte
19898 characters.
19899 (boyer_moore): Rename the last argument to char_high_bits.
19900
199012008-02-01 Kenichi Handa <handa@m17n.org>
19902
19903 * xdisp.c (display_string): Fix for the case of zero width glyph.
19904
19905 * xfns.c (x_set_font): Change the error message of the case that
19906 x_new_fontset returns Qt.
19907
19908 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19909 (Finternal_set_lisp_face_attribute): Use signal_error for the
19910 error of invalid fontset.
19911
19912 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19913 fontset, return Qt.
19914
199152008-02-01 Dave Love <fx@gnu.org>
19916
19917 * unexelf.c (unexec): Make .got handling not SGI-specific.
19918
19919 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19920
19921 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19922
19923 * keyboard.c (read_key_sequence): Fix type error.
19924
19925 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19926 type error.
19927
19928 * fontset.c (fontset_add): Return Lisp_Object.
19929
199302008-02-01 Dave Love <fx@gnu.org>
19931
19932 * charset.h (charset_ordered_list_tick): Declare extern.
19933
199342008-02-01 Kenichi Handa <handa@m17n.org>
19935
19936 The following changes (and some of 2008-02-01 changes of mine) are
19937 for handling syntax, category, and case conversion for unibyte
19938 characters by converting them to multibyte on the fly. With these
19939 changes, we don't have to setup syntax and case tables for unibyte
19940 characters in each language environment.
19941
19942 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19943 multibyte if necessary.
19944
19945 * bytecode.c (Fbyte_code): Likewise.
19946
19947 * character.h (LEADING_CODE_LATIN_1_MIN)
19948 (LEADING_CODE_LATIN_1_MAX): New macros.
19949 (unibyte_to_multibyte_table): Extern it.
19950 (unibyte_char_to_multibyte): New macro.
19951 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19952 (CHAR_LEADING_CODE): New macro.
19953 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19954
19955 * character.c (unibyte_to_multibyte_table): New variable.
19956 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19957 (multibyte_char_to_unibyte): If C is an eight-bit character,
19958 convert it to the corresponding byte value.
19959
19960 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19961 not 1, signals an error. Update the elements of
19962 unibyte_to_multibyte_table.
19963 (init_charset_once): Initialize unibyte_to_multibyte_table.
19964 (syms_of_charset): Define the charset `iso-8859-1'.
19965
19966 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19967 as is without converting it to unibyte. In a unibyte buffer,
19968 convert C to multibyte before checking the syntax.
19969
19970 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19971
19972 * minibuf.c (Fminibuffer_complete_word): Use the macro
19973 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19974
19975 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19976
19977 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19978 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19979 that is zero, convert an eight-bit char to multibyte.
19980 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19981 non-emacs case.
19982 (PATFETCH): Convert an eight-bit char to multibyte.
19983 (HANDLE_UNIBYTE_RANGE): New macro.
19984 (regex_compile): Setup the compiled pattern for multibyte chars
19985 even if the given regex string is unibyte. Use PATFETCH_RAW
19986 instead of PATFETCH in many places. To handle `charset'
19987 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19988 only for ASCII chars.
19989 (analyse_first) <exactn>: Simplify because the compiled pattern
19990 is multibyte.
19991 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19992 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19993 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19994 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19995 multibyte always 1.
19996 (re_search_2): In emacs, set the locale variable multibyte to 1,
19997 otherwise to 0. New local variable target_multibyte. Check it
19998 to decide the multibyteness of STR1 and STR2. If
19999 target_multibyte is zero, convert unibyte chars to multibyte
20000 before translating and checking fastmap.
20001 (TARGET_CHAR_AND_LENGTH): New macro.
20002 (re_match_2_internal): In emacs, set the locale variable multibyte
20003 to 1, otherwise to 0. New local variable target_multibyte. Check
20004 it to decide the multibyteness of STR1 and STR2. Use
20005 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20006 <charset, charset_not>: If multibyte is nonzero, check fastmap
20007 only for ASCII chars. Call bcmp_translate with
20008 target_multibyte, not with multibyte.
20009 <begline>: Declare the local variable C as `unsigned'.
20010 (bcmp_translate): Change the last arg name to target_multibyte.
20011
20012 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20013 the regexp pattern and the matching target. Set cp->buf.multibyte
20014 to the multibyteness of the regexp pattern. Set
20015 cp->but.target_multibyte to the multibyteness of the matching target.
20016 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20017 FETCH_STRING_CHAR_ADVANCE.
20018 (Freplace_match): Convert unibyte chars to multibyte.
20019
20020 * syntax.c (char_quoted, back_comment, scan_words)
20021 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20022 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20023 unibyte chars to multibyte.
20024 (skip_chars): Delete the arg syntaxp, and move the code for
20025 handling syntaxes to skip_syntaxes. Change callers.
20026 Fix the case that the multibyteness of STRING and the current
20027 buffer doesn't match.
20028 (skip_syntaxes): New function.
20029 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20030 SINGLE_BYTE_CHAR_P.
20031
200322008-02-01 Kenichi Handa <handa@m17n.org>
20033
20034 * xfaces.c (QCfontset): New variable.
20035 (LFACE_FONTSET): New macro.
20036 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20037 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20038 (Finternal_set_lisp_face_attribute)
20039 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20040 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20041 check also LFACE_FONTSET_INDEX.
20042 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20043 attrs[LFACE_FONT_INDEX].
20044 (syms_of_xfaces): Intern and staticpro QCfontset.
20045
20046 * dispextern.h (enum lface_attribute_index): New member
20047 LFACE_FONTSET_INDEX.
20048
20049 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20050
200512008-02-01 Kenichi Handa <handa@m17n.org>
20052
20053 * coding.c (coding_set_destination): Fix coding->destination for
20054 the case converting a region.
20055 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20056 (encode_coding_object): Fix coding->dst_pos and
20057 coding->dst_pos_byte for the case converting a region.
20058
20059 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20060
20061 * character.h (BYTE8_STRING): New macro.
20062
20063 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20064
200652008-02-01 Kenichi Handa <handa@m17n.org>
20066
20067 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20068 characters by octal form.
20069
20070 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20071
20072 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20073 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20074 _fetch_multibyte_char_len.
20075 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20076
20077 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20078
20079 * casefiddle.c (casify_object): Simplify. Handle the case that
20080 the case conversion change the byte length.
20081 (casify_region): Likewise.
20082
20083 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20084
20085 * character.c (_fetch_multibyte_char_len): Delete this variable.
20086 (syms_of_character): Setup Vprintable_chars.
20087
20088 * editfns.c (Fchar_equal): Fix for the unibyte case.
20089 (Finsert_byte): New function.
20090 (syms_of_editfns): Defsubr it.
20091
20092 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20093 of direct code 0x3ffff.
20094
20095 * search.c (Freplace_match): Fix for the unibyte case.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * lread.c (safe_to_load_p): Fix the logic.
20100
20101 * syntax.c (scan_words): Don't treat characters belonging to
20102 different scripts as constituting a word.
20103
20104 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20105
20106 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20107
20108 * emacs.c (main): In the case of --unibyte, instead of aborting on
20109 finding non-empty buffer, make it unibyte.
20110
201112008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20114 to create a fontset.
20115
201162008-02-01 Dave Love <fx@gnu.org>
20117
20118 * character.c (Funibyte_char_to_multibyte): Doc fix.
20119
20120 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20121
201222008-02-01 Kenichi Handa <handa@m17n.org>
20123
20124 * fontset.c (fontset_add): Make the type `int'.
20125 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20126
20127 * character.c (unibyte_char_to_multibyte)
20128 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20129 charset_unibyte, not charset_primary.
20130
20131 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20132
20133 * charset.c (charset_unibyte): Rename from charset_primary.
20134 (Funibyte_charset): Rename from Fprimary_charset.
20135 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20136 (syms_of_charset): Adjust for the above changes.
20137
20138 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20139 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20140 it->multibyte_p is zero.
20141
20142 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20143 Delete extern.
20144
201452008-02-01 Kenichi Handa <handa@m17n.org>
20146
20147 * coding.c (Fdefine_coding_system_internal): Fix category setting
20148 for a coding system of type iso-2022.
20149
201502008-02-01 Kenichi Handa <handa@m17n.org>
20151
20152 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20153
201542008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * syntax.c (Vnext_word_boundary_function_table): New variable.
20157 (next-word-boundary-function-table): Declare it as a Lisp variable
20158 in syms_of_syntax.
20159 (scan_words): Call functions in Vnext_word_boundary_function_table
20160 if any.
20161
20162 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20163
20164 * fontset.c (fs_load_font): If fontp->charset is not negative,
20165 return fontp without setting its members.
20166
201672008-02-01 Dave Love <fx@gnu.org>
20168
20169 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20170
20171 * m/sparc.h (HAVE_ALLOCA): Delete.
20172
20173 * s/irix6-5.h: Don't include strings.h.
20174 (bcopy, bzero, bcmp): Don't undef.
20175
20176 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20177
20178 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20179 (TIOCSIGSEND): Don't test IRIX6.
20180 (bcopy, bzero, bcmp): Define conditionally.
20181
201822008-02-01 Kenichi Handa <handa@m17n.org>
20183
20184 * buffer.c (Qas, Qmake, Qto): New variables.
20185 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20186 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20187
20188 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20189 we are inserting a process output into a multibyte buffer.
20190
20191 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20192 multibyte_char_to_unibyte.
20193
20194 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20195 by the primary charset, make it eight-bit char.
20196 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20197
20198 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20199 (charset_8_bit__control, charset_8_bit_graphic)
20200 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20201 (define_charset_internal): New function.
20202 (syms_of_charset): Call define_charset_internal for pre-defined
20203 charsets.
20204
20205 * charset.h (charset_8_bit): Extern it.
20206
20207 * coding.c (make_conversion_work_buffer): Adjust for the change
20208 of Fset_buffer_multibyte.
20209 (encode_coding_raw_text): Increment p0 in the loop.
20210
20211 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20212
20213 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20214 for the change of Fset_buffer_multibyte.
20215
20216 * fns.c (Fstring_to_multibyte): New function.
20217 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20218
202192008-02-01 Dave Love <fx@gnu.org>
20220
20221 * xfns.c (x_put_x_image): Declare args.
20222
20223 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20224 (try_font_list): Declare an arg.
20225
20226 * xdisp.c (message2_nolog, set_message): Declare an arg.
20227
20228 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20229
20230 * syntax.c (scan_sexps_forward): Declare an arg.
20231
20232 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20233 Declare an arg.
20234
20235 * lisp.h (Fnew_fontset): Declare.
20236
20237 * keymap.c (push_key_description): Call CHARACTERP correctly.
20238
20239 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20240 (face_for_char): Delete unused vars.
20241 (Fset_fontset_font): Doc fix. Delete unused vars.
20242
20243 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20244
20245 * composite.c (update_compositions): Declare arg.
20246
20247 * cm.c (calccost, cmgoto): Declare args.
20248
20249 * charset.c: Remove `emacs' conditional. Doc fixes.
20250 (map_char_table_for_charset): Declare.
20251
20252 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20253
20254 * ccl.c: Remove `emacs' conditional.
20255
202562008-02-01 Kenichi Handa <handa@m17n.org>
20257
20258 The following changes are to allow specifying multiple font
20259 patterns for a character range (specified by script or charset).
20260
20261 * Makefile.in (abbrev.o): Depend on syntax.h.
20262 (xfaces.o): Depend on charset.h.
20263
20264 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20265 SINGLE_BYTE_CHAR_P.
20266
20267 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20268
20269 * character.h (Vchar_script_table): Extern it.
20270
20271 * character.c (Vscript_alist): Delete.
20272 (Vchar_script_table, Qchar_script_table): New variable.
20273 (syms_of_character): Declare Vchar_script_table as a lisp variable
20274 and initialize it.
20275
20276 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20277 have property char-table-extra-slots, make no extra slot.
20278
20279 * dispextern.h (struct face): Delete member `charset'.
20280 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20281 SINGLE_BYTE_CHAR_P.
20282 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20283 Add prototypes.
20284 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20285 (generate_ascii_font_name): Rename from generate_ascii_font.
20286
20287 * fontset.h (get_font_repertory_func): New prototype.
20288 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20289 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20290
20291 * fontset.c (Qprepend, Qappend): New variables.
20292 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20293 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20294 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20295 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20296 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20297 (load_font_get_repertory): New functions.
20298 (fontset_set): Delete.
20299 (fontset_face): New arg FACE. Return face ID, not face.
20300 Complete re-write to handle new fontset structure. Change caller.
20301 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20302 (face_for_char): Don't call lookup_face.
20303 (make_fontset_for_ascii_face): New arg FACE.
20304 (fs_load_font): New arg CHARSET_ID. Don't check
20305 Vfont_encoding_alist here.
20306 (find_font_encoding): New function.
20307 (list_fontsets): Use STRINGP, not ! NILP.
20308 (accumulate_script_ranges): New function.
20309 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20310 re-written to handle new fontset structure.
20311 (Ffontset_font): Return a copy of element.
20312 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20313 docstring of font-encoding-alist.
20314
20315 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20316 (Fset_fotset_font): Fix arguments to 5.
20317
20318 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20319
20320 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20321 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20322 (highlight_trailing_whitespace): Adjust for the change of
20323 lookup_named_face.
20324
20325 * xfaces.c: Include charset.h.
20326 (load_face_font): Delete argument C. Change caller.
20327 (generate_ascii_font_name): Rename from generate_ascii_font.
20328 (font_name_registry): New function.
20329 (cache_face): Store ascii faces before non-ascii faces in buckets.
20330 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20331 Lookup only ascii faces.
20332 (lookup_non_ascii_face): New function.
20333 (lookup_named_face): Delete argument C. Change caller.
20334 (lookup_derived_face): Delete argument C. Change caller.
20335 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20336 a string, just call font_list with it.
20337 (choose_face_font): Delete arguments FACE and C. New arg
20338 FONT_SPEC. Change caller.
20339 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20340 Change caller.
20341 (realize_non_ascii_face): New function.
20342 (realize_x_face): Call load_face_font here.
20343 (realize_tty_face): Delete argument C. Change caller.
20344 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20345 get a face ID.
20346 (dump_realized_face): Don't print charset of FACE.
20347
20348 * xfns.c (x_set_font): Always call x_new_fontset and
20349 store_frame_parameter.
20350 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20351 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20352
20353 * xterm.h (x_get_font_repertory): Extern it.
20354
20355 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20356 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20357 it->multibyte_p is zero.
20358 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20359 (x_new_fontset): If FONTSETNAME doesn't match any existing
20360 fontsets, create a new one.
20361 (x_get_font_repertory): New function.
20362
203632008-02-01 Kenichi Handa <handa@m17n.org>
20364
20365 * coding.c (Ffind_coding_systems_region_internal): Detect an
20366 ASCII only string correctly.
20367
20368 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20369 version is 0.
20370
203712008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * lread.c: Include "coding.h".
20374 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20375 (load_each_byte, unread_char): New variables.
20376 (readchar_backlog): Delete.
20377 (readchar): Return a character unless load_each_byte is nonzero.
20378 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20379 cons. If unread_char is not -1, simply return it.
20380 (unreadchar): Handle the case that readcharfun is
20381 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20382 (read_multibyte): Delete.
20383 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20384 (read_emacs_mule_char): New functions.
20385 (Fload): Even if the file doesn't have the extension ".elc", if
20386 safe_to_load_p returns a positive version number, assume that the
20387 file contains bytecompiled code. If the version is less than 22,
20388 load the file while decoding multibyte sequences by emacs-mule.
20389 (readevalloop): Don't use readchar_backlog.
20390 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20391 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20392 (read_escape): Delete the arg BYTEREP.
20393 (read1): Set load_each_byte to 1 temporarily while handling
20394 #@NUMBER. Don't call read_multibyte.
20395 (read_vector): Call Fread with a cons. If readcharfun is
20396 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20397 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20398 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20399 and Qload_force_doc_strings.
20400
204012008-02-01 Kenichi Handa <handa@m17n.org>
20402
20403 * xdisp.c (face_before_or_after_it_pos): Call
20404 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20405
204062008-02-01 Kenichi Handa <handa@m17n.org>
20407
20408 * character.h (TRAILING_CODE_P): New macro.
20409 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20410 (string_char_with_unification): Fix prototype.
20411 (Vscript_alist): Extern it.
20412
20413 * character.c (Vscript_alist): New variable.
20414 (string_char_with_unification, str_as_unibyte)
20415 (string_escape_byte8): Add `const' to local variables.
20416 (syms_of_character): Declare script-alist as a Lisp variable.
20417
20418 * charset.h (Vcharset_ordered_list): Extern it.
20419 (charset_ordered_list_tick): Extern it.
20420 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20421 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20422 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20423 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20424 (Funify_charset): Adjust for the change of Funify_charset.
20425
20426 * charset.c (charset_ordered_list_tick): New variable.
20427 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20428 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20429 deunify intead of unify a charset.
20430 (string_xstring_p): Add `const' to local variables.
20431 (find_charsets_in_text): Add `const' to arguments and local variables.
20432 (encode_char): Adjust for the change of Funify_charset. Fix
20433 detecting of invalid code.
20434 (Fset_charset_priority): Increment charset_ordered_list_tick.
20435 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20436 and TO_CODE.
20437
20438 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20439 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20440 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20441 (decode_coding_ccl, consume_chars)
20442 (Ffind_coding_systems_region_internal)
20443 (Fcheck_coding_systems_region): Add `const' to local variables.
20444
20445 * print.c (print_object): Use octal form for printing the
20446 contents of a bool vector.
20447
204482008-02-01 Dave Love <fx@gnu.org>
20449
20450 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20451 <version == 20>: Refuse to load.
20452
204532008-02-01 Dave Love <fx@gnu.org>
20454
20455 * fns.c: Move coding.h.
20456 (Qcodeset, Qdays, Qmonths): New.
20457 (concat): Use CHARACTERP instead of INTEGERP.
20458 (Flocale_codeset): Delete.
20459 (Flanginfo): New function.
20460 (syms_of_fns): Change accordingly.
20461
20462 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20463
204642008-02-01 Dave Love <fx@gnu.org>
20465
20466 * casetab.c (init_casetab_once, init_casetab_once): Fix
20467 CHAR_TABLE_SET call.
20468
20469 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20470
20471 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20472
20473 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20474 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20475 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20476
20477 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20478
20479 * coding.c (ENCODE_DESIGNATION, decode_eol)
20480 (make_conversion_work_buffer, code_conversion_restore)
20481 (Fdefine_coding_system_internal): Convert Lisp types.
20482 (code_conversion_restore): Use EQ, not ==.
20483 (Fencode_coding_string): Fix code_convert_string call.
20484
20485 * coding.h (code_convert_region): Fix prototype.
20486
20487 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20488
20489 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20490 (Ffontset_info): Convert Lisp types.
20491
20492 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20493
20494 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20495
20496 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20497
20498 * chartab.c: Include "...h", not <...h> in some cases.
20499
20500 * callproc.c (Fcall_process): Remove unused variables.
20501
205022008-02-01 Dave Love <fx@gnu.org>
20503
20504 * coding.c (Fset_coding_system_priority): Allow null arg list.
20505
205062008-02-01 Dave Love <fx@gnu.org>
20507
20508 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20509 (Fself_insert_and_exit): Use CHARACTERP.
20510
20511 * callproc.c (Fcall_process): Remove unused vars.
20512
20513 * xterm.c (XTread_socket): Add extra dead keysyms.
20514
20515 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20516
20517 * dispextern.h: Remove prototypes for redraw_frame,
20518 redraw_garbaged_frames.
20519
20520 * cmds.c (Fself_insert_command): Use CHARACTERP.
20521
20522 * chartab.c (make_sub_char_table): Remove unused var.
20523 (Fset_char_table_default, Fmap_char_table): Doc fix.
20524
20525 * keymap.c (access_keymap): Remove generic char code.
20526 (push_key_description): Use CHARACTERP.
20527
205282008-02-01 Dave Love <fx@gnu.org>
20529
20530 * charset.c: Doc fixes.
20531 (Funify_charset): Extra checking.
20532
205332008-02-01 Dave Love <fx@gnu.org>
20534
20535 * lread.c: Remove some unused variables.
20536 (safe_to_load_p): If safe, return the magic number version byte.
20537 (Fload): Maybe use load-with-code-conversion.
20538
205392008-02-01 Kenichi Handa <handa@m17n.org>
20540
20541 * category.c (Fmodify_category_entry): Don't modify the contents
20542 of category_set for characters out of the range. Avoid
20543 unnecessary modification.
20544
20545 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20546 Vchar_unify_table. The default value of the table is now nil.
20547
20548 * character.c (syms_of_character): Setup Vchar_width_table for
20549 eight-bit-control and raw-byte chars.
20550
20551 * charset.h (enum define_charset_arg_index): Delete
20552 charset_arg_parents and add charset_arg_subset and
20553 charset_arg_superset.
20554 (enum charset_attr_index): Delete charset_parents and add
20555 charset_subset and charset_superset.
20556 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20557 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20558 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20559 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20560 (CHARSET_SUPERSET): New macros.
20561 (charset_work): Extern it.
20562 (ENCODE_CHAR): Use charset_work.
20563 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20564 (map_charset_chars): Extern it.
20565
20566 * charset.c (load_charset_map): Set the default value of encoder
20567 and deunifier char-tables to nil.
20568 (map_charset_chars): Change argument. Change callers. Use
20569 map_char_table_for_charset instead of map_char_table.
20570 (Fmap_charset_chars): New optional args from_code and to_code.
20571 (Fdefine_charset_internal): Adjust for the change of
20572 `define-charset' (:parents -> :subset or :superset).
20573 (charset_work): New variable.
20574 (encode_char, syms_of_charset): Adjust for the change of
20575 Fdefine_charset_internal.
20576 (Ffind_charset_string): Setup the vector `charsets' correctly.
20577
20578 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20579 the previous change.
20580 (char_table_ref_and_range): Adjust for the above change.
20581 (map_sub_char_table_for_charset): New function.
20582 (map_char_table_for_charset): New function.
20583
20584 * keymap.c (describe_vector): Handle a char-table directly here.
20585 (describe_char_table): Delete.
20586
20587 * lisp.h (map_charset_chars): Delete.
20588
205892008-02-01 Dave Love <fx@gnu.org>
20590
20591 * fns.c (count_combining): Comment out (unused).
20592 (Flocale_codeset): New.
20593 (syms_of_fns): Defsubr it.
20594
20595 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20596 (size_t): Remove.
20597
205982008-02-01 Dave Love <fx@gnu.org>
20599
20600 * Makefile.in (chartab.o): Depend on charset.h.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * character.c (syms_of_character): Set the default value of
20605 Vprintable_chars to Qnil.
20606
206072008-02-01 Dave Love <fx@gnu.org>
20608
20609 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20610
206112008-02-01 Kenichi Handa <handa@m17n.org>
20612
20613 * charset.c (load_charset_map): Handle the case that from < to
20614 correctly.
20615
20616 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20617 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20618 Pay attention to raw-8-bit chars.
20619
206202008-02-01 Kenichi Handa <handa@m17n.org>
20621
20622 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20623 It is not bytecompiled now.
20624
20625 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20626 (charset_jisx0208): New variables.
20627 (Fdefine_charset_internal): Setup them if appropriate.
20628 (init_charset_once): Initialize them to -1.
20629
20630 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20631 (charset_jisx0208): Extern them.
20632
20633 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20634 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20635 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20636 (setup_iso_safe_charsets): Fix arguments to Fassq.
20637 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20638 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20639 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20640 (encode_coding_iso_2022): Change the 1st arg to
20641 ENCODE_ISO_CHARACTER to a variable.
20642
206432008-02-01 Kenichi Handa <handa@m17n.org>
20644
20645 * charset.h (enum define_charset_arg_index): New enums
20646 charset_arg_min_code and charset_arg_max_code.
20647 (struct charset): New member char_index_offset.
20648
20649 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20650 Take charset->char_index_offset into account.
20651 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20652 args[charset_arg_max_code]. Setup charset.char_index_offset.
20653 (syms_of_charset): Fix args to Fdefine_charset_internal.
20654
206552008-02-01 Dave Love <fx@gnu.org>
20656
20657 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20658
206592008-02-01 Dave Love <fx@gnu.org>
20660
20661 * coding.c: Doc fixes.
20662 (Fcoding_system_aliases): Fix return value.
20663 (Qmac): Remove (duplicated) definition.
20664
206652008-02-01 Dave Love <fx@gnu.org>
20666
362654a6
JB
20667 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20668 New functions.
aac0c6e3
MR
20669
20670 * character.c (Fstring): Doc fix.
20671
20672 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20673
362654a6 20674 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20675 (font-encoding-alist): Doc fix.
20676
206772008-02-01 Dave Love <fx@gnu.org>
20678
20679 * term.c (costs_set): Declare static, non-initialized for pcc.
20680 (encode_terminal_code): Remove unused var.
20681
20682 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20683 for K&R.
20684
20685 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20686
20687 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20688 (suffixes): Move out of make_subsidiaries for K&R.
20689
20690 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20691
20692 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20693
206942008-02-01 Dave Love <fx@gnu.org>
20695
20696 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20697
20698 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20699
207002008-02-01 Yong Lu <lyongu@asia-infonet.com>
20701
20702 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20703
20704 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20705
207062008-02-01 Kenichi Handa <handa@m17n.org>
20707
20708 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20709 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20710
207112008-02-01 Kenichi Handa <handa@m17n.org>
20712
20713 * coding.c (decode_coding_charset): Adjust for the change of
20714 Fdefine_coding_system_internal.
20715 (Fdefine_coding_system_internal): For a coding system of
20716 `charset' type, store a list of charset IDs in
20717 `charset_attr_charset_valids' element of coding attributes.
20718
207192008-02-01 Kenichi Handa <handa@m17n.org>
20720
20721 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20722 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20723 caller. Handle 2-byte and 3-byte charsets correctly.
20724 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20725 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20726 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20727 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20728 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20729 sequence.
20730 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20731 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20732 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20733 and alt&rule composition.
20734 (decode_coding_iso_2022): Handle composition correctly.
20735 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20736
20737 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20738 re-defining a charset. If the charset has :emacs-mule-id, setup
20739 emacs_mule_bytes.
20740 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20741
207422008-02-01 Kenichi Handa <handa@m17n.org>
20743
20744 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20745 (encode_coding_big5, encode_coding_charset): If coding requires safe
20746 encoding, produce a character specified by
20747 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20748
207492008-02-01 Dave Love <fx@gnu.org>
20750
20751 * xterm.c (XSetIMValues): Declare.
20752
20753 * process.c: Conditionally include sys/wait.h, pty.h.
20754
20755 * print.c (print_object): Fix print format for 64-bit systems.
20756
20757 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20758
20759 * buffer.c (emacs_strerror): Declare.
20760
20761 * fontset.c (Fclear_face_cache): Declare.
20762 (accumulate_font_info): Comment-out (unused).
20763 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20764 variables.
20765
20766 * character.h (string_escape_byte8): Declare.
20767
20768 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20769 unused vars.
20770 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20771 (Fmap_charset_chars): Doc fix.
20772
20773 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20774 (Fset_coding_system_priority, Fset_coding_system_priority)
20775 (Fdefine_coding_system_internal): Doc fix.
20776
207772008-02-01 Dave Love <fx@gnu.org>
20778
20779 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20780
207812008-02-01 Kenichi Handa <handa@m17n.org>
20782
20783 * character.c (string_escape_byte8): Make multibyte string with
20784 correct size.
20785
20786 * charset.c (Fmake_char): Delete unnecessary code.
20787
207882008-02-01 Kenichi Handa <handa@m17n.org>
20789
20790 * xfns.c (x_encode_text): Allocate coding.destination here, and
20791 call encode_coding_object with dst_object Qnil.
20792
20793 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20794 multibyte form correctly.
20795
20796 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20797 against Vfont_encoding_alist.
20798
20799 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20800 handling of charset list.
20801 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20802 (decode_coding_object): Move point to coding->dst_pos before
20803 calling post-read-conversion function.
20804 (encode_coding_object): Give correct arguments to
20805 pre-write-conversion. Ignore the return value of
20806 pre-write-conversion function. Pay attention to the case that
20807 pre-write-conversion changes the current buffer. If dst_object is
20808 Qt, even if coding->src_bytes is zero, allocate at least one byte
20809 to coding->destination.
20810
20811 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20812
20813 * charset.c (Fmake_char): Make it more backward compatible.
20814 (Fmap_charset_chars): Fix docstring.
20815
208162008-02-01 Dave Love <fx@gnu.org>
20817
20818 * coding.c: Doc fixes.
20819 (Fdefine_coding_system_alias): Use names, not symbols, in
20820 coding-system-alist.
20821
208222008-02-01 Kenichi Handa <handa@m17n.org>
20823
20824 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20825 of calling free_realized_face.
20826
208272008-02-01 Yong Lu <lyongu@asia-infonet.com>
20828
20829 * charset.c (read_hex): Don't treat SPC as a comment starter.
20830 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20831 (Fdecode_char): Fix typo.
20832
208332008-02-01 Kenichi Handa <handa@m17n.org>
20834
20835 * charset.h (struct charset): New member `code_space_mask'.
20836
20837 * coding.c (coding_set_source): Delete the local variable beg_byte.
20838 (encode_coding_charset, Fdefine_coding_system_internal):
20839 Delete the local variable charset.
20840 (Fdefine_coding_system_internal): Setup
20841 attrs[coding_attr_charset_valids] correctly.
20842
20843 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20844 member to check if CODE is valid or not.
20845 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20846 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20847 is within the range of charset->min_code and carset->max_code.
20848
208492008-02-01 Dave Love <fx@gnu.org>
20850
20851 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20852
20853 * dispextern.h (generate_ascii_font): Fix return type.
20854
20855 * xfaces.c (generate_ascii_font): Fix arg declaration.
20856
20857 * coding.c (coding_inherit_eol_type)
20858 (Fset_terminal_coding_system_internal)
20859 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20860
208612008-02-01 Kenichi Handa <handa@m17n.org>
20862
20863 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20864 multiple charsets correctly.
20865
208662008-02-01 Kenichi Handa <handa@m17n.org>
20867
20868 * search.c (boyer_moore): Fix handling of multibyte character
20869 translation.
20870
20871 * xdisp.c (display_mode_element): When the variable `elt' is
20872 changed, update `this' and `lisp_string'.
20873
208742008-02-01 Kenichi Handa <handa@m17n.org>
20875
20876 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20877
20878 * callproc.c (Fcall_process): Be sure to give the current buffer
20879 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20880
20881 * charset.c (struct charset_map_entries): New struct.
20882 (load_charset_map): Rename from parse_charset_map. New args
20883 entries and n_entries. Change caller.
20884 (load_charset_map_from_file): Rename from load_charset_map.
20885 Change caller. New arg control_flag. Call load_charset_map at
20886 the tail.
20887 (load_charset_map_from_vector): New function.
20888 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20889 (encode_char): If the charset is compact, change a character index
20890 to a code point.
20891
20892 * coding.c (coding_alloc_by_making_gap): Check the case that the
20893 source and destination are the same correctly.
20894 (decode_coding_raw_text): Set coding->consumed_char and
20895 coding->consumed to 0.
20896 (produce_chars): If coding->chars_at_source is nonzero, update
20897 coding->consumed_char and coding->consumed before calling
20898 alloc_destination.
20899 (Fdefine_coding_system_alias): Register ALIAS in
20900 Vcoding_system_alist.
20901 (syms_of_coding): Define `no-conversion' coding system at the tail.
20902
20903 * fileio.c (Finsert_file_contents): Set coding_system instead of
20904 val. If the current buffer is multibyte, always call
20905 decode_coding_gap.
20906
20907 * xfaces.c (try_font_list): Give higher priority to fontset's
20908 family than face's family.
20909
209102008-02-01 Kenichi Handa <handa@m17n.org>
20911
20912 * callproc.c (Fcall_process): Be sure to give the current buffer
20913 to decode_coding_c_string.
20914
20915 * xfaces.c (try_font_list): Give a family specified in a fontset
20916 higher priority than a family specified in a face.
20917
209182008-02-01 Kenichi Handa <handa@m17n.org>
20919
20920 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20921 Fix arguments to insert_from_buffer.
20922
20923 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20924
209252008-02-01 Kenichi Handa <handa@m17n.org>
20926
20927 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20928 (decode_coding_gap): Set coding->dst_multibyte correctly.
20929
209302008-02-01 Kenichi Handa <handa@m17n.org>
20931
20932 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20933 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20934 (encode_coding_utf_16): Substitute coding->default_char for
20935 non-Unicode characters.
20936 (decode_coding): Don't call record_insert here.
20937 (setup_coding_system): Initialize `surrogate' of
20938 coding->spec.utf_16 to 0.
20939 (EMIT_ONE_BYTE): Fix for multibyte case.
20940
20941 * insdel.c (insert_from_gap): Call record_insert.
20942
209432008-02-01 Kenichi Handa <handa@m17n.org>
20944
20945 * casefiddle.c (casify_region): Fix multibyte case.
20946
20947 * character.c (c_string_width): Add return type `int'.
20948 (char_string_with_unification): Delete arg ADVANCED.
20949
20950 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20951 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20952 (CHAR_STRING_ADVANCE): Make it do-while statement.
20953
20954 * chartab.c (sub_char_table_set_range): Optimize for the case
20955 DEPTH == 3. Add workaround code for a GCC optimization bug.
20956
20957 * charset.c (parse_charset_map): Remove an unused variable.
20958
20959 * coding.c: Delete unused variables.
20960
20961 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20962 earlier. If inserted is zero and the coding system doesn't
20963 require flushing, don't call decode_coding_gap.
20964
20965 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20966
209672008-02-01 Kenichi Handa <handa@m17n.org>
20968
20969 The following changes are for using Unicode as an internal
20970 character model, and use UTF-8 format for buffer/string
20971 representation.
20972
20973 * .gdbinit (xchartable): Adjust for the change of char table structure.
20974 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20975
20976 * Makefile.in (obj): Add character.o and chartab.o.
20977 (lisp, shortlisp): Remove utf-8.elc.
20978 (*.o): For many files, change dependency on charset.h to
20979 character.h, and add dependency on character.h.
20980 (character.o, chartab.o): New targets.
20981
20982 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20983 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20984 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20985 of "charset.h".
20986
20987 * dired.c, filelock.c: Include "character.h".
20988
20989 * alloc.c: Include "character.h" instead of "charset.h".
20990 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20991 (syms_of_alloc): Remove defsubr for Smake_char_table.
20992
20993 * buffer.c: Include "character.h" instead of "charset.h", don't
20994 include "coding.h".
20995 (Fset_buffer_multibyte): Adjust for UTF-8.
20996
20997 * buffer.h: EXFUN Fbuffer_live_p.
20998
20999 * callproc.c: Include "character.h" instead of "charset.h".
21000 (Fcall_process): Big change for the new code-conversion APIs.
21001
21002 * casetab.c: Include "character.h" instead of "charset.h".
21003 (set_canon, set_identity, shuffle): Adjust for the new
21004 map_char_table spec.
21005 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21006 accessing the char table structure.
21007
21008 * chartab.c: New file that implements char table.
21009
21010 * category.c: Include "character.h".
21011 (copy_category_entry): New function.
21012 (copy_category_table): Call map_char_table and copy_category_entry.
21013 (Fmake_category_table): Initialize all top-level slots.
21014 (char_category_set): New function.
21015 (modify_lower_category_set): Delete.
21016 (Fmodify_category_entry): Call char_table_ref_and_range.
21017
21018 * category.h (CATEGORY_SET): Just call char_category_set.
21019
21020 * ccl.c: Include "character.h".
21021 (Qccl, Qcclp): New variables.
21022 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21023 it's less than 256.
21024 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21025 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21026 and DST type.
21027 (ccl_driver): Change types of argument, adjust code accordingly.
21028 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21029 ccl_driver.
21030 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21031
21032 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21033 New members src_multibyte, dst_multibyte, consumed, and produced.
21034 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21035 (CODING_SPEC_CCL_PROGRAM): New macro.
21036 (ccl_driver): Update prototype.
21037 (Qccl, Qcclp, Fccl_program_p): Extern them.
21038 (CHECK_CCL_PROGRAM): New macro.
21039
21040 * character.c, character.h, chartab.c: New files.
21041
21042 * charset.c: Mostly re-written. Move character and multibyte sequence
21043 handling codes to character.c.
21044
21045 * charset.h: Mostly re-written. Move character and multibyte sequence
21046 handling codes to character.h.
21047
21048 * coding.c, coding.h: Mostly re-written.
21049
21050 * composite.c: Include "character.h" instead of "charset.h".
21051 (CHAR_WIDTH): Move to character.h.
21052 (HASH_KEY, HASH_VALUE): Delete.
21053
21054 * composite.h (enum composition_method): Change order of enumeration
21055 symbols.
21056
21057 * data.c: Include "character.h" instead of "charset.h".
21058 (Faref): Call CHAR_TABLE_REF for a char table.
21059 (Faset): Call CHAR_TABLE_SET for a char table.
21060
21061 * dispextern.h (free_realized_face, check_face_attribytes)
21062 (generate_ascii_font): Extern them.
21063 (free_realized_multibyte_face): Delete extern.
21064
21065 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21066 table structure.
21067
21068 * editfns.c: Include "character.h" instead of "charset.h".
21069 (Fchar_to_string): Always call CHAR_STRING.
21070
21071 * emacs.c (main): Call init_charset_once, init_charset,
21072 syms_of_chartab, and syms_of_character.
21073
21074 * fileio.c: Include "character.h" instead of "charset.h".
21075 (Finsert_file_contents): Big change for the new code-conversion API.
21076 (choose_write_coding_system, Fwrite_region): Likewise.
21077 (build_annotations_2): Delete.
21078 (e_write): Big change for the new code-conversion API.
21079
21080 * fns.c: Include "character.h" instead of "charset.h".
21081 (copy_sub_char_table): Move to chartab.c.
21082 (Fcopy_sequence): Call copy_char_table for a char table.
21083 (concat): Delete codes calling count_multibyte.
21084 (string_char_to_byte, string_byte_to_char): Adjust for the new
21085 multibyte form.
21086 (internal_equal): Adjust for the change of char table structure.
21087 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21088 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21089 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21090 (char_table_translate, optimize_sub_char_table)
21091 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21092 chartab.c.
21093 (char_table_ref_and_index): Delete.
21094 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21095 (Fmd5): Call preferred_coding_system instead of accessing
21096 Vcoding_category_list. Adjust for the new code-conversion API.
21097 (syms_of_fns): Move defsubr for char table related functions to
21098 chartab.c.
21099
21100 * fontset.c: Mostly re-written.
21101
21102 * fontset.h (struct font_info): Change type of the member encoding_type.
21103 (enum FONT_SPEC_INDEX): New enum.
21104 (fontset_font_pattern, fs_load_font): Update prototype.
21105 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21106
21107 * indent.c: Include "character.h" instead of "charset.h".
21108 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21109
21110 * insdel.c: Include "character.h" instead of "charset.h".
21111 (copy_text): Don't refer to Vnonascii_translation_table.
21112 (insert_from_gap): New function.
21113
21114 * keyboard.c: Include "character.h" instead of "charset.h".
21115 (command_loop_1): Never call direct_output_forward_char before
21116 a non-ASCII character.
21117 (read_char): If Vkeyboard_translate_table is a char table, always
21118 translate a character.
21119
21120 * keymap.c: Include "character.h".
21121 (store_in_keymap): Handle the case that IDX is a cons.
21122 (Fdefine_key): Handle the case that KEY is a cons and the car part
21123 is also a cons (range).
21124 (push_key_description): Adjust for the new character code.
21125 (describe_vector): Call describe_char_table for a char table.
21126 (describe_char_table): New function.
21127
21128 * keymap.h (describe_char_table): Extern it.
21129
21130 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21131 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21132 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21133 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21134 Delete.
21135 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21136 structure.
21137 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21138 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21139 (CHARTAB_SIZE_BITS_3): New macros.
21140 (chartab_size): Extern it.
21141 (struct Lisp_Char_Table): Re-design.
21142 (struct Lisp_Sub_Char_Table): New structure.
21143 (HASH_KEY, HASH_VALUE): Move from fns.c.
21144 (CHARACTERBITS): Define as 22.
21145 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21146 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21147 (GC_SUB_CHAR_TABLE_P): New macro.
21148 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21149 (code_convert_string_norecord): Deleted extern.
21150 (init_character_once, syms_of_character, init_charset)
21151 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21152
21153 * lread.c: Include "character.h".
21154 (read_multibyte): New arg NBYTES.
21155 (read_escape): Change the meaning of returned *BYTEREP.
21156 (to_multibyte): Delete.
21157 (read1): Adjust the handling of char table and string.
21158
21159 * print.c: Include "character.h" instead of "charset.h".
21160 (print_string): Convert 8-bit raw bytes to octal form by
21161 string_escape_byte8.
21162 (print_object): Adjust for the new multibyte form. Print 8-bit
21163 raw bytes always in octal form. Handle sub char table correctly.
21164
21165 * process.c: Include "character.h" instead of "charset.h".
21166 (read_process_output, send_process): Adjust for the new
21167 code-conversion API.
21168
21169 * puresize.h (BASE_PURESIZE): Increase.
21170
21171 * regex.c: Include "character.h" instead of "charset.h".
21172 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21173 (regex_compile): Accept a range whose starting and ending
21174 character have different leading bytes.
21175 (analyse_first): Adjust for the above change.
21176
21177 * search.c: Include "character.h" instead of "charset.h".
21178 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21179 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21180
21181 * syntax.c: Include "character.h" instead of "charset.h".
21182 (syntax_parent_lookup): Delete.
21183 (Fmodify_syntax_entry): Accept a cons as CHAR.
21184 (skip_chars): Adjust for the new multibyte form.
21185 (init_syntax_once): Call char_table_set_range instead of directly
21186 accessing the structure of a char table.
21187
21188 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21189 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21190 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21191 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21192
21193 * term.c: Include "buffer.h" and "character.h".
21194 (encode_terminal_code, write_glyphs): Adjust for the new
21195 code-conversion API.
21196 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21197
21198 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21199
21200 * xdisp.c: Include "character.h".
21201 (get_next_display_element): Adjust for the new multibyte form.
21202 (disp_char_vector): Adjust for the new char table structure.
21203 (decode_mode_spec_coding): Adjust for the new structure of
21204 coding system.
21205 (decode_mode_spec): Adjust for the new code-conversion API.
21206
21207 * xfaces.c: Include "character.h" instead of "charset.h".
21208 (load_face_font): Adjust for the change of choose_face_font and
21209 FS_LOAD_FONT.
21210 (generate_ascii_font): New function.
21211 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21212 (set_font_frame_param): Adjust for the change of choose_face_font.
21213 (free_realized_face): Make it public.
21214 (free_realized_faces_for_fontset): Rename from
21215 free_realized_multibyte_face. Free also faces realized for ASCII.
21216 (choose_face_font): Change arguments. Adjust for the change of
21217 fontset_font_pattern and FS_LOAD_FONT.
21218
21219 * xfns.c: Include "character.h".
21220 (x_encode_text): Adjust for the new code-conversion API.
21221
21222 * xselect.c: Don't include "charset.h".
21223 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21224
21225 * xterm.c: Include "character.h".
21226 (x_encode_char): New argument CHARSET. Change caller.
21227 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21228 Call ENCODE_CHAR instead of SPLIT_CHAR.
21229 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21230 CHAR_WIDTH instead of CHARSET_WIDTH.
21231 (XTread_socket): Adjust for the new code-conversion API.
21232 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21233 (x_load_font): Adjust for the change of struct font.
21234
212352008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21236
21237 * xfaces.c (face_at_buffer_position): Remove unused vars.
21238
212392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21240
21241 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21242 Fix overflow checking.
21243
212442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21245
21246 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21247 Cancel previous change.
21248
212492008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21250
21251 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21252 ccl->eight_bit_control. Fix check for buffer overflow.
21253 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21254 (ccl_driver): Initialize extra_bytes to 0.
21255
212562008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21257
21258 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21259 return it ORed with ctrl_modifier.
21260
212612008-01-29 Miles Bader <miles@gnu.org>
21262
21263 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21264
212652008-01-28 Jason Rumney <jasonr@gnu.org>
21266
21267 * w32.c (stat): Don't double check for networked drive.
21268
212692008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * window.c (run_window_configuration_change_hook): New function.
21272 Code extracted from set_window_buffer. Set the selected frame.
21273 (set_window_buffer): Use it.
21274 * window.h (run_window_configuration_change_hook): Declare.
21275 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21276
21277 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21278
212792008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21280
21281 * Makefile.in: Remove references to unused macros.
21282
212832008-01-26 Eli Zaretskii <eliz@gnu.org>
21284
21285 * w32.c (g_b_init_get_sid_sub_authority)
21286 (g_b_init_get_sid_sub_authority_count): New static variables.
21287 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21288 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21289 (init_user_info): Use them to retrieve uid and gid.
21290 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21291 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21292 st_uid and st_gid of the file.
21293
212942008-01-26 Jason Rumney <jasonr@gnu.org>
21295
21296 * w32.c (logon_network_drive): New function.
21297 (stat): Use it.
21298
212992008-01-26 Chong Yidong <cyd@stupidchicken.com>
21300
21301 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21302 invisible text covered with an ellipsis.
21303
213042008-01-25 Richard Stallman <rms@gnu.org>
21305
21306 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21307 jump back to beginning. Move some other initializations after that.
21308 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21309 New variables.
21310 (syms_of_xdisp): Init them.
21311
21312 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21313
21314 * buffer.c (reset_buffer_local_variables):
21315 Implement `permanent-local-hook'.
21316 (Qpermanent_local_hook): New variable.
21317 (syms_of_buffer): Init and staticpro it.
21318
213192008-01-25 Michael Albinus <michael.albinus@gmx.de>
21320
21321 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21322
213232008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21324
21325 * fns.c (Fclrhash): Return TABLE.
21326
213272008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21328
21329 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21330 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21331 is set even without positional changes.
21332 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21333
21334 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21335
213362008-01-23 Jason Rumney <jasonr@gnu.org>
21337
21338 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21339
21340 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21341 the unicode range available in MULE by locale-coding-system.
21342 Improve dbcs lead byte detection. Set event timestamp and modifiers
21343 earlier.
21344
213452008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21346
21347 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21348 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21349 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21350 when used on child processes.
21351
213522008-01-21 Michael Albinus <michael.albinus@gmx.de>
21353
21354 * dbusbind.c (Fdbus_method_return_internal): Rename from
21355 Fdbus_method_return.
21356 (Fdbus_unregister_object): Move to dbus.el.
21357 (Fdbus_call_method, Fdbus_method_return_internal)
21358 (Fdbus_send_signal): Improve debug messages.
21359
213602008-01-20 Martin Rudalics <rudalics@gmx.at>
21361
21362 * undo.c (undo_inhibit_record_point): New variable.
21363 (syms_of_undo): Initialize it.
21364 (record_point): Don't record point when undo_inhibit_record_point
21365 is set.
21366
213672008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21368
21369 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21370
21371 * xdisp.c (Qauto_hscroll_mode): New var.
21372 (syms_of_xdisp): Initialize it.
21373 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21374 window's buffer.
21375 (hscroll_windows): Don't check automatic_hscrolling_p here.
21376
21377 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21378 vscroll if we're setting window-buffer to the value it already has.
21379
213802008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21381
21382 * m/intel386.h: Remove references to XENIX.
21383
213842008-01-17 Andreas Schwab <schwab@suse.de>
21385
21386 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21387 instead of HAVE_X86_64_LIB64_DIR.
21388 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21389
213902008-01-17 Glenn Morris <rgm@gnu.org>
21391
21392 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21393 to HAVE_X86_64_LIB64_DIR.
21394
213952008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21396
21397 * s/irix3-3.h:
21398 * s/irix4-0.h:
21399 * s/386-ix.h:
21400 * s/domain.h:
21401 * s/hpux9-x11r4.h:
21402 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21403
21404 * sysdep.c: Remove code containing references to symbols defined
21405 by unsupported systems.
21406
214072008-01-16 Glenn Morris <rgm@gnu.org>
21408
21409 * coding.c (select-safe-coding-system-function): Doc fix.
21410
214112008-01-15 Glenn Morris <rgm@gnu.org>
21412
21413 * config.in: Revert 2008-01-13 change: this is a generated file.
21414
214152008-01-13 Tom Tromey <tromey@redhat.com>
21416
21417 * lisp.h: Fix typo.
21418
214192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21420
21421 * m/sequent-ptx.h:
21422 * m/sequent.h:
21423 * s/ptx.h:
21424 * s/ptx4-2.h:
21425 * s/ptx4.h: Remove files for systems no longer supported.
21426
21427 * callproc.c (Fcall_process): Fix previous change.
21428
214292008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21430
21431 * unexsunos4.c: Remove file, system not supported anymore.
21432
21433 * m/mips.h:
21434 * m/intel386.h:
21435 * callproc.c:
21436 * config.in:
21437 * ecrt0.c:
21438 * emacs.c:
21439 * fileio.c:
21440 * frame.c:
21441 * getpagesize.h:
21442 * keyboard.c:
21443 * lread.c:
21444 * process.c:
21445 * puresize.h:
21446 * sysdep.c:
21447 * systty.h:
21448 * syswait.h:
21449 * unexec.c:
21450 * xdisp.c:
21451 * alloc.c: Remove code containing references to symbols defined by
21452 unsupported systems.
21453
214542008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21455
21456 * coding.c (detect_coding_mask): Fix previous change.
21457
214582008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21459
21460 * coding.c (detect_coding_iso2022): New arg
21461 latin_extra_code_state. Allow Latin extra codes only
21462 when *latin_extra_code_state is nonzero.
21463 (detect_coding_mask): If there is a NULL byte, detect the encoding
21464 as UTF-16 or binary. If Latin extra codes exist, detect the
21465 encoding as ISO-2022 only when there's no other proper encoding is
21466 found.
21467
214682008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21469
21470 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21471 #ifdef MAC_OS.
21472
214732008-01-08 Richard Stallman <rms@gnu.org>
21474
21475 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21476
214772008-01-06 Nick Roberts <nickrob@snap.net.nz>
21478
21479 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21480 menu bar in parentheses.
21481
214822008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21483
21484 * m/7300.h:
21485 * m/acorn.h:
21486 * m/alliant-2800.h:
21487 * m/alliant.h:
21488 * m/alliant1.h:
21489 * m/alliant4.h:
21490 * m/altos.h:
21491 * m/amdahl.h:
21492 * m/apollo.h:
21493 * m/att3b.h:
21494 * m/aviion-intel.h:
21495 * m/aviion.h:
21496 * m/celerity.h:
21497 * m/clipper.h:
21498 * m/cnvrgnt.h:
21499 * m/convex.h:
21500 * m/cydra5.h:
21501 * m/delta88k.h:
21502 * m/dpx2.h:
21503 * m/dual.h:
21504 * m/elxsi.h:
21505 * m/f301.h:
21506 * m/gould-np1.h:
21507 * m/gould.h:
21508 * m/i860.h:
21509 * m/ibmps2-aix.h:
21510 * m/ibmrt-aix.h:
21511 * m/ibmrt.h:
21512 * m/irist.h:
21513 * m/is386.h:
21514 * m/isi-ov.h:
21515 * m/mega68.h:
21516 * m/mg1.h:
21517 * m/news-r6.h:
21518 * m/news-risc.h:
21519 * m/news.h:
21520 * m/nh3000.h:
21521 * m/nh4000.h:
21522 * m/ns16000.h:
21523 * m/ns32000.h:
21524 * m/nu.h:
21525 * m/orion.h:
21526 * m/orion105.h:
21527 * m/paragon.h:
21528 * m/pfa50.h:
21529 * m/plexus.h:
21530 * m/pyramid.h:
21531 * m/pyrmips.h:
21532 * m/sh3el.h:
21533 * m/sps7.h:
21534 * m/sr2k.h:
21535 * m/stride.h:
21536 * m/sun1.h:
21537 * m/sun2.h:
21538 * m/sun3-68881.h:
21539 * m/sun3-fpa.h:
21540 * m/sun3-soft.h:
21541 * m/sun3.h:
21542 * m/sun386.h:
21543 * m/symmetry.h:
21544 * m/tad68k.h:
21545 * m/tahoe.h:
21546 * m/targon31.h:
21547 * m/tek4300.h:
21548 * m/tekxd88.h:
21549 * m/tower32.h:
21550 * m/tower32v3.h:
21551 * m/ustation.h:
21552 * m/wicat.h:
21553 * m/xps100.h:
21554 * s/cxux.h:
21555 * s/cxux7.h:
21556 * s/dgux.h:
21557 * s/dgux4.h:
21558 * s/dgux5-4-3.h:
21559 * s/dgux5-4r2.h:
21560 * s/esix.h:
21561 * s/esix5r4.h:
21562 * s/hiuxmpp.h:
21563 * s/hiuxwe2.h:
21564 * s/iris3-5.h:
21565 * s/iris3-6.h:
21566 * s/isc2-2.h:
21567 * s/isc3-0.h:
21568 * s/isc4-0.h:
21569 * s/isc4-1.h:
21570 * s/newsos5.h:
21571 * s/newsos6.h:
21572 * s/osf1.h:
21573 * s/osf5-0.h:
21574 * s/riscix1-1.h:
21575 * s/riscix12.h:
21576 * s/sco4.h:
21577 * s/sco5.h:
21578 * s/sunos4-0.h:
21579 * s/sunos4-1.h:
21580 * s/sunos413.h:
21581 * s/sunos4shr.h:
21582 * s/umax.h:
21583 * s/unipl5-2.h:
21584 * s/xenix.h:
21585 * cxux-crt0.s:
21586 * unexapollo.c:
21587 * unexconvex.c:
21588 * unexenix.c:
21589 * unexsni.c: Remove files for systems no longer supported.
21590
21591 * m/intel386.h: Remove references to unsupported systems.
21592
21593 * w32.c (get_emacs_configuration): Remove reference to i860.
21594
21595 * sysdep.c: Remove dead code.
21596
215972008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21598
21599 * s/rtu.h:
21600 * m/masscomp.h: Remove files. Platform is obsolete.
21601
216022008-01-04 Michael Albinus <michael.albinus@gmx.de>
21603
21604 * dbusbind.c (Fdbus_method_return): New function.
21605 (xd_read_message): Add the serial number to the event.
21606 (Fdbus_register_method): Activate the function.
21607
216082008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21609
21610 * keyboard.c (read_key_sequence): Fix typo.
21611
216122008-01-03 Michael Albinus <michael.albinus@gmx.de>
21613
21614 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21615 (xd_signature, xd_append_arg): Handle element type detection for
21616 empty arrays.
21617 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21618 SDATA () calls; this must be solved more general.
21619 (Fdbus_register_signal): Use SBYTES instead of strlen.
21620
216212008-01-03 Magnus Henoch <magnus@zemdatav>
21622
21623 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21624 unsigned int for byte values (necessary for big-endian platform).
21625 (Fdbus_call_method): Handle the case of no returned arguments.
21626
216272007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21628
21629 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21630
216312007-12-31 Magnus Henoch <mange@freemail.hu>
21632
21633 * dbusbind.c (xd_signature): Signature of variant is just "v".
21634
216352007-12-30 Michael Albinus <michael.albinus@gmx.de>
21636
21637 * dbusbind.c: Fix several errors and compiler warnings.
21638 Reported by Tom Tromey <tromey@redhat.com>.
21639 (XD_ERROR, XD_DEBUG_MESSAGE)
21640 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21641 (xd_append_arg): Part for basic D-Bus types rewritten.
21642 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21643 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21644 appropriate.
21645 (xd_read_message): Return Qnil. Don't signal an error; it is not
21646 useful during event reading.
21647 (Fdbus_register_signal): Signal an error if the check for
21648 FUNCTIONP fails.
21649 (Fdbus_register_method): New function. The implementation is not
21650 complete, the call of the function signals an error therefore.
21651 (Fdbus_unregister_object): New function, renamed from
21652 Fdbus_unregister_signal. The initial check signals an error, if
21653 the object is not well formed.
21654
216552007-12-30 Richard Stallman <rms@gnu.org>
21656
21657 * textprop.c (get_char_property_and_overlay):
21658 Signal error if POSITION is out of range in a buffer.
21659
216602007-12-29 Martin Rudalics <rudalics@gmx.at>
21661
21662 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21663 because the original parameters are in pure storage now.
21664
216652007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21666
21667 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21668
216692007-12-22 Eli Zaretskii <eliz@gnu.org>
21670
21671 * callint.c (syms_of_callint) <command-history>: Add reference to
21672 history-length in the doc string.
21673
216742007-12-17 Jason Rumney <jasonr@gnu.org>
21675
21676 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21677 before passing as wParam.
21678
216792007-12-22 Michael Albinus <michael.albinus@gmx.de>
21680
21681 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21682 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21683 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21684 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21685 as number.
21686 (Fdbus_call_method): Fix docstring.
21687
216882007-12-21 Michael Albinus <michael.albinus@gmx.de>
21689
21690 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21691 New macros.
21692 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21693 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21694 Simplify.
21695 (xd_signature): New function.
21696 (xd_append_arg): Compute also signatures. Major rewrite.
21697 (xd_retrieve_arg): Make debug messages friendly.
21698 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21699 Check for signatures of arguments.
21700
217012007-12-19 Michael Albinus <michael.albinus@gmx.de>
21702
21703 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21704 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21705 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21706 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21707 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21708 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21709 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21710 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21711 (xd_retrieve_value): Remove. Functionality included in ...
21712 (xd_append_arg): New function.
21713 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21714
217152007-12-16 Michael Albinus <michael.albinus@gmx.de>
21716
21717 * dbusbind.c (top): Include <stdio.h>.
21718 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21719 dbus_message_new_method_call and dbus_message_new_signal.
21720 (Fdbus_register_signal): Rename unique_name to uname.
21721 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21722 non-existing unique name. Fix typos in matching rule. Return an
21723 object which is useful in Fdbus_unregister_signal.
21724 (Fdbus_unregister_signal): Reimplementation, in order to remove
21725 only the corresponding entry.
21726 (Vdbus_registered_functions_table): Change the order of entries.
21727 Apply these changes in xd_read_message and Fdbus_register_signal.
21728
217292007-12-16 Andreas Schwab <schwab@suse.de>
21730
21731 * fileio.c (Finsert_file_contents): Fix overflow check to not
21732 depend on undefined integer overflow.
21733
217342007-12-14 Jason Rumney <jasonr@gnu.org>
21735
21736 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21737 for characters above 127.
21738
217392007-12-13 Jason Rumney <jasonr@gnu.org>
21740
21741 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21742 before dereferencing array.
21743 (lookup_vk_code): Remove zero comparison.
21744
217452007-12-14 Michael Albinus <michael.albinus@gmx.de>
21746
21747 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21748 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21749 Use `unsigned int' instead of `uint'.
21750 (xd_read_message, Fdbus_register_signal): Split expressions into
21751 multiple lines before operators "&&" and "||", according to the
21752 GNU Coding Standards.
21753
217542007-12-14 Eli Zaretskii <eliz@gnu.org>
21755
21756 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21757
217582007-12-12 Juri Linkov <juri@jurta.org>
21759
21760 * buffer.c (Frename_buffer): In interactive spec replace
21761 `read-buffer' with `read-string' that uses `buffer-name-history'
21762 as history, and the current buffer's name as default.
21763
217642007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21765
21766 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21767 manipulating the backtrace manually.
21768 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21769 (struct backtrace, backtrace_list): Remove.
21770 (command_loop_1): Remove dead var `no_direct'.
21771
21772 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21773 preserve non-built-in buffer-local variables.
21774 (Fkill_all_local_variables): Don't re-create&re-set permanent
21775 buffer-local variables.
21776
217772007-12-09 Juri Linkov <juri@jurta.org>
21778
21779 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21780 Lisp code that uses `read-buffer' with current buffer as default.
21781
217822007-12-08 Michael Albinus <michael.albinus@gmx.de>
21783
21784 * dbusbind.c (xd_read_message): Generate an event for every
21785 registered handler. There might be several handlers registered
21786 for the same signal.
21787 (Fdbus_register_signal): Don't overwrite a registration for the
21788 same signal. Add a new registration if handlers are different.
21789 (Vdbus_registered_functions_table): Rework doc string.
21790
217912007-12-07 Michael Albinus <michael.albinus@gmx.de>
21792
21793 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21794 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21795 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21796 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21797 Unify argument lists.
21798 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21799 arguments and hash table keys. Use unique name for service.
21800 (Fdbus_unregister_signal): Remove checks.
21801 (Vdbus_registered_functions_table): Fix doc string.
21802
218032007-12-05 Magnus Henoch <mange@freemail.hu>
21804
21805 * process.c (make_process): Initialize pty_flag to 0.
21806
218072007-12-05 Jason Rumney <jasonr@gnu.org>
21808
21809 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21810 specified XBMs.
21811
218122007-12-05 Richard Stallman <rms@gnu.org>
21813
21814 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21815
218162007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21817
21818 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21819 New variable.
21820 (mac_try_close_socket) [MAC_OSX]: New function.
21821 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21822 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21823
21824 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21825 Use mac_try_close_socket.
21826
218272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21828
21829 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21830 reloc_base.
21831 (copy_dysymtab): Compute relocation base here.
21832 (rebase_reloc_address) [__ppc64__]: New function.
21833 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21834 changed.
21835
218362007-12-05 Jason Rumney <jasonr@gnu.org>
21837
21838 * w32proc.c (sys_spawnve): Quote args with wildcards.
21839
218402007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21841
21842 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21843 __objc_* sections.
21844 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21845
218462007-12-05 Michael Albinus <michael.albinus@gmx.de>
21847
21848 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21849 Move check for Vdbus_registered_functions_table to
21850 xd_read_queued_messages.
21851 (xd_read_queued_messages): Protect xd_read_message calls by
21852 internal_condition_case_1.
21853
218542007-12-04 Michael Albinus <michael.albinus@gmx.de>
21855
21856 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21857 Qdbus_system_bus and Qdbus_session_bus, respectively.
21858 (Vdbus_intern_symbols): Remove.
21859 (Vdbus_registered_functions_table): New hash table.
21860 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21861 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21862 Rewrite in order to manage registered functions by hash table
21863 Vdbus_registered_functions_table.
21864
218652007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21866
21867 * xterm.c: Update URL to Window Manager Specification in comment.
21868
218692007-12-02 Michael Albinus <michael.albinus@gmx.de>
21870
21871 * config.in (HAVE_DBUS): Add.
21872
21873 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21874 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21875 (obj): Add $(DBUS_OBJ).
21876 (LIBES): Add $(DBUS_LIBS).
21877 (dbusbind.o): New target.
21878
21879 * dbusbind.c: New file.
21880
21881 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21882
21883 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21884 (Qdbus_event): New Lisp symbol.
21885 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21886 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21887 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21888
21889 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21890
218912007-12-01 Richard Stallman <rms@gnu.org>
21892
21893 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21894
218952007-11-30 Jason Rumney <jasonr@gnu.org>
21896
21897 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21898 (w32con_reset_terminal_modes): Clear screen buffer.
21899 (w32_face_attributes): Don't use color indexes that are out of range.
21900 Only reverse the default colors.
21901
21902 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21903 WINDOWSNT.
21904
21905 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21906
219072007-11-29 Jason Rumney <jasonr@gnu.org>
21908
21909 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21910 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21911 if the terminal colors are initialized.
21912 (unspecified_fg, unspecified_bg): Remove unused declarations.
21913
219142007-11-29 Andreas Schwab <schwab@suse.de>
21915
21916 * keyboard.c (apply_modifiers): Fix typo.
21917
219182007-11-29 Richard Stallman <rms@gnu.org>
21919
21920 * keymap.c (Fcurrent_local_map): Doc fix.
21921
219222007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21923
21924 * s/gnu-kfreebsd.h: New file.
21925
219262007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21927
21928 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21929 Don't cast redundantly.
21930
21931 * keyboard.c (KEY_TO_CHAR): New macro.
21932 (parse_modifiers, apply_modifiers): Accept integer arguments.
21933 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21934 for chars and symbol keys.
21935 After doing such remapping, apply function-key-map again.
21936
219372007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21938
21939 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21940 compiled anymore.
21941
219422007-11-26 Andreas Schwab <schwab@suse.de>
21943
21944 * process.c (list_processes_1): Fix indentation level of the
21945 command column.
21946
219472007-11-23 Andreas Schwab <schwab@suse.de>
21948
21949 * editfns.c (Fformat): Handle %c specially since it requires the
21950 argument to be of type int.
21951
219522007-11-23 Markus Triska <markus.triska@gmx.at>
21953
21954 * emacs.c (main): Call init_editfns before init_process, since
21955 init_process sets Vprocess_connection_type depending on OS release.
21956
219572007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21958
21959 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21960 (find_symbol_value): Use do_symval_forwarding.
21961
21962 * data.c (set_internal): Set the value in the `cons-cell' (for
21963 Buffer_Local_values) not only for frame-local variables.
21964
219652007-11-22 Andreas Schwab <schwab@suse.de>
21966
21967 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21968 values to sprintf.
21969 * keymap.c (Fsingle_key_description): Likewise.
21970 * print.c (print_object): Likewise.
21971
219722007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21973
21974 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21975 file for image is nil.
21976
219772007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21978
21979 * term.c: Include stdarg.h.
21980 (fatal): Implement using varargs.
21981 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21982
219832007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21984
21985 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21986 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21987 Update call to buffer_slot_type_mismatch.
21988 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21989 (buffer_slot_type_mismatch): Update.
21990 * buffer.c (buffer_local_types): Remove.
21991 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21992 (defvar_per_buffer): Set the type in the buffer_objfwd.
21993
219942007-11-21 Jason Rumney <jasonr@gnu.org>
21995
21996 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21997 CreateFileMapping returns NULL on failure.
21998
219992007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22000
22001 * search.c (Fset_match_data): Remove the `evaporate' feature.
22002 (unwind_set_match_data): Don't use the `evaporate' feature.
22003
220042007-11-21 Jason Rumney <jasonr@gnu.org>
22005
22006 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22007
22008 * w32console.c (w32con_write_glyphs): Remove unused variables.
22009
220102007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22011
22012 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22013
22014 * s/darwin.h (MULTI_KBOARD): Remove.
22015
22016 * macfns.c (x_create_tip_frame, Fx_create_frame)
22017 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22018
220192007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22020
22021 * buffer.c (Fbuffer_local_value): Remove redundant test.
22022 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22023 than in `current-buffer' to match the comment.
22024 Do the swap using swap_in_global_binding.
22025
22026 * data.c (store_symval_forwarding, set_internal):
22027 * eval.c (specbind): Remove dead code.
22028
22029 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22030 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22031 Since we do not want to see internal Lisp_*fwd objects here.
22032
220332007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22034
22035 * sysdep.c (init_system_name): Use getaddrinfo if available.
22036
22037 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22038 (x_scroll_bar_note_movement): start, end, with, height in struct
22039 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22040
220412007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22042
22043 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22044
220452007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22046
22047 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22048 This undoes Richard's change of 14-Oct-2002.
22049
22050 * alloc.c (allocate_other_vector):
22051 * lisp.h (allocate_other_vector): Remove.
22052
22053 * window.c (struct save_window_data): Move non-lisp data to the end
22054 and make it `int' rather than Lisp_Object.
22055 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22056 Done wrap/unwrap integer values.
22057 (Fset_window_configuration, compare_window_configurations):
22058 Update use of fields to their new types.
22059
22060 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22061 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22062 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22063 (SET_SCROLL_BAR_X_WINDOW): Remove.
22064 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22065 Access the new x_window field directly.
22066 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22067 Don't wrap/unwrap integers into Lisp_Objects.
22068 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22069 (x_scroll_bar_report_motion):
22070 Don't wrap/unwrap integers into Lisp_Objects.
22071 (x_term_init): Use SDATA.
22072 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22073 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22074 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22075 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22076 * xfns.c (x_set_background_color):
22077 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22078 Access the new x_window field directly.
22079
22080 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22081 (allocate_pseudovector): Make non-static.
22082
22083 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22084 (allocate_pseudovector): Declare.
22085 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22086
220872007-11-15 Andreas Schwab <schwab@suse.de>
22088
22089 * editfns.c (Fformat): Correctly format EMACS_INT values.
22090 Also take precision into account when formatting an integer.
22091
22092 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22093
220942007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22095
22096 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22097 (syms_of_keyboard): Defsubr it.
22098
22099 * data.c (swap_in_global_binding): Fix longstanding bug where
22100 store_symval_forwarding was not called with the right second argument,
22101 thus causing objfwd-ing from being dropped.
22102
221032007-11-14 Juanma Barranquero <lekktu@gmail.com>
22104
22105 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22106 (Fx_display_pixel_height, Fx_display_planes)
22107 (Fx_display_color_cells, Fx_server_max_request_size)
22108 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22109 (Fx_display_visual_class, Fx_display_save_under):
22110 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22111 (Fx_display_pixel_height, Fx_display_planes)
22112 (Fx_display_color_cells, Fx_server_max_request_size)
22113 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22114 (Fx_display_mm_height, Fx_display_mm_width)
22115 (Fx_display_backing_store, Fx_display_visual_class)
22116 (Fw32_select_font, Fx_display_save_under):
22117 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22118 (Fx_display_pixel_height, Fx_display_planes)
22119 (Fx_display_color_cells, Fx_server_max_request_size)
22120 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22121 (Fx_display_save_under): Fix typos in docstrings.
22122
221232007-11-14 Juanma Barranquero <lekktu@gmail.com>
22124
22125 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22126 corresponding to deleted entries; they are an implementation detail.
22127 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22128 Remove variables.
22129 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22130 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22131 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22132 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22133 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22134 (Fw32_define_rgb_color, Fw32_load_color_file)
22135 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22136 Fix typos in docstrings.
22137 (Fx_server_version): Reflow docstring.
22138 (Fw32_shell_execute): Doc fixes.
22139
221402007-11-13 Juanma Barranquero <lekktu@gmail.com>
22141
22142 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22143 if w32_parse_hot_key returned nil.
22144
221452007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22146
22147 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22148
221492007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22150
aac0c6e3
MR
22151 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22152
22153 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22154
22155 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22156 Remove W32_SCROLL_BAR_CLICK_EVENT.
22157
22158 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22159 Add MULTIMEDIA_KEY_EVENT.
22160
22161 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22162 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22163 (make_lispy_event) [WINDOWSNT]: Use it to translate
22164 MULTIMEDIA_KEY_EVENT.
22165
22166 * w32term.h (WM_APPCOMMAND): Define if not already.
22167 (GET_APPCOMMAND_LPARAM): Likewise.
22168
22169 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22170 WM_APPCOMMAND.
22171
22172 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22173 (syms_of_w32fns): Export and initialize it.
22174 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22175
221762007-11-09 Chong Yidong <cyd@stupidchicken.com>
22177
22178 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22179 twice.
22180
22181 * xdisp.c (handle_face_prop): Fix last change.
22182
221832007-11-09 Richard Stallman <rms@gnu.org>
22184
22185 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22186 not just for after-strings and before-strings.
22187 Call face_for_overlay_string and pass the overlay to it.
22188 (handle_display_prop): Determine whether property came from an overlay.
22189 Pass OVERLAY arg to handle_single_display_spec.
22190 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22191 (load_overlay_strings): Fill in it->string_overlays.
22192 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22193
22194 * xfaces.c (face_for_overlay_string): Function renamed from
22195 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22196
22197 * dispextern.h (struct it): New elt string_overlays.
22198 New elt from_overlay, also in stack.
22199 Rearrange a few elements.
22200 (face_for_overlay_string): Decl renamed from
22201 face_at_buffer_position_no_overlays, and add argument.
22202
222032007-11-09 Richard Stallman <rms@gnu.org>
22204
22205 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22206 to get the base face for an overlay string.
22207
22208 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22209
22210 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22211
22212 * xdisp.c (handle_stop): Move some code out of loop.
22213
222142007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22215
22216 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22217 Fix conversion from Lisp object to ATSUFontID.
22218
222192007-11-09 Jason Rumney <jasonr@gnu.org>
22220
22221 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22222
222232007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22224
22225 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22226 Don't assume regions are aligned to page boundary.
22227 (print_load_command_name): Add LC_UUID if defined.
22228
222292007-11-09 Richard Stallman <rms@gnu.org>
22230
22231 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22232
222332007-11-07 Jason Rumney <jasonr@gnu.org>
22234
22235 * s/windows95.h: Remove.
22236
222372007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22238
22239 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22240 abort with a message on unhandled store_type values.
22241
222422007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22243
22244 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22245 Remove HAVE_X11R5 and HAVE_X11R4.
22246
222472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22248
22249 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22250
222512007-11-01 Johan Bockgård <bojohan@gnu.org>
22252
22253 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22254 Don't set s->stippled_p here, since it has already been set by
22255 x_set_glyph_string_gc from x_draw_glyph_string.
22256
222572007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22258
22259 * sunfns.c: Remove file.
22260
22261 * m/sun386.h:
22262 * m/sun2.h:
22263 * m/sparc.h: Remove Sun windows code.
22264
222652007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22266
22267 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22268 (init_keyboard): Set current_kboard's window-system to nil.
22269 (tty_read_avail_input): Typo.
22270 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22271
222722007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22273
22274 * s/usg5-4.h:
22275 * s/usg5-3.h:
22276 * s/ptx.h:
22277 * m/is386.h:
22278 * m/ibmps2-aix.h:
22279 * Makefile.in: Remove all mentions of X10.
22280
22281 * dispnew.c (syms_of_display): Don't mention version 10.
22282
222832007-10-28 Juanma Barranquero <lekktu@gmail.com>
22284
22285 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22286 ($(BLD)/abbrev.$(O)): Remove.
22287
222882007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22289
22290 Rewrite abbrev.c in Elisp.
22291 * image.c (Qcount): Don't declare as extern.
22292 (syms_of_image): Initialize and staticpro `Qcount'.
22293 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22294 * emacs.c (main): Don't call syms_of_abbrev.
22295 * Makefile.in (obj): Remove abbrev.o.
22296 (abbrev.o): Remove.
22297 * abbrev.c: Remove.
22298
222992007-10-26 Martin Rudalics <rudalics@gmx.at>
22300
22301 * window.c (window_min_size_2): Don't count header-line.
22302
223032007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22304
22305 * frame.h (struct frame): Move all bit fields after the first bit
22306 field to take advantage of the available space. Group all the
22307 chars together to reduce wasted space due to padding.
22308
223092007-10-26 Juanma Barranquero <lekktu@gmail.com>
22310
22311 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22312
22313 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22314 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22315 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22316 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22317 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22318 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22319 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22320 (last_marked, mark_object_loop_halt): Make static.
22321
22322 * frame.c (syms_of_frame) <delete-frame-functions>:
22323 Fix typo in docstring.
22324
223252007-10-25 Juanma Barranquero <lekktu@gmail.com>
22326
22327 * w32.c (init_environment): Fix tiny memory leak.
22328 (w32_get_resource): Remove unused variable `ok'.
22329
223302007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22331
22332 Make `window-system' into a keyboard-local variable (rather than
22333 frame-local as done originally by multi-tty).
22334
22335 * keyboard.h (struct kboard): Add Vwindow_system.
22336 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22337 (mark_kboards): Mark Vwindow_system.
22338
22339 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22340 (init_display): Don't set the obsolete `window-system' frame-param.
22341
22342 * xterm.c (x_term_init):
22343 * w32term.c (w32_create_terminal):
22344 * term.c (init_tty): Set Vwindow_system.
22345 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22346 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22347
22348 * xfns.c (Fx_create_frame, x_create_tip_frame):
22349 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22350 * macfns.c (Fx_create_frame):
22351 Don't set the obsolete `window-system' frame-param.
22352
22353 * frame.h (Qwindow_system): Remove.
22354 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22355 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22356
223572007-10-24 Richard Stallman <rms@gnu.org>
22358
22359 * frame.c (x_figure_window_size): For fullscreen case,
22360 set USPosition | PPosition without clobbering rest of window_prompting.
22361
22362 * keyboard.c (Fcurrent_idle_time): Doc fix.
22363
22364 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22365
223662007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22367
22368 * process.c (unwind_request_sigio): Only define if __ultrix__.
22369
22370 * callproc.c (child_setup): Remove spurious *.
22371
22372 * lisp.h (Fget_text_property): Declare.
22373 (have_menus_p): Declare it here rather than in sys-dep header files.
22374 * macterm.h (have_menus_p):
22375 * msdos.h (have_menus_p):
22376 * xterm.h (have_menus_p): Remove.
22377
22378 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22379 (Fmake_variable_frame_local): Just check the variable's const-ness
22380 rather than checking nil or t.
22381
223822007-10-22 Jason Rumney <jasonr@gnu.org>
22383
22384 * w32fns.c: Include math.h.
22385 (w32_abort): Declaration moved to nt/config.nt.
22386
22387 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22388 (abort): Redefinition moved to nt/config.nt.
22389
22390 * m/windowsnt.h: Remove.
22391
223922007-10-22 Juanma Barranquero <lekktu@gmail.com>
22393
22394 * emacs.c (Fdump_emacs): Fix typo in message.
22395 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22396 <installation-directory>: Reflow docstring.
22397
223982007-10-22 Juri Linkov <juri@jurta.org>
22399
22400 * minibuf.c: Allow minibuffer default to be a list of default values.
22401 With empty input use the first element of this list as returned default.
22402 (string_to_object)
22403 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22404 (read_minibuf): If defalt is cons, set histstring to its car.
22405 (Fread_string): If default_value is cons, set val to its car.
22406 (Fread_buffer): If def is cons, use its car.
22407 (Fcompleting_read): If defalt is cons, set val to its car.
22408
224092007-10-21 Michael Albinus <michael.albinus@gmx.de>
22410
22411 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22412
224132007-10-20 Juanma Barranquero <lekktu@gmail.com>
22414
22415 * doc.c (Fdocumentation): Check for advice in all cases.
22416
224172007-10-19 Chong Yidong <cyd@stupidchicken.com>
22418
22419 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22420
224212007-10-19 Richard Stallman <rms@gnu.org>
22422
22423 * doc.c (Fdocumentation): Check for and handle an advised function.
22424
224252007-10-19 Juanma Barranquero <lekktu@gmail.com>
22426
22427 * process.c (Fset_process_filter): Doc fix.
22428
224292007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22430
22431 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22432 which caused key-translation-map to applied repeatedly (thus breaking
22433 double-mode).
22434
224352007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22436
22437 * xselect.c (x_own_selection, x_handle_selection_clear)
22438 (x_clear_frame_selections):
22439 * w32menu.c (list_of_panes, list_of_items):
22440 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22441 * textprop.c (validate_plist, interval_has_all_properties)
22442 (interval_has_some_properties, interval_has_some_properties_list)
22443 (add_properties, text_property_list):
22444 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22445 * minibuf.c (Fassoc_string):
22446 * macselect.c (x_own_selection, x_clear_frame_selections)
22447 (Fx_disown_selection_internal):
22448 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22449 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22450
224512007-10-17 Chong Yidong <cyd@stupidchicken.com>
22452
22453 * process.c: Link to libs for calling res_init() if available.
22454 (Fmake_network_process): Call res_init() before getaddrinfo or
22455 gethostbyname, if possible.
22456
224572007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22458
22459 * lread.c (read1): Set pvectype for char_tables.
22460
22461 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22462 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22463 Add type checks.
22464 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22465
22466 * alloc.c (free_misc): Use XMISCTYPE.
22467 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22468
224692007-10-17 Glenn Morris <rgm@gnu.org>
22470
22471 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22472 (syms_of_minibuf): Add Qcompletion_ignore_case.
22473 * dired.c (Qcompletion_ignore_case): Change to external.
22474 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22475 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22476 (Fread_file_name): Use it rather than intern'ing.
22477
22478 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22479 (Fread_coding_system): Ignore case of user input.
22480
224812007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22482
22483 * xdisp.c (handle_display_prop): Ignore display specs after
22484 replacing one when string text is being replaced.
22485 (handle_single_display_spec): Pretend as if characters with display
22486 property haven't been consumed only when buffer text is being replaced.
22487
224882007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22489
22490 * xfns.c (Fx_create_frame, Fx_display_list):
22491 * window.c (window_fixed_size_p, enlarge_window)
22492 (shrink_window_lowest_first):
22493 * macterm.c (init_font_name_table):
22494 * macfns.c (Fx_create_frame, Fx_display_list):
22495 * lread.c (close_load_descs):
22496 * keyboard.c (read_char_x_menu_prompt):
22497 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22498 * coding.c (code_convert_region_unwind): Test the type of an object
22499 rather than just !NILP before extracting data from it.
22500
22501 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22502
22503 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22504 (XMISCANY): New macro.
22505 (XMISCTYPE): Use it.
22506 (struct Lisp_Misc_Any): New type.
22507 (union Lisp_Misc): Use it.
22508 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22509 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22510 (find_symbol_value, set_internal, default_value, Fset_default)
22511 (Fmake_variable_buffer_local, Fmake_local_variable)
22512 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22513 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22514 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22515 * alloc.c (allocate_buffer): Set the size and tag.
22516 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22517 Use XMISCANY.
22518 (die): Follow the GNU convention for error messages.
22519 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22520 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22521 tag any more.
22522 (set_buffer_internal_1):
22523 * frame.c (store_frame_param):
22524 * eval.c (specbind):
22525 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22526
22527 * doc.c (Fsnarf_documentation): Simplify.
22528
225292007-10-14 Juanma Barranquero <lekktu@gmail.com>
22530
22531 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22532 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22533
225342007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22535
22536 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22537
225382007-10-14 Juanma Barranquero <lekktu@gmail.com>
22539
22540 * eval.c (do_autoload): Don't save autoloads.
22541
22542 * data.c (Ffset): Save autoload of the function being set.
22543
225442007-10-07 John Paul Wallington <jpw@pobox.com>
22545
22546 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22547 parameter before setting up faces.
22548
225492007-10-13 Eli Zaretskii <eliz@gnu.org>
22550
22551 * ccl.c (Fregister_code_conversion_map):
22552 * keyboard.c (append_tool_bar_item): Reformat last change.
22553
22554 * lisp.h (eabs): Rename from `abs'. All callers changed.
22555
225562007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22557
22558 * buffer.c (add_overlay_mod_hooklist):
22559 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22560 * fontset.c (make_fontset):
22561 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22562 (append_tool_bar_item):
22563 * macmenu.c (grow_menu_items):
22564 * w32menu.c (grow_menu_items):
22565 * xmenu.c (grow_menu_items): Use larger_vector.
22566
225672007-10-13 Eli Zaretskii <eliz@gnu.org>
22568
22569 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22570 selected frame'' on MSDOS).
22571
225722007-10-12 Martin Rudalics <rudalics@gmx.at>
22573
22574 * frame.c (Qexplicit_name): New variable.
22575 (x_report_frame_params): Report it in parameter alist.
22576 (syms_of_frame): Intern and staticpro it.
22577
225782007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22579
22580 * macfns.c (x_create_tip_frame): Set terminal for frame.
22581
225822007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22583
22584 * frame.c (Qenvironment): Remove.
22585 (syms_of_frame) <Qenvironment>: Don't initialize.
22586 (Fdelete_frame): Don't treat the `environment' param specially.
22587 * frame.h (Qenvironment): Don't declare.
22588 * callproc.c (set_initial_environment): Don't set unused frame param.
22589
22590 * frame.c (Fframe_with_environment): Remove.
22591 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22592
22593 * lisp.h (Fframe_with_environment): Don't declare.
22594
225952007-10-10 Juanma Barranquero <lekktu@gmail.com>
22596
22597 * indent.c (indent_tabs_mode, last_known_column)
22598 (last_known_column_modified): Make static.
22599 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22600
226012007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22602
22603 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22604
226052007-10-09 Jason Rumney <jasonr@gnu.org>
22606
22607 * w32term.c (x_set_window_size): Disable code that attempts to tell
22608 Lisp code about a size change before it actually happens.
22609
226102007-10-09 Richard Stallman <rms@gnu.org>
22611
22612 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22613 return HANDLED_RETURN.
22614
226152007-10-08 Martin Rudalics <rudalics@gmx.at>
22616
22617 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22618 when there's an unread command event.
22619
22620 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22621 window autoselection act appropriately when leaving selected frame.
22622 (syms_of_frame): Initialize focus_follows_mouse.
22623 * frame.h (focus_follows_mouse): Extern it.
22624 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22625 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22626 * msdos.c (dos_rawgetc): Likewise.
22627 * w32term.c (w32_read_socket): Likewise.
22628 * xterm.c (handle_one_xevent): Likewise.
22629 * xdisp.c (syms_of_xdisp): In doc-string of
22630 mouse-autoselect-window mention focus-follows-mouse.
22631
226322007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22633
22634 * macterm.c (mac_load_query_font): Fix missing return value.
22635 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22636 Add BLOCK_INPUT.
22637
226382007-10-08 Richard Stallman <rms@gnu.org>
22639
22640 * xdisp.c (get_window_cursor_type): Implement documented behavior
22641 for cursor-in-non-selected-windows = t.
22642
226432007-10-08 Jason Rumney <jasonr@gnu.org>
22644
22645 * w32.c (w32_get_resource): Always close registry keys.
22646
226472007-10-08 Jason Rumney <jasonr@gnu.org>
22648
22649 * makefile.w32-in (LIBS): Add COMCTL32.
22650
22651 * w32fns.c (globals_of_w32fns): Init common controls.
22652
226532007-10-08 Richard Stallman <rms@gnu.org>
22654
22655 * image.c (our_memory_buffer): Rename from omfib_buffer.
22656
226572007-10-08 Richard Stallman <rms@gnu.org>
22658
22659 * buffer.c (Foverlays_at): Doc fix.
22660
226612007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22662
22663 * fns.c (Fplist_put): Preserve uneven tail data.
22664
226652007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22666
22667 * termhooks.h (enum event_kind): Remove trailing comma.
22668
22669 * frame.h (enum): Remove trailing comma.
22670
226712007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22672
22673 * w32proc.c (delete_child): Don't terminate threads of zombies.
22674
226752007-10-08 Martin Rudalics <rudalics@gmx.at>
22676
22677 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22678
22679 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22680 last-repeatable-command.
22681 (init_kboard): Initialize Vlast_repeatable_command.
22682 (command_loop_1): Set it to real_this_command unless that was
22683 bound to an input event.
22684 (mark_kboards): Mark it.
22685
226862007-10-08 Richard Stallman <rms@gnu.org>
22687
22688 * eval.c (condition-case): Doc fix.
22689
226902007-10-08 Masatake YAMATO <jet@gyve.org>
22691
22692 * xfaces.c (tty_supports_face_attributes_p): Fix code
22693 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22694 was copied and not edited.
22695
226962007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22697
22698 Add new `input-decode-map' keymap and use it for terminal
22699 escape sequences.
22700 * keyboard.h (struct kboard): Add Vinput_decode_map.
22701 Remove Vlocal_key_translation_map.
22702 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22703 (init_kboard): Init input-decode-map.
22704 Replace local-key-translation-map back with key-translation-map.
22705 (syms_of_keyboard): Declare input-decode-map.
22706 Remove local-key-translation-map. Update docstrings.
22707 (mark_kboards): Mark Vinput_decode_map.
22708 Don't mark Vlocal_key_translation_map.
22709 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22710 Replace local-key-translation-map back with key-translation-map.
22711 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22712 Bind in input-decode-map rather than function-key-map.
22713
22714 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22715 This was made redundant by the previous introduction of XSETPVECTYPE.
22716
227172007-10-09 Richard Stallman <rms@gnu.org>
22718
22719 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22720
227212007-09-29 Richard Stallman <rms@gnu.org>
22722
22723 * eval.c (internal_condition_case_2, internal_condition_case_1)
22724 (internal_condition_case): Reenable abort if x_catching_errors ()
22725 to see if that really happens and why.
22726
227272007-10-06 Andreas Schwab <schwab@suse.de>
22728
22729 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22730
227312007-10-04 Juanma Barranquero <lekktu@gmail.com>
22732
22733 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22734
227352007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22736
22737 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22738
227392007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22740
22741 * window.h (struct window):
22742 * window.c (struct save_window_data, struct saved_window):
22743 * termhooks.h (struct terminal):
22744 * process.h (struct Lisp_Process):
22745 * frame.h (struct frame):
22746 * buffer.h (struct buffer):
22747 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22748 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22749 The size field of (pseudo)vectors is now unsigned.
22750 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22751
22752 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22753 Turn `count' into an integer.
22754
22755 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22756 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22757 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22758 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22759 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22760
22761 * alloc.c (allocate_pseudovector): New fun.
22762 (ALLOCATE_PSEUDOVECTOR): New macro.
22763 (allocate_window, allocate_terminal, allocate_frame)
22764 (allocate_process): Use it.
22765 (mark_vectorlike): New function.
22766 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22767 (mark_terminals): Use it.
22768 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22769 (Fmake_byte_code): Use XSETPVECTYPE.
22770
22771 * frame.c (Fframe_parameters): Minor simplification.
22772
22773 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22774
22775 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22776
22777 * buffer.c (Fget_buffer_create, init_buffer_once):
22778 * lread.c (defsubr):
22779 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22780
22781 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22782 defined differently in the m/*.h files.
22783 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22784 (XSETPVECTYPE): New macro.
22785 (XSETPSEUDOVECTOR): Use it.
22786
22787 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22788 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22789
22790 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22791 * lread.c (defvar_per_buffer):
22792 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22793
22794 * window.c (candidate_window_p): Only consider as visible frames that
22795 are on the same terminal.
22796
22797 * m/ibms390x.h (MARKBIT): Remove unused macro.
22798
227992007-10-01 Juanma Barranquero <lekktu@gmail.com>
22800
22801 * lread.c (Fload): Fix typo in docstring.
22802
228032007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22804
22805 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22806 of a non-zero value can't yield zero.
22807
228082007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22809
22810 * term.c (term_clear_mouse_face, term_mouse_highlight)
22811 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22812
22813 * print.c (safe_debug_print): Use XHASH.
22814
22815 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22816 Lisp elements such as tags.
22817 (XHASH): New macro.
22818 (EQ): Use it.
22819 (SREF, SSET, STRING_COPYIN): Use SDATA.
22820 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22821
22822 * alloc.c (mark_terminal): Remove left-over declaration.
22823 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22824 (allocate_vectorlike): Remove type argument. Adjust callers.
22825 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22826 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22827
22828 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22829 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22830 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22831 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22832 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22833 Use them.
22834
22835 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22836 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22837 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22838
228392007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22840
22841 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22842 loaded by default.
22843
228442007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22845
22846 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22847 on this tty.
22848 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22849
22850 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22851 Update all users.
22852 (handle_one_term_event): Use Gpm_DrawPointer.
22853 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22854 Signal errors instead of returning nil. Always return nil.
22855 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22856 Make it a noop if gpm-mouse was not activated.
22857 (syms_of_term): Update names.
22858
228592007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22860
22861 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22862 (init_sys_modes): Check that gpm_tty is the current tty.
22863
22864 * alloc.c (allocate_terminal): Set the vector size to only count the
22865 lisp fields. Initialize those to nil.
22866 (mark_object): Don't treat terminals specially.
22867 (mark_terminal): Remove.
22868 (mark_terminals): Use mark_object instead.
22869
22870 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22871 the GC to the beginning.
22872
22873 * indent.h:
22874 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22875
22876 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22877
228782007-09-25 Jason Rumney <jasonr@gnu.org>
22879
22880 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22881
22882 * w32console.c (create_w32cons_output): Remove.
22883
22884 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22885
22886 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22887 (reset_sys_modes): Use reset_terminal_modes_hook.
22888
228892007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22890
22891 * eval.c (do_autoload): Don't output any message.
22892
228932007-09-24 Juri Linkov <juri@jurta.org>
22894
22895 * emacs.c (standard_args): Change priority of "--no-splash"
22896 from 40 to 3. Add "--no-desktop" with the same priority.
22897
228982007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22899
22900 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22901 and optimize the case where they are all 1.
22902
229032007-09-23 Johannes Weiner <hannes@saeurebad.de>
22904
22905 * lisp.h (abs): Define if not defined.
22906 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22907 Don't define `abs', since it's defined in lisp.h.
22908
229092007-09-22 Eli Zaretskii <eliz@gnu.org>
22910
22911 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22912 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22913 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22914 (init_tty): Use DEV_TTY instead of "/dev/tty".
22915 [WINDOWSNT]: No need to protect from NAME arg being null.
22916
229172007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22918
22919 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22920 up the tty state.
22921
229222007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22923
22924 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22925 (gpm_tty): Change its type.
22926 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22927 (gpm_tty): Change its type and initialize it.
22928 (Fterm_open_connection): Check the frame is indeed a tty.
22929 Use the new gpm_tty.
22930 (Fterm_close_connection): Use the new gpm_tty.
22931 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22932 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22933
229342007-09-21 Juanma Barranquero <lekktu@gmail.com>
22935
22936 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22937 underline_color, to draw strike-through.
22938
229392007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22940
22941 * lisp.h (allocate_terminal): Declare.
22942
22943 * window.c (candidate_window_p): Consider frames that are being placed
22944 by the user as somewhere between visible and iconified.
22945 (window_loop): Prefer windows on the current frame.
22946 (Fselect_window): Move the use of select-frame to the beginning so we
22947 can just delegate all the work (it'll call us back anyway).
22948
22949 * frame.c (Qdisplay_environment_variable):
22950 * frame.h (Qdisplay_environment_variable): Delete.
22951
22952 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22953 of the first arg, since that value may be a union.
22954
22955 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22956 parameter rather than Qdisplay_environment_variable. If all else
22957 fails, look for DISPLAY in initial-environment.
22958
229592007-09-21 Glenn Morris <rgm@gnu.org>
22960
22961 * Makefile.in (emacstool): Remove target.
22962 (lisp, shortlisp): Remove termdev.elc.
22963
229642007-09-21 Markus Triska <markus.triska@gmx.at>
22965
22966 * xterm.c (x_delete_display): Compile session management conditionally.
22967
229682007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22969
22970 * callproc.c (getenv_internal_1): New function.
22971 (getenv_internal): Use it.
22972 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22973
22974 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22975 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22976 (Fset_terminal_parameter): Work with dead terminals as well.
22977 (Fmodify_terminal_parameters): Remove.
22978
22979 * terminal.c (get_terminal): Handle terminals.
22980 Make sure the terminal returned is live.
22981 (create_terminal): Use allocate_terminal.
22982 (mark_terminals): Move to alloc.c.
22983 (delete_terminal): Use terminal->name as liveness status.
22984 NULL out fields after freeing their contents.
22985 Don't deallocate the object.
22986 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22987 rather than an int.
22988 (Fterminal_live_p): Accept non-integer arguments.
22989 (Fterminal_list): Return terminal objects rather than an ints.
22990
22991 * alloc.c (enum mem_type): New member for `terminal' objects.
22992 (allocate_terminal): New function.
22993 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22994 Handle terminals.
22995 (mark_terminal): New fun.
22996 (mark_terminals): Move from terminal.c.
22997
22998 * term.c (get_tty_terminal): Don't treat output_initial specially.
22999 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23000 (delete_tty): Use terminal->name as liveness status.
23001
23002 * termhooks.h (struct terminal): Make it into a pseudovector.
23003 Remove `deleted' replaced by checking `name's nullness.
23004
23005 * print.c (print_object): Handle terminals.
23006
23007 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23008 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23009
23010 * frame.c (make_terminal_frame):
23011 * keyboard.c (tty_read_avail_input):
23012 * w32term.c (x_delete_terminal):
23013 * xfns.c (Fx_create_frame, x_create_tip_frame):
23014 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23015
230162007-09-20 Glenn Morris <rgm@gnu.org>
23017
23018 * process.c (Fmake_network_process): Doc fix.
23019
230202007-09-19 Jason Rumney <jasonr@gnu.org>
23021
23022 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23023
230242007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23025
23026 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23027 Fix a C warning regarding variable constness.
23028
23029 * xterm.c (handle_one_xevent): Fix a C warning.
23030
230312007-09-18 Jason Rumney <jasonr@gnu.org>
23032
23033 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23034
230352007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23036
23037 * gtkutil.c (gdpy_def): New variable.
23038 (xg_initialize): Initialize gdpy_def.
23039 (xg_display_close): If no other display exists, set gdpy_def to a
23040 new connection.
23041
230422007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23043
23044 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23045 when we have no file name for the icon.
23046 (xg_tool_bar_expose_callback): Remove.
23047 (xg_create_tool_bar): Don't connect expose signal to
23048 xg_tool_bar_expose_callback.
23049 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23050
230512007-09-16 Andreas Schwab <schwab@suse.de>
23052
23053 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23054 values instead of zapping them.
23055
230562007-09-14 Glenn Morris <rgm@gnu.org>
23057
23058 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23059 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23060 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23061 scope and rename to omfib_buffer for clarity.
23062 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23063
230642007-09-14 Kenichi Handa <handa@m17n.org>
23065
23066 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23067
230682007-09-13 Jason Rumney <jasonr@gnu.org>
23069
23070 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23071
23072 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23073
23074 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23075 (mac_term_init): Call here instead, passing rif.
23076
230772007-09-13 Glenn Morris <rgm@gnu.org>
23078
23079 * s/hpux.h: No longer define `static' as nothing.
23080
230812007-09-13 Johan Bockgård <bojohan@gnu.org>
23082
23083 * callint.c (Fcall_interactively): Remove unused var `fun'.
23084
230852007-09-12 Romain Francoise <romain@orebokech.com>
23086
23087 * window.c (prefer_window_split_horizontally, display_buffer):
23088 Revert 2007-09-08 change.
23089
230902007-09-12 Glenn Morris <rgm@gnu.org>
23091
23092 * alloca.c: Remove file.
23093 * Makefile.in (alloca): Do not undef.
23094 (allocaobj, alloca.o): Remove.
23095 (otherobj): Remove allocaobj.
23096 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23097 * regex.c (C_ALLOCA): Remove all references and code that was only
23098 used when this was defined.
23099 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23100 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23101 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23102
23103 * Makefile.in (SOURCES, unlock, relock): Delete.
23104
23105 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23106 (menu_grab_callback): All uses changed.
23107
23108 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23109 (x_reply_selection_request): All uses changed.
23110
231112007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23112
23113 * lread.c (load_warn_old_style_backquotes): Change message to look
23114 better when it appears in the middle of byte-compiler messages.
23115
231162007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23117
23118 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23119
23120 * xterm.c (x_create_terminal): Add comment.
23121
23122 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23123
231242007-09-10 Richard Stallman <rms@gnu.org>
23125
23126 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23127
231282007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23129
23130 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23131 (DEFUN): Document `intspec', use it instead of `prompt'.
23132
23133 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23134
23135 * data.c (Finteractive_form): If the interactive specification starts
23136 with a `(', use it as a Lisp form.
23137
23138 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23139 name and file modes.
23140
23141 * callint.c (Fcall_interactively): Comment fixes.
23142
231432007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23144
23145 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23146 and compiled functions.
23147
231482007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23149
23150 * window.c (prefer_window_split_horizontally): New variable.
23151 (display_buffer): Consider splitting window horizontally depending
23152 on prefer_window_split_horizontally.
23153
231542007-09-08 Eli Zaretskii <eliz@gnu.org>
23155
23156 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23157
231582007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23159
23160 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23161
23162 * frame.c (x_set_frame_parameters): Check number is positive before
23163 using XFASTINT.
23164
23165 * window.c (freeze_window_start): Don't presume selected_window holds
23166 a window object.
23167 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23168
231692007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23170
23171 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23172
231732007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23174
23175 * window.c (Vsplit_window_preferred_function): New var.
23176 (Fdisplay_buffer): Use it.
23177 (syms_of_window): Export, and initialize it.
23178
231792007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23180
23181 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23182
231832007-09-06 Glenn Morris <rgm@gnu.org>
23184
23185 * gtkutil.c (menu_grab_callback) <cnt>:
23186 * xselect.c (x_reply_selection_request) <cnt>: Move static
23187 variable to file scope.
23188
231892007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23190
23191 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23192 consistent values of selected_frame and selected_window.
23193
231942007-09-04 Jason Rumney <jasonr@gnu.org>
23195
23196 * w32console.c (initialize_w32_display): Zero unused hooks.
23197
231982007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23199
23200 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23201 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23202
232032007-09-04 Jason Rumney <jasonr@gnu.org>
23204
23205 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23206 in w32console.c. Set up input. Remove XXX comments that have been
23207 confirmed as correct.
23208
23209 * s/ms-w32.h (MULTI_KBOARD): Define.
23210
23211 * w32console.c (one_and_only_w32cons): Remove.
23212 (initialize_w32_display): Take terminal argument.
23213
23214 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23215 initialize_w32_display.
23216 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23217
23218 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23219
23220 * keyboard.c (discard_mouse_events): Discard it.
23221 (make_lispy_event): Translate it to a lisp event.
23222 (lispy_wheel_names): Add wheel-left and right events.
23223 (syms_of_keyboard): Enlarge wheel_syms.
23224
23225 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23226 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23227
23228 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23229
23230 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23231 from WM_MOUSEHWHEEL.
23232 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23233
23234 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23235 terminal.
23236
23237 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23238 keyboard for the terminal.
23239
232402007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23241
23242 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23243 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23244 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23245 and resume-tty-function to resume-tty-hook.
23246 (Fsuspend_tty, Fresume_tty): Use new names.
23247
232482007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23249
23250 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23251 if it starts with "n:".
23252
232532007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23254
23255 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23256
232572007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23258
23259 * frame.h:
23260 * frame.c (Qterm_environment_variable): Remove.
23261 (syms_of_frame): Don't init and staticpro it.
23262
23263 * callproc.c (getenv_internal): Remove special case for $TERM.
23264
23265 * callproc.c (Vinitial_environment): New variable.
23266 (set_initial_environment): Initialize it.
23267 (syms_of_callproc): Declare it.
23268 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23269 TERM under which a process runs is never related to the TERM in which
23270 Emacs is running.
23271
232722007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23273
23274 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23275 * s/darwin.h: ... do it here.
23276
232772007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23278
23279 * lisp.h (set_initial_environment): Rename from set_global_environment.
23280
23281 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23282 removed by mistake on the multi-tty branch.
23283
23284 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23285 (Fmodify_frame_parameters): Return a value.
23286
23287 * image.c (png_load): Comment-out var only used in commented-out code.
23288
23289 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23290 before passing it to mark_object.
23291
23292 * xfaces.c (internal_resolve_face_name): Return a value.
23293 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23294
23295 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23296 (x_icon): Comment-out var only used in commented-out code.
23297
232982007-08-29 Romain Francoise <romain@orebokech.com>
23299
23300 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23301 QUIT hasn't been provided.
23302
233032007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23304
23305 * callproc.c (child_setup, getenv_internal): Use the
23306 display-environment-variable and term-environment-variable frame params.
23307 (set_initial_environment): Initialise Vprocess_environment.
23308
23309 * config.in: Disable multi-keyboard support on a mac.
23310
23311 * frame.c (Qterm_environment_variable)
23312 (Qdisplay_environment_variable): New variables.
23313 (syms_of_frame): Intern and staticpro them.
23314 (Fmake_terminal_frame): Disable output method test.
23315
23316 * frame.h: Declare them here.
23317
23318 * macfns.c (x_set_mouse_color): Get rif from the frame.
23319 (x_set_tool_bar_lines): Don't use updating_frame.
23320 (mac_window): Add 2 new parameters for consistency with other systems.
23321 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23322 frame parameters following what is done in X11 and w32. Don't use
23323 FRAME_MAC_DISPLAY_INFO.
23324 (Fx_open_connection, start_hourglass): Remove window-system check.
23325 (x_create_tip_frame): Get the keyboard from the terminal.
23326
23327 * macmenu.c: Reorder includes.
23328 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23329
23330 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23331 terminal parameter.
23332 (x_clear_frame): Add a frame parameter.
23333 (note_mouse_movement): Get rif from the frame.
23334 (mac_term_init): Initialize the terminal.
23335 (mac_initialize): Make static and move terminal initialization ...
23336 (mac_create_terminal): ... to this new function.
23337
23338 * macterm.h (struct mac_display_info): Add terminal.
23339 (mac_initialize): Delete declaration.
23340
23341 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23342
23343 * sysdep.c: Comment out text after #endif.
23344
23345 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23346 is defined. Better initialize ttys in windows. Use terminal
23347 specific mouse_position_hook.
23348
23349 * termhooks.h (union display_info): Add mac_display_info.
23350
23351 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23352 Set the default minibuffer frame, window_system and the rest of the
23353 frame parameters following what is done in X11.
23354
23355 * w32term.c (w32_initialize): Make static.
23356
23357 * xselect.c (x_handle_selection_clear): Only access
23358 terminal->kboard when MULTI_KBOARD is defined.
23359
23360 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23361 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23362
233632007-08-29 Jason Rumney <jasonr@gnu.org>
23364
23365 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23366 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23367
23368 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23369 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23370
23371 * keyboard.c (restore_kboard_configuration): Only define when
23372 MULTI_KBOARD defined.
23373
23374 * makefile.w32-in: Update dependancies from Makefile.in.
23375 (OBJ1): Add terminal.$(O)
23376
23377 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23378 Don't define function body.
23379 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23380
23381 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23382
23383 * w32.c (request_sigio, unrequest_sigio): Remove.
23384
23385 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23386 (w32con_clear_frame, w32con_clear_end_of_line)
23387 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23388 (w32con_delete_glyphs, w32con_set_terminal_window)
23389 (scroll_line, w32_sys_ring_bell): Add frame arg.
23390 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23391 Add terminal arg.
23392 (PICK_FRAME): Remove.
23393 (w32con_write_glyphs): Use frame specific terminal coding.
23394 (one_and_only_w32cons): New global variable.
23395 (initialize_w32_display): Use it for storing hooks.
23396 (create_w32cons_output): New function.
23397
23398 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23399 arg a frame.
23400
23401 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23402 Set window_system.
23403 (x_set_tool_bar_lines): Don't use updating_frame.
23404 (Fx_create_frame): Set terminal and ref count.
23405 (Fx_open_connection): Remove window-system check.
23406
23407 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23408
23409 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23410 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23411 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23412 Add frame arg.
23413 (x_delete_terminal, w32_create_terminal): New functions.
23414 (w32_term_init): Create a terminal.
23415 (w32_initialize): Move terminal specific initialization to
23416 w32_create_terminal.
23417
23418 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23419 (w32_clear_rect, w32_clear_area): Use background from frame.
23420 (w32_display_info): Add terminal.
23421 (w32_sys_ring_bell, x_delete_display): Declare here.
23422
23423 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23424
23425 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23426
234272007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23428
23429 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23430 Fix get_named_tty calls for the controlling tty.
23431
234322007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23433
194d44e7 23434 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23435
234362007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23437
23438 * term.c (tty_insert_glyphs): Add missing first parameter.
23439
234402007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23441
23442 * buffer.c (Fbuffer_list, Fbury_buffer):
23443 Take frame->buried_buffer_list into account.
23444
23445 * cm.c (current_tty): New variable, for cmputc().
23446 (cmputc): Use it.
23447 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23448 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23449 (cmgoto): Add tty parameter. Pass it on to calccost().
23450 Use emacs_tputs() instead of tputs().
23451
23452 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23453 tputs().
23454 (current_tty): New variable, for cmputc().
23455 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23456
23457 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23458 (internal_condition_case, internal_condition_case_1)
23459 (internal_condition_case_2): Don't abort when x_catching_errors.
23460
23461 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23462 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23463 prevent crashes caused by bogus longjmps in read_char.
23464
23465 * keymap.h (Fset_keymap_parent): Add EXFUN.
23466
23467 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23468 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23469 Remove redundant definition.
23470
23471 * macfns.c (x_set_mouse_color, x_make_gc):
23472 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23473
23474 * w32term.c (x_free_frame_resources):
23475 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23476 (w32_initialize): Use the accessor macros for terminal characteristics.
23477
23478 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23479 Use the accessor macros for terminal characteristics.
23480 * msdos.c (internal_terminal_init): Use the accessor macros for
23481 terminal characteristics.
23482 (ScreenVisualBell, internal_terminal_init):
23483 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23484
23485 * termopts.h (no_redraw_on_reenter): Declare.
23486
23487 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23488 (mark_terminals, mark_ttys): Declare.
23489 (Fgarbage_collect): Call them.
23490 (mark_object): Mark buried_buffer_list.
23491
23492 * prefix-args.c: Include stdlib.h for exit.
23493
23494 * syssignal.h: Add comment.
23495
23496 * indent.c: Include stdio.h.
23497
23498 * window.h (Vinitial_window_system): Declare.
23499 (Vwindow_system): Delete declaration.
23500
23501 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23502
23503 * image.c (lookup_image): Don't initialize `c' until the xasserts
23504 have been run.
23505
23506 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23507 FRAME_FOREGROUND_PIXEL.
23508
23509 * print.c (print_preprocess): Don't lose print_depth levels while
23510 iterating.
23511
23512 * widget.c (update_from_various_frame_slots):
23513 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23514
23515 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23516 frames.
23517 (window_internal_height): Remove bogus make_number call.
23518 (init_window_once): Call make_terminal_frame with two zero parameters.
23519
23520 * fileio.c (Fread_file_name): Update comment.
23521
23522 * callint.c (Fcall_interactively):
23523 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23524 Make sure it is correctly unwound.
23525
23526 * xsmfns.c (x_session_close): New function.
23527
23528 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23529 Delete declarations.
23530
23531 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23532 (x_output): Remove background_pixel and foreground_pixel fields.
23533 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23534 (x_delete_device, x_session_close): Declare.
23535
23536 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23537 (read_filtered_event): Call `read_char' with a local
23538 `wrong_kboard_jmpbuf'.
23539
23540 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23541 Don't call single_kboard_state. Use FRAME_RIF.
23542
23543 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23544 systems.
23545
23546 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23547 (Fframe_with_environment, Fset_input_meta_mode)
23548 (Fset_quit_char): EXFUN.
23549 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23550 (init_sys_modes, reset_sys_modes): Update prototypes.
23551 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23552
23553 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23554 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23555 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23556 Delete declarations.
23557 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23558 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23559 New declarations.
23560
23561 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23562 already does that during init_display(). Call syms_of_keymap
23563 before syms_of_keyboard. Call `syms_of_terminal'.
23564 Call set_initial_environment, not set_process_environment.
23565 (shut_down_emacs): Call reset_all_sys_modes() instead of
23566 reset_sys_modes().
23567
23568 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23569 (internal_resolve_face_name, resolve_face_name_error): New functions.
23570 (resolve_face_name): Protect against loops and errors thrown by Fget.
23571 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23572 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23573
23574 * scroll.c: Replace CURTTY() with local variables throughout the
23575 file (where applicable).
23576 (calculate_scrolling, calculate_direct_scrolling)
23577 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23578 characteristics.
23579
23580 * keymap.c (Vfunction_key_map): Remove.
23581 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23582 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23583 (Vkey_translation_map): Remove.
23584 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23585 (Fdescribe_buffer_bindings)
23586 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23587 Update for terminal-local key-translation-map.
23588
23589 * Makefile.in (callproc.o): Update dependencies.
23590 (lisp, shortlisp): Add termdev.elc.
23591 (obj): Add terminal.o.
23592 (terminal.o): Add dependencies.
23593 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23594 (data.o, fns.o): Add termhooks.h dependency.
23595 (SOME_MACHINE_LISP): Add dnd.elc.
23596 (minibuf.o): Fix typo.
23597 Update dependencies.
23598
23599 * data.c (do_symval_forwarding, store_symval_forwarding)
23600 (find_symbol_value): Use the selected frame's keyboard, not
23601 current_kboard.
23602
23603 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23604 Vwindow_system.
23605
23606 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23607 Fmenu_bar_open.
23608 (syms_of_xmenu): Update defsubr.
23609 (mouse_position_for_popup, Fx_popup_menu)
23610 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23611 (set_frame_menubar, free_frame_menubar)
b97439ce 23612 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23613 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23614 an X frame.
23615
23616 * xselect.c (x_own_selection): Abort if not an X frame.
23617 (some_frame_on_display): Check if it is an X frame.
23618 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23619
23620 * coding.c: Include frame.h and termhooks.h.
23621 (terminal_coding, keyboard_coding): Delete.
23622 (Fset_terminal_coding_system_internal)
23623 (Fset_keyboard_coding_system_internal)
23624 (Fkeyboard_coding_system)
23625 (Fterminal_coding_system): Add a terminal parameter.
23626 Get terminal_coding from the terminal.
23627 (init_coding_once): Don't call setup_coding_system here.
23628
23629 * dispextern.h (set_scroll_region, turn_off_insert)
23630 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23631 (tty_clear_end_of_line, tty_setup_colors)
23632 (delete_tty, updating_frame)
23633 (produce_special_glyphs, produce_glyphs, write_glyphs)
23634 (insert_glyphs): Remove.
23635 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23636 (tty_turn_off_highlight, get_tty_size): Add declaration.
23637 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23638
23639 * frame.h (enum output_method): Add output_initial.
23640 (struct x_output): Delete.
23641 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23642 Access foreground_pixel and background_pixel directly from the frame.
23643 (tty_display): Delete.
23644 (struct frame): Add buried_buffer_list, foreground_pixel,
23645 background_pixel and terminal. Delete kboard.
23646 (union output_data): Add tty.
23647 (FRAME_KBOARD): Get the kboard from the terminal.
23648 (FRAME_INITIAL_P): New macro.
23649 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23650 (Qterm_environment_variable, Qdisplay_environment_variable)
23651 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23652 New declarations.
23653
23654 * termchar.h (tty_output, tty_display_info): New structures.
23655 (tty_list): Declare.
23656 (FRAME_TTY, CURTTY): New macros.
23657 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23658 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23659 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23660 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23661
23662 * callproc.c: Include frame.h and termhooks.h, for terminal
23663 parameters.
23664 (add_env): New function.
23665 (child_setup): Use it.
23666 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23667 (getenv_internal): Fix get_terminal_param call.
23668 (Fgetenv_internal, egetenv): Update doc.
23669 (syms_of_callproc): Initialize Vprocess_environment to nil.
23670 Register and initialize them. Remove obsolete defvars. Update doc
23671 strings.
23672 (child_setup): Handle Vlocal_environment_variables.
23673 (getenv_internal): Add terminal parameter.
23674 Handle Vlocal_environment_variables.
23675 (Fgetenv_internal): Add terminal parameter.
23676 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23677 environment in a frame (not terminal) parameter. Update doc strings.
23678 (set_initial_environment): Rename from set_global_environment.
23679 Store Emacs environment in initial frame parameter.
23680
23681 * xdisp.c (redisplay_internal): Update references to
23682 `previous_terminal_frame'.
23683 (display_mode_line, Fformat_mode_line): Replace calls to
23684 `push_frame_kboard' with `push_kboard'.
23685 (get_glyph_string_clip_rects): Add extra parentheses and
23686 braces to prevent compiler warnings.
23687 (calc_pixel_width_or_height): Add xassert to check that the
23688 frame is alive. Don't call `lookup_image' on a termcap frame.
23689 (message2_nolog, message3_nolog, redisplay_internal)
23690 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23691 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23692 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23693 (Fx_display_pixel_width, Fx_display_pixel_height)
23694 (Fx_display_planes, Fx_display_color_cells)
23695 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23696 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23697 (Fx_display_backing_store, Fx_display_visual_class)
23698 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23699 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23700
23701 * xfns.c (x_set_foreground_color x_set_background_color)
23702 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23703 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23704 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23705 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23706 terminal that is being deleted.
23707 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23708 frame parameter, and make sure it overrides any user-supplied setting.
23709 (Fx_close_connection, Fx_synchronize): Unify argument names with
23710 the rest of the DEFUNs.
23711
23712 * dispnew.c (Fsend_string_to_terminal): Update call to
23713 `get_tty_terminal'.
23714 (Fredraw_frame, Fsend_string_to_terminal)
23715 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23716 FRAME_TERMCAP_P and FRAME_TTY.
23717 (window_change_signal): Don't believe width/height values that are
23718 impossibly small.
23719 (Vinitial_window_system): Rename from Vwindow_system.
23720 (termscript, Wcm, rif): Delete.
23721
23722 * termhooks.h (struct terminal): New struct containing the
23723 previously global text display hooks and new members NAME,
23724 DELETED and PARAM_ALIST.
23725 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23726 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23727 (FRAME_RIF): New macros.
23728 (get_terminal_param, get_device): New declarations.
23729 (termscript): Delete declaration.
23730
23731 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23732 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23733 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23734 FRAME_FOREGROUND_PIXEL.
23735 (x_fully_uncatch_errors): Disable definition.
23736 (x_scroll_bar_expose): Fix reference to foreground pixel.
23737 (XTread_socket): Disable loop on all X displays.
23738 (x_delete_terminal): Don't set terminal->deleted and let
23739 delete_terminal delete the frames on the terminal.
23740 (x_delete_display): Doc update to reflect changes in
23741 delete_terminal.
23742 (x_display_info) <terminal>: Move member earlier in the struct.
23743 (deleting_tty): Remove old variable.
23744 (Fsuspend_tty): Call clear_tty_hooks.
23745 (Fresume_tty, init_tty): Call set_tty_hooks.
23746 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23747 errors on X frames.
23748 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23749 (handle_one_xevent): Initialize `f' to NULL.
23750 (x_delete_terminal, x_create_terminal): New functions.
23751 (XTset_terminal_modes, XTreset_terminal_modes)
23752 (XTread_socket, x_connection_closed, x_term_init)
23753 (x_term_init, x_delete_display): Add terminal parameter.
23754 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23755 X connections.
23756
23757 * frame.c: Include termchar.h.
23758 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23759 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23760 (Qdisplay_environment_variable): New vars.
23761 (Fframep): Deal with output_initial.
23762 (Fframe-live-p): Doc fix.
23763 (Fwindow-system): New function.
23764 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23765 (make_terminal_frame): Don't create frames on a terminal that is
23766 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23767 (store_frame_param): Check for found_for_frame before calling XFRAME.
23768 (Fmake_terminal_frame): Handle NULL tty names correctly.
23769 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23770 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23771 frames to refer to a deleted frame in their 'environment parameter.
23772 (Fframe_with_environment): New function.
23773 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23774 (get_future_frame_param): New function.
23775 (Fmake_terminal_frame): Use it.
23776 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23777
23778 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23779 * sysdep.c (reset_sys_modes): Update for renames.
23780
23781 * keyboard.c (tty_read_avail_input): New function.
23782 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23783 (syms_of_keyboard): Defsubr them.
23784 (Fset_input_meta_mode, Fset_quit_char): New functions.
23785 (Fset_input_mode): Split to above functions.
23786 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23787 parameter. Use it in call to `read_char'.
23788 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23789 Set wrong_kboard_jmpbuf correctly in recursive calls.
23790 Use current_kboard to access Vkeyboard_translate_table.
23791 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23792 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23793 Update longjmp invocations. Remember the original current_kboard,
23794 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23795 changes it. Comment out unnecessary calls to
23796 `record_single_kboard_state' and `any_kboard_state'.
23797 Update recursive calls.
23798 (wrong_kboard_jmpbuf): Remove global variable.
23799 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23800 Handle deleted interrupted_kboards correctly; that is a legal
23801 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23802 and read_char calls. Abort if interrupted_kboard died in read_char.
23803 (any_kboard_state, single_kboard_state)
23804 (push_frame_kboard): Remove function.
23805 (pop_kboard): Switch out of single_kboard mode if the kboard has
23806 been deleted. Remove unused variable. Help debugging by not
23807 changing current_kboard unnecessarily. Set current_kboard to the
23808 kboard of the selected frame when the stored kboard object has
23809 been deleted before pop_kboard.
23810 (temporarily_switch_to_single_kboard): Change first parameter to a
23811 frame pointer. Throw an error when caller wants to change kboards
23812 while in single_kboard mode. Don't push_kboard if we weren't in
23813 single kboard state. Don't pop_kboard if we popped into any
23814 kboard state.
23815 (restore_kboard_configuration): Abort if pop_kboard changed the
23816 kboard in single_kboard mode. Call pop_kboard only after setting
23817 up single_kboard mode.
23818 (Frecursive_edit): Switch to single_kboard mode only in nested
23819 command loops.
23820 (cmd_error, command_loop, command_loop_1, timer_check):
23821 Comment out unnecessary call to `any_kboard_state' and
23822 `record_single_kboard_state'.
23823 (delete_kboard): Exit single_kboard mode if we have just deleted
23824 that kboard. Use FRAME_KBOARD.
23825 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23826 `fatal_error_signal'.
23827 (record_single_kboard_state): Don't push_kboard if we weren't in
23828 single kboard state. Don't pop_kboard if we popped into any
23829 kboard state.
23830 (push_frame_kboard): Rename to push_kboard.
23831 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23832 (read_avail_input): Read input from all terminals.
23833 (mark_kboards): Also mark Vkeyboard_translate_table.
23834 (kbd_buffer_store_event_hold): Simplify condition.
23835 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23836 (Vkeyboard_translate_table): Move to struct kboard.
23837 (init_kboard): Initialize Vkeyboard_translate_table.
23838 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23839 Vkeyboard_translate_table. Update doc strings. Update docs of
23840 local-function-key-map and function-key-map.
23841
23842 * terminal.c: New file.
23843
23844 * term.c: Include errno.h.
23845 (Vring_bell_function, device_list, initial_device)
23846 (next_device_id, ring_bell, update_begin, update_end)
23847 (set_terminal_window, cursor_to, raw_cursor_to)
23848 (clear_to_end, clear_frame, clear_end_of_line)
23849 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23850 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23851 (syms_of_term): Move their initialization to terminal.c.
23852 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23853 (Ftty_display_color_cells)
23854 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23855 (clear_tty_hooks, set_tty_hooks)
23856 (init_tty, maybe_fatal): New functions.
23857 (Ftty_type): Return nil if terminal is not on a tty instead of
23858 throwing an error. Doc update.
23859 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23860 Doc update. Initialize new subrs and variables.
23861 (delete_tty): Use terminal->deleted.
23862 (tty_set_terminal_modes): Rename from set_terminal_modes.
23863 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23864 (set_scroll_region): Rename to `tty_set_scroll_region'.
23865 (turn_on_insert): Rename to `tty_turn_on_insert'.
23866 (turn_off_insert): Rename to `tty_turn_off_insert'.
23867 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23868 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23869 (toggle_highligh): Rename to `tty_toggle_highlight'.
23870 (background_highlight): Rename to `tty_background_highlight'.
23871 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23872 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23873 (tty_set_scroll_region, tty_background_highlight)
23874 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23875 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23876 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23877 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23878 Add static modifier.
23879 (tty_reset_terminal_modes, tty_set_terminal_window)
23880 (tty_set_scroll_region, tty_background_highlight)
23881 (tty_highlight_if_desired, tty_cursor_to)
23882 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23883 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23884 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23885 renames.
23886
238872007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23888
23889 * keyboard.c: Qrtl is new.
23890 (parse_tool_bar_item): Handle :rtl keyword.
23891 (syms_of_keyboard): Intern :rtl keyword.
23892
23893 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23894
23895 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23896 so no Lisp code is executed.
23897 (file_for_image, find_rtl_image): New functions.
23898 (xg_get_image_for_pixmap): Use file_for_image.
23899 (update_frame_tool_bar): If direction is RTL, use RTL image if
23900 defined. Use Gtk stock images if defined.
23901
239022007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23903
23904 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23905 for nonexistent or zero-width glyph in composition glyph.
23906
239072007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23908
23909 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23910
23911 * xdisp.c (Finvisible_p): New function.
23912 (syms_of_xdisp): defsubr it.
23913
239142007-08-24 Juanma Barranquero <lekktu@gmail.com>
23915
23916 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23917 Doc fixes.
23918
239192007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23920
23921 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23922
239232007-08-24 Martin Rudalics <rudalics@gmx.at>
23924
23925 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23926 whether decoding has modified buffer contents.
23927
239282007-08-24 Jason Rumney <jasonr@gnu.org>
23929
23930 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23931 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23932 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23933 (init_svg_functions) [HAVE_NTGUI]: New function.
23934 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23935 (svg_load_image): Use them.
23936 (svg_load_image) [HAVE_NTGUI]: Implement background.
23937
239382007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23939
23940 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23941 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23942 (LIBX): Remove @RSVG_LIBS@.
23943 (LIBES): Add $(RSVG_LIBS).
23944
23945 * image.c (svg_load_image): Blend with specified background if exists.
23946 Use IMAGE_BACKGROUND. Add Mac OS Support.
23947
23948 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23949 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23950 Remove macros.
23951 [MAC_OSX] (socket_callback): Do nothing.
23952 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23953 ReceiveNextEvent.
23954 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23955 socket_callback.
23956 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23957
239582007-08-22 Glenn Morris <rgm@gnu.org>
23959
23960 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23961
239622007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23963
23964 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23965
23966 * image.c: Add support for SVG images. Some additional comments
23967 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23968 (svg_image_p): New function to test for SVG image.
23969 (svg_load): New function to load SVG image.
23970 (svg_load_image): New function, helper for svg_load.
23971 (Qsvg): New Lisp_object.
23972 (svg_keyword_index): New enum.
23973 (svg_format): New static `image_keyword' struct.
23974 (svg_type): New static `image_type' struct.
23975 (librsvg/rsvg.h): Include it.
23976
239772007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23978
23979 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23980
239812007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23982
23983 * lread.c (Qold_style_backquotes): New var.
23984 (syms_of_lread): Init and staticpro it.
23985 (load_warn_old_style_backquotes): New fun.
23986 (Fload): Use them to warn about old style backquotes.
23987 (end_of_file_error, Fload): Remove unused vars.
23988
23989 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23990
23991 * lread.c (Vold_style_backquotes): New var.
23992 (syms_of_lread): Init and export it to Elisp.
23993 (read1): Set it when we find an old-style (back)quote.
23994
239952007-08-22 Jason Rumney <jasonr@gnu.org>
23996
23997 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23998
239992007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24000
24001 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24002
240032007-08-19 Richard Stallman <rms@gnu.org>
24004
24005 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24006
240072007-08-19 Andreas Schwab <schwab@suse.de>
24008
24009 * alloc.c (pure): Round PURESIZE up.
24010
240112007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24012
24013 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24014 active frame.
24015
240162007-08-16 Richard Stallman <rms@gnu.org>
24017
24018 * eval.c (Fcommandp): Add parens to clarify.
24019
24020 * minibuf.c (Fall_completions): Use enum for type of table.
24021
24022 * emacs.c (USAGE2): Improve text.
24023
240242007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24025
24026 * term.c (tty_default_color_capabilities): Declare static
24027 variables in file scope, to avoid HPUX compiler problem.
24028
240292007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24030
24031 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24032 to gtk_toolbar_insert.
24033
240342007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24035
24036 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24037
24038 * insdel.c (reset_var_on_error): New fun.
24039 (signal_before_change, signal_after_change):
24040 Use it to reset (after|before)-change-functions to nil in case of error.
24041 Bind inhibit-modification-hooks to t.
24042 Don't bind (after|before)-change-functions to nil while they run.
24043
240442007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24045
24046 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24047 filling pixmap with stippled background.
24048
240492007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24050
24051 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24052 Don't use invisible frame as parent window for repositioning.
24053
240542007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24055
24056 * print.c (new_backquote_output): Rename from old_backquote_output.
24057 (print): Inverse its logic (according to its name) so as to match the
24058 behavior of new_backquote_flag in lread.c.
24059
240602007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24061
24062 * gmalloc.c (posix_memalign): New function.
24063
24064 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24065 ActivateControl/DeactivateControl here.
24066 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24067 frame-notice-user-settings is non-nil.
24068 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24069 for kEventParamFMFontStyle.
24070 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24071 mac_pass_command_to_system and mac_pass_control_to_system here.
24072 (XTread_socket): Call ActivateControl/DeactivateControl here.
24073 (XTread_socket) [TARGET_API_MAC_CARBON]:
24074 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24075 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24076 for window repositioning.
24077
240782007-08-08 Glenn Morris <rgm@gnu.org>
24079
24080 * Replace `iff' in doc-strings and comments.
24081
240822007-08-07 Chong Yidong <cyd@stupidchicken.com>
24083
24084 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24085
240862007-08-07 Martin Rudalics <rudalics@gmx.at>
24087
24088 * fileio.c (Finsert_file_contents): Run format-decode and
24089 after_insert_file_functions on entire buffer when REPLACE is
24090 non-nil and inhibit modification_hooks and point_motion_hooks.
24091 For consistency, run after_insert_file_functions iff something
24092 got inserted. Move signal_after_change and update_compositions
24093 after code running after_insert_file_functions. Make sure that
24094 undo_list doesn't record intermediate steps of the decoding process.
24095
240962007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24097
24098 * emacs.c (main)
24099 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24100 Call malloc_enable_thread on interactive startup.
24101
24102 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24103 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24104 [USE_PTHREAD]: Conditionalize with it.
24105 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24106 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24107 New functions.
24108
241092007-08-06 Chong Yidong <cyd@stupidchicken.com>
24110
24111 * xdisp.c (redisplay_window): When restoring original buffer
24112 position, make sure it is still valid.
24113
24114 * image.c (png_load): Ignore png-supplied background color.
24115
241162007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24117
24118 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24119 Use kCFAbsoluteTimeIntervalSince1970.
24120
24121 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24122 New variable.
24123 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24124 event loop should be quit.
24125 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24126 Quit dialog event loop if quit_dialog_event_loop is set.
24127
24128 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24129 (Selection): New typedef. Use instead of ScrapRef.
24130 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24131 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24132 (mac_clear_selection): Rename from clear_scrap.
24133 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24134 scrap_has_target_type. All uses changed.
24135 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24136 (mac_selection_has_target_p): New functions.
24137 (mac_put_selection_value): Rename from put_scrap_string.
24138 (mac_get_selection_value): Rename from get_scrap_string.
24139 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24140 (put_scrap_private_timestamp, scrap_has_target_type)
24141 (get_scrap_private_timestamp): Remove functions.
24142 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24143 (x_own_selection, x_get_local_selection):
24144 Use mac_valid_selection_value_p.
24145 (x_own_selection): Don't use put_scrap_private_timestamp.
24146 Record OWNERSHIP-INFO into Vselection_alist instead.
24147 (x_get_local_selection): Don't check type if request is local.
24148 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24149 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24150
241512007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24152
24153 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24154 add comment explaining why.
24155
241562007-08-03 Richard Stallman <rms@gnu.org>
24157
24158 * fileio.c (Fvisited_file_modtime): Use make_time.
24159
241602007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24161
24162 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24163 build.
24164
241652007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24166
24167 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24168
241692007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24170
24171 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24172
241732007-07-30 Richard Stallman <rms@gnu.org>
24174
24175 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24176
241772007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24178
24179 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24180
241812007-07-28 Nick Roberts <nickrob@snap.net.nz>
24182
24183 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24184 remote default-directory.
24185
24186 * buffer.c (mode-line-format): Update doc string.
24187
241882007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24189
24190 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24191 scroll bar gap.
24192 (x_scroll_bar_create): Set bar->fringe_extended_p.
24193 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24194 on frame edge. Check fringe background extension. Don't clear
24195 extended fringe background area.
24196
24197 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24198 (w32_fill_area): Enclose multiple statements with do ... while (0).
24199
24200 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24201 Extend fringe background to scroll bar gap.
24202 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24203 Set bar->fringe_extended_p.
24204 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24205 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24206 background extension. Don't clear extended fringe background area.
24207
24208 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24209 New member fringe_extended_p.
24210
242112007-07-25 Glenn Morris <rgm@gnu.org>
24212
24213 * Relicense all FSF files to GPLv3 or later.
24214
24215 * COPYING: Switch to GPLv3.
24216
242172007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24218
24219 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24220
24221 * data.c (Finteractive_form): Check for the presence of an
24222 `interactive-form' symbol property more thoroughly.
24223
24224 * data.c (Finteractive_form): Use an `interactive-form' property if
24225 present, analogous to the function-documentation property.
24226
242272007-07-24 Jason Rumney <jasonr@gnu.org>
24228
24229 * w32fns.c (x_real_positions): Get real position from OS instead of
24230 calculating it.
24231
242322007-07-23 Jason Rumney <jasonr@gnu.org>
24233
24234 * filelock.c (current_lock_owner): Allow for @ sign in username.
24235
242362007-07-22 Nick Roberts <nickrob@snap.net.nz>
24237
24238 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24239 remote default-directory.
24240
24241 * buffer.c (mode-line-format): Describe above case in doc string.
24242
242432007-07-20 Eli Zaretskii <eliz@gnu.org>
24244
24245 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24246 Define if not defined.
24247
242482007-07-18 Jason Rumney <jasonr@gnu.org>
24249
24250 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24251
242522007-07-18 Richard Stallman <rms@gnu.org>
24253
24254 * data.c (Fsetq_default): Doc fix.
24255
24256 * eval.c (Fsetq): Doc fix.
24257
242582007-07-18 Juanma Barranquero <lekktu@gmail.com>
24259
24260 * coding.c (Ffind_operation_coding_system):
24261 * eval.c (For, Fand): Doc fixes.
24262 Reported by Johan Bockgård.
24263
242642007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24265
24266 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24267
24268 * xterm.h: Declare x_ewmh_activate_frame.
24269
24270 * xterm.c (x_ewmh_activate_frame): New function.
24271 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24272
242732007-07-17 Martin Rudalics <rudalics@gmx.at>
24274
24275 * window.c (Fdisplay_buffer): If largest or LRU window is the
24276 only window, split it even if it is not eligible for splitting.
24277 This restores the original behavior broken by the 2007-07-15
24278 change.
24279
242802007-07-17 Glenn Morris <rgm@gnu.org>
24281
24282 * abbrev.c (abbrev_check_chars): New function.
24283 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24284 Call abbrev_check_chars to check abbrev characters are word
24285 constituents. Doc fix.
24286
242872007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24288
24289 * process.c (Fstart_process, Fmake_network_process)
24290 (read_process_output): Fix up last changes.
24291
242922007-07-16 Eli Zaretskii <eliz@gnu.org>
24293
24294 * makefile.w32-in (clean): Don't delete *~.
24295
242962007-07-16 Andreas Schwab <schwab@suse.de>
24297
24298 * window.c (Fdisplay_buffer): Use NILP.
24299 (Fset_window_scroll_bars): Likewise.
24300
243012007-07-15 Martin Rudalics <rudalics@gmx.at>
24302
24303 * window.c (window_min_size_2): New function.
24304 (window_min_size_1, size_window, Fdisplay_buffer)
24305 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24306 windows without mode- or header-lines when window-min-height is
24307 too small.
24308 (size_window): Reset nodelete_p after testing it, following an
24309 earlier note by Kim F. Storm.
24310 (display_buffer): Do not set split_height_threshold to twice the
24311 value of window_min_height to avoid changing the value of a
24312 customizable variable. Rather explicitly check whether the
24313 height of the window that shall be splitted is at least as large
24314 as split_height_threshold.
24315 (Fwindow_full_width_p): New defun.
24316 (syms_of_window): Defsubr it.
24317
24318 * window.h: Add EXFUN for Fwindow_full_width_p.
24319
243202007-07-14 Jason Rumney <jasonr@gnu.org>
24321
24322 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24323
243242007-07-14 Richard Stallman <rms@gnu.org>
24325
24326 * eval.c (maybe_call_debugger): New function.
24327 (find_handler_clause): Use maybe_call_debugger.
24328 Call it when the handler says `debug'.
24329 Eliminate DEBUGGER_VALUE_PTR.
24330 (Fsignal): Eliminate debugger_value.
24331 (Qdebug): New variable.
24332 (syms_of_eval): Initialize it.
24333
243342007-07-14 Juanma Barranquero <lekktu@gmail.com>
24335
24336 * eval.c (Fprogn):
24337 * keyboard.c (Ftrack_mouse):
24338 * print.c (Fwith_output_to_temp_buffer):
24339 * window.c (Fsave_window_excursion): Doc fix.
24340
243412007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24342
24343 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24344
243452007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24346
24347 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24348 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24349 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24350 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24351 Remove unused encoding_carryover.
24352 * process.c: Adjust all functions accordingly.
24353
243542007-07-12 Richard Stallman <rms@gnu.org>
24355
24356 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24357
243582007-07-11 Jason Rumney <jasonr@gnu.org>
24359
24360 * makefile.w32-in (LIBS): Include OLE32.
24361
24362 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24363 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24364
243652007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24366
24367 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24368 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24369 from a Lisp_Object into a bare pointer.
24370 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24371 Adjust the code correspondingly.
24372
24373 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24374
24375 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24376 (term_show_mouse_face): Remove unused var `j'.
24377 (handle_one_term_event): Remove unused vars `i' and `j'.
24378 Don't cast return value of ttyname since it's not necessary.
24379
243802007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24381
24382 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24383 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24384
24385 * fns.c (map_char_table): Use an array of int for `indices' rather than
24386 an array of Lisp_Objects (which are only ever integers anyway).
24387 (Fmap_char_table): Update caller.
24388 * lisp.h: Update prototype.
24389 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24390 * fontset.c (Ffontset_info):
24391 * casetab.c (set_case_table): Update callers.
24392
24393 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24394
24395 * keymap.c (struct accessible_keymaps_data)
24396 (struct where_is_internal_data): New structures.
24397 (accessible_keymaps_1, where_is_internal_1): Use them to change
24398 interface to adhere to the one used by map_keymap.
24399 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24400 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24401
24402 * keymap.h (map_keymap_function_t): More informative prototype.
24403
244042007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24405
24406 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24407 (looking_at_1): Don't change search_regs and last_thing_searched
24408 if `inhibit-changing-match-data' is non-nil.
24409 (string_match_1, search_buffer, set_search_regs): Likewise.
24410 (syms_of_search): Add Lisp level definition for
24411 `inhibit-changing-match-data' and set it to nil.
24412 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24413 start and end of the match, instead of using values in search_regs.
24414
244152007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24416
24417 * minibuf.c (Fcompleting_read): New value `confirm-only'
24418 for `require-match'.
24419
244202007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24421
24422 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24423 part of the 2007-06-27 change to syms_of_fileio.
24424
244252007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24426
24427 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24428 Check WINDOWP before using XWINDOW. Consolidate return statements.
24429
244302007-06-27 Richard Stallman <rms@gnu.org>
24431
24432 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24433
244342007-06-27 Juanma Barranquero <lekktu@gmail.com>
24435
24436 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24437
244382007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24439
24440 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24441 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24442 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24443 (_free_internal, memalign): Use them.
24444 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24445 Initialize to PTHREAD_MUTEX_INITIALIZER.
24446 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24447 (morecore_nolock): Rename from morecore. All uses changed.
24448 Use only nolock versions of internal allocation functions.
24449 (_malloc_internal_nolock, _realloc_internal_nolock)
24450 (_free_internal_nolock): New functions created from
24451 _malloc_internal, _realloc_internal, and _free_internal.
24452 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24453 Copy hook value to automatic variable before its use.
24454 (memalign): Copy hook value to automatic variable before its use.
24455
244562007-06-26 Kenichi Handa <handa@m17n.org>
24457
24458 * coding.c (Ffind_operation_coding_system): Docstring improved.
24459 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24460
244612007-06-25 David Kastrup <dak@gnu.org>
24462
24463 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24464 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24465 cater for additional parameter.
24466
24467 * keymap.h: Adjust number of parameters to `current-active-maps'.
24468
24469 * doc.c (Fsubstitute_command_keys): Adjust call of
24470 `current-active-maps'.
24471
244722007-06-25 David Kastrup <dak@gnu.org>
24473
24474 * callint.c (Fcall_interactively): Make the parsing of interactive
24475 specs somewhat more readable.
24476
244772007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24478
24479 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24480 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24481 if extended background has already been filled.
24482
244832007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24484
24485 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24486 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24487
24488 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24489 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24490 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24491 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24492 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24493 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24494 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24495 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24496 Run timers during dialog popup.
24497 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24498
244992007-06-21 Jason Rumney <jasonr@gnu.org>
24500
24501 * image.c (convert_mono_to_color_image): Swap fore and background.
24502
245032007-06-20 Jason Rumney <jasonr@gnu.org>
24504
24505 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24506 (w32_free_bdf_font): Unmap memory not handle.
24507
245082007-06-20 Sam Steingold <sds@gnu.org>
24509
24510 * gmalloc.c (__morecore): Fix the declaration to comply with the
24511 definition.
24512
245132007-06-20 Juanma Barranquero <lekktu@gmail.com>
24514
24515 * w32term.c (w32_delete_display): Remove leftover declaration.
24516 (w32_define_cursor, w32_initialize): Make static.
24517
24518 * w32.c (_wsa_errlist): Fix typo in error message.
24519 (init_environment): Ignore any environment variable from the
24520 registry having a null value.
24521
245222007-06-20 Glenn Morris <rgm@gnu.org>
24523
24524 * Makefile.in (LIBGIF): Default to -lgif.
24525
245262007-06-17 Jason Rumney <jasonr@gnu.org>
24527
24528 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24529 unicode strings.
24530
245312007-06-16 Juanma Barranquero <lekktu@gmail.com>
24532
24533 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24534 Fix typo in docstring.
24535
245362007-06-16 Eli Zaretskii <eliz@gnu.org>
24537
24538 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24539 and their keybindings.
24540
245412007-06-15 Chong Yidong <cyd@stupidchicken.com>
24542
24543 * composite.c (update_compositions): Fix last fix.
24544
245452007-06-14 Jason Rumney <jasonr@gnu.org>
24546
24547 * w32.c (get_process_times_fn): New function pointer.
24548 (globals_of_w32): Intialize it if present in kernel32.dll.
24549 (w32_get_internal_run_time): New function.
24550
24551 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24552
245532007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24554
24555 * composite.c (update_compositions): Check the validness of
24556 compositions.
24557
245582007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24559
24560 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24561 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24562
24563 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24564 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24565
24566 * macgui.h (USE_MAC_TOOLBAR): New define.
24567
24568 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24569 Return immediately unless popup is activated.
24570
24571 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24572 background to scroll bar gap.
24573 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24574 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24575 scroll bars on frame edge. Check fringe background extension.
24576 Don't clear extended fringe background area.
24577 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24578 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24579 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24580 [USE_MAC_TOOLBAR]: New macros.
24581 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24582 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24583 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24584 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24585 [USE_MAC_TOOLBAR]: New functions.
24586 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24587 manually if previous repositioning has failed.
24588 (mac_handle_keyboard_event): Use precomputed event kind.
24589 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24590 as tool bar item click. Handle mouse movement over tool bar items.
24591
24592 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24593 toolbar_win_gravity.
24594 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24595 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24596 Add externs.
24597
24598 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24599 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24600
246012007-06-14 Chong Yidong <cyd@stupidchicken.com>
24602
24603 * image.c (search_image_cache): Remove unused variable.
24604
246052007-06-13 Chong Yidong <cyd@stupidchicken.com>
24606
24607 * xfns.c, xmenu.c: Link to xaw3d if available.
24608
246092007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24610
24611 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24612 frame_foreground and frame_background.
24613
24614 * image.c (lookup_image): Save frame foreground and background colors.
24615 (search_image_cache): Check if saved and current frame colors match.
24616
246172007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24618
24619 * regex.c (regex_compile): Remove the `regnum' counter.
24620 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24621
246222007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24623
24624 * term.c: Include intervals.h to declare Fget_text_property.
24625
246262007-06-10 Jason Rumney <jasonr@gnu.org>
24627
24628 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24629
246302007-06-08 Juanma Barranquero <lekktu@gmail.com>
24631
24632 * callint.c (Fcall_interactively):
24633 * editfns.c (Fdelete_and_extract_region):
24634 * fileio.c (Fread_file_name):
24635 * fns.c (Fmapconcat):
24636 * keyboard.c (cmd_error_internal):
24637 * keymap.c (Fkey_description):
24638 * lread.c (openp):
24639 * minibuf.c (read_minibuf):
24640 * search.c (wordify):
24641 * sunfns.c (sel_read):
24642 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24643 * xfns.c (x_default_scroll_bar_color_parameter):
24644 * xmenu.c (menu_help_callback):
24645 * xselect.c (Fx_get_atom_name):
24646 * xterm.c (x_term_init): Use empty_unibyte_string.
24647
246482007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24649
24650 * alloc.c (init_strings): Initialize canonical empty strings.
24651 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24652 canonical empty string when the requested size is 0.
24653
24654 * emacs.c (empty_unibyte_string): Rename from empty_string.
24655 (empty_multibyte_string): New canonical empty string.
24656 (syms_of_emacs): Don't initialize empty_string.
24657
24658 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24659 string, if appropriate.
24660 (empty_unibyte_string, empty_multibyte_string): New externs.
24661 (empty_string): Remove extern.
24662
24663 * lread.c (syms_of_lread): Use empty_unibyte_string.
24664
246652007-06-07 Jason Rumney <jasonr@gnu.org>
24666
24667 * s/ms-w32.h: Don't define HAVE_TZNAME.
24668
24669 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24670
246712007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24672
24673 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24674
24675 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24676 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24677
24678 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24679 Don't call next handler.
24680 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24681 Remove argument. Install handler to application.
24682 (set_frame_menubar): Don't change deep_p.
24683 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24684 FRAME_OUTER_TO_INNER_DIFF_Y.
24685 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24686 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24687 [HAVE_DIALOGS]: New macros.
24688 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24689 Use them.
24690 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24691
24692 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24693 init_service_handler. All callers changed. Return OSStatus value.
24694
24695 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24696 All callers changed so as not to call SetPortWindowPort.
24697 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24698 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24699 mac_draw_string_common.
24700 (mac_draw_image_string_qd): Likewise.
24701 (mac_draw_string_common): Use them. Add INLINE.
24702 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24703 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24704 GetGlobalMouse.
24705 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24706 and FRAME_OUTER_TO_INNER_DIFF_Y.
24707 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24708 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24709 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24710 repositioning window to mac_handle_window_event.
24711 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24712 saving window location to mac_handle_window_event
24713 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24714 (install_menu_target_item_handler): Remove argument in extern.
24715 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24716 Also accept command events.
24717 (do_keystroke): New function created from XTread_socket.
24718 (init_command_handler): Remove functions.
24719 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24720 and save window location by kEventWindowShowing and kEventWindowHiding
24721 handlers here. Don't call next handler for window state change and
24722 focus events.
24723 (mac_handle_application_event, mac_handle_keyboard_event)
24724 [TARGET_API_MAC_CARBON]: New functions.
24725 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24726 kEventWindowShowing and kEventWindowHiding events. Move installation
24727 of mouse, font, text input and menu target item handlers to
24728 install_application_handler.
24729 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24730 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24731 New function.
24732 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24733 Register it.
24734 (XTread_socket) [TARGET_API_MAC_CARBON]:
24735 Consolidate SendEventToEventTarget calls.
24736 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24737 Move application activation handler to mac_handle_application_event.
24738 Move keyboard handler to mac_handle_keyboard_event.
24739 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24740 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24741 init_command_handler. Call install_application_handler.
24742
24743 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24744 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24745
247462007-06-07 Glenn Morris <rgm@gnu.org>
24747
24748 * emacs.c (main): Use `emacs-copyright' in --version output.
24749
247502007-06-06 Chong Yidong <cyd@stupidchicken.com>
24751
24752 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24753
247542007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24755
24756 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24757
24758 * macgui.h: Replace WindowPtr with WindowRef.
24759
24760 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24761 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24762 Replace ControlHandle with ControlRef.
24763 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24764
24765 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24766 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24767 Replace ControlHandle with ControlRef.
24768 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24769 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24770
24771 * macterm.h (struct scroll_bar): Rename member control_handle_low
24772 and control_handle_high to control_ref_low and control_ref_high.
24773 All uses changed.
24774 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24775 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24776 respectively. All uses changed.
24777 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24778 (install_window_handler, remove_window_handler): Replace WindowPtr
24779 with WindowRef in externs.
24780
247812007-06-05 Juanma Barranquero <lekktu@gmail.com>
24782
24783 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24784
247852007-06-03 Nick Roberts <nickrob@snap.net.nz>
24786
24787 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24788
24789 * frame.c (Fmouse_position, Fmouse_pixel_position):
24790 Condition on HAVE_GPM too.
24791
24792 * term.c (term_mouse_highlight): Remove unused variables.
24793 (Fterm_open_connection): Set gpm_zerobased to 1.
24794 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24795 Use zero based co-ordinates.
24796 (handle_one_term_event): Report a drag as mouse movement too.
24797
24798 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24799
248002007-06-03 Chong Yidong <cyd@stupidchicken.com>
24801
24802 * image.c (search_image_cache): New function. Require background
24803 color match if background color is unspecified in the image spec.
24804 (uncache_image, lookup_image): Use it.
24805
248062007-06-01 Juanma Barranquero <lekktu@gmail.com>
24807
24808 * window.c (Fshrink_window): Reflow docstring.
24809
248102007-06-02 Chong Yidong <cyd@stupidchicken.com>
24811
24812 * Version 22.1 released.
24813
248142007-06-01 Richard Stallman <rms@gnu.org>
24815
24816 * xfns.c (x_encode_text): Add GCPRO.
24817
248182007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24819
24820 * xfns.c (x_set_name_internal): Save encoded name before
24821 x_encode_text in case string data is relocated.
24822
248232007-05-31 Richard Stallman <rms@gnu.org>
24824
24825 * buffer.c (syms_of_buffer): Doc fix.
24826
248272007-05-30 Nick Roberts <nickrob@snap.net.nz>
24828
24829 * sysdep.c (init_sys_modes): Add rather than replace with
24830 O_NONBLOCK.
24831
24832 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24833 term_mouse_moveto.
24834
24835 * termhooks.h (term_mouse_moveto): New extern.
24836
24837 * term.c (mouse_face_window): Rename...
24838 (Qmouse_face_window): ...to this.
24839 (term_show_mouse_face, term_clear_mouse_face)
24840 (term_mouse_highlight): Use Qmouse_face_window.
24841 (term_mouse_moveto): New function.
24842 (term_mouse_position): Make it work.
24843 (syms_of_term): Uncomment assignment to mouse_position_hook.
24844 Staticpro Qmouse_face_window.
24845
248462007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24847
24848 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24849 around current_column call.
24850
248512007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24852
24853 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24854 * xdisp.c (next_element_from_buffer):
24855 * window.c (delete_window):
24856 * term.c (term_mouse_highlight):
24857 * msdos.c (getdefdir):
24858 * macterm.c (mac_create_bitmap_from_bitmap_data)
24859 (init_font_name_table):
24860 * fns.c (Fsxhash):
24861 * data.c (Fmake_local_variable):
24862 * ccl.c (ccl_driver): Likewise.
24863
248642007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24865
24866 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24867 Call mac_wakeup_from_rne on window size change.
24868
248692007-05-25 Chong Yidong <cyd@stupidchicken.com>
24870
24871 * image.c (uncache_image): Fix typo.
24872
248732007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24874
24875 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24876
248772007-05-22 Richard Stallman <rms@gnu.org>
24878
24879 * xterm.c (x_connection_closed): Remove NO_RETURN.
24880
248812007-05-22 Martin Rudalics <rudalics@gmx.at>
24882
24883 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24884
248852007-05-21 Chong Yidong <cyd@stupidchicken.com>
24886
24887 * image.c (uncache_image): New function.
24888 (Fimage_refresh): New function.
24889
248902007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24891
24892 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24893
248942007-05-20 Nick Roberts <nickrob@snap.net.nz>
24895
24896 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24897 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24898
248992007-05-20 Nick Roberts <nickrob@snap.net.nz>
24900
24901 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24902 conditional on [HAVE_GPM_H].
24903
249042007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24905
24906 * syntax.c (skip_chars): Update syntax-table only after we checked that
24907 the new location is valid.
24908
249092007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24910
24911 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24912 mac_get_window_bounds.
24913
249142007-05-20 Nick Roberts <nickrob@snap.net.nz>
24915
24916 * Makefile.in (LIBGPM): Allow it to be set from configure.
24917 If set then link Emacs with it.
24918
24919 * config.in: Regenerate.
24920
24921 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24922 New externs.
24923
24924 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24925 Include gpm.h.
24926 (handle_one_term_event, term_gpm): New externs.
24927
24928 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24929 and allow it to be interrupted by SIGIO.
24930
24931 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24932 (wait_reading_process_output): Wait on gpm_fd too.
24933 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24934 (add_gpm_wait_descriptor_called_flag): New variable.
24935 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24936
24937 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24938 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24939 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24940 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24941 (make_lispy_event): Add case GPM_CLICK_EVENT.
24942 (read_avail_input): Handle mouse input.
24943
24944 * term.c (write_glyphs_with_face): New function.
24945 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24946 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24947 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24948 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24949 (last_mouse_x, last_mouse_y): New variables.
24950 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24951 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24952 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24953 (Fterm_close_connection): New functions.
24954 (term_init): Initialise mouse_face_window.
24955
249562007-05-19 Chong Yidong <cyd@stupidchicken.com>
24957
24958 * xdisp.c (redisplay_window): If first window line is a
24959 continuation line, recompute the new window start instead of
24960 recentering.
24961
249622007-05-18 Glenn Morris <rgm@gnu.org>
24963
24964 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24965 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24966
249672007-05-17 Glenn Morris <rgm@gnu.org>
24968
24969 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24970
249712007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24972
24973 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24974 dead key repeat and up events.
24975
249762007-05-14 Chong Yidong <cyd@stupidchicken.com>
24977
24978 * image.c (pbm_load): Check image size for monochrome pbm.
24979
249802007-05-13 Chong Yidong <cyd@stupidchicken.com>
24981
24982 * xterm.c (XTread_socket): Revert last change.
24983
249842007-05-12 Chong Yidong <cyd@stupidchicken.com>
24985
24986 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24987
24988 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24989
249902007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24991
24992 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24993 mixup (YAILOM).
24994
249952007-05-07 Andreas Schwab <schwab@suse.de>
24996
24997 * keymap.c (Flookup_key): Fix typo in last change.
24998
249992007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25000
25001 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25002 mapping for unibyte strings.
25003
250042007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25005
25006 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25007 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25008
250092007-04-29 Richard Stallman <rms@gnu.org>
25010
25011 * insdel.c (replace_range): For undo, record insertion first.
25012
250132007-04-29 Andreas Schwab <schwab@suse.de>
25014
25015 * lisp.h (VECSIZE): Use OFFSETOF.
25016
250172007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25018
25019 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25020 disabled lines.
25021
250222007-04-28 Richard Stallman <rms@gnu.org>
25023
25024 * lread.c (read_escape): In a string, \s is always space.
25025
250262007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25027
25028 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25029
25030 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25031 submenu for menu bar items.
25032
25033See ChangeLog.10 for earlier changes.
25034
25035;; Local Variables:
25036;; coding: utf-8
25037;; add-log-time-zone-rule: t
aac0c6e3
MR
25038;; End:
25039
e3eb1dae 25040 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25041
25042 This file is part of GNU Emacs.
25043
25044 GNU Emacs is free software: you can redistribute it and/or modify
25045 it under the terms of the GNU General Public License as published by
25046 the Free Software Foundation, either version 3 of the License, or
25047 (at your option) any later version.
25048
25049 GNU Emacs is distributed in the hope that it will be useful,
25050 but WITHOUT ANY WARRANTY; without even the implied warranty of
25051 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25052 GNU General Public License for more details.
25053
25054 You should have received a copy of the GNU General Public License
25055 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25056
25057;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40