Add compilation regexps for cucumber and ruby.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
48104462
CY
12010-07-10 Chong Yidong <cyd@stupidchicken.com>
2
3 * frame.c (make_frame): Initialize menu_bar_lines and
4 tool_bar_lines members.
5 (make_initial_frame, make_terminal_frame): Initialize
6 menu_bar_lines using value of menu-bar-mode.
7
8 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
9
f388c88a
EZ
102010-07-10 Eli Zaretskii <eliz@gnu.org>
11
12 * process.c: Reshuffle #include's. Condition some of the global
13 and static variables on `subprocesses'.
14 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
15 Leave only one implementation.
16 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
17 (kill_buffer_processes, Flist_system_processes)
18 (Fprocess_attributes, init_process, syms_of_process): Unify the
19 implementations for with subprocesses and without them.
20
723f5a07
J
212010-07-09 Jan Djärv <jan.h.d@swipnet.se>
22
23 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
24 correct size for Motif.
25 (free_frame_menubar): Call x_set_window_size to update frame size.
26
27 * xfns.c (x_window): Set borderWidth to 0 for pane and
28 EmacsFrame. Frame size calculation is wrong otherwise.
29
2536a4b7
MA
302010-07-09 Michael Albinus <michael.albinus@gmx.de>
31
32 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
33 allows to suppress errors when polling in Emacs' main loop.
34 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
35 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
36 (Fdbus_method_error_internal, Fdbus_send_signal)
37 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
38 (Fdbus_register_method): Use it. (Bug#6579)
39
5842a27b
DN
402010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
41
42 * alloc.c: Convert DEFUNs to standard C.
43 * buffer.c:
44 * bytecode.c:
45 * callint.c:
46 * callproc.c:
47 * casefiddle.c:
48 * casetab.c:
49 * category.c:
50 * character.c:
51 * charset.c:
52 * chartab.c:
53 * cmds.c:
54 * coding.c:
55 * composite.c:
56 * data.c:
57 * dbusbind.c:
58 * dired.c:
59 * dispnew.c:
60 * doc.c:
61 * dosfns.c:
62 * editfns.c:
63 * emacs.c:
64 * eval.c:
65 * fileio.c:
66 * filelock.c:
67 * floatfns.c:
68 * fns.c:
69 * font.c:
70 * fontset.c:
71 * frame.c:
72 * fringe.c:
73 * image.c:
74 * indent.c:
75 * insdel.c:
76 * keyboard.c:
77 * keymap.c:
78 * lread.c:
79 * macros.c:
80 * marker.c:
81 * menu.c:
82 * minibuf.c:
83 * msdos.c:
84 * nsfns.m:
85 * nsmenu.m:
86 * nsselect.m:
87 * print.c:
88 * process.c:
89 * search.c:
90 * sound.c:
91 * syntax.c:
92 * term.c:
93 * terminal.c:
94 * textprop.c:
95 * undo.c:
96 * w16select.c:
97 * w32console.c:
98 * w32fns.c:
99 * w32font.c:
100 * w32menu.c:
101 * w32proc.c:
102 * w32select.c:
103 * window.c:
104 * xdisp.c:
105 * xfaces.c:
106 * xfns.c:
107 * xmenu.c:
108 * xselect.c:
109 * xsettings.c:
110 * xsmfns.c: Likewise.
111
112
d568829b
EZ
1132010-07-08 Eli Zaretskii <eliz@gnu.org>
114
115 * process.c (kbd_is_on_hold, hold_keyboard_input)
116 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
117
52214050
J
1182010-07-08 Jan Djärv <jan.h.d@swipnet.se>
119
120 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
121 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
122 unless USE_LUCID.
123
313d9eb2
DN
1242010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
125
d8825aa3
DN
126 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
127
295d0d8f
DN
128 Clean up include guards.
129 * tparam.c: Remove include guards for config.h, string.h and code
130 that assumes #ifndef emacs.
131 * termcap.c:
132 * unexalpha.c:
133 * sysdep.c:
134 * filemode.c:
135 * filelock.c:
136 * bidi.c: Likewise.
137
49d9e6b0
DN
138 Remove prefix-args.c
139 * prefix-args.c: Remove file.
140 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
141 * Makefile.in (temacs${EXEEXT}): Remove references to
142 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
143 (mostlyclean): Remove reference to prefix-args.
144 (prefix-args): Remove.
145
313d9eb2
DN
146 Simplify cstart_of_data, start_of_code and related code.
147 * mem-limits.h: Remove !emacs and _LIBC conditional code.
148 (start_of_data): Merge into start_of_data function.
149 * sysdep.c (start_of_text): Remove. Move simplified versions of
150 it in the only users: unexaix.c and unexec.c.
151 (read_input_waiting): Remove local declaration of quit_char.
152 (start, etext): Remove declarations.
153 (start_of_data): Merge with the version in mem-limits.h and move
154 to vm-limits.c.
155 * vm-limit.c (start_of_data): Merged and simplified version of the
156 code formerly in mem-limits.h and sysdep.c.
157 * unexec.c (start): New declaration, moved from sysdep.c.
158 (start_of_text): Simplified version of the code formerly in sysdep.c.
159 * unexaix.c (start_of_text): Simplified version of the code
160 formerly in sysdep.c.
161 * m/alpha.h (HAVE_TEXT_START): Remove.
162 (TEXT_START): Move ...
163 * unexalpha.c (TEXT_START): ... here.
164 * s/hpux10-20.h (TEXT_START): Remove.
165 * s/darwin.h (TEXT_START):
166 * m/mips.h (TEXT_START):
167 * m/macppc.h (HAVE_TEXT_START):
168 * m/m68k.h (TEXT_START):
169 * m/iris4d.h (TEXT_START):
170 * m/intel386.h (TEXT_START):
171 * m/ibmrs6000.h (TEXT_START):
172 * m/ia64.h (HAVE_TEXT_START):
173 * s/msdos.h (TEXT_START): Likewise.
174
72af86bd
AS
1752010-07-07 Andreas Schwab <schwab@linux-m68k.org>
176
177 * alloc.c (overrun_check_malloc, overrun_check_realloc)
178 (overrun_check_free, xstrdup, allocate_string)
179 (allocate_string_data, compact_small_strings, Fmake_string)
180 (make_unibyte_string, make_multibyte_string)
181 (make_string_from_bytes, make_specified_string, make_float)
182 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
183 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
184 memcpy, memmove, memset, memcmp.
185 * atimer.c (start_atimer, set_alarm): Likewise.
186 * buffer.c (clone_per_buffer_values, report_overlay_modification)
187 (mmap_realloc, init_buffer_once): Likewise.
188 * callint.c (Fcall_interactively): Likewise.
189 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
190 (getenv_internal_1): Likewise.
191 * casefiddle.c (casify_object): Likewise.
192 * ccl.c (ccl_driver): Likewise.
193 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
194 * charset.c (load_charset_map_from_file)
195 (load_charset_map_from_file, load_charset_map_from_vector)
196 (Fdefine_charset_internal): Likewise.
197 * cm.c (Wcm_clear): Likewise.
198 * coding.c (decode_eol, decode_coding_object)
199 (Fset_coding_system_priority, make_subsidiaries): Likewise.
200 * data.c (Faset): Likewise.
201 * dired.c (directory_files_internal, file_name_completion_stat):
202 Likewise.
203 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
204 (clear_glyph_row, copy_row_except_pointers)
205 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
206 (save_current_matrix, restore_current_matrix)
207 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
208 (mirror_line_dance, scrolling_window): Likewise.
209 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
210 Likewise.
211 * doprnt.c (doprnt): Likewise.
212 * editfns.c (Fuser_full_name, make_buffer_string_both)
213 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
214 * emacs.c (sort_args): Likewise.
215 * eval.c (Fapply, Ffuncall): Likewise.
216 * fileio.c (Ffile_name_directory, make_temp_name)
217 (Fexpand_file_name, search_embedded_absfilename)
218 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
219 (auto_save_error): Likewise.
220 * fns.c (Fstring_equal, Fcopy_sequence, concat)
221 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
222 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
223 (Fmake_hash_table): Likewise.
224 * fringe.c (Fdefine_fringe_bitmap): Likewise.
225 * ftfont.c (ftfont_text_extents): Likewise.
226 * getloadavg.c (getloadavg): Likewise.
227 * image.c (define_image_type, make_image, make_image_cache)
228 (x_create_x_image_and_pixmap, xbm_image_p)
229 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
230 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
231 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
232 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
233 (tiff_image_p, tiff_read_from_memory, gif_image_p)
234 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
235 Likewise.
236 * indent.c (scan_for_column, compute_motion): Likewise.
237 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
238 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
239 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
240 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
241 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
242 (store_user_signal_events, menu_bar_items, tool_bar_items)
243 (process_tool_bar_item, append_tool_bar_item)
244 (read_char_minibuf_menu_prompt, read_key_sequence)
245 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
246 Likewise.
247 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
248 Likewise.
249 * lisp.h (STRING_COPYIN): Likewise.
250 * lread.c (Fload, read1, oblookup): Likewise.
251 * msdos.c (Frecent_doskeys): Likewise.
252 * nsfns.m (Fx_create_frame): Likewise.
253 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
254 Likewise.
255 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
256 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
257 Likewise.
258 * nsmenu.m (ns_update_menubar): Likewise.
259 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
260 * print.c (print_unwind, printchar, strout, print_string)
261 (print_error_message): Likewise.
262 * process.c (conv_lisp_to_sockaddr, set_socket_option)
263 (Fmake_network_process, Fnetwork_interface_list)
264 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
265 (init_process): Likewise.
266 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
267 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
268 Likewise.
269 * scroll.c (do_scrolling, do_direct_scrolling)
270 (scrolling_max_lines_saved): Likewise.
271 * search.c (search_buffer, wordify, Freplace_match): Likewise.
272 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
273 * syntax.c (skip_chars, skip_syntaxes): Likewise.
274 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
275 (emacs_set_tty): Likewise.
276 * term.c (encode_terminal_code, calculate_costs)
277 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
278 Likewise.
279 * termcap.c (tgetst1, gobble_line): Likewise.
280 * termhooks.h (EVENT_INIT): Likewise.
281 * tparam.c (tparam1): Likewise.
282 * unexalpha.c (unexec): Likewise.
283 * unexec.c (write_segment): Likewise.
284 * unexmacosx.c (unexec_write_zero): Likewise.
285 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
286 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
287 * w32font.c (w32font_list_family, w32font_text_extents)
288 (w32font_list_internal, w32font_match_internal)
289 (w32font_open_internal, compute_metrics, Fx_select_font):
290 Likewise.
291 * w32menu.c (set_frame_menubar, add_menu_item)
292 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
293 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
294 * w32uniscribe.c (uniscribe_list_family): Likewise.
295 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
296 * window.c (make_window, replace_window, set_window_buffer)
297 (Fsplit_window): Likewise.
298 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
299 (add_to_log, message3, x_consider_frame_title)
300 (append_space_for_newline, extend_face_to_end_of_line)
301 (decode_mode_spec_coding, init_glyph_string): Likewise.
302 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
303 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
304 (face_attr_equal_p, make_realized_face, make_face_cache)
305 (free_realized_faces, lookup_named_face, smaller_face)
306 (face_with_height, lookup_derived_face)
307 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
308 (Finternal_set_font_selection_order, realize_default_face)
309 (compute_char_face, face_at_buffer_position)
310 (face_for_overlay_string, face_at_string_position, merge_faces):
311 Likewise.
312 * xfns.c (xic_create_fontsetname, Fx_create_frame)
313 (Fx_window_property, x_create_tip_frame)
314 (Fx_backspace_delete_keys_p): Likewise.
315 * xfont.c (xfont_list, xfont_match, xfont_list_family)
316 (xfont_text_extents): Likewise.
317 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
318 * xrdb.c (magic_file_p, x_get_resource): Likewise.
319 * xselect.c (x_queue_event, x_get_window_property)
320 (receive_incremental_selection): Likewise.
321 * xsmfns.c (x_session_check_input): Likewise.
322 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
323 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
324 Likewise.
325 * character.h (BCOPY_SHORT): Removed.
326 * config.in: Regenerate.
327 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
328 * emacs.c (main) [PROFILING]: Don't declare
329 dump_opcode_frequencies.
330 * lisp.h (safe_bcopy): Remove declaration.
331 (memset) [!HAVE_MEMSET]: Declare.
332 (memcpy) [!HAVE_MEMCPY]: Likewise.
333 (memmove) [!HAVE_MEMMOVE]: Likewise.
334 (memcmp) [!HAVE_MEMCMP]: Likewise.
335 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
336 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
337 Don't define.
338 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
339 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
340 (BCOPY_DOWNWARD_SAFE): Don't define.
341 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
342 (memcpy) [!HAVE_MEMCPY]: Define.
343 (memmove) [!HAVE_MEMMOVE]: Define.
344 (memcmp) [!HAVE_MEMCMP]: Define.
345
cb768704
J
3462010-07-07 Jan Djärv <jan.h.d@swipnet.se>
347
348 * process.c (kbd_is_on_hold): New variable.
349 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
350 functions.
351 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
352 select on empty input mask.
353 (init_process): Initialize kbd_is_on_hold to 0.
354
355 * process.h (hold_keyboard_input, unhold_keyboard_input)
356 (kbd_on_hold_p): Declare.
357
358 * keyboard.c (input_available_signal): Declare.
359 (kbd_buffer_nr_stored): New function.
360 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
361 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
362 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
363 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
364 (tty_read_avail_input): If input is on hold, return.
365 Don't read more that free slots in kbd_buffer (Bug#6571).
366
3a8ce822
EZ
3672010-07-07 Eli Zaretskii <eliz@gnu.org>
368
369 * msdos.h:
370 * msdos.c:
371 * dosfns.c:
372 * w16select.c: Convert function definitions to ANSI C.
373
374 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
375 unused prototypes.
376
cf84bb53
JB
3772010-07-07 Juanma Barranquero <lekktu@gmail.com>
378
379 * coding.c, sysdep.c: Convert some more functions to standard C.
380
1a4990fb
JB
3812010-07-07 Juanma Barranquero <lekktu@gmail.com>
382
383 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
384 (encode_coding_object): Use SPECPDL_INDEX.
385 (syms_of_coding): Use DOS_NT.
386
c0f2f16b
DN
3872010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
388
48fb6855
DN
389 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
390
c0f2f16b
DN
391 Make the function member of Lisp_Subr use standard C prototypes.
392 * lisp.h (struct Lisp_Subr): Use a union for the function member.
393 (DECL_ALIGN): Add a cast for the function.
394 * eval.c (Feval, Ffuncall): Use the proper type for each type
395 function call.
396
67aecef9
CY
3972010-07-06 Chong Yidong <cyd@stupidchicken.com>
398
399 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
400 fringe face id, so face-remapping-alist works (Bug#6091).
401
b56ceb92
JB
4022010-07-06 Juanma Barranquero <lekktu@gmail.com>
403
404 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
405 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
406 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
407
7af07b96
AS
4082010-07-06 Andreas Schwab <schwab@linux-m68k.org>
409
410 * xterm.c (x_get_keysym_name): Change type of parameter to int.
411 * lisp.h: Declare x_get_keysym_name.
412 * keyboard.c (modify_event_symbol): Don't declare
413 x_get_keysym_name here.
414
69e24e34
DN
4152010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
416
417 * ecrt0.c: Revert conversion to standard C.
418
d3da34e0 4192010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
420
421 * vm-limit.c (memory_warnings):
422 * keyboard.c (modify_event_symbol):
423 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
424 (round2, emacs_rint):
425 * process.c (send_process, old_sigpipe): Convert function
426 definitions and declarations to standard C.
427
4282010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
429
430 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
431 * xdisp.c: Convert function definitions to standard C.
432
433 * cm.c (cmputc): Arg C is now int, not char.
434 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
435
00be444c
J
4362010-07-05 James Cloos <cloos@jhcloos.com>
437
438 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
439
440 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
441 _NET_WM_ICON_NAME atoms.
442
443 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
444 and _NET_WM_ICON_NAME properties, too, matching what is
445 done in the Gtk+ case.
446
e4c8d29a
J
4472010-07-05 Jan Djärv <jan.h.d@swipnet.se>
448
ff919460
J
449 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
450
e4c8d29a
J
451 * xsmfns.c (SSDATA): New macro.
452 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
453 passed to strlen/strcpy/strcat.
454 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
455 7:th arg to XChangeProperty to (unsigned char *)
456
457 * xsettings.c (something_changedCB, parse_settings)
458 (apply_xft_settings): Reformat prototype.
459 (something_changedCB, init_gconf): Remove unused variable i.
460 (read_settings): Remove unused variable long_len.
461
462 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
463 (xg_get_image_for_pixmap, create_dialog)
464 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
465 (menuitem_highlight_callback, make_menu_item)
466 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
467 (xg_create_scroll_bar, xg_update_scrollbar_pos)
468 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
469 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
470 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
471 (xg_tool_bar_item_expose_callback): Reformat prototype.
472 (xg_update_menubar): GList *group => GSList *group.
473 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
474 before use.
475 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
476 to GTK_IMAGE (wimage).
477
dd4c5104
DN
4782010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
479
898b4c5c
DN
480 * atimer.c: Use "" instead of <> for local includes for
481 consistency with the rest of the code.
482
dd4c5104
DN
483 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
484 * xrdb.c (get_system_name):
485 * window.c (shrink_windows):
486 * syntax.c (forw_comment):
487 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
488 (ins_del_costs):
489 * mem-limits.h (start_of_data):
490 * lread.c (readevalloop):
491 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
492 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
493 * frame.c (x_get_focus_frame):
494 * floatfns.c (fmod_float):
495 * fileio.c (choose_write_coding_system):
496 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
497 (malloc_initialize_hook, sort_args, synchronize_locale):
498 * doprnt.c (doprnt):
499 * dired.c (compile_pattern):
500 * data.c (fmod_float):
501 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
502 (map_char_table_for_charset):
503 * charset.c (define_charset_internal):
504 * alloc.c (Fgarbage_collect): Convert declarations or definitions
505 to standard C.
506
9a39b306 5072010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 508 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
509
510 * lread.c (read1): Fix up last change to not mess up `c'.
511
e6cb2cbb
JB
5122010-07-04 Juanma Barranquero <lekktu@gmail.com>
513
514 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
515
438105ed
JB
5162010-07-04 Juanma Barranquero <lekktu@gmail.com>
517
518 Fix prototypes.
519
e5447b22 520 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 521 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
522 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
523 arg, as required by internal_condition_case_1.
dcc7404b 524 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
525 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
526 (analyse_first): Fix "const const".
e5447b22 527 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 528 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 529 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 530
971de7fb
DN
5312010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
532
533 * alloc.c: Convert function definitions to standard C.
534 * atimer.c:
535 * bidi.c:
536 * bytecode.c:
537 * callint.c:
538 * callproc.c:
539 * casefiddle.c:
540 * casetab.c:
541 * category.c:
542 * ccl.c:
543 * character.c:
544 * charset.c:
545 * chartab.c:
546 * cmds.c:
547 * coding.c:
548 * composite.c:
549 * data.c:
550 * dbusbind.c:
551 * dired.c:
552 * dispnew.c:
553 * doc.c:
554 * doprnt.c:
555 * ecrt0.c:
556 * editfns.c:
557 * fileio.c:
558 * filelock.c:
559 * filemode.c:
560 * fns.c:
561 * font.c:
562 * fontset.c:
563 * frame.c:
564 * fringe.c:
565 * ftfont.c:
566 * ftxfont.c:
567 * gtkutil.c:
568 * indent.c:
569 * insdel.c:
570 * intervals.c:
571 * keymap.c:
572 * lread.c:
573 * macros.c:
574 * marker.c:
575 * md5.c:
576 * menu.c:
577 * minibuf.c:
578 * prefix-args.c:
579 * print.c:
580 * ralloc.c:
581 * regex.c:
582 * region-cache.c:
583 * scroll.c:
584 * search.c:
585 * sound.c:
586 * strftime.c:
587 * syntax.c:
588 * sysdep.c:
589 * termcap.c:
590 * terminal.c:
591 * terminfo.c:
592 * textprop.c:
593 * tparam.c:
594 * undo.c:
595 * unexelf.c:
596 * window.c:
597 * xfaces.c:
598 * xfns.c:
599 * xfont.c:
600 * xftfont.c:
601 * xgselect.c:
602 * xmenu.c:
603 * xrdb.c:
604 * xselect.c:
605 * xsettings.c:
606 * xsmfns.c:
607 * xterm.c: Likewise.
608
ae492bec
EZ
6092010-07-03 Eli Zaretskii <eliz@gnu.org>
610
76ea4cc9
EZ
611 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
612 frames other than the initial one. Fix reversal of colors when
613 `reverse' is specified in the frame parameters. Call
614 update_face_from_frame_parameter instead of
615 internal-set-lisp-face-attribute. Initialize screen colors from
616 initial_screen_colors[] when f->default_face_done_p is zero,
617 instead of depending on being called with default-frame-alist as
618 the alist argument.
619
620 * xfaces.c (update_face_from_frame_parameter): Move out of
621 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
622 with HAVE_WINDOW_SYSTEM.
623
1e6255ae
EZ
624 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
625 to menu-bar-mode, if not set in the frame parameters or in
626 default-frame-alist.
627
ae492bec
EZ
628 * w32console.c (sys_tputs): Adjust argument list to prototype in
629 term.c.
630
3a35a84c
JB
6312010-07-03 Juanma Barranquero <lekktu@gmail.com>
632
633 * lisp.h (memory_warnings): Fix prototype.
634
635 * cm.h (evalcost): Fix prototype.
636
637 * cm.c (evalcost): Fix arg type.
638
c532d349
DN
6392010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
640
641 * term.c (term_clear_mouse_face, Fidentity):
642 * syssignal.h (signal_handler_t):
643 * lisp.h (memory_warnings):
644 * coding.h (preferred_coding_system):
645 * cm.h (evalcost):
646 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
647
c0b36d46
EZ
6482010-07-02 Eli Zaretskii <eliz@gnu.org>
649
650 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
651 from prototypes.
652
653 * msdos.h (load_pixmap): Don't define away.
654
383e0970
J
6552010-07-02 Jan Djärv <jan.h.d@swipnet.se>
656
f57e2426
J
657 * lisp.h:
658 * atimer.h: Remove define for P_.
659
660 * alloc.c: Remove __P and P_ from .c and .m files.
661 * atimer.c:
662 * buffer.c:
663 * callint.c:
664 * category.c:
665 * charset.c:
666 * chartab.c:
667 * cm.c:
668 * coding.c:
669 * composite.c:
670 * data.c:
671 * dired.c:
672 * dispnew.c:
673 * doc.c:
674 * editfns.c:
675 * emacs.c:
676 * eval.c:
677 * fileio.c:
678 * filelock.c:
679 * fns.c:
680 * font.c:
681 * fontset.c:
682 * frame.c:
683 * ftfont.c:
684 * ftxfont.c:
685 * gmalloc.c:
686 * gtkutil.c:
687 * image.c:
688 * indent.c:
689 * intervals.c:
690 * keyboard.c:
691 * keymap.c:
692 * lread.c:
693 * marker.c:
694 * menu.c:
695 * minibuf.c:
696 * print.c:
697 * process.c:
698 * scroll.c:
699 * search.c:
700 * sound.c:
701 * strftime.c:
702 * syntax.c:
703 * sysdep.c:
704 * term.c:
705 * terminal.c:
706 * textprop.c:
707 * unexalpha.c:
708 * w32console.c:
709 * w32fns.c:
710 * w32font.c:
711 * w32menu.c:
712 * w32term.c:
713 * w32uniscribe.c:
714 * window.c:
715 * xdisp.c:
716 * xfaces.c:
717 * xfns.c:
718 * xfont.c:
719 * xftfont.c:
720 * xmenu.c:
721 * xselect.c:
722 * xterm.c: Likewise.
723
383e0970 724 Remove P_ and __P macros.
f57e2426
J
725 * atimer.h: Remove P_ and __P macros.
726 * buffer.h:
383e0970
J
727 * category.h:
728 * ccl.h:
729 * character.h:
730 * charset.h:
731 * cm.h:
732 * coding.h:
733 * composite.h:
734 * dispextern.h:
735 * disptab.h:
9e892c8d 736 * dosfns.h:
383e0970
J
737 * font.h:
738 * fontset.h:
739 * frame.h:
740 * gtkutil.h:
741 * indent.h:
742 * intervals.h:
743 * keyboard.h:
744 * keymap.h:
745 * lisp.h:
746 * macros.h:
747 * md5.h:
748 * menu.h:
749 * msdos.h:
750 * nsterm.h:
751 * puresize.h:
752 * region-cache.h:
753 * syntax.h:
754 * syssignal.h:
755 * systime.h:
756 * termhooks.h:
9e892c8d 757 * w32font.h:
383e0970
J
758 * w32term.h:
759 * widget.h:
760 * window.h:
761 * xgselect.h:
762 * xsettings.h:
763 * xterm.h: Likewise.
764
98601119
DN
7652010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
766
d9170db5
DN
767 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
768
98601119
DN
769 Cleanup old code.
770 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
771 * syssignal.h: Remove code for Lynx, not supported anymore.
772 * vm-limit.c: Remove unused code the depends on emacs not being
773 defined and NO_LIM_DATA being defined.
774 * mem-limits.h: Remove dead code.
775
1f984e12
J
7762010-07-01 Jan Djärv <jan.h.d@swipnet.se>
777
c49d071a
J
778 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
779
9d5405ec
J
780 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
781 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
782
7a18115b
J
783 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
784 parameters, they are already absolute.
785
581a8100
J
786 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
787 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
788
789 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
790
791 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
792 FRAME_TOOLBAR_HEIGHT.
793
1f984e12
J
794 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
795 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
796
c1ef4455
CY
7972010-06-30 Chong Yidong <cyd@stupidchicken.com>
798
799 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
800 check default-frame-alist.
801
ce8f5a9a
AS
8022010-06-30 Andreas Schwab <schwab@linux-m68k.org>
803
804 * process.c (create_process): Avoid using invalid file descriptors.
805
806 * callproc.c (child_setup): Avoid closing a file descriptor twice.
807
bf935339
J
8082010-06-30 Jan Djärv <jan.h.d@swipnet.se>
809
810 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
811 Improve documentation. Return font regardless of use_system_font.
812 (syms_of_xsettings): Improve documentation for font-use-system-font.
813
7c33a057
CY
8142010-07-10 Chong Yidong <cyd@stupidchicken.com>
815
2ec1b5ee
CY
816 * xfaces.c (realize_face): Garbage the frame if a face is removed
817 (Bug#6593).
818
8192010-07-05 Andreas Schwab <schwab@linux-m68k.org>
820
821 * keyboard.c: Remove duplicate <setjmp.h>.
822 (read_key_sequence): Remove volatile qualifiers.
823
8242010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
825
826 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
827 (struct glyph_row): New members left_fringe_offset and
828 right_fringe_offset.
829
830 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
831 specially.
832 * w32term.c (w32_draw_fringe_bitmap): Likewise.
833 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
834
835 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
836 Take account of bitmap offset.
837 (draw_window_fringes): Take account of window vscroll.
838 (update_window_fringes): Likewise. Extend top-aligned top indicator
839 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
840 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
841 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
842
8432010-07-04 Juanma Barranquero <lekktu@gmail.com>
844
845 * w32fns.c (Qtooltip): Declare.
846 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
847
8482010-07-03 Jan Djärv <jan.h.d@swipnet.se>
849
850 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
851 grab on just Press (Bug#6499).
852
8532010-07-02 Chong Yidong <cyd@stupidchicken.com>
854
855 * frame.c (Qtooltip): New var.
856 (delete_frame): Use it. Fix faulty if statement. Don't update
857 mode line for tooltip frames. Suggested by Martin Rudalics.
858
859 * xfns.c (x_create_tip_frame):
860 * w32fns.c (x_create_tip_frame): Use it.
861
8622010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
863
864 * xftfont.c (xftfont_open): Check font width one by one also when
865 spacing is dual.
866
867 * ftfont.c (ftfont_open): Ditto.
868
6259c2ec
GM
8692010-06-30 Glenn Morris <rgm@gnu.org>
870
a46007e9
GM
871 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
872
6259c2ec
GM
873 * Makefile.in (CANNOT_DUMP): Update for configure name change.
874
875 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
876 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
877 * s/darwin.h (SYSTEM_MALLOC):
878 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
879
5d1d3d04
J
8802010-06-29 Jan Djärv <jan.h.d@swipnet.se>
881
882 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
883 (ns_get_screen): Don't assign integer to f.
884 (Fx_display_color_cells): Declarations before statements.
885
e547b051
J
8862010-06-28 Jan Djärv <jan.h.d@swipnet.se>
887
5fc8e5bc
J
888 * xfns.c (x_default_font_parameter): Remove got_from_system
889 (Bug#6526).
890
e547b051
J
891 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
892 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
893 defines based on what configure finds.
894
895 * xterm.c (XTflash): Use gtk_widget_get_window.
896 (xg_scroll_callback): Use gtk_adjustment_get_upper and
897 gtk_adjustment_get_page_size.
898 (handle_one_xevent): Use gtk_widget_get_mapped.
899 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
900 messages.
901
902 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
903
904 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
905 HAVE_GTK_FILE_SELECTION_NEW.
906
907 * gtkutil.c (xg_display_open, xg_display_close): Remove
908 HAVE_GTK_MULTIDISPLAY, it is always defined.
909 (xg_display_open): Return type is void.
910 (gtk_widget_set_has_window)
911 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
912 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
913 (gtk_adjustment_set_page_increment)
914 (gtk_adjustment_get_step_increment): #define these if not found
915 by configure.
916 (remove_submenu): New define based on Gtk+ version.
917 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
918 gtk_widget_get_window.
919 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
920 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
921 (create_dialog): Use gtk_dialog_get_action_area and
922 gtk_dialog_get_content_area.
923 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
924 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
925 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
926 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
927 g_object_ref and g_object_unref.
928 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
929 gtk_widget_get_sensitive.
930 (xg_update_submenu): Use remove_submenu.
931 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
932 properties instead to get old x and y position.
933 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
934 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 935 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
936 (xg_get_tool_bar_widgets): New function.
937 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
938 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
939 (toolbar_set_orientation): New #define based on if configure
940 finds gtk_orientable_set_orientation.
941 (xg_create_tool_bar): Call toolbar_set_orientation.
942 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
943 instead of gtk_box_pack_start_defaults.
944
b9229673
CY
9452010-06-28 Chong Yidong <cyd@stupidchicken.com>
946
947 * cmds.c (Fdelete_backward_char): Move into Lisp.
948
bbc803b0
DN
9492010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
950
951 * s/freebsd.h (BSD4_2): Remove redundant definition.
952 bsd-common.h defines it already.
953
6431f2e6
CY
9542010-06-27 Chong Yidong <cyd@stupidchicken.com>
955
956 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
957 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
958 tool-bar-mode, which are now set using these X resources at
959 startup, to determine the defaults (Bug#2249).
960
961 * w32fns.c (Fx_create_frame):
962 * nsfns.m (Fx_create_frame): Likewise.
963
964 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
965
8c079ebb
JB
9662010-06-24 Juanma Barranquero <lekktu@gmail.com>
967
968 * gtkutil.c (xg_update_scrollbar_pos):
969 Avoid C99 mid-block variable declaration.
970
e9b7ab96
JD
9712010-06-22 Jan Djärv <jan.h.d@swipnet.se>
972
bc869eca
JD
973 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
974
2b7e356a 975 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
976
977 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
978 if height is less than scroll bar min size.
979 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
980
e9b7ab96
JD
981 * xfns.c (x_default_font_parameter): Try to open font from system
982 before using it (bug#6478). Rename got_from_gconf to got_from_system.
983
32a679fd
JD
9842010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
985
986 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
987
70c4cfbb
EZ
9882010-06-20 Eli Zaretskii <eliz@gnu.org>
989
990 * xdisp.c (try_scrolling): When scroll-conservatively is set to
991 most-positive-fixnum, be extra accurate when scrolling window
992 start, to avoid missing the cursor line.
993
ad5a12b5
EZ
9942010-06-19 Eli Zaretskii <eliz@gnu.org>
995
996 * xdisp.c (try_scrolling): Compute the limit for searching point
997 in forward scroll from scroll_max, instead of an arbitrary limit
998 of 10 screen lines. See
999 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1000 and
1001 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1002 for details.
1003
2a64315a 10042010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1005
1006 * editfns.c (Fbyte_to_string): Pacify compiler.
1007
288cf4e9
SM
10082010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1009
1010 * lread.c (read1): Phase out old-style backquotes a bit more.
1011
6e6e5760
EZ
10122010-06-12 Eli Zaretskii <eliz@gnu.org>
1013
cbc4fd20
EZ
1014 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1015 bidimirror.h.
1016
1017 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1018
317fbf33
EZ
1019 * bidi.c (bidi_initialize): Remove explicit initialization of
1020 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1021 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1022 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1023
1024 * biditype.h: New file.
1025
cbc4fd20
EZ
1026 * bidimirror.h: New file.
1027
6e6e5760
EZ
1028 * window.c (syms_of_window): Doc fix (bug#6409).
1029
4176cba2
RF
10302010-06-12 Romain Francoise <romain@orebokech.com>
1031
1032 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1033 ediff-hook.
1034
cb4bfcb5
GM
10352010-06-10 Glenn Morris <rgm@gnu.org>
1036
64c60c2f
GM
1037 * editfns.c (Fbyte_to_string): Pacify compiler.
1038
cb4bfcb5
GM
1039 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1040
2ec1b5ee
CY
10412010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1042
1043 * alloc.c (Fmake_byte_code): Don't access undefined argument
1044 (Bug#6517).
1045
10462010-06-25 Chong Yidong <cyd@stupidchicken.com>
1047
1048 * xdisp.c (next_element_from_image): Ensure that after-strings are
1049 read the next time we hit handle_stop (Bug#1336).
1050
10512010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1052
1053 * lread.c (read1): Signal error if #s is not followed by paren.
1054
10552010-06-19 Chong Yidong <cyd@stupidchicken.com>
1056
1057 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1058
1059 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1060
10612010-06-15 Glenn Morris <rgm@gnu.org>
1062
1063 * editfns.c (Fbyte_to_string): Pacify compiler.
1064
e454a4a3
SM
10652010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1066
1067 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1068 Check `object's type before accessing its guts.
1069
c1b1acc2
DN
10702010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1071
1072 * s/usg5-4.h: Fix previous change.
1073 Suggested by Lawrence Mitchell <wence@gmx.li>
1074
657d4c0b
AS
10752010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1076
1077 * minibuf.c (Fall_completions): Add more checks.
1078
9b27fd9f
JB
10792010-06-08 Juanma Barranquero <lekktu@gmail.com>
1080
1081 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1082
a99ebb40
DN
10832010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1084
d7c5d87d
DN
1085 * lread.c (X_OK): Remove, unused.
1086
0263a941
DN
1087 * dispnew.c: Remove obsolete comment.
1088
a99ebb40
DN
1089 Remove INCLUDED_FCNTL.
1090 * xterm.c (INCLUDED_FCNTL):
1091 * callproc.c (INCLUDED_FCNTL):
1092 * alloc.c (INCLUDED_FCNTL):
1093 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1094 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1095
13b5221f
MR
10962010-06-07 Martin Rudalics <rudalics@gmx.at>
1097
1098 * window.c (Fselect_window): Move `record_buffer' up to the
1099 beginning of this function, so the buffer gets recorded
1100 even if the selected window does not change.
1101 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1102
5220357f
JB
11032010-06-07 Juanma Barranquero <lekktu@gmail.com>
1104
1105 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1106 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1107
3085237c
DN
11082010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1109
1110 Remove BSTRING related code, all platforms define it.
1111 * s/usg5-4.h (BSTRING): Remove definition.
1112 * s/template.h (BSTRING):
1113 * s/msdos.h (BSTRING):
1114 * s/ms-w32.h (BSTRING):
1115 * s/hpux10-20.h (BSTRING):
1116 * s/gnu-linux.h (BSTRING):
1117 * s/darwin.h (BSTRING):
1118 * s/cygwin.h (BSTRING):
1119 * s/bsd-common.h (BSTRING):
1120 * s/aix4-2.h (BSTRING): Likewise.
1121 * sysdep.c: Remove code depending on BSTRING not being defined.
1122
409f2919
JB
11232010-06-05 Juanma Barranquero <lekktu@gmail.com>
1124
1125 Remove obsolete macro BASE_LEADING_CODE_P.
1126 * character.h (BASE_LEADING_CODE_P): Remove.
1127 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1128 * buffer.c (Fset_buffer_multibyte):
1129 * indent.c (scan_for_column, compute_motion):
1130 * insdel.c (count_combining_before, count_combining_after):
1131 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1132
087fc47a
JB
11332010-06-04 Juanma Barranquero <lekktu@gmail.com>
1134
1135 Turn `directory-sep-char' into a noop.
1136
1137 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1138 (DIRECTORY_SEP): Define unconditionally.
1139
1140 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1141
1142 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1143 call dostounix_filename directly.
1144
1145 * fileio.c (CORRECT_DIR_SEPS): Remove.
1146 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1147 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1148 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1149 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1150
1151 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1152 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1153
0eb7675e
AS
11542010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1155
1156 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1157 address. (Bug#6346)
0eb7675e 1158
78edd3b7
JB
11592010-06-03 Juanma Barranquero <lekktu@gmail.com>
1160
1161 * ccl.c (Fccl_program_p): Fix typo in docstring.
1162
eb697db5
DN
11632010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1164
1165 Move UNEXEC definition to autoconf.
1166 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1167 * s/sol2-10.h (UNEXEC):
1168 * s/irix6-5.h (UNEXEC):
1169 * s/hpux10-20.h (UNEXEC):
1170 * s/gnu-linux.h (UNEXEC):
1171 * s/darwin.h (UNEXEC):
1172 * s/cygwin.h (UNEXEC):
1173 * s/bsd-common.h (UNEXEC):
1174 * s/aix4-2.h (UNEXEC):
1175 * m/alpha.h (UNEXEC): Likewise.
1176 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1177
aa3830c4
JB
11782010-06-03 Juanma Barranquero <lekktu@gmail.com>
1179
1180 Remove obsolete pre-unicode2 macros.
1181 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1182 * composite.c (composition_reseat_it):
1183 * data.c (Faset):
1184 * fns.c (Ffillarray):
1185 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1186 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1187
d234d13e
JL
11882010-06-03 Juri Linkov <juri@jurta.org>
1189
1190 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1191 (Fswitch_to_buffer): Remove unused variable `err'.
1192
0d4bcf4d
GM
11932010-06-03 Glenn Morris <rgm@gnu.org>
1194
e23dc1e2
GM
1195 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1196
05b09564
GM
1197 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1198 now that AH_BOTTOM does it.
1199
824e2978
GM
1200 * m/hp800.h (HAVE_ALLOCA):
1201 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1202
0d4bcf4d
GM
1203 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1204 Remove NOT_C_CODE tests, it is always true now.
1205
c55d2abf
DN
12062010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1207
08a494a3
DN
1208 Fix config.h includes.
1209 * xsettings.c:
1210 * xgselect.c:
1211 * nsterm.m:
1212 * nsselect.m:
1213 * nsimage.m:
1214 * nsfont.m:
1215 * nsfns.m:
1216 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1217 other files do.
1218
75934b1d
DN
1219 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1220
9f32a766
DN
1221 * s/sol2-6.h: Remove obsolete comments.
1222
c55d2abf
DN
1223 Remove unnecessary alloca.h includes.
1224 * keymap.c: Do not include alloca.h, config.h does that.
1225 * sysdep.c: Likewise. Do not define fwrite, not used.
1226
06ac62b4
SM
12272010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1228
1229 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1230 the HAVE_TERMIO where it belongs (bug#6149).
1231
1ab8293c
SM
12322010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1233
1234 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1235 of bug#6305).
1236
6dcfd253
EZ
12372010-05-30 Eli Zaretskii <eliz@gnu.org>
1238
1239 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1240 state is always cached (bug#6306).
1241
6d26bbb2
EZ
12422010-05-29 Eli Zaretskii <eliz@gnu.org>
1243
06fa4a23
EZ
1244 Fix cursor motion in bidi-reordered continued lines.
1245 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1246 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1247 over continuation lines in bidi-reordered buffers. Return
1248 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1249 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1250
f5783df3
MA
12512010-05-28 Michael Albinus <michael.albinus@gmx.de>
1252
1253 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1254
7d56b2dd
KH
12552010-05-28 Kenichi Handa <handa@m17n.org>
1256
1257 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1258 Don't sheck SPEC if it is nil.
1259 (font_list_entities): Call font_delete_unmatched if
b925d231 1260 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1261
e58d4ff7
GM
12622010-05-28 Glenn Morris <rgm@gnu.org>
1263
1264 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1265
f1a5d776
CY
12662010-05-27 Chong Yidong <cyd@stupidchicken.com>
1267
1268 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1269 whether to trash.
1270 (internal_delete_file, Frename_file): Callers changed.
1271 (delete_by_moving_to_trash): Doc fix.
1272 (Fdelete_directory_internal): Don't move to trash.
1273
1274 * callproc.c (delete_temp_file):
1275 * buffer.c (Fkill_buffer): Callers changed.
1276
1277 * lisp.h: Update prototype.
1278
f44a59e6
CY
12792010-05-27 Chong Yidong <cyd@stupidchicken.com>
1280
1281 * xdisp.c (redisplay_window): After redisplay, check if point is
1282 still valid before setting it (Bug#6177).
1283
81ac4f35
GM
12842010-05-27 Glenn Morris <rgm@gnu.org>
1285
1286 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1287 Convert comments to Makefile format.
1288
1289 * Makefile.in (bootstrap-clean): No more Makefile.c.
1290
ccd89fb3
GM
12912010-05-26 Glenn Morris <rgm@gnu.org>
1292
90278cb6
GM
1293 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1294 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1295
ccd89fb3
GM
1296 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1297 Remove.
1298 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1299
b7050583
KH
13002010-05-26 Kenichi Handa <handa@m17n.org>
1301
1302 * composite.c (composition_compute_stop_pos): Fix condition for
1303 backward scanning.
1304
e5458003
GM
13052010-05-25 Glenn Morris <rgm@gnu.org>
1306
c345fe90
GM
1307 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1308 Move before TEMACS_LDFLAGS.
1309 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1310 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1311
2e0689ab
GM
1312 * Makefile.in (NOT_C_CODE): No longer define.
1313 (config.h): No longer include.
1314
8009a5e8
GM
1315 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1316 variables it may reference.
1317
e5458003
GM
1318 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1319 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1320
10f72a37
KH
13212010-05-25 Kenichi Handa <handa@m17n.org>
1322
1323 * dispextern.h (struct composition_it): New members rule_idx and
1324 charpos.
1325
1326 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1327 that the character positions of IT point the last character of the
1328 current grapheme cluster.
1329 (next_element_from_composition): Don't change character positions
1330 of IT.
1331 (append_composite_glyph): Set glyph->charpos to
1332 it->cmp_it.charpos.
1333
1334 * composite.c (autocmp_chars): Change the first argument to RULE,
1335 and try composition with RULE only.
1336 (composition_compute_stop_pos): Record the index number of the
1337 composition rule in CMP_IT->rule_idx.
1338 (composition_reseat_it): Call autocmp_chars repeatedly until the
1339 correct rule of the composition is found.
1340 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1341 is at the last character of the current grapheme cluster when
1342 CMP_IT->reversed_p is nonzero.
1343
171eda53 13442010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1345
171eda53
SM
1346 * editfns.c (Fbyte_to_string): New function.
1347
66a9f7f4
SM
13482010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1349
1350 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1351 Suggested by Masatake YAMATO <yamato@redhat.com>.
1352
d8c315d1
EZ
13532010-05-23 Eli Zaretskii <eliz@gnu.org>
1354
171eda53 1355 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1356
f5b416d2 13572010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1358
1359 * s/netbsd.h: If terminfo is found, use it in preference to
1360 termcap. (Bug#6190) [Backport from trunk]
1361
0416466c
EZ
13622010-05-19 Eli Zaretskii <eliz@gnu.org>
1363
11117830 1364 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1365
1366 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1367 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1368 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1369 and maxpos members instead of start.pos and end.pos, respectively.
1370
1371 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1372 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1373 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1374 (try_window_reusing_current_matrix, try_window_id):
1375 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1376 (init_from_display_pos, init_iterator): Use EMACS_INT for
1377 character and byte positions.
66a9f7f4 1378 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1379 arguments for minimum and maximum buffer positions seen by
1380 display_line for this row. Don't use iterator to find the
1381 position following the maximum one; instead, increment the
11117830
EZ
1382 position found by display_line directly. Fix logic; eol_pos
1383 should be tested before the rest. Handle the case of characters
1384 delivered from display vector (bug#6036). Fix tests related to
1385 it->method. Handle the truncated_on_right_p rows.
1386 (RECORD_MAX_MIN_POS): New macro.
1387 (display_line): Use it to record the minimum and maximum buffer
1388 positions for glyphs in the row being assembled. Record the
1389 position of the newline that terminates the line. If word wrap is
1390 in effect, restore minimum and maximum positions seen up to the
1391 wrap point, when iterator returns to it.
1392 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1393 row and cursor not already at point. Restore original pre-bidi
1394 code for unidirectional buffers.
d36fe237
EZ
1395
1396 * dispnew.c (increment_row_positions, check_matrix_invariants):
1397 Increment and check row->start.pos and row->end.pos, in addition
1398 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1399
11117830
EZ
1400 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1401 Display truncated_on_left_p and truncated_on_right_p flags.
1402 Formatting fixes.
1403 (pmtxrows): Display the ordinal number of each row. Don't display
1404 rows beyond the last one.
1405
1406 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1407 it is not copied by bidi_copy_it.
1408
6e83d800
EZ
14092010-05-22 Eli Zaretskii <eliz@gnu.org>
1410
1411 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1412 (Bug#6237)
1413
110683ad
CY
14142010-05-22 Chong Yidong <cyd@stupidchicken.com>
1415
1416 * image.c (Fimage_flush): Rename from image-refresh.
1417
98fe5161
CY
14182010-05-21 Chong Yidong <cyd@stupidchicken.com>
1419
1420 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1421 just one window.
1422
1423 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1424 (clear_image_cache): If the number of cached images is unusually
1425 large, decrease the cache eviction delay (Bug#6230).
1426
e8752c66
GM
14272010-05-21 Glenn Morris <rgm@gnu.org>
1428
66dbf213
GM
1429 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1430 Move these rules to ns.mk.
1431 * ns.mk: New file.
1432
04384b2d
GM
1433 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1434
e8752c66
GM
1435 * Makefile.in (CANNOT_DUMP): New, set by configure.
1436 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1437
2e2bbddb
JL
14382010-05-20 Juri Linkov <juri@jurta.org>
1439
1440 * fileio.c (Fdelete_file): Change interative spec to use
1441 `read-file-name' like in `find-file-read-args' where the default
1442 value is `default-directory' instead of `buffer-file-name'.
1443 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1444
31c4aaf6
KR
14452010-05-20 Kevin Ryde <user42@zip.com.au>
1446
1447 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1448 (Voverriding_terminal_local_map, Vsystem_key_alist)
1449 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1450
9d5cf9b6
GM
14512010-05-20 Glenn Morris <rgm@gnu.org>
1452
1453 * Makefile.in (DEPDIR): New constant.
1454 (DEPFLAGS): Set with configure, not cpp.
1455 (MKDEPDIR): New, set by configure.
1456 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1457 (clean): Use $DEPDIR.
1458 (deps_frag): Include from configure.
1459 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1460 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1461
ead6f8f5
EZ
1462 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1463 reallocation of the cache. (Bug#6210)
1464
7f34aec3
GM
14652010-05-19 Glenn Morris <rgm@gnu.org>
1466
d494e8f2
GM
1467 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1468
c1d0dcfd
GM
1469 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1470 (GNULIB_VAR): Remove.
1471 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1472
1473 * m/ibms390x.h (LINKER):
1474 * m/macppc.h (LINKER) [GNU_LINUX]:
1475 * s/aix4-2.h (ORDINARY_LINK):
1476 * s/cygwin.h (LINKER):
1477 * s/darwin.h (ORDINARY_LINK):
1478 * s/gnu.h (ORDINARY_LINK):
1479 * s/netbsd.h (LINKER):
1480 * s/usg5-4.h (ORDINARY_LINK):
1481 Move to configure.
1482
7f34aec3
GM
1483 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1484
754790b6
CY
14852010-05-18 Chong Yidong <cyd@stupidchicken.com>
1486
1487 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1488 prevent stack overflow if number of arguments is too large
1489 (Bug#6214).
1490
161e44d1
JB
14912010-05-18 Juanma Barranquero <lekktu@gmail.com>
1492
1493 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1494
be4ff9da
GM
14952010-05-18 Glenn Morris <rgm@gnu.org>
1496
9539dc5d
GM
1497 * s/gnu-linux.h: Combine two conditionals.
1498
1499 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1500 $(POST_ALLOC_OBJ).
1501
40dc6bf4
GM
1502 * Makefile.in (RALLOC_OBJ): New, set by configure.
1503 (rallocobj): Replace with the previous variable.
1504 (otherobj): Use $RALLOC_OBJ.
1505
1506 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1507 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1508
be4ff9da
GM
1509 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1510 (gmallocobj, vmlimitobj): Replace with previous two variables.
1511 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1512
16455a85
GM
15132010-05-17 Glenn Morris <rgm@gnu.org>
1514
1515 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1516 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1517
5fdb7468
GM
15182010-05-16 Glenn Morris <rgm@gnu.org>
1519
7ca1f3f9
GM
1520 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1521
7541dad5
GM
1522 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1523
da53fab9
GM
1524 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1525 trailing "/".
1526
b02a6645
GM
1527 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1528 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1529
8877ca0f
GM
1530 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1531 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1532 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1533 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1534 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1535
5fdb7468
GM
1536 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1537 Remove ${STARTFLAGS}, nothing ever sets it.
1538
95adb4b1
DN
15392010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1540
1541 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1542
676b6304
GM
15432010-05-16 Glenn Morris <rgm@gnu.org>
1544
9beab9ce
GM
1545 * Makefile.in (LIBX_BASE): Always define.
1546
8a95f0e7
GM
1547 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1548
676b6304
GM
1549 * Makefile.in (LIBXT): Always define.
1550
6e546d18
GM
15512010-05-15 Glenn Morris <rgm@gnu.org>
1552
4235ca47 1553 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1554
6e546d18
GM
1555 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1556 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1557
8c5ff6dd
KR
15582010-05-15 Ken Raeburn <raeburn@raeburn.org>
1559
560bb7ae 1560 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1561 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1562
8b4eb796
KR
1563 * emacs.c (main): Initialize initial-environment and
1564 process-environment before generating from env, not after.
1565
8c5ff6dd
KR
1566 Handle --version reasonably in CANNOT_DUMP configuration.
1567 * emacs.c (emacs_version, emacs_copyright): New string variables.
1568 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1569 (syms_of_emacs): Defvar them, and initialize them from the C
1570 string variables.
1571 (main): If initialization hasn't been done, print initial version
1572 info from the C strings, instead of starting an interactive session.
1573
dbd3f723
EZ
15742010-05-15 Eli Zaretskii <eliz@gnu.org>
1575
d20e1419
EZ
1576 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1577 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1578 (bidi_paragraph_init): Remove redundant assertion that we are at
1579 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1580
1581 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1582 (syms_of_xdisp): Defsubr it.
1583
d36fe237
EZ
1584 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1585
dbd3f723
EZ
1586 * Makefile.in: Fix MSDOS-related comments.
1587
02be533b
GM
15882010-05-15 Glenn Morris <rgm@gnu.org>
1589
1a82cca9
GM
1590 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1591 (really-lwlib, really-oldXMenu): Always define.
1592 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1593
3df7b338
GM
1594 * Makefile.in: Simplify cpp conditional.
1595
2b5f541b
GM
1596 * Makefile.in (${ns_appdir}): Simplify using umask.
1597
02be533b
GM
1598 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1599
4e2db1fe
SM
16002010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1601
1602 * eval.c (specbind): Remove left-over duplicate test.
1603 Disallow let-binding frame-local vars. Add comment.
1604
4b292a22
EZ
16052010-05-14 Eli Zaretskii <eliz@gnu.org>
1606
2fe72643 1607 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1608 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1609 (bidi_init_it): Call it.
1610 (bidi_cache_iterator_state): Enlarge the cache if needed.
1611
4e2db1fe 1612 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1613 bidi_get_next_char_visually. All callers changed.
1614
82ebc97b
KH
16152010-05-14 Kenichi Handa <handa@m17n.org>
1616
1617 * dispextern.h (struct composition_it): New member reversed_p.
1618
1619 * composite.c (composition_compute_stop_pos): Search backward if
1620 ENDPOS < CHARPOS.
1621 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1622 Set CMP_IT->reversed_p.
b4b6e17e 1623 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1624
4e2db1fe
SM
1625 * xdisp.c (set_iterator_to_next):
1626 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1627 scanning backward. Call composition_compute_stop_pos if scan
1628 direction is changed.
1629 (next_element_from_buffer): Call composition_compute_stop_pos with
1630 negative ENDPOS if we are scanning backward.
1631 (next_element_from_composition): Pay attention to
1632 IT->cmp_it.reversed_p.
1633
0e5d7800
KH
16342010-05-14 Kenichi Handa <handa@m17n.org>
1635
560bb7ae 1636 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1637
cb027b32
GM
16382010-05-14 Glenn Morris <rgm@gnu.org>
1639
177b0288
GM
1640 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1641
fbc00890
GM
1642 * Makefile.in (mktime, X11, register): Move undefs to configure.
1643
f14d1dfd
GM
1644 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1645 (MSDOS_X_OBJ): New variable.
1646 (MSDOS_SUPPORT_REAL): New constant.
1647 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1648 (obj): Use MSDOS_X_OBJ.
1649 (lisp): Use MSDOS_SUPPORT as a variable.
1650
11842bd8
GM
1651 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1652 (GPM_MOUSE_SUPPORT): Now it's a constant.
1653 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1654 not cpp.
1655
489d31a4 1656 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1657 (ns_appresdir): Remove, unused.
e20f1f07 1658
489d31a4
GM
1659 * Makefile.in (SHELL): Move outside cpp section.
1660
cb027b32
GM
1661 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1662
5a903aa9
GM
16632010-05-13 Glenn Morris <rgm@gnu.org>
1664
3369c79f
GM
1665 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1666 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1667
d5e982a6
GM
1668 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1669 HAVE_WINDOW_SYSTEM must be too.
1670
6192e163
GM
1671 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1672 (lisp): Remove WINNT_SUPPORT.
1673
472c5d6b
GM
1674 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1675 Let configure set these variables (to empty) in this case as well.
1676
0116466b
GM
1677 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1678 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1679
5a903aa9
GM
1680 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1681 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1682 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1683 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1684 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1685 the values output by configure.
5a903aa9
GM
1686 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1687
1a0d7c06
GM
16882010-05-12 Glenn Morris <rgm@gnu.org>
1689
b5457f14
GM
1690 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1691 (LINKER_WAS_SPECIFIED): Remove.
1692
1a0d7c06
GM
1693 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1694 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1695 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1696 * s/cygwin.h (LIB_GCC):
1697 * s/freebsd.h (LIB_GCC):
1698 * s/gnu-linux.h (LIB_GCC):
1699 * s/msdos.h (LIB_GCC):
1700 * s/netbsd.h (LIB_GCC):
1701 Move to configure.
1702
3ffd4615 17032010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1704
1705 * ftfont.c: Fix incorrect parentheses of #if condition for
1706 definining M17N_FLT_USE_NEW_FEATURE.
1707
acddf8ae
GM
17082010-05-11 Glenn Morris <rgm@gnu.org>
1709
1710 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1711 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1712
ae5e04fa
EZ
17132010-05-10 Eli Zaretskii <eliz@gnu.org>
1714
1715 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1716 unibyte buffers. See
1717 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1718
7490175b
GM
17192010-05-10 Glenn Morris <rgm@gnu.org>
1720
97efb629
GM
1721 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1722 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1723 (LIBES): Use LIBS_SYSTEM as a variable.
1724 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1725 * s/aix4-2.h (LIBS_SYSTEM):
1726 * s/freebsd.h (LIBS_SYSTEM):
1727 * s/hpux10-20.h (LIBS_SYSTEM):
1728 * s/sol2-6.h (LIBS_SYSTEM):
1729 * s/unixware.h (LIBS_SYSTEM):
1730 Move to configure.
1731
7490175b
GM
1732 * s/aix4-2.h (MAIL_USE_LOCKF):
1733 * s/bsd-common.h (MAIL_USE_FLOCK):
1734 * s/darwin.h (MAIL_USE_FLOCK):
1735 * s/gnu-linux.h (MAIL_USE_FLOCK):
1736 * s/irix6-5.h (MAIL_USE_FLOCK):
1737 * s/template.h (MAIL_USE_FLOCK):
1738 Move to configure.
1739
0235128c 17402010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1741
1742 * Version 23.2 released.
1743
0235128c 17442010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1745
1746 * composite.c (autocmp_chars): Save point as marker before calling
1747 auto-composition-function (Bug#5984).
1748
1749 * lisp.h (restore_point_unwind): Add prototype.
1750
1751 * fileio.c (restore_point_unwind): Remove static attribute.
1752
0235128c 17532010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1754
1755 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1756 new feature of libotf and m17n-flt.
0235128c
SM
1757 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1758 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1759 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1760 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1761 that OUT is NULL. Use OTF_drive_gsub_with_log and
1762 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1763 OTF_drive_gpos.
1764 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1765 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1766 Setup mflt_enable_new_feature and mflt_try_otf.
1767
4721152c
J
17682010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1769
1770 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1771
1772 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1773 box and toolbar (Bug #6139).
1774 (xg_create_tool_bar): Remove comment (Bug #6139).
1775 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1776 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1777
ee0a16cf
JB
17782010-05-08 Juanma Barranquero <lekktu@gmail.com>
1779
1780 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1781 Update dependencies.
1782
96d79611
EZ
17832010-05-08 Eli Zaretskii <eliz@gnu.org>
1784
1785 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1786 R2L lines.
1787
40c17879
GM
17882010-05-08 Glenn Morris <rgm@gnu.org>
1789
7b42b29f
GM
1790 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1791
40c17879
GM
1792 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1793 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1794 (termcapobj): Replace with TERMCAP_OBJ.
1795 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1796 (LIBES): Use LIBS_TERMCAP as a variable.
1797
1798 * s/freebsd.h (osreldate.h): No longer include, since this file
1799 does not use __FreeBSD_version any more.
1800
1801 * s/aix4-2.h (TERMINFO):
1802 * s/cygwin.h (TERMINFO):
1803 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1804 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1805 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1806 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1807 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1808 * s/irix6-5.h (TERMINFO):
1809 * s/netbsd.h (LIBS_TERMCAP):
1810 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1811 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1812 * s/usg5-4.h (TERMINFO):
1813 Move to configure.
1814
94b612ad
SM
18152010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1816
1817 * eval.c (unbind_to): Don't unbind a local binding into the global
1818 binding when the local binding disappeared. Inversely, don't unbind
1819 a global binding into a newly created local binding.
1820 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1821 can specify the frame to use, when applicable. Adjust callers.
1822
15e12598 18232010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1824 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1825
1826 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1827
f724825e
EZ
18282010-05-07 Eli Zaretskii <eliz@gnu.org>
1829
5cba3209
EZ
1830 * w32fns.c: Include w32.h.
1831 (Fw32_shell_execute): Decode the error message before passing it
1832 to `error'. (Bug#6126)
1833
d16bdfc3
EZ
1834 * msdos.c (dos_set_window_size):
1835 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1836 instead of `XSYMBOL (foo)->value'.
1837
59d93e87
EZ
18382010-05-07 Eli Zaretskii <eliz@gnu.org>
1839
9fdec8bc
EZ
1840 Fix the MS-DOS build, broken by autoconfiscation.
1841
1842 * Makefile.in: Don't use Make-style comments past the "start of
1843 cpp stuff" line.
1844 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1845
1846 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1847 edited directly by msdos/sed1v2.inp).
f724825e 1848
2f86b22b
GM
18492010-05-07 Glenn Morris <rgm@gnu.org>
1850
1851 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1852 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1853 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1854 move out of cpp section.
1855 * s/freebsd.h (LD_SWITCH_SYSTEM):
1856 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1857 * s/netbsd.h (LD_SWITCH_SYSTEM):
1858 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1859
49ebbd65
DN
18602010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1861
1862 Define LIB_STANDARD and START_FILES using autoconf.
1863 * s/usg5-4.h (LIB_STANDARD):
1864 * s/netbsd.h (START_FILES):
1865 * s/irix6-5.h (LIB_STANDARD):
1866 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1867 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1868 * s/freebsd.h (START_FILES):
1869 * s/darwin.h (START_FILES):
1870 * s/cygwin.h (START_FILES):
1871 * s/aix4-2.h (LIB_STANDARD):
1872 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1873 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1874 autoconf, not cpp.
1875
d43c06d6
DN
18762010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1877
28823648
DN
1878 Remove NEED_BSDTTY and NEED_UNISTD_H.
1879 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1880 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1881 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1882 <sys/ptyio.h> and <unistd.h>.
1883
aca00430
DN
1884 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1885
d43c06d6
DN
1886 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1887 * s/gnu.h (START_FILES): Remove empty definition.
1888
3e56b11d
JD
18892010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1890
1891 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1892
e3cf0cde
GM
18932010-05-06 Glenn Morris <rgm@gnu.org>
1894
1895 * Makefile.in (CPP, LN_S): Remove unused variables.
1896
774b9a60
SM
18972010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1898
1899 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1900
4ab92842
LM
19012010-05-05 Lawrence Mitchell <wence@gmx.li>
1902
1903 * m/sparc.h: Fix typo in earlier change.
1904
178f2507
SM
19052010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1906
1907 Misc tweaks.
1908 * eval.c (Fdefvaralias): Remove unintended nested if.
1909 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1910
80f00217 19112010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1912
1913 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1914
ef03a4e6
DN
19152010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1916
58eb6cf0
DN
1917 Remove BSD_PGRPS.
1918 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1919 * s/gnu-linux.h (BSD_PGRPS): Remove.
1920 * term.c (dissociate_if_controlling_tty):
1921 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1922 (init_sys_modes, reset_sys_modes):
1923 * emacs.c (main):
1924 * callproc.c (Fcall_process, child_setup): Remove code depending
1925 on BSD_PGRPS.
1926
ef03a4e6
DN
1927 Remove POSIX_SIGNALS.
1928 * s/usg5-4.h (POSIX_SIGNALS):
1929 * s/netbsd.h (POSIX_SIGNALS):
1930 * s/msdos.h (POSIX_SIGNALS):
1931 * s/ms-w32.h (POSIX_SIGNALS):
1932 * s/hpux11.h (POSIX_SIGNALS):
1933 * s/gnu.h (POSIX_SIGNALS):
1934 * s/gnu-linux.h (POSIX_SIGNALS):
1935 * s/freebsd.h (POSIX_SIGNALS):
1936 * s/darwin.h (POSIX_SIGNALS):
1937 * s/cygwin.h (POSIX_SIGNALS):
1938 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1939 * s/unixware.h:
1940 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1941 * process.c (create_process):
1942 * syssignal.h:
1943 * sysdep.c (wait_for_termination, init_signals):
1944 * process.c (create_process):
1945 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1946 remove all code that assumes the contrary.
1947
49628785
GM
19482010-05-04 Glenn Morris <rgm@gnu.org>
1949
27a2cdfc
GM
1950 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1951 variable.
1952 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1953 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1954 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1955 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1956 LD_SWITCH_SYSTEM_tmp.
1957 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1958 New variables, set by configure.
1959
eb21eab5
GM
1960 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1961 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1962 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1963 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1964 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1965
49628785
GM
1966 * s/aix4-2.h (C_SWITCH_SYSTEM):
1967 * m/alpha.h (C_SWITCH_MACHINE):
1968 Move to configure.in.
1969 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1970 New variables, set by configure.
1971 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1972 $c_switch_machine and $c_switch_system.
1973
7dff330b
DN
19742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1975
1976 * s/hpux10-20.h (LIB_STANDARD): New definition.
1977 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1978 on it, not used anymore.
1979
53967e09
CY
19802010-05-03 Chong Yidong <cyd@stupidchicken.com>
1981
1982 * eval.c (internal_condition_case_n): Rename from
1983 internal_condition_case_2.
1984 (internal_condition_case_2): New function.
1985
1986 * xdisp.c (safe_call): Use internal_condition_case_n.
1987
1988 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1989 (internal_delete_file, Frename_file): Callers changed.
1990
1991 * buffer.c (Fkill_buffer):
1992 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1993
1994 * lisp.h: Update prototypes.
1995
3dee6fdb
GM
19962010-05-03 Glenn Morris <rgm@gnu.org>
1997
1998 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1999 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2000 (LIBXT): Set with configure, not cpp.
2001 (LIBX): Remove.
2002 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2003
a101e0fb
DN
20042010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2005
2006 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2007 The FreeBSD is not needed, the default works, Solaris version is
2008 not needed, and the remaining case is not supported by configure.
2009
f63d0028
JD
20102010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2011
2012 * xsmfns.c (CHDIR_OPT): New define.
2013 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2014 restarting emacs.
2015
2016 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2017 shut_down_emacs.
2018
2019 * emacs.c (USAGE1): Mention --chdir.
2020 (main): Handle --chdir.
2021 (standard_args): Add --chdir.
2022 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2023 #5552).
2024
e4814a9f
DN
20252010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2026
cd03c74a
DN
2027 Remove LD_SWITCH_MACHINE.
2028 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2029 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2030
c3a398a1
DN
2031 Clean up IRIX code.
2032 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2033 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2034
87e7285c
DN
2035 Clean up AIX code.
2036 * m/ibmrs6000.inp: Remove file, unused.
2037 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2038 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2039 definition ...
2040 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2041
80f00217
JB
2042 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2043 unused.
e4814a9f 2044
59ca28de
EZ
20452010-05-01 Eli Zaretskii <eliz@gnu.org>
2046
197daef4
EZ
2047 Emulate POSIX_SIGNALS on MS-Windows.
2048
2049 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2050 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2051
2052 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2053 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2054 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2055
80f00217
JB
2056 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2057 New stubs.
197daef4 2058
af7c7572
EZ
2059 Miscellaneous fixes of bidi display.
2060
59ca28de
EZ
2061 * xdisp.c (find_row_end): New function, refactored from display_line.
2062 (display_line): Use it.
017ea819
EZ
2063 (extend_face_to_end_of_line): In almost-filled rows, extend only
2064 if the row is R2L and not continued.
166e930d 2065 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2066 Preserve overlay and string info in row->end.
166e930d
EZ
2067 (insert_left_trunc_glyphs): Support addition of left truncation
2068 glyphs to R2L rows.
b47e0dcf 2069 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2070 glyph between adjacent windows. Fix a crash when a display string
2071 is continued to the next line. Don't return zero if cursor was
2072 found by `cursor' property of a display string.
b47e0dcf
EZ
2073 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2074 test for that explicitly.
59ca28de 2075
7acac9f4
GM
20762010-05-01 Glenn Morris <rgm@gnu.org>
2077
2078 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2079 for clarity.
2080 (OTHER_OBJ): Remove.
2081 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2082 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2083
45841e65
KK
20842010-05-01 Karel Klíč <kklic@redhat.com>
2085
2086 * fileio.c (Ffile_selinux_context): Context functions may return null.
2087
afc61943
DN
20882010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2089
80f00217 2090 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2091
5a1bb006
GM
20922010-04-30 Glenn Morris <rgm@gnu.org>
2093
2094 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2095 (OTHER_OBJ): Define as a separate variable, for clarity.
2096
210af043
J
20972010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2098
2099 * xsettings.c: include limits.h and update file comment.
2100
0a7df391
GM
21012010-04-30 Glenn Morris <rgm@gnu.org>
2102
d5096f16
GM
2103 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2104 Set with configure, not cpp.
2105 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2106
7eb1ac33
GM
2107 * Makefile.in (mallocobj): Remove.
2108 (otherobj): Simplify using @OTHER_OBJ@.
2109
517d086b
GM
2110 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2111 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2112 Don't bother making nsgui.h dependency platform-specific.
2113
0a7df391
GM
2114 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2115
d6d23852
SM
21162010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2117
d2630aef
SM
2118 * process.c (read_process_output, exec_sentinel): Don't burp if the
2119 sentinel/filter kills the current buffer (bug#6060).
2120
f9dddf52 2121 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2122 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2123 Remove unused var `args'.
2124 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2125 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2126 * doc.c (store_function_docstring): Use XSETCAR.
2127
f1e3642a
GM
21282010-04-28 Glenn Morris <rgm@gnu.org>
2129
faf535f8
GM
2130 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2131 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2132
c40f9449
GM
2133 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2134
658f86ca
GM
2135 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2136 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2137
bc0b5f61
GM
2138 * Makefile.in (FONT_OBJ): New, set by configure.
2139 (FONT_DRIVERS): Use $FONT_OBJ.
2140
294c50a0
GM
2141 * Makefile.in (LIBXMU): Set with configure, not cpp.
2142 * s/aix4-2.h (LIBXMU):
2143 * s/hpux10-20.h (LIBXMU):
2144 Remove definition, now set in configure.
2145
e6ec4e99
GM
2146 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2147
f1e3642a
GM
2148 * m/amdx86-64.h [i386]: Move this test to configure.in.
2149
c6ea2936
GM
21502010-04-27 Glenn Morris <rgm@gnu.org>
2151
8fdac2c3
GM
2152 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2153 * s/unixware.h (NEED_LIBW): Remove definition.
2154
986fb647
GM
2155 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2156 (TOOLKIT_LIBW): New, set by configure.
2157 (@X_TOOLKIT_TYPE@): No longer define it.
2158
c6ea2936
GM
2159 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2160 (MOTIF_LIBW): Set with configure, not cpp.
2161 * s/aix4-2.h (LIB_MOTIF):
2162 * s/gnu-linux.h (LIB_MOTIF):
2163 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2164
aaa36002
DN
21652010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2166
2167 Reduce CPP usage.
2168 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2169 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2170 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2171 definitions and undefs. Inline definitions in the only user.
2172 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2173
b678dd8b
GM
21742010-04-27 Glenn Morris <rgm@gnu.org>
2175
76cda504
GM
2176 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2177 since the defaults (set by the system file) are fine in most cases.
2178 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2179 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2180 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2181 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2182 Remove definitions, since they are set correctly in s/gnu-linux.h.
2183 * s/freebsd.h (START_FILES, LIB_STANDARD):
2184 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2185 * s/hpux10-20.h (START_FILES):
2186 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2187 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2188
b678dd8b
GM
2189 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2190 (MOTIF_LIBW): Use $LIBXP.
2191 (otherobj): Use $WIDGET_OBJ.
2192
9452ded1
DN
21932010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2194
7e10844c
DN
2195 * Makefile.in (LIBS_MACHINE): Remove, unused.
2196
9452ded1
DN
2197 Use autoconf instead of cpp for LIB_MATH.
2198 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2199 * s/cygwin.h (LIB_MATH): Likewise.
2200 * Makefile.in (LIB_MATH): Do not define with cpp.
2201 (LIBES): Use autoconf for LIB_MATH.
2202
fcebfc6a
KH
22032010-04-26 Kenichi Handa <handa@m17n.org>
2204
2205 * composite.c (Ffind_composition_internal): Fix the return value
2206 for an automatic composition.
2207
39e2ad1b
DN
22082010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2209
2210 Remove all NO_ARG_ARRAY uses.
2211 * fns.c (concat2, concat3, nconc2):
2212 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2213 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2214 * m/xtensa.h (NO_ARG_ARRAY):
2215 * m/template.h (NO_ARG_ARRAY):
2216 * m/sparc.h (NO_ARG_ARRAY):
2217 * m/sh3.h (NO_ARG_ARRAY):
2218 * m/mips.h (NO_ARG_ARRAY):
2219 * m/macppc.h (NO_ARG_ARRAY):
2220 * m/iris4d.h (NO_ARG_ARRAY):
2221 * m/intel386.h (NO_ARG_ARRAY):
2222 * m/ibms390x.h (NO_ARG_ARRAY):
2223 * m/ibms390.h (NO_ARG_ARRAY):
2224 * m/ibmrs6000.h (NO_ARG_ARRAY):
2225 * m/ia64.h (NO_ARG_ARRAY):
2226 * m/hp800.h (NO_ARG_ARRAY):
2227 * m/arm.h (NO_ARG_ARRAY):
2228 * m/amdx86-64.h (NO_ARG_ARRAY):
2229 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2230
adf4f59c
EZ
22312010-04-25 Eli Zaretskii <eliz@gnu.org>
2232
6bdf5d65
EZ
2233 * xdisp.c (display_line): Don't assume 2nd call to
2234 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2235 (iterate_out_of_display_property): New function, body from pop_it.
2236 (pop_it): Use it.
adf4f59c 2237
dfbbda83
GM
22382010-04-24 Glenn Morris <rgm@gnu.org>
2239
2240 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2241 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2242 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2243 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2244
2d4018aa
EZ
22452010-04-24 Eli Zaretskii <eliz@gnu.org>
2246
a49884a6
EZ
2247 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2248 use `get_next_display_element' and `set_iterator_to_next' to
2249 advance to the next character, when looking for the character that
2250 begins the next row.
2251
76db6fcc 2252 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2253 definition of "struct Lisp_Symbol".
2254
70eab5c1
GM
22552010-04-24 Glenn Morris <rgm@gnu.org>
2256
2257 * Makefile.in (CRT_DIR): New variable, set by configure.
2258 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2259 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2260
1ad4cc3d
DN
22612010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2262
e769f484
DN
2263 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2264
4196ff33
DN
2265 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2266
879b0ee4
DN
2267 Remove redundant flags.
2268 * s/freebsd.h (C_SWITCH_SYSTEM):
2269 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2270 * s/netbsd.h (C_SWITCH_SYSTEM):
2271 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2272 of these.
2273
03cbbcb8
DN
2274 Simplify m/intel386.h.
2275 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2276 user: ecrt0.c.
2277 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2278 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2279 the only user: s/unixware.h.
2280 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2281 from m/intel386.h.
2282 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2283 moved here from m/intel386.h.
2284
1ad4cc3d
DN
2285 * m/mips.h: Remove #if 0 code.
2286
8785b888
EZ
22872010-04-23 Eli Zaretskii <eliz@gnu.org>
2288
728588cc
EZ
2289 Fix display of composed characters from L2R scripts in bidi buffers.
2290 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2291 After advancing IT past the composition, resync the bidi iterator
2292 with IT's position. (Bug#5977)
2293
a63f80b4
DN
22942010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2295
2296 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2297 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2298
ff5dec5c
SM
22992010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2300
2301 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2302
8785b888
EZ
23032010-04-23 Eli Zaretskii <eliz@gnu.org>
2304
58ccf243 2305 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2306 * xdisp.c (pop_it): When the stack is popped after displaying
2307 from a string, bidi-iterate to exit from the text portion covered
2308 by the `display' property or overlay. (Bug#5988, bug#5920)
2309
feeb1604
DN
23102010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2311
8e324eb6
DN
2312 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2313 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2314
809fcaba
DN
2315 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2316 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2317
ed710380
DN
2318 Simplify STARTFILES definition.
2319 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2320 relying on Makefile.in to define it.
2321 * s/cygwin.h (START_FILES): Likewise.
2322 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2323
feeb1604
DN
2324 Clean up Solaris code.
2325 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2326 (LIB_MOTIF): Remove, configure takes care of this.
2327 (NOT_USING_MOTIF): Remove, unused.
2328 * xrdb.c: Remove #if 0-ed #include.
2329 (SYSV): Remove conditional for old SysV.
2330 * sysdep.c (closedir): Remove conditional code for Solaris,
2331 Solaris has closedir.
2332
a0d0b563
JD
23332010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2334
2335 * xsettings.c (read_and_apply_settings): Check if current_font is
2336 NULL before strcmp (Bug#6001).
2337
56bae7c7
DN
23382010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2339
2340 Clean up HP-UX files.
2341 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2342 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2343 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2344 * s/hpux10-20.h: ... to the only user, here.
2345
372b7a95
EZ
23462010-04-21 Eli Zaretskii <eliz@gnu.org>
2347
2348 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2349 use buffer-local values of paragraph-start and paragraph-separate.
2350 <paragraph_start_re, paragraph_separate_re>: Rename from
2351 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2352 (Bug#5992)
2353
f904c0f9
JD
23542010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2355
2356 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2357 current_tool_bar_style are new.
2358 (store_config_changed_event): Rename from store_font_changed_event.
2359 (XSETTINGS_TOOL_BAR_STYLE): New define.
2360 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2361 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2362 HAVE_XFT.
2363 (something_changedCB): store_font_changed_event is now
2364 store_config_changed_event
2365 (parse_settings): Rename from parse_xft_settings. Read
2366 non-xft xsettings outside #ifdef HAVE_XFT.
2367 (read_settings): Renamed from read_xft_settings.
2368 (apply_xft_settings): Take current settings as parameter. Do not
2369 call read_(xft)_settings.
2370 (read_and_apply_settings): New function.
2371 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2372 read_and_apply_settings if there are settings to be read.
2373 (init_xsettings): Renamed from init_xfd_settings.
2374 Call read_and_apply_settings unconditionally.
2375 (xsettings_initialize): Call init_xsettings.
2376 (Ftool_bar_get_system_style): New function.
2377 (syms_of_xsettings): Define Qmonospace_font_name and
2378 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2379 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2380 dynamic-setting.
31a01b90 2381 Move misplaced HAVE_GCONF
f904c0f9
JD
2382
2383 * xsettings.h (Ftool_bar_get_system_style): Declare.
2384
2385 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2386 Qtext, Qboth, Qboth_horiz are new.
2387 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2388 Vtool_bar_style, tool_bar_max_label_size.
2389
2390 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2391
2392 * keyboard.c: QClabel is new.
2393 (parse_tool_bar_item): Take out QClabel from tool bar items.
2394 Try to construct a label if ther is no QClabel.
2395 (syms_of_keyboard): Intern :label as QClabel.
2396
2397 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2398 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2399 New.
2400
2401 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2402 dynamic-setting.el.
2403
2404 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2405 (xg_make_tool_item, xg_show_toolbar_item): New function.
2406 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2407 Call xg_make_tool_item to make a tool bar item.
2408 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2409
2410 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2411 into account for toolbars.
2412
c632dfda
JD
24132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2414
2415 * data.c (make_blv): Declarations before code (Bug#5993).
2416
10efe302
GM
24172010-04-21 Glenn Morris <rgm@gnu.org>
2418
2419 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2420 Define using autoconf, not cpp.
2421 (LIBXSM): New variable, set by autoconf.
2422 (LIBXT): Use $LIBXSM.
2423
4285ac5a
DN
24242010-04-21 Dan Nicolaescu <local_user@dannlt>
2425
3ec759e7
DN
2426 Remove NOMULTIPLEJOBS, unused.
2427 * s/template.h (NOMULTIPLEJOBS):
2428 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2429
4285ac5a
DN
2430 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2431 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2432 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2433 detects -znocombreloc and passes it to the linker
2434 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2435
2807228d
GM
24362010-04-21 Glenn Morris <rgm@gnu.org>
2437
2438 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2439
574c05e2
KK
24402010-04-21 Karel Klíč <kklic@redhat.com>
2441
2442 * Makefile.in (LIBSELINUX_LIBS): New.
2443 (LIBES): Add $LIBSELINUX_LIBS.
2444 * eval.c, lisp.h (call7): New function.
2445 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2446 (Ffile_selinux_context, Fset_file_selinux_context):
2447 New functions.
2448 (Fcopy_file): New parameter preserve-selinux-context.
2449 (Frename_file): Preserve selinux context when renaming by copy-file.
2450
91eac4bb 24512010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2452 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2453
50426a04
JB
2454 Don't depend on cm.c or termcap.c on Windows, use stubs.
2455 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2456 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2457 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2458 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2459 (sys_tputs, sys_tgetstr): New stubs.
2460 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2461 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2462
938efb77
JB
24632010-04-20 Juanma Barranquero <lekktu@gmail.com>
2464
2465 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2466
b4bf28b7
SM
24672010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2468
8b1e1112
SM
2469 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2470 Just signal a warning rather than an error when inside a let.
2471 (Fmake_variable_frame_local): Add the same test.
2472
933ac235
SM
2473 * font.c (syms_of_font): Make the style table vars read-only.
2474
b4bf28b7
SM
2475 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2476 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2477
2478 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2479
93d68d0c
EZ
24802010-04-20 Eli Zaretskii <eliz@gnu.org>
2481
2482 Fix R2L paragraph display on TTY.
2483
2484 * xdisp.c (unproduce_glyphs): New function.
2485 (display_line): Use it when produced glyphs are discarded from R2L
2486 glyph rows.
2487 (append_composite_glyph): In R2L rows, prepend the glyph rather
2488 than appending it.
2489
2490 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2491 rather than append it. Set up the resolved_level and bidi_type
2492 attributes of the appended glyph.
283ccc18
EZ
2493 (produce_special_glyphs): Mirror the backslash continuation
2494 character in R2L lines.
93d68d0c 2495
283ccc18 2496 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2497
283ccc18
EZ
2498 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2499 append_stretch_glyph.
2500 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2501 off-by-one error in computing x at end of text in the row.
2502 (append_stretch_glyph): In reversed row, prepend the glyph rather
2503 than append it. Set resolved_level and bidi_type of the glyph.
2504 (extend_face_to_end_of_line): If the row is reversed, prepend a
2505 stretch glyph whose width is such that the rightmost glyph will be
2506 drawn at the right margin of the window. Fix off-by-one error on
2507 TTY frames in testing whether a line needs face extension. Fix
2508 face extension at ZV. If this is the last glyph row, use
2509 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2510 region face.
2511 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2512 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2513 row->continuation_lines_width.
283ccc18
EZ
2514 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2515 are at ZV. Fixes a crash when reseated to ZV by
2516 try_window_reusing_current_matrix.
45903529
EZ
2517 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2518 which happens with R2L glyph rows. Fixes a crash when inserting a
2519 character at end of an R2L line.
283ccc18
EZ
2520 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2521 treat them as having zero-width characters. Improve comments.
2522 Don't reverse pos_before and pos_after for reversed glyph rows.
2523 Set cursor.x to negative value when the cursor might be on the
2524 left fringe.
2525 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2526 left fringe, not the right one.
f951a506
EZ
2527 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2528 (erase_phys_cursor): For reversed cursor_row, support cursor on
2529 the left fringe.
2530
283ccc18
EZ
2531 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2532 of continuation indicators on the fringes.
2533 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2534 left fringe.
2535
f951a506
EZ
2536 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2537 draw cursor on the left fringe.
2538
2539 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2540 cursor on the left fringe.
2541
f951a506
EZ
2542 * dispnew.c (update_text_area): Handle reversed desired rows when
2543 the cursor is on the left fringe.
2544 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2545 below, not by 0, for when the cursor is on the left fringe.
2546
3bb49aaf
JD
25472010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2548
2549 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2550 widget is a scrollbar.
2551
c0be27fd
KH
25522010-04-20 Kenichi Handa <handa@m17n.org>
2553
2554 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2555 only when the arg CHARSET_LIST is nil.
2556
ce5b453a
SM
25572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2558
2559 Make variable forwarding explicit rather the using special values.
2560 Basically, this makes the structure of buffer-local values and object
2561 forwarding explicit in the type of Lisp_Symbols rather than use
2562 special Lisp_Objects for that. This tends to lead to slightly more
2563 verbose code, but is more C-like, simpler, and makes it easier to make
2564 sure we handled all cases, among other things by letting the compiler
2565 help us check it.
2566 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2567 Removing forwarding objects.
2568 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2569 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2570 explicit rather than hiding them inside Lisp_Object "values".
2571 (XFWDTYPE): New macro.
2572 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2573 (XBUFFER_LOCAL_VALUE): Remove.
2574 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2575 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2576 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2577 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2578 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2579 Remove the Lisp_Misc_* header.
2580 (struct Lisp_Buffer_Local_Value): Redefine.
2581 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2582 (struct Lisp_Misc_Any): Add filler to get the right size.
2583 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2584 Lisp_Intfwd.
2585 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2586 (DEFVAR_KBOARD): Allocate a forwarding object.
2587 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2588 (let_shadows_global_binding_p): New function.
2589 (union Lisp_Val_Fwd): New type.
2590 (make_blv): New function.
2591 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2592 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2593 (swap_in_symval_forwarding, find_symbol_value, Fset)
2594 (let_shadows_buffer_binding_p, set_internal, default_value)
2595 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2596 (Fkill_local_variable, Fmake_variable_frame_local)
2597 (Flocal_variable_p, Flocal_variable_if_set_p)
2598 (Fvariable_binding_locus):
2599 * xdisp.c (select_frame_for_redisplay):
2600 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2601 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2602 * frame.c (store_frame_param):
2603 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2604 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2605 value structure.
2606 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2607 (clone_per_buffer_values): Only adjust markers into the current buffer.
2608 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2609 (Fbuffer_local_value, set_buffer_internal_1)
2610 (swap_out_buffer_local_variables):
2611 Adapt to the new symbol value structure.
2612 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2613 (defvar_per_buffer): Take a new arg for the fwd object.
2614 (buffer_lisp_local_variables): Return a proper alist (different fix
2615 for bug#4138).
2616 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2617 (Fgarbage_collect): Don't handle buffer_defaults specially.
2618 (mark_object): Handle new symbol value structure rather than the old
2619 special Lisp_Misc_* objects.
2620 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2621 * term.c (set_tty_color_mode):
2622 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2623 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2624 a buffer_local_flags.
2625 * print.c (print_object): Get rid of impossible forwarding objects.
2626
fd3998ff
EZ
26272010-04-19 Eli Zaretskii <eliz@gnu.org>
2628
2629 * bidi.c (bidi_get_type, bidi_get_category)
2630 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2631 (bidi_type_of_next_char, bidi_level_of_next_char):
2632 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2633
e42cd1a7
JB
26342010-04-19 Juanma Barranquero <lekktu@gmail.com>
2635
2636 * dired.c (Ffile_attributes): Fix typo in docstring.
2637
6e104790 26382010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2639
2640 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2641 NSInteger (Bug#5811).
2642
6e104790 26432010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2644
2645 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2646 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2647
6e104790 26482010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2649
2650 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2651
6e104790
SM
26522010-04-19 Chong Yidong <cyd@stupidchicken.com>
2653
2654 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2655 terminal frames (Bug#5837).
2656
37dcfea0
EZ
26572010-04-19 Eli Zaretskii <eliz@gnu.org>
2658
d1da276f
EZ
2659 * .gdbinit (xsubchartable): New command.
2660
37dcfea0
EZ
26612010-04-19 Eli Zaretskii <eliz@gnu.org>
2662
2663 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2664 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2665 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2666 and
2667 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2668
e9515805
SM
26692010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2670
2671 * alloc.c (Fpurecopy): Hash-cons if requested.
2672 (syms_of_alloc): Update purify-flag docstring.
2673
22aa44a8
JD
26742010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2675
2676 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2677 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2678
ebb5722e
EZ
26792010-04-17 Eli Zaretskii <eliz@gnu.org>
2680
2681 Fix a crash when an NSM character is inserted at BEGV.
2682
2683 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2684 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2685 NEUTRAL_B or UNKNOWN_BT.
2686
0f4442ef
EZ
26872010-04-16 Eli Zaretskii <eliz@gnu.org>
2688
2689 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2690 other rows with cursor unless they are different from this row and
2691 this row is part of a continued line. (Bug#5943)
2692
7d4e45f8
DN
26932010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2694
2695 * s/freebsd.h: Restore osreldate.h include.
2696 Suggested by Naohiro Aota.
2697
5ba5ec85
J
26982010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2699
2700 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2701
20af301d
CY
27022010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2703
2704 * s/cygwin.h: Avoid linking against static libgcc.
2705
a4b000fb
JL
27062010-04-15 Juri Linkov <juri@jurta.org>
2707
2708 * window.c: Add Qscroll_command.
2709 Remove Vscroll_preserve_screen_position_commands.
2710 (window_scroll_pixel_based, window_scroll_line_based): Check the
2711 `scroll-command' property on the last command instead of searching
2712 the last command in Vscroll_preserve_screen_position_commands.
2713 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2714 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2715 (scroll-preserve-screen-position): Doc fix.
2716 (Vscroll_preserve_screen_position_commands): Remove variable.
2717
bc319ba4
DN
27182010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2719
6bb24457
DN
2720 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2721
19d4c244
DN
27222010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2723
2724 Reduce cpp use in Makefile.in.
2725 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2726 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2727 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2728 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2729 (CRT0_COMPILE): Remove, inline it in the only user.
2730
32129746
JL
27312010-04-14 Juri Linkov <juri@jurta.org>
2732
2733 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2734 `scroll-up-command' and `M-v' from `scroll-down' to
2735 `scroll-down-command'.
2736
9013a7f8
JL
27372010-04-14 Juri Linkov <juri@jurta.org>
2738
2739 * window.c (Vscroll_preserve_screen_position_commands): New variable
2740 with the default value as the list of Qscroll_down and Qscroll_up.
2741 (window_scroll_pixel_based, window_scroll_line_based): Search the
2742 last command in the list Vscroll_preserve_screen_position_commands
2743 instead of comparing with Qscroll_up and Qscroll_down.
2744
4bef8d26
JD
27452010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2746
92848133
JD
2747 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2748 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2749 does that.
2750
4bef8d26
JD
2751 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2752 to zero.
2753
58b963f7
SM
27542010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2755
84164a0d
SM
2756 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2757
2b0a91e7
SM
2758 Try to solve the problem of spurious EOF chars in long lines of text
2759 sent to interactive subprocesses.
2760 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2761 (system_process_attributes): Remove unused var `ttotal'.
2762 * process.c (send_process): Don't bother breaking long line with EOF
2763 chars when talking to ttys any more.
2764 (wait_reading_process_output): Output a warning when called in such
2765 a way that it could block without being interruptible.
2766
58b963f7
SM
2767 Try to detect file modification within the same second.
2768 * buffer.h (struct buffer): New field modtime_size.
2769 * buffer.c (reset_buffer): Initialize it.
2770 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2771 (Fverify_visited_file_modtime): Check it.
2772 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2773 (Fset_visited_file_modtime): Set (or clear) it.
2774
01f5787b
SM
27752010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2776
2777 * process.c (status_notify): Remove unused var `ro'.
2778
83725342
JD
27792010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2780
2781 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2782 more than one visual (Bug#5938).
2783
b9465836
DN
27842010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2785
50426a04
JB
2786 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2787 Undefine.
b9465836 2788
8d9c8ece
DN
27892010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2790
b1f52161
DN
2791 Remove C_SWITCH_SYSTEM_TEMACS.
2792 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2793 (malloc, realloc, free): Use emacs, not temacs for conditional
2794 definition.
2795
2796 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2797 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2798
8d9c8ece
DN
2799 Use autoconf, not cpp for some variables.
2800 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2801 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2802 (ALL_CFLAGS): Use them as make variables.
2803 (really-lwlib, really-oldXMenu): Do not pass them.
2804
1ecb2d3f
JD
28052010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2806
2807 * xmenu.c (apply_systemfont_to_dialog): New.
2808 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2809
3a4fa2f2
SM
28102010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2811
97e53006
SM
2812 * process.c (exec_sentinel): Preserve current-buffer.
2813
3a4fa2f2
SM
2814 * process.c (read_process_output): Move the save-current-buffer to
2815 apply to both the filter and the non-filter branches.
2816
88df7221
DN
28172010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2818
2819 * s/msdos.h (UNEXEC): New definition.
2820
5634ff85
YM
28212010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2822
6eff5c3d
YM
2823 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2824 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2825
2826 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2827 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2828 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2829 TRY_WINDOW_CHECK_MARGINS.
2830
2831 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2832 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2833 width only when it is for padding.
5634ff85 2834
b13aef54
J
28352010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2836
2837 * xfns.c (Fx_show_tip): Call try_window in a loop until
2838 fonts_changed_p is zero (Bug#2423).
2839
21d28484
EZ
28402010-04-08 Eli Zaretskii <eliz@gnu.org>
2841
2842 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2843 the end of TEXT_AREA. (Bug#5856)
2844
0269ef77
JD
28452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2846
2847 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2848 HAVE_GCONF.
2849
5930fe97
EZ
28502010-04-08 Eli Zaretskii <eliz@gnu.org>
2851
2852 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2853 prev.orig_type, for resolving type of NSM. (Bug#5858)
2854
99852628
JD
28552010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2856
2857 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2858 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2859 in current_font.
2860 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2861 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2862 New functions.
2863 (syms_of_xsettings): Initialize current_font.
2864 defsubr Sfont_get_system_normal_font.
99852628
JD
2865
2866 * xsettings.h (Ffont_get_system_normal_font,
2867 xsettings_get_system_normal_font): Declare.
2868
2869 * xfns.c (extern xlwmenu_default_font): Remove.
2870 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2871 to xlwmenu.c.
2872
2873 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2874 menu items in UTF-8.
2875
2876 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2877 (apply_systemfont_to_menu): New function.
2878 (set_frame_menubar, create_and_show_popup_menu): Call
2879 apply_systemfont_to_menu.
2880
7fc874c4
J
28812010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2882
2883 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2884 FRAME_LINE_TO_PIXEL_Y.
2885
2886 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2887 pixelwidth/height.
2888
863bf481
DN
28892010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2890
5e5a3b92
DN
2891 Simplify code for HP machines.
2892 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2893 for GNU_LINUX, not needed.
2894 (UNEXEC, NEED_BSDTTY): Move definitions...
2895 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2896
863bf481
DN
2897 * m/iris4d.h (UNEXEC): Move definition ...
2898 * s/irix6-5.h (UNEXEC): ... here.
2899
3e6bec3b
JD
29002010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2901
2902 * xfns.c (set_machine_and_pid_properties): New function.
2903 (Fx_create_frame): Call set_machine_and_pid_properties.
2904
2912322b
SM
29052010-04-03 Eli Zaretskii <eliz@gnu.org>
2906
1502b819
EZ
2907 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2908 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2909 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2910
2912322b
SM
2911 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2912 in this function. (Bug#5703)
2913
29142010-04-03 Chong Yidong <cyd@stupidchicken.com>
2915
2916 * nsterm.h: Fix last change.
2917
c435b432
DN
29182010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2919
a568f507
DN
2920 * m/intel386.h (NO_REMAP): Move definition ...
2921 * s/msdos.h (NO_REMAP): ... here.
2922
4cd9f6c2
DN
2923 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2924
c435b432
DN
2925 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2926 used on those platforms.
2927
42a2c622
DN
29282010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2929
2930 Remove extern errno declarations.
2931 * xterm.c:
2932 * xrdb.c:
2933 * w32term.c:
2934 * unexec.c:
2935 * unexaix.c:
2936 * sysdep.c:
2937 * process.c:
2938 * lread.c:
2939 * keyboard.c:
2940 * floatfns.c:
2941 * filelock.c:
2942 * fileio.c:
2943 * emacs.c (main):
2944 * ecrt0.c:
2945 * dispnew.c:
2946 * callproc.c:
2947 * buffer.c: Remove errno extern declarations.
2948 * s/netbsd.h (NEED_ERRNO): Remove.
2949
8224f93d
DN
29502010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2951
2952 Remove all uses of LIBX11_SYSTEM.
2953 * Makefile.in (LIBX11_SYSTEM): Remove.
2954 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2955 instead.
2956
814062c7
EZ
29572010-04-01 Eli Zaretskii <eliz@gnu.org>
2958
ed68db4d
EZ
2959 Remove support for DJGPP v1.x (bug#5813).
2960
2961 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2962 * s/msdos.h:
2963 * unexec.c (make_hdr, copy_text_and_data):
2964 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2965 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2966 (IT_set_terminal_modes, __write, _rename, gethostname)
2967 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2968 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2969 the value of __DJGPP__.
ed68db4d
EZ
2970 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2971 compatibility code.
8224f93d
DN
2972 * lread.c:
2973 * gmalloc.c (memalign):
2974 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2975 * emacs.c (main):
2976 * dosfns.c (init_dosfns):
ed68db4d
EZ
2977 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2978
52f4d8d5
EZ
29792010-04-01 Eli Zaretskii <eliz@gnu.org>
2980
814062c7
EZ
2981 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2982 string with `cursor' property comes from an `after-string'
2983 overlay. (Bug#5816)
2984
0dc2e11d
GM
29852010-04-01 Glenn Morris <rgm@gnu.org>
2986
2987 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2988 Define as Makefile variables.
2989 (LIBX): Use above variables rather than directly using autoconf.
2990
1d29df59
DN
29912010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2992
2993 Clean up BSD_SYSTEM use.
2994 * xterm.c:
2995 * process.c:
2996 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2997 for including <sys/ioctl.h>.
2998 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2999 code is only used for MSDOS.
3000
1546c559
JL
30012010-03-31 Juri Linkov <juri@jurta.org>
3002
3003 * image.c: Add `Qextension_data'.
3004 (syms_of_image): Initialize and staticpro `Qextension_data'.
3005 (Fimage_metadata): Rename from `Fimage_extension_data'.
3006 (gif_load): Put GIF extension data to the property
3007 `Qextension_data'.
3008
6521c534
CY
30092010-03-31 Chong Yidong <cyd@stupidchicken.com>
3010
3011 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3012 * nsterm.h: Fix prototype.
3013
52c30783
EZ
30142010-03-31 Eli Zaretskii <eliz@gnu.org>
3015
3016 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3017 trailing whitespace in right-to-left rows.
3018
855a0da7
SM
30192010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3020
3021 Get rid of the direct_output optimizations.
3022 * keyboard.c (nonundocount): Remove extern declaration.
3023 (command_loop_1): Remove brittle optimisation for cheap and
3024 common operations.
3025 * xdisp.c (redisplay_internal): Don't bother checking
3026 redisplay_performed_directly_p any more.
3027 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3028 any more.
3029 * dispnew.c (redisplay_performed_directly_p)
3030 (direct_output_for_insert, direct_output_forward_char):
3031 * dispextern.h (redisplay_performed_directly_p)
3032 (direct_output_for_insert, direct_output_forward_char): Remove.
3033 * cmds.c (nonundocount): Make it static.
3034
85738751 30352010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3036
3037 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3038
85738751 30392010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3040
3041 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3042 invisible (Bug#5766).
3043
85738751 30442010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3045
855a0da7
SM
3046 * xdisp.c (x_consider_frame_title, update_window_cursor):
3047 Remove HAVE_NS conditionals.
194d44e7 3048 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3049
3050 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3051 filename for the title.
3052 (ns_set_doc_edited): Do nothing if the selected window is a
3053 minibuffer window.
3054
3055 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3056 ns_set_doc_edited.
3057
3058 * nsterm.m: Remove unneeded prototype.
3059
85738751 30602010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3061
3062 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3063 in the DOC file. (Bug#5336)
3064
85738751 30652010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3066
3067 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3068
75d1428c
SM
30692010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3070
3071 * window.c (keys_of_window): Remove redundant/overridden bindings.
3072
82043cfb
EZ
30732010-03-30 Eli Zaretskii <eliz@gnu.org>
3074
3075 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3076 Restore original behavior when the iterator is not bidi_p.
3077
b5dd0ae7
DN
30782010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3079
3080 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3081
bd924a5d
EZ
30822010-03-30 Eli Zaretskii <eliz@gnu.org>
3083
3084 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3085 are outside the range of cached character positions.
3086
3580374b
JB
30872010-03-30 Juanma Barranquero <lekktu@gmail.com>
3088
3089 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3090
a7b02820
EZ
30912010-03-30 Eli Zaretskii <eliz@gnu.org>
3092
3093 Initial support for bidirectional editing.
3094
3095 * Makefile.in (obj): Include bidi.o.
3096 (bidi.o): New target.
3097
3098 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3099 ($(BLD)/bidi.$(O)): New target.
3100
3101 * bidi.c: New file.
3102
3103 * buffer.h (struct buffer): New members bidi_display_reordering
3104 and bidi_paragraph_direction.
3105
3106 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3107 and bidi_paragraph_direction.
3108 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3109 and bidi-paragraph-direction.
3110 (Fbuffer_swap_text): Swap the values of
3111 bidi_display_reordering and bidi_paragraph_direction.
3112
3113 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3114 (bidi_type_t, bidi_dir_t): New types.
3115 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3116 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3117 prev_stop, base_level_stop, and eol_pos.
3118 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3119 (IT_STACK_SIZE): Enlarge to 5.
3120 (struct glyph_row): New member reversed_p.
3121 <string_buffer_position>: Update prototype.
3122 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3123 glyph_row if bidi_it.paragraph_dir == R2L.
3124 (struct glyph): New members resolved_level and bidi_type.
3125
3126 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3127 processing or buffer's direction is right-to-left.
3128 (prepare_desired_row): Preserve the reversed_p flag.
3129 (row_equal_p): Compare the reversed_p attributes as well.
3130
3131 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3132 bidi_init_it and set it->paragraph_embedding from the current
3133 buffer's value of bidi_paragraph_direction.
3134 (reseat_1): Initialize bidi_it.first_elt.
3135 (set_iterator_to_next, next_element_from_buffer): Use the value of
3136 paragraph_embedding to determine the paragraph direction.
3137 (set_iterator_to_next): Under bidi reordering, call
3138 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3139 new_paragraph flag is set in the bidi iterator.
3140 (next_element_from_buffer): If bidi_it.first_elt is set,
3141 initialize paragraph direction and find the first character to
3142 display in the visual order. If reseated to a middle of a line,
3143 prime the bidi iterator starting at the line's beginning. Handle
3144 the situation where we overstepped stop_charpos due to
3145 non-linearity of the bidi iteration. Likewise for when we back up
3146 beyond the previous stop_charpos. When moving across stop_charpos,
3147 record it in prev_stop.
3148 (display_line): Set row->end and it->start for the next row to the
3149 next character in logical order. Always extend reversed_p rows to
3150 the end of line, even if they end at ZV. Copy the reversed_p flag
3151 to the next glyph row. Keep calling set_cursor_from_row for
3152 bidi-reordered rows even if we already have a possible candidate
3153 for cursor position. Set row_end after all the row's glyphs have
3154 been produced, by looping over the glyphs. Record the position
3155 after EOL in it->eol_pos, and use it to set end_pos of the last
3156 row produced for a continued line.
3157 <Qright_to_left, Qleft_to_right>: New variables.
3158 (syms_of_xdisp): Initialize and staticpro them.
3159 (string_buffer_position_lim): New function.
3160 (string_buffer_position): Most of code moved to
3161 string_buffer_position_lim. Last argument and return value are
3162 now EMACS_INT; all callers changed.
3163 (set_cursor_from_row): Rewritten to support bidirectional text and
3164 reversed glyph rows.
3165 (text_outside_line_unchanged_p, try_window_id): Disable
3166 optimizations if we are reordering bidirectional text and the
3167 paragraph direction can be affected by the change.
3168 (append_glyph, append_composite_glyph)
3169 (produce_image_glyph, append_stretch_glyph): Set the
3170 resolved_level and bidi_type members of each glyph.
3171 (append_glyph): If the glyph row is reversed, prepend the glyph
3172 rather than appending it.
3173 (handle_stop_backwards): New function.
3174 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3175 (reseat): call handle_stop_backwards to recompute prev_stop and
3176 base_level_stop for the new position.
3177 (handle_invisible_prop): Under bidi iteration, skip invisible text
3178 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3179 paragraph direction. Update IT->prev_stop after skipping
3180 invisible text.
3181 (move_it_in_display_line_to): New variables prev_method
3182 and prev_pos. Compare for strict equality in
3183 BUFFER_POS_REACHED_P.
3184 (try_cursor_movement): Examine all the candidate rows that occlude
3185 point, to return the best match. If rows are bidi-reordered
3186 and point moved backwards, back up to the row that is not a
3187 continuation line, and start looking for a suitable row from
3188 there.
3189
3190 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3191 rather than appending, if the glyph_row's reversed_p flag is set.
3192 Set the resolved_level and bidi_type members of each glyph.
3193
3194 * .gdbinit (pbiditype): New command.
3195 (pgx): Use it to display bidi level and type of the glyph.
3196 (pitx): Display some bidi information about the iterator.
3197 (prowlims, pmtxrows): New commands.
3198
32a8894e
DN
31992010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3200
3201 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3202 * s/usg5-4.h (LIBS_DEBUG):
3203 * s/irix6-5.h (C_DEBUG_SWITCH):
3204 * s/gnu-linux.h (LIBS_DEBUG):
3205 * s/darwin.h (LIBS_DEBUG):
3206 * s/bsd-common.h (LIBS_DEBUG):
3207 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3208 * m/iris4d.h (LIBS_DEBUG):
3209 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3210
3211 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3212 (LIBS_DEBUG): Remove definition.
3213
649dbf36
CY
32142010-03-27 Chong Yidong <cyd@stupidchicken.com>
3215
3216 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3217 Windows.
3218
cad4261f
YM
32192010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3220
3221 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3222 `connect' (Bug#5723).
3223
cd591dbc
HE
32242010-03-25 Helmut Eller <eller.helmut@gmail.com>
3225
3226 * process.c (Fmake_network_process): Call `select' for interrupted
3227 `connect' rather than creating new socket (Bug#5173).
3228
e867cb5d 32292010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3230
3231 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3232
3233 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3234
3235 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3236
e867cb5d 32372010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3238
3239 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3240 XLoadQueryFont.
3241
e867cb5d 32422010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3243
3244 * coding.c (decode_coding_ccl): Fix previous change for the
3245 multibyte case.
fb608df3
KH
3246 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3247 case that the output buffer is fullfilled.
3248 (encode_coding): Setup ccl program here.
fbdc1721 3249
5845f0ed
DN
32502010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3251
814fb708
DN
3252 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3253
5845f0ed
DN
3254 Simplify LIBS_MACHINE definitions.
3255 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3256 * m/iris4d.h (LIBS_MACHINE): Likewise.
3257 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3258 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3259 * s/netbsd.h: Remove commented out code.
5845f0ed 3260
b7064064
DN
32612010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3262
df7734b2
DN
3263 Remove dead code dealing with POSIX_SIGNALS.
3264 * atimer.c (set_alarm): Remove dead code, all USG systems define
3265 POSIX_SIGNALS.
3266 * data.c (arith_error): Likewise.
3267 * keyboard.c (input_available_signal, handle_user_signal)
3268 (interrupt_signal): Likewise.
3269 * process.c (sigchld_handler): Likewise.
3270 (create_process): Remove if 0 code. Remove HPUX conditional when
3271 !defined (POSIX_SIGNALS), it cannot be true.
3272 * syssignal.h: Remove USG5_4 and USG conditionals when
3273 !POSIX_SIGNALS, they cannot be true.
3274
b7064064
DN
3275 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3276 NO_SOCK_SIGIO, not used anymore.
3277
55da5ee3
DN
32782010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3279
0be96e3a
DN
3280 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3281 support vax on BSDs.
3282
55da5ee3
DN
3283 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3284 * s/aix4-2.h (ORDINARY_LINK): ... here.
3285
c0282183
AS
32862010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3287
82c3d67a
AS
3288 * Makefile.in (abs_builddir): Define.
3289 (bootstrap_exe): Use it.
3290 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3291
3613edce
SM
32922010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3293
3294 * Makefile.in (bootstrap_exe): Use an absolute name.
3295
7f110ddc
DN
32962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3297
22e87574
DN
3298 Remove support for old GNU/Linux using libc version 5.
3299 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3300 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3301
05a670e6
DN
3302 Consolidate redundant definitions in s/bsd-common.h.
3303 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3304 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3305 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3306 doing it in all files that include this one.
3307 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3308 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3309 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3310 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3311 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3312 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3313 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3314 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3315 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3316
2968f561
DN
3317 Consolidate redundant definitions.
3318 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3319 it's undefined in all files that include this one.
3320 (POSIX_SIGNALS): Define here instead of doing it in all files that
3321 include this one.
3322 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3323 (POSIX_SIGNALS): Do not define.
3324 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3325 (POSIX_SIGNALS): Do not define.
3326 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3327 (POSIX_SIGNALS): Do not define.
3328
15d25dc0
DN
3329 Remove support for old UNIX System V systems.
3330 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3331 * s/usg-5-4-2.h: Remove.
3332
07e339e4
DN
3333 Remove support for Solaris on PPC and for old versions.
3334 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3335 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3336 that cancel each other.
3337 * s/sol2-3.h:
3338 * s/sol2-4.h:
3339 * s/sol2-5.h: Remove.
3340 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3341 (NO_REMAP): Remove, unused.
3342 (UNEXEC): Move definition ...
3343 * s/aix4-2.h (UNEXEC): ... here.
3344
7f110ddc
DN
3345 * s/openbsd.h: Remove support for non-ELF and for systems that do
3346 not support shared libraries.
3347 * s/netbsd.h:
3348 * s/freebsd.h: Likewise.
3349
605f35cd
DN
33502010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3351
3352 Remove non-working support for lynxos 3.0.
3353 * s/lynxos.h: Remove file.
3354
3355 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3356 COFF_BSD_SYMBOLS, nothing defines it anymore.
3357
aed71cf4
DN
33582010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3359
3360 Remove obsolete uses of HAVE_SHM.
3361 * emacs.c (standard_args):
3362 (Fdump_emacs):
3363 (syms_of_emacs): Remove code depending on HAVE_SHM.
3364
3365 * alloc.c: Remove HAVE_SHM dependent definition.
3366
3367 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3368
aded53ff
GM
33692010-03-18 Glenn Morris <rgm@gnu.org>
3370
17284745
GM
3371 * emacs.c (USAGE4): Hard-code bug address.
3372 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3373 (bug_reporting_address): Remove.
3374 (main): Don't call bug_reporting_address.
3375
aded53ff
GM
3376 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3377 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3378
303500aa
CY
33792010-03-15 Chong Yidong <cyd@stupidchicken.com>
3380
3381 * xfns.c (Fx_create_frame):
3382 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3383 on left.
3384
cef3058f
CY
33852010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3386
3387 * editfns.c (Fformat): Account for string precision when computing
3388 field width (Bug#5710).
3389
a647d59d
CY
33902010-03-12 Chong Yidong <cyd@stupidchicken.com>
3391
4fa42018
CY
3392 * xfns.c (Fx_create_frame): Set default to Qright.
3393
a647d59d
CY
3394 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3395 all window systems.
3396
6da23aaa
EZ
33972010-03-12 Eli Zaretskii <eliz@gnu.org>
3398
a96f6398 3399 These changes remove termcap.c from the build on Posix platforms.
83d02def 3400 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3401 (MSDOS_OBJ): ...to here.
3402 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3403 now identical to when LIBS_TERMCAP is defined.
3404
3405 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3406
3407 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3408
a96f6398 3409 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3410
288f9fc0
CY
34112010-03-10 Chong Yidong <cyd@stupidchicken.com>
3412
3413 * Branch for 23.2.
3414
d48cd3f4
SM
34152010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3416
3417 Cleanup setup of gl_state in various parts of the code.
3418 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3419 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3420 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3421 (skip_chars):
3422 * regex.c (regex_compile): Use it.
3423 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3424 it's now set in regex_compile when/if we need it.
3425
618db430
SM
34262010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3427
c0335e02
SM
3428 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3429 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3430 (QUIT): Use it to consolidate code and remove redundancy.
3431 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3432
254c06a8
SM
3433 * regex.c (regex_compile): Setup gl_state as well.
3434
618db430
SM
3435 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3436 (in_classes): Use CONSP before XCAR/XCDR.
3437
233f0c9f
CY
34382010-03-03 Chong Yidong <cyd@stupidchicken.com>
3439
3440 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3441 definitions, so that keyboard macros are correctly handled
3442 (Bug#5481).
3443
75f80e63
EZ
34442010-03-02 Eli Zaretskii <eliz@gnu.org>
3445
3446 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3447 text that could be relocated inside the call to emacs_mule_char.
3448 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3449 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3450
dcfb9bc4
KH
34512010-03-02 Kenichi Handa <handa@m17n.org>
3452
fc9a17bc
KH
3453 * character.c (parse_str_as_multibyte): Fix handling of the
3454 multibyte form of raw-bytes.
3455 (str_as_multibyte): Likewise.
3456
dcfb9bc4
KH
3457 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3458 form of raw-bytes.
3459
412c01b6
CY
34602010-02-28 Chong Yidong <cyd@stupidchicken.com>
3461
3462 * charset.c (load_charset_map_from_file)
3463 (load_charset_map_from_vector): Zero out allocated
3464 charset_map_entries before using them.
3465
df7e1ea0
AS
34662010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3467
3468 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3469
fe69a722
CY
34702010-02-27 Chong Yidong <cyd@stupidchicken.com>
3471
4ed28cf4
CY
3472 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3473 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3474
7379cfce
KH
34752010-02-26 Kenichi Handa <handa@m17n.org>
3476
f88cc4d6
KH
3477 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3478
7379cfce
KH
3479 * xdisp.c (reseat_to_string): Fix previous change.
3480
cf2fdcfb
CY
34812010-02-26 David Reitter <david.reitter@gmail.com>
3482
3483 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3484 Lisp_Object (Bug#4736).
3485
cc6c7c75
KH
34862010-02-25 Kenichi Handa <handa@m17n.org>
3487
3488 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3489
32e737d7
JD
34902010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3491
3492 * xterm.c (XTflash): Move declarations before statements.
3493
3494 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3495 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3496 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3497 (xg_create_tool_bar): Remove unused variables.
3498 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3499 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3500
676cae9f
CY
35012010-02-21 Chong Yidong <cyd@stupidchicken.com>
3502
3503 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3504
886cc2b8
SM
35052010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3506
3507 * term.c (fatal): Add a final \n if needed (bug#5596).
3508
ddb2d8e2
CY
35092010-02-18 Chong Yidong <cyd@stupidchicken.com>
3510
3511 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3512
2a4f8d3d
GM
35132010-02-18 Glenn Morris <rgm@gnu.org>
3514
3515 * callint.c (Finteractive): Doc fix.
3516
ebaf11b6
KH
35172010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3518
886cc2b8
SM
3519 * coding.c (record_conversion_result):
3520 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3521 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3522 memory allocation error.
3523
d0396581
KH
35242010-02-17 Kenichi Handa <handa@m17n.org>
3525
886cc2b8
SM
3526 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3527 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3528 (decode_coding): Setup ccl program here. Keep looping when the
3529 decoder stopped because the output buffer is
3530 fullfilled (bug#5534).
3531
3532 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3533
98599f74
JD
35342010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3535
471e4f04 3536 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3537 bug #5571.
886cc2b8 3538 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3539 overdrawn.
98599f74 3540
182659ae
JD
35412010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3542
3543 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3544 doing_interact here.
3545 (ice_connection_closed): New function.
3546 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3547 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3548 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3549 returns I/O error.
3550 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3551 bug #5512.
3552
9be32c4e 35532010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3554
3555 * nsfont.m (nsfont_open): The system's value for the font descent
3556 is negative, so round it down to avoid clipping.
3557
a2f3eb19
CY
35582010-02-06 Chong Yidong <cyd@stupidchicken.com>
3559
3560 * charset.c (load_charset_map_from_file)
3561 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3562 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3563
3088147c
CY
35642010-02-05 Chong Yidong <cyd@stupidchicken.com>
3565
3566 * charset.c (load_charset_map_from_file): Allocate large
3567 charset_map_entries structure on the heap rather than the stack.
3568 (Bug#5526).
3569
b57d9029
KH
35702010-01-31 Kenichi Handa <handa@m17n.org>
3571
3572 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3573 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3574
c67d885b
CY
35752010-01-31 Chong Yidong <cyd@stupidchicken.com>
3576
3577 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3578 <deactivated@gmail.com> (Bug#3605).
3579
8fab2362
CY
35802010-01-31 David De La Harpe Golden <david@harpegolden.net>
3581
3582 * fileio.c (Frename_file): Correctly rename symlinks to
3583 directories (Bug#5496).
3584
cb2a62f2
CY
35852010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3586
3587 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3588
944c7a26
AS
35892010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3590
3591 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3592
c024ac08
CY
35932010-01-29 Chong Yidong <cyd@stupidchicken.com>
3594
3595 * frame.c (DEFAULT_ROWS): Change default to 35.
3596
3597 * xfns.c (x_default_font_parameter): Change default XFT font to
3598 monospace-10 (Bug#3643).
3599
af93af83
EZ
36002010-01-29 Eli Zaretskii <eliz@gnu.org>
3601
3602 * w32inevt.c (key_event): Remove unnecessary comparison of
3603 event->uChar.AsciiChar with 128.
3604
ca0eb708
CY
36052010-01-28 Chong Yidong <cyd@stupidchicken.com>
3606
b242dbfc
CY
3607 * fileio.c (Frename_file): Fix last change (Bug#5487).
3608
ca0eb708
CY
3609 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3610
3611 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3612
45d45af5
JD
36132010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3614
3615 * xfns.c (Fx_create_frame): Remove window size matching code from
3616 2010-01-15.
a73f9c9d 3617 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3618
7e233730
JR
36192010-01-27 Jason Rumney <jasonr@gnu.org>
3620
3621 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3622 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3623
86e893e3
KH
36242010-01-27 Kenichi Handa <handa@m17n.org>
3625
3626 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3627 pattern string (Bug#4209).
86e893e3 3628
8719abec
CY
36292010-01-27 David De La Harpe Golden <david@harpegolden.net>
3630
3631 * fileio.c (Frename_file): Call copy-directory and
3632 delete-directory for directories, in order to handle cross-device
3633 renaming (Bug#3353).
3634
844794c8
JD
36352010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3636
aa3e13b5 3637 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3638 sizes 24 and 10. Bug #3643.
844794c8 3639
bd4b5750
SM
36402010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3641
8dc1adf6 3642 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3643 * keymap.c (shadow_lookup): Add `remap' arg.
3644 (describe_map, describe_vector): Update calls to shadow_lookup.
3645 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3646 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3647 perform remapping during shadow_lookup check of remapped_sequences.
3648
285d07e2
CY
36492010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3650
3651 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3652 png_check_sig, which has been removed in libpng 1.4.
3653
c6d09b8d
CY
36542010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3655
3656 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3657 lacks this header file).
3658
3d782998
YM
36592010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3660
3661 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3662 as in Emacs 22.
3663
2aff7c53
YM
36642010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3665
3666 * lisp.h (make_pure_string): String pointer arg now points to const.
3667
3668 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3669 args now point to const.
3670
74327f7a
EZ
36712010-01-22 Eli Zaretskii <eliz@gnu.org>
3672
3673 * lread.c (Fload): Don't treat files without .elc extension as
3674 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3675 them. (bug#5303)
3676
4d1e6632
KH
36772010-01-20 Kenichi Handa <handa@m17n.org>
3678
3679 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3680 treat the source as actual byte sequence.
3681
1fdede8f
AM
36822010-01-19 Alan Mackenzie <acm@muc.de>
3683
3684 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3685 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3686 `signal_after_change_p' to `coherent_change_p', and make the
3687 invocation of `modify_region' conditional on it.
3688
67477f30
JD
36892010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3690
3691 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3692 for debug purpose.
3693 (syms_of_xsettings): Declare xft-settings.
3694
244b023e
CY
36952010-01-18 Chong Yidong <cyd@stupidchicken.com>
3696
3697 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3698
617364fe
CY
36992010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3700
3701 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3702
4fe22cdf
CY
37032010-01-16 Chong Yidong <cyd@stupidchicken.com>
3704
3705 * emacs.c (standard_args): Adjust arg priorities to reflect how
3706 they are processed in startup.el.
3707
e118d2be
AS
37082010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3709
3710 * Makefile.in (lisp, shortlisp): Update.
3711
523ae620
SM
37122010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3713
3714 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3715 code, link the new kboard into all_kboard before running Lisp code,
3716 and protect the new terminal with GCPRO (Bug#5365).
3717 (x_term_init): Remove unused var `atom'.
3718 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3719
f0d13888
JD
37202010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3721
3722 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3723 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3724 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3725 this. Bug #3643.
f0d13888 3726
cc320f07
KH
37272010-01-15 Kenichi Handa <handa@m17n.org>
3728
3729 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3730
7ffdf101
CY
37312010-01-15 Chong Yidong <cyd@stupidchicken.com>
3732
3733 * nsterm.m (Qnone): Define.
3734
3735 * nsfns.m (Qnone): Move definition to nsterm.m.
3736
d12bd917
KH
37372010-01-14 Kenichi Handa <handa@m17n.org>
3738
3739 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3740 systems.
3741
d9a7c140
KH
37422010-01-14 Kenichi Handa <handa@m17n.org>
3743
3744 Make auto-composition work on all buffers even if they are
3745 fundamental mode.
3746
3747 * composite.c (Vauto_composition_mode): New variable.
3748 (composition_compute_stop_pos): Check Vauto_composition_mode
3749 instead of Vauto_composition_function.
3750 (composition_adjust_point, Ffind_composition_internal): Likewise.
3751 (syms_of_composite): Declare Lisp variable
3752 "auto-composition-mode" here.
3753
63286bb2
CY
37542010-01-13 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3757 during call to vendor-specific-keysyms (Bug#5365).
3758
c2623ee7
YM
37592010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3760
3761 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3762 Call SIGNAL_THREAD_CHECK (Bug#5333).
3763
3764 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3765 Call SIGNAL_THREAD_CHECK.
3766
0b5397c2
SM
37672010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3768
3769 Try to fix bug#5314. This is probably not the final word, tho.
3770 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3771 recent-auto-save-p as a side-effect.
3772 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3773 * buffer.c (Fkill_buffer, reset_buffer):
3774 * editfns.c (Fsubst_char_in_region):
3775 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3776 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3777
dc954cb2
KH
37782010-01-13 Kenichi Handa <handa@m17n.org>
3779
3780 Display buffer name, etc. in mode line by composing correctly.
3781
3782 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3783 STRING is not nil.
0b5397c2 3784 (display_mode_element): Adjust for the change of
dc954cb2
KH
3785 decode_mode_spec and display_line.
3786 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3787 (display_string): Handle the case that STRING is non-null and
3788 LISP_STRING is not nil.
3789
0b5397c2
SM
3790 * xterm.c (x_draw_composite_glyph_string_foreground):
3791 Pay attention to s->face->overstrike.
dc954cb2
KH
3792
3793 * composite.c (composition_reseat_it): Don't check PT if STRING is
3794 non nil.
3795
4a00eaca
YM
37962010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3797
3798 * keyboard.c (read_char): Don't apply previous change when current
3799 buffer is unchanged by command execution.
3800
60abb287
JD
38012010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3802
3803 * keyboard.c (read_char): Return after executing from special map.
3804
893db5bc
GM
38052010-01-12 Glenn Morris <rgm@gnu.org>
3806
3807 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3808 bug-gnu-emacs rather than emacs-pretest-bug.
3809
4d03ece0
CY
38102010-01-11 Chong Yidong <cyd@stupidchicken.com>
3811
3812 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3813 initializing the Lisp variables that depend on them.
3814
1df47e38
YM
38152010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3816
3817 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3818 Clear areas that will not be updated after change of menu bar lines.
3819 Clear the menu bar window's current matrix when the window gets empty.
3820
2f1c6384
CY
38212010-01-09 Chong Yidong <cyd@stupidchicken.com>
3822
e398c61c
CY
3823 * intervals.h, textprop.c (extend_property_ranges): Return value
3824 and args changed. Discard properties that begin at or after the
3825 new end (Bug#5306).
3826
3827 * editfns.c (Fformat): Caller changed.
3828
e5a29a10
CY
3829 * nsterm.m (ns_set_default_prefs): Delete function.
3830 (syms_of_nsterm): Initialize ns_command_modifier,
3831 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3832 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3833
2f1c6384
CY
3834 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3835 position (Bug#4040).
3836
d427a9fa
EZ
38372010-01-09 Eli Zaretskii <eliz@gnu.org>
3838
3839 * editfns.c (Ffloat_time): Doc fix.
3840
21b9df2f
JD
38412010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3842
3843 * xfns.c (Fx_create_frame): Don't create frame larger than display
3844 by default bug#3643.
3845
4b00d3b1
YM
38462010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3847
3848 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3849 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3850 windows above internal border.
3851
3852 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3853 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3854 windows above internal border.
3855
3856 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3857 tool bar windows specially.
3858
3859 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3860
3861 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3862 specially.
3863 (XTflash): Take account of menu bar height.
3864
3865 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3866 specially.
3867
5075d853
JD
38682010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3869
ac146f82 3870 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3871 also be true before we can return early (bug #5339).
3872
474217c8
CY
38732010-01-06 David Reitter <david.reitter@gmail.com>
3874
3875 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3876 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3877 (Bug#3233).
3878
c0e6d47d
JD
38792010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3880
d0cf45b7
JD
3881 * font.c (font_open_entity): Enable chache and call cached_font_ok
3882 for the driver if defined.
3883 (QCuser_spec): New symbol.
3884 (font_spec_from_name): Save name as user-spec.
3885 (font_load_for_lface): Keep user-spec instead of name.
3886 (font_open_by_name): Save name as user-spec.
3887 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3888 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3889
3890 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3891 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3892 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3893
3894 * font.h (struct font_driver): Add cached_font_ok.
3895
c0e6d47d
JD
3896 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3897
7c583cd8
JD
38982010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3899
3900 * xterm.c (x_new_font): Move code for setting rows/cols before
3901 resizing ...
ac146f82 3902 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3903
3904 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3905 (xg_frame_resized, xg_frame_set_char_size):
3906 Call xg_clear_under_internal_border.
7c583cd8 3907 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3908
03f77f0a
CY
39092010-01-05 Chong Yidong <cyd@stupidchicken.com>
3910
3911 * keyboard.c (read_key_sequence): Catch keyboard switch after
3912 making a new tty frame (Bug#5095).
3913
2a1ef5be
KH
39142010-01-05 Kenichi Handa <handa@m17n.org>
3915
3916 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3917
e3eb1dae
SM
39182010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3919
3920 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3921 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3922 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3923
777013f2
MA
39242010-01-03 Michael Albinus <michael.albinus@gmx.de>
3925
3926 * dbusbind.c (xd_add_watch): Improve debug message.
3927 (xd_remove_watch): Improve debug message. If DATA is the session
3928 bus, unset D-Bus session environment.
3929 (Fdbus_init_bus): Pass the bus as argument to
3930 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3931
8932b1c2
CY
39322010-01-01 Chong Yidong <cyd@stupidchicken.com>
3933
87231e2c
CY
3934 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3935
4801c5fa
CY
3936 * lread.c (syms_of_lread): Make it clearer that these are the
3937 names of loaded files (Bug#5068).
3938
8932b1c2
CY
3939 * eval.c (run_hook_with_args): Handle the case where the global
3940 value has the obsolete single-function form (Bug#5026).
3941
11e3c684
CY
39422009-12-27 Chong Yidong <cyd@stupidchicken.com>
3943
3944 * minibuf.c (Fall_completions): Minor optimization.
3945
5b28ce35
EZ
39462009-12-26 Eli Zaretskii <eliz@gnu.org>
3947
5ce6e4f4
JB
3948 * .gdbinit (pgx): Fix display of composite glyphs.
3949 Display cmp.from and cmp.to as well.
3950 (pitx): Fix last change.
5b28ce35 3951
bcffff46
KH
39522009-12-25 Kenichi Handa <handa@m17n.org>
3953
3954 * composite.h (composition_adjust_point): Update prototype.
3955
3956 * composite.c (composition_reseat_it): Don't make a composition
3957 spanning over point.
3958 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3959 composable characters.
3960 (composition_adjust_point): New arg NEW_PT. Callers changed.
3961
3962 * keyboard.c (command_loop_1): Force redisplay if the last point
3963 was within a composition.
3964 (adjust_point_for_property): Don't adjust point for automatic
3965 composition when called after buffer modification.
3966
3f670e9a
EZ
39672009-12-19 Eli Zaretskii <eliz@gnu.org>
3968
5ce6e4f4
JB
3969 * .gdbinit (pitx): Don't use enum names, use their values.
3970 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3971 (pgx): Don't use enum names, use their values.
3972 (pitmethod): New helper command.
3973 (pitx): Use it to display iteration method.
3974 (pgrowit): New command.
3975
ad903955
EZ
3976 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3977
3f670e9a
EZ
3978 Update dependencies in Makefile.in.
3979
3980 * Makefile.in (alloc.o): Depend on termhooks.h.
3981 (atimer.o): Depend on blockinput.h.
3982 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3983 and frame.h.
3984 (callint.o): Depend on systime.h, coding.h, and composite.h.
3985 (callproc.o): Depend on buffer.h.
3986 (casefiddle.o): Don't depend on charset.h.
3987 (casetab.o): Depend on character.h.
3988 (ccl.o): Depend on composite.h.
3989 (chartab.o): Depend on ccl.h.
3990 (cm.o): Depend on dispextern.h.
3991 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3992 (coding.o): Don't depend on $(INTERVALS_H).
3993 (composite.o): Don't depend on dispextern.h explicitly (it's in
3994 $(INTERVALS_H)). Depend on ccl.h.
3995 (data.o): Depend on systime.h, coding.h, composite.h,
3996 dispextern.h, font.h, and ccl.h.
3997 (dired.o): Depend on composite.h.
3998 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3999 composite.h (it's in $(INTERVALS_H)).
4000 (doc.o): Depend on systime.h, coding.h, and composite.h.
4001 (editfns.o): Don't depend explicitly on dispextern.h.
4002 (emacs.o): Depend on frame.h and coding.h.
4003 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4004 (fileio.o): Depend on frame.h and commands.h. Don't depend
4005 explicitly on dispextern.h.
4006 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4007 composite.h.
4008 (fns.o): Don't depend on termhooks.h.
4009 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4010 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4011 coding.h, $(INTERVALS_H), window.h, xterm.h.
4012 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4013 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4014 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4015 fontset.h, ccl.h, and ftfont.h.
4016 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4017 (gtkutil.o): Depend on dispextern.h and composite.h.
4018 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4019 termhooks.h, and ccl.h.
4020 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4021 (intervals.o): Depend on systime.h and coding.h.
4022 (keyboard.o): Depend on composite.h and coding.h.
4023 (keymap.o): Depend on coding.h and frame.h.
4024 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4025 (macros.o): Depend on systime.h, coding.h, and composite.h.
4026 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4027 and atimer.h.
4028 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4029 dispextern.h explicitly.
0b5397c2
SM
4030 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4031 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4032 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4033 (regex.o): Don't depend on charset.h.
4034 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4035 (search.o): Don't depend explicitly on composite.h.
4036 (sound.o): Depend on atimer.h and systime.h.
4037 (syntax.o): Don't depend explicitly on composite.h.
4038 (sysdep.o): Depend on coding.h and composite.h.
4039 (term.o): Depend on xterm.h and buffer.h.
4040 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4041 (textprop.o): Don't depend on dispextern.h explicitly.
4042 (undo.o): Depend on dispextern.h.
4043 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4044 dispextern.h and composite.h explicitly.
4045 (xdisp.o): Depend on ccl.h.
4046 (xfaces.o): Depend on coding.h and ccl.h.
4047 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4048 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4049 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4050 ftfont.h.
4051 (xgselect.o): New dependency.
4052 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4053 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4054 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4055 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4056 (xsmfns.o): Depend on frame.h and dispextern.h.
4057 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4058 sysselect.h.
4059
7a6f7fea
AS
40602009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4061
4062 * font.c (Fclear_font_cache): Pass correct cache argument to
4063 font_clear_cache.
4064
f4c21026
AS
40652009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4066
4067 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4068 twice.
4069
f7ab0997
CY
40702009-12-15 Chong Yidong <cyd@stupidchicken.com>
4071
4072 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4073 calling file-remote-p. Reported by Jim Meyering.
4074
fa8e045a
MA
40752009-12-15 Michael Albinus <michael.albinus@gmx.de>
4076
4077 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4078 avoid compiler warnings. (Bug #5217)
fa8e045a 4079
a63dba42
KH
40802009-12-14 Kenichi Handa <handa@m17n.org>
4081
4082 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4083 in 8-bit encoding.
4084
5ce6e4f4 40852009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4086
4087 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4088 tooltip windows.
4089
223e5fc6
JD
40902009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4091
36acb2a7
JD
4092 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4093 Xatom_net_window_type.
4094
4095 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4096 Xatom_net_window_type.
4097
b8f00677
JD
4098 * xterm.c (my_log_handler): New function.
4099 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4100 so we can filter out buggy messages. (Bug #5120).
b8f00677 4101
e5f0bc9a
JD
4102 * xterm.c (xg_scroll_callback): Parameter list changed,
4103 use parameter GtkScrollType to determine scroll/line/page.
4104 Only allow dragging if a button < 4 is grabbed (bug #5177).
4105 (xg_end_scroll_callback): New function.
4106 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4107 xg_create_scroll_bar.
4108
4109 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4110 (scroll_end_callback): Remove.
4111 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4112 button-release-event. Replace value-changed event with change-value,
4113 bug #5177,
4114 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4115 bug #5177.
4116
4117 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4118 (xg_create_scroll_bar): Add GCallback end_callback.
4119
223e5fc6
JD
4120 * xftfont.c (QClcdfilter): New variable.
4121 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4122 (syms_of_xftfont): Initialize QClcdfilter.
4123
3c055b77
JD
41242009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4125
4126 * xsettings.c (struct xsettings): Add member seen.
4127 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4128 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4129 (apply_xft_settings): Only update Xft settings with what member seen
4130 indicates as new.
4131
05fe33ff
EZ
41322009-12-12 Eli Zaretskii <eliz@gnu.org>
4133
4134 * dispextern.h (struct text_pos): Use EMACS_INT;
4135 (struct glyph): Use EMACS_INT for charpos.
4136 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4137 region_beg_charpos, region_end_charpos,
4138 redisplay_end_trigger_charpos, and also for
4139 iterator_stack_entry.end_charpos and
4140 iterator_stack_entry.stop_charpos.
4141
e8d7886a
JD
41422009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4143
5ce6e4f4 4144 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4145 (xg_create_scroll_bar): Call scroll_end_callback on button release
4146 event (bug #5177).
4147 (xg_event_is_for_scrollbar): != replaced with ==.
4148
d0db2ec8
KH
41492009-12-12 Kenichi Handa <handa@m17n.org>
4150
4151 * ftfont.c (struct ftfont_info): New member matrix.
4152 (ftfont_open): Setup xftfont_info->matrix.
4153 (MFLTFontFT): New member matrix.
4154 (FLOOR, CEIL, ROUND): New macros.
4155 (ftfont_get_metrics): Handle matrix transformation.
4156 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4157
4158 * xftfont.c (struct xftfont_info): New member matrix.
4159 (xftfont_open): Setup xftfont_info->matrix.
4160
41612009-12-10 Kenichi Handa <handa@m17n.org>
4162
4163 * xdisp.c (append_space_for_newline): Consider face-remapping.
4164
2cc7b62f
AS
41652009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4166
b87dd913
AS
4167 * xsettings.c: Include "keyboard.h".
4168
eba5eb94
AS
4169 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4170
2cc7b62f
AS
4171 Fix implicit function declarations.
4172 * cmds.c: Include "frame.h".
4173 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4174 * frame.h: Move declaration of delete_frame outside of
4175 HAVE_WINDOW_SYSTEM.
4176
a4ef73c8
CY
41772009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4178
4179 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4180
4181 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4182 GTK builds.
4183
944a300c
AS
41842009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4185
4186 * unexelf.c (unexec): Don't search for .data twice.
4187
022eef62
CY
41882009-12-05 Chong Yidong <cyd@stupidchicken.com>
4189
426ac949
CY
4190 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4191 if push failed.
4192 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4193 of push_display_prop (Bug#5000).
4194
022eef62
CY
4195 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4196 value of font_list_entities (Bug#5085).
4197
be95bee9
JB
41982009-12-04 Juanma Barranquero <lekktu@gmail.com>
4199
4200 Fix `string-to-number' to deal consistently with integers and floats.
4201 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4202 trailing characters, not just whitespace.
4203 (read1): Pass new arg 0 to keep old behavior.
4204 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4205 trailing chars, as it is already done for integers. Doc fixes.
4206 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4207
24c2d7ce
EZ
42082009-12-04 Eli Zaretskii <eliz@gnu.org>
4209
0b5397c2
SM
4210 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4211 Delete unused enumeration value.
24c2d7ce 4212
7e694795
EZ
42132009-12-03 Eli Zaretskii <eliz@gnu.org>
4214
4215 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4216
84b31826
SM
42172009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4218
4219 * process.c (Fmake_network_process): Fix up the tests for
4220 "connectionless socket", so they DTRT for seqpacket sockets as well.
4221
f00c449b
SM
42222009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4223
4224 * process.c (Qseqpacket): New symbol.
4225 (HAVE_SEQPACKET): New macro.
4226 (Fmake_network_process): Accept new :type `seqpacket'.
4227 (init_process): Add `seqpacket' feature when applicable.
4228 (syms_of_process): Initialize Qseqpacket.
4229
8096a0ff
YM
42302009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4231
4232 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4233 if entity is Qnil.
4234
3e0de07f
SM
42352009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4236
4237 * print.c (print_preprocess): Preprocess the key_and_value table of
4238 hashtables, even tho they're "hidden" (bug#5082).
4239
abeafb2a
JD
42402009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4241
4242 * frame.c (frame_make_pointer_invisible)
4243 (frame_make_pointer_visible): Declare f before statements.
4244
4bf47195
EZ
42452009-11-28 Eli Zaretskii <eliz@gnu.org>
4246
4247 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4248 omitted dependencies on lisp.h.
4249
c525b3f2
JD
42502009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4251
ece2d4ed
JD
4252 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4253 is NULL.
4254
4255 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4256
4257 * frame.c (frame_make_pointer_invisible)
3e0de07f 4258 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4259 frame.
4260
c525b3f2
JD
4261 * search.c (simple_search): Remove warning by making *p const.
4262
2f00e299
DN
42632009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4264
4265 * xdisp.c (power_letter): Remove duplicate const.
4266
084b049b
JD
42672009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4268
a1fadc6f
JD
4269 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4270
5ce6e4f4 4271 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4272 defaults (bug #5025).
4273
28259cac
SM
42742009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4275
4276 * insdel.c (adjust_markers_for_delete): Move it in the
4277 right direction! (bug#4803)
4278
e8e14166
YM
42792009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4280
4281 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4282
4283 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4284
86677b58
GM
42852009-11-24 Glenn Morris <rgm@gnu.org>
4286
4287 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4288
581e51e8
JD
42892009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4290
cfc86c7a
JD
4291 * Makefile.in: Must create deps for ecrt0.o in its rule.
4292
581e51e8
JD
4293 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4294 because that is what Gtk+ font dialog understands.
4295
4296 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4297 of Fcopy_sequence.
4298 (font_open_by_name): Put name given into QCname for font-object returned.
4299
4300 * frame.c (x_set_font): Save original font name as frame parameter
4301 font-parameter.
4302
4303 * xsettings.c (set_default_xft_settings): New function.
4304 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4305 is found.
4306
8b264ecb
AS
43072009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4308
4309 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4310 searching backwards through multibyte buffer.
4311
872870b2
JD
43122009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4313
4314 * xterm.c: #include xgselect.h.
4315 (x_initialize): Call xgselect_initialize.
4316
4317 * xsettings.c (something_changedCB): C++ comments => C comments.
4318 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4319 does that now.
4320
4321 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4322 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4323 (scroll_bar_button_cb): Remove.
5ce6e4f4 4324 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4325 event.
4326 (xg_create_scroll_bar): Don't bind button-press-event and
4327 button-release-event.
4328
4329 * process.c: Include xgselect.h if defined (USE_GTK) ||
4330 defined (HAVE_GCONF).
4331 (wait_reading_process_output): Call xg_select for the same condition.
4332
4333 * xgselect.c (xg_select): New function to better integrate with
4334 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4335
4336 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4337
4338 * Makefile.in (XOBJ): Add xgselect.o.
4339
62a6e103
AS
43402009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4341
0b5397c2
SM
4342 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4343 Remove ignored second argument. All callers changed.
62a6e103
AS
4344 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4345 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4346 * xdisp.c (string_char_and_length): Likewise.
4347
b0ca0f33
DN
43482009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4349
4350 * xterm.c (x_new_font):
4351 * print.c (print_object):
4352 * cmds.c (Fself_insert_command): Move declarations before statements.
4353
dd5a6279
CY
43542009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4355
4356 * s/cygwin.h: Remove unneeded linker flags.
4357
4a8e097d
JD
43582009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4359
0d1d0d26
JD
4360 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4361
4362 * xsettings.h: Declare xsettings_get_system_font.
4363
4364 * xsettings.c (xsettings_get_system_font): New function.
4365 (init_gconf): No use initiating gconf unless we have Xft also.
4366 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4367 HAVE_GCONF.
4368
4a8e097d
JD
4369 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4370 add a blank entry so it doesn't collapse into nothing.
4371
8ab1650e
SM
43722009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4373
4374 * lread.c (Funintern): Comment out last change.
4375
82c602f0
RS
43762009-11-19 Richard Stallman <rms@gnu.org>
4377
4378 * lread.c (Funintern): Error if symbol is t or nil.
4379
87e32266
SM
43802009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4381
4382 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4383 representation of Lisp integers.
4384 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4385
1b9ac145
AS
43862009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4387
4388 * lisp.h: Remove declaration of Ffont_get_system_font.
4389 * xfns.c: Move include of "xsettings.h".
4390 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4391
dfb3c4c6
JD
43922009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4393
87e32266
SM
4394 * xsettings.c (something_changedCB, Ffont_get_system_font):
4395 Check use_system_font.
dfb3c4c6
JD
4396 (syms_of_xsettings): DEFVAR font-use-system-font.
4397
9370c1d8
AS
43982009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4399
25fe851a
AS
4400 * xfns.c (x_default_font_parameter): Remove dead assignment.
4401
9370c1d8
AS
4402 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4403
637fa988
JD
44042009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4405
87e32266 4406 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4407 not have FC_LCD_*. #define them if not there.
a6eb20d8 4408
87e32266 4409 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4410
637fa988
JD
4411 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4412
4413 * xterm.c (handle_one_xevent): Call xft_settings_event for
4414 ClientMessage, PropertyNotify and DestroyNotify.
4415 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4416 Call xsettings_initialize.
4417
4418 * xftfont.c (xftfont_fix_match): New function.
4419 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4420 Call xftfont_fix_match after XftFontMatch.
4421
4422 * xfont.c (xfont_driver): Initialize all members.
4423
87e32266
SM
4424 * xfns.c (x_default_font_parameter):
4425 Try font from Ffont_get_system_font.
637fa988
JD
4426 Do not get font from x_default_parameter if we got one from
4427 Ffont_get_system_font.
87e32266 4428 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4429
4430 * w32font.c (w32font_driver): Initialize all members.
4431
4432 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4433
4434 * lisp.h: Declare syms_of_xsettings.
4435
87e32266
SM
4436 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4437 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4438
4439 * ftfont.c (ftfont_filter_properties): New function.
4440
4441 * frame.c (x_set_font): Remove unused variable lval.
4442
87e32266 4443 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4444
4445 * font.c (font_put_extra): Don't return if val is nil, it means
4446 boolean option is off.
4447 (font_parse_fcname): Collect all extra properties in extra_props
4448 and call filter_properties for all drivers with extra_props and
4449 font as parameter.
87e32266
SM
4450 (font_open_entity): Do not use cache, it does not pick up new
4451 fontconfig settings like hinting.
637fa988
JD
4452 (font_load_for_lface): If spec had a name in it, store it in entity.
4453
a73f9c9d 4454 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4455
4456 * config.in: HAVE_GCONF is new.
4457
4458 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4459 xsettings.o is new.
4460
5a942932
KH
44612009-11-17 Kenichi Handa <handa@m17n.org>
4462
4463 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4464 back to the default font in case that no suitable font is found.
4465
b7c7a4d1
SM
44662009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4467
4468 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4469 Suggested by Chad Brown <yandros@mit.edu>.
4470 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4471
072f1e39
JD
44722009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4473
4474 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4475
5d1e70a2
AS
44762009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4477
87e32266 4478 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4479
a53cfbe5
JD
44802009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4481
473a99b7
JD
4482 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4483 has a parent.
4484
a53cfbe5 4485 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4486 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4487
4488 * config.in: Generated (AUTO_DEPEND).
4489
f04bb9b2
MA
44902009-11-13 Michael Albinus <michael.albinus@gmx.de>
4491
b7c7a4d1 4492 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4493 Vdbus_registered_functions_table, because it contains also
4494 properties. Fix docstring.
b7c7a4d1 4495 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4496
8f11f7ec
SM
44972009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4498
4499 * alloc.c (mark_object): Don't reprocess marked strings.
4500 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4501 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4502
8a605fe8
KH
45032009-11-13 Kenichi Handa <handa@m17n.org>
4504
8f11f7ec 4505 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4506 semantics of Vword_combining_categories.
4507 (Vword_combining_categories): Describe the slight change of the
4508 semantics.
4509
241c4680
EZ
45102009-11-13 Eli Zaretskii <eliz@gnu.org>
4511
4512 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4513
4514 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4515
5d58e44c
SM
45162009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4517
4518 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4519
5e13f9d3
JB
45202009-11-12 Juanma Barranquero <lekktu@gmail.com>
4521
4522 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4523
cf54c754
DR
45242009-11-11 David Reitter <david.reitter@gmail.com>
4525
4526 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4527 variables to fix 2009-11-09 change.
4528
a4ada374
DN
45292009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4530
91433552
DN
4531 * process.c (ifflag_def): Make flag_sym constant.
4532 (Fnetwork_interface_info): Use a constant pointer.
4533 (ifflag_table):
4534 * xfns.c (cursor_bits):
4535 * xdisp.c (power_letter):
4536 * termcap.c (speeds, esctab):
4537 * sysdep.c (baud_convert):
4538 * keyboard.c (lispy_accent_codes, modifier_names):
4539 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4540 (jpeg_format, tiff_format, gif_format, svg_format)
4541 (interlace_start, interlace_increment, gs_format):
4542 * gtkutil.c (separator_names):
4543 * fringe.c (swap_nibble):
4544 * fns.c (base64_value_to_char, base64_char_to_value):
4545 * fileio.c (make_temp_name_tbl):
4546 * coding.c (suffixes): Make constant.
4547
f4265f6c
DN
4548 * frame.c (make_initial_frame):
4549 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4550 build_string.
4551 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4552
04420943
DN
4553 * s/freebsd.h:
4554 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4555
0a5d24ae
DN
4556 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4557 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4558
a4ada374
DN
4559 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4560 * xterm.c (syms_of_xterm):
4561 * xfaces.c (syms_of_xfaces):
4562 * xdisp.c (syms_of_xdisp):
4563 * lread.c (syms_of_lread):
4564 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4565 build_string.
91433552 4566
a4ada374
DN
4567 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4568
af98fc7f
SM
45692009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4570
8ab1650e 4571 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4572
e90292a9
JD
45732009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4574
4575 * keyboard.h: Declare timer_check.
4576
4577 * keyboard.c (timer_check_2): New function that does what the old
4578 timer_check did.
4579 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4580 returned, i.e. don't return -1 with timers pending.
4581
4582 * process.c: Remove extern declaration of timer_check.
4583
4584 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4585 even if timer_check returned -1.
4586
af98fc7f
SM
4587 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4588 xg_dialog_data.
e90292a9
JD
4589 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4590 the event loop.
4591 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4592 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4593 Destroy the dialog after xg_dialog_run.
4594
045b83c0
SM
45952009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4596
4597 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4598
1fb99a3a
JD
45992009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4600
4601 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4602
04e452cb
JB
46032009-11-09 Juanma Barranquero <lekktu@gmail.com>
4604
4605 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4606
ef7417fd
SM
46072009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4608
4609 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4610 w32menu.c, and nsmenu.m.
4611 Simplify the obsolete case where position is nil.
4612 (cleanup_popup_menu): New function, moved from nsmenu.m.
4613 (struct skp): Remove slot `notreal'.
4614 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4615 adjust callers.
4616 (single_menu_item): Adjust call to parse_menu_item.
4617 (syms_of_menu): Defsubr x-popup-menu.
4618 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4619 (keymap_panes): Don't export any more.
4620 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4621 (xmenu_show): Declare.
4622 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4623 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4624 * keyboard.h (parse_menu_item): Update declaration.
4625 * xmenu.c (Fx_popup_menu): Remove.
4626 (syms_of_xmenu): Don't defsubr x-popup-menu.
4627 * w32menu.c (Fx_popup_menu): Remove.
4628 (syms_of_w32menu): Don't defsubr x-popup-menu.
4629 * nsmenu.m (cleanup_popup_menu): Remove.
4630 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4631 moved to menu.c's Fx_popup_menu.
4632 (Fx_popup_menu): Remove.
4633 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4634 menu_items (it's done in menu.c already).
4635
424d6179
SM
46362009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4637
4638 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4639 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4640
c0df13a6 46412009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4642
4643 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4644 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4645 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4646 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4647
2de9f71c
SM
46482009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4649
4650 Let integers use up 2 tags to give them one extra bit and thus double
4651 their range.
4652 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4653 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4654 New macros.
4655 (enum Lisp_Type): Use them. Give explicit values.
4656 (Lisp_Type_Limit): Remove.
4657 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4658 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4659 Pay attention to USE_2_TAGS_FOR_INTS.
4660 (INTEGERP): Use LISP_INT_TAG_P.
4661 * fns.c (internal_equal): Simplify the default case.
4662 (sxhash): Use case_Lisp_Int.
4663 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4664 any more.
4665 (Ftype_of): Use case_Lisp_Int.
4666 (store_symval_forwarding): Take into account the fact that Ints can
4667 now have more than one tag.
4668 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4669 buffer_slot_type_mismatch):
4670 * xfaces.c (face_attr_equal_p):
4671 * print.c (print_object):
4672 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4673 Use case_Lisp_Int.
4674
323637a2
EZ
46752009-11-06 Eli Zaretskii <eliz@gnu.org>
4676
7ac65b38
EZ
4677 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4678
323637a2
EZ
4679 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4680 warning.
4681
e511451f
JD
46822009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4683
4684 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4685
4686 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4687
4688 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4689 ButtonPressRelease and MotionNotify (bug#4870).
4690
5e2327cf
DN
46912009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4692
5adc433e
DN
4693 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4694
d67b4f80
DN
4695 * xterm.c (syms_of_xterm):
4696 * xselect.c (syms_of_xselect):
4697 * xmenu.c (syms_of_xmenu):
4698 * xfns.c (syms_of_xfns):
4699 * xfaces.c (syms_of_xfaces):
4700 * xdisp.c (syms_of_xdisp):
4701 * window.c (syms_of_window):
4702 * w32fns.c (syms_of_w32fns):
4703 * undo.c (syms_of_undo):
4704 * textprop.c (syms_of_textprop):
4705 * terminal.c (syms_of_terminal):
4706 * syntax.c (syms_of_syntax):
4707 * sound.c (syms_of_sound):
4708 * search.c (syms_of_search):
4709 * print.c (syms_of_print):
4710 * minibuf.c (syms_of_minibuf):
4711 * macros.c (syms_of_macros):
4712 * keymap.c (syms_of_keymap, initial_define_key)
4713 (initial_define_lispy_key):
4714 * keyboard.c (syms_of_keyboard):
4715 * insdel.c (syms_of_insdel):
4716 * image.c (syms_of_image):
4717 * fringe.c (syms_of_fringe):
4718 * frame.c (syms_of_frame):
4719 * fontset.c (syms_of_fontset):
4720 * fns.c (syms_of_fns):
4721 * fns.c (syms_of_fns):
4722 * fileio.c (syms_of_fileio):
4723 * fileio.c (syms_of_fileio):
4724 * eval.c (syms_of_eval):
4725 * doc.c (syms_of_doc):
4726 * dispnew.c (syms_of_display):
4727 * dired.c (syms_of_dired):
4728 * dbusbind.c (syms_of_dbusbind):
4729 * data.c (syms_of_data):
4730 * composite.c (syms_of_composite):
4731 * coding.c (syms_of_coding):
4732 * cmds.c (syms_of_cmds):
4733 * charset.c (define_charset_internal, syms_of_character):
4734 * ccl.c (syms_of_ccl):
4735 * category.c (syms_of_category, init_category_once):
4736 * casetab.c (syms_of_casetab):
4737 * casefiddle.c (syms_of_casefiddle):
4738 * callint.c (syms_of_callint):
4739 * bytecode.c (syms_of_bytecode):
4740 * buffer.c (keys_of_buffer, syms_of_buffer):
4741 * alloc.c (syms_of_alloc):
4742 * process.c (syms_of_process, init_process):
4743 * lread.c (syms_of_lread, init_obarray):
4744 * font.c (build_style_table):
4745 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4746 intern_c_string, calls to make_pure_string with
4747 make_pure_c_string. Use pure_cons instead of Fcons.
4748
5e2327cf
DN
4749 * process.c (socket_options): Make it const.
4750 (set_socket_option, init_process): Use a const pointer.
4751
4752 * lread.c (intern_c_string): New function.
4753 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4754 (defvar_int): Uset it. Make the name const char*.
4755
4756 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4757 (defvar_int): Update prototypes.
4758 (DEFUN, EXFUN): Support for prototypes is now required.
4759 (intern_c_string): New prototype.
4760 (struct Lisp_Subr): Make symbol_name constant.
4761
4762 * font.c (struct table_entry): Remove unused member. Make NAMES
4763 constant.
4764 (weight_table, slant_table, width_table): Make constant.
4765
4766 * emacs.c (struct standard_args): Make name and longname constant.
4767
4768 * character.h (DEFSYM): Use intern_c_string.
4769
a56eaaef
DN
47702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4771
4772 * alloc.c (make_pure_c_string): New function.
4773
4774 * eval.c (Fautoload): Purecopy all arguments.
4775
f6a07420
KH
47762009-11-05 Kenichi Handa <handa@m17n.org>
4777
4778 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4779 the buffer in case of replace.
4780
5d28d4b1
DN
47812009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4782
4783 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4784
b349d111
SM
47852009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4786
d528b1ce
SM
4787 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4788 when applicable (bug#4851).
4789
b349d111
SM
4790 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4791 (P_): Support for prototypes is now required.
4792
c38eb027
CY
47932009-10-31 Chong Yidong <cyd@stupidchicken.com>
4794
4795 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4796 (Bug#4827).
4797
0405f8d9
EZ
47982009-10-30 Eli Zaretskii <eliz@gnu.org>
4799
d528b1ce 4800 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4801
ca0a881a
DN
48022009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4803
4804 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4805
d528b1ce
SM
4806 * lread.c (Fload): Purecopy the file name when building
4807 Vpreloaded_file_list.
ca0a881a 4808
47e0e0e4
JR
48092009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4810
4811 * w32fns.c (syms_of_w32fns): Change default value of
4812 w32-scroll-lock-modifier to nil. (Bug#2827)
4813
057bce6f
JB
48142009-10-26 Juanma Barranquero <lekktu@gmail.com>
4815
782a943e 4816 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4817
242bc74c
AS
48182009-10-26 Andreas Schwab <schwab@redhat.com>
4819
4820 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4821
522d013a
JB
48222009-10-26 Juanma Barranquero <lekktu@gmail.com>
4823
4824 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4825 For delta < 0, skip check that only makes sense when the mini-window
4826 is going to be enlarged. (Bug#4534)
4827
18060980
CY
48282009-10-25 Chong Yidong <cyd@stupidchicken.com>
4829
4830 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4831 string in menu maps (Bug#4471).
4832
fec8f0fe
CY
48332009-10-24 Chong Yidong <cyd@stupidchicken.com>
4834
4835 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4836 FRAME_NS_VIEW on terminal frames (Bug#4765).
4837
10d66ec0
AS
48382009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4839
1cae01f7
AS
4840 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4841 DBUS_TYPE_UINTnn separately to get proper sign extension.
4842
58a12889
AS
4843 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4844 can properly handle unsigned types.
d528b1ce 4845 (make_uid, make_gid): Remove.
58a12889 4846
987c9327
AS
4847 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4848 types again.
4849
522d013a 4850 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4851 (system_process_attributes): Likewise.
4852
905a9ed3
DN
48532009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4854
4855 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4856
4857 * eval.c (Fautoload): Purecopy the filename. Simplify.
4858
4859 * category.c (Fdefine_category): Purecopy docstring.
4860
a599b3e8
AS
48612009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4862
7b792fc9
AS
4863 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4864
a599b3e8
AS
4865 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4866
b35ac83e
CY
48672009-10-23 Chong Yidong <cyd@stupidchicken.com>
4868
4869 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4870 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4871 (Bug#4775).
4872
e8903e00
SM
48732009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4874
4875 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4876 (init_fileio_once):
4877 * lisp.h (init_fileio_once): Remove.
4878 * emacs.c (main): Don't call init_fileio_once.
4879
8f43cbf3
DN
48802009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4881
4882 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4883
26898943
AS
48842009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4885
4886 * doprnt.c (doprnt): Fix overflow check.
4887
5c646d5a
JD
48882009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4889
3132a7ea
JD
4890 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4891
5c646d5a
JD
4892 * xterm.h (x_wait_for_event): Declare it.
4893
4894 * xterm.c (pending_event_wait): New variable.
4895 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4896 see pending_event_wait.eventtype.
4897 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4898 (x_new_font): Call change_frame_size with new rows/columns before we
4899 try to resize the frame.
5c646d5a 4900 (x_wait_for_event): New function.
d528b1ce
SM
4901 (x_set_window_size_1): Don't change gravity unless change_gravity
4902 is set.
5c646d5a
JD
4903 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4904 don't change frame size, instead wait for the ConfigureNotify.
4905 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4906 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4907 (x_initialize): Initialize pending_event_wait.
4908
4909 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4910 size.
4911
4912 * widget.c (EmacsFrameSetValues): Add comment.
4913 (EmacsFrameSetCharSize): Just call x_set_window_size.
4914
4915 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4916 x_wait_for_event.
d528b1ce 4917 (flush_and_sync): Remove again.
5c646d5a
JD
4918 (xg_get_font_name): Suggest monospace if no previous font is known.
4919
e9c1637d
SM
49202009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4921
4922 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4923 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4924
5a72cccb
YM
49252009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4926
4927 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4928 processing pending events when event is filtered for input method.
ab04798f 4929 (Bug#3681)
5a72cccb 4930
2629aa37
JB
49312009-10-20 Juanma Barranquero <lekktu@gmail.com>
4932
4933 * fns.c: Add #endif accidentally removed in previous change.
4934
c3417a74
DN
49352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4936
4937 * fns.c: Remove code for unsupported system: MAC_OS.
4938 * image.c: Likewise. Include setjmp.h.
4939
9685cef2
JD
49402009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4941
4942 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4943 pixel -1 (bug #4742).
4944
d7306fe6
DN
49452009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4946
019d2c4c
DN
4947 * process.c (create_pty): Remove conditionals for no longer
4948 supported systems: UNIPLUS and RTU.
4949
ee6bacd4
DN
4950 * xterm.c:
4951 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4952
d7306fe6
DN
4953 * alloc.c: Do not define struct catchtag.
4954 * eval.c: Move struct catchtag definition ...
4955 * lisp.h: ... here.
4956
4957 * image.c: Move png.h #include earlier to avoid warnings.
4958
4959 * xterm.c:
4960 * xsmfns.c:
4961 * xselect.c:
4962 * xrdb.c:
4963 * xmenu.c:
4964 * xftfont.c:
4965 * xfont.c:
4966 * xfns.c:
4967 * xfaces.c:
4968 * xdisp.c:
4969 * window.c:
4970 * widget.c:
4971 * w32xfns.c:
4972 * w32uniscribe.c:
4973 * w32term.c:
4974 * w32select.c:
4975 * w32reg.c:
4976 * w32proc.c:
4977 * w32menu.c:
4978 * w32inevt.c:
4979 * w32heap.c:
4980 * w32font.c:
4981 * w32fns.c:
4982 * w32console.c:
4983 * w32.c:
4984 * w16select.c:
4985 * vm-limit.c:
4986 * unexsol.c:
4987 * unexec.c:
4988 * unexcw.c:
4989 * unexaix.c:
4990 * undo.c:
4991 * tparam.c:
4992 * textprop.c:
4993 * terminfo.c:
4994 * terminal.c:
4995 * termcap.c:
4996 * term.c:
4997 * syntax.c:
4998 * sound.c:
4999 * sheap.c:
5000 * search.c:
5001 * scroll.c:
5002 * region-cache.c:
5003 * regex.c:
5004 * ralloc.c:
5005 * process.c:
5006 * print.c:
b024548b
DN
5007 * nsterm.m:
5008 * nsselect.m:
5009 * nsmenu.m:
5010 * nsimage.m:
5011 * nsfont.m:
5012 * nsfns.m:
d7306fe6
DN
5013 * msdos.c:
5014 * minibuf.c:
5015 * menu.c:
5016 * marker.c:
5017 * macros.c:
5018 * keymap.c:
5019 * keyboard.c:
5020 * intervals.c:
5021 * insdel.c:
5022 * indent.c:
5023 * gtkutil.c:
5024 * ftxfont.c:
5025 * ftfont.c:
5026 * fringe.c:
5027 * frame.c:
5028 * fontset.c:
5029 * font.c:
5030 * fns.c:
5031 * floatfns.c:
5032 * filelock.c:
5033 * fileio.c:
5034 * emacs.c:
5035 * editfns.c:
5036 * dosfns.c:
5037 * doprnt.c:
5038 * doc.c:
5039 * dispnew.c:
5040 * dired.c:
5041 * dbusbind.c:
5042 * data.c:
5043 * composite.c:
5044 * coding.c:
5045 * cmds.c:
5046 * cm.c:
5047 * chartab.c:
5048 * charset.c:
5049 * character.c:
5050 * ccl.c:
5051 * category.c:
5052 * casetab.c:
5053 * casefiddle.c:
5054 * callproc.c:
5055 * callint.c:
5056 * bytecode.c:
5057 * buffer.c:
5058 * atimer.c: Include setjmp.h. (Bug#4643)
5059
fd5f21e6
SM
50602009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5061
4c0354d7
SM
5062 Remove leftover table unibyte_to_multibyte_table.
5063 * character.c (unibyte_to_multibyte_table): Remove.
5064 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5065 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5066 * character.h (UNIBYTE_TO_CHAR): New macro.
5067 (MAKE_CHAR_MULTIBYTE): Use it.
5068 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5069 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5070 (message_dolog, set_message_1):
5071 * search.c (Freplace_match):
5072 * editfns.c (Fcompare_buffer_substrings):
5073 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5074 (concat):
5075 * insdel.c (copy_text, count_size_as_multibyte):
5076 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5077 * term.c (produce_glyphs):
5078 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5079 * regex.c (RE_CHAR_TO_MULTIBYTE):
5080 * cmds.c (internal_self_insert):
5081 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5082
fd5f21e6
SM
5083 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5084
4418646e
DN
50852009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5086
5087 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5088
35f5c1d2
JB
50892009-10-16 Juanma Barranquero <lekktu@gmail.com>
5090
5091 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5092
a0cd8f6b
AR
50932009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5094
5095 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5096 still needed under Tiger.
5097
5098 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5099
5100 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5101 __Apple__.
5102
5103 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5104
01a8d3fa
KH
51052009-10-15 Kenichi Handa <handa@m17n.org>
5106
5107 * print.c (print_object): Escape a symbol like "2E10" too.
5108
bf6c75c9 51092009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5110
5111 Cleanups and changes for 64-bit compile under Snow Leopard.
5112 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5113
5114 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5115
c5959062 5116 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5117 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5118 cast argument.
5119 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5120 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5121
5122 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5123
5124 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5125 where appropriate.
5126
5127 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5128 where appropriate.
6e4780c5
JB
5129 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5130 Use stringWithUTF8String.
bf6c75c9
AR
5131 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5132
6e4780c5
JB
5133 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5134 Add formal protocol mention to inheritance.
bf6c75c9
AR
5135 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5136
6e4780c5
JB
5137 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5138 Fix printf format.
bf6c75c9
AR
5139 (ns_query_color): Use CGFloat where appropriate.
5140 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5141 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5142 argument.
5143
3d87f118
AR
5144 * config.in (NS_HAVE_NSINTEGER): Drop.
5145
a95c8102
AR
5146 * dbusbind.c (dbus-method-return-internal)
5147 (dbus-method-error-internal): Use long format in printf, and cast
5148 argument.
5149
5150 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5151 in printf, and cast argument.
5152
6873acca 5153 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5154 cast argument.
5155
9ec6f100
GM
51562009-10-11 Glenn Morris <rgm@gnu.org>
5157
5158 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5159
5be883cd
JD
51602009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5161
5162 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5163 menu bar with a small width so it doesn't enlarge the frame.
5164
d7a39b51
JB
51652009-10-08 Juanma Barranquero <lekktu@gmail.com>
5166
5167 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5168
0c2b6f8e
GM
51692009-10-06 Glenn Morris <rgm@gnu.org>
5170
5171 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5172 SOME_MACHINE_LISP (this enters indirectly via DOC).
5173
e02131a2
EZ
51742009-10-05 Eli Zaretskii <eliz@gnu.org>
5175
5176 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5177
b4744254
EZ
51782009-10-04 Eli Zaretskii <eliz@gnu.org>
5179
5180 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5181 Doc fix.
5182
dbf64827
JB
51832009-10-03 Martin Rudalics <rudalics@gmx.at>
5184
5185 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5186
e9a0aef8
MA
51872009-10-02 Michael Albinus <michael.albinus@gmx.de>
5188
d528b1ce 5189 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5190 used anymore outside fileio.c.
5191
5192 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5193
64eb2b56
JB
51942009-10-01 Juanma Barranquero <lekktu@gmail.com>
5195
5196 * lisp.h (Qdelete_directory_internal):
5197 Declare, instead of Qdelete_directory.
5198
5199 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5200
9d28c33e
SM
52012009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5202
5203 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5204
9d8f3bd9
MA
52052009-10-01 Michael Albinus <michael.albinus@gmx.de>
5206
9d28c33e 5207 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5208 Fdelete_directory. It is not a command anymore. It has no file
5209 name handler.
5210
9694740b
SM
52112009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5212
5213 * xdisp.c (get_next_display_element): Use an enum in last change.
5214
748e162f
KH
52152009-09-28 Kenichi Handa <handa@m17n.org>
5216
9694740b 5217 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5218 unibyte_display_via_language_environment in handling
5219 Vnobreak_char_display.
5220
17efd58d
AR
52212009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5222
5223 * nsterm.h (ns_app_name): New extern variable.
5224
5225 * nsterm.m (ns_app_name): New variable.
5226 (ns_term_init): Set and use it.
5227 (ns_term_shutdown): Use it.
5228
5229 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5230 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5231
5232 * nsfns.m (ns_set_name_iconic, ns_set_name)
5233 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5234 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5235
9694740b
SM
5236 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5237 Remove double-casting in client_data comparison.
31c2d412 5238
3208cb35
YM
52392009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5240
5241 * keyboard.c (make_lispy_event): Remember last wheel direction.
5242 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5243
b7d552d6
GM
52442009-09-26 Glenn Morris <rgm@gnu.org>
5245
5246 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5247 internal.elc. Add term/pc-win.elc.
5248 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5249 term/x-win.elc.
5250 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5251 term/w32-win.elc.
5252 (NS_SUPPORT): New.
5253 (lisp): Add NS_SUPPORT.
5254 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5255
4ff670a8
DR
52562009-09-25 David Reitter <david.reitter@gmail.com>
5257
5258 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5259 on Mac OS X 10.6+ (bug#4513).
5260
feabfb6c
JB
52612009-09-24 Juanma Barranquero <lekktu@gmail.com>
5262
5263 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5264 some parts of Emacs code (like font selection) don't grok them.
5265 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5266
de59072a
AS
52672009-09-24 Andreas Schwab <schwab@redhat.com>
5268
5269 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5270
a489517b
JB
52712009-09-24 Juanma Barranquero <lekktu@gmail.com>
5272
5273 * dired.c (Fdirectory_files): Fix typo in docstring.
5274
0592970c
AR
52752009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5276
5277 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5278 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5279 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5280 under GNUstep.
5281 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5282
5283 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5284 glyph advancement.
5285
48e8a88b
AR
52862009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5287
5288 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5289 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5290
5291 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5292 deleted (bug #4492).
5293
e14f0a78
AR
5294 * nsfont.m (Vns_reg_to_script): New lisp variable.
5295 (syms_of_nsfont): Declare it.
5296 (ns_registry_to_script): New function.
5297 (ns_get_req_script): Call it.
5298 (ns_findfonts): Don't give up on non-unicode registry.
5299
5300 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5301
5b650faa
SM
53022009-09-20 Tom Tromey <tromey@redhat.com>
5303
5304 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5305 batch mode (bug#4228).
5306
a489517b 53072009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5308
5309 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5310 carefully. (Bug #4339)
0bae4e09 5311
fcfe06f3
CY
53122009-09-18 Chong Yidong <cyd@stupidchicken.com>
5313
d798ba87 5314 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5315
31642728
AR
53162009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5317
5318 * emacs.c (inhibit_x_resources): Update doc string for NS.
5319 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5320 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5321
5322 * nsterm.h (ns_no_defaults): Remove.
5323
5324 * nsterm.m (ns_no_defaults): Remove.
5325 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5326 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5327 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5328 don't update the NSWindow itself.
5329 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5330 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5331
5332 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5333 ns_use_qd_smoothing.
5334
5335 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5336 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5337 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5338 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5339
8686ac71
JB
53402009-09-17 Juanma Barranquero <lekktu@gmail.com>
5341
5342 * emacs.c (inhibit_x_resources): New variable.
5343 (main) [HAVE_NS]: Don't process --quick command line option.
5344 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5345
5346 * lisp.h (inhibit_x_resources): Declare it extern.
5347
5348 * w32reg.c (x_get_string_resource):
5349 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5350
e227ba05
EZ
53512009-09-17 Eli Zaretskii <eliz@gnu.org>
5352
362654a6
JB
5353 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5354 Add lisp/term/internal.elc.
e227ba05 5355
742d40e8
SM
53562009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5357
5358 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5359 (bug#4461).
5360
005bd5a2
DN
53612009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5362
5363 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5364
5365 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5366 (OBJECTS_MACHINE): Remove, unused.
5367
f9af9719
SM
53682009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5369
5370 * frame.c (x_get_resource_string): Remove unused.
5371
0307c7d2
JD
53722009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5373
5374 * xterm.c (x_new_font): Call change_frame_size before calling
5375 x_set_window_size, in case frame size won't change.
5376
5377 * frame.c (x_set_font): Remove dead code.
5378
428b13d6
SM
53792009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5380
5381 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5382
5766c380
SM
53832009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5384
5385 * lread.c (Fload): Don't output a message after loading an obsolete
5386 package any more (done in Lisp now).
5387
2fd0161b
CY
53882009-09-12 Chong Yidong <cyd@stupidchicken.com>
5389
5390 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5391
bc5e75b6
SM
53922009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5393
5394 * keymap.c (Fwhere_is_internal): Use nconc2.
5395
c31c985e
AM
53962009-09-11 Alan Mackenzie <acm@muc.de>
5397
5398 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5399 batch mode.
5400
78012bd2
AS
54012009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5402
5403 * xdisp.c (display_mode_element): Detect cycles.
5404
9d889332
SM
54052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5406
5407 * keymap.c (where_is_internal): Don't erroneously return nil right after
5408 filling the cache.
5409 (where_is_internal_1): Fix up typo.
5410
7ab5d780
GM
54112009-09-11 Glenn Morris <rgm@gnu.org>
5412
5413 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5414 share a common doc-string.
5415
5238a749
SM
54162009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5417
66d77eda
SM
5418 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5419 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5420
5238a749
SM
5421 * keymap.c (QCadvertised_binding): New constant.
5422 (syms_of_keymap): Initialize it.
5423 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5424 if applicable.
5425
19f48442
SM
54262009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5427
50d4ba39
SM
5428 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5429 (parse_menu_item): Streamline since bindings are recomputed all the
5430 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5431 more and don't support lmenu's menu-alias any more either.
5432
a88a5372
SM
5433 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5434 (where_is_internal): Strip it down to only traverse the keymaps.
5435 Move the cache handling from Fwhere_is_internal to here.
5436 (Fwhere_is_internal): Move the handling of remapping and the choice of
5437 the best binding from where_is_internal to here.
5438 Unify the cached/noncached paths, so remapping is also handled
5439 correctly when the cache is used, and so the cache can be used to
5440 speed up remap-handling when applicable.
5441 Give preference to non-remapped bindings.
5442 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5443 non-remapped bindings.
5444 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5445 command remapping.
5446
19f48442
SM
5447 * xdisp.c (display_mode_element): Move list length limit from 50 to
5448 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5449
599498c3 54502009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5451
5452 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5453
f9b7b5ac
SM
54542009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5455
a53af587
JB
5456 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5457 (Bug#4334)
5458
f9b7b5ac
SM
5459 * keymap.c (where_is_internal): Filter out shadowed remappings.
5460 Assume that where_is_internal returns unshadowed bindings to simplify
5461 the code and get rid of the gotos. Use ASIZE.
5462
04f4b72d
JD
54632009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5464
4da146f2
JD
5465 * xterm.c (x_focus_changed): If we get a focusout and pointer
5466 is invisible, make it visible.
5467
04f4b72d
JD
5468 * xterm.h: Remove condition for declaration of
5469 x_*_window_to_frame.
5470
7cef7ce3
SM
54712009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5472
5473 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5474 initial terminal as well.
5475
a54fa5b7
JD
54762009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5477
5478 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5479 x_menubar_window_to_frame.
a54fa5b7 5480
50426a04 5481 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5482 (XTmouse_position): Do not return valid positions
5483 for clicks in the menubar and the toolbar for Gtk+.
5484
5485 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5486 if the widget for the event has the same top level as a frame,
5487 return the frame.
5488 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5489 internal windows, bug #4122.
5490 (x_non_menubar_window_to_frame): Remove.
5491
5a021dd0
GM
54922009-09-02 Glenn Morris <rgm@gnu.org>
5493
5494 * buffer.c (default-major-mode): Move most of the doc from here...
5495 (major-mode): ... to here.
5496
548fe2f3
NR
54972009-08-30 Nick Roberts <nickrob@snap.net.nz>
5498
5499 * process.c (wait_reading_process_output): Keep the descriptor
5500 when pty is used by a non-child process, e.g., in I/O buffer of
5501 GDB this allows inferior to be restarted.
5502
e0840eef
EZ
55032009-08-29 Eli Zaretskii <eliz@gnu.org>
5504
5505 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5506 both branches into one.
5507
82e98df4
SM
55082009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5509
5510 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5511 (main): Use enable-multibyte-characters rather than
5512 default-enable-multibyte-characters. Output a warning message when
5513 running a unibyte session.
5514
890617cb
YM
55152009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5516
5517 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5518 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5519 (copy_data_segment): Also copy __program_vars section.
5520 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5521 (dump_it) [LC_DYLD_INFO]: Use it.
5522
5523 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5524
e7adeadc
EZ
55252009-08-28 Eli Zaretskii <eliz@gnu.org>
5526
5527 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5528 $(SRC)/buildobj.h.
5529 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5530 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5531 $(SRC)/buildobj.h.
5532 (clean): Add buildobj.h.
5533
3ed8bbdc
TZ
55342009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5535
5536 * print.c (print_object): Set escapeflag to 1 when printing
5537 hashtable keys and values.
5538
155a6764
SM
55392009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5540
5541 * lread.c (read_integer): Use doubles (and potentially return a float
5542 number) as we do in string-to-number.
5543 (read1): Use strtol to read integers, signal errors on strtol's
5544 overflow and use floats if strtol's output is too large for
5545 Elisp integers.
5546
877610de
EZ
55472009-08-27 Eli Zaretskii <eliz@gnu.org>
5548
5549 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5550 (make-buildobj-SH): Fix last change.
5551 (SRC): Move to before where it's first used.
5552
ef73e7be
KH
55532009-08-27 Kenichi Handa <handa@m17n.org>
5554
550c8289
KH
5555 * process.c (send_process): Use encode_coding_object instead of
5556 encode_coding_string to perform eol-conversion even if the string
5557 is unibyte.
5558
60afa08d
KH
5559 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5560 character.
5561
ef73e7be 5562 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5563 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5564
7b3a82d7
DN
55652009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5566
5654bf63
DN
5567 * callproc.c (Fcall_process): Remove always true #if.
5568
7b3a82d7
DN
5569 * lisp.h: Replace #if 0 code for checking with text pointing to
5570 the --enable-checking configure flag.
5571
5572 * emacs.c (main): Mention the --enable-profiling configure flag
5573 instead of using CFLAGS.
5574
878bde49
KR
55752009-08-26 Ken Raeburn <raeburn@raeburn.org>
5576
5577 * Makefile.in (buildobj.h): New target.
5578 (doc.o): Depend on it.
5579 (temacs${EXEEXT}): Don't generate buildobj.lst.
5580 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5581 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5582 ($(BLD)/doc.$(O)): Depend on it.
5583 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5584 provided by Eli Zaretskii.)
5585 ($(TEMACS)): Don't generate buildobj.lst.
5586 * doc.c: Include buildobj.h.
5587 (buildobj): New static variable.
5588 (Fsnarf_documentation): Use it, instead of opening and reading
5589 buildobj.lst.
5590
1574224c
MA
55912009-08-25 Michael Albinus <michael.albinus@gmx.de>
5592
5593 * dbusbind.c (Fdbus_call_method)
5594 (Fdbus_call_method_asynchronously): Use English numeric format for
5595 timeout values in doc string.
5596
d9da2f45
KH
55972009-08-25 Kenichi Handa <handa@m17n.org>
5598
ef73e7be
KH
5599 * alloc.c (mark_char_table): New function.
5600 (mark_object): Use mark_char_table for a char-table.
5601
d9da2f45
KH
5602 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5603 (CHAR_TABLE_REF): Use it.
5604
c8edcc01
KR
56052009-08-23 Ken Raeburn <raeburn@raeburn.org>
5606
5607 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5608 before invoking the newly build emacs to check for load-path
5609 shadowing.
5610
7763401b
GM
56112009-08-22 Glenn Morris <rgm@gnu.org>
5612
5613 * Makefile.in (bootstrap_exe): New variable.
5614 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5615 Use ${bootstrap_exe}.
5616
729eadda
EZ
56172009-08-22 Eli Zaretskii <eliz@gnu.org>
5618
5619 * coding.h (encode_coding_string): Don't encode unibyte strings.
5620 (Bug#4047)
5621
eb4c6ace
MA
56222009-08-22 Michael Albinus <michael.albinus@gmx.de>
5623
5624 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5625
5626 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5627 intended as hotfix only.
5628 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5629
36e34d1b
AR
56302009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5631
5632 * nsterm.m (ns_get_color): Update documentation properly for last
5633 change, and clean up loose ends in the code left by it. Fix
5634 longstanding bug with 16-bit hex parsing, and add support for
5635 yet another X11 format (rgb:r/g/b) for compatibility.
5636 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5637 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5638
f983eb8a
SM
56392009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5640
5641 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5642
3f56d3c6
MA
56432009-08-20 Michael Albinus <michael.albinus@gmx.de>
5644
5645 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5646 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5647 (xd_initialize, xd_pending_messages): Check, whether
5648 $DBUS_SESSION_BUS_ADDRESS is set.
5649
fb641d68
YM
56502009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5651
5652 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5653
5654 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5655
cf59a374
GM
56562009-08-20 Glenn Morris <rgm@gnu.org>
5657
5658 * emacs.c (system-type): Doc fix.
5659
1373f3be
SM
56602009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5661
5662 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5663 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5664
058ed861
MA
56652009-08-18 Michael Albinus <michael.albinus@gmx.de>
5666
1373f3be
SM
5667 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5668 New functions.
058ed861
MA
5669 (xd_initialize): Revert change from 2009-08-16.
5670
563a866e 56712009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5672
5673 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5674 font-group vector, return nil.
5fc05db0 5675
e42bdf01
CY
56762009-08-17 Chong Yidong <cyd@stupidchicken.com>
5677
5678 * process.c (status_notify): Don't perform redisplay.
5679 (Fdelete_process, list_processes_1, process_send_signal):
5680 Expliticly perform redisplay.
5681 (wait_reading_process_output): Always check process status, but
5682 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5683
4230ab74
KR
56842009-08-17 Ken Raeburn <raeburn@raeburn.org>
5685
1373f3be 5686 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5687 (XFLOAT_INIT): New macro for storing a float value.
5688 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5689 * fns.c (sxhash): Copy out the value of a float in order to
5690 examine its bytes.
5691 * dbusbind.c (xd_append_arg): Likewise.
5692
4230ab74
KR
5693 * emacs.c (main): Don't call syms_of_data twice.
5694
a0645cdd
MA
56952009-08-16 Michael Albinus <michael.albinus@gmx.de>
5696
5697 * dbusbind.c (xd_initialize): Add connection file descriptor to
5698 input_wait_mask, in order to let select() detect, whether a new
5699 message has been arrived.
ca4f31ea 5700 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5701
485db0ba
MA
57022009-08-15 Michael Albinus <michael.albinus@gmx.de>
5703
1373f3be
SM
5704 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5705 New functions.
485db0ba
MA
5706
5707 * lisp.h (xd_pending_messages): Declare.
5708
5709 * keyboard.c (readable_events): Call xd_pending_messages.
5710
b5b98ff4
CY
57112009-08-15 Chong Yidong <cyd@stupidchicken.com>
5712
1373f3be 5713 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5714
f8354c6e
CY
5715 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5716
b5b98ff4
CY
5717 * buffer.c (set_buffer_internal_1)
5718 (swap_out_buffer_local_variables): Check for unbound local
5719 variables (Bug#4138).
5720
8b9fc636
EZ
57212009-08-14 Eli Zaretskii <eliz@gnu.org>
5722
5723 * process.c (create_pty): Fix last change.
5724
ce959360
CY
57252009-08-13 Chong Yidong <cyd@stupidchicken.com>
5726
5727 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5728 (xbm_load_image): Caller changed.
64b807c9 5729 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5730
c7baf7e9
NR
57312009-08-13 Nick Roberts <nickrob@snap.net.nz>
5732
5733 * process.c (create_pty): New function.
5734 (Fstart_process): Use it to allow Emacs to just associate a pty
5735 with the buffer. See associated change in gdb-mi.el.
5736 (list_processes_1): Deal with no program name.
5737 (start_process_unwind): Use pid == -2 to mean no process.
5738
1ac9108a
SM
57392009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5740
5741 * cmds.c (nonundocount): New global variable.
5742 (keys_of_cmds): Initialize it.
5743 (Fself_insert_command): Use it to combine upto 20 sequential chars
5744 into a single undo entry, just like the Qself_insert_command code in
5745 keyboard.c does.
5746 Call frame_make_pointer_invisible, also like the Qself_insert_command
5747 code in keyboard.c does.
5748 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5749 than its own local replacement for it.
5750
e267324c
KR
57512009-08-10 Ken Raeburn <raeburn@raeburn.org>
5752
1ac9108a 5753 * fns.c (concat): Don't re-set string length to its current value.
77437343 5754
1ac9108a
SM
5755 * coding.h (decode_coding_string, encode_coding_string):
5756 Use SBYTES macro.
f0bed503 5757
1ac9108a 5758 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5759 (doprnt): Merge with doprnt1, discarding lispstrings code.
5760 * lisp.h (doprnt_lisp): Don't declare.
5761
416e006d
JL
57622009-08-07 Juri Linkov <juri@jurta.org>
5763
5764 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5765
6f7d5780
DN
57662009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5767
5768 * print.c (syms_of_print): Undo previous change.
5769
f19a0f5b
TZ
57702009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5771
5772 * lread.c (read1, syms_of_lread): Read hashtables back from the
5773 readable format.
5774
5775 * print.c (print_preprocess, print_object): Print hashtables fully
5776 and readably.
5777 (syms_of_print): Provide 'hashtable-print-readable.
5778
b9173dc2
AR
57792009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5780
5781 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5782 no family set.
5783 (nsfont_open): Handle case when entity has no family.
5784
1586503c
AR
57852009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5786
5787 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5788 element, not a list, for match case.
5789
087048cd
KH
57902009-07-28 Kenichi Handa <handa@m17n.org>
5791
5792 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5793 rigidly.
5794
5795 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5796 font_parse_xlfd. Check font properties more rigidly.
5797
780c2506
DN
57982009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5799
31fd7c5c
JB
5800 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5801 bsd-common.h.
780c2506 5802
a8c0cc18
KH
58032009-07-27 Kenichi Handa <handa@m17n.org>
5804
5805 * xfaces.c (face_with_height): Call font_clear_prop.
5806
4fbe2306
CY
58072009-07-26 Chong Yidong <cyd@stupidchicken.com>
5808
111d9af3
CY
5809 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5810
5811 * xterm.c (x_term_init): Use Qx.
5812
4fbe2306
CY
5813 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5814
1ac9108a 5815 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5816 (ns_get_color): Revert 2009-07-16 change.
5817
beb0b7f9
EZ
58182009-07-25 Eli Zaretskii <eliz@gnu.org>
5819
5820 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5821 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5822
2baf5e76
KR
58232009-07-25 Ken Raeburn <raeburn@raeburn.org>
5824
1ac9108a
SM
5825 * coding.h (decode_coding_string, encode_coding_string):
5826 Use SCHARS macro.
8890e5f5 5827
2baf5e76 5828 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5829 (load_depth): Delete.
2baf5e76
KR
5830 (Qload_in_progress): New variable.
5831 (load_unwind): Don't reference load_depth or load_in_progress.
5832 (Fload): Likewise; specbind Qload_in_progress instead.
5833 (init_lread): Don't initialize load_depth.
5834 (syms_of_lread): Initialize and protect Qload_in_progress.
5835
1395c6f5
AR
58362009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5837
5838 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5839
4e2f36cf
AR
58402009-07-23 Yavor Doganov <yavor@gnu.org>
5841
5842 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5843
5dd9a6f7
AR
58442009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5845
5846 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5847 Bugs 3792, 3720, 2402.
5848 (ns_lookup_indexed_color): Check for bad index.
5849 (ns_index_color): Init unused slot to 0.
5850 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5851 Bug 3714, possibly 3082.
5dd9a6f7 5852
c902b920
JR
58532009-07-22 Jason Rumney <jasonr@gnu.org>
5854
1ac9108a
SM
5855 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5856 Position IME window at cursor (Bug#2570).
c902b920
JR
5857 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5858 (globals_of_w32fns): Dynamically load functions required above.
5859
5860 * w32term.c (w32_draw_window_cursor): Send message to reposition
5861 any IME window.
5862
090101cf
CY
58632009-07-21 Chong Yidong <cyd@stupidchicken.com>
5864
5865 * fileio.c: Revert 2009-07-16 changes.
5866 (Vauto_save_include_big_deletions): New variable.
5867 (Fdo_auto_save): Disable auto-save only if
5868 auto-save-include-big-deletions is nil.
5869
e6583e3d
CY
58702009-07-21 Chong Yidong <cyd@stupidchicken.com>
5871
5872 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5873 the overflowed pixels into account (Bug#3879).
5874
ece435a5
KR
58752009-07-21 Ken Raeburn <raeburn@raeburn.org>
5876
5877 * lread.c (load_depth): New variable.
5878 (Fload, load_unwind, init_lread): Set it to the load recursion
5879 depth; set load_in_progress as a simple boolean based on the
5880 current load_depth. (Bug#3892)
5881
40b2d973
AR
58822009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5883
5884 * nsfont.m (ns_has_attribute): Remove.
5885 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5886
10be7e0d
JL
58872009-07-18 Juri Linkov <juri@jurta.org>
5888
5889 * process.c (Fset_process_query_on_exit_flag): Mention killing
5890 a buffer in docstring.
5891
fa055055
KH
58922009-07-17 Kenichi Handa <handa@m17n.org>
5893
5894 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5895
042f7b69
YM
58962009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5897
5898 * nsfns.m (Fns_set_alpha): Remove function.
5899 (syms_of_nsfns): Don't defsubr it.
5900
5901 * nsterm.m (ns_get_color): Remove incompatible color formats.
5902 (ns_color_to_lisp): Generate #rrggbb color format string.
5903
4be941e3
RS
59042009-07-16 Richard Stallman <rms@gnu.org>
5905
5906 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5907 (Fset_buffer_auto_saved): Handle save_length = -2.
5908
4e6b227d
CY
59092009-07-16 Chong Yidong <cyd@stupidchicken.com>
5910
5911 * xterm.c (Qx_gtk_map_stock): New var.
5912
5913 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5914 of calling intern each time.
5915
a1856973
YM
59162009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5917
5918 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5919 does tiling.
5920
5921 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5922
497e54d8
KH
59232009-07-14 Kenichi Handa <handa@m17n.org>
5924
72d36834
KH
5925 * font.c (font_vconcat_entity_vectors): New function.
5926 (struct font_sort_data): New member font_driver_preference.
5927 (font_compare): Check font_driver_preference.
5928 (font_sort_entities): The format of the first argument changed.
5929 (font_delete_unmatched): Likewise.
5930 (font_list_entities): The return type changed.
5931 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5932 (font_find_for_lface): Adjuste for the above changes.
5933 Don't suppress the checking of C even if the repertory supports it.
5934 (Flist_fonts): Adjust for the above changes.
72d36834 5935
1ac9108a
SM
5936 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5937 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5938 Reject a font who has adstyle property that is different from a
5939 langname derived from registry property.
1ac9108a 5940 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5941
b6046155
EZ
59422009-07-13 Eli Zaretskii <eliz@gnu.org>
5943
5944 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5945 local copy of dirfilename.
5946
fb6b6049
KH
59472009-07-13 Kenichi Handa <handa@m17n.org>
5948
e2402a5e
KH
5949 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5950 against max_char.
5951
fb6b6049
KH
5952 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5953 calling XSYMBOL (sym).
5954
65156807
EZ
59552009-07-11 Eli Zaretskii <eliz@gnu.org>
5956
1ac9108a
SM
5957 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5958 New function.
5959 (directory_files_internal) [WINDOWSNT]:
5960 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5961 the filesystem of the directory is fast or slow.
5962
5963 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5964 file name.
5965 (is_slow_fs): New function.
5966 (stat): Use it to determine whether to issue more system calls to
5967 get accurate file attributes, when w32-get-true-file-attributes is
5968 `local'.
5969
e0ab5fcf
JD
59702009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5971
5972 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5973 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5974 parameter font-parameter as default to the font dialog.
5975
784ceded
KH
59762009-07-10 Kenichi Handa <handa@m17n.org>
5977
5978 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5979
fb8edc0b
EZ
59802009-07-09 Eli Zaretskii <eliz@gnu.org>
5981
1ac9108a 5982 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5983
fb8edc0b
EZ
5984 * w32.c (stat): Treat UNC file names as residing on remote
5985 drives. (Bug#3542)
5986
635c75b1
KH
59872009-07-09 Kenichi Handa <handa@m17n.org>
5988
5989 * fontset.c (fontset_find_font): Fix previous change.
5990
c1d5ce94
MA
59912009-07-08 Michael Albinus <michael.albinus@gmx.de>
5992
5993 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5994 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5995 error flag.
5996
edb61b39
KH
59972009-07-08 Kenichi Handa <handa@m17n.org>
5998
374bf7e4
KH
5999 * fontset.c (fontset_find_font): Fix the logic of handling
6000 charset_matched.
6001 (font_for_char): Delete unused var.
6002 (generate_ascii_font_name): Delete it.
6003
edb61b39
KH
6004 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6005
6006 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6007 (encode_coding_sjis): Fix the code range check.
6008
0f3f018c
CY
60092009-07-07 Chong Yidong <cyd@stupidchicken.com>
6010
6011 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6012 (Fexpand_file_name): Copy string data properly (Bug#3772).
6013
fcaf6f3a
JD
60142009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6015
6016 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6017 first MapNotify.
6018
6809ca75
KH
60192009-07-07 Kenichi Handa <handa@m17n.org>
6020
6021 * character.h (unibyte_has_multibyte_table): Delete extern.
6022 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6023
6024 * charset.c (Fset_charset_priority): Update charset_unibyte.
6025 (syms_of_charset): Initialize charset_unibyte.
6026
6027 * character.c (unibyte_has_multibyte_table): Delete it.
6028 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6029 charset_unibyte.
6030 (multibyte_char_to_unibyte_safe): Likewise.
6031 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6032
1ac9108a 6033 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6034 (x_produce_glyphs): Likewise.
6035
6036 * .gdbinit (xcharset): Fix the treating $arg0.
6037
ad9e2d54
EZ
60382009-07-04 Eli Zaretskii <eliz@gnu.org>
6039
6040 Emulation of `getloadavg' on MS-Windows.
50426a04 6041 * w32.c: Include float.h.
ad9e2d54
EZ
6042 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6043 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6044 (get_native_system_info, get_system_times): New functions.
6045 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6046 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6047 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6048 g_b_init_get_system_times, and num_of_processors.
6049
0a3472c7
JR
60502009-07-03 Jason Rumney <jasonr@gnu.org>
6051
6052 * w32term.c (w32_initialize): Use standard types.
6053
80904120
EZ
60542009-07-03 Eli Zaretskii <eliz@gnu.org>
6055
6056 * dired.c (Ffile_attributes): Decode user and group names by the
6057 locale's encoding. (Bug#3443)
6058
6978862d
DN
60592009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6060
f8d23104
DN
6061 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6062 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6063
6064 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6065
6066 * term.c (init_tty): Remove spurious #ifdef.
6067
6978862d
DN
6068 * m/mips.h: Mention this file is also used for netbsd.
6069 * m/pmax.h: Remove file.
6070
e044e4fc
JD
60712009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6072
6073 * xterm.h (struct x_display_info): Add invisible_cursor.
6074 (struct x_output): Add current_cursor.
6075
6076 * xterm.c (XTtoggle_invisible_pointer): New function.
6077 (x_define_frame_cursor): Don't define cursor if invisible or the
6078 same as before. Set current_cursor.
6079 (x_create_terminal): Set toggle_invisible_pointer_hook.
6080
6081 * xfns.c (make_invisible_cursor): New function.
6082 (x_set_mouse_color): Call make_invisible_cursor.
6083 Set current_cursor.
6084 (x_window): Set current_cursor.
6085
6086 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6087
6088 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6089 inserting a character.
6090 (read_avail_input): Call frame_make_pointer_visible.
6091
6092 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6093 (frame_make_pointer_invisible, frame_make_pointer_visible):
6094 New functions.
e044e4fc
JD
6095 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6096
6097 * frame.h: Declare frame_make_pointer_invisible and
6098 frame_make_pointer_visible.
6099 (struct frame): Add pointer_invisible.
6100
574c8efa
JD
61012009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6102
7b507248
JD
6103 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6104 frame isn't visible.
6105 (xg_frame_resized): If width/height is -1, get size of window
6106 from X server.
6107
6108 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6109 for MapNotify.
6110
835bdaa7 6111 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6112 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6113 (flush_and_sync): Reintroduce.
574c8efa 6114
3f1c6666 61152009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6116
31fd7c5c 6117 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6118
6119 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6120 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6121
6122 * frame.h: Declare Qsticky.
6123
cad9ef74
JD
6124 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6125
6126 * nsfns.m (ns_frame_parm_handlers): Ditto.
6127
6128 * frame.c: Declare Qsticky.
6129 (frame_parms): Add sticky.
6130
6131 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6132
6133 * xterm.h: Declare x_set_sticky.
6134
6135 * xterm.c (x_set_sticky): New function.
6136
69b16610
JD
6137 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6138 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6139 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6140
6141 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6142
6143 * frame.c: Qmaximized is new.
6144 (x_set_frame_parameters): Do not handle fullscreen specially.
6145 Only set width and height if explicitly set.
6146 (x_set_fullscreen): Handle Qmaximized.
6147 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6148 (syms_of_frame): Initialize Qmaximized.
6149
1ac9108a
SM
6150 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6151 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6152
6153 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6154 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6155 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6156 set gravity to NorthWestGravity when USE_GTK.
6157 (set_wm_state): New function.
31fd7c5c 6158 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6159 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6160 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6161 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6162 to x_real_positions and x_fullscreen_adjust.
6163
6164 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6165 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6166 flush_and_sync.
6167 (xg_height_changed): New function.
6168 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6169 and gtk_window_set_policy. Set frame gravity after parsing the
6170 geometry string.
3f1c6666
JD
6171 (xg_update_frame_menubar, free_frame_menubar)
6172 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6173 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6174 Remove calls to xg_frame_set_char_size.
6175
fd503d99
KH
61762009-07-01 Kenichi Handa <handa@m17n.org>
6177
6178 * keyboard.c (decode_keyboard_code): New function.
6179 (tty_read_avail_input): Decode the input bytes if necessary.
6180
1ac9108a
SM
6181 * coding.c (setup_coding_system):
6182 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6183 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6184 use Qno_conversion.
6185
24ed93fb
YM
61862009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6187
6188 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6189
99061dfc
CY
61902009-06-30 Chong Yidong <cyd@stupidchicken.com>
6191
1ac9108a 6192 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6193
ff90fbde
JR
61942009-06-30 Jason Rumney <jasonr@gnu.org>
6195
6196 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6197 is already loaded.
6198 Set user model ID if supported (bug#1849).
6199
5f445726
JM
62002009-06-29 Jim Meyering <meyering@redhat.com>
6201
6202 Remove useless if-before-xfree test.
6203 * nsfont.m (nsfont_close): Remove useless test.
6204 * term.c (delete_tty): Likewise.
6205 * w32.c (system_process_attributes): Likewise.
6206 * w32font.c (w32font_close): Likewise.
6207 * xfaces.c (x_free_gc): Likewise.
6208 * xselect.c (buffer): Likewise.
6209
b9607587
AS
62102009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6211
6212 * process.c (send_process): Keep decoded string in a local
6213 variable and protect it from GC. (Bug#3521)
6214
89ba96f4
EZ
62152009-06-28 Eli Zaretskii <eliz@gnu.org>
6216
6217 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6218 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6219
098a1589
CY
62202009-06-28 Chong Yidong <cyd@stupidchicken.com>
6221
485422be
CY
6222 * xdisp.c (start_display, handle_face_prop)
6223 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6224 (redisplay_window, try_window_id, produce_image_glyph):
6225 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6226
098a1589
CY
6227 * xterm.c (x_update_window_begin, x_new_focus_frame)
6228 (x_scroll_bar_handle_click, handle_one_xevent)
6229 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6230 (x_make_frame_visible, x_make_frame_invisible)
6231 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6232 code chunks that are now obsolete.
6233
78c38319
MA
62342009-06-28 Michael Albinus <michael.albinus@gmx.de>
6235
6236 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6237 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6238 for hours, when optimzation is enabled.
6239 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6240 (xd_read_message): Make them static.
6241
4189ed40
CY
62422009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6243
6244 * term.c (turn_on_face): Allow simultaneously bold and dim
6245 terminal faces (Bug#3530).
6246
cd9b5e16
CY
62472009-06-27 Chong Yidong <cyd@stupidchicken.com>
6248
4e23bedb
CY
6249 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6250
cd9b5e16
CY
6251 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6252 truncation glyphs (Bug#3686).
6253
07cc3c35
GM
62542009-06-27 Glenn Morris <rgm@gnu.org>
6255
6256 * m/pmax.h: Restore file, with only netbsd portions.
6257
31fd7c5c 62582009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6259
cd9b5e16 6260 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6261
42d4a64f
KH
62622009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6263
6264 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6265 the arg FORCE_SYMBOL.
6266
930fe55b 62672009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6268
6269 * fontset.c (fontset_find_font): When a usable rfont_def is found
6270 in a fallback font-group, make it the first element of the group.
6271
57ebc3fd
CY
62722009-06-24 Chong Yidong <cyd@stupidchicken.com>
6273
6274 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6275
f084f942
KH
62762009-06-24 Kenichi Handa <handa@m17n.org>
6277
6278 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6279 set for C.
6280 (fontset_font): Record the availability of a font for C both in
6281 the realized fontsets of the current one and the default one.
6282
2f686c87
DN
62832009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6284
6285 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6286 conditional, it is always defined on AIX.
6287
666e158e
MB
62882009-06-23 Miles Bader <miles@gnu.org>
6289
6290 * window.c (Vrecenter_redisplay): New variable.
6291 (syms_of_window): Initialize it.
6292 (Qtty): New extern declaration.
6293 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6294
c6da7cd2
JM
62952009-06-23 Jim Meyering <meyering@redhat.com>
6296
1ac9108a
SM
6297 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6298 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6299 pointer dereferences are guaranteed to be valid.
c6da7cd2 6300
678dca3d
KH
63012009-06-23 Kenichi Handa <handa@m17n.org>
6302
74d75424
KH
6303 * emacs.c (main): Call init_font ().
6304
6305 * font.h (Vfont_log): Extern it.
6306 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6307
6308 * font.c (font_sort_entities, font_list_entities)
6309 (font_matching_entity, font_open_entity)
6310 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6311 (Vfont_log): Delete static.
6312 (font_log_env_checked): Delete this variable.
6313 (font_add_log): Don't check font_log_env_checked.
6314 (font_deferred_log): Check Vfont_log.
6315 (init_font): New function.
6316
678dca3d
KH
6317 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6318
6319 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6320
6321 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6322
6323 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6324
6325 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6326 (face_for_char): Don't call font_deferred_log here.
6327 (font_for_char): Likewise.
6328
8a668709
CY
63292009-06-22 Chong Yidong <cyd@stupidchicken.com>
6330
9a01ee33
CY
6331 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6332 rather than its background_width for drawing the overline and
6333 underline (Bug#489).
6334
6335 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6336 rather than its background_width for drawing the overline and
6337 underline (Bug#489).
ec7c9926
CY
6338 (xg_default_icon_file): New variable.
6339 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6340 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6341
8a668709
CY
6342 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6343 (load_overlay_strings): Remove externs.
6344 (fast_find_position): Function deleted.
6345 (mouse_face_from_buffer_pos): New function, based on
6346 fast_find_position. Correctly handle before-strings,
6347 display-strings, and after-strings (Bug#1220).
6348 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6349
4d4c02d8
CY
63502009-06-21 Chong Yidong <cyd@stupidchicken.com>
6351
1ac9108a 6352 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6353 (move_it_in_display_line_to, move_it_in_display_line_to)
6354 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6355
70243478
CY
63562009-06-21 Chong Yidong <cyd@stupidchicken.com>
6357
6358 * Branch for 23.1.
6359
13087e59
JR
63602009-06-21 Jason Rumney <jasonr@gnu.org>
6361
6362 * w32term.c (keyboard_codepage): New static variable.
6363 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6364 (w32_read_socket) [WM_CHAR]: Use it to decode character
6365 input (bug#3237).
6366 (w32_initialize): Initialize it.
6367 (codepage_for_locale): New function.
6368
4735b74e
KR
63692009-06-20 Ken Raeburn <raeburn@raeburn.org>
6370
6371 * process.c (status_message): Pass Faset index argument as a lisp
6372 object, so as to work with USE_LISP_UNION_TYPE.
6373
0e727afa
YM
63742009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6375
6376 * coding.c (Ffind_coding_systems_region_internal):
6377 Cache checked characters.
6378
cf299835
KH
63792009-06-18 Kenichi Handa <handa@m17n.org>
6380
1ac9108a 6381 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6382
90f20d94
AS
63832009-06-18 Andreas Schwab <aschwab@redhat.com>
6384
6385 * xdisp.c (redisplay_internal): Check that the frame is still
6386 live after redisplay of its windows.
6387 (redisplay_windows): Check that the window is still live.
6388
7f1faf1c
KH
63892009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6390
6391 * coding.c (detect_coding_utf_16): Fix previous change.
6392
cc13543e
KH
63932009-06-16 Kenichi Handa <handa@m17n.org>
6394
6395 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6396 UTF-16 by checking the dispersion of Eth and Oth bytes.
6397
977b85f4
AS
63982009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6399
6400 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6401
66bd43d1
KH
64022009-06-15 Kenichi Handa <handa@m17n.org>
6403
6404 * process.c (status_message): Fix previous change. Be sure to
6405 decode a localized string.
6406
cb5ca9c5
YM
64072009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6408
6409 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6410 add comment explaining why.
6411
ec7709ba 64122009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6413
ec7709ba 6414 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6415
4b7f335c
AR
64162009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6417
6418 * nsfont.m (ns_attribute_value): Remove.
6419 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6420 (ns_has_attribute): Shrink the normal range.
6421 (ns_findfonts): Don't worry about requested spec in determining
6422 need for synthItal.
e41820ee 6423 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6424
73b26103
SZ
64252009-06-14 Seiji Zenitani <zenitani@mac.com>
6426
6427 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6428
5753e4da
KH
64292009-06-11 Kenichi Handa <handa@m17n.org>
6430
6431 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6432 overhang for the static composition case.
6433
3561b671
KH
64342009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6435
5753e4da
KH
6436 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6437 overhang for the automatic composition case.
6438
3561b671
KH
6439 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6440 composition case.
6441
852bbd41
CY
64422009-06-10 Chong Yidong <cyd@stupidchicken.com>
6443
6444 * xdisp.c (get_next_display_element): When handling wrap-prefix
6445 and line-prefix, treat \n as a control character (bug#3502).
6446
9903d1e6
KH
64472009-06-10 Kenichi Handa <handa@m17n.org>
6448
6449 * font.c (font_parse_family_registry): Fix for one-char foundry.
6450 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6451
0bcbaaaa
CY
64522009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6453
6454 * process.c (status_message): Fix handling of multibyte signal
6455 string (Bug#3499).
6456
40aa3f13
JM
64572009-06-09 Jim Meyering <meyering@redhat.com>
6458
1f80c7e2
CY
6459 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6460 color name is missing.
40aa3f13 6461
72d51285
KH
64622009-06-09 Kenichi Handa <handa@m17n.org>
6463
6464 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6465 FROM-CODE and TO-CODE are codepoints of CHARSET.
6466
c1d04d84
AR
64672009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6468
6469 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6470
64712009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6472
6473 Changes to support :script/:lang/:otf in NS font driver.
6474 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6475 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6476 indicate not part of font driver interface, and change callers.
6477 (ns_get_family): Remove pointless null check.
6478 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6479 ns_spec_to_descriptor, ns_descriptor_to_entity.
6480 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6481 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6482 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6483 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6484 (ns_get_req_script, ns_accumulate_script_ranges)
6485 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6486 New functions.
6487 (nsfont_list, nsfont_match): Use ns_findfonts.
6488 (nsfont_open): Use font descriptor instead of traits.
6489 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6490 (dump_glyphstring): Rename to ns_dump_glyphstring.
6491
c7eb9816
AR
6492 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6493
c1d04d84
AR
6494 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6495
6496 * fontset.c (fontset_from_font): Remove NS-specific code.
6497
ec7709ba 64982009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6499
6500 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6501 nonactive windows.
6502
31fd7c5c 65032009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6504
1ac9108a 6505 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6506
68852c13 65072009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6508
6509 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6510
6756cd1d
CY
65112009-06-07 Chong Yidong <cyd@stupidchicken.com>
6512
6513 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6514 account for the overflowing of newlines into the last glyph on the
6515 display line (Bug#3482).
6516
28bf482a
DR
65172009-06-05 David Reitter <david.reitter@gmail.com>
6518
ec7709ba
JB
6519 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6520 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6521 Fns_selection_exists_p, Fns_selection_owner_p.
6522
fdb55376
JR
65232009-06-03 Jason Rumney <jasonr@gnu.org>
6524
6525 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6526 available. (Bug#3379)
6527
05129fbe
KH
65282009-05-29 Kenichi Handa <handa@m17n.org>
6529
1ac9108a
SM
6530 * coding.c (get_translation_table):
6531 Check Venable_character_translation.
05129fbe 6532
ec7709ba 65332009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6534
ec7709ba
JB
6535 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6536 (x_make_frame_visible): Move frame to front rather than calling
15891144 6537 ns_raise_frame().
ec7709ba 6538 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6539 isn't key window.
ec7709ba 6540 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6541 drawRect may be called by NSView even if the frame is hidden.
6542
ec7709ba
JB
6543 * nsfns.m (Fx_create_frame): Follow other ports in
6544 determining visibility; default to t. Ensure async_visible is set.
15891144 6545
21f73755
EZ
65462009-05-23 Eli Zaretskii <eliz@gnu.org>
6547
6548 * dired.c (Ffile_attributes): Doc fix.
6549
34001e41
CY
65502009-05-22 Chong Yidong <cyd@stupidchicken.com>
6551
6552 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6553
46306a17
SM
65542009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6555
6556 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6557 and xfont_scratch_props.
6558 (syms_of_xfont): Do it here instead.
6559 (xfont_find_ccl_program): Delete, unused.
6560 (xfont_open): Delete unused var `i'.
6561
ef6e0694
KH
65622009-05-21 Kenichi Handa <handa@m17n.org>
6563
6564 * fontset.c (Qlatin): Don't make it static.
6565
46306a17
SM
6566 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6567 New functions.
ef6e0694
KH
6568 (xfont_scripts_cache, xfont_scratch_props): New variables.
6569 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6570 (xfont_list_pattern): Argument changed. Callers changed.
6571 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6572 (xfont_list): Don't reject a font spec with :script property.
6573 (xfont_has_char): Fix setting of encoding.
6574 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6575 xfont_scratch_props.
6576
65772009-05-19 Kenichi Handa <handa@m17n.org>
6578
46306a17 6579 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6580 Callers changed.
6581
65822009-05-18 Kenichi Handa <handa@m17n.org>
6583
6584 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6585
ac71ced7
SM
65862009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6587
6588 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6589 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6590
1c6d1051
YM
65912009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6592
6593 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6594 (x_delete_terminal): Dissociate resource database from display and
6595 then call XrmDestroyDatabase before closing display.
6596
9b9b779c
AR
65972009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6598
6599 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6600 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6601 whether selected frame is viable before raising it (based on patch
6602 by David Reitter), and improve commentary.
6603 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6604
cccd42d5
KH
66052009-05-15 Kenichi Handa <handa@m17n.org>
6606
6607 * font.c (Ffont_spec): Check arguments.
6608
337fbd17
CY
66092009-05-14 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6612 weight when testing attributes (Bug#3282).
6613
47a6002f
JD
66142009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6615
6616 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6617 what we expect to get in the next ConfigureNotify event.
6618
9cb363db
YM
6619 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6620 before Xft one (Bug#1696).
6621
b9126609
CY
66222009-05-07 David Reitter <david.reitter@gmail.com>
6623
6624 * nsfns.m (Fx_display_planes): Compute bitplanes using
6625 NSBitsPerPixelFromDepth (Bug#3207).
6626
27a69fd9
CY
66272009-05-10 Chong Yidong <cyd@stupidchicken.com>
6628
6629 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6630
00f37552
TTN
66312009-05-10 Ulrich Mueller <ulm@gentoo.org>
6632
6633 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6634
2d82a920
DR
66352009-05-07 David Reitter <david.reitter@gmail.com>
6636
ec7709ba
JB
6637 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6638 Respect mouse face background.
2d82a920 6639
46b0d52d
DR
66402009-05-07 David Reitter <david.reitter@gmail.com>
6641
ec7709ba
JB
6642 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6643 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6644 in ns_update_begin and ns_update_end.
6645
ce1b23bb
SM
66462009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6647
5996e1b7
SM
6648 * nsfns.m (ns_get_screen): Rewrite.
6649 Don't presume selected-frame is of type `ns'.
6650
ba98e3a0
SM
6651 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6652 all drivers.
6653
ce1b23bb
SM
6654 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6655
bcda200f
YM
66562009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6657
6658 * keyboard.h (add_user_signal): Fix typo in extern.
6659
6660 * lisp.h (add_user_signal): Remove extern.
6661
6662 * unexelf.c (unexec): Consider a section to precede the .bss section
6663 if its addresses overlap that of .bss.
6664 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6665 instead of dumping process.
6666
864660a2
SM
66672009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6668
6669 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6670
50da4e56
SM
66712009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6672
6673 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6674
51520a1a
DN
66752009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6676
6677 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6678 any statements.
6679
409ea3a1
AS
66802009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6681
59c4c60f
AS
6682 * process.c (read_process_output): Make sure the current buffer is
6683 always restored.
6684
409ea3a1
AS
6685 * coding.c (record_conversion_result): Don't modify
6686 Vlast_code_conversion_error for successful result.
6687 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6688
56f00ed2
KH
66892009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6690
6691 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6692 (load_charset_map): Remove unnecessary code.
56f00ed2 6693
4491c9d2
DR
66942009-04-30 David Reitter <david.reitter@gmail.com>
6695
35f5b128 6696 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6697 through f24.
6698
6970f632
CY
66992009-04-30 Chong Yidong <cyd@stupidchicken.com>
6700
6701 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6702
6703 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6704 face_at_buffer_position.
6705 (face_before_or_after_it_pos, get_next_display_element)
6706 (note_mouse_highlight): Update face_at_buffer_position call.
6707
6708 * term.c (term_mouse_highlight):
6709 * msdos.c (IT_note_mouse_highlight):
6710 * fontset.c (Finternal_char_font):
35f5b128 6711 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6712
6713 * dispextern.h (face_at_buffer_position): Update prototype.
6714
0c616f63
KH
67152009-04-30 Kenichi Handa <handa@m17n.org>
6716
35f5b128 6717 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6718
ad3aaf33
AS
67192009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6720
6721 * callproc.c (Fcall_process): Fix GC protection. Make sure
6722 current buffer is always restored.
6723
c3c963a0
YM
67242009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6725
6726 * atimer.c (init_atimer): Also clear stopped_atimers.
6727
6728 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6729
7e3386cb
YM
6730 * process.c (create_process): Clean up merger residues of
6731 2008-07-17 change.
6732
91f68422
CY
67332009-04-29 Ulrich Mueller <ulm@gentoo.org>
6734
6735 * lread.c (Vread_circle): New variable.
6736 (read1): Disable recursive read if Vread_circle is nil.
6737
24b34550
KH
67382009-04-29 Kenichi Handa <handa@m17n.org>
6739
6740 * fontset.h (set_default_ascii_font): Delete extern.
6741
6742 * fontset.c (set_default_ascii_font): Delete this unused function.
6743
6744 * frame.c (x_set_font): When ARG is a font-object, check if the
6745 font-object matches with the ASCII font-spec of the frame's
9c358bda 6746 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6747
77bf07e1
AS
67482009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6749
6750 * fns.c (Flocale_info): Protect vector from GC during decoding.
6751
6752 * process.c (Fstart_process): Protect argv strings from GC during
6753 encoding.
6754
2c55aacf
AS
67552009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6756
6757 * sysdep.c: Include <ctype.h>.
6758
b892d3c9
DR
67592009-04-27 David Reitter <david.reitter@gmail.com>
6760
35f5b128 6761 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6762 Remove commented-out code.
6763
9d0644c4
JB
67642009-04-26 Johan Bockgård <bojohan@gnu.org>
6765
6766 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6767
b7053016
JR
67682009-04-25 Jason Rumney <jasonr@gnu.org>
6769
6770 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6771
4e8231f3
YM
67722009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6773
6774 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6775 Swap bytes in short integer if fringe bitmap width > 8.
6776
493dcf2c
KH
67772009-04-23 Kenichi Handa <handa@m17n.org>
6778
6779 * xfaces.c (Fx_list_fonts): If a font size is specified in
6780 PATTERN, set it in returned scalable fonts.
6781
401e9e57
CY
67822009-04-22 Chong Yidong <cyd@stupidchicken.com>
6783
708e05dc
CY
6784 * keyboard.c (Fset_input_meta_mode): Doc fix.
6785
6786 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6787
1ac9108a 6788 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6789
6790 * coding.c (Fterminal_coding_system): Doc fix.
6791
6792 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6793 (Fx_display_pixel_height, Fx_display_planes)
6794 (Fx_display_color_cells, Fx_server_max_request_size)
6795 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6796 (Fx_display_mm_height, Fx_display_mm_width)
6797 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6798 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6799 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6800 (check_x_display_info): Handle terminal objects instead of
6801 terminal ids.
6802
401e9e57
CY
6803 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6804 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6805 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6806 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6807
df80c7f0
KH
68082009-04-21 Kenichi Handa <handa@m17n.org>
6809
5a8f12af 6810 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6811 (font_score): Check AVGWIDTH too.
908567ef 6812
df80c7f0
KH
6813 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6814 worst case.
1ac9108a
SM
6815 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6816 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6817
705af33f
JR
68182009-04-19 Jason Rumney <jasonr@gnu.org>
6819
6820 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6821 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6822
6823 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6824 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6825 get_phys_cursor_geometry.
6826
b71ac3dd 6827 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6828 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6829 using get_phys_cursor_geometry.
6830
6831 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6832 correctly calculated.
6833
dc2933eb
JD
68342009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6835
1ac9108a
SM
6836 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6837 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6838 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6839 is deprecated.
6840
973e7849
AS
68412009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6842
6843 * font.c (font_put_frame_data): Use xfree instead of free.
6844
314d66f4
JB
68452009-04-17 Juanma Barranquero <lekktu@gmail.com>
6846
6847 * w32font.c (Qja, Qko): Remove declarations.
6848 (syms_of_w32font): Don't DEFSYM them.
6849
cf702558
CY
68502009-04-17 Chong Yidong <cyd@stupidchicken.com>
6851
6852 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6853
6854 * font.h (Qja, Qko): Extern them.
6855
6856 * ftfont.c (Qja, Qko): Remove declarations.
6857
6858 * xfont.c (Qja, Qko): Remove declarations.
6859
b50504f5
KH
68602009-04-17 Kenichi Handa <handa@m17n.org>
6861
bde25748
KH
6862 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6863 string from a vector to handle Latin-1 characters correctly.
6864
b50504f5
KH
6865 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6866 entity even if the cache hits.
6867
f4646fff
AS
68682009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6869
6870 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6871 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6872
e7deaab0
AS
6873 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6874 * lisp.h: Adjust prototypes.
6875
0a0e7d49
CY
68762009-04-16 Chong Yidong <cyd@stupidchicken.com>
6877
6878 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6879 change (Bug#3003).
6880
3c908a57
KH
68812009-04-16 Kenichi Handa <handa@m17n.org>
6882
1ac9108a 6883 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6884
6885 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6886 adstyle.
6887
6888 * ftfont.c (Qja, Qko): Don't make them static.
6889 (enum ftfont_cache_for): New enum.
6890 (fc_charset_table): Undo the previous change.
6891 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6892 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6893 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6894 non-scarable font, try to get AVERAGE_WIDTH.
6895 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6896 Change ft_face_cache from a list of a hash-table. Don't check
6897 `ja' and `ko' adstyle here.
6898 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6899 FTFONT_CACHE_FOR_CHARET.
6900 (ftfont_get_charset): Undo the previous change.
1ac9108a 6901 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6902 (ftfont_close): Likewise.
6903 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6904
6905 * font.c (font_sort_entites): Change the meaning of the arg
6906 BEST-ONLY. Don't optimize for VEC of lenght 1.
6907 (font_select_entity): Just return the value of font_sort_entites.
6908
6909 * xfaces.c (merge_face_vectors): Reflect font properties in
6910 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6911 font_clear_prop if a face attribute doesn't change.
6912
3c908a57
KH
6913 * charset.h (charset_ksc5601): Extern it.
6914
6915 * charset.c (charset_ksc5601): New variable.
6916 (Fdefine_charset_internal): Set charset_ksc5601.
6917 (init_charset_once): Initialize charset_ksc5601 to -1.
6918
d65859c3
DN
69192009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6920
6921 * fileio.c (history_delete_duplicates): Remove unused declaration.
6922
6923 * callint.c (history_delete_duplicates): New declaration.
6924 (Fcall_interactively): Remove command history duplicates when
6925 history_delete_duplicates is true.
6926
3ba010e5
EZ
69272009-04-14 Eli Zaretskii <eliz@gnu.org>
6928
6929 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6930
06f19b91
KH
69312009-04-14 Kenichi Handa <handa@m17n.org>
6932
6933 * font.c (Ffont_info): Fix docstring. Fix the second element of
6934 the returned value (bug#2949).
6935
2cce8bfc
CY
69362009-04-14 Chong Yidong <cyd@stupidchicken.com>
6937
6938 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6939
d156542d
KH
69402009-04-14 Kenichi Handa <handa@m17n.org>
6941
6942 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6943 encoding charset is ascii_compatible.
6944
6945 * charset.c (Fdefine_charset_internal): Make charset
6946 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6947 code_offset is 0, and covers all ASCII characters.
6948
86fa089e
SM
69492009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6950
6951 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6952 (ns_string_to_pasteboard_internal):
6953 * nsmenu.m (process_dialog):
6954 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6955 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6956 * lisp.h (Fx_load_color_file): Declare.
6957
a8a3728b
KH
69582009-04-13 Kenichi Handa <handa@m17n.org>
6959
1ac9108a 6960 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6961 (font_select_entity): Suppress the code to optimize for the same
6962 kind of fonts.
6963 (font_load_for_lface): Get a font that supports at least ASCII
6964 characters.
6965
6966 * ftfont.c (Qja, Qko): New variables.
6967 (fc_charset_table): Delete uniquifier data for iso8859-1.
6968 (ftfont_get_latin1_charset): New function.
6969 (get_adstyle_property): New function.
6970 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6971 bitmap fonts.
6972 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6973 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6974 `ko' or `ja'.
6975 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6976 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6977 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6978 property.
6979 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6980 (syms_of_ftfont): DEFSYM Qja and Qko.
6981
483670b5
KH
69822009-04-09 Kenichi Handa <handa@m17n.org>
6983
12b55765
KH
6984 * charset.c (map_charset_chars): For a charset of `superset'
6985 method, fix calculation of code range.
6986
483670b5
KH
6987 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6988 from the list of extra properties.
6989 (font_clear_prop): Be sure to delete `:name' font property.
6990
57d3b93b
KH
69912009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6992
b4b2c2ca
YM
6993 * dispnew.c (redraw_overlapping_rows): Fix detection of
6994 overlapping for topmost and bottommost rows.
6995
1ac9108a 6996 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6997
472c3609
JR
69982009-04-06 Jason Rumney <jasonr@gnu.org>
6999
7000 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7001
ab193662
KH
70022009-04-06 Kenichi Handa <handa@m17n.org>
7003
7004 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7005
7006 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7007
0c26f026
KH
70082009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7009
7010 * ftfont.c (ftfont_open): Fix checking of the return value of
7011 FT_Load_Char. Fix setting font->underline_thickness.
7012
e173bbce
CY
70132009-04-04 Chong Yidong <cyd@stupidchicken.com>
7014
7015 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7016 (Fterminal_parameters, Fterminal_parameter)
7017 (Fset_terminal_parameter): In doc string, refer to terminal
7018 objects rather than terminal ids.
7019
693a2698
EZ
70202009-04-04 Eli Zaretskii <eliz@gnu.org>
7021
7022 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7023 ret_lim_data. (Bug#2867)
7024
d5221487
CY
70252009-04-03 Chong Yidong <cyd@stupidchicken.com>
7026
7027 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7028 so they don't get wider than the window, matching 2006-01-23
7029 change to the partner function in xdisp.c (Bug#2800).
7030
223509a3
KH
70312009-04-03 Kenichi Handa <handa@m17n.org>
7032
7033 * print.c (print_object): Make each lowest sub_char_table start a
7034 new line (Bug#2866).
7035
74fcd0b1
KH
70362009-04-02 Kenichi Handa <handa@m17n.org>
7037
7038 * fontset.c (fontset_font): Record no-font when a fontset
7039 explicitly tells not to try another font-specs.
7040
c542407d
SM
70412009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7042
7043 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7044
e3869731
KH
70452009-03-30 Kenichi Handa <handa@m17n.org>
7046
d8d2f142
KH
7047 * fontset.c (fontset_from_font): Specify only registry in a
7048 font-spec for all characters supported by that registry.
7049
e3869731
KH
7050 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7051 even if HAVE_M17N_FLT is not defined.
7052
5da5f805
CY
70532009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7054
7055 * ftfont.c: Conditionalize prototyping and use of
7056 ftfont_variation_glyphs.
7057
ab226c50
SM
70582009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7059
9628fed7
SM
7060 * frame.c (delete_frame): Work around compiler bug.
7061
7062 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7063 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7064 Some more EMACS_INT.
7065 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7066
7067 * xdisp.c (dump_glyph): Fix typo.
7068
ae19ba7c
SM
7069 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7070 (adjust_markers_gap_motion, adjust_markers_for_delete)
7071 (adjust_markers_for_insert, adjust_point)
7072 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7073 (make_gap, copy_text, count_size_as_multibyte, insert)
7074 (insert_and_inherit, insert_before_markers)
7075 (insert_before_markers_and_inherit, insert_1)
7076 (count_combining_before, count_combining_after, insert_1_both)
7077 (insert_from_string, insert_from_string_before_markers)
7078 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7079 (insert_from_buffer_1, adjust_after_replace)
7080 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7081 (replace_range_2, del_range, del_range_1, del_range_byte)
7082 (del_range_both, del_range_2, modify_region)
7083 (prepare_to_modify_buffer, signal_before_change)
7084 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7085 for buffer positions and sizes.
7086 * lisp.h: Adjust prototypes accordingly.
7087
7088 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7089 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7090 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7091
ab226c50
SM
7092 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7093
46dfb8fb
JD
70942009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7095
7096 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7097 lines and columns so we keep the same pixel height and width.
7098
7099 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7100 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7101 (x_handle_net_wm_state): New function to update frame parameter
7102 fullscreen.
7103 (x_term_init): Initialize atoms for _NET_WM_STATE.
7104
7105 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7106
d347e494
SM
71072009-03-27 Kevin Ryde <user42@zip.com.au>
7108
7109 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7110 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7111 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7112 (Fgpm_mouse_stop): Pass that new parameter.
7113 * termhooks.h (close_gpm): Adjust prototype.
7114
84db11d6
SM
71152009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7116
c95a5008
SM
7117 * lisp.h (Fx_focus_frame): Declare.
7118
84db11d6
SM
7119 * callint.c (Fcall_interactively): For '^' just delegate the work to
7120 handle-shift-selection.
7121 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7122
0a1958d6
CY
71232009-03-24 Chong Yidong <cyd@stupidchicken.com>
7124
0bfdff23
CY
7125 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7126
0a1958d6
CY
7127 * data.c (Qinteractive_form): New variable.
7128 (Finteractive_form): Use it.
7129
7130 * eval.c (Fcommandp): Use Qinteractive_form.
7131
58aec0d6
JR
71322009-03-24 Jason Rumney <jasonr@gnu.org>
7133
7134 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7135 Calculate total size precisely. Decode environment variables
7136 before substituting. (Bug#38)
7137
553dd618
KH
71382009-03-24 Kenichi Handa <handa@m17n.org>
7139
7140 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7141 encoding (Bug#2722).
553dd618 7142
c39ea606
JD
71432009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7144
7145 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7146 that gdpy is set.
7147
bc9b2b5e
AM
71482009-03-22 Alan Mackenzie <acm@muc.de>
7149
7150 * callint.c (Finteractive): Clarify the doc string - even
7151 promptless elements need \n separators.
7152
9f995a76
JR
71532009-03-22 Jason Rumney <jasonr@gnu.org>
7154
7155 * w32term.c (syms_of_w32term): Doc fix for
7156 x-use-underline-position-properties.
7157
22749e9a
EZ
71582009-03-21 Eli Zaretskii <eliz@gnu.org>
7159
7160 * w32.c (getpwuid): Change argument type to unsigned.
7161 (struct w32_id): Change type of `rid' member to unsigned.
7162 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7163 argument ID to unsigned. All callers changed.
7164 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7165
e00553bf
EZ
71662009-03-20 Eli Zaretskii <eliz@gnu.org>
7167
7168 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7169 negative, produce a float value.
7170
7171 * dired.c (make_uid, make_gid): New functions.
7172 (Ffile_attributes): Use them to avoid negative UID and GID.
7173
f761d6b6
JB
71742009-03-20 Juanma Barranquero <lekktu@gmail.com>
7175
7176 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7177 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7178 Fix typos in docstrings.
7179
d507f8d7
KH
71802009-03-19 Kenichi Handa <handa@m17n.org>
7181
7182 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7183 changed, use font_load_for_lface to get a new font object.
7184 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7185
7186 * frame.c (x_set_font): Handle the case that ARG is a cons.
7187
c68845e0
GM
71882009-03-19 Glenn Morris <rgm@gnu.org>
7189
7190 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7191
bfa49dd1
CY
71922009-03-19 Chong Yidong <cyd@stupidchicken.com>
7193
7194 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7195
8458d4c1
KH
71962009-03-19 Kenichi Handa <handa@m17n.org>
7197
7198 * charset.c (load_charset_map_from_file): When a mapfile can't be
7199 loaded, signal an error.
7200
78e7d1fe
EZ
72012009-03-18 Eli Zaretskii <eliz@gnu.org>
7202
7203 * dired.c (Ffile_attributes): Make sure UID and GID are always
7204 positive, even if the value is too large for a positive EMACS_INT.
7205 Doc fix.
7206
7207 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7208
5da9fdfa
YM
72092009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7210
7211 * xmenu.c (xdialog_show): Move Fredisplay call ...
7212 (Fx_popup_dialog): ... here.
7213
7519c40d
SM
72142009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7215
7216 * dired.c (file_name_completion): Disable the first optimization just
7217 installed, since it is not implemented correctly.
7218
2cd298e2
SM
72192009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7220
7221 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7222 only if the entry can affect bestmatch.
2cd298e2
SM
7223 Stop the search early, as Ftry_completion already does.
7224
48d37adf
CY
72252009-03-17 Chong Yidong <cyd@stupidchicken.com>
7226
e10c9c93 7227 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7228
9286b16a
CY
72292009-03-15 Chong Yidong <cyd@stupidchicken.com>
7230
7231 * keyboard.c (parse_menu_item): Don't display remappings as menu
7232 equivalent bindings (Bug#788).
7233
f7b146dc
JR
72342009-03-15 Jason Rumney <jasonr@gnu.org>
7235
7236 * w32term.h (WM_EMACS_PAINT): New message.
7237 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7238 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7239 before passing to lisp thread. (Bug#950)
7240
f761d6b6 72412009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7242
d93f9575
CY
7243 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7244 variable as it was never reset.
7245 (ns_term_init): Remove initialization of Lisp-settable defaults
7246 and ns_expand_space.
7247 (-setPanelFromDefaultValues): Remove ns_expand_space.
7248 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7249 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7250 i.e. no additional spacing, similar to Carbon port.
7251
d93f9575
CY
7252 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7253 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7254
305018ec
JD
72552009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7256
7257 * sound.c (alsa_configure): Remove call to deprecated
7258 snd_pcm_sw_params_set_xfer_align.
7259
f761d6b6 72602009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7261
7262 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7263 after clicking in a detached tool bar.
7264 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7265
46e722a9
SM
72662009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7267
348db3dd
SM
7268 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7269 int/Lisp_Object mixup).
46e722a9 7270
a3d16f39
KH
72712009-03-13 Kenichi Handa <handa@m17n.org>
7272
7273 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7274 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7275 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7276 (set_fontset_font): Change ARG to a vector. Handle range_list in
7277 ARG correctly.
7278 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7279 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7280 the above change.
7281 (fontset_from_font): Fix previous change.
fe24f56a 7282 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7283 entry. If FONTSET is the default fontset, don't set the extra
7284 slot of the returning char-table.
7285
b066e6b6
JB
72862009-03-12 Juanma Barranquero <lekktu@gmail.com>
7287
7288 * nsfns.m (Fx_close_connection): Doc fix.
7289 (Fns_do_applescript): Reflow docstring.
7290 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7291 (Fx_display_pixel_width, Fx_display_pixel_height)
7292 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7293 Fix typos in docstrings.
7294 (Fns_set_alpha): Fix typos in error messages.
7295
d472514e 72962009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7297
d472514e 7298 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7299 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7300 were used for such events.
7301
d472514e
JB
7302 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7303 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7304
d472514e 7305 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7306 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7307
fb930676
KH
73082009-03-11 Kenichi Handa <handa@m17n.org>
7309
ff85581a
KH
7310 * font.h (font_open_by_spec): Extern it.
7311
c50b7e98
KH
7312 * font.c (font_open_by_spec): New function.
7313 (font_open_by_name): Use font_open_by_spec.
7314
fb930676
KH
7315 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7316 fontset of the frame.
7317
7318 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7319 modify the default font of frames that use this fontset.
7320 (num_auto_fontsets): New variable.
7321 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7322 name. Be sure to set FONTSET_ASCII to the correct font name.
7323 (update_auto_fontset_alist): New function.
7324
df4e8455
JB
73252009-03-11 Juanma Barranquero <lekktu@gmail.com>
7326
7327 * makefile.w32-in: Update dependencies.
7328
0a375797
AR
73292009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7330
7331 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7332
61313fa3
SM
73332009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7334
7335 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7336
b55103fb
CY
73372009-03-10 Chong Yidong <cyd@stupidchicken.com>
7338
7339 * lread.c (Feval_buffer): Doc fix.
7340
dde2559c
KH
73412009-03-09 Kenichi Handa <handa@m17n.org>
7342
7343 * charset.c (Qfile_name_handler_alist): Extern it.
7344 (load_charset_map_from_file): Temporarily bind
7345 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7346
df4e8455 73472009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7348
47f588bb
GM
7349 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7350 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7351
4ddf94bd
AR
73522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7353
4c9bdfc2
AR
7354 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7355 (x_set_window_size): Change back to calculated method of setting
7356 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7357 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7358 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7359
fe41ae9e
AR
7360 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7361
4c9bdfc2
AR
7362 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7363 accelerator in parens under GNUstep.
7364
825d0875
KH
73652009-03-06 Kenichi Handa <handa@m17n.org>
7366
7367 These changes are to detect incorrect composition sequence without
f3b3be74 7368 looking ahead the source. (Bug#2370)
825d0875
KH
7369
7370 * coding.h: Include "composite.h".
7371 (enum compisition_state): New enum.
7372 (struct compisition_status): New struct.
7373 (struct iso_2022_spec): New member cmp_status.
7374 (struct emacs_mule_spec): New struct.
7375 (struct coding_system): New members ctext_extended_segment_len and
7376 embedded_utf_8. Change the union member
7377 spec.emacs_mule_full_support to spec.emacs_mule.
7378
7379 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7380 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7381 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7382 (ADD_COMPOSITION_DATA): New arg nbytes.
7383 (emacs_mule_char): New arg cmp_status.
7384 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7385 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7386 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7387 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7388 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7389 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7390 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7391 (EMACS_MULE_COMPOSITION_END): New macro.
7392 (emacs_mule_finish_composition): New function.
7393 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7394 (decode_coding_emacs_mule): Avoid long looking ahead while
7395 handling composition.
7396 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7397 (ENCODE_COMPOSITION_RULE): New macro.
7398 (finish_composition): New function.
7399 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7400 (DECODE_COMPOSITION_START): New implementation.
7401 (DECODE_COMPOSITION_END): Likewise.
7402 (STORE_COMPOSITION_RULE): New macro.
7403 (decode_coding_iso_2022): Avoid long looking ahead while handling
7404 composition, CTEXT extended segment, and embedded UTF-8.
7405 (setup_coding_system): For a coding of type iso-2022, reset
7406 CODING_ISO_EXTSEGMENT_LEN (coding) and
7407 CODING_ISO_EMBEDDED_UTF_8 (coding).
7408 (get_translation): Delete arguments last_block, from_nchars,
7409 to_nchars. Callers changed.
7410 (produce_chars): Don't modify charbuf. Adjusted for the change of
7411 get_translation.
98a326f7 7412 (produce_composition): Adjust for the new annotation sequence.
825d0875 7413 (handle_composition_annotation): Likewise.
98a326f7 7414 (consume_chars): Adjust for the change of get_translation.
825d0875 7415
ccbc4452
AR
74162009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7417
4ddf94bd 7418 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7419
988a7ddb
KH
74202009-03-05 Kenichi Handa <handa@m17n.org>
7421
7422 * font.c (font_select_entity): New function.
7423 (font_find_for_lface): Use font_select_entity to select a font.
7424
7425 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7426 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7427 font with C restriction.
7428
98a326f7 74292009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7430
be1bce46 7431 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7432
10ea2b82
JR
74332009-03-04 Jason Rumney <jasonr@gnu.org>
7434
2c93b248 7435 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7436 characters that have already been read. (Bug#2569)
2c93b248 7437
10ea2b82
JR
7438 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7439 Log an error message if check_image_size failed.
7440 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7441 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7442
71a0c011
EZ
74432009-03-02 Eli Zaretskii <eliz@gnu.org>
7444
7445 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7446 when decoding process output.
7447
2f63bba8
RS
74482009-03-01 Richard M Stallman <rms@gnu.org>
7449
7450 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7451
7452 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7453
0a9564cb
EZ
74542009-02-28 Eli Zaretskii <eliz@gnu.org>
7455
7456 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7457 (decode_coding_emacs_mule, decode_coding_iso_2022)
7458 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7459 (decode_coding_raw_text, decode_coding_charset)
7460 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7461 Honor inhibit-eol-conversion. (Bug #2186)
7462
449148b3
JR
74632009-02-28 Jason Rumney <jasonr@gnu.org>
7464
7465 * coding.c (detect_coding_charset): If not checking latin extra,
7466 fail on characters between 0x80 and 0xA0. (Bug#2354)
7467
a4aee864
EZ
74682009-02-28 Eli Zaretskii <eliz@gnu.org>
7469
7470 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7471 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7472
d88bee5a
GM
74732009-02-27 Glenn Morris <rgm@gnu.org>
7474
7475 * callint.c (Finteractive): Doc fix.
7476
a808f22d
KH
74772009-02-27 Kenichi Handa <handa@m17n.org>
7478
7479 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7480
caf8d60c
CY
74812009-02-27 Chong Yidong <cyd@stupidchicken.com>
7482
7483 * font.c (font_style_to_value): Set value for unknown symbols to
7484 100 instead of 255.
b61137ea
CY
7485 (weight_table, slant_table, width_table): Treat "unspecified" as
7486 the default value.
caf8d60c 7487
1a0de25c
JB
74882009-02-26 Juanma Barranquero <lekktu@gmail.com>
7489
7490 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7491
8fc45744
JB
74922009-02-25 Juanma Barranquero <lekktu@gmail.com>
7493
107bd7d1
JB
7494 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7495 error as soon as a recursive load is detected.
8fc45744 7496
f097e223
AR
74972009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7498
7499 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7500 before caching.
7501
8810a12f
KH
75022009-02-24 Kenichi Handa <handa@m17n.org>
7503
7504 * fontset.c (fontset_find_font): Fix the condition for checking
7505 unavailable font.
7506
2c7d1565
GM
75072009-02-24 Glenn Morris <rgm@gnu.org>
7508
7509 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7510 whitespace that confuses documentation.
7511
a20878b6
MB
75122009-02-23 Miles Bader <miles@gnu.org>
7513
7514 * process.c (Flist_system_processes, Fprocess_attributes)
7515 (syms_of_process): Rename `system-process-attributes' to
7516 `process-attributes'.
7517
b3b58c01
AS
75182009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7519
1b3b981b
AS
7520 * coding.h (struct coding_system): Make safe_charsets a pointer to
7521 unsigned char.
7522 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7523 being 255.
7524 (SAFE_CHARSET_P): Likewise.
7525 (setup_iso_safe_charsets): Properly setup safe_charsets.
7526 (Fdefine_coding_system_internal): Likewise.
7527 (setup_coding_system): Likewise. Remove unneeded casts.
7528 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7529 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7530 unneeded casts.
7531
b3b58c01
AS
7532 * insdel.c (del_range_2): Don't modify gap contents when called
7533 from decode_coding_object. (Bug#1809)
7534
0b6f228c
CY
75352009-02-21 Chong Yidong <cyd@stupidchicken.com>
7536
7537 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7538 Qfont_object.
7539 (Ftype_of): Recognize font objects.
7540
7541 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7542
7543 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7544 moved to data.c.
7545
52f8870b
AR
75462009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7547
7548 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7549 async_iconified. Based on a patch by Christian Lynbech
7550 <christian.lynbech@tieto.com>.
7551 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7552
7087d5e9
GM
75532009-02-20 Glenn Morris <rgm@gnu.org>
7554
7555 * syntax.c (Fskip_chars_forward): Fix doc typo.
7556
41d2ceef
CY
75572009-02-20 Chong Yidong <cyd@stupidchicken.com>
7558
7559 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7560
1a3b7ca6
CY
75612009-02-19 Chong Yidong <cyd@stupidchicken.com>
7562
7563 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7564
73cce38d
KH
75652009-02-19 Kenichi Handa <handa@m17n.org>
7566
7567 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7568 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7569
a51092ee
DN
75702009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7571
7572 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7573
c423ecca
KH
75742009-02-18 Kenichi Handa <handa@m17n.org>
7575
7576 * font.c (font_check_otf_features): Fix handling of `nil' element.
7577 (Ffont_spec): Describe :lang and :otf in the docstring.
7578
4c1958f4
AS
75792009-02-16 Andreas Schwab <schwab@suse.de>
7580
7581 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7582 string.
7583
5704f39a
KH
75842009-02-16 Kenichi Handa <handa@m17n.org>
7585
7586 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7587 (Bug#1723)
5704f39a 7588
8f0085aa
CY
75892009-02-14 Chong Yidong <cyd@stupidchicken.com>
7590
a057d86a 7591 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7592
7593 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7594 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7595
aff01dd9
EZ
75962009-02-14 Eli Zaretskii <eliz@gnu.org>
7597
7598 * msdos.c (MAX_SCREEN_BUF): New macro.
7599 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7600 Encode the entire run of glyphs sharing the same face, instead of
7601 doing that one glyph at a time (fixes a bug with displaying
7602 double-size characters).
7603
ba301db3
AR
76042009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7605
7606 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7607
7608 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7609 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7610 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7611
7612 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7613 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7614
51d861de
SM
76152009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7616
ac146f82 7617 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7618 invisible areas.
7619
7fed8996
JR
76202009-02-12 Jason Rumney <jasonr@gnu.org>
7621
631ea4fb
JR
7622 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7623 (add_font_entity_to_list): Call check_face_name even when family
7624 is unspecified.
7625
cb4a3e42
JR
7626 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7627 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7628 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7629
7fed8996 7630 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7631 raster fonts. (Bug#2219)
7fed8996 7632
895416e3
KH
76332009-02-12 Kenichi Handa <handa@m17n.org>
7634
7635 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7636 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7637 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7638 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7639 (find_automatic_composition): While looking forward and backward,
7640 check static composition. Fix where to stop looking forward.
7641 (composition_adjust_point): Fix checking of static composition.
7642 (Fcomposition_get_gstring): Pay attention to
1dacf998 7643 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7644
7645 * lisp.h (fast_looking_at): Extern it.
7646
7647 * search.c (fast_looking_at): New function.
7648
51d861de 7649 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7650 <struct glyph>.u.cmp.to.
7651 (append_composite_glyph): Likewise.
7652
51d861de 7653 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7654 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7655 composition.
51d861de 7656 (append_composite_glyph): Adjust for the change of
895416e3
KH
7657 <strcut glyph>.u.cmp.to.
7658
8510724d
JB
76592009-02-11 Juanma Barranquero <lekktu@gmail.com>
7660
7661 * casetab.c (init_casetab_once):
7662 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7663 * font.c (font_update_lface):
7664 * fontset.c (Fnew_fontset):
7665 * ftfont.c (ftfont_drive_otf):
7666 * xfont.c (xfont_open):
7667 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7668
294fa707
SM
76692009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * fileio.c (Fwrite_region): !NILP -> CONSP.
7672
b5bfebec
AS
76732009-02-10 Andreas Schwab <schwab@suse.de>
7674
7675 * process.c (send_process): Properly relocate pointer into data
adab88bd 7676 when using encoded data. (Bug#2272)
b5bfebec 7677
cb84a2be
KH
76782009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7679
7680 * coding.c (detect_coding_charset): Fix previous change.
7681
89e09428
JR
76822009-02-08 Jason Rumney <jasonr@gnu.org>
7683
7684 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7685 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7686
4470a277
AS
76872009-02-07 Andreas Schwab <schwab@suse.de>
7688
7689 * unexelf.c (unexec): Fix error message.
7690
3175b12a
AR
76912009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7692
7693 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7694 when modal window is active. (Bug #2152)
3175b12a
AR
7695 (applicationShouldTerminate:): Remove now-unneeded while loop
7696 around NSRunAlertPanel.
7697
7698 * nsmenu.m (popupSession): New file-global variable.
7699 (pop_down_menu): End the popupSession before closing dialog.
7700 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7701 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7702 don't query NSApp for events (just sleep instead).
7703
8434d0b8
EZ
77042009-02-07 Eli Zaretskii <eliz@gnu.org>
7705
51d861de
SM
7706 * coding.c (syms_of_coding) <translation-table-for-input>:
7707 Modify doc string to discourage use for character code unification.
8434d0b8 7708
aa82edfd
CY
77092009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7710
7711 * atimer.c (run_timers): Update pending_atimers.
7712
2d283c7c
CY
77132009-02-06 Chong Yidong <cyd@stupidchicken.com>
7714
eb306cab
CY
7715 * image.c (svg_load_image): Fix last change.
7716
2d283c7c
CY
7717 * xfns.c (Fx_create_frame): Signal an error if no font is
7718 found (Bug#2147).
7719
4d8e170e
JB
77202009-02-05 Juanma Barranquero <lekktu@gmail.com>
7721
7722 * character.c (syms_of_character) <script-representative-chars>:
7723 Fix typo in docstring.
7724
c96169a0
AR
77252009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7726
7727 * nsmenu.m (pop_down_menu): New function.
7728 (ns_popup_dialog): Call it on unwind.
7729 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7730 call timer_check() (Bug#2154).
7731 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7732 handling_signal is set.
7733 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7734
31fd7c5c 7735 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7736
7737 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7738
7739 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7740
51d861de
SM
7741 * keyboard.c (poll_for_input_1, handle_async_input):
7742 Set handling_signal under HAVE_NS.
c96169a0 7743
aacd8ba1
GM
77442009-02-04 Glenn Morris <rgm@gnu.org>
7745
7746 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7747
4cb75c4b
KH
77482009-02-04 Kenichi Handa <handa@m17n.org>
7749
7750 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7751
7752 * charset.c (Fchar_charset): New optional arg restriction.
7753
7754 * coding.h (coding_system_charset_list): Extern it.
7755
7756 * coding.c (coding_system_charset_list): New function.
7757
7758 * composite.c: Include coding.h and termhooks.h.
7759 (composition_gstring_p): Fix for the terminal case.
7760 (composition_gstring_width): Likewise.
7761 (fill_gstring_body): Likewise.
7762 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7763 the frame.
7764 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7765 is within a composition.
867d4bb3 7766 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7767
7768 * term.c (encode_terminal_code): Fix handling of composition.
7769 (produce_composite_glyph): For static composition, get pixel_width
7770 from struct composition.
7771
826ba17e
AS
77722009-02-02 Andreas Schwab <schwab@suse.de>
7773
7774 * unexelf.c (unexec): Handle unaligned bss offset.
7775
8ad093db
AR
77762009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7777
7778 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7779 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7780
8ad093db
AR
7781 * keyboard.c (handle_interrupt): Don't call
7782 quit_throw_to_read_char() under NS.
d0a76a6e 7783
8ad093db
AR
7784 * blockinput.h: Remove NS-specific code.
7785
4d18a7a2
DN
77862009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7787
db878925
DN
7788 * dispnew.c (window_change_signal): Don't try to get the size of a
7789 suspended tty frame.
7790 * term.c (Fresume_tty): Resize if the size has changed while the
7791 tty was suspended.
7792
4d18a7a2
DN
7793 * alloc.c (mark_stack): Properly conditionalize previous change.
7794
8984df7c
JB
77952009-01-30 Juanma Barranquero <lekktu@gmail.com>
7796
7797 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7798 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7799 Remove; this code is not used on Windows.
7800
75f4f1ac
EZ
78012009-01-30 Eli Zaretskii <eliz@gnu.org>
7802
7803 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7804 EOLs that also has stray ^M characters.
7805
07a1e794
JB
78062009-01-30 Juanma Barranquero <lekktu@gmail.com>
7807
7808 * atimer.c (run_timers, alarm_signal_handler):
7809 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7810 * w32inevt.c (w32_console_read_socket):
7811 * w32term.c (w32_read_socket):
7812 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7813
a8b11cc9
CY
78142009-01-30 Chong Yidong <cyd@stupidchicken.com>
7815
7816 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7817 Initialize it as a relative filename pattern.
7818 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7819 (Fcall_process_region): Simplify temp file creation using
7820 temporary-file-directory.
7821
c279587b
EZ
78222009-01-29 Eli Zaretskii <eliz@gnu.org>
7823
7824 * msdos.c: Rename pending_signals to msdos_pending_signals.
7825 (sig_suspender, sigprocmask): Adjust.
7826
a8fe3242
CY
78272009-01-29 Chong Yidong <cyd@stupidchicken.com>
7828
7829 * keyboard.c (pending_signals): New var.
7830 (poll_for_input, input_available_signal, init_keyboard): Set it.
7831 (process_pending_signals): New function.
7832
7833 * lisp.h (QUIT): Check pending_signals instead of
7834 interrupt_input_pending. Use process_pending_signals.
7835
51d861de 7836 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7837
51d861de 7838 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7839
7840 * sysdep.c (emacs_write): Use process_pending_signals.
7841
7842 * xterm.c (XTread_socket): Update pending_signals.
7843
7844 * w32term.c (w32_read_socket): Update pending_signals.
7845
7846 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7847
6570a1c4
KH
78482009-01-29 Kenichi Handa <handa@m17n.org>
7849
7850 * xftfont.c (xftfont_has_char): New function.
7851 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7852
d72a4afa
AR
78532009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7854
7855 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7856 under GNUstep.
7857 (ns_query_color): New declaration.
7858
7859 * nsterm.m (ns_confirm_quit): New variable.
7860 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7861 (EmacsApp-applicationShouldTerminate:): Use it.
7862 (EmacsPrefsController): Let user set it.
7863 (ns_query_color): New function.
7864 (ns_defined_color): Use it.
7865 (ns_initialize): Drop.
7866 (ns_term_init): Add two lines from ns_initialize(), and set
7867 input_interrupt_mode to nil.
7868
7869 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7870 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7871
9fe78804
KH
78722009-01-28 Kenichi Handa <handa@m17n.org>
7873
7874 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7875 (fontset_get_font_group): Remember that no font-group is specified
7876 for C.
9fe78804 7877
fa57de36
CY
78782009-01-27 Chong Yidong <cyd@stupidchicken.com>
7879
930600e9
CY
7880 * fns.c (concat): Check for string overflow (bug#1787).
7881
fa57de36
CY
7882 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7883 Quadruple undo limits (bug#1501).
7884
7179ce7b
KH
78852009-01-27 Kenichi Handa <handa@m17n.org>
7886
7887 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7888 directly use GT_Get_Char_index.
7889
7890 * xftfont.c (struct xftfont_info): New member `index'.
7891
7892 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7893 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7894
5be8fcc0
CY
78952009-01-26 Kenichi Handa <handa@m17n.org>
7896
7897 * fontset.c (fontset_find_font): Fix handling of non-cons return
7898 value of fontset_get_font_group.
7899 (fontset_font): Revert last change.
7900
19ae3e61
JR
79012009-01-26 Jason Rumney <jasonr@gnu.org>
7902
7903 * w32font.c (w32font_list_internal): Return quickly if registry is
7904 unknown. Simplify final return.
7905 (add_font_entity_to_list): Break complex logic down into more
7906 manageable chunks. Move unknown registry check to
7907 w32font_list_internal.
7908
8612b71a
AR
79092009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7910
7911 Changes to remove Feval calls from GUI under NS.
7912
d8038940
JB
7913 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7914 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7915 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7916
7917 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7918 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7919 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7920 instead of NON_ASCII_KEYSTROKE_EVENT.
7921 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7922 (EmacsApp-applicationShouldTerminate:): Query user.
7923 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7924 instead of Feval.
7925
7926 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7927
7928 * keyboard.c (kbd_buffer_get_event): Check for it.
7929 (keys_of_keyboard): Define lispy keys for
7930 ns-put/unput-working-text.
7931
7932 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7933 versions.
7934 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7935
6288ae55
CY
79362009-01-25 Chong Yidong <cyd@stupidchicken.com>
7937
7938 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7939 setting current_buffer directly. (Bug#2044)
6288ae55 7940
289e7f8f
CY
79412009-01-24 Chong Yidong <cyd@stupidchicken.com>
7942
5ce87308 7943 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7944 any work. (Bug#1952, bug#1990).
5ce87308 7945
64cc3cf6 7946 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7947
b3243e6f
AR
79482009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7949
7950 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7951 (ns_no_defaults): New declaration.
7952 (main): Use it.
e0d2e69a 7953
d900b2af 7954 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7955
d900b2af 7956 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7957
d900b2af
AR
7958 * nsterm.m (ns_no_defaults): New variable.
7959 (ns_initialize): Don't read defaults when ns_no_defaults.
7960 (EmacsView-readSelectionFromPasteboard:)
7961 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7962 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7963 (ns_dumpglyphs_stretch): New function.
7964 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7965 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7966
e0d2e69a
AR
7967 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7968
3ac71f5d
CY
79692009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7970
7971 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7972 call for Sparc64.
7973
3fe53a83
AR
79742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7975
7976 * nsfns.m:
7977 * nsgui.h:
7978 * nsmenu.m:
7979 * nsselect.m:
7980 * nsterm.h:
7981 * nsterm.m: Remove '23' comments that indicated code added during
7982 update from emacs-20 -> emacs-23.
7983
10f87c6f 79842009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7985
7986 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7987 ns_alternate_modifier. (Bug#1217)
a3b53a85 7988
c7cef62d
AR
7989 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7990 Display all shortcuts, including those w/o super modifier.
7991
575fb8bd
AR
7992 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7993
918b848b
CY
79942009-01-22 Chong Yidong <cyd@stupidchicken.com>
7995
7996 * fileio.c (Vwrite_region_post_annotation_function)
7997 (Vwrite_region_annotation_buffers): New vars.
7998 (build_annotations_unwind): Just reset
7999 Vwrite_region_annotation_buffers.
8000 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8001 Call write-region-post-annotation-function.
8002 (build_annotations): Add to Vwrite_region_annotation_buffers if
8003 buffer changes.
8004
a39e2539
AR
80052009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8006
8007 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8008 Tiger.
51d861de
SM
8009 * nsfns.m (ns_do_applescript):
8010 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8011
35ed44db
AR
80122009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8013
8014 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8015
cbe0b5bf
AR
80162009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8017
8018 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8019
6049d3a0
AR
8020 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8021
8022 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8023 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8024 handle Ctrl-tab. (Bug#1841)
8025 (ns_get_color): Use unsigned long long for scanned hex string value.
8026 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8027 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8028 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8029 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8030 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8031 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8032 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8033
d3810c21 8034 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8035 DPI. (Bug#1316)
d3810c21
AR
8036 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8037 values in onTiger section.
4c7077c3 8038
e301e634
CY
80392009-01-19 Chong Yidong <cyd@stupidchicken.com>
8040
7f82490b
CY
8041 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8042 Check return value of font_spec_from_name.
64cc3cf6 8043 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8044
8045 * font.c (font_spec_from_name): Return Qnil if font name could not
8046 be parsed.
8047 (font_parse_name): Treat a `?' character as part of an XLFD.
8048
e301e634
CY
8049 * fns.c (Fsubstring): Doc fix.
8050
1c0db158
KH
80512009-01-19 Kenichi Handa <handa@m17n.org>
8052
51d861de 8053 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8054 (ftfont_list): Likewise.
8055
acf20901
JB
80562009-01-18 Juanma Barranquero <lekktu@gmail.com>
8057
fff4e459
JB
8058 * dbusbind.c (Fdbus_register_signal):
8059 * process.c (conv_sockaddr_to_lisp):
8060 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8061
acf20901
JB
8062 * callproc.c (Fgetenv_internal): Doc fix.
8063
e7abcdfb
CY
80642009-01-16 Chong Yidong <cyd@stupidchicken.com>
8065
8066 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8067 it is not even used.
8068
b60861e6
GM
80692009-01-16 Glenn Morris <rgm@gnu.org>
8070
8071 * font.c (Ffont_variation_glyphs): Silence compiler.
8072
8db52afe
JB
80732009-01-15 Juanma Barranquero <lekktu@gmail.com>
8074
8075 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8076 Reported by David Robinow <drobinow@gmail.com>.
8077
4cddb209
KH
80782009-01-15 Kenichi Handa <handa@m17n.org>
8079
51d861de 8080 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8081
f247f67b
JR
80822009-01-14 Jason Rumney <jasonr@gnu.org>
8083
8084 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8085 never a fontset. (Bug#1562)
f247f67b 8086
f56a4450
KH
80872009-01-14 Kenichi Handa <handa@m17n.org>
8088
8089 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8090 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8091
4e99855e
CY
80922009-01-13 Chong Yidong <cyd@stupidchicken.com>
8093
8094 * font.c (font_clear_prop): If clearing the family, clear the font
8095 width index too.
8096
fff4e459 8097 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8098
24f01470
JB
80992009-01-12 Juanma Barranquero <lekktu@gmail.com>
8100
8101 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8102 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8103 functions, use sizeof.
8104
a41240a3
MR
81052009-01-12 Martin Rudalics <rudalics@gmx.at>
8106
8107 * keyboard.c (read_char): Fix case where last_nonmenu_event
8108 returned a bad value with submenus. (Bug#447)
8109
944636b8
CY
81102009-01-12 Chong Yidong <cyd@stupidchicken.com>
8111
8112 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8113 family, clear the font width index too.
8114
0dad7c6f
JR
81152009-01-11 Jason Rumney <jasonr@gnu.org>
8116
8117 * keyboard.c (cmd_error_internal): Exit when errors occur before
8118 frame creation and not in daemon mode. (Bug#1836)
8119
7c2363af
CY
81202009-01-10 Chong Yidong <cyd@stupidchicken.com>
8121
8122 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8123 of a display vector, backtrack.
8124 (try_window_reusing_current_matrix): Check glyph type before
8125 referencing charpos member.
8126
97b1b294
EZ
81272009-01-10 Eli Zaretskii <eliz@gnu.org>
8128
8129 Fix Bug #876:
8130
8131 * coding.c (inhibit_null_byte_detection): New variable.
8132 (detect_coding, detect_coding_system): Don't pay attention to null
8133 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8134 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8135 <inhibit-iso-escape-detection>: Doc fix.
8136
4624b6e3
JR
81372009-01-09 Jason Rumney <jasonr@gnu.org>
8138
8139 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8140 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8141 Only report Unicode Plane 2 fonts as unicode-sip.
8142
323b840c
CY
81432009-01-09 Chong Yidong <cyd@stupidchicken.com>
8144
51d861de
SM
8145 * xfaces.c (Fx_font_family_list): Delete function.
8146 Move compatibility version to faces.el.
323b840c 8147
51d861de 8148 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8149
eba7400d
MR
81502009-01-09 Martin Rudalics <rudalics@gmx.at>
8151
8152 * frame.c (x_set_frame_parameters): Remember requested value for
8153 fullscreen before it's reset by the parameter handler.
8154
4b09796d
GM
81552009-01-09 Glenn Morris <rgm@gnu.org>
8156
8157 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8158 (last_command_event): ... and update all users.
4b09796d
GM
8159 (last_input_char): For clarity, rename to...
8160 (last_input_event): ... and update all users.
8161 (last-command-char, last-input-char): Move to subr.el as aliases.
8162 * cmds.c, commands.h: Update for last_command_char rename.
8163
14ccea62
CY
81642009-01-08 Chong Yidong <cyd@stupidchicken.com>
8165
51d861de 8166 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8167
5f004711
JR
81682009-01-08 Jason Rumney <jasonr@gnu.org>
8169
8170 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8171 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8172 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8173 Don't declare.
fff4e459 8174 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8175 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8176
b71f6f73
KH
81772009-01-07 Kenichi Handa <handa@m17n.org>
8178
50b06221 8179 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8180 remember the coding system used for decoding in
50b06221
KH
8181 coding_system (Bug#1039).
8182
b71f6f73 8183 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8184 breaking the loop. (Bug#870)
b71f6f73
KH
8185 (decode_coding_utf_16, decode_coding_emacs_mule)
8186 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8187 (decode_coding_charset): Likewise.
8188
56f668f7
MR
81892009-01-05 Martin Rudalics <rudalics@gmx.at>
8190
8191 * frame.c (x_set_frame_parameters): Make sure height (width) get
8192 applied when fullwidth (fullheight) is set. (Bug#1522)
8193
5da9424d
JB
81942009-01-04 Juanma Barranquero <lekktu@gmail.com>
8195
8196 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8197 (utc_base): Declare as ULONGLONG, not long double.
8198 (convert_time_raw): Delete.
8199 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8200 (initialize_utc_base): New function.
8201 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8202 (convert_from_time_t): Use initialize_utc_base; compute result with
8203 64-bit arithmetic.
8204 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8205
c4605e09
EZ
82062009-01-03 Eli Zaretskii <eliz@gnu.org>
8207
9acef61c 8208 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8209 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8210 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8211 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8212 [!subprocesses]: Define.
8213 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8214 (Flist_system_processes, Fsystem_process_attributes)
8215 [!subprocesses]: Call list_system_processes and
8216 system_process_attributes instead of returning Qnil.
8217
9acef61c
JB
8218 * dosfns.c (system_process_attributes, list_system_processes):
8219 New functions.
c4605e09
EZ
8220
8221 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8222
8223 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8224 Don't use the default (no-op) implementation.
8225
8b7d0a16
JR
82262009-01-03 Jason Rumney <jasonr@gnu.org>
8227
a6d46bc1
JR
8228 * keyboard.c (parse_modifiers_uncached): Wheel events are
8229 clicks (bug#687).
8230
8b7d0a16
JR
8231 * w32term.c (x_query_colors, x_query_color): New functions.
8232
8233 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8234 (svg_load_image): Cast returned pointers from dynamically loaded
8235 functions. Eliminate W32 specific code.
8236
bfe11752
DN
82372009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8238
89e2438a
DN
8239 * nsfns.m (x_set_foreground_color, x_set_background_color)
8240 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8241 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8242 x_ prefix instead of ns_. Update references.
8243 (syms_of_nsfns): Add a FIXME comment.
8244
8245 * nsterm.m (x_set_cursor_type): New prototype.
8246 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8247
bfe11752
DN
8248 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8249 for Solaris instead of incorrectly providing Qutime and Qcutime.
8250
031da700
EZ
82512009-01-02 Eli Zaretskii <eliz@gnu.org>
8252
8253 * w32.c (process_times): Compute sum of utime and stime.
8254 (system_process_attributes): Add Qtime to the alist.
8255
8256 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8257 and add them to the alist.
8258
8259 * process.c (top level) <Qtime, Qctime>: New variables.
8260 (syms_of_process): staticpro them.
8261 (Fsystem_process_attributes): Add their documentation to the doc
8262 string.
8263
8264 * process.h: Declare Qtime and Qctime.
8265
df23bf08
JR
82662009-01-02 Jason Rumney <jasonr@gnu.org>
8267
9acef61c 8268 * image.c (Qgobject): New symbol.
df23bf08
JR
8269 (syms_of_image): Initialize it.
8270 (init_svg_functions): Load some functions from gobject library.
8271
5bbdf7aa
DN
82722009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8273
8274 * frame.c (make_terminal_frame): Remove redundant code and useless
8275 block.
8276
63136da6
AS
82772009-01-01 Andreas Schwab <schwab@suse.de>
8278
8279 * process.c (conv_sockaddr_to_lisp): Add workaround for
8280 getsockname bug on BSD.
8281
9ef69046
CY
82822009-01-01 Chong Yidong <cyd@stupidchicken.com>
8283
d6fafbe0
CY
8284 * xfns.c (x_create_tip_frame): Set border width of the X window.
8285
51d861de 8286 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8287
f9c34147
JR
82882009-01-01 Jason Rumney <jasonr@gnu.org>
8289
9acef61c 8290 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8291 Don't block input, as per earlier xterm.c changes.
8292
f5497e45
AR
82932008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8294
8295 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8296 (ns_appkit_version_int): New function.
8297 (x-server-version): Use ns_appkit_version_int and follow 21+
8298 convention of returning 3 integers.
8299
c19cab20
KH
83002008-12-30 Kenichi Handa <handa@m17n.org>
8301
8302 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8303 (CHAR_SURROGATE_PAIR_P): New macro.
8304
8305 * font.h (struct font_driver): New member get_variation_glyphs.
8306
9acef61c 8307 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8308 (Ffont_variation_glyphs): New function.
8309 (syms_of_font): Defsubr it.
8310
8311 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8312 ftfont_variation_glyphs.
8313 (setup_otf_gstring): New function.
8314 (ftfont_drive_otf): Use it.
8315 (ftfont_shape_by_flt): Handle variation selector.
8316 (ftfont_variation_glyphs): New function.
8317
28cd591f
MR
83182008-12-30 Martin Rudalics <rudalics@gmx.at>
8319
8320 * frame.c (Vemacs_iconified): Remove.
8321
7f714baf
JR
83222008-12-30 Jason Rumney <jasonr@gnu.org>
8323
8324 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8325 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8326
9d2d22ab
CY
83272008-12-30 Chong Yidong <cyd@stupidchicken.com>
8328
8329 * indent.c (Fvertical_motion): Don't advance iterator if we have
8330 reseated to the desired position.
8331
8332 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8333 checking for pos match.
8334
545312c2
KH
83352008-12-30 Kenichi Handa <handa@m17n.org>
8336
1ede3eb6
KH
8337 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8338 just get the low 8-bit of the code.
8339
545312c2
KH
8340 * font.c (font_intern_prop): Validate str as multibyte.
8341
bd7bbf29
DN
83422008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8343
31e0750e
DN
8344 * dispextern.h (struct face): Move lface and hash from the middle
8345 of bitfields.
8346
bd7bbf29
DN
8347 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8348
b5672e7c
DN
83492008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8350
8351 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8352 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8353 instead of intervals.h.
8354
d704470f
AS
83552008-12-26 Andreas Schwab <schwab@suse.de>
8356
8357 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8358 cons.
8359
54b33868
MR
83602008-12-26 Martin Rudalics <rudalics@gmx.at>
8361
8362 * textprop.c (Qminibuffer_prompt): New variable.
8363 (syms_of_textprop): Initialize it.
8364 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8365 in minibuffer-prompt face. (Bug#1662)
8366
40b615d6
JR
83672008-12-25 Jason Rumney <jasonr@gnu.org>
8368
8369 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8370
baae5c2d
JR
83712008-12-24 Jason Rumney <jasonr@gnu.org>
8372
8373 * ralloc.c (r_alloc_reset_variable): New function.
8374
8375 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8376 record of what points where. (Bug#716)
baae5c2d 8377
a9051c88
DN
83782008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8379
8380 * minibuf.c (read_minibuf): Follow the non-interactive case when
8381 running as a daemon, before detaching.
8382
8b146312
AS
83832008-12-22 Andreas Schwab <schwab@suse.de>
8384
8385 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8386 * gtkutil.c (free_widget_value): Use xfree instead of free.
8387
56f2de10
MR
83882008-12-22 Martin Rudalics <rudalics@gmx.at>
8389
8390 * frame.c (delete_frame): New function derived from
8391 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8392 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8393 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8394 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8395 * frame.h: Extern delete_frame.
8396 * window.c (window_loop):
8397 * terminal.c (delete_terminal):
8398 * xterm.c (x_connection_closed):
8399 * xfns.c (Fx_hide_tip):
9acef61c 8400 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8401
1fc200d6
JR
84022008-12-21 Jason Rumney <jasonr@gnu.org>
8403
8404 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8405 when character maps to .notdef character.
8406
5e252df2
SM
84072008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8408
8409 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8410
99b72cc4
JR
84112008-12-20 Jason Rumney <jasonr@gnu.org>
8412
8413 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8414 a graphical frame on Windows. (Bug#1325)
99b72cc4 8415
acc49a52
JD
84162008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8417
8418 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8419
6ea15123
CY
84202008-12-20 Chong Yidong <cyd@stupidchicken.com>
8421
8422 * minibuf.c (Fread_buffer): Doc fix.
8423
b2dab6c8
JR
84242008-12-20 Jason Rumney <jasonr@gnu.org>
8425
54ea0c87 8426 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8427 server name in UNC paths. (Bug#719)
54ea0c87 8428
b2dab6c8 8429 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8430 charbuf. (Bug#1035)
b2dab6c8 8431
6d1921be
DN
84322008-12-19 Daniel Engeler <engeler@gmail.com>
8433
8434 * sysdep.c (serial_configure): Fix typo.
8435
53934c98
DN
84362008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8437
8438 * sysdep.c: Include alloca.h.
f4f634e8
DN
8439 (system_process_attributes): Add implementation for Solaris.
8440
8441 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8442
06e111a6
DN
84432008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8444
8445 Reorganize implementation of Flist_system_processes and
8446 Fsystem_process_attributes. No functional changes.
8447 * process.c: Don't #include pwd.h, grp.h and limits.h.
8448 (Flist_system_processes): Just call list_system_processes.
8449 (Fsystem_process_attributes): Just call system_process_attributes.
8450 (procfs_list_system_processes, time_from_jiffies)
8451 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8452 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8453
8454 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8455 (list_system_processes): Rename from
8456 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8457 Provide a do nothing implementation.
8458 (system_process_attributes): Rename from
8459 procfs_list_system_processes.
8460 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8461 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8462
8463 * w32.c (list_system_processes): Rename from
8464 w32_list_system_processes.
8465 (system_process_attributes): Rename from
8466 w32_system_process_attributes.
8467
8468 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8469
8470 * process.h (w32_list_system_processes)
8471 (w32_system_process_attributes): Remove.
362654a6
JB
8472 (list_system_processes, system_process_attributes):
8473 New prototypes.
06e111a6 8474
6a705b23
KH
84752008-12-19 Kenichi Handa <handa@m17n.org>
8476
8477 * xfont.c (xfont_decode_coding_xlfd): New function.
8478 (xfont_encode_coding_xlfd): New function.
8479 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8480 (xfont_list): Decode and encode XLFD by iso-8859-1.
8481 (xfont_match): Likewise.
8482 (xfont_list_family): Likewise.
8483 (xfont_open): Likewise.
8484
d66c0241 8485 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8486 names are utf-8.
8487
d66c0241 8488 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8489 names are utf-8.
8490
5a130941
JD
84912008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8492
8493 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8494 changed.
bfd20325
JD
8495 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8496 clicked on a detached tool bar button.
5a130941 8497
fd95644b
DN
84982008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8499
8500 * emacs.c (main): Print and error and exit when no data is read
8501 from the pipe.
8502
e6eee6ae
JR
85032008-12-17 Jason Rumney <jasonr@gnu.org>
8504
8505 * w32font.c (w32font_has_char): Always return -1.
8506
a35dd56b
KH
85072008-12-16 Kenichi Handa <handa@m17n.org>
8508
8509 * font.c (font_open_entity): Fix previous change.
8510
0e3635c2
DN
85112008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8512
8513 * process.c: Include <limits.h>.
8514
d4835507 85152008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8516
8517 * font.c (font_update_drivers): Fix mistake in reconstructing the
8518 driver list.
8519
85202008-12-16 Chong Yidong <cyd@stupidchicken.com>
8521
8522 * font.c (font_clear_cache): Fix format of font cache data.
8523
e2cbc401
CY
85242008-12-15 Chong Yidong <cyd@stupidchicken.com>
8525
8526 * xftfont.c (xftfont_open): Free Xft font pattern if
8527 XftFontOpenPattern fails.
8528
8529 * xterm.c (x_free_frame_resources): Remove extraneous call to
8530 free_frame_faces.
8531
b131d535
CY
85322008-12-13 Chong Yidong <cyd@stupidchicken.com>
8533
8534 * xterm.c (x_delete_display): Move xim_close_dpy call to
8535 x_delete_terminal.
8536 (x_delete_terminal): Call xim_close_dpy.
8537
e6df5336
JR
85382008-12-13 Jason Rumney <jasonr@gnu.org>
8539
8540 * w32font.c (intern_font_name): New function.
8541 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8542 (w32font_open_internal, Fx_select_font): Decode font name.
8543 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8544
8545 * w32font.h (intern_font_name): Declare new function.
8546
8547 * w32uniscribe.c (add_opentype_font_name_to_list):
8548 Use intern_font_name.
8549
20d68145
CY
85502008-12-13 Chong Yidong <cyd@stupidchicken.com>
8551
9f2554de
CY
8552 * frame.c (Fdelete_frame): Call free_font_driver_list.
8553
3d9bec9a
CY
8554 * font.c (free_font_driver_list): Implement missing function.
8555
20d68145
CY
8556 * w32term.c (w32_term_init): Don't initialize the image cache
8557 here; it will be done in init_frame_faces.
8558
8559 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8560 (struct x_display_info): Remove unused member null_pixel. New
8561 member xim_callback_data.
8562
8563 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8564 (xim_initialize): Save pointer to callback function data.
8565 (xim_close_dpy): Free callback function data. Call XCloseIM,
8566 reverting 2008-11-04 change by David Smith.
8567 (x_term_init): Don't initialize the image cache here; it will be
8568 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8569 (x_delete_display): Free x_dnd_atoms member.
8570
96f9306b
KH
85712008-12-13 Kenichi Handa <handa@m17n.org>
8572
6dec9044
JB
8573 * font.c (font_rescale_ratio): Moved from xfaces.c.
8574 Argument type changed. Handle a font-spec too.
96f9306b 8575 (font_score): Check Vface_font_rescale_alist.
6dec9044 8576 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8577
8578 * xfaces.c (font_rescale_ratio): Moved to font.c.
8579
8d5b4964
CY
85802008-12-13 Chong Yidong <cyd@stupidchicken.com>
8581
8582 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8583
e6df5336
JR
85842008-12-12 Jason Rumney <jasonr@gnu.org>
8585
8586 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8587 Vwindow_system_version to the real w32 major version.
8588
97c6058a
DN
85892008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8590
8591 * term.c (init_tty): Move setting the terminal name before the
8592 potential user: maybe_fatal.
8593
ec4e88d7
CY
85942008-12-11 Chong Yidong <cyd@stupidchicken.com>
8595
d4835507
JB
8596 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8597 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8598
b4233ec9
JR
85992008-12-11 Jason Rumney <jasonr@gnu.org>
8600
8ec71e23 8601 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8602 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8603
b4233ec9 8604 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8605 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8606
011a0143
JB
86072008-12-11 Juanma Barranquero <lekktu@gmail.com>
8608
8609 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8610
3c309f34
JB
86112008-12-11 Juanma Barranquero <lekktu@gmail.com>
8612
8613 * process.c (Fsystem_process_attributes, syms_of_process):
8614 Fix typo in name of Ssystem_process_attributes.
8615 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8616
fedc6ab5
JB
86172008-12-11 Juanma Barranquero <lekktu@gmail.com>
8618
8619 * syntax.c (Fmodify_syntax_entry): Doc fix.
8620
ba3de0e8
JB
86212008-12-10 Juanma Barranquero <lekktu@gmail.com>
8622
8623 * font.c (Ffont_spec): Move usage to end of docstring.
8624
174f1c74
JR
86252008-12-10 Jason Rumney <jasonr@gnu.org>
8626
8627 * w32font.c (Qcham): New symbol.
8628 (font_supported_scripts): Add cham, and comments for other new
8629 scripts in bitfield from OpenType spec.
9d32f818
JR
8630 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8631 contain characters beyond the bmp.
174f1c74 8632
7b649478
KH
86332008-12-10 Kenichi Handa <handa@m17n.org>
8634
8635 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8636 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8637 Qunicode_sip.
8638
2133e2d1
JB
86392008-12-10 Juanma Barranquero <lekktu@gmail.com>
8640
8641 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8642 (Fcoding_system_put): Use QCdefault_char.
8643 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8644
9af886ee
CY
86452008-12-09 Chong Yidong <cyd@stupidchicken.com>
8646
74d819eb
CY
8647 * xftfont.c (syms_of_xftfont): Fix typo.
8648
4ccfa1c0 8649 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8650
7c19d3ae
DN
86512008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8652
8653 * emacs.c (main): Close daemon_pipe on exec.
8654
567826bb
CY
86552008-12-08 Chong Yidong <cyd@stupidchicken.com>
8656
8657 * termchar.h (struct tty): New members termcap_term_buffer and
8658 termcap_strings_buffer.
8659
8660 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8661 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8662 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8663 All callers changed.
8664 (init_tty): Store termcap data and string buffers in new struct
8665 tty members termcap_term_buffer and termcap_strings_buffer.
8666 (delete_tty): Free them.
4ccfa1c0 8667 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8668
aa96c42b
SZ
86692008-12-07 Seiji Zenitani <zenitani@mac.com>
8670
8671 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8672 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8673
b7e1d896
CY
86742008-12-06 Chong Yidong <cyd@stupidchicken.com>
8675
8676 * coding.c (make_conversion_work_buffer): Disable buffer
8677 modification hooks in the work buffer.
8678
b5ec91a5
EZ
86792008-12-05 Eli Zaretskii <eliz@gnu.org>
8680
8681 * process.c (procfs_system_process_attributes): If `nread' has a
8682 negative value, assign zero to it.
8683
a5d2a52b
CY
86842008-12-05 Chong Yidong <cyd@stupidchicken.com>
8685
68c5540b 8686 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8687
7bf1bb21
KH
86882008-12-05 Kenichi Handa <handa@m17n.org>
8689
8690 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8691 second character is a combining character.
8692
2fdc7d00
EZ
86932008-12-05 Eli Zaretskii <eliz@gnu.org>
8694
8695 * process.c (procfs_system_process_attributes): Don't use cmd,
8696 cmdsize, and q without initializing them first.
8697
bf6bfba8
JR
86982008-12-04 Jason Rumney <jasonr@gnu.org>
8699
8700 * w32font.c (w32font_draw): Initialize orig_clip before getting
8701 it, and delete it when finished.
8702
a3b1a468
DN
87032008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8704
8705 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8706 case when running as a daemon before detaching.
8707
8b8be8eb
JB
87082008-12-03 Juanma Barranquero <lekktu@gmail.com>
8709
805f2638 8710 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8711
b1bde622
KH
87122008-12-03 Kenichi Handa <handa@m17n.org>
8713
e500c47d
KH
8714 * font.c (font_at): Set `multibyte' at first.
8715
ca516334
KH
8716 * coding.c (decode_coding_charset): Check type of an element of
8717 vector VALIDS.
7bf1bb21 8718 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8719
4ccfa1c0 8720 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8721 (font_for_char): Likewise.
8722
1e5ecd37
CY
87232008-12-03 Chong Yidong <cyd@stupidchicken.com>
8724
d5b01609 8725 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8726 (font_update_lface): Handle fonts with corrupted size specs,
8727 i.e. non-int and non-float.
d5b01609 8728
11e3a6e4 8729 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8730 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8731 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8732
ab06788b
CY
8733 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8734
1e5ecd37 8735 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8736 underline_minimum_offset for underline position.
1e5ecd37 8737
63c125ab
DN
87382008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8739
8740 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8741
8742 * character.c (c_string_width): Specify the type for LEN.
8743
3a8406e1
KH
87442008-12-03 Kenichi Handa <handa@m17n.org>
8745
4ccfa1c0 8746 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8747 (decode_coding_utf_8): Likewise.
4ccfa1c0 8748 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8749 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8750
651df7d9
CY
87512008-12-02 Chong Yidong <cyd@stupidchicken.com>
8752
8753 * keyboard.c (make_lispy_position): Only use PT if the selected
8754 window is current.
8755
1f625c6c
AS
87562008-12-02 Andreas Schwab <schwab@suse.de>
8757
f7741ce9
AS
8758 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8759
1f625c6c
AS
8760 * doprnt.c (doprnt1): Fix size of charbuf.
8761
92bc2678
CY
87622008-12-02 Chong Yidong <cyd@stupidchicken.com>
8763
8764 * keyboard.c (timer_check): Revert last change.
8765
93b9e8cc
JB
87662008-12-02 Juanma Barranquero <lekktu@gmail.com>
8767
8768 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8769
fd7a37d5
JB
87702008-12-01 Juanma Barranquero <lekktu@gmail.com>
8771
8772 * makefile.w32-in: Update dependencies.
8773 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8774
c115043b
AS
87752008-12-01 Andreas Schwab <schwab@suse.de>
8776
8777 * font.c (register_font_driver): Use xmalloc.
8778 (font_put_frame_data): Likewise.
8779
f5668d2a
CY
87802008-12-01 Chong Yidong <cyd@stupidchicken.com>
8781
860d96be
CY
8782 * xfaces.c (realize_x_face): Make abort condition clearer.
8783
f5668d2a
CY
8784 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8785
379c17e7
CY
87862008-11-30 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * keyboard.c (timer_check): After a timer runs, ensure that the
8789 selected window's buffer is current.
8790
35f36d65
JB
87912008-11-30 Juanma Barranquero <lekktu@gmail.com>
8792
f952c61c
JB
8793 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8794 It was accidentally restored by the Unicode merge.
8795
35f36d65
JB
8796 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8797
b23077df
JB
87982008-11-29 Juanma Barranquero <lekktu@gmail.com>
8799
8800 * w32proc.c: Include "coding.h".
8801 (Fw32_short_file_name): Encode filename passed to Windows API.
8802 (Fw32_long_file_name): Encode filename passed to Windows API and
8803 decode back the result. (Bug#1433)
8804
b8ebe9dd
KH
88052008-11-29 Kenichi Handa <handa@m17n.org>
8806
8cc53f96
KH
8807 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8808 not before accessing it.
8809
b8ebe9dd
KH
8810 * charset.c (Fdefine_charset_internal): After calculating
8811 min_char, max_char, and fastmap, copy the charset structure again.
8812 (encode_char): Fix the previous change.
8813
59bc82c0
SZ
88142008-11-28 Seiji Zenitani <zenitani@mac.com>
8815
8816 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8817
8818 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8819
8820 * nsterm.m (x_set_frame_alpha): New function.
8821
32247e3d
EZ
88222008-11-27 Eli Zaretskii <eliz@gnu.org>
8823
8824 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8825
b003e5ff
JB
88262008-11-27 Juanma Barranquero <lekktu@gmail.com>
8827
8828 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8829 pointer to check_face_name.
8830
708550f5
KH
88312008-11-27 Kenichi Handa <handa@m17n.org>
8832
8833 * category.h (SET_CATEGORY_SET): Call set_category_set.
8834 (set_category_set): Extern it.
8835
8836 * category.c (hash_get_category_set): New function.
8837 (Fmodify_category_entry): Adjusted for the change of
8838 char_table_ref_and_range. Call hash_get_category_set to get a
8839 category set to store in the table.
8840
8841 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8842 Funify_charset.
8843
2ae37cf0 8844 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8845 (DECODE_CHAR): Check if the decoder vector is ready.
8846 (ENCODE_CHAR): Check if the encoder char-table is ready.
8847 (maybe_unify_char): Extern it.
8848
8849 * charset.c (Vchar_unified_charset_table): Delete it.
8850 (inhibit_load_charset_map): New variable.
8851 (temp_charset_work): New variable.
8852 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8853 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8854 New macros.
8855 (load_charset_map): Meaning of control_flag changed. If
8856 inhibit_load_charset_map is nonzero, setup a table in
8857 temp_charset_work.
8858 (load_charset): New argument control_flag.
8859 (map_charset_for_dump): New function.
8860 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8861 map_charset_for_dump.
8862 (Fdefine_charset_internal): If the charset method is MAP, load
8863 mapping tables by calling load_charset.
8864 (Funify_charset): Don't load a mapping table but directly set
8865 Vchar_unify_table.
8866 (maybe_unify_char): New function.
8867 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8868 Handle the case of inhibit_load_charset_map being nonzero.
8869 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8870 Handle the case of inhibit_load_charset_map being nonzero.
8871 (Fclear_charset_maps): Just free temp_charset_work.
8872 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8873 variable.
8874
8875 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8876 change of char_table_ref_and_range.
8877 (char_table_ref_and_range): Change the meaning of argument FROM
8878 and TO. Now the caller must provide initial values for *FROM
8879 and *TO.
8880
8881 * fontset.c (fontset_add): Adjusted for the change of
8882 char_table_ref_and_range.
8883 (fontset_get_font_group): Likewise.
8884 (Ffontset_info): Likewise.
8885
8886 * keymap.c (describe_vector): Adjusted for the change of
8887 char_table_ref_and_range. For char-table, put boundary between
8888 non-ASCII and 8-bit characters.
8889
8890 * print.c (print_object): For bool-vector, delete unnecessary
8891 check of ASCII_BYTE_P.
8892
9196133b
JR
88932008-11-26 Jason Rumney <jasonr@gnu.org>
8894
8895 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8896 leading in font height. (Bug#879)
9196133b 8897
9f688acf
GM
88982008-11-26 Glenn Morris <rgm@gnu.org>
8899
8900 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8901 redefinition with ifdef. (Bug#1383)
8902
90d19aff
AR
89032008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8904
8905 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8906
4ccfa1c0 89072008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8908
8909 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8910 New EmacsView methods.
8911 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8912 Fixes bug #1048,1357,1414.
8913
89142008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8915
8916 Fix bug #1362.
8917 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8918 is not an indexed color.
8919 * nsterm.m (free_indexed_color): Add argument checking.
8920 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8921
e7d5ecb3
CY
89222008-11-24 Chong Yidong <cyd@stupidchicken.com>
8923
8924 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8925 Document confirm-after-completion value for
8926 minibuffer-completion-confirm.
8927
c285743c
JR
89282008-11-24 Jason Rumney <jasonr@gnu.org>
8929
8930 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8931 warning.
8932
b0857706
JR
89332008-11-23 Jason Rumney <jasonr@gnu.org>
8934
8935 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8936 restored before returning.
8937
8938 * w32font.c (check_face_name): New function.
8939 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8940 fonts. (Bug#642)
b0857706 8941
ee50ff07
MR
89422008-11-22 Martin Rudalics <rudalics@gmx.at>
8943
8944 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8945 confirm-nonexistent-file-or-buffer in doc-string.
8946
b8ff72fa
SM
89472008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8948
8949 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8950 Fix copy/paste typo. Add checks.
8951
cee53ed4
KH
89522008-11-21 Kenichi Handa <handa@m17n.org>
8953
8954 * coding.c (detect_coding_iso_2022): Reject invalid composition
8955 sequence.
8956 (DECODE_COMPOSITION_START): If the current source is the last
8957 block, and the current composition doesn't end, regard this
8958 sequence as invalid.
8959 (decode_coding_iso_2022): Handle invalid composition sequence.
8960
f6ef1e65
MR
89612008-11-20 Martin Rudalics <rudalics@gmx.at>
8962
8963 * window.c (coordinates_in_window): Don't return
8964 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8965 line when the window is not the rightmost one. (Bug#1372)
8966
e08b1705
MR
89672008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8968
8969 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8970
ad98e89f
EZ
89712008-11-15 Eli Zaretskii <eliz@gnu.org>
8972
8973 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8974 and bright_bg if noninteractive is non-zero.
8975
fb098a4b
CY
89762008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8977
8978 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8979 x_draw_glyph_string_background.
8980
8981 * w32term.c (x_draw_glyph_string): Likewise.
8982
ce952b6e
CY
89832008-11-15 Chong Yidong <cyd@stupidchicken.com>
8984
8985 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8986 the next glyph string once past the overhang width.
8987
8988 * nsterm.m (ns_draw_glyph_string): Likewise.
8989
8990 * w32term.c (x_draw_glyph_string): Likewise.
8991
26ea7079
CY
89922008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8993
8994 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8995 double file close.
8996
1c33c906
MR
89972008-11-14 Martin Rudalics <rudalics@gmx.at>
8998
8999 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9000 dedicated status of window before attempting to display another
9001 buffer in it.
9002
8fc29035
JB
90032008-11-14 Juanma Barranquero <lekktu@gmail.com>
9004
9005 * msdos.c (Fmsdos_long_file_names):
9006 (syms_of_msdos) <dos-unsupported-char-glyph>:
9007 * dosfns.c (Fint86): Fix typos in docstrings.
9008
55fb4286
EZ
90092008-11-14 Eli Zaretskii <eliz@gnu.org>
9010
9011 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9012
3fda0315
KY
90132008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9014
9015 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9016
7e849c17
CY
90172008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9018
9019 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9020
9021 * frame.h: Negative alpha means "don't touch".
9022
9023 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9024
9025 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9026
b9fd67bd
DN
90272008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9028
9029 * hftctl.c:
9030 * chpdef.h:
9031 * acldef.h: Remove files used only for systems no longer supported.
9032
9033 * Makefile.in: Fix .o alphabetical ordering.
9034 (hftctl.o): Remove dependency, file removed.
9035 (keymap.o, print.o): Depend on charset.h.
9036
d5998e03
KH
90372008-11-10 Kenichi Handa <handa@m17n.org>
9038
2ae37cf0 9039 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9040
be70e183
CY
90412008-11-08 Chong Yidong <cyd@stupidchicken.com>
9042
9043 * dired.c (file_name_completion): If completion_ignore_case is
9044 enabled, ignore case when checking completion-regexp-list.
9045
7cf94eac
EZ
90462008-11-08 Eli Zaretskii <eliz@gnu.org>
9047
9048 * vm-limit.c (get_lim_data): Fix last change.
9049
ee107a89
KH
90502008-11-08 Kenichi Handa <handa@m17n.org>
9051
9052 * character.c (Fget_byte): New function.
9053 (syms_of_character): Defsubr Fget_byte.
9054
5fd15622
CY
90552008-11-07 Chong Yidong <cyd@stupidchicken.com>
9056
9057 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9058 cursor position is valid after scrolling.
9059
13d62fad
JB
90602008-11-06 Juanma Barranquero <lekktu@gmail.com>
9061
9062 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9063
a1dd2936
GM
90642008-11-06 Glenn Morris <rgm@gnu.org>
9065
9066 * xterm.c (handle_one_xevent): Don't let popup menus cause
9067 mouse-autoselect-window related window switching. (Bug#1261)
9068
860cd236
CY
90692008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9070
9071 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9072
653a3150
AS
90732008-11-04 Andreas Schwab <schwab@suse.de>
9074
9075 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9076
870f5cac
CY
90772008-11-03 Chong Yidong <cyd@stupidchicken.com>
9078
9079 * xfns.c (Fx_wm_set_size_hint): New function.
9080
1e02f3cb
MR
90812008-11-03 Martin Rudalics <rudalics@gmx.at>
9082
9083 * textprop.c (Fprevious_single_char_property_change): Return 0
9084 when there's no change in a string. (Bug#1301)
9085
e630dfc6
MR
90862008-11-02 Martin Rudalics <rudalics@gmx.at>
9087
9088 * frame.c (do_switch_frame): New argument NORECORD passed to
9089 Fselect_window.
9090 (Fselect_frame): New argument NORECORD passed to
9091 do_switch_frame.
9092 (Fset_frame_selected_window): New argument NORECORD passed to
9093 Fselect_frame.
9094 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9095 in call of do_switch_frame.
9096 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9097 Handle NORECORD argument in call of Fselect_frame.
9098 * lisp.h (do_switch_frame, Fselect_frame)
9099 (Fset_frame_selected_window): Adjust declarations.
9100 * window.c (select_frame_norecord): New function.
9101 (run_window_configuration_change_hook): Use it and call
9102 Fselect_frame with NORECORD set.
9103 (Fselect_window): Pass NORECORD to Fselect_frame.
9104 (Fset_window_configuration): Handle NORECORD argument in call of
9105 do_switch_frame.
9106 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9107 Fset_frame_selected_window.
9108 * keyboard.c (command_loop_1): Handle NORECORD in call of
9109 Fselect_frame (currently ifdefd).
9110
9020b223
GM
91112008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9112
9113 * emacs.c (USAGE2): Untabify.
9114
793ffee8
SM
91152008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9116
9117 * composite.c (fill_gstring_header): Fix copy/paste typo.
9118
ab6d1131
MR
91192008-10-31 Martin Rudalics <rudalics@gmx.at>
9120
9121 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9122 (Fother_window): Rename argument and rewrite doc-string.
9123 (select_window_norecord): Fix return value. (Bug#1276)
9124
601a9cf1
JB
91252008-10-30 Juanma Barranquero <lekktu@gmail.com>
9126
9127 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9128 new frames overriding foreground for tooltips. Based on similar patch
9129 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9130
813b0652
CY
91312008-10-29 Chong Yidong <cyd@stupidchicken.com>
9132
9133 * emacs.c (Fdaemon_initialized): Initialize nfd.
9134
4414f58f
MR
91352008-10-29 Martin Rudalics <rudalics@gmx.at>
9136
9137 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9138 (Fwindow_text_height): Clarify doc-strings.
9139 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9140 doc-string of window-scroll-functions.
9141
ecdcaa09
RS
91422008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9143
9144 * category.c (syms_of_category): Fix typo in docstring.
9145
23fe745a
JB
91462008-10-28 Juanma Barranquero <lekktu@gmail.com>
9147
9148 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9149 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9150 Fix typos in docstrings.
9151
ff808935
DN
91522008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9153
9154 * emacs.c (daemon_pipe): Make non-static.
9155 (IS_DAEMON): Move definition ...
9156 * lisp.h (IS_DAEMON): ... here.
9157 (daemon_pipe): Declare.
9158 (is_daemon): Remove.
9159 * dispnew.c (init_display): Use IS_DAEMON.
9160
fc012771
SM
91612008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9162
9163 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9164 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9165
9166 * emacs.c (is_daemon): Remove.
9167 (main): Don't set is_daemon.
9168 (IS_DAEMON): New macro.
9169 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9170 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9171 parent exits.
9172 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9173
d8bdbe6f
CY
91742008-10-27 Chong Yidong <cyd@stupidchicken.com>
9175
d1a072bf
CY
9176 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9177 over-sized glyph, draw it with the default glyph width.
9178
e2e325aa
CY
9179 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9180 glyph, draw it with the default glyph width.
9181
9182 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9183 glyph, draw it with the default glyph width.
9184
d8bdbe6f
CY
9185 * xdisp.c (try_scrolling): When computing the distance from the
9186 scroll margin to PT, try moving some distance past the window
9187 bottom before giving up.
9188
7bfac547
MR
91892008-10-27 Martin Rudalics <rudalics@gmx.at>
9190
9191 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9192 (Fset_window_buffer): Explain in doc-string that a window can be
9193 "strongly" dedicated to its buffer.
9194
4ff029f6
DN
91952008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9196
9197 * emacs.c (daemon_name): New variable.
9198 (main): Deal with --daemon=SERVER_NAME.
9199 (Fdaemonp): Return a name if one was passed to --daemon.
9200
5790ef40
DN
92012008-10-26 Romain Francoise <romain@orebokech.com>
9202
f9bd0df9 9203 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9204 (main): Create a pipe before forking, make the parent exit only after
9205 the child has closed its end of the pipe. Move closing the
9206 descriptors ...
9207 (Fdaemon_initialized): ... here. New function.
9208
f5385255
SM
92092008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9210
4d632321
SM
9211 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9212 the previous unoptimized table.
9213
f5385255
SM
9214 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9215 the distinction between non-nil and non-t value of `dedicated'.
9216
6c56a0f3
CY
92172008-10-25 Chong Yidong <cyd@stupidchicken.com>
9218
9219 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9220 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9221
fec89261
MR
92222008-10-25 Martin Rudalics <rudalics@gmx.at>
9223
9224 * window.c (Fget_buffer_window, Fdelete_windows_on)
9225 (Freplace_buffer_in_windows): Make buffer argument optional and
9226 rename to buffer_or_name.
9227
34fcddd0
CY
92282008-10-24 Chong Yidong <cyd@stupidchicken.com>
9229
f5385255
SM
9230 * xdisp.c (handle_single_display_spec, handle_display_prop):
9231 Undo 2005-05-16 change.
34fcddd0
CY
9232 (handle_stop): Pop iterator if it's loaded with an empty string.
9233 (get_overlay_strings_1): Don't save iterator if it's loaded with
9234 an empty string (bug#1201).
9235
064766f2
KH
92362008-10-24 Kenichi Handa <handa@m17n.org>
9237
9238 * ftfont.c (ftfont_otf_features): Fix previous change.
9239 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9240 calling ftfont_otf_features.
9241
f9bd0df9 92422008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9243
9244 * font.c (font_match_p): Fix for the case that a vector of
9245 characters is in script-representative-chars.
9246
1dae9197
MA
92472008-10-24 Michael Albinus <michael.albinus@gmx.de>
9248
9249 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9250 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9251 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9252 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9253 macro. (Bug#1186)
1dae9197 9254
f9bd0df9 92552008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9256
9257 * s/sol2-10.h: New file.
9258
878a4584
JB
92592008-10-23 Juanma Barranquero <lekktu@gmail.com>
9260
9261 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9262 poor beast has survived 9+ years and the jump from xterm.c!).
9263
cd265ca6
MR
92642008-10-23 Martin Rudalics <rudalics@gmx.at>
9265
9266 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9267 Reword doc-string.
f5385255 9268 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9269
472a4dc9
JB
92702008-10-23 Juanma Barranquero <lekktu@gmail.com>
9271
9272 * character.c (syms_of_character) <script-representative-chars>:
9273 <unicode-category-table>: Doc fixes.
9274
159bd5a2
NF
92752008-10-23 Noah Friedman <friedman@splode.com>
9276
9277 * coding.c (make_conversion_work_buffer): Check that
9278 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9279 Fget_buffer_create.
9280
49f9c344
KH
92812008-10-23 Kenichi Handa <handa@m17n.org>
9282
9283 * font.c (font_add_log): Check the values of extra properties.
9284
12bb3111
MR
92852008-10-22 Martin Rudalics <rudalics@gmx.at>
9286
9287 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9288 Reword doc-string.
9289 (Fset_window_parameter): Use NILP.
9290 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9291 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9292
bbeb4e99
JB
92932008-10-22 Juanma Barranquero <lekktu@gmail.com>
9294
9295 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9296
92972008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9298
9299 * nsfns.m (ns_appkit_version): New function.
9300 (x-server-version): Use it.
9301 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9302 (x-server-vendor): Don't check_ns().
9303
9304 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9305
a9b555d3
JB
93062008-10-22 Juanma Barranquero <lekktu@gmail.com>
9307
9308 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9309 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9310
4626499f
KH
93112008-10-22 Kenichi Handa <handa@m17n.org>
9312
e3681952
KH
9313 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9314 scripts.
9315
4626499f
KH
9316 * category.c (word_boundary_p): Check scripts instead of charset.
9317 Handle nil value in word-separating-categories and
9318 word-combining-categories.
9319 (syms_of_category): Fix docstrings of word-separating-categories
9320 and word-combining-categories.
9321
1560f91a
EZ
93222008-10-21 Eli Zaretskii <eliz@gnu.org>
9323
9324 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9325 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9326
f4668441
MR
93272008-10-21 Martin Rudalics <rudalics@gmx.at>
9328
9329 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9330 Rename arg "buffer" to "buffer_or_name".
9331 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9332 it optional.
9333 (no_switch_window): Remove since the return value is not used.
a9b555d3 9334 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9335 Consider window as dedicated when Fwindow_dedicated_p returns a
9336 non-nil value.
9337 * lisp.h: Remove prototype for no_switch_window.
9338
fd75ddb2
JD
93392008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9340
9341 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9342 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9343
07295713
KH
93442008-10-21 Kenichi Handa <handa@m17n.org>
9345
9346 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9347 check Vlatin_extra_code_table.
9348
712adc82
EZ
93492008-10-20 Eli Zaretskii <eliz@gnu.org>
9350
9351 * fileio.c (Fset_file_modes): Doc fix.
9352
f549eb0b
MA
93532008-10-19 Michael Albinus <michael.albinus@gmx.de>
9354
9355 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9356 in arrays.
9357
aac0c6e3
MR
93582008-10-19 Martin Rudalics <rudalics@gmx.at>
9359
9360 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9361 Mention kill-buffer in doc-string.
9362 (Fset_window_buffer): Reinsert tem check removed in last commit.
9363 (Fenlarge_window, Fshrink_window): Have argument names and
9364 doc-string follow Elisp manual more closely.
9365
93662008-10-18 Eli Zaretskii <eliz@gnu.org>
9367
9368 * fileio.c (Fset_file_modes): Doc fix.
9369
93702008-10-18 Martin Rudalics <rudalics@gmx.at>
9371
9372 * window.c (Fwindow_width, Fset_window_start)
9373 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9374 (Fdelete_windows_on, Freplace_buffer_in_windows):
9375 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9376 (Fwindow_dedicated_p): Make window argument optional.
9377 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9378 (Fset_window_buffer): Respect any non-nil dedicated value for
9379 window. Rename "buffer" argument to "buffer_or_name".
9380
93812008-10-18 Ulrich Mueller <ulm@gentoo.org>
9382
9383 * m/sh3.h: New file, machine description for SuperH.
9384
93852008-10-17 Martin Rudalics <rudalics@gmx.at>
9386
9387 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9388
93892008-10-17 Kenichi Handa <handa@m17n.org>
9390
9391 * ftfont.c (ftfont_otf_features): Fix indexing
9392 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9393
93942008-10-16 Magnus Henoch <mange@freemail.hu>
9395
9396 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9397 (Fdbus_call_method_asynchronously): Ditto.
9398 This change makes C-h f display the argument list.
9399
94002008-10-16 Chong Yidong <cyd@stupidchicken.com>
9401
9402 * fileio.c (Fexpand_file_name): Doc fix.
9403
9404 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9405 of :foreground and :background equivalent to unspecified (20.x
9406 compatibility).
9407
94082008-10-15 Eli Zaretskii <eliz@gnu.org>
9409
9410 * buffer.c (syms_of_buffer): Doc fix.
9411
94122008-10-14 Kenichi Handa <handa@m17n.org>
9413
9414 * font.c (font_clear_prop): When clearing font width, clear the
9415 average width field too.
9416
94172008-10-12 Andreas Schwab <schwab@suse.de>
9418
9419 * ftfont.c (ftfont_shape_by_flt): Make static.
9420 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9421
9422 * font.c: Don't include <m17n-flt.h>.
9423
94242008-10-10 Eli Zaretskii <eliz@gnu.org>
9425
9426 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9427
94282008-10-09 Eli Zaretskii <eliz@gnu.org>
9429
9430 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9431 away code.
9432
94332008-10-09 Chong Yidong <cyd@stupidchicken.com>
9434
9435 * dispnew.c (update_text_area): Avoid looping due to large glyph
9436 overhangs (bug#1070).
9437
94382008-10-09 Kenichi Handa <handa@m17n.org>
9439
9440 * fontset.c (face_for_char): If face->fontset is negative, just
9441 return ascii_face.
9442
f5385255
SM
9443 * font.c (font_delete_unmatched): Fix previous change.
9444 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9445
94462008-10-09 Martin Rudalics <rudalics@gmx.at>
9447
9448 * frame.c (Fraise_frame): On text-only terminals select frame in
9449 order to make it visible. (Bug#1061)
9450
94512008-10-08 Chong Yidong <cyd@stupidchicken.com>
9452
9453 * fontset.c (fontset_find_font): Check frame validity.
9454
94552008-10-07 Chong Yidong <cyd@stupidchicken.com>
9456
a9b555d3 9457 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9458 (xg_display_close): Allow Emacs to close all displays (bug#985).
9459
94602008-10-06 Andreas Schwab <schwab@suse.de>
9461
f5385255 9462 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9463
94642008-10-06 Chong Yidong <cyd@stupidchicken.com>
9465
f5385255 9466 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9467
a9b555d3 9468 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9469
9470 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9471 during initialization.
9472
94732008-10-04 Eli Zaretskii <eliz@gnu.org>
9474
9475 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9476 whole thing on MSDOS frames as well as on a TTY.
9477
9478 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9479 well as for TTY.
9480 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9481 well as on a TTY.
9482
9483 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9484 as well as for TTY.
9485
9486 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9487
9488 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9489 MSDOS frames as well.
9490
94912008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9492
9493 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9494 correct arguments.
b71ac3dd 9495 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9496
94972008-10-03 Glenn Morris <rgm@gnu.org>
9498
9499 * emacs.c (USAGE1): Add --daemon.
9500
95012008-10-02 Eli Zaretskii <eliz@gnu.org>
9502
9503 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9504 100, so it's in percents as advertised.
9505
95062008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9507
9508 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9509 (ns_output.current_cursor, ns_output.desired_cursor)
9510 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9511 (FRAME_NEW_CURSOR_COLOR): Remove.
9512
9513 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9514 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9515 enumeration (HOLLOW_BOX_CURSOR, etc.).
9516
9517 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9518 (draw_window_cursor): Simplify code.
f5385255
SM
9519 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9520 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9521 updates manually.
a9b555d3
JB
9522 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9523 Use core Emacs cursor types.
aac0c6e3 9524
b8ff72fa 9525 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9526
95272008-10-02 Martin Rudalics <rudalics@gmx.at>
9528
9529 * process.c (Faccept_process_output): Fix doc-string.
9530
95312008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9532
9533 * gmalloc.c (__sbrk): Also define for uClibc.
9534
9535 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9536 for uClibc.
9537
95382008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9539
9540 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9541 styles.
9542 (nsfont_open): Reenable the cache.
9543
95442008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9545
9546 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9547 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9548
95492008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9550
9551 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9552 a suspended terminal.
9553
95542008-09-30 Michael Albinus <michael.albinus@gmx.de>
9555
9556 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9557
95582008-09-30 Eli Zaretskii <eliz@gnu.org>
9559
9560 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9561
95622008-09-30 Chong Yidong <cyd@stupidchicken.com>
9563
9564 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9565 in a continued line coincides with a line beginning.
9566
95672008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9568
9569 * nsfont.m (nsfont_trait_distance): Fix bug.
9570 (nsfont_list): Return a list rather than a vector (syncs with Handa
9571 changes of 2008-05-14).
9572 (nsfont_open): Improve logging.
9573
95742008-09-29 Andreas Schwab <schwab@suse.de>
9575
9576 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9577
95782008-09-28 Martin Rudalics <rudalics@gmx.at>
9579
9580 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9581 name as char-resolve-modifiers.
9582 Reported by: Markus Triska <markus.triska@gmx.at>
9583
95842008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9585
9586 * dispnew.c (init_display): Return earlier when running as a daemon.
9587
95882008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9589
9590 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9591
95922008-09-27 Eli Zaretskii <eliz@gnu.org>
9593
9594 * composite.c (Fcomposition_get_gstring)
9595 (Fcompose_region_internal, Fcompose_string_internal)
9596 (Ffind_composition_internal): Doc fix.
9597 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9598 (syms_of_composite) <auto-composition-function>: Doc fix.
9599 (syms_of_composite) <composition-function-table>: Doc fix.
9600
96012008-09-25 Chong Yidong <cyd@stupidchicken.com>
9602
9603 * search.c (wordify): New argument for lax word-ends.
9604 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9605
96062008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9607
9608 * lisp.h (is_daemon): Declare.
9609 * dispnew.c (init_display): Do not try to initialize the terminal
9610 when running as a daemon.
9611
96122008-09-22 Chong Yidong <cyd@stupidchicken.com>
9613
9614 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9615 x_display_pixel_height.
9616
96172008-09-22 Martin Rudalics <rudalics@gmx.at>
9618
9619 * undo.c (record_point): Don't call Fundo_boundary for first
9620 change. (Bug#731)
9621
96222008-09-22 Juanma Barranquero <lekktu@gmail.com>
9623
9624 * emacs.c (Fdaemonp): Doc fix.
9625
96262008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9627
9628 * emacs.c (main): Place #ifdef in the proper place.
9629
96302008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9631
9632 * emacs.c (standard_args): Add --daemon.
9633 (main): Disconnect from the terminal when --daemon is passed.
9634 (is_daemon): New variable.
9635 (Fdaemonp): New function.
9636 (syms_of_emacs): Defsubr it.
9637
96382008-09-20 Chong Yidong <cyd@stupidchicken.com>
9639
9640 * xdisp.c (get_next_display_element): Handle string display
9641 correctly when checking for the end of a box run.
9642
96432008-09-20 Glenn Morris <rgm@gnu.org>
9644
9645 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9646 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9647 (Frename_file): Avoid copying to trash if a rename involves
9648 a delete. (Bug#964).
9649
96502008-09-20 Eli Zaretskii <eliz@gnu.org>
9651
9652 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9653 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9654 frames as well as termcap frames.
9655 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9656 get_named_tty.
9657
96582008-09-19 Eli Zaretskii <eliz@gnu.org>
9659
9660 * process.c (procfs_system_process_attributes): Fix cmdline in
9661 case /proc/PID/cmdline is empty.
9662
9663 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9664 x_display_pixel_height.
9665
96662008-09-19 Juanma Barranquero <lekktu@gmail.com>
9667
9668 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9669
9670 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9671 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9672
96732008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9674
9675 * dispextern.h (struct it): Move line_wrap away from the middle of
9676 bitfields. Move voffset in struct iterator_stack_entry after the
9677 bitfields. Move tab_width near after another short.
9678
96792008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9680
9681 * frame.h (struct frame): Move alpha from the middle of bitfields.
9682
9683 * window.h (struct window): Move frozen_window_start_p after the
9684 rest of the bitfields to reduce padding.
9685
96862008-09-18 Chong Yidong <cyd@stupidchicken.com>
9687
9688 * xterm.h (x_display_info): Remove `height' and `width' members.
9689
9690 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9691
9692 * w32term.h (w32_display_info): Remove `height', `width',
9693 `height_in', and `width_in' members.
9694
b8ff72fa
SM
9695 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9696 New functions.
aac0c6e3
MR
9697 (x_calc_absolute_position): Use them.
9698 (x_term_init): Omit removed `height' and `width' members.
9699
b8ff72fa
SM
9700 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9701 New functions.
aac0c6e3
MR
9702 (w32_read_socket, x_calc_absolute_position): Use them.
9703 (w32_initialize_display_info, w32_term_init): Omit removed members
9704 of w32_display_info.
9705
b8ff72fa
SM
9706 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9707 New functions.
9708 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9709
b8ff72fa
SM
9710 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9711 New functions.
aac0c6e3
MR
9712 (x_calc_absolute_position): Use them.
9713 (x_term_init): Omit removed `height' and `width' members.
9714
9715 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9716 (compute_tip_xy):
9717 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9718 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9719 x_display_pixel_width.
9720
97212008-09-18 Kenichi Handa <handa@m17n.org>
9722
9723 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9724 (composition_compute_stop_pos): Fix handling of static composition.
9725 (Fcomposition_get_gstring): Check FROM and TO at first.
9726
97272008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9728
46e722a9 9729 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9730 mixup (YAILOM).
9731
97322008-09-17 Chong Yidong <cyd@stupidchicken.com>
9733
9734 * indent.c (Fvertical_motion): Use position reported by iterator
9735 instead of PT for determining screen motion (bug#943).
9736
97372008-09-17 Romain Francoise <romain@orebokech.com>
9738
9739 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9740
97412008-09-17 Kenichi Handa <handa@m17n.org>
9742
9743 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9744
9745 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9746 if necessary.
9747
97482008-09-16 Kenichi Handa <handa@m17n.org>
9749
9750 * coding.c (make_conversion_work_buffer): Avoid calling
9751 Fget_buffer_create if it is not necessary.
9752
97532008-09-15 Martin Rudalics <rudalics@gmx.at>
9754
9755 * window.c (Fselect_window): Don't update window_select_count and
9756 use_time when norecord is not nil.
9757
97582008-09-14 Kenichi Handa <handa@m17n.org>
9759
9760 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9761 specpdl_ptr.
9762
97632008-09-12 Kenichi Handa <handa@m17n.org>
9764
9765 * indent.c (scan_for_column): Don't handle automatic composition
9766 if the current buffer is not associated with a window.
9767
9768 * composite.c (composition_reseat_it): If the current buffer is
9769 not associated with a window, ignore the automatic composition.
9770 (find_automatic_composition): Likewise.
9771
97722008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9773
9774 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9775 (Fgpm_mouse_stop): Use it.
9776 * termhooks.h (close_gpm): Declare.
9777 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9778 connection if Gpm_GetEvent fails.
9779
9780 * window.c (set_window_buffer): Always preserve current-buffer.
9781
97822008-09-12 Glenn Morris <rgm@gnu.org>
9783
9784 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9785
97862008-09-11 Glenn Morris <rgm@gnu.org>
9787
9788 * charset.c (charset-map-path): Doc fix.
9789
97902008-09-10 Kenichi Handa <handa@m17n.org>
9791
9792 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9793
9794 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9795 compose a grapheme cluster with the preceding base glyph.
9796
9797 * composite.c (composition_compute_stop_pos): Fix previous change.
9798 Reset cmp_it->id to -1 at first.
9799
98002008-09-10 Glenn Morris <rgm@gnu.org>
9801
9802 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9803
98042008-09-09 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * keyboard.c (read_key_sequence): Reapply translation maps when
9807 switching keyboards.
9808
98092008-09-09 Kenichi Handa <handa@m17n.org>
9810
9811 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9812 characters.
9813
9814 * composite.c (FORWARD_CHAR): Fix calculation
9815 of (POSITION).pos_byte.
9816 (composition_compute_stop_pos): Limit the search of composition to
9817 at most 500 characters ahead. If we reach the limit or find a
9818 newline, set cmp_it->ch to -2 and return 0.
9819 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9820
98212008-09-08 Kenichi Handa <handa@m17n.org>
9822
9823 * indent.c (Fvertical_motion): Be sure to set
9824 it_overshoot_expected if it.cmp_it.id is non-negative.
9825
98262008-09-07 Andreas Schwab <schwab@suse.de>
9827
9828 * callproc.c (Fcall_process): Don't hold references to string data
9829 across garbage collection. Move initialisation of new_argv down
9830 to avoid compiler bug.
9831
98322008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9833
9834 * process.c (Fsystem_process_attributes): Doc fix.
9835
98362008-09-07 Chong Yidong <cyd@stupidchicken.com>
9837
9838 * callproc.c (Fcall_process): Canonicalize current directory name.
9839
9840 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9841 iterator advances to the next line if the current line ends in a
9842 continued tab.
9843
98442008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9845
9846 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9847 member to point to cmp_from.
9848
9849 * xdisp.c: Doc fix for references to gidx data member.
9850
98512008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9852
9853 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9854
98552008-09-07 Kenichi Handa <handa@m17n.org>
9856
9857 * composite.c (FORWARD_CHAR): Check STOP after
9858 incrementing (POSITION).pos.
9859
98602008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9861
9862 * process.c (Fsystem_process_attributes): Doc fix.
9863
98642008-09-06 Chong Yidong <cyd@stupidchicken.com>
9865
9866 * keyboard.c (Ftop_level): Doc fix.
9867
98682008-09-06 Eli Zaretskii <eliz@gnu.org>
9869
9870 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9871 minibuffer, don't let lower part of menu invade the echo area.
9872
9873 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9874 "char *q" to access menu text and advance through it. Revert the
9875 change that displayed ">" instead of ASCII character 0x10.
9876
98772008-09-05 Eli Zaretskii <eliz@gnu.org>
9878
9879 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9880 toggle boxes and radio buttons on MS-DOS as well.
9881
98822008-09-05 Kenichi Handa <handa@m17n.org>
9883
9884 * composite.c (autocmp_chars): Check lookback count.
9885 (composition_compute_stop_pos): Set cmp_it->lookback.
9886 (composition_reseat_it): Check lookback count.
9887 (struct position_record): New struct.
9888 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9889 (find_automatic_composition): New function.
9890 (composition_adjust_point): Use find_automatic_composition.
9891
9892 * dispextern.h (struct composition_it): New member lookback.
9893
98942008-09-02 Chong Yidong <cyd@stupidchicken.com>
9895
9896 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9897 if moving by a single line.
9898
98992008-09-02 Andreas Schwab <schwab@suse.de>
9900
9901 * xterm.c (x_delete_display): Fix merge error.
9902
9903 * fileio.c (Fexpand_file_name): Remove unused variables.
9904
99052008-09-02 Eli Zaretskii <eliz@gnu.org>
9906
9907 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9908 storage on all platforms, not just on DOS_NT.
9909
99102008-09-02 Jason Rumney <jasonr@gnu.org>
9911
b8ff72fa
SM
9912 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9913 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9914
99152008-09-01 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * xfaces.c (Finternal_set_alternative_font_family_alist)
9918 (Finternal_set_alternative_font_registry_alist): Properly copy
9919 entire alist structure.
9920
99212008-09-01 Kenichi Handa <handa@m17n.org>
9922
d66c0241 9923 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9924 representative chars of the script is a vector.
d66c0241
JB
9925 (ftfont_list): Handle the case where the representative chars of
9926 the script is a vector.
aac0c6e3
MR
9927
9928 * character.c (syms_of_character): Docstring of
9929 script-representative-chars fixed.
9930
99312008-08-31 Eli Zaretskii <eliz@gnu.org>
9932
9933 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9934 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9935 the menu. Allocate larger buffer for `text', to account for
9936 possible ^C characters.
9937
99382008-08-31 Martin Rudalics <rudalics@gmx.at>
9939
9940 * xdisp.c (prepare_menu_bars): Don't call
9941 Vwindow_size_change_functions with arg Qt.
9942
99432008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9944
9945 * font.h (font_range):
9946 * fileio.c (report_file_error):
46e722a9
SM
9947 * composite.c (composition_update_it): Yet another int/Lisp_Object
9948 mixup (YAILOM).
aac0c6e3
MR
9949
99502008-08-30 Glenn Morris <rgm@gnu.org>
9951
9952 * data.c (Fmake_variable_frame_local): Doc fix.
9953
9954 * frame.c (Fmodify_frame_parameters): Doc fix.
9955
99562008-08-30 Eli Zaretskii <eliz@gnu.org>
9957
9958 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9959 needed by GetTokenInformation.
9960 (w32_system_process_attributes): Check return values of all system
9961 APIs.
9962
9963 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9964 only when the state changes.
9965 (IT_update_begin, IT_update_end): Add termscript trace.
9966
9967 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9968 clipboard is unavailable. Set dst to NULL if it doesn't point to
9969 malloc'ed data.
9970 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9971 passing random values to xfree.
9972
9973 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9974 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9975
99762008-08-29 Jason Rumney <jasonr@gnu.org>
9977
9978 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9979
99802008-08-29 Eli Zaretskii <eliz@gnu.org>
9981
9982 * composite.c (fill_gstring_body): Avoid compiler warnings.
9983
9984 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9985 LGLYPH_SET_CODE to avoid compiler warnings.
9986
2ae37cf0 9987 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9988
9989 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9990
9991 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9992 LGLYPH_SET_CODE.
9993
99942008-08-29 Kenichi Handa <handa@m17n.org>
9995
9996 * fileio.c (report_file_error): Don't downcase the first character
9997 of errstring if it is still unibyte.
9998
99992008-08-29 Kenichi Handa <handa@m17n.org>
10000
10001 These changes are to re-implement the automatic composition so
10002 that it doesn't use text properties.
10003
10004 * Makefile.in (ftfont.o): Depend on composite.h.
10005 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10006
10007 * character.h (Vunicode_category_table): Extern it.
10008
10009 * character.c (Vunicode_category_table): New variable.
10010 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10011
10012 * chartab.c (optimize_sub_char_table): Perform more greedy
10013 optimization.
10014
b8ff72fa
SM
10015 * composite.h (enum composition_method):
10016 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10017 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10018 (Vcomposition_function_table): Extern it.
10019 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10020 (composition_gstring_put_cache, composition_gstring_from_id)
10021 (composition_gstring_p, composition_gstring_width)
10022 (composition_compute_stop_pos, composition_reseat_it)
10023 (composition_update_it, composition_adjust_point): Extern them.
10024 (Fcomposition_get_gstring): EXFUN it.
10025
d66c0241 10026 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10027 (Vcomposition_function_table)
10028 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10029 (gstring_hash_table, gstring_work, gstring_work_headers):
10030 New variables.
aac0c6e3
MR
10031 (gstring_lookup_cache, composition_gstring_put_cache)
10032 (composition_gstring_from_id, composition_gstring_p)
10033 (composition_gstring_width, fill_gstring_header)
10034 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10035 (composition_reseat_it, composition_update_it)
b8ff72fa 10036 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10037 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10038 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10039 Defsubr composition_get_gstring.
aac0c6e3
MR
10040
10041 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10042 cmp_id.
10043 (struct glyph_string): Delete the member gidx. New members
10044 cmp_id, cmp_from, and cmp_to.
10045 (enum it_method): Delete GET_FROM_COMPOSITION.
10046 (struct composition_it): New struct.
10047 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10048 Delete c, len, cmp_id, cmp_len in u.comp.
10049
10050 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10051 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10052 (enum lglyph_indices): Likewise.
b8ff72fa 10053 (font_range): Adjust extern.
aac0c6e3
MR
10054 (font_fill_lglyph_metrics): Extern it.
10055
10056 * font.c (QCf): New variable.
10057 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10058 (font_prepare_composition): Delete this function.
10059 (font_range): Type and arguments changed.
10060 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10061 (font_fill_lglyph_metrics): New function.
b8ff72fa 10062 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10063 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10064 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10065 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10066
10067 * fontset.h (font_for_char): Extern it.
10068
10069 * fontset.c (font_for_char): New function.
10070
10071 * ftfont.c: Include composite.h.
10072 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10073 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10074
10075 * indent.c: Include composite.h and dispextern.h.
10076 (check_composition): Delete this function.
10077 (scan_for_column): Handle composition by
10078 composition_compute_stop_pos, composition_reseat_it, and
10079 composition_update_it.
10080 (compute_motion): Likewise.
10081 (Fvertical_motion): Fix checking of composition.
10082
10083 * keyboard.c (adjust_point_for_property): Check composition by
10084 composition_adjust_point.
10085
b8ff72fa 10086 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10087 struct glyph_string.
10088
b8ff72fa
SM
10089 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10090 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10091 struct glyph.
10092 (produce_composite_glyph): Likewise.
10093
b8ff72fa
SM
10094 * w32term.c (x_draw_composite_glyph_string_foreground):
10095 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10096 (x_draw_glyph_string): Likewise.
10097
10098 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10099 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10100
10101 * xdisp.c: Include font.h.
10102 (it_props): Delete the entry for Qauto_composed.
10103 (init_iterator): Initialize it->cmp_it.id to -1.
10104 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10105 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10106 (handle_auto_composed_prop): Delete it.
10107 (handle_composition_prop): Handle only static composition.
10108 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10109 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10110 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10111 (pop_it): Likewise.
10112 (get_next_element): Delete next_element_from_composition.
10113 (CHAR_COMPOSED_P): New macro.
10114 (get_next_display_element): For automatic composition, get a face
10115 from the font in the glyph-string.
10116 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10117 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10118 (next_element_from_string): Check if the character at the current
10119 position is composed by CHAR_COMPOSED_P.
10120 (next_element_from_buffer): Likewise.
d66c0241
JB
10121 (next_element_from_composition): Adjust for the change of struct it.
10122 Update it->cmp_it.
b8ff72fa
SM
10123 (dump_glyph): Adjust for the change of struct glyph.
10124 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10125 it and struct glyph. Don't handle automatic composition here.
10126 (fill_gstring_glyph_string): New function.
10127 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10128 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10129 (BUILD_GSTRING_GLYPH_STRING): New macro.
10130 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10131 automatic composition.
b8ff72fa 10132 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10133 struct glyph.
b8ff72fa 10134 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10135
b8ff72fa 10136 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10137 the change of struct glyph_string.
10138 (x_draw_glyph_string): Likewise.
10139
101402008-08-29 Glenn Morris <rgm@gnu.org>
10141
10142 * buffer.c (word-wrap): Doc fix.
10143 * xdisp.c (truncate-partial-width-windows): Doc fix.
10144 Increase default to 50.
10145
101462008-08-29 Chong Yidong <cyd@stupidchicken.com>
10147
10148 * xdisp.c (update_tool_bar_unwind): New function.
10149 (update_tool_bar): Temporarily set selected frame before building
10150 tool-bar items.
10151
101522008-08-28 Michael Albinus <michael.albinus@gmx.de>
10153
10154 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10155 snprintf, respectively.
10156 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10157
101582008-08-28 Chong Yidong <cyd@stupidchicken.com>
10159
10160 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10161 LDFLAGS to GNUstep CC invocation.
10162
101632008-08-27 Chong Yidong <cyd@stupidchicken.com>
10164
10165 * indent.c (Fvertical_motion): Revert last change. Handle the
10166 general case where we are moving forward, and PT spans multiple
10167 screen lines.
10168
10169 * eval.c (find_handler_clause): Temporarily increase
10170 max-lisp-eval-depth while printing the backtrace buffer, to
10171 guarantee that help-mode code can run.
10172
101732008-08-27 Eli Zaretskii <eliz@gnu.org>
10174
10175 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10176 colors under -rv.
10177 (IT_set_frame_parameters): Don't swap foreground and background
10178 colors if `(reverse . t)' is present in the frame properties.
10179 (internal_terminal_init): Call init_frame_faces only for the
10180 initial frame.
10181
101822008-08-27 Andreas Schwab <schwab@suse.de>
10183
10184 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10185
101862008-08-27 Andreas Schwab <schwab@suse.de>
10187
10188 * search.c (search_buffer): Set char_base to zero only at the end.
10189
101902008-08-27 Kenichi Handa <handa@m17n.org>
10191
b8ff72fa 10192 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10193
101942008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10195
10196 * xterm.c (x_term_init): Temporarily hide the partially
10197 initialized terminal while calling vendor-specific-keysyms.
10198
101992008-08-26 Eli Zaretskii <eliz@gnu.org>
10200
10201 * msdos.c (internal_terminal_init): Most initializations done only
10202 once, especially initial_screen_colors[] and termscript open.
10203
102042008-08-26 Chong Yidong <cyd@stupidchicken.com>
10205
10206 * eval.c (Fcondition_case): Doc fix.
10207
10208 * widgetprv.h (EmacsFramePart): Change font member to the new font
10209 struct.
10210
10211 * widget.c: Include character.h and font.h for XSETFONT.
10212 (setup_frame_gcs): Compute X font id from font struct, just once.
10213
102142008-08-26 Eli Zaretskii <eliz@gnu.org>
10215
10216 * term.c (get_named_tty): Fix last change.
10217
102182008-08-26 Chong Yidong <cyd@stupidchicken.com>
10219
10220 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10221 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10222
102232008-08-25 Eli Zaretskii <eliz@gnu.org>
10224
10225 * frame.c (do_switch_frame): Mark previously displayed frame as
10226 obscured for FRAME_MSDOS_P frames as well.
10227
102282008-08-24 Eli Zaretskii <eliz@gnu.org>
10229
10230 * frame.c (make_terminal_frame): Initialize f->terminal,
10231 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10232 Set the top frame to newly created frame.
10233 (Fmake_terminal_frame): Reuse the_only_display_info.
10234
10235 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10236 estimating available memory.
10237
b97439ce 102382008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10239
10240 * nsterm.m (ns_draw_window_cursor): Don't call
10241 NSDisableScreenUpdates and NSEnableScreenUpdates on
10242 non-NS_IMPL_COCOA systems.
10243
102442008-08-23 Andreas Schwab <schwab@suse.de>
10245
10246 * process.c (procfs_system_process_attributes): Fix use of
10247 uninitialized variables.
10248
102492008-08-23 Eli Zaretskii <eliz@gnu.org>
10250
10251 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10252
10253 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10254 calling tty-set-up-initial-frame-faces.
10255
b8ff72fa
SM
10256 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10257 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10258
10259 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10260 addition to output_termcap.
10261
10262 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10263
10264 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10265 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10266 highlight.
10267
10268 * process.c [!subprocesses]: Define QCname.
10269 (syms_of_process): Intern and staticpro it.
10270
10271 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10272 Adjust for changes in encoding/decoding routines.
10273 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10274 encode_coding and decode_coding.
10275
b8ff72fa 10276 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10277
10278 * dosfns.c: Include frame.h before termhooks.h.
10279 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10280 variable termscript.
10281
10282 * s/msdos.h (USER_FULL_NAME): Define.
10283 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10284
10285 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10286 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10287 pw->pw_gecos.
10288
10289 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10290 SELECTED_FRAME as additional (1st) argument.
10291 (tty_read_avail_input): Handle output_msdos_raw in
10292 addition to output_termcap.
10293
10294 * msdos.c: Include frame.h before termhooks.h.
10295 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10296 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10297 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10298 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10299 (IT_set_terminal_modes, IT_reset_terminal_modes)
10300 (IT_set_frame_parameters): Use tty->termscript instead of a global
10301 variable termscript.
10302 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10303 global variable terminal_coding. Don't refer to
10304 Vnonascii_translation_table.
10305 (internal_terminal_init): Set Vwindow_system in current_kboard.
10306 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10307 Announce date and time of session start, if termscript is open.
10308 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10309 term.c:init_tty). Open termscript only of not already open.
10310 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10311 here instead of dos_ttraw. Don't initialize display if this is an
10312 initial tty. Don't set FRAME_FONT.
10313 (Vwindow_system_version): Bump to 23.
10314 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10315 is available, set up mouse_position_hook.
10316 (dos_ttraw, IT_set_terminal_modes): If called with initial
10317 terminal, do nothing.
10318 (IT_set_frame_parameters): Handle the Qtty_type frame
10319 parameter by calling internal_terminal_init.
10320 (dos_set_window_size, show_mouse_face)
10321 (clear_mouse_face, IT_note_mode_line_highlight)
10322 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10323 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10324 (initialize_msdos_display): New function.
10325 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10326 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10327 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10328 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10329 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10330 (request_sigio, unrequest_sigio): Don't define, now defined on
10331 sysdep.c.
10332 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10333
10334 * term.c [MSDOS]: Include msdos.h.
10335 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10336 conditional to DOS_NT. Allow only one call to this function in a
10337 session. Don't allocate a new struct tty_display_info; instead,
10338 reuse the_only_display_info. Call get_tty_size to get screen
10339 dimensions. Call init_baud_rate to set bad_rate.
10340 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10341 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10342 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10343 (get_tty_terminal, get_named_tty, Ftty_type)
10344 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10345 output_termcap.
b8ff72fa
SM
10346 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10347 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10348 only when subprocesses are supported.
aac0c6e3
MR
10349
10350 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10351 f->output_data.x.
10352 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10353 terminal devices.
10354
5582fbc7 10355 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10356 x_output.
10357 (FRAME_FONT): Use output_data.tty.
10358 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10359 (struct x_display_info): Rename from display_info. Update all users in
10360 msdos.c.
aac0c6e3 10361 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10362 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10363 (dos_ttraw): Update prototype.
10364
10365 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10366 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10367
103682008-08-23 Jason Rumney <jasonr@gnu.org>
10369
10370 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10371 (fn_TIFFSetDirectory): New library function used.
10372 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10373 (tiff_load): Use :index to select among multiple images. Set count
10374 property when multiple images exist.
10375 (gif_format): Use :index, not :image.
10376
103772008-08-23 Chong Yidong <cyd@stupidchicken.com>
10378
10379 * xdisp.c (try_scrolling): Check INT_MAX instead of
10380 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10381 to obtain INT_MAX.
10382
103832008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10384
10385 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10386
103872008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10388
10389 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10390 GNUstep library location.
10391
103922008-08-21 Chong Yidong <cyd@stupidchicken.com>
10393
10394 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10395 before using it.
10396
10397 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10398
103992008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10400
10401 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10402 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10403 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10404 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10405 (EmacsApp-cursor_blink_handler): Remove declaration.
10406 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10407 match 01 Feb 2008 changes in xterm.c.
10408 (ns_read_socket): Add cast to avoid warning.
10409 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10410 GNUstep.
10411
104122008-08-20 Chong Yidong <cyd@stupidchicken.com>
10413
10414 * xselect.c (x_get_foreign_selection): Return nil if desired
10415 selection could not be obtained, instead of signalling an error.
10416
104172008-08-20 David Reitter <david.reitter@gmail.com>
10418
10419 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10420 * nsterm.m: Remove ns-specific code for cursor blinking.
10421 (ns_draw_window_cursor): Clear cursor properly rather than
10422 redrawing the area. Respect width of bar cursors.
10423 These changes enable the use of generic blink-cursor-mode and
10424 generic cursor types in NS and support smooth cursor movements (do
10425 not blink off after command).
10426 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10427 Nextstep, too.
10428
104292008-08-19 Kenichi Handa <handa@m17n.org>
10430
10431 * font.c (Vfont_log_deferred): New variable.
10432 (font_add_log): Check Vfont_log_deferred.
10433 (font_deferred_log): New function.
10434
10435 * font.h (font_deferred_log): Extern it.
10436
10437 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10438 for sorting.
10439 (face_for_char): Use deferred log.
10440
104412008-08-18 Kenichi Handa <handa@m17n.org>
10442
10443 * fontset.c (face_for_char): Add font log.
10444
10445 * font.c (font_add_log): Add the font properties :script, :lang,
10446 and :otf in the log.
10447
104482008-08-17 Chong Yidong <cyd@stupidchicken.com>
10449
10450 * xdisp.c: Remove dead code.
10451 (handle_invisible_prop, next_overlay_string): Defer call to
10452 setup_for_ellipsis.
10453 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10454
104552008-08-15 Chong Yidong <cyd@stupidchicken.com>
10456
10457 * xfaces.c (lookup_derived_face): Properly handle possible zero
10458 return value of get_lface_attributes.
10459 (merge_faces): Don't tell lookup_derived_face to signal an error
10460 if face is not found.
10461
10462 * dired.c (Fdirectory_files): Doc fix.
10463
10464 * process.c (make_process): Initialize kill_without_query struct
10465 member.
10466
104672008-08-15 Eli Zaretskii <eliz@gnu.org>
10468
10469 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10470 Alternative calculation of totphys for Visual Studio 6.
10471
10472 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10473
10474 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10475 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10476 All users changed.
10477 (stat): Only root directory passed to GetDriveType. Allow RAM
10478 disk as well as local fixed disk when w32-get-true-file-attributes
10479 is set to `local'.
10480 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10481 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10482 (w32_cached_id, w32_add_to_cache): New functions.
10483 (get_name_and_id): Look account names in the cache before calling
10484 lookup_account_sid.
10485 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10486 New initialization flags.
10487 (globals_of_w32): Initialize them to zero.
10488 (w32_system_process_attributes): Use w32_cached_id and
10489 w32_add_to_cache.
10490
104912008-08-14 Lawrence Mitchell <wence@gmx.li>
10492
10493 * lread.c (Fread_char, Fread_char_exclusive): If no character
10494 event is read before timeout is reached, return nil, rather than
10495 converting to a number.
10496
104972008-08-14 Chong Yidong <cyd@stupidchicken.com>
10498
10499 * fns.c (use_dialog_box): Doc fix.
10500
10501 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10502 on OS X.
10503
105042008-08-13 Chong Yidong <cyd@stupidchicken.com>
10505
10506 * frame.c (Qns_parse_geometry): New var.
10507 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10508
105092008-08-11 Chong Yidong <cyd@stupidchicken.com>
10510
10511 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10512 space character in calculating tabs.
10513
105142008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10515
10516 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10517
105182008-08-10 Glenn Morris <rgm@gnu.org>
10519
10520 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10521 silence gcc "limited range of data type" warnings in some
10522 make_fixnum_or_float calls.
10523
105242008-08-09 Eli Zaretskii <eliz@gnu.org>
10525
10526 * w32.c (w32_system_process_attributes): If the process does not
10527 exist, return nil.
10528
10529 * w32.c: Include thelp32.h, psapi.h and coding.h.
10530 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10531 declarations.
10532 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10533 (Process32Next_Proc): New typedefs.
10534 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10535 (g_b_init_process32_next, g_b_init_open_thread_token)
10536 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10537 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10538 (g_b_init_get_process_working_set_size)
10539 (g_b_init_global_memory_status_ex): New static variables.
10540 (globals_of_w32): Initialize them.
10541 (create_toolhelp32_snapshot, process32_first, process32_next)
10542 (open_thread_token, impersonate_self, revert_to_self)
10543 (get_process_memory_info, get_process_working_set_size)
10544 (global_memory_status, global_memory_status_ex): New wrapper
10545 functions.
10546 (w32_list_system_processes, w32_system_process_attributes)
10547 (enable_privilege, restore_privilege, ltime, process_times):
10548 New functions.
10549 (convert_time_raw): New function.
10550 (convert_time): Remove conversion of FILETIME into time in 100
10551 nsec units, call convert_time_raw instead.
10552
10553 * process.h (w32_list_system_processes, w32_system_process_attributes):
10554 Add prototypes.
10555 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10556 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10557 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10558 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10559
10560 * process.c (Fsystem_process_attributes): Doc fix.
10561
105622008-08-08 Chong Yidong <cyd@stupidchicken.com>
10563
10564 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10565 a continued multi-char glyph; if so, advance to the actual glyph.
10566
105672008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10568
10569 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10570
10571 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10572 (.m.o): Use it.
10573 * config.in: Regenerate.
10574
105752008-08-07 Chong Yidong <cyd@stupidchicken.com>
10576
10577 * xdisp.c (redisplay_window): Revert last change.
10578 (try_window): Check bottom scroll margin too.
10579
105802008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10581
10582 * config.in: Regenerate.
10583
10584 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10585 -list-load-path-shadows'.
10586 (nsgui.h): Reduce number of things depending on it.
10587
105882008-08-06 Chong Yidong <cyd@stupidchicken.com>
10589
10590 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10591 instead of window-end which does the wrong thing at eob.
10592 (try_cursor_movement): Minor optimization.
10593 (redisplay_window): If scroll margin is defined, don't assume
10594 window doesn't need scrolling.
10595
105962008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10597
10598 * config.in: Regenerate.
10599
10600 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10601 (mostlyclean): Don't delete *.d under NS.
10602
10603 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10604
106052008-08-06 Kenichi Handa <handa@m17n.org>
10606
10607 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10608
106092008-08-06 Andreas Schwab <schwab@suse.de>
10610
10611 * config.in: Regenerate.
10612
106132008-08-05 Chong Yidong <cyd@stupidchicken.com>
10614
10615 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10616 forcing a window start.
10617
10618 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10619 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10620
106212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10622
10623 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10624 argument.
10625
106262008-08-05 Juanma Barranquero <lekktu@gmail.com>
10627
10628 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10629 <scroll-down-aggressively, before-change-functions>:
10630 <after-change-functions>: Reflow docstrings.
10631
106322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10633 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10634
10635 Dock menu customization, based on a patch by Ken Raeburn, plus some
10636 other fixes.
10637 * nsmenu.m (dockMenu): New variable.
10638 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10639
10640 * nsterm.h (dockMenu): Declare.
10641
10642 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10643 (ns_term_init): Initialize dockMenu.
10644 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10645 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10646 left.
10647
10648 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10649
106502008-08-04 Chong Yidong <cyd@stupidchicken.com>
10651
10652 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10653
10654 * config.in: Regenerate.
10655
106562008-08-04 Seiji Zenitani <zenitani@mac.com>
10657
10658 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10659
106602008-08-04 Chong Yidong <cyd@stupidchicken.com>
10661
10662 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10663
106642008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10665
10666 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10667
10668 * keyboard.h: Comment an #endif.
10669
10670 * lisp.h (have_menus_p): Adjust comment.
10671
10672 * menu.c (find_and_return_menu_selection): Fix comparison with
10673 client_data.
10674
10675 * nsmenu.m (popup_activated_flag): New variable.
10676 (popup_activated): New function.
10677 (menu-or-popup-active-p): New exported lisp definition.
10678 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10679 when popup done.
10680 (ns_popup_dialog): Set popup_activated_flag.
10681
10682 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10683 version for GNUstep (handled by conditional typedef in nsterm.m).
10684 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10685 in rgb.txt).
10686
10687 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10688
10689 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10690
10691 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10692
10693 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10694 shortcircuit if popup_activated like GTK and X toolkit.
10695
10696 * m/inter386.h: Change DARWIN to DARWIN_OS.
10697
10698 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10699 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10700 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10701 comment on NO_SOCK_SIGIO.
10702
107032008-08-03 Chong Yidong <cyd@stupidchicken.com>
10704
10705 * nsterm.m (windowDidResize): Remove stopModal call.
10706
107072008-08-03 Andreas Schwab <schwab@suse.de>
10708
10709 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10710 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10711
107122008-08-02 Chong Yidong <cyd@stupidchicken.com>
10713
10714 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10715 Don't use uninitialized pointer variable when using getrlimit.
10716
107172008-08-02 Jason Rumney <jasonr@gnu.org>
10718
10719 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10720
107212008-08-02 Eli Zaretskii <eliz@gnu.org>
10722
10723 * alloc.c (NSTATICS): Bump to 0x640.
10724
10725 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10726
10727 * lisp.h: Add prototype for directory_files_internal.
10728
10729 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10730 New functions.
10731 (syms_of_process): Defsubr them. Add initializations for various
10732 Q* symbols used in procfs_system_process_attributes.
10733 (procfs_list_system_processes, procfs_system_process_attributes)
10734 [HAVE_PROCFS]: New functions.
10735 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10736 (procfs_get_total_memory): New functions.
10737
107382008-08-01 Juanma Barranquero <lekktu@gmail.com>
10739
10740 * xfaces.c (Fx_load_color_file): Fix previous change;
10741 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10742
107432008-08-01 Michael Albinus <michael.albinus@gmx.de>
10744
10745 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10746
107472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10748
10749 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10750
107512008-08-01 Chong Yidong <cyd@stupidchicken.com>
10752
10753 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10754
10755 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10756 define NSApplicationDelegateReplySuccess.
10757 (EmacsView -converstationIdentifier): Use long instead of
10758 NSInteger for GNUstep, since it doesn't have NSInteger.
10759
10760 * xmenu.c: Revert last change.
10761
10762 * keyboard.h: Fix last change.
10763
107642008-08-01 Juanma Barranquero <lekktu@gmail.com>
10765
10766 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10767 on Windows.
10768
107692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10770
10771 Warning clearing and clean-up in NS port.
10772 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10773 Add prototypes.
10774 * nsgui.h (FACE_DEFAULT): Remove, unused.
10775 (XGCValues): Change colors to unsigned long.
10776 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10777 nsterm.m.
10778 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10779 (ns_list_fonts): Remove, unused.
10780 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10781 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10782 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10783 (nsfont_draw): Compare face colors to 0, not nil.
10784 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10785 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10786 (-addSubmenuWithTitle:): Use NSMenuItem class.
10787 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10788 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10789 (ns_clip_to_row): Make gc arg a BOOL.
10790 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10791 ns_clip_to_row() call.
10792 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10793 used). Cast FRAME_FONT assignments.
10794 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10795 (ns_string_to_lispmod): Change arg to const char.
10796 (ns_term_init): Use NSMenuItem class.
10797 (EmacsApp -openFile:): Move to different section of file.
10798 (EmacsApp -application:openFiles:): Don't return a value, call
10799 -replyToOpenOrPrint:.
10800 (EmacsView -keyDown:): Fix up cast.
10801 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10802 (EmacsView -menuDown:): Cast tag in call to
10803 find_and_call_menu_selection().
10804 (ns_list_fonts): Remove, unused.
10805 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10806 (ns_fontname_to_xlfd): Make static.
10807 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10808 Remove prototypes (now in keyboard.h).
10809 (next_menubar_widget_id): Remove, unused.
10810 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10811 Remove prototypes (now in keyboard.h).
10812 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10813
108142008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10815
10816 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10817 (floatfns.o): Depend on syssignal.h.
10818 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10819
10820 * systty.h: Fix previous change that removed BSD_TERMIOS.
10821 Add comments to #ifdefs.
10822
108232008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10824
10825 * w32fns.c (w32-load-color-file): Remove.
10826 (x-open-connection): Use renamed Fx_load_color_file.
10827 * xfaces.c (x-load-color-file): Add.
10828 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10829 Emacs.clr.
10830 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10831
108322008-07-31 Michael Albinus <michael.albinus@gmx.de>
10833
10834 * dbusbind.c (Fdbus_call_method_asynchronously)
10835 (Fdbus_method_error_internal): New defuns.
10836 (xd_read_message): Handle also reply messages.
10837 (Vdbus_registered_functions_table): Extend docstring.
10838
108392008-07-31 Juanma Barranquero <lekktu@gmail.com>
10840
10841 * keyboard.c (gobble_input): Fix previous change.
10842
108432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10844
10845 * bitmaps/README:
10846 * xfns.c:
10847 * termcap.c:
10848 * term.c:
10849 * syswait.h:
10850 * systty.h:
10851 * systime.h:
10852 * syssignal.h:
10853 * sysdep.c:
10854 * process.h:
10855 * process.c:
10856 * print.c:
10857 * ndir.h:
10858 * lread.c:
10859 * keyboard.c:
10860 * getpagesize.h:
10861 * floatfns.c:
10862 * fileio.c:
10863 * emacs.c:
10864 * doc.c:
10865 * dispnew.c:
10866 * dired.c:
10867 * data.c:
10868 * callproc.c:
10869 * buffer.c:
10870 * README:
10871 * Makefile.in:
10872 * s/template.h:
10873 * s/msdos.h:
10874 * m/vax.h: Remove VMS support.
10875 * s/vms.h:
10876 * vlimit.h:
10877 * uaf.h:
10878 * temacs.opt:
10879 * param.h:
10880 * ioctl.h: Remove file.
10881
108822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10883
10884 * s/ms-w32.h (MULTI_KBOARD): Remove.
10885 * xterm.c:
10886 * xselect.c:
10887 * xfns.c:
10888 * window.c:
10889 * w32term.c:
10890 * w32fns.c:
10891 * terminal.c:
10892 * termhooks.h:
10893 * term.c:
10894 * sysdep.c:
10895 * keyboard.h:
10896 * keyboard.c:
10897 * frame.h:
10898 * frame.c:
10899 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10900 * config.in: Regenerate.
10901
109022008-07-30 Jason Rumney <jasonr@gnu.org>
10903
10904 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10905
10906 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10907 (w32font_open_internal): Get unicode version of textmetrics.
10908 Don't enable or disable glyph indices here.
10909 (w32font_open): Disable use of glyph indices.
10910
10911 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10912
109132008-07-30 Chong Yidong <cyd@stupidchicken.com>
10914
10915 * minibuf.c (Vread_buffer_function): Doc fix.
10916
109172008-07-30 John Paul Wallington <jpw@pobox.com>
10918
10919 * minibuf.c (read_buffer_completion_ignore_case): New var.
10920 (Fread_buffer): Use it.
10921
109222008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10923
10924 * systty.h (sensemode): Remove empty #if. Remove reference to
10925 BSD_TERMIOS, unused.
10926
10927 * sysdep.c: Remove reference to DGUX.
10928 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10929
10930 * config.in: Regenerate.
10931
109322008-07-30 Jason Rumney <jasonr@gnu.org>
10933
10934 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10935
109362008-07-29 Jason Rumney <jasonr@gnu.org>
10937
10938 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10939 is populated.
10940 (uniscribe_encode_char): Always use uniscribe.
10941 Avoid using context if cache is populated.
10942
109432008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10944
10945 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10946 open menu.
10947
10948 * gtkutil.c (menu_nav_ended): Remove.
10949 (create_menus): Remove signal connect for menu_nav_ended.
10950
109512008-07-28 Chong Yidong <cyd@stupidchicken.com>
10952
10953 * xdisp.c (redisplay_window): Check return value of
10954 compute_window_start_on_continuation_line before forcing a window
10955 start.
10956
109572008-07-28 Jason Rumney <jasonr@gnu.org>
10958
10959 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10960
10961 * w32term.c (w32_enable_unicode_output, cleartype_active):
10962 Remove obsolete display options.
10963 (x_draw_glyph_string_background): Don't use old cleartype_active
10964 workaround.
10965 (w32_initialize): Remove cleartype_active initialization.
10966 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10967
109682008-07-28 Andreas Schwab <schwab@suse.de>
10969
10970 * lisp.h (init_weak_hash_tables, syms_of_font)
10971 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10972 (remove_hash_entry): Don't declare.
10973 * eval.c (maybe_call_debugger): Make static and move before use.
10974 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10975 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10976 * xterm.h (x_set_frame_alpha): Declare.
10977
109782008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10979
10980 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10981 (create_menus): Connect selection-done to menu_nav_ended.
10982
109832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10984
10985 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10986 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10987 parameter with read of 'alpha' one.
10988 (Qns_frame_parameter): Remove.
5582fbc7 10989 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10990 (next-selection-coding-system, Vselection_coding_system)
10991 (Vnext_selection_coding_system): Drop.
10992
109932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10994
10995 * nsfns.m (do-applescript, do_applescript): Rename to
10996 ns-do-applescript, ns_do_applescript, and move within file.
10997
109982008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10999
11000 Remove support for Mac Carbon.
11001 * mactoolbox.c:
11002 * macterm.h:
11003 * macterm.c:
11004 * macselect.c:
11005 * macmenu.c:
11006 * macgui.h:
11007 * macfns.c:
11008 * mac.c: Remove file.
11009 * s/darwin.h:
11010 * m/intel386.h:
11011 * xfaces.c:
11012 * xdisp.c:
11013 * window.c:
11014 * tparam.c:
11015 * termhooks.h:
11016 * termcap.c:
11017 * term.c:
11018 * syssignal.h:
11019 * sysselect.h:
11020 * sysdep.c:
11021 * process.c:
11022 * lread.c:
11023 * lisp.h:
11024 * keyboard.c:
11025 * image.c:
11026 * fringe.c:
11027 * frame.h:
11028 * frame.c:
11029 * fontset.c:
11030 * font.h:
11031 * font.c:
11032 * fns.c:
11033 * fileio.c:
11034 * emacs.c:
11035 * dispnew.c:
11036 * dispextern.h:
11037 * config.in:
11038 * atimer.c:
2ae37cf0 11039 * Makefile.in: Remove code for Carbon.
aac0c6e3 11040
f0131492 110412008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11042
11043 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11044
110452008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11046
11047 * macterm.h (kCGBitmapByteOrder32Host): New define for
11048 non-universal SDKs.
11049
11050 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11051 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11052
11053 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11054 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11055
110562008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11057
11058 * w32inevt.c: Include dispextern.h.
11059
110602008-07-26 Andreas Schwab <schwab@suse.de>
11061
11062 * print.c (print_object): Fix off-by-one in last change.
11063
110642008-07-25 Juanma Barranquero <lekktu@gmail.com>
11065
11066 * term.c (syms_of_term): Don't initialize default_orig_pair,
11067 default_set_foreground and default_set_background on Windows.
11068
110692008-07-25 Jason Rumney <jasonr@gnu.org>
11070
11071 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11072 ScriptItemize. Clean up return value checking. Remove unused
11073 variables.
11074 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11075 shaping engine.
11076
11077 * w32font.c (w32font_has_char): Handle the case where we can't
11078 determine the script for a character.
11079
110802008-07-25 Chong Yidong <cyd@stupidchicken.com>
11081
11082 * term.c (syms_of_term): Initialize default_orig_pair,
11083 default_set_foreground, and default_set_background.
11084
11085 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11086 clash (bug#86).
11087 (getloadavg): Callers changed.
11088
11089 * image.c (svg_load_image): Fix last change.
11090 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11091 image size is valid. Use g_object_unref instead of deprecated
11092 rsvg_handle_free to free rsvg handle.
11093 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11094
110952008-07-25 Jason Rumney <jasonr@gnu.org>
11096
11097 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11098 surrogates before looking up glyph index.
11099 (w32font_text_extents): Encode as surrogates if falling back to
11100 functions that need UTF-16 wide chars.
11101
11102 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11103 BMP as surrogates before looking up glyph index.
11104
111052008-07-25 Chong Yidong <cyd@stupidchicken.com>
11106
11107 * image.c (svg_load_image): Check for failure in return value of
11108 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11109
111102008-07-25 Jason Rumney <jasonr@gnu.org>
11111
11112 * w32font.c (Fx_select_font): Reverse sense of second arg.
11113
111142008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11115
11116 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11117 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11118
11119 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11120 (PURESIZE): Use it.
11121
111222008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11123
11124 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11125 * m/alpha.h (TEXT_END):
11126 * m/ibmrs6000.h (TEXT_END):
11127 * m/macppc.h (TEXT_END):
11128 * s/darwin.h (TEXT_END):
11129 * s/msdos.h (TEXT_END): Remove, unused.
11130 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11131 * s/cygwin.h: Remove comment.
11132
11133 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11134 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11135 * m/intel386.h (DOT_GLOBAL_START):
11136 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11137 (USG): Remove, file not used on USG platforms.
11138
11139 * Makefile.in (HAVE_X11): Remove empty #else.
11140
111412008-07-24 Andreas Schwab <schwab@suse.de>
11142
11143 * fileio.c (Finsert_file_contents): Properly adjust undo list
11144 after format conversion.
11145
111462008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11147
11148 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11149 (menu_nav_ended): Remove.
11150 (create_menus): Remove signal connect for menu_nav_ended.
11151 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11152 create_menus.
11153 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11154
111552008-07-23 Jason Rumney <jasonr@gnu.org>
11156
11157 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11158 with opened font.
11159 (w32font_open): Set font type to gdi.
11160
11161 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11162
111632008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11164
11165 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11166 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11167 defines it.
11168 * unexec.c (ADDR_CORRECT): Define unconditionally.
11169
11170 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11171
11172 * unexec.c: Remove code depending on !COFF and USG, the file is
11173 not used for such systems.
11174
11175 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11176 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11177 (LD_SWITCH_SYSTEM_1): Remove, update users.
11178
11179 * s/darwin.h (DATA_END):
11180 * m/intel386.h (DATA_END):
11181 * m/ibmrs6000.h (DATA_END):
11182 * m/alpha.h (DATA_END): Remove, unused.
11183
11184 * config.in: Regenerate.
11185 * s/ms-w32.h (subprocesses): Define unconditionally.
11186 * s/template.h (subprocesses): Update comment.
11187 * s/vms.h (subprocesses):
11188 * s/usg5-4.h (subprocesses):
11189 * s/hpux10-20.h (subprocesses):
11190 * s/gnu-linux.h (subprocesses):
11191 * s/cygwin.h (subprocesses):
11192 * s/bsd-common.h (subprocesses):
11193 * s/aix4-2.h (subprocesses):
11194 * s/darwin.h (subprocesses): Do not define, defined by default now.
11195
11196 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11197 Remove all references.
11198 (temacs): Add GNUstep specific ld flags.
11199
11200 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11201 similarly to what X does.
11202
112032008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11204
11205 * nsfns.m (x-list-fonts): Remove.
11206 (syms_of_nsfns): Drop the x-list-fonts declaration.
11207 * nsterm.m: Get rid of remaining "//" comments.
11208
112092008-07-22 Chong Yidong <cyd@stupidchicken.com>
11210
11211 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11212
11213 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11214 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11215 (Fns_own_selection_internal, Fx_disown_selection_internal)
11216 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11217
11218 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11219 ... */' style of docstrings. Doc fixes.
11220
112212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11222
11223 * terminfo.c (UP, BC, PC): Undo previous change.
11224
11225 * nsfns.m: Rename ns prefixed functions/variables to the
11226 corresponding x versions. Update references.
11227
112282008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11229
11230 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11231
112322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11233
11234 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11235 Remove forwarding functions.
11236 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11237 non-static.
11238 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11239 non-static.
11240 (ns_frame_parm_handlers): Use the new names.
11241 (syms_of_nsfns): Move to the end of file.
11242
11243 * nsterm.m (syms_of_nsterm): Move to the end of file.
11244
11245 * dispnew.c (init_display): Remove code for X10.
11246
112472008-07-22 Jason Rumney <jasonr@gnu.org>
11248
11249 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11250 bare drive.
11251
112522008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11253
11254 * nsterm.m (syms_of_nsterm): Remove debugging println.
11255
112562008-07-22 David Reitter <david.reitter@gmail.com>
11257
11258 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11259 Carbon implementation of the same functionality: execute arbitrary
11260 AppleScript code.
11261
112622008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11263
11264 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11265 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11266 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11267 (Fx_display_mm_height, Fx_display_mm_width)
11268 (Fx_display_backing_store, Fx_display_visual_class)
11269 (Fx_display_save_under, Fx_open_connection)
11270 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11271 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11272 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11273 (Fx_display_pixel_width, Fx_display_pixel_height)
11274 (Fx_display_usable_bounds, Fx_display_planes)
11275 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11276 ... */' style of docstrings.
11277
112782008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11279
11280 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11281 on this platform.
11282 (mips):
11283 * m/iris4d.h (mips): Do not define.
11284 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11285
11286 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11287
11288 * image.c:
11289 * nsfns.m:
11290 * nsselect.m:
11291 * nsterm.h:
11292 * nsterm.m: Rename ns prefixed functions/variables to the
11293 corresponding x versions. Update references.
11294
11295 * m/ibms390x.h (NO_REMAP): Do not undefine.
11296
11297 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11298
112992008-07-21 Chong Yidong <cyd@stupidchicken.com>
11300
11301 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11302 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11303 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11304 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11305 (Fns_display_mm_height, Fns_display_mm_width)
11306 (Fns_display_backing_store, Fns_display_visual_class)
11307 (Fns_display_save_under, Fns_open_connection)
11308 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11309 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11310 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11311 (Fns_display_pixel_width, Fns_display_pixel_height)
11312 (Fns_display_usable_bounds, Fx_display_planes)
11313 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11314
113152008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11316
11317 * print.c (print_object): Check print_depth before searching for
11318 circularities.
11319
113202008-07-21 Michael Albinus <michael.albinus@gmx.de>
11321
11322 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11323 only sprintf.
11324
113252008-07-21 Kenichi Handa <handa@m17n.org>
11326
11327 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11328
113292008-07-20 Andreas Schwab <schwab@suse.de>
11330
11331 * syntax.c (find_start_pos, find_start_value)
11332 (find_start_value_byte, find_start_begv, find_defun_start)
11333 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11334
113352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11336
11337 * s/sol2-3.h: Insert contents of s/sol2.h.
11338 (LD_SWITCH_SYSTEM): Remove redundant definition.
11339 * s/sol2.h: Remove, unused.
11340
113412008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11342
11343 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11344
113452008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11346
11347 * Makefile.in (ns_appdir): Fix typo in find command.
11348
113492008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11350
11351 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11352
11353 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11354 added not supported anymore.
11355
11356 * s/usg5-4-2.h (LIBS_SYSTEM):
11357 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11358
11359 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11360 * s/lynxos.h (GETPGRP_NO_ARG):
11361 * s/hpux10-20.h (NO_SIOCTL_H):
11362 * s/gnu.h (GETPGRP_NO_ARG):
11363 * s/gnu-linux.h (NO_SIOCTL_H):
11364 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11365 * s/cygwin.h (GETPGRP_NO_ARG):
11366 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11367 (C_DEBUG_SWITCH): Remove duplicate definition.
11368
11369 * m/ibms390.h: Remove boilerplate comments.
11370
11371 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11372
11373 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11374 (wait_reading_process_output): Remove code for SunOS, platform not
11375 supported anymore. Use SOLARIS2 instead of sun.
11376
113772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11378
11379 * font.c (font_open_by_name): Under NS, default lface height to zero.
11380 (font_open_for_lface): Under NS, set size based on frame fontsize.
11381 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11382 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11383
113842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11385
11386 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11387 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11388 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11389 YES/NO.
11390 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11391 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11392 * Makefile.in (clean): Clear out build destination dir.
11393
113942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11395
11396 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11397 xterm, xselect.
11398 * lisp.h: Remove declaration of hash_remove.
11399 * nsgui.h: Remove redefinitions of hash_remove.
11400 * fns.c (hash_remove): Rename to hash_remove_from_table.
11401
114022008-07-19 Seiji Zenitani <zenitani@mac.com>
11403
11404 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11405 strdup() the family UTF8String before modifying it.
11406
114072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11408
11409 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11410 NS_FACE_BACKGROUND with 0 instead of nil.
11411 * nsfont.m (nsfont_draw): Same.
11412
114132008-07-19 Chong Yidong <cyd@stupidchicken.com>
11414
11415 * nsfns.m (ns_set_background_color): Fix crash.
11416
114172008-07-18 Chong Yidong <cyd@stupidchicken.com>
11418
11419 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11420
114212008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11422
11423 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11424
114252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11426
11427 * gtkutil.c: Include <config.h> instead of "config.h".
11428
11429 * lisp.h (Foverlay_buffer): Add EXFUN.
11430
11431 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11432 child process to complete child_setup. Undo 2005-09-21 change.
11433
11434 * s/darwin.h: Mention setsid after vfork.
11435
114362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11437
11438 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11439 Depend on macgui.h.
11440
11441 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11442 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11443
11444 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11445 and f19.
11446 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11447
11448 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11449 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11450 Remove enumerators.
11451
11452 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11453 Check if FACE_FROM_ID returns NULL.
11454
114552008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11456
11457 * w32inevt.c (change_frame_size): Remove extern declaration.
11458 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11459 change_frame_size.
11460
114612008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11462
11463 * getloadavg.c: Revert last change (2008-07-15).
11464
114652008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11466
11467 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11468 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11469 from configure.
11470
114712008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11472
11473 * s/sol2.h:
11474 * s/sol2-4.h: Reorganize conditionals.
11475
11476 * ecrt0.c: Remove code depending on m68000, not used anymore.
11477
11478 * fns.c (hash_remove): Make static.
11479 * lisp.h (hash_remove): Don't prototype.
11480
11481 * m/ibmrs6000.h:
11482 * m/ibms390x.h:
11483 * m/macppc.h: Remove boilerplate comments.
11484
11485 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11486 Solaris, which does not need them.
11487
11488 * m/vax.h: Remove comments about unsupported systems.
11489
11490 * s/darwin.h: Reorganize ifdefs.
11491
114922008-07-17 Andreas Schwab <schwab@suse.de>
11493
11494 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11495
114962008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11497
11498 Use SDATA. Follow coding convention of placing operators at
11499 beginning of next line rather than end of previous line, and placing
11500 spaces around infix operators.
11501
11502 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11503 in case it was defined already.
11504 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11505 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11506 ns_default.
11507 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11508 Lisp_Objects.
11509 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11510 (ns_defined_color, ns_color_to_lisp): Declare.
11511 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11512 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11513 it's accepted even with USE_LISP_UNION_TYPE.
11514 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11515 (update_frame_tool_bar): Remove apparently obsolete tests for
11516 non-integerness of f->tool_bar_lines.
11517 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11518 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11519 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11520 (nsfont_open): Don't confuse NULL for Qnil.
11521 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11522 * menu.h (find_and_call_menu_selection):
11523 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11524 (find_and_return_menu_selection): Always return something.
11525 * frame.h: Include dispextern.h for Display_Info.
11526 (display_x_get_resource): Declare.
11527
115282008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11529
11530 * syntax.c: Remove stdio.h include accidentally introduced in
11531 Emacs.app commit.
11532 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11533 NS_IMPL_COCOA.
11534 * keyboard.c (handle_async_input, input_available_signal): Remove
11535 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11536
115372008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11538
11539 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11540 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11541 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11542 Use SDATA.
11543
11544 * keymap.c: Remove all NS-specific code.
11545 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11546 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11547 where_is_preferred_modifier, return a different value depending on how
11548 preferred is the binding.
11549 (where_is_internal): Adjust accordingly.
11550 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11551 Adjust to new preferred_sequence_p.
11552 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11553 * keyboard.c (parse_solitary_modifier): Not static any more.
11554 * keyboard.h (parse_solitary_modifier): Declare.
11555
115562008-07-16 Andreas Schwab <schwab@suse.de>
11557
11558 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11559 of easymenu.
11560
115612008-07-16 Chong Yidong <cyd@stupidchicken.com>
11562
11563 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11564 that we don't move off the line.
11565
115662008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11567
11568 * keyboard.c (Qsuper): Remove.
11569 (parse_menu_item): Don't call where_is_internal specially for NS.
11570
115712008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11572
11573 * s/gnu-linux.h: Remove boilerplate comments.
11574
11575 * m/alpha.h (__ELF__): Consolidate conditions.
11576
11577 * m/m68k.h (linux): Use GNU_LINUX instead.
11578 Remove boilerplate comments.
11579
11580 * m/intel386.h: Undo refactoring from previous change.
11581 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11582 too, remove dead code.
11583 (linux): Use GNU_LINUX instead.
11584
115852008-07-16 Jason Rumney <jasonr@gnu.org>
11586
11587 * w32gui.h: Repeat 26 June changes lost by last change.
11588
115892008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11590
11591 * systty.h: Remove code for Aix on 386, unsupported platform.
11592
11593 * s/ms-w32.h: Remove boilerplate comments.
11594 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11595
11596 * s/gnu-linux.h (TERM): Remove support.
11597 (HAVE_SYSVIPC): Remove, unused.
11598 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11599 for this system.
11600
11601 * process.c: Remove support for IRIS, unused.
11602 Remove support for TERM, not relevant anymore.
11603
11604 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11605 used with the definition.
11606
11607 * s/aix4-2.h (static): Do not undef.
11608
11609 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11610 only used on Aix.
11611 (HAVE_SYSVIPC): Remove, unused.
11612
11613 * m/hp800.h (CANNOT_DUMP): Do not undef.
11614
11615 * m/alpha.h: Fix comment.
11616
11617 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11618 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11619 used by this configuration.
11620 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11621 * unexec.c: Remove code depending on HPUX and
11622 USG_SHARED_LIBRARIES, not used with this file. Remove code
11623 depending on IRIS, unused. Remove if 0-ed code.
11624
11625 * s/template.h: Remove comments about static.
11626
11627 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11628 Remove if 0-ed code.
11629 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11630 were the same as the default.
11631 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11632 Remove boilerplate comments.
11633 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11634 (HAVE_SYSVIPC): Remove, unused.
11635 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11636
11637 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11638 Remove boilerplate comments.
11639 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11640 Remove boilerplate comments.
11641 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11642 Remove boilerplate comments.
11643 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11644
11645 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11646 USG systems which do not use DATA_SEG_BITS.
11647 Refactor code. Remove boilerplate comments.
11648
11649 * m/ibms390.h:
11650 * m/m68k.h:
11651 * s/bsd-common.h:
11652 * s/cygwin.h:
11653 * s/darwin.h:
11654 * s/freebsd.h:
11655 * s/gnu.h:
11656 * s/msdos.h: Remove boilerplate comments.
11657
11658 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11659 do not use this file.
aac0c6e3
MR
11660 (IRIS_4D): Remove, unused.
11661
11662 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11663 do not use this file.
aac0c6e3
MR
11664 (SIGN_EXTEND_CHAR):
11665 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11666 * unexmips.c: Remove file, unused.
11667
11668 * editfns.c (Fuser_full_name): Replace the only use of
11669 USER_FULL_NAME with its value.
11670 * config.in: Regenerate.
11671
116722008-07-16 David Reitter <david.reitter@gmail.com>
11673
11674 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11675 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11676
116772008-07-16 Glenn Morris <rgm@gnu.org>
11678
11679 * emacs.c (system-type): Doc fix.
11680
116812008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11682
11683 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11684 If the cache doesn't work, let's fix it, rather than work around it.
11685
116862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11687
11688 * Makefile.in: Correct additions for nsfont.o in last commit.
11689 * nsfont.m: New file (forgot last commit).
11690
116912008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11692
11693 * callproc.c (set_initial_environment): Initialize
11694 Vprocess_environment under CANNOT_DUMP (fixes crash when
11695 batch-compiling for bootstrap).
11696
116972008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11698 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11699
11700 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11701 fix crash due to different init order.
11702
117032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11704
11705 Changes and additions for NeXTstep windowing system (Cocoa and
11706 GNUstep) support.
11707
11708 * Makefile.in:
11709 * config.in: Support defines and build commands for NS port.
11710 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11711 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11712 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11713 windowing.
11714 (struct face): Add synth_ital field.
11715 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11716 (init_display): Initialize Vinitial_window_system to "ns" when so
11717 compiled.
11718 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11719 (display_arg): Use under NS.
11720 (main): Under NS, allocate autorelease pool and handle command line
11721 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11722 (standard_args): Add NS-specific args.
11723 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11724 * font.c (DEFAULT_ENCODING): New variable.
11725 (font_find_for_lface): Use it.
11726 (syms_of_font): Load syms_of_nsfont under NS.
11727 * font.h: Declare nsfont_driver when compiled under NS.
11728 * fontset.c: When compiling under NS, include nsterm.h.
11729 (fontset_from_font): Autoconstruct fontset under NS.
11730 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11731 symbol, document and use it.
11732 (do_switch_frame): When for_deletion under Cocoa, add
11733 Fraise_frame(Qnil).
11734 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11735 (x_get_arg): Allow "yes" and "no" as boolean values.
11736 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11737 Qright under Cocoa.
11738 (focus-follows-mouse): Default to 0 under NS.
11739 * frame.h (enum output_method): Add output_ns.
11740 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11741 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11742 (FRAME_WINDOW_P): NS-specific definition.
11743 * fringe.c (max_used_fringe_bitmap): Make public.
11744 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11745 (getloadavg): Use NeXT code under descendant OS's.
11746 * image.c (includes and header section, x_create_bitmap_from_data)
11747 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11748 (image_background_transparent, x_clear_image_1)
11749 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11750 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11751 (x_to_xcolors, x_from_xcolors, x_disable_image)
11752 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11753 other GUIs, including XPM support using code originally written for
11754 Carbon GUI.
11755 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11756 using NS API.
11757 (image_ascent): Use font metrics macros instead of direct struct field
11758 access.
11759 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11760 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11761 Also, handle NS as GTK for menu bar purposes.
11762 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11763 toolkit where they differ.
11764 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11765 use cachelist, still needed under NS.
11766 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11767 (struct widget_value): Define it here for menu.c.
11768 * keymap.c (includes): Include modifier internals.
11769 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11770 NS.
11771 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11772 support for preferring sequences using certain modifiers, specified by
11773 the FIRSTONLY argument.
11774 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11775 under NS GNUstep implementation.
11776 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11777 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11778 * menu.c: Include nsterm.h under NS.
11779 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11780 (free_menubar_widget_tree_value, update_submenu_strings)
11781 (find_and_call_menu_selection): Treat NS as X and NT.
11782 (find_and_return_menu_selection): New function, used for popup menus.
11783 * nsgui.h:
11784 * nsterm.h:
11785 * nsfns.m:
11786 * nsimage.m:
11787 * nsmenu.m:
11788 * nsselect.m:
11789 * nsterm.m: New files.
11790 * process.c (wait_reading_process_output): Under NS, call ns_select()
11791 instead of plain select().
11792 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11793 beginning of buffer.
11794 * sysselect.h (init_process): Rename when compiling under Cocoa to
11795 avoid name conflict.
11796 * termhooks.h (display_info): Add ns_display_info to union.
11797 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11798 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11799 COCOA environment.
11800 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11801 unexec() signature. (Note, this will dump, but the resulting file
11802 crashes; unexosx is used instead; keeping around for reference and
11803 possible aid in getting dump working under GNUstep.)
11804 * w32gui.h (button_type, widget_value): Remove definitions (now in
11805 keyboard.h).
11806 * window.c: Include nsterm.h when compiling under NS.
11807 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11808 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11809 other GUI windowing systems.
11810 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11811 GTK.
11812 (x_consider_frame_title): Under NS, set icon type and frame
11813 modified-state indicator; use ns_set_name_as_filename() when using
11814 formatted title.
11815 (update_window_cursor): Make public when compiling under NS.
11816 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11817 (hourglass_atimer, Vhourglass_delay
11818 * xfaces.c (header section, init_frame_faces, clear_font_table)
11819 (defined_color, unload_color, x_face_list_fonts)
11820 (prepare_face_for_display): Add NS support parallel to other GUIs.
11821 Emulate GCs like other non-X GUIs.
11822 (split_font_name): Don't lowercase font name under NS.
11823 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11824 under NS.
11825 * s/darwin.h: Add support for compilation under NS.
11826
118272008-07-15 Jason Rumney <jasonr@gnu.org>
11828
11829 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11830 (w32_show_hourglass): Rename from show_hourglass.
11831 (w32_hide_hourglass): Rename from hide_hourglass.
11832 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11833 (Vhourglass_delay): Declare extern.
11834 (hourglass_started): Remove.
11835
11836 * xdisp.c (Vhourglass_delay): Remove static.
11837 (hourglass_started, start_hourglass, cancel_hourglass):
11838 Don't include these versions on WINDOWSNT.
11839
118402008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11841
11842 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11843 variables (formerly in xfns.c).
11844 (show_hourglass, hide_hourglass): New prototypes (same).
11845 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11846 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11847 in xfns.c).
11848 (syms_of_xdisp): Declare/initialize display-hourglass,
11849 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11850 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11851 formerly in xfns.c.
11852 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11853 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11854 (start_hourglass, cancel_hourglass): Remove.
11855 (show_hourglass, hide_hourglass): Remove prototypes and static
11856 modifiers.
11857 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11858 hourglass_atimer, hourglass_shown_p declaration/initialization.
11859 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11860 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11861 (start_hourglass, cancel_hourglass): Remove.
11862 (show_hourglass, hide_hourglass): Remove prototypes and static
11863 modifiers.
11864 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11865 hourglass_atimer, hourglass_shown_p declaration/initialization.
11866 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11867 (DEFAULT_HOURGLASS_DELAY): Remove.
11868 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11869 hourglass_shown_p declaration/initialization.
11870
118712008-07-14 Jason Rumney <jasonr@gnu.org>
11872
11873 * w32fns.c (w32_get_arg): Remove wrapper function.
11874 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11875 directly.
11876 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11877
118782008-07-14 Kenichi Handa <handa@m17n.org>
11879
11880 * xfont.c (xfont_open): Add workaround for X's bug.
11881
118822008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11883
11884 * fontset.c: Include <stdio.h> unconditionally.
11885
118862008-07-13 Michael Albinus <michael.albinus@gmx.de>
11887
11888 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11889 for filtering.
11890
118912008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11892
11893 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11894
11895 * m/macppc.h:
11896 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11897
11898 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11899 (SPECIAL_EMACS_INT):
11900 * m/ia64.h (SPECIAL_EMACS_INT):
11901 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11902 * s/gnu.h (NLIST_STRUCT):
11903 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11904 * s/gnu-linux.h (LINUX):
11905 * s/msdos.h (HAVE_FACES):
11906 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11907
11908 * systty.h:
11909 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11910 anymore.
11911
119122008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11913
11914 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11915 always defined as int.
11916
11917 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11918 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11919 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11920 * s/freebsd.h (HAVE_WAIT_HEADER):
11921 * s/bsd-common.h (HAVE_UNION_WAIT):
11922 * s/aix4-2.h (HAVE_WAIT_HEADER):
11923 * m/mips.h (HAVE_UNION_WAIT):
11924 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11925 (COFF, static): Do not define, they are undefined later in the file.
11926
11927 * process.c (update_status): Don't use a union.
11928 (status_convert):
11929 (sigchld_handler): Use int instead of WAITTYPE.
11930
119312008-07-12 Chong Yidong <cyd@stupidchicken.com>
11932
11933 * indent.c (Fvertical_motion): Restore hscroll before moving to
11934 goal column.
11935
119362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11937
11938 * lisp.h: Remove left over code.
11939
119402008-07-11 Andreas Schwab <schwab@suse.de>
11941
11942 * lisp.h: Fix logic in last change.
11943
11944 * menu.h: New file.
11945 * menu.c: Include it.
11946 * xmenu.c: Likewise.
11947 * Makefile.in: Update dependencies.
11948
119492008-07-11 Kenichi Handa <handa@m17n.org>
11950
11951 * fontset.c (fontset_from_font): Cancel the previous change.
11952
119532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11954
11955 * lisp.h:
11956 * w32heap.c:
11957 * emacs.c:
11958 * alloc.c: Replace all references of NO_UNION_TYPE with
11959 USE_LISP_UNION_TYPE.
11960
11961 * m/xtensa.h (NO_UNION_TYPE):
11962 * m/vax.h (NO_UNION_TYPE):
11963 * m/template.h (NO_UNION_TYPE):
11964 * m/sparc.h (NO_UNION_TYPE):
11965 * m/mips.h (NO_UNION_TYPE):
11966 * m/macppc.h (NO_UNION_TYPE):
11967 * m/m68k.h (NO_UNION_TYPE):
11968 * m/iris4d.h (NO_UNION_TYPE):
11969 * m/intel386.h (NO_UNION_TYPE):
11970 * m/ibms390x.h (NO_UNION_TYPE):
11971 * m/ibms390.h (NO_UNION_TYPE):
11972 * m/ibmrs6000.h (NO_UNION_TYPE):
11973 * m/ia64.h (NO_UNION_TYPE):
11974 * m/hp800.h (NO_UNION_TYPE):
11975 * m/arm.h (NO_UNION_TYPE):
11976 * m/amdx86-64.h (NO_UNION_TYPE):
11977 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11978 defining it the same.
11979
119802008-07-10 Chong Yidong <cyd@stupidchicken.com>
11981
11982 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11983
119842008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11985
11986 * fileio.c:
50426a04 11987 * sysdep.c:
aac0c6e3
MR
11988 * systty.h:
11989 * m/ibmrs6000.h:
11990 * m/iris4d.h:
11991 * s/aix4-2.h:
11992 * s/freebsd.h:
11993 * s/gnu-linux.h:
11994 * s/hpux10-20.h:
11995 * s/hpux11.h:
11996 * s/netbsd.h:
11997 * s/sol2-3.h:
11998 * s/sol2-4.h:
11999 * s/sol2.h:
12000 * s/usg5-4.h:
12001 * s/vms.h: Remove references to unused variables.
12002
120032008-07-10 Andreas Schwab <schwab@suse.de>
12004
12005 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12006 pattern before matching the generic family.
12007
120082008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12009
12010 * unexec.c:
12011 * s/vms.h:
12012 * s/usg5-4-2.h:
12013 * s/sol2-5.h:
12014 * s/freebsd.h:
12015 * s/darwin.h: Remove dead code.
12016
12017 * m/template.h:
12018 * m/sparc.h:
12019 * m/mips.h:
12020 * m/m68k.h:
12021 * m/iris4d.h:
12022 * m/intel386.h:
12023 * m/ibms390x.h:
12024 * m/ibms390.h:
12025 * m/ia64.h:
12026 * m/hp800.h:
12027 * m/arm.h:
12028 * m/amdx86-64.h: Remove dead code and references to unused
12029 and compiler defined symbols.
12030
12031 * unexmips.c:
12032 * unexelf.c: Remove references to desupported systems.
12033
12034 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12035
12036 * m/powermac.h: Remove boilerplate comments.
12037 (NO_REMAP): Remove unused definition.
12038
12039 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12040 define them.
12041
120422008-07-10 Kenichi Handa <handa@m17n.org>
12043
12044 * xfont.c (xfont_open): Log the reason of failure.
12045
120462008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12047
12048 * fontset.c (fontset_get_font_group):
12049 * font.c (font_check_otf): Specify argument types.
12050
120512008-07-09 Kenichi Handa <handa@m17n.org>
12052
12053 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12054 non-ASCII char is found.
12055
12056 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12057 (reorder_font_vector): Change the arg preferred_family to font.
12058 Prefer the spec matching with font.
12059 (fontset_get_font_group): New function.
12060 (fontset_find_font): Change the format of an element of a realized
12061 fontset. Use fontset_get_font_group.
12062 (fontset_font): Try the current fontset, the default fontset, the
12063 fallbacks of the current fontset, and the fallbacks of the default
12064 fontset in this order.
12065 (face_for_char): Delete the shortcut to use the current font.
12066 (fontset_from_font): Don't set fonts for Latin in the fontset.
12067
12068 * font.h (font_make_object, font_match_p): Adjust prototypes.
12069
12070 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12071
12072 * font.c (font_make_object): New arg entity and pixelsize.
12073 (font_check_otf_features, font_check_otf): New functions.
12074 (font_match_p): Check :lang, :script, and :otf properties.
12075
12076 * xfont.c (xfont_open): Adjust it for the change of
12077 font_make_object.
12078 (xfont_text_extents): Fix initial setting of metrics.
12079
12080 * ftfont.c (struct ftfont_info): New member index, delete member
12081 fc_charset_idx. Make the member order compatible with struct
12082 xftfont_info.
12083 (fc_charset_table): Change charset names to registry names.
12084 (ftfont_pattern_entity): Delete the args registry and
12085 fc_charset_idx. Change the value of :font-entity property
12086 to (FONTNAME . INDEX). Always set :registry property to
12087 `iso10646-1'.
12088 (struct ftfont_cache_data): New struct.
12089 (ftfont_lookup_cache): New arg for_face.
12090 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12091 (ftfont_driver): Set the member otf_capability.
12092 (ftfont_get_charset): Adjust it for the change of
12093 fc_charset_table.
12094 (OTF_TAG_SYM): New macro.
12095 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12096 for the change of fc_charset_table.
12097 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12098 ftfont_pattern_entity. Add FC_INDEX to objset.
12099 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12100 and ftfont_pattern_entity.
12101 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12102 font_make_object, struct ftfont_info.
12103 (ftfont_has_char): Use ftfont_get_fc_charset.
12104 (ftfont_otf_features, ftfont_otf_capability): New functions.
12105 (ftfont_shape): Use ftfont_get_otf.
12106 (ftfont_text_extents): Fix initial setting of metrics.
12107
12108 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12109 member order compatible with struct ftfont_info.
12110 (xftfont_open): Add FC_CHARSET to the pattern. Set
12111 xftfont_info->ft_size. Don't unlock the face. Check BDF
12112 properties if appropriate.
12113 (xftfont_close): Unlock the face.
12114 (xftfont_anchor_point, xftfont_shape): Deleted.
12115 (syms_of_xftfont): Don't set members anchor_point and shape of
12116 xftfont_driver.
12117
12118 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12119 font_make_object.
12120
12121 * w32font.c (w32font_open): Adjust it for the change of
12122 font_make_object.
12123 (w32font_open_internal): Don't set properties of font_object here.
12124
121252008-07-08 Chong Yidong <cyd@stupidchicken.com>
12126
12127 * macfns.c (x_create_tip_frame):
12128 * w32fns.c (x_create_tip_frame):
12129 * xfns.c (x_create_tip_frame): Pass parameter argument to
12130 face-set-after-frame-default.
12131
12132 * xfaces.c (Finternal_merge_in_global_face): Save merged
12133 attributes for the default face back into the face vector.
12134
121352008-07-08 Andreas Schwab <schwab@suse.de>
12136
12137 * fontset.h: Declare fontset_from_font. Don't declare
12138 new_fontset_from_font and fontset_from_font_name.
12139 * xterm.c: Include "fontset.h".
12140 * Makefile.in (xterm.o): Update dependencies.
12141
121422008-07-08 Glenn Morris <rgm@gnu.org>
12143
12144 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12145 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12146
121472008-07-07 Chong Yidong <cyd@stupidchicken.com>
12148
12149 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12150 (x_set_frame_parameters): Don't bind it.
12151
121522008-07-07 Juanma Barranquero <lekktu@gmail.com>
12153
12154 * w32fns.c (map_w32_filename): Declare extern.
12155
121562008-07-07 Jason Rumney <jasonr@gnu.org>
12157
12158 * w32term.c (WS_EX_LAYERED): Define if not already.
12159
121602008-07-06 Chong Yidong <cyd@stupidchicken.com>
12161
12162 * xfaces.c (set_font_frame_param): Don't try to set the font
12163 parameter if it is still unspecified in the lface.
12164
121652008-07-05 Chong Yidong <cyd@stupidchicken.com>
12166
12167 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12168 face if it didn't already exist.
12169
12170 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12171
121722008-07-05 Andreas Schwab <schwab@suse.de>
12173
12174 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12175
121762008-07-05 Chong Yidong <cyd@stupidchicken.com>
12177
12178 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12179 word-wrapping.
12180 (IT_DISPLAYING_WHITESPACE): New macro.
12181 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12182 when word-wrapping. Simplify word-wrapping logic. Use correct
12183 pixel positions when saving copies of the iterator.
12184 (display_line): Use proper wrap point if the last character on a
12185 line was preceded by whitespace.
12186
121872008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12188
12189 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12190
121912008-07-04 Kenichi Handa <handa@m17n.org>
12192
12193 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12194
12195 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12196
121972008-07-02 Jason Rumney <jasonr@gnu.org>
12198
12199 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12200 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12201
12202 * xdisp.c (next_element_from_display_vector): Move assignment out
12203 of if statement.
12204
122052008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12206
12207 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12208
12209 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12210 (syms_of_fileio): Initialize and export them.
12211 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12212
12213 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12214 (Fsystem_move_file_to_trash): New function.
12215 (syms_of_w32fns): Export it to lisp.
12216
122172008-07-01 Jason Rumney <jasonr@gnu.org>
12218
12219 * w32font.c (w32font_text_extents): Don't count overhang as part
12220 of width.
12221
122222008-06-30 Miles Bader <miles@gnu.org>
12223
12224 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12225 Add `avoid_cursor_p' field.
12226
12227 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12228 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12229 (append_glyph, append_composite_glyph, produce_image_glyph)
12230 (append_stretch_glyph): Initialize avoid_cursor_p.
12231 (get_it_property): Rename from `get_line_height_property'.
12232 (x_produce_glyphs): Use get_it_property.
12233 (handle_line_prefix, push_display_prop): New functions.
12234 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12235 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12236 New variables.
12237 (syms_of_xdisp): Initialize them.
12238
122392008-06-30 Kenichi Handa <handa@m17n.org>
12240
12241 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12242 XftDefaultSubstitute (they are called in XftFontMatch).
12243 (xftfont_open): Fix args to ftfont_font_format.
12244
12245 * ftfont.c (fc_charset_table): New member lang.
12246 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12247 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12248 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12249 (ftfont_open): Fix args to ftfont_font_format.
12250 (ftfont_font_format): New arg filename.
12251
122522008-06-30 Chong Yidong <cyd@stupidchicken.com>
12253
12254 * xfaces.c (Finternal_merge_in_global_face): If default face was
12255 modified, realize it again. Update the font face attribute.
12256
122572008-06-29 Jason Rumney <jasonr@gnu.org>
12258
12259 * w32term.c (x_set_frame_alpha): Fix logic.
12260
122612008-06-29 Kenichi Handa <handa@m17n.org>
12262
12263 * fontset.c (Finternal_char_font): Return font-object instead of
12264 font-name.
12265
12266 * composite.c (get_composition_id): Fix the width calculation for TAB.
12267
122682008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12269
12270 * indent.c (Fvertical_motion): Properly handle float column arg.
12271
122722008-06-28 Jason Rumney <jasonr@gnu.org>
12273
12274 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12275 (pfnSetLayeredWindowAttributes): New function pointer.
12276 (w32_initialize): Initialize it when supported.
12277 (x_set_frame_alpha): New function.
12278
12279 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12280 (w32_frame_parm_handlers): Set alpha handler.
12281
12282 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12283
122842008-06-27 Jason Rumney <jasonr@gnu.org>
12285
12286 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12287 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12288 (w32_to_x_charset, x_to_w32_charset)
12289 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12290 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12291 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12292 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12293 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12294 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12295 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12296 (Qw32_charset_unicode): Remove.
12297 (syms_of_w32fns): Update for above changes.
12298
12299 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12300 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12301 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12302 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12303 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12304 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12305 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12306 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12307 (syms_of_w32font): Update for above changes.
12308
123092008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12310
12311 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12312 removed #if.
12313 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12314
123152008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12316 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12317
12318 * makefile.w32-in (LOCAL_FLAGS):
12319 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12320
12321 * sysdep.c (_spawnlp, _getpid):
12322 Declare with explicit _cdecl instead of _CRTAPI1.
12323
12324 * editfns.c (Fget_internal_run_time):
12325 Check for WINDOWSNT with #ifdef, not #if.
12326
123272008-06-26 Jason Rumney <jasonr@gnu.org>
12328
12329 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12330
12331 * w32term.c (x_draw_glyph_string_foreground)
12332 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12333 Use FONT_HANDLE macro.
12334 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12335
12336 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12337 (uniscribe_encode_char): Use FONT_HANDLE macro.
12338
12339 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12340 (w32font_text_extents): Use precast w32_font.
12341 (w32font_close): Free cached metrics.
12342 (w32font_open_internal): Allocate space for name on stack.
12343
123442008-06-26 Chong Yidong <cyd@stupidchicken.com>
12345
12346 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12347
123482008-06-26 Jason Rumney <jasonr@gnu.org>
12349
12350 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12351 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12352
123532008-06-26 Juanma Barranquero <lekktu@gmail.com>
12354
12355 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12356
123572008-06-26 Jason Rumney <jasonr@gnu.org>
12358
12359 * w32bdf.c, w32bdf.h: Remove obsolete files.
12360
12361 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12362
12363 * w32gui.h: Don't include w32bdf.h.
12364 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12365 Remove obsolete font support.
12366
12367 * w32font.h (struct w32font_info): Remove compat_w32_font.
12368 Add hfont member.
12369 (FONT_COMPAT): Remove obsolete macro.
12370
12371 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12372 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12373 (w32font_open_internal): Remove compat code. Set new hfont member.
12374 (Fx_select_font): Use new hfont member.
12375
12376 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12377 (uniscribe_encode_char): Use new hfont member.
12378
12379 * w32term.c (x_draw_glyph_string_foreground)
12380 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12381 (x_draw_glyph_string): Use metrics in w32font_info.
12382
123832008-06-26 Kenichi Handa <handa@m17n.org>
12384
12385 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12386
123872008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12388
12389 * unexnext.c:
12390 * m/ews4800.h:
12391 * m/hp9000s300.h:
12392 * m/ibm370aix.h:
12393 * m/mips-siemens.h:
12394 * m/ncr386.h:
12395 * m/next.h:
12396 * m/pmax.h:
12397 * m/powerpcle.h:
12398 * m/tandem-s2.h:
12399 * s/386bsd.h:
12400 * s/bsd386.h:
12401 * s/bsd4-1.h:
12402 * s/bsd4-2.h:
12403 * s/bsdos2-1.h:
12404 * s/bsdos2.h:
12405 * s/bsdos3.h:
12406 * s/bsdos4.h:
12407 * s/nextstep.h:
12408 * s/ultrix4-3.h:
12409 * s/usg5-0.h:
12410 * s/usg5-2-2.h:
12411 * s/usg5-2.h:
12412 * s/usg5-4-3.h:
12413 * s/ux4800.h:
12414 * s/uxpds.h:
12415 * s/uxpv.h: Remove support for obsolete systems.
12416 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12417 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12418 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12419 Remove, insert contents in s/aix4-2.h.
12420 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12421 * s/bsd4-3.h: Rename to ...
12422 * s/bsd-common.h: ... this.
12423 * data.c:
12424 * doc.c:
12425 * ecrt0.c:
12426 * emacs.c:
12427 * fileio.c:
12428 * floatfns.c:
12429 * keyboard.c:
12430 * mem-limits.h:
12431 * print.c:
12432 * process.c:
12433 * sysdep.c:
12434 * syssignal.h:
12435 * systty.h:
12436 * syswait.h:
12437 * term.c:
12438 * unexec.c:
12439 * unexelf.c:
12440 * unexhp9k800.c:
12441 * m/hp800.h:
12442 * m/ibmrs6000.h:
12443 * m/mips.h:
12444 * m/vax.h:
12445 * s/darwin.h:
12446 * s/freebsd.h:
12447 * s/gnu.h:
12448 * s/ms-w32.h:
12449 * s/msdos.h:
12450 * s/netbsd.h:
12451 * s/template.h: Remove references to obsolete variables.
12452
12453 * Makefile.in: Add dependencies for all unexec files.
12454 (admindir): Remove unused variable.
12455 (UNEXEC_SRC): Remove references.
12456
124572008-06-25 Chong Yidong <cyd@stupidchicken.com>
12458
12459 * xfns.c (x_default_font_parameter): If Xft is available, first
12460 try Monospace-12 for the default font.
12461
124622008-06-25 Jason Rumney <jasonr@gnu.org>
12463
12464 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12465
124662008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12467
12468 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12469
12470 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12471
124722008-06-25 Juanma Barranquero <lekktu@gmail.com>
12473
12474 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12475 <scroll-conservatively>: Fix typo in docstring.
12476
12477 * xselect.c (Fx_send_client_event): Doc fix.
12478
124792008-06-25 Kenichi Handa <handa@m17n.org>
12480
12481 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12482
12483 * font.c (font_parse_fcname): Remove unused variables.
12484 (font_sort_entites): Delete the arg SPEC. Caller changed.
12485 Fix for the case of ! best_only.
12486 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12487
12488 * lisp.h (Fstring_to_unibyte): EXFUN it.
12489
12490 * character.h (str_to_unibyte): Extern it.
12491
12492 * character.c (str_to_unibyte): New function.
12493
12494 * fns.c (Fstring_to_unibyte): New function.
12495 (syms_of_fns): Defsubr it.
12496
124972008-06-24 Kenichi Handa <handa@m17n.org>
12498
12499 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12500 DPI too.
12501 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12502
125032008-06-24 Andreas Schwab <schwab@suse.de>
12504
12505 * Makefile.in (${lispsource}loaddefs.el): Rename from
12506 ../lisp/loaddefs.el.
12507 (bootstrap-clean): Do what distclean does but don't remove
12508 Makefile.
12509 (distclean): Depend on bootstrap-clean and remove Makefile.
12510
125112008-06-24 Chong Yidong <cyd@stupidchicken.com>
12512
12513 * buffer.h (struct buffer): New member word_wrap.
12514
12515 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12516 word-wrap.
12517 (init_buffer_once): Initialize them.
12518
12519 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12520 line_wrap enum possessing three possible values.
12521
12522 * termopts.h: Replace truncate_partial_width_windows with
12523 Vtruncate_partial_width_windows.
12524
12525 * dispnew.c (direct_output_for_insert): Avoid direct output when
12526 inserting a space with word wrap on.
12527
12528 * indent.c (compute_motion): Obey integer values of
12529 truncate-partial-width-windows.
12530
12531 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12532 replacing truncate_partial_width_windows.
12533 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12534 truncate only if the window width is below that integer.
12535 (start_display, resize_mini_window, produce_stretch_glyph)
12536 (display_string, move_it_in_display_line_to): Use line_wrap.
12537 (back_to_previous_visible_line_start, reseat_1): Reset
12538 string_from_display_prop_p.
12539 (display_line): Extend default face to end of line when wrapping.
12540
125412008-06-24 Kim F. Storm <storm@cua.dk>
12542
12543 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12544 to wrap continued lines at word boundaries.
12545
125462008-06-24 Jason Rumney <jasonr@gnu.org>
12547
12548 * font.c (Ffont_face_attributes): Multiply pixel size before point
12549 conversion to avoid multiplying rounding error.
12550
125512008-06-23 Jason Rumney <jasonr@gnu.org>
12552
12553 * w32term.c (x_draw_glyph_string_background)
12554 (x_draw_glyph_string): Remove old bdf font code.
12555
12556 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12557
125582008-06-22 Kenichi Handa <handa@m17n.org>
12559
12560 * font.c (font_find_for_lface): Try the adstyle specified in
12561 the property of LFACE_FONT of LFACE (if any).
12562
125632008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12564 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12565
12566 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12567
125682008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12569
12570 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12571 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12572 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12573 (witness-emacs): Remove.
12574 (lisp, shortlisp): Move loaddefs.el earlier.
12575 (mostlyclean): Forget about witness-emacs.
12576
125772008-06-22 Glenn Morris <rgm@gnu.org>
12578
12579 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12580 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12581
125822008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12583
12584 * Makefile.in (PRECOMP): Remove.
12585 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12586 (witness-emacs): Run `compile-first'.
12587 (.el.elc): Use the new compile-onefile target.
12588
125892008-06-21 Kenichi Handa <handa@m17n.org>
12590
12591 * xftfont.c (xftfont_open): Handle QCembolden only when
12592 FC_EMBOLDEN is defined.
12593
125942008-06-21 Andreas Schwab <schwab@suse.de>
12595
12596 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12597 (.el.elc): Likewise.
12598
125992008-06-21 Miles Bader <miles@gnu.org>
12600
12601 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12602 build dir, not the lisp source dir.
12603
126042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12605
12606 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12607 (bootstrapclean): Remove.
12608 (.el.elc): New rule.
12609 (PRECOMP): New var.
12610 (../lisp/subdirs.el): Remove.
12611 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12612 (witness-emacs): New target.
12613 (mostlyclean): Remove witness-emacs as well.
12614 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12615 Add witness-emacs dependency.
12616
126172008-06-20 Chong Yidong <cyd@stupidchicken.com>
12618
12619 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12620 defined by the font.
12621
126222008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12623
12624 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12625 (bootstrap-clean): New target that keeps TAGS around.
12626 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12627 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12628
126292008-06-20 Jason Rumney <jasonr@gnu.org>
12630
12631 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12632 Remove obsolete font code.
12633
12634 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12635 to determine language support.
12636
126372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12638
12639 * sysdep.c (cfsetspeed): New fun extracted from the code.
12640 (cfmakeraw): Move before first use.
12641
126422008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12643
12644 * sysdep.c (cfmakeraw): Provide fallback implementation.
12645 (serial_configure): Provide fallback implementation of cfsetspeed.
12646
126472008-06-20 Kenichi Handa <handa@m17n.org>
12648
12649 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12650 the pattern.
12651
12652 * fontset.c (fontset_from_font): Copy font_spec before changing
12653 the elements.
12654
12655 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12656
126572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12658
12659 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12660 for explicit `font' parameters.
12661
12662 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12663
126642008-06-19 Kenichi Handa <handa@m17n.org>
12665
12666 * frame.c: Include <ctype.h>.
12667 (x_set_font_backend): Allow spacing characters in the X resource
12668 for FontBackend.
12669
126702008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12671
12672 * w32fns.c, xfns.c (Qfont_param): New var.
12673 (syms_of_w32fns): Initialize it.
12674 (x_default_font_parameter): Record explicit `font' into
12675 `font-parameter'.
12676
126772008-06-18 Kenichi Handa <handa@m17n.org>
12678
12679 * font.c (font_parse_xlfd): Fix previous change.
12680 (font_parse_fcname): Don't use :fc-unknown-spec.
12681 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12682 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12683 (font_add_log): Prepend the driver name to the resulting fonts.
12684
12685 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12686 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12687 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12688
12689 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12690 (QCembolden): New variables.
12691 (syms_of_xftfont): DEFSYM them.
12692 (xftfont_open): Call XftFontMatch. Don't trust the result of
12693 XftTextExtents8 if the pixel_size is less than 5.
12694
126952008-06-18 Andreas Schwab <schwab@suse.de>
12696
12697 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12698 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12699
127002008-06-18 Jason Rumney <jasonr@gnu.org>
12701
12702 * w32font.c (w32font_list, w32font_match): Add logging.
12703
12704 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12705
127062008-06-17 Chong Yidong <cyd@stupidchicken.com>
12707
12708 * font.c (font_parse_fcname): Store divider characters for
12709 unknown-spec list. For known key symbols, intern using correct
12710 symbol name.
12711
127122008-06-17 Kenichi Handa <handa@m17n.org>
12713
12714 * xfaces.c (realize_default_face): If the frame is not on window
12715 system, set the fontset of face to nil.
12716
127172008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12718
12719 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12720
127212008-06-16 Juanma Barranquero <lekktu@gmail.com>
12722
12723 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12724 (build_font_name_from_vector): Delete externs.
12725
12726 * xfaces.c (struct font_name): Don't declare.
12727
127282008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12729
12730 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12731
127322008-06-16 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12735
127362008-06-16 Juanma Barranquero <lekktu@gmail.com>
12737
12738 * font.c (Ffont_spec): Fix usage in docstring.
12739 (Ffont_face_attributes): Doc fix.
12740
127412008-06-16 Andreas Schwab <schwab@suse.de>
12742
12743 * font.c (Ffont_face_attributes): Fix definition.
12744
127452008-06-16 Jason Rumney <jasonr@gnu.org>
12746
12747 * font.h (font_style_symbolic_from_value): Remove.
12748
12749 * font.c (font_style_symbolic_from_value): Remove.
12750 (font_style_symbolic): Revert to pre 2008-06-13 version.
12751
12752 * w32font.c (w32_to_fc_weight): New function.
12753 (w32font_full_name, logfont_to_fcname): Use it.
12754
127552008-06-16 Kenichi Handa <handa@m17n.org>
12756
12757 * font.c (font_check_object): Delete it.
12758 (font_clear_cache): Check if a font-object is alive.
12759 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12760 font-object to nil.
12761 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12762 (font_at): Don't call font_check_object.
12763 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12764
127652008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12766
12767 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12768
127692008-06-16 Chong Yidong <cyd@stupidchicken.com>
12770
12771 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12772
127732008-06-15 Chong Yidong <cyd@stupidchicken.com>
12774
12775 * font.c (font_parse_fcname): Only one decimal point.
12776 (font_unparse_fcname): Handle data in family and foundry indices
12777 as symbols, not strings.
12778 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12779
12780 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12781
12782 * font.h (font_unparse_gtkname): Add prototype.
12783
127842008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12785
12786 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12787
127882008-06-15 Andreas Schwab <schwab@suse.de>
12789
12790 * font.c (font_update_drivers): Fix crash when no drivers match.
12791
127922008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12793
12794 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12795 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12796
127972008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12798
12799 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12800
128012008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12802
12803 * process.c (Fserial_process_configure, Fprocess_send_eof):
12804 Use EQ to compare Lisp_Objects.
12805
128062008-06-13 Jason Rumney <jasonr@gnu.org>
12807
12808 * w32fns.c (Fw32_select_font): Remove old font API function.
12809
12810 * w32font.c (logfont_to_fcname): New function.
12811 (Fx_select_font): New font dialog function compatible with
12812 GTK/fontconfig version.
12813
12814 * font.c (font_style_symbolic_from_value): New function.
12815 (font_style_symbolic): Use it.
12816
12817 * font.h (font_style_symbolic_from_value): Declare new function.
12818
128192008-06-13 Juanma Barranquero <lekktu@gmail.com>
12820
12821 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12822 <font-width-table>: Fix typos in docstrings.
12823
128242008-06-13 Daniel Engeler <engeler@gmail.com>
12825
12826 These changes add serial port access.
12827 * process.c: Add HAVE_SERIAL.
12828 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12829 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12830 (list_processes_1, select_wrapper, Fstop_process)
12831 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12832 (status_notify): Modify to handle serial processes.
12833 [HAVE_SERIAL] (Fserial_process_configure)
12834 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12835 New functions.
12836 * process.h (struct Lisp_Process): Add `type'.
12837 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12838 New functions.
12839 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12840 serial ports.
b71ac3dd 12841 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12842 * w32.h: Add FILE_SERIAL.
12843 (struct _child_process): Add ovl_read, ovl_write.
12844
128452008-06-13 Kenichi Handa <handa@m17n.org>
12846
12847 * dispextern.h (enum lface_attribute_index): New member
12848 LFACE_FOUNDRY_INDEX.
12849
12850 * font.c (font_score): Delete arg alternate_families. Check only
12851 weight, slant, width, and size. Ignore the difference of alias
12852 style symbols.
12853 (font_sort_entites): Adjust for the above change. Reflect the
12854 order of font-driver to scores.
12855 (font_list_entities): Don't check alternate_familes here.
12856 (font_clear_prop): Handle foundry.
12857 (font_update_lface): Don't parse "foundry-family" form here.
12858 Handle FONT_FOUNDRY_INDEX.
12859 (font_find_for_lface): Likewise. Handle alternate families here.
12860 If registry is nil, try iso8859-1 and ascii-0.
12861 (font_open_for_lface): Pay attention to size in ENTITY.
12862 (font_open_by_name): Simplify by calling font_load_for_lface.
12863 (free_font_driver_list): Delete it.
12864 (font_update_drivers): Preserve the order of backends.
12865 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12866 of font_score and font_sort_entites.
12867 (font_update_sort_order): Likewise.
12868
12869 * xfaces.c (LFACE_FOUNDRY): New macro.
12870 (check_lface_attrs): Check foundry.
12871 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12872 (merge_face_vectors): Check foundry.
12873 (merge_face_ref): Likewise.
12874 (Finternal_set_lisp_face_attribute): Likewise.
12875 (x_update_menu_appearance): Likewise.
12876 (Finternal_get_lisp_face_attribute): Likewise.
12877 (lface_hash): Likewise.
12878 (lface_same_font_attributes_p): Likewise.
12879 (x_supports_face_attributes_p): Likewise.
12880 (tty_supports_face_attributes_p): Likewise.
12881 (Finternal_set_alternative_font_family_alist): Intern strings.
12882 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12883 (realize_default_face): Set LFACE_FOUNDRY (lface).
12884
12885 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12886 font-driver at first.
12887
12888 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12889
128902008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12891
12892 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12893
128942008-06-12 Jim Meyering <meyering@redhat.com>
12895
12896 Make unexec_free handle NULL the same way free does.
12897 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12898
128992008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12900
12901 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12902 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12903 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12904 (WEAK_ALIAS): Simplify.
12905 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12906 when searching a unibyte buffer.
12907
129082008-06-12 Chong Yidong <cyd@stupidchicken.com>
12909
12910 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12911
129122008-06-12 Juanma Barranquero <lekktu@gmail.com>
12913
12914 * w32font.c: Include ctype.h.
12915
129162008-06-11 Jason Rumney <jasonr@gnu.org>
12917
12918 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12919 misreported as space.
12920 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12921 as aliases for registry iso10646-1.
12922
129232008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12924
12925 * buffer.c (clone_per_buffer_values): Skip `name'.
12926
129272008-06-11 Chong Yidong <cyd@stupidchicken.com>
12928
12929 * font.c (font_parse_fcname): Fix last change; accept decimal
12930 points in font size.
12931
129322008-06-10 Jason Rumney <jasonr@gnu.org>
12933
12934 * w32uniscribe.c (add_opentype_font_name_to_list):
12935 Skip non unicode fonts.
12936
129372008-06-10 Chong Yidong <cyd@stupidchicken.com>
12938
12939 * xfns.c (Fx_font_dialog): New function.
12940
12941 * gtkutil.c (xg_dialog_response_cb): Rename from
12942 xg_file_response_callback.
12943 (pop_down_dialog): Rename from pop_down_file_dialog.
12944 (xg_get_file_name): Callers changed.
12945 (xg_get_font_name): New function.
12946
12947 * gtkutil.h (xg_get_font_name): Insert prototype.
12948
129492008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12950
12951 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12952 x_underline_minimum_display_offset.
12953 (syms_of_xdisp): Declare it here rather than in xterm.c.
12954 * dispextern.h (underline_minimum_offset): Declare it.
12955 * w32term.c (x_draw_glyph_string): Use it.
12956 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12957 (syms_of_xterm): Don't declare it any more.
12958 (x_draw_glyph_string): Adjust to the new name.
12959
8719abec 129602008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12961
12962 * xterm.c (x_underline_minimum_display_offset): New var.
12963 (x_draw_glyph_string): Use it.
12964 (syms_of_xterm): Declare it.
12965
129662008-06-10 Chong Yidong <cyd@stupidchicken.com>
12967
12968 * font.c (font_parse_fcname): Accept GTK-style font names too.
12969
129702008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12971
12972 * dired.c (file_name_completion): Don't return t if the match is exact
12973 but with different capitalization.
12974 * minibuf.c (Ftry_completion): Simplify.
12975
12976 * window.c (Vwindow_point_insertion_type): New var.
12977 (set_window_buffer): Use it.
12978 (syms_of_window): Init and export it to Lisp.
12979
129802008-06-10 Kenichi Handa <handa@m17n.org>
12981
12982 * font.h (font_intern_prop): Prototype adjusted.
12983
12984 * font.c (font_intern_prop): New arg force_symbol.
12985 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12986 Adjust for the change of font_intern_prop.
12987
12988 * ftfont.c (ftfont_pattern_entity):
12989 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12990 (w32_registry):
12991 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12992 the change of font_intern_prop.
12993
129942008-06-09 Juanma Barranquero <lekktu@gmail.com>
12995
12996 * w32menu.c (digest_single_submenu): Declare extern.
12997
129982008-06-09 Jason Rumney <jasonr@gnu.org>
12999
13000 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13001
13002 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13003 (parse_single_submenu): Remove.
13004 (digest_single_submenu): Remove.
13005 (syms_of_w32menu): Don't initialise variables that have moved
13006 to menu.c.
13007 (set_frame_menubar): Sync with version in xmenu.c.
13008 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13009
13010 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13011 Make static again.
13012
130132008-06-09 Jason Rumney <jasonr@gnu.org>
13014
13015 Changes to w32 files related to the move of common menu code
13016 to menu.c on 2008-06-08 by Chong Yidong.
13017
13018 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13019 defs to w32gui.h.
13020 (single_keymap_panes, push_menu_item, push_menu_pane):
13021 Make globally visible.
13022
13023 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13024 (local_free, malloc_widget_value, free_widget_value)
13025 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13026 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13027 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13028 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13029 (menu_items, menu_items_allocated, menu_items_used)
13030 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13031 (init_menu_items, finish_menu_items, discard_menu_items)
13032 (grow_menu_items, push_submenu_start, push_submenu_end)
13033 (push_left_right_boundary, push_menu_pane, push_menu_item)
13034 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13035 (free_menubar_widget_tree_value, parse_single_submenu)
13036 (update_submenu_strings): Remove functions.
13037 (xmalloc_widget_value): Remove and declare extern.
13038
13039 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13040 (OBJ1): Build it.
13041
13042 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13043 (local_heap, local_alloc, local_free, malloc_widget_value)
13044 (free_widget_value): Define here.
13045
130462008-06-09 Kenichi Handa <handa@m17n.org>
13047
13048 * font.h (Qascii_0): Extern it.
13049
13050 * font.c (Qascii_0): New variable.
13051 (syms_of_font): DEFSYM it.
13052 (font_open_by_name): If the registry "iso8859-1" fails, try also
13053 "ascii-0".
13054
13055 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13056
130572008-06-08 Kenichi Handa <handa@m17n.org>
13058
13059 * .gdbinit (xfont): New command.
13060
130612008-06-08 Andreas Schwab <schwab@suse.de>
13062
13063 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13064 * Makefile.in (menu.o): Update dependencies.
13065
13066 * Makefile.in (obj): Always add menu.o.
13067 * emacs.c (main): Always call syms_of_menu.
13068 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13069
130702008-06-08 Chong Yidong <cyd@stupidchicken.com>
13071
13072 * Makefile.in: Compile menu.c.
13073
13074 * lisp.h: Declare syms_of_menu.
13075
13076 * emacs.c (main): Call syms_of_menu.
13077
13078 * keyboard.h: Relocate platform-independent menu definitions from
13079 xmenu.c.
13080
13081 * menu.c: New file. Relocate platform-independent menu
13082 definitions from xmenu.c. Suggested by Adrian Robert.
13083
13084 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13085 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13086 (menu_items_used, menu_items_n_panes)
13087 (menu_items_submenu_depth): Move to keyboard.h.
13088 (init_menu_items, finish_menu_items, unuse_menu_items)
13089 (discard_menu_items, restore_menu_items, save_menu_items)
13090 (grow_menu_items, push_submenu_start, push_submenu_end)
13091 (push_left_right_boundary, push_menu_pane, push_menu_item)
13092 (keymap_panes, single_keymap_panes, single_menu_item)
13093 (list_of_panes, list_of_items, find_and_call_menu_selection)
13094 (xmalloc_widget_value, free_menubar_widget_value_tree)
13095 (parse_single_submenu, digest_single_submenu)
13096 (update_submenu_strings): Move to menu.c.
13097
130982008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13099
13100 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13101
131022008-06-06 Miles Bader <miles@gnu.org>
13103
13104 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13105 face, not frame default.
13106
131072008-06-05 Martin Rudalics <rudalics@gmx.at>
13108
13109 * window.c (pop_up_windows, pop_up_frames)
13110 (display_buffer_reuse_frames, Vpop_up_frame_function)
13111 (Vdisplay_buffer_function, Veven_window_heights)
13112 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13113 (Vspecial_display_function, Vsame_window_buffer_names)
13114 (Vsame_window_regexps, split_height_threshold)
13115 (Vsplit_window_preferred_function): Move those vars to window.el.
13116 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13117 (Fdisplay_buffer): Move those functions to window.el.
13118 (syms_of_window): Remove corresponding declarations.
13119 (display_buffer): New function.
13120 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13121 * dispnew.c (Flast_nonminibuf_frame): New function.
13122 * buffer.c (Fpop_to_buffer): Move to window.el.
13123
131242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13125
13126 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13127
131282008-06-05 Kenichi Handa <handa@m17n.org>
13129
13130 * coding.c (detect_coding): Fix previous change.
13131 (detect_coding_system): Likewise.
13132
131332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13134
13135 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13136
13137 * keymap.c (Vminibuffer_local_filename_must_match_map):
13138 Rename from Vminibuffer_local_must_match_filename_map.
13139 (syms_of_keymap):
13140 * minibuf.c (Fcompleting_read): Adjust accordingly.
13141 * commands.h: Rename declaration as well.
13142
131432008-06-05 Kenichi Handa <handa@m17n.org>
13144
13145 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13146 family name.
13147 (Ffont_put): Likewise.
13148
13149 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13150 current font-spec.
13151
13152 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13153 is unspecified.
13154
13155 * xfaces.c (realize_x_face): If the font-related face attributes
13156 are the same as those of default face, realize a new fontset from
13157 default->fontset.
13158 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13159
131602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13161
13162 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13163 (move_it_in_display_line): New wrapper.
13164
13165 * window.c (window_scroll_pixel_based_preserve_x)
13166 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13167 (window_scroll_pixel_based, window_scroll_line_based):
13168 Use them to preserve column positions.
13169 (syms_of_window): Initialize them.
13170
13171 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13172 (HPOS . VPOS) pair.
13173
13174 * dispextern.h (move_it_in_display_line): Declare.
13175
131762008-06-05 Juanma Barranquero <lekktu@gmail.com>
13177
13178 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13179 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13180 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13181
131822008-06-04 Juanma Barranquero <lekktu@gmail.com>
13183
13184 * window.c (Fset_window_parameter): Doc fix.
13185 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13186
131872008-06-04 Joakim Verona <joakim@verona.se>
13188
13189 * window.h (struct window): Add new member window_parameters.
13190
13191 * window.c (Fwindow_parameters, Fwindow_parameter)
13192 (Fset_window_parameter): New defuns.
13193 (syms_of_window): Defsubr the new defuns.
13194 (make_window): Initialize window_parameters to nil.
13195
131962008-06-04 John Paul Wallington <jpw@pobox.com>
13197
13198 * eval.c (Fdefmacro): Doc fix.
13199
132002008-06-04 Kenichi Handa <handa@m17n.org>
13201
13202 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13203 Be sure to call setup_coding_system when we find a proper coding system.
13204 (detect_coding_system): Fix handling of coding->head_ascii.
13205
132062008-06-03 Andreas Schwab <schwab@suse.de>
13207
13208 * font.c (font_prop_validate_spacing): Fix last change.
13209
132102008-06-03 Kenichi Handa <handa@m17n.org>
13211
13212 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13213 (font_parse_fcname): Fix handling of unknown key.
13214
13215 * xfont.c (xfont_list): Try an alias.
13216
13217 * charset.c (char_charset): Return NULL if the arg charset_list is
13218 specified and C doesn't belong to any of them.
13219
132202008-06-02 Chip Coldwell <coldwell@redhat.com>
13221
13222 * font.c (font_pixel_size): Don't take cdr of an integer.
13223
132242008-06-02 Jim Meyering <meyering@redhat.com>
13225
13226 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13227 * alloc.c (xfree): Return right away for a NULL arg.
13228 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13229 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13230 * mac.c (create_apple_event_from_event_ref): Likewise.
13231 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13232 Likewise.
13233 * doprnt.c (doprnt1): Likewise.
13234 * frame.c (frame): Likewise.
13235 * keyboard.c (wipe_kboard): Likewise.
13236 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13237 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13238 * term.c (tty_default_color_capabilities, maybe_fatal)
13239 (delete_tty): Likewise.
13240 * w16select.c (string): Likewise.
13241 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13242 * w32bdf.c (w32_free_bdf_font): Likewise.
13243 * w32fns.c (w32_unload_font): Likewise.
13244 * w32font.c (w32font_close): Likewise.
13245 * window.c (size_window): Likewise.
13246 * xselect.c (receive_incremental_selection): Likewise.
13247 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13248 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13249 * w32.c (stat): Likewise.
13250
13251 Remove useless if-before-free tests.
13252 * editfns.c (Fset_time_zone_rule): Likewise.
13253 * lread.c (nosuffix): Likewise.
13254 * ralloc.c (get_bloc): Likewise.
13255 * regex.c (reg_free): Likewise.
13256 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13257 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13258 * xsmfns.c (smc_save_yourself_CB): Likewise.
13259
132602008-06-02 Kenichi Handa <handa@m17n.org>
13261
13262 * font.c (font_find_for_lface): Handle float font size.
13263 (font_open_for_lface): Likewise.
13264
13265 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13266 comparing the properties.
13267
132682008-06-01 Jason Rumney <jasonr@gnu.org>
13269
13270 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13271 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13272 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13273 Don't add empty script list.
13274 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13275
132762008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13277
13278 * Makefile.in (dot, dotdot): Remove, update users.
13279 ".." has been used elsewhere in the file for a long time.
13280 (LIBXT_STATIC): Remove conditional based on unused variable.
13281
132822008-06-01 Miles Bader <miles@gnu.org>
13283
13284 * xfaces.c (Vface_remapping_alist): New variable.
13285 (syms_of_xfaces): Initialize it.
13286 (enum named_merge_point_kind): New type.
13287 (struct named_merge_point): Add `named_merge_point_kind' field.
13288 (push_named_merge_point): Make cycle detection respect different
13289 named-merge-point kinds.
13290 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13291 Remove face-name alias resolution.
13292 (lface_from_face_name): New definition using
13293 `lface_from_face_name_no_resolve'.
13294 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13295 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13296 (get_lface_attributes): New definition that layers face-remapping on
13297 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13298 (lookup_basic_face): New function.
13299 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13300 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13301 `get_lface_attributes'.
13302 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13303 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13304 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13305
13306 * xdisp.c (init_iterator): Pass base_face_id through
13307 `lookup_basic_face' when we actually use it as a face-id.
13308 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13309 DEFAULT_FACE_ID.
13310
13311 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13312 lookup the initial face-id.
13313
13314 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13315
133162008-06-01 Juanma Barranquero <lekktu@gmail.com>
13317
13318 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13319 (Fremove_text_properties): Fix typos in docstrings.
13320
133212008-05-31 Kenichi Handa <handa@m17n.org>
13322
13323 * font.c (font_list_entities): Fix the car part of data to be
13324 stored in the cache.
13325
13326 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13327
133282008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13329
13330 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13331 Add a `test' argument so another predicate than `equal' can be used.
13332 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13333 (map_char_table): Remove unused vars `c' and `i'.
13334 * lisp.h (Foptimize_char_table): Adjust declaration.
13335 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13336
133372008-05-30 Kenichi Handa <handa@m17n.org>
13338
13339 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13340 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13341 defined.
13342
133432008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13344
13345 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13346 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13347 frame-local settings for the same variable.
13348
133492008-05-30 Kenichi Handa <handa@m17n.org>
13350
13351 * fontset.c (Ffont_info): Move to font.c.
13352 (syms_of_fontset): Delete defsubr of Sfont_info.
13353
13354 * font.c (font_style_to_value, font_score): Delete casting of the
13355 args to xstcasecmp.
13356 (register_font_driver): Increment num_font_drivers only when
13357 registering the driver globally.
13358 (Ffont_info): Move from fontset.c. Handle a font object too.
13359 (syms_of_font): Defsubr Sfont_info.
13360
133612008-05-29 Kenichi Handa <handa@m17n.org>
13362
13363 * coding.h (enum define_coding_utf8_arg_index): New enum.
13364 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13365 coding_attr_utf_bom.
13366 (enum utf_bom_type): Rename from utf_16_bom_type.
13367 (struct utf_16_spec): Adjust for the above change.
13368 (struct coding_system): Add utf_8_bom in `spec' union.
13369
13370 * coding.c (CODING_UTF_8_BOM): New macro.
13371 (enum coding_category): Delete coding_category_utf_8, add
13372 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13373 coding_category_utf_8_sig.
13374 (CATEGORY_MASK_UTF_8): Delete it.
13375 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13376 (CATEGORY_MASK_UTF_8_SIG): New macros.
13377 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13378 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13379 CATEGORY_MASK_UTF_8_SIG.
13380 (CATEGORY_MASK_UTF_8): New macro.
13381 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13382 (detect_coding_utf_8): Check BOM.
13383 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13384 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13385 (encode_coding_utf_16): Likewise.
13386 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13387 (detect_coding, detect_coding_system): Handle utf-8-auto.
13388 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13389 (syms_of_coding): Fix setting up of Vcoding_category_table.
13390
133912008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13392
13393 * process.c (Faccept_process_output): If `millisec' is non-nil,
13394 `seconds' default to 0.
13395 (wait_reading_process_output): Also return non-nil if we read output
13396 from a non-running process.
13397
133982008-05-29 Jason Rumney <jasonr@gnu.org>
13399
13400 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13401 `raster' specified.
13402 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13403 in the uniscribe backend, but disallow any font that has no
13404 unicode subrange support.
13405
134062008-05-29 Juanma Barranquero <lekktu@gmail.com>
13407
13408 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13409 Fix typos in docstrings.
13410
134112008-05-29 Kenichi Handa <handa@m17n.org>
13412
13413 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13414 (Fx_family_fonts): Set frame correctly.
13415
134162008-05-28 Jason Rumney <jasonr@gnu.org>
13417
13418 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13419
134202008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13421
13422 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13423 calling build_annotations.
13424
134252008-05-28 Juanma Barranquero <lekktu@gmail.com>
13426
13427 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13428 (Fencode_coding_string):
13429 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13430 <latin-extra-code-table>: Fix typos in docstrings.
13431 (syms_of_coding) <coding-system-alist>: Doc fix.
13432 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13433
134342008-05-28 Kenichi Handa <handa@m17n.org>
13435
13436 * fontset.c (Ffont_info): Don't call font_close_object.
13437
13438 * font.c (font_parse_family_registry): Use Ffont_put to validate
13439 foundry and family.
13440 (font_delete_unmatched): Don't check spacing.
13441 (font_list_entities): Add spacing to the spec to list fonts.
13442
13443 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13444 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13445
13446 * coding.c (encode_coding_raw_text): Fix previous change.
13447 (encode_coding_object): When the dst_object is a buffer and is
13448 different from src_object, move gap to PT.
13449
134502008-05-27 Chong Yidong <cyd@stupidchicken.com>
13451
13452 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13453
134542008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13455
13456 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13457 all branches. Compute it differently.
13458
13459 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13460
134612008-05-27 Juanma Barranquero <lekktu@gmail.com>
13462
13463 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13464 into "else if () ... else ...".
13465
134662008-05-27 Jason Rumney <jasonr@gnu.org>
13467
13468 * w32font.c (w32font_open_internal): Determine if glyph indices
13469 are likely to work here.
13470
134712008-05-27 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13474 draw overlap glyphs with appropriate highlighting.
13475
134762008-05-27 Kenichi Handa <handa@m17n.org>
13477
13478 * xfont.c (xfont_open): Fix calculation of font->average_width.
13479
134802008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13481
13482 * casefiddle.c (casify_object): Try to guess better whether the
13483 argument is a byte or a char.
13484
134852008-05-26 Andreas Schwab <schwab@suse.de>
13486
13487 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13488 Always send multiples of format size.
13489
13490 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13491
134922008-05-26 Jason Rumney <jasonr@gnu.org>
13493
13494 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13495 (compute_metrics): Don't set failure if we just cleared the cache.
13496 (w32_weight_table): Remove unused variable.
13497 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13498 backwards compatibility.
13499
135002008-05-25 Kenichi Handa <handa@m17n.org>
13501
13502 * w32term.c (x_draw_glyph_string):
13503 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13504
13505 * xfaces.c: Delete unused function prototypes.
13506 (xstrlwr, font_frame): Delete them.
13507 (clear_face_cache): Delete unused variable.
13508
13509 * xftfont.c (xftfont_open): Delete unused variable.
13510 If underline_thickness is not 1, adjust underline_position.
13511
13512 * ftxfont.c (ftxfont_open): Delete unused variable.
13513
13514 * fontset.c (face_for_char): Optimize for the case of no charset
13515 property.
13516
13517 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13518 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13519 (otf_open, font_otf_capability, generate_otf_features)
13520 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13521 Comment out by surrounding "#if 0" and "#endif" for the moment.
13522 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13523 (syms_of_font): Codes for accessing above commented out.
13524
135252008-05-24 Eli Zaretskii <eliz@gnu.org>
13526
13527 * w32proc.c: Include dispextern.h.
13528
13529 * w32.c: Include dispextern.h.
13530
135312008-05-23 Juanma Barranquero <lekktu@gmail.com>
13532
13533 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13534 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13535 Fix typos in docstrings.
13536
135372008-05-23 Jason Rumney <jasonr@gnu.org>
13538
13539 * xsmfns.c: Remove includes that are already included by config.h.
13540
135412008-05-23 Kenichi Handa <handa@m17n.org>
13542
13543 * charset.c (Qemacs, charset_emacs): New variables.
13544 (char_charset): Fix for non-Unicode characters.
13545 (syms_of_charset): Define charset_emacs.
13546
13547 * w32term.c (x_draw_glyph_string): Be sure to update
13548 s->underline_thickness and s->underline_position. Be sure to draw
13549 underline within the current line area.
13550
13551 * xterm.c (x_draw_glyph_string): Be sure to update
13552 s->underline_thickness and s->underline_position. Be sure to draw
13553 underline within the current line area.
13554
13555 * fontset.c: Delete unused variables and add casting for char *
13556 throughout the file.
13557 (fontset_font): Try the fallback fonts of the current fontset
13558 before consulting the default fontset.
13559
13560 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13561
13562 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13563
135642008-05-22 Jason Rumney <jasonr@gnu.org>
13565
13566 * font.c: Don't include strings.h.
13567
13568 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13569
13570 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13571 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13572 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13573 to call xstrcasecmp.
13574
13575 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13576
13577 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13578
13579 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13580
13581 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13582
135832008-05-22 Kenichi Handa <handa@m17n.org>
13584
13585 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13586
13587 * font.c (font_prop_validate_style): Adjust for the format
13588 change of font_style_table.
13589
13590 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13591 two args.
13592
13593 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13594 two args.
13595
135962008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13597
13598 * minibuf.c (keys_of_minibuf): Delete.
13599 * lisp.h (keys_of_minibuf): Delete.
13600 * emacs.c (main): Don't call keys_of_minibuf.
13601
136022008-05-22 Kenichi Handa <handa@m17n.org>
13603
13604 * ftfont.c (ftfont_resolve_generic_family): Rename from
13605 ftfont_list_generic_family. Return a single family for each
13606 generic family.
13607 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13608 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13609 Call font_add_log.
13610 (ftfont_match): Call font_add_log.
13611
13612 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13613 (FONT_DEBUG): Define it.
13614 (font_add_log): Extern it.
13615 (font_assert): Rename from xassert.
13616
13617 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13618 (xfont_list_family): Call font_add_log.
13619 (xfont_match): Likewise.
13620 (memq_no_quit): Delete.
13621
13622 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13623 call of Ffont_xlfd_name.
13624
13625 * xfaces.c (struct table_entry, slant_table, weight_table)
13626 (swidth_table): Move to font.c.
13627
13628 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13629 xassert are changed to font_assert. Delete many unused variables.
13630 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13631 New variables.
13632 (struct table_entry): Move from xfaces.c and modified.
13633 (weight_table, slant_table, width_table): Move from xfaces.c and
13634 contents adjusted for the change of struct table_entry.
13635 (font_style_to_value, font_style_symbolic): Adjust for the
13636 format change of font_style_table.
13637 (font_parse_family_registry): Don't overwrite existing foundry and
13638 family of font_spec.
13639 (font_score): Fix calculation of diff for sizes.
13640 (font_sort_entites): Call font_add_log.
13641 (font_delete_unmatched): Return a newly created list.
13642 (font_list_entities): Fix previous change. Call font_add_log.
13643 (font_matching_entity, font_open_entity, font_close_entity):
13644 Call font_add_log.
13645 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13646 (Finternal_set_font_style_table): Delete.
13647 (BUILD_STYLE_TABLE): New macro.
13648 (build_style_table): New function.
13649 (Vfont_log, font_log_env_checked): New variables.
13650 (font_add_log): New function.
13651 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13652 Declare Lisp variables "font-weight-table", "font-slant-table",
13653 "font-width-table", and "font-log". Initialize font_style_table.
13654
136552008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13656
13657 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13658
136592008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13660 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13661
13662 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13663 (Vframe_alpha_lower_limit): New variable.
13664 (x_set_alpha): New function.
13665
13666 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13667
13668 * xfns.c (x-create-frame, Qalpha):
13669 Initialize the frame parameter `alpha'.
13670 * xterm.c (OPAQUE, OPACITY): New.
13671 (x_set_frame_alpha): New function.
13672 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13673
13674 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13675 * w32fns.c (w32_frame_parm_handlers): Likewise.
13676
136772008-05-20 Jason Rumney <jasonr@gnu.org>
13678
13679 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13680 truetype fonts to opentype list.
13681
136822008-05-20 Juanma Barranquero <lekktu@gmail.com>
13683
13684 * fontset.c (Ffontset_info): Doc fix.
13685 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13686 <ignore-relative-composition>: Fix typos in docstrings.
13687
13688 * font.c (syms-of-font) <font-encoding-alist>:
13689 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13690 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13691 (Ffont_otf_alternates): Doc fixes.
13692
136932008-05-20 Kenichi Handa <handa@m17n.org>
13694
13695 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13696 font.h through out the file.
13697 (FONT_DRIVERS): Rename from FONTOBJ.
13698 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13699 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13700
13701 * emacs.c (main): Call syms_of_font unconditionally.
13702
13703 * font.h (find_font_encoding): Extern it.
13704
13705 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13706 fontset.c.
194d44e7 13707 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13708 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13709 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13710 only when HAVE_WINDOW_SYSTEM is defined.
13711 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13712 when HAVE_WINDOW_SYSTEM is defined.
13713
13714 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13715 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13716
13717 * xfaces.c: Include font.h unconditionally.
13718 (merge_face_ref, merge_face_vectors)
13719 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13720
137212008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13722
13723 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13724 indirect_variable.
13725 * eval.c (lisp_indirect_variable): New fun.
13726 (Fuser_variable_p): Use it.
13727
137282008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13729
13730 * lisp.h (indirect_variable):
13731 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13732 Use Lisp_Symbol pointers rather than Lisp_Object.
13733 Adjust callers.
13734 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13735 To this end, change calling-convention.
13736
13737 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13738 if some non-hidden buffers are selected by string&pred.
13739
137402008-05-19 Chong Yidong <cyd@stupidchicken.com>
13741
13742 * process.c (wait_reading_process_output): Always check status
13743 when in batch mode.
13744
137452008-05-19 Kenichi Handa <handa@m17n.org>
13746
13747 * font.c (font_list_entities): Fix handling of cache.
13748 (font_matching_entity): Likewise.
13749
13750 * ftfont.c (cs_iso8859_1): Delete.
13751 (ft_face_cache): New variable.
13752 (struct ftfont_info): New member fc_charset_idx.
13753 (ftfont_build_basic_charsets): Delete.
13754 (fc_charset_table): New variable.
13755 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13756 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13757 Callers changed.
13758 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13759 (ftfont_spec_pattern): New argument fc_charset_idx.
13760 Check registry more rigidly. Change callers.
13761 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13762 change of :font-entity property of the font.
13763
13764 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13765 property of the font.
13766
137672008-05-18 Juanma Barranquero <lekktu@gmail.com>
13768
13769 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13770 (Funencodable_char_position, Fcheck_coding_systems_region)
13771 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13772 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13773 (Ffind_operation_coding_system, Fset_coding_system_priority)
13774 (Fcoding_system_eol_type): Doc fixes.
13775
137762008-05-17 Glenn Morris <rgm@gnu.org>
13777
13778 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13779
137802008-05-16 Eli Zaretskii <eliz@gnu.org>
13781
13782 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13783 and st_gid.
13784
13785 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13786 HAVE_WINDOW_SYSTEM is not defined.
13787
13788 * xfaces.c (merge_face_ref, merge_face_vectors)
13789 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13790 HAVE_WINDOW_SYSTEM is defined.
13791 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13792
137932008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13794
13795 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13796
137972008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13798
13799 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13800
138012008-05-15 Kenichi Handa <handa@m17n.org>
13802
13803 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13804 preference.
13805
138062008-05-15 Glenn Morris <rgm@gnu.org>
13807
13808 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13809
138102008-05-15 Chong Yidong <cyd@stupidchicken.com>
13811
13812 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13813 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13814
13815 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13816
138172008-05-15 Kenichi Handa <handa@m17n.org>
13818
13819 * ftfont.c (ftfont_list): Downcase family name to check generic
13820 families.
13821
13822 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13823 font-spec for QCfont value.
13824
13825 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13826 buffer. Check the return value of it.
13827
138282008-05-14 Jason Rumney <jasonr@gnu.org>
13829
13830 * w32term.c (w32_get_glyph_overhangs): Remove.
13831 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13832
138332008-05-14 Kenichi Handa <handa@m17n.org>
13834
13835 * font.c (font_prop_validate): Make nil a valid value.
13836 (font_clear_cache): Check if the cached vector of entities is nil
13837 or not.
13838
138392008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13840
13841 * emacs.c (main_thread): Conditionalize on
13842 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13843 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13844
13845 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13846 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13847 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13848
138492008-05-14 Kenichi Handa <handa@m17n.org>
13850
13851 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13852 has no corresponding coding system.
13853
138542008-05-14 Jason Rumney <jasonr@gnu.org>
13855
13856 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13857
13858 * w32font.h (w32font_open_internal): Update declaration.
13859
13860 * w32font.c (w32font_open_internal): Change last argument from
13861 w32font_info struct to font object. Fill in font object from
13862 font_entity. Get Outline metrics if possible. Use them to
13863 calculate underline position and thickness. Use xlfd name as name
13864 property. Don't set codepage.
13865 (w32font_open): Pass font_object to w32font_open_internal. Don't
13866 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13867 (w32font_draw): Use s->font.
13868 (clear_cached_metrics): Don't clear non-existent blocks.
13869
13870 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13871 font was not found.
13872 (x_draw_glyph_string): Use underline position and thickness from font.
13873
13874 * w32uniscribe.c (uniscribe_open): Pass font_object to
13875 w32font_open_internal.
13876
138772008-05-14 Kenichi Handa <handa@m17n.org>
13878
13879 These changes are to delete all legacy font-handling codes, and
13880 make Emacs use only font-backends.
13881
13882 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13883 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13884
13885 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13886
13887 * charset.h (Vcharset_non_preferred_head)
13888 (Vcurrent_iso639_language): Extern them.
13889
13890 * charset.c (Vcharset_non_preferred_head): New variable.
13891 (Vcurrent_iso639_language): New variable.
13892 (syms_of_charset): Declare it as a Lisp variable.
13893 (char_charset): Don't check non preferred charsets. As a last
13894 resort, return charset_unicode.
13895 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13896
13897 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13898 conditionals. Don't check enable_font_backend. Delete all codes
13899 used only when USE_FONT_BACKEND is not defined.
13900
13901 * dispextern.h (struct glyph_string): Change type of `font' to
13902 `struct font *'.
13903 (struct glyph_string): New member underline_position and
13904 underline_thickness.
13905 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13906 (struct face): Change type of `font' to `struct font *'. Remove
13907 members `font_name', `font_info_id'.
13908 (per_char_metric, encode_char): Delete externs.
13909 (calc_pixel_width_or_height): Adjust the prototype.
13910
13911 * emacs.c (enable_font_backend): Delete extern.
13912 (main): Don't set enable_font_backend. Don't check the command
13913 line argument "-disable-font-backend".
13914
13915 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13916 (enum font_property_index): New members FONT_DPI_INDEX,
13917 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13918 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13919 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13920 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13921 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13922 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13923 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13924 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13925 (struct font_spec, struct font_entity): New structs.
13926 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13927 (struct font): Many members from old "struct font_info" moved to
13928 here. Members font and entity deleted.
13929 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13930 the new font-related objects.
13931 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13932 (CHECK_FONT_GET_OBJECT): Likewise.
13933 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13934 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13935 (struct font_driver): New members case_sensitive anc check. Type
13936 of the member list and open changed.
13937 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13938 (font_symbolic_width, font_find_object, font_get_spec)
13939 (font_set_lface_from_name): Delete extern.
13940 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13941
13942 * font.c: Include <strings.h>.
13943 (enable_font_backend): Delete it.
13944 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13945 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13946 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13947 (null_string): Delete it.
13948 (null_vector): Make it static.
13949 (font_family_alist): Delete it.
13950 (Qnormal): Extern it.
13951 (QCextra, QClanguage): Delete it.
13952 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13953 (font_make_spec, font_make_entity, font_make_object)
13954 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13955 the string. Callers changed.
13956 (font_pixel_size): Adjusted for the format change of font-related
13957 objects.
13958 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13959 (font_style_to_value, font_style_symbolic): New function.
13960 (build_font_family_alist): Delete it.
13961 (font_registry_charsets): Use Fassoc_string instead of
13962 assq_no_quit.
13963 (font_prop_validate_symbol): Don't return null_string.
13964 (font_prop_validate_style): Adjusted for the change of
13965 style-related values in a font vector.
13966 (font_property_table): Delete entries for QClanguage and
13967 QCantialias, add entries for QCavgwidth.
13968 (get_font_prop_index): Delete the 2nd argument FROM.
13969 (font_prop_validate): Arguments changed.
13970 (font_put_extra): Adjusted for the change of font-related objects.
13971 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13972 (font_parse_fcname, font_unparse_fcname)
13973 (font_prepare_composition): Likewise.
13974 (font_parse_family_registry): Renamed from font_merge_old_spec.
13975 (otf_open): Delete the 1st arg entity.
13976 (font_otf_capability): Adjusted for the above change.
13977 (font_score): New arg alternate_families. Adjusted for the change
13978 of font-related objects.
13979 (font_sort_entites): New arg best_only.
13980 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13981 Delete them.
13982 (font_match_p): Check alternate families.
13983 (font_find_object): Delete it.
13984 (font_check_object): New function.
13985 (font_clear_cache): Adjusted for the change of font-related objects.
13986 (font_delete_unmatched): New arg.
13987 (font_list_entities): Call font_driver->list with a spec that
13988 doesn't specify style-related properties.
13989 (font_matching_entity): Arguments changed. Caller changed.
13990 (font_open_entity): Adjusted for the change of font-related objects.
13991 (font_close_object, font_has_char, font_encode_char)
13992 (font_get_name, font_get_spec): Likewise.
13993 (font_spec_from_name, font_clear_prop, font_update_lface):
13994 New functions.
13995 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13996 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13997 (font_at): Adjusted for the change of font-related objects.
13998 (font_range): New function.
13999 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14000 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14001 (Fcopy_font_spec, Fmerge_font_spec): New function.
14002 (Ffont_family_list): Renamed from list-families.
14003 (Finternal_set_font_style_table): Arguments changed.
14004 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14005 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14006 change of font-related objects.
14007 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14008
14009 * fontset.h (struct font_info): Delete it. Most members go to
14010 struct font.
14011 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14012 (enum FONT_SPEC_INDEX): Delete it.
14013 (font_info, list_fonts_func, load_font_func, query_font_func)
14014 (set_frame_fontset_func, find_ccl_program_func)
14015 (get_font_repertory_func, new_fontset_from_font_name): Delete
14016 externs.
14017 (fontset_from_font_name): Extern it.
14018 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14019 (FONT_INFO_FROM_FACE): Deleted.
14020 (face_for_font): Adjust prototype.
14021
14022 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14023 conditionals. Don't check enable_font_backend. Delete all codes
14024 used only when USE_FONT_BACKEND is not defined.
14025 (get_font_info_func, list_font_func, load_font_func)
14026 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14027 (get_font_repertory_func): Delete them.
14028 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14029 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14030 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14031 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14032 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14033 (fontset_compare_rfontdef): New function.
14034 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14035 rfont-defs by qsort. Adjusted for the change of font-group vector.
14036 (load_font_get_repertory): Deleted.
14037 (fontset_find_font): Use new macros to ref/set elements of
14038 font-def and rfont-def.
14039 (fontset_font): Fix the timing of remembering that no font for C.
14040 (free_face_fontset): Do nothing if the face has no fontset.
14041 (face_suitable_for_char_p): Use new macros to ref/set elements of
14042 rfont-def.
14043 (face_for_char): Likewise. Call face_for_char with font_object.
14044 (fs_load_font): Delete. Delete #pragma surrounding it.
14045 (fs_query_fontset): Use strcasecmp instead of strcmp.
14046 (generate_ascii_font_name): Adjusted for the format change of
14047 font-spec.
14048 (Fset_fontset_font): Likewise. Use new macros to set elements of
14049 font-def.
14050 (Fnew_fontset): Use font_unparse_xlfd to generate
14051 FONTSET_ASCII (fontset).
14052 (new_fontset_from_font_name): Deleted.
14053 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14054 a fontset is already created for the font. FIx updating of
14055 Vfontset_alias_alist.
14056 (fontset_ascii_font): Deleted.
14057 (Ffont_info): Adjusted for the format change of font-spec.
14058 (Finternal_char_font): Likewise.
14059 (Ffontset_info): Likewise.
14060 (syms_of_fontset): Don't check load_font_func.
14061
14062 * fns.c (internal_equal): Handle PREV_FONT.
14063
14064 * frame.h: Delete USE_FONT_BACKEND conditional.
14065
14066 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14067 conditionals. Don't check enable_font_backend. Delete all codes
14068 used only when USE_FONT_BACKEND is not defined.
14069 (x_set_font): Call x_new_font, not x_new_fontset2.
14070 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14071 already set for the frame.
14072
14073 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14074 a font-entity by font_make_entity. Use font_intern_prop instead
14075 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14076 font property. If a font is scalable, set avgwidth property to 0.
14077 Set font-entity property by font_put_extra.
14078 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14079 (ffont_driver): Adjusted for the change of struct font_driver.
14080 (ftfont_spec_pattern): New function.
14081 (ftfont_list): Return a list, not vector.
14082 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14083 (ftfont_list_family): Don't downcase names.
14084 (ftfont_free_entity): Deleted.
14085 (ftfont_open): Return a font-object. Adjusted for the change of
14086 struct font. Get underline_thickness and underline_position from
14087 font property. Don't update dpyinfo->smallest_font_height and
14088 dpyinfo->smallest_char_width.
14089 (ftfont_close): Don't free `struct font'.
14090 (ftfont_has_char): Adjusted for the format change of font-entity.
14091 (ftfont_encode_char, ftfont_text_extents): Likewise.
14092
14093 * ftxfont.c (ftxfont_list): Return a list, not vector.
14094 (ftxfont_open): Return a font-object. Adjusted for the change of
14095 struct font. Get underline_thickness and underline_position from
14096 font property. Don't update dpyinfo->smallest_font_height and
14097 dpyinfo->smallest_char_width.
14098 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14099 (ftxfont_draw): Adjusted for the change of struct font.
14100
14101 * image.c (image_ascent): Don't include "charset.h". Include
14102 "character.h" and "font.h".
14103
14104 * lisp.h (enum pvec_type): New member PREV_FONT.
14105 (Fassoc_string): EXFUN it.
14106
14107 * print.c: Include font.h.
14108 (print_object): Handle font-related objects.
14109
14110 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14111 conditionals. Don't check enable_font_backend. Delete all codes
14112 used only when USE_FONT_BACKEND is not defined.
14113 (handle_auto_composed_prop): Do nothing if it->f is not on a
14114 window system. Check how many following characters can be
14115 displayed by the same font.
14116 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14117 'struct font *'.
14118 (get_char_face_and_encoding): Assign the whole encoding task to
14119 the `encode-char' method of a font driver.
14120 (fill_composite_glyph_string): Adjusted for the change of `struct
14121 face' and `struct glyph_string'.
14122 (fill_glyph_string): Likewise.
14123 (get_per_char_metric): Arguments changed.
14124 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14125 and `struct glyph_string'.
14126 (produce_stretch_glyph, calc_line_height_property)
14127 (x_produce_glyphs): Likewise.
14128
14129 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14130 conditionals. Don't check enable_font_backend. Delete all codes
14131 used only when USE_FONT_BACKEND is not defined. Use
14132 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14133 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14134 (Qp): Extern them.
14135 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14136 Deleted.
14137 (struct font_name): Deleted.
14138 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14139 (compare_fonts_by_sort_order): New function.
14140 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14141 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14142 Deleted.
14143 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14144 compare_fonts_by_sort_order.
14145 (Fx_font_family_list): Call Ffont_family_list.
14146 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14147 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14148 (face_symbolic_slant, face_symbolic_swidth)
14149 (split_font_name_into_vector, build_font_name_from_vector)
14150 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14151 (font_rescale_ratio, split_font_name, build_font_name)
14152 (free_font_names, sort_fonts, x_face_list_fonts)
14153 (face_font_available_p, sorted_font_list, cmp_font_names)
14154 (font_list_1, concat_font_list, font_list, remove_duplicates):
14155 Deleted.
14156 (Fx_list_fonts): Use Ffont_list.
14157 (LFACE_AVGWIDTH): Deleted.
14158 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14159 by FONTP.
14160 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14161 (set_lface_from_font_name): Delete it.
14162 (set_lface_from_font): Renamed from
14163 set_lface_from_font_and_fontset. Caller changed. Don't set
14164 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14165 for face.
14166 (merge_face_vectors): Copy font-spec if necessary.
14167 Clear properties of the font-spec if necessary.
14168 (merge_face_ref): Clear properties of the font-spec if necessary.
14169 (Finternal_set_lisp_face_attribute): Likewise.
14170 (set_font_frame_param): Use font_load_for_lface to load a
14171 font-object, and call Fmodify_frame_parameters with it.
14172 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14173 font name by Ffont_xlfd_name.
14174 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14175 QCslant, and QCwidth.
14176 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14177 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14178 Compare fonts by EQ.
14179 (lookup_non_ascii_face): Deleted.
14180 (face_for_font): The 2nd argument changed.
14181 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14182 Check atomic font properties by case insensitive.
14183 (realize_non_ascii_face): Set face->overstrike correctly.
14184 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14185 (dump_realized_face): Get font name from
14186 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14187
14188 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14189 conditionals. Don't check enable_font_backend. Delete all codes
14190 used only when USE_FONT_BACKEND is not defined.
14191 (xic_create_xfontset): Original code deleted and renamed from
14192 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14193 (x_make_gc): Don't set GCFont in GCs.
14194 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14195 opened by "fixed".
14196 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14197 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14198 get_font_repertory_func.
14199
14200 * xfont.c: Include <stdlib.h> and "ccl.h".
14201 (struct xfont_info): New structure.
14202 (xfont_query_font): Deleted.
14203 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14204 moved from xterm.c.
14205 (xfont_driver): Adjusted for the change of struct font_driver.
14206 (compare_font_names): New function.
14207 (xfont_list_pattern): Sort font names case insensitively. Make
14208 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14209 (xfont_list): Return a list, not vector.
14210 (xfont_match): If the font doesn't have QCname property, generate
14211 a name from the other font properties.
14212 (xfont_open): Return a font-object. Adjusted for the change of
14213 struct font. Get underline_thickness and underline_position from
14214 font property. Don't update dpyinfo->smallest_font_height and
14215 dpyinfo->smallest_char_width.
14216 (xfont_close): Don't free struct font.
14217 (xfont_prepare_face): Adjusted for the change of struct font.
14218 (xfont_done_face): Deleted.
14219 (xfont_has_char): Adjusted for the change of struct font.
14220 (xfont_encode_char, xfont_draw): Likewise.
14221 (xfont_check): New function.
14222
14223 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14224 callback function.
14225 (xftfont_match): Adjusted for the format change of font-entity.
14226 (xftfont_open): Adjusted for the format change of font-entity and
14227 font-object. Adjusted for the change of struct font. Return a
14228 font-object. Don't update dpyinfo->smallest_font_height and
14229 dpyinfo->smallest_char_width.
14230 (xftfont_close): Block input while calling XftFontClose.
14231 (xftfont_prepare_face): Don't block input while calling
14232 xftfont_get_colors. Adjusted for the change of struct font.
14233 (xftfont_shape): Return value of error case fixed.
14234
14235 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14236
14237 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14238 conditionals.
14239 (FONT_WIDTH): Return (f)->max_width.
14240 (struct x_display_info): Delete member `font'.
14241 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14242 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14243 (struct x_output): Change type of `font' to `struct font *'.
14244
14245 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14246 conditionals. Don't check enable_font_backend. Delete all codes
14247 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14248 (x_per_char_metric, x_encode_char): Deleted.
14249 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14250 (x_compute_glyph_string_overhangs): Adjusted for the change of
14251 `struct face'.
14252 (x_draw_glyph_string_foreground)
14253 (x_draw_composite_glyph_string_foreground): Likewise.
14254 (x_draw_glyph_string): Likewise. Use font->underline_position and
14255 font->underline_thickness.
14256 (x_new_font): Renamed from x_new_fontset2.
14257 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14258 (x_check_font): Call `check' method of a font driver.
14259 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14260 (x_query_font, x_get_font_repertory): Deleted.
14261 (x_find_ccl_program): Renamed and moved to xfont.c.
14262 (x_redisplay_interface): Adjusted for the change of `struct
14263 redisplay_interface'.
14264
14265 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14266 conditionals. Don't check enable_font_backend. Delete all codes
14267 used only when USE_FONT_BACKEND is not defined. Surround non-used
14268 code by "#ifdef OLD_FONT" and "endif".
14269 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14270
14271 * w32font.h (struct w32font_info): New member.
14272 (FONT_COMPAT): New macro.
14273 (w32font_open_internal): Prototype adjusted.
14274
14275 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14276 OLD_FONT" and "endif".
14277
14278 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14279 conditionals. Don't check enable_font_backend. Delete all codes
14280 used only when USE_FONT_BACKEND is not defined.
14281 (w32font_open): Return a font-object. Make a font-object by
14282 font_make_object. Adjusted for the change of struct w32font_info.
14283 (w32font_close): Don't free struct font. Adjusted for the change
14284 of struct w32font_info.
14285 (w32font_encode_char, w32font_text_extents, w32font_draw):
14286 Adjusted for the change of struct w32font_info.
14287 (w32font_draw): Likewise.
14288 (w32font_list_internal): Return a list, not vector.
14289 (w32font_open_internal): Change the 4th arg to font-object.
14290 Adjusted for the change of struct w32font_info and font-object format.
14291 (add_font_name_to_list): Don't downcase names.
14292 (w32_enumfont_pattern_entity): Make a font-entity by
14293 font_make_entity. Adjusted for the format change of font-entity.
14294 Use FONT_SET_STYLE to set a style-related font property. If a
14295 font is scalable, set avgwidth property to 0. Set font-entity
14296 property by font_put_extra.
14297 (font_matches_spec): Adjusted for the format change of font-entity.
14298 (w32_weight_table, w32_decode_weight): New variables.
14299 (w32_encode_weight): New function.
14300 (fill_in_logfont): Adjusted for the format change of font-spec.
14301 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14302 weight value.
14303 (w32font_driver): Adjusted for the change of struct font_driver.
14304
14305 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14306 conditionals. Don't check enable_font_backend. Surround non-used
14307 code by "#ifdef OLD_FONT" and "endif".
14308 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14309 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14310
14311 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14312 conditionals. Don't check enable_font_backend. Delete all codes
14313 used only when USE_FONT_BACKEND is not defined. Surround non-used
14314 code by "#ifdef OLD_FONT" and "endif".
14315
14316 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14317 (uniscribe_open): Return value changed to font-object.
14318 Adjusted for the format change of font-object.
14319 (uniscribe_otf_capability): Adjusted for the change of struct font.
14320 (add_opentype_font_name_to_list): Don't downcase names.
14321 (uniscribe_font_driver): Adjusted for the change of struct
14322 font_driver.
14323
143242008-05-13 Chong Yidong <cyd@stupidchicken.com>
14325
14326 * dispnew.c (update_frame_1): Check if tty output is still valid
14327 before flushing it.
14328
143292008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14330
14331 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14332 to Gtk+ menus.
14333
143342008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14335
14336 * dired.c (file_name_completion): Tweak the code so as to always do it
14337 in a single pass. Tighten the scope of some variables.
14338
14339 * dired.c (Qdefault_directory): New var.
14340 (file_name_completion): Use it instead of Fexpand_file_name.
14341 (syms_of_dired): Initialize it.
14342
143432008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14344
14345 * fileio.c (double_dollars): Remove dead code.
14346
143472008-05-10 Eli Zaretskii <eliz@gnu.org>
14348
14349 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14350 Mention w32-get-true-file-attributes in doc string.
14351
14352 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14353
143542008-05-09 Glenn Morris <rgm@gnu.org>
14355
14356 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14357 2008-04-23.
14358
143592008-05-09 Eli Zaretskii <eliz@gnu.org>
14360
14361 Support for reporting owner and group of each file on MS-Windows:
14362 * dired.c (stat_uname, stat_gname): New functions, with special
14363 implementation for w32.
14364 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14365
14366 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14367 (dflt_group_name): New static variable.
14368 (dflt_group): Rename from the_group.
14369 (init_user_info): Init dflt_group fields. Get user's group name
14370 from LookupAccountSid.
14371 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14372 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14373 New initialization states.
14374 (globals_of_w32): Initialize them to zero. Initialize the default
14375 group name to "None".
14376 (GetFileSecurity_Name): New global var, the name of the function
14377 to call for GetFileSecurity.
14378 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14379 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14380 (get_file_security, get_security_descriptor_owner)
14381 (get_security_descriptor_group, is_valid_sid)
14382 (get_file_security_desc, get_rid, get_name_and_id)
14383 (get_file_owner_and_group): New functions.
14384 (stat): Use get_file_security_desc and get_file_owner_and_group to
14385 report the owner and primary group of each file. Don't ignore the
14386 high 32 bits of file's size, now that st_size is 64-bit wide.
14387 Fix test when to get true file attributes.
14388 (init_user_info): Use get_rid instead of equivalent inline code.
14389 (fstat): Don't ignore the high 32 bits of file's size.
14390
143912008-05-09 Chong Yidong <cyd@stupidchicken.com>
14392
14393 * image.c (png_load): Use correct bit-depth for setting background
14394 color.
14395
143962008-05-08 Eli Zaretskii <eliz@gnu.org>
14397
14398 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14399 epa-hook.elc.
14400
144012008-05-08 Juanma Barranquero <lekktu@gmail.com>
14402
14403 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14404
144052008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14406
14407 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14408 because the original parameters are in pure storage now.
14409 (mac_window): Remove unused params. Update callers.
14410
144112008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14412
14413 * lread.c (substitute_object_recurse): Use lower-level primitives.
14414 Don't signal errors when traversing sub-char-tables.
14415 Don't loop over all the possible characters when traversing char-tables.
14416
14417 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14418 just like we do in print.c.
14419
144202008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14421
14422 * minibuf.c (Ftry_completion): Remove code left over from when we used
14423 scmp instead of Fcompare_strings.
14424
144252008-05-04 Juanma Barranquero <lekktu@gmail.com>
14426
14427 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14428
144292008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14430
14431 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14432 Create bitmap context in native byte order.
14433
14434 * macterm.c (XDrawLine)
14435 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14436 context in native byte order.
14437
144382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14439
14440 * config.in: Regenerate.
14441
14442 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14443 New definitions for Image I/O support.
14444 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14445 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14446 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14447 (mac_data_provider_release_data, image_load_image_io)
14448 [USE_MAC_IMAGE_IO]: New functions.
14449 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14450 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14451 (init_image_func_pointer) [MAC_OSX]: Remove function.
14452 (image_load_quartz2d) [MAC_OSX]: Check availability of
14453 CGImageCreateWithPNGDataProvider at compile time.
14454 Use lowercase `false' for boolean constant.
14455 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14456 Use image_load_image_io.
14457 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14458 Don't check MyCGImageCreateWithPNGDataProvider.
14459 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14460 Don't call init_image_func_pointer.
14461
14462 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14463
14464 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14465 Make variable non-static.
14466 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14467 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14468
14469 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14470 (RED_FROM_ULONG): Mask off higher bits.
14471 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14472
14473 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14474 Include AvailabilityMacros.h.
14475 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14476 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14477
144782008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14479
14480 * chartab.c (Fset_char_table_range): If range is t, really set all
14481 chars to that value.
14482
144832008-05-03 Eli Zaretskii <eliz@gnu.org>
14484
14485 * dired.c (Ffile_attributes): Don't allow the device number become
14486 negative.
14487
144882008-05-02 Daiki Ueno <ueno@unixuser.org>
14489
14490 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14491
144922008-05-02 Juri Linkov <juri@jurta.org>
14493
14494 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14495 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14496 DEFAULT argument as a list of default values in docstrings.
14497
144982008-05-01 Chong Yidong <cyd@stupidchicken.com>
14499
14500 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14501
145022008-05-01 Martin Rudalics <rudalics@gmx.at>
14503
14504 * dispnew.c (change_frame_size_1): Preserve small windows when
14505 shrinking frames by calling set_window_height|width with third
14506 arg 2.
14507
14508 * window.h (struct window): Replace field too_small_ok by field
14509 resize_proportionally.
14510
14511 * window.c (make_window): Initialize resize_proportionally.
14512 (enlarge_window): Temporarily set resize_proportionally to make
14513 sure that shrink_windows does scale the window proportionally.
14514 (shrink_windows): When window has resize_proportionally set try
14515 to shrink it proportionally by stealing from other windows.
14516 (struct saved_window, Fset_window_configuration)
14517 (compare_window_configurations): Handle resize_proportionally.
14518 (WINDOW_TOTAL_SIZE): New macro.
14519 (window_min_size, shrink_windows, size_window): Use it.
14520 (check_min_window_sizes): Remove. Invalid values of
14521 window-min-height|width are handled by window_min_size_2 now.
14522 (size_window, Fsplit_window, enlarge_window)
14523 (adjust_window_trailing_edge, grow_mini_window): Don't call
14524 check_min_window_sizes.
14525 (window_min_size_2, window_min_size_1, window_min_size):
14526 New argument safe_p for retrieving "safe" minimum sizes.
14527 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14528 (adjust_window_trailing_edge, grow_mini_window):
14529 Adjust arguments of window_min_size... functions.
14530 (shrink_windows): Argument min_size removed. New argument
14531 safe_p allows shrinking windows to their safe minimum sizes.
14532 Calculate minimum size and decide whether a window shall be
14533 deleted for each window individually.
14534 (size_window): When nodelete_p equals 2, tell shrink_windows to
14535 delete windows only if their new minimum size is no more safe.
14536 (shrink_window_lowest_first): Call window_min_size_1 to make
14537 sure to preserve modeline of bottom-most window when resizing
14538 the minibuffer.
14539 (Fset_window_configuration, Fcurrent_window_configuration)
14540 (compare_window_configurations): Do not handle
14541 window-min-height|width any more.
14542 (syms_of_window): Clarify window-min-height|width doc-strings.
14543
145442008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14545
14546 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14547 some more. Copy some of the code from Ftry_completions.
14548 Remove special case code that dates back to initial revision when the
14549 slash was only added when necessary and that can't trigger nowadays.
14550
145512008-04-27 Kenichi Handa <handa@m17n.org>
14552
14553 * font.c (font_prop_validate): Signal `error' instead of `font'.
14554
145552008-04-29 Jason Rumney <jasonr@gnu.org>
14556
14557 * w32fns.c (Fw32_battery_status): New defun.
14558 (syms_of_w32fns): Defsubr it.
14559
145602008-04-28 Andreas Schwab <schwab@suse.de>
14561
14562 * dired.c (file_name_completion): Fix another mixing of encoded
14563 and decoded names.
14564
145652008-04-28 Juanma Barranquero <lekktu@gmail.com>
14566
14567 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14568
145692008-04-27 Juanma Barranquero <lekktu@gmail.com>
14570
14571 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14572
145732008-04-27 Andreas Schwab <schwab@suse.de>
14574
14575 * dired.c (file_name_completion): Fix inappropriate mixing of
14576 encoded and decoded names.
14577
14578 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14579
14580 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14581
145822008-04-26 Eli Zaretskii <eliz@gnu.org>
14583
14584 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14585 2008-03-31, it's not needed anymore with `struct stat' definition
14586 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14587 for the same reasons.
14588
145892008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14590
14591 * m/sparc.h: Additional redefinitions for GNU/Linux.
14592
145932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14594
14595 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14596 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14597 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14598 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14599 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14600 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14601 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14602 Likewise.
14603
14604 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14605 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14606 (mac_ax_number_of_characters): Add externs.
14607 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14608 [USE_MAC_TSM]: Likewise.
14609 (mac_handle_text_input_event) [MAC_OSX]:
14610 Handle kEventTextInputOffsetToPos for no active input area case.
14611 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14612 (mac_handle_document_access_event)
14613 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14614 (install_application_handler) [MAC_OSX]: Register handlers for
14615 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14616 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14617 Register mac_handle_document_access_event.
14618
14619 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14620 Make functions non-static.
14621
146222008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14623
14624 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14625 (read_file_name_completion_ignore_case, insert_default_directory)
14626 (Qdefault_directory): Move to minibuffer.el.
14627 (Fread_file_name): Call the new `read-file-name' instead.
14628
146292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14630
14631 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14632 Make function non-static.
14633 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14634 Remove function.
14635 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14636 Move to mactoolbox.c.
14637 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14638
14639 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14640 (mac_rect_make): New macro.
14641
14642 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14643 instead of float.
14644 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14645 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14646 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14647 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14648 CGRectMake.
14649 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14650 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14651 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14652 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14653 instead of WindowRef in argument type.
14654 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14655 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14656 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14657 instead of DISPLAY. All uses changed.
14658 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14659 (x_calc_absolute_position): Simplify so as not to use
14660 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14661
14662 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14663 instead of WindowRef in argument type.
14664 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14665 [TARGET_API_MAC_CARBON]: Remove externs.
14666 (create_apple_event, mac_event_parameters_to_lisp)
14667 [TARGET_API_MAC_CARBON]: Add externs.
14668
14669 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14670 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14671 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14672 is clicked.
14673 (x_activate_menubar): Remove extern for saved_menu_event_location.
14674 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14675 Move from mac.c.
14676
146772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14678
14679 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14680 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14681
146822008-04-23 Jason Rumney <jasonr@gnu.org>
14683
14684 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14685 attributes only for local files.
14686
14687 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14688 default to Qlocal.
14689
146902008-04-22 Juri Linkov <juri@jurta.org>
14691
14692 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14693 read-buffer-to-switch instead of using the letter "B".
14694
146952008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14696
14697 * fileio.c (Qdefault_directory): New variable.
14698 (Fread_file_name): Use it to pass `dir' to the completion functions.
14699
147002008-04-20 Chong Yidong <cyd@stupidchicken.com>
14701
14702 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14703
147042008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14705
14706 * keyboard.c (Vpre_help_message): Remove.
14707 (show_help_echo): Remove default C code.
14708
14709 * dired.c (directory_files_internal, file_name_completion):
14710 Only call ENCODE_FILE if the string is indeed decoded.
14711
147122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14713
14714 * Makefile.in (TOOLKIT_DEFINES): Remove.
14715 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14716
147172008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14718
14719 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14720 (mactoolbox.o): New target.
14721
14722 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14723 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14724
14725 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14726 Use mac_set_frame_window_background instead of XSetWindowBackground.
14727 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14728 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14729 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14730 instead of SetWindowTitleWithCFString.
14731 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14732 Move function to mactoolbox.c.
14733 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14734 Use mac_set_window_modified instead of SetWindowModified.
14735 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14736 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14737 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14738 FrontNonFloatingWindow. Use mac_activate_window instead of
14739 ActivateWindow. Use mac_active_non_floating_window instead of
14740 ActiveNonFloatingWindow.
14741 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14742 Use mac_show_hourglass and mac_hide_hourglass.
14743 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14744 instead of GetGlobalMouse.
14745 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14746 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14747 Use mac_bring_window_to_front instead of BringToFront.
14748 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14749 mactoolbox.c.
14750 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14751 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14752 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14753 mactoolbox.c.
14754
14755 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14756 (XtPointer): Move typedef from macmenu.c.
14757 (enum button_type): Move enum from macmenu.c.
14758 (widget_value): Move typedef from macmenu.c.
14759 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14760 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14761 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14762 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14763 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14764 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14765 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14766 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14767 (Selection): Move typedef from macselect.c.
14768 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14769 macterm.c.
14770 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14771 (mac_is_window_collapsed, mac_bring_window_to_front)
14772 (mac_send_window_behind, mac_hide_window, mac_show_window)
14773 (mac_collapse_window, mac_front_non_floating_window)
14774 (mac_active_non_floating_window, mac_activate_window)
14775 (mac_move_window_structure, mac_move_window, mac_size_window)
14776 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14777
14778 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14779 (enum mac_menu_kind): Move enum to mactoolbox.c.
14780 (min_menu_id): Move variable to mactoolbox.c.
14781 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14782 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14783 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14784 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14785 [TARGET_API_MAC_CARBON]: Likewise.
14786 (XtPointer): Move typedef to macgui.h.
14787 (enum button_type): Move enum to macgui.h.
14788 (widget_value): Move typedef to macgui.h.
14789 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14790 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14791 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14792 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14793 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14794 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14795 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14796 (popup_activated_flag): Make variable non-static.
14797 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14798 (add_menu_item, fill_menu, dispose_menus):
14799 Move functions to mactoolbox.c.
14800 (restore_show_help_function, menu_target_item_handler)
14801 (install_menu_target_item_handler, mac_handle_dialog_event)
14802 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14803 [TARGET_API_MAC_CARBON]: Likewise.
14804 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14805 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14806 (find_and_call_menu_selection, name_is_separator): Make function
14807 non-static.
14808 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14809 to mactoolbox.c.
14810 (set_frame_menubar): Don't call install_menu_quit_handler.
14811 (menu_item_selection): New variable.
14812 (mac_menu_show): Use create_and_show_popup_menu.
14813 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14814 selection but set variable menu_item_selection. All uses changed.
14815 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14816 Call install_menu_quit_handler. Move to mactoolbox.c.
14817
14818 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14819 (Selection): Move typedef to macgui.h.
14820 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14821 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14822 Make variables non-static.
14823 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14824 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14825 Make functions non-static.
14826 (Vmac_service_selection) [MAC_OSX]: Likewise.
14827 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14828 (mac_valid_selection_target_p, mac_clear_selection)
14829 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14830 (mac_put_selection_value, mac_selection_has_target_p)
14831 (mac_get_selection_value, mac_get_selection_target_list)
14832 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14833 Move functions to mactoolbox.c.
14834 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14835 Likewise.
14836 (copy_scrap_flavor_data, mac_handle_service_event)
14837 (install_service_handler) [MAC_OSX]: Likewise.
14838 (syms_of_macselect) <Vmac_dnd_known_types>:
14839 Use mac_dnd_default_known_types.
14840
14841 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14842 Move to mactoolbox.c.
14843 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14844 (Fx_selection_owner_p): Add EXFUN.
14845 (install_window_handler, remove_window_handler, XSetWindowBackground):
14846 Remove externs.
14847 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14848 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14849 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14850 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14851 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14852 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14853 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14854 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14855 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14856 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14857 (mac_valid_selection_target_p, mac_clear_selection)
14858 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14859 (mac_put_selection_value, mac_selection_has_target_p)
14860 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14861 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14862 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14863 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14864 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14865 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14866 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14867 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14868 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14869
14870 * mactoolbox.c: New file.
14871
148722008-04-18 Jason Rumney <jasonr@gnu.org>
14873
14874 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14875
148762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14877
14878 * character.c (Fmultibyte_char_to_unibyte):
14879 Return latin1 chars unchanged.
14880
14881 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14882 relocated if it points to `name'.
14883
148842008-04-17 Kenichi Handa <handa@m17n.org>
14885
14886 * data.c (Faset): Allow setting a multibyte character in an
14887 ASCII-only unibyte string.
14888
14889 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14890
148912008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14892
14893 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14894 done in config.h.
14895
148962008-04-16 Juanma Barranquero <lekktu@gmail.com>
14897
14898 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14899 (Fchar_direction): Add usage in the docstring.
14900
149012008-04-15 Chong Yidong <cyd@stupidchicken.com>
14902
14903 * keyboard.c (read_key_sequence): Remove always-true checks.
14904
149052008-04-14 Jason Rumney <jasonr@gnu.org>
14906
14907 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14908 compatibility struct, for better underline positioning.
14909
149102008-04-13 David Hansen <david.hansen@gmx.net>
14911
14912 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14913 string.
14914
149152008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14916
14917 * m/hp800.h (XUINT, XSET): Remove.
14918
149192008-04-12 Juanma Barranquero <lekktu@gmail.com>
14920
14921 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14922 previous change.
14923
149242008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14925
14926 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14927 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14928
149292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14930
14931 * keymap.h (map_keymap_canonical): Declare.
14932 * xmenu.c (single_keymap_panes): Use it.
14933
149342008-04-11 Glenn Morris <rgm@gnu.org>
14935
14936 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14937 set the target's value to that of the alias.
14938
149392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14940
14941 * term.c (set_tty_color_mode): Left over typo.
14942
149432008-04-10 Michael Albinus <michael.albinus@gmx.de>
14944
14945 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14946 only after check for file name handler functions. Signal, when
14947 native functionality is not supported.
14948 (syms_of_fileio): Declare it unconditionally.
14949
149502008-04-10 Jason Rumney <jasonr@gnu.org>
14951
14952 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14953 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14954
14955 * w32.c (logon_network_drive): Also logon to remote drives that
14956 are mapped to drive letters.
14957
149582008-04-10 Glenn Morris <rgm@gnu.org>
14959
14960 * xdisp.c (truncate-partial-width-windows): Doc fix.
14961
149622008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14963
14964 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14965 Move functions to minibuffer.el.
14966 (syms_of_fileio): Don't declare them.
14967
149682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14969
14970 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14971 (syms_of_minibuf): Remove its initialization.
14972
14973 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14974
149752008-04-09 Juanma Barranquero <lekktu@gmail.com>
14976
14977 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14978
149792008-04-09 Jason Rumney <jasonr@gnu.org>
14980
14981 * makefile.w32-in (distclean): Delete makefile too.
14982 (maintainer-clean): New target.
14983
14984 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14985
14986 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14987 for new font backend and composite cases.
14988
149892008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14990
14991 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14992 Most of the code moved to run_timers.
14993 (do_pending_atimers): Call run_timers.
14994 (run_timers): New function.
14995
14996 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14997 run atimers.
14998
14999 * process.c (wait_reading_process_output): The same as above.
15000
150012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15002
15003 * minibuf.c (last_exact_completion): Remove variable.
15004 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15005 (complete_and_exit_1, complete_and_exit_2)
15006 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15007 (Fdisplay_completion_list, display_completion_list_1)
15008 (Fminibuffer_completion_help, Fself_insert_and_exit)
15009 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15010 minibuffer.el.
15011 (syms_of_minibuf): Remove corresponding initializations.
15012
15013 * keyboard.c (Qdeactivate_mark): New var.
15014 (command_loop_1): Use it to call `deactivate-mark'.
15015 (syms_of_keyboard): Initialize it.
15016
15017 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15018 to another frame.
15019 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15020 Don't call set_tty_color_mode.
15021 (store_frame_param): Reset previous_frame rather than call
15022 set_tty_color_mode.
15023 * term.c (set_tty_color_mode): Rewrite.
15024 * dispextern.h (set_tty_color_mode): New type.
15025 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15026
150272008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15028
15029 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15030 for generic chars, which do not exist any more in emacs-unicode.
15031
150322008-04-08 Michael Albinus <michael.albinus@gmx.de>
15033
15034 * coding.c (detect_coding_emacs_mule)
15035 (Ffind_operation_coding_system): Fix typo.
15036
150372008-04-08 Jason Rumney <jasonr@gnu.org>
15038
15039 * w32uniscribe.c (SNAME): Extract only symbol name.
15040
15041 * w32font.h (struct w32_metric_cache): New struct.
15042 (w32font_info): Use it.
15043 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15044 (CACHE_BLOCKSIZE): New constants.
15045
15046 * w32font.c (Qja, Qko, Qzh): New symbols.
15047 (syms_of_w32font): Initialise them.
15048 (font_matches_spec): Use them to filter by language.
15049 (recompute_cached_metrics): Remove function.
15050 (compute_metrics, clear_cached_metrics): New functions.
15051 (w32font_encode_char): Use them to manage metric cache.
15052 (w32font_text_extents): Cache metrics for all glyphs on demand.
15053 Delay converting glyph indices to WORD until needed.
15054 (w32font_open_internal): Initialize metric cache to empty.
15055 (registry_to_w32_charset): Charset should always be a symbol.
15056 (fill_in_logfont, list_all_matching_fonts): Family should
15057 always be a symbol.
15058
150592008-04-06 Jason Rumney <jasonr@gnu.org>
15060
15061 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15062 Give up if glyph indices not supported. Use uniscribe obtained
15063 ABC widths for individual metrics. Map glyph clusters back to
15064 characters using fClusterStart flag. Return number of glyphs
15065 produced, not chars processed.
15066 (uniscribe_shape): Map char at FROM to current glyph.
15067
150682008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15069
15070 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15071 Use SetMenuItemHierarchicalMenu.
15072
150732008-04-05 Jason Rumney <jasonr@gnu.org>
15074
15075 * image.c (pbm_load): Allow color values up to 65535.
15076 Throw an error if max_color_idx is outside the supported range.
15077 Report an error when image size is invalid.
15078 Read two bytes at a time when raw images have max_color_idx above 255.
15079
aac0c6e3
MR
150802008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15081
15082 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15083 append "CCL: Quitted" when the CCL program is quitted.
15084 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15085
15086 * ccl.h (struct ccl_program): New member quit_silently.
15087
150882008-04-05 Chong Yidong <cyd@stupidchicken.com>
15089
15090 * search.c (compile_pattern_1): Treat non-nil and non-string of
15091 search-spaces-regexp as nil.
15092
15093 * minibuf.c (Fassoc_string): Tweak docstring.
15094
150952008-04-05 Eli Zaretskii <eliz@gnu.org>
15096
15097 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15098 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15099 2008-03-14 to force inode be positive.
15100
15101 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15102 _S_* ones, since we now use our own sys/stat.h.
15103 (stat, fstat): Don't mangle the inode number.
15104 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15105
151062008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15107
15108 * frame.h (struct frame): Give one more bit to `visible' since we use
15109 values larger than 1 to indicate obscured frames on ttys.
15110
15111 * keymap.c (Qkeymap_canonicalize): New var.
15112 (Fmap_keymap_internal): New fun.
15113 (describe_map): Use keymap-canonicalize.
15114
15115 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15116 (Fundo_boundary): Set them.
15117 (syms_of_undo): Initialize them.
15118 (record_point): Use them instead of last_point_position*.
15119 (last_undo_buffer): Change type.
15120
151212008-04-04 Jason Rumney <jasonr@gnu.org>
15122
15123 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15124 (recompute_cached_metrics): Don't set ascent and descent per char.
15125
15126 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15127 (uniscribe_check_otf): Add GC protection before consing.
15128 Rearrange loop for counting features.
15129
151302008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15131
15132 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15133 buffer with byte-size of source buffer.
15134
151352008-04-03 Chong Yidong <cyd@stupidchicken.com>
15136
15137 * callint.c (Fcall_interactively): Handle temporary region even
15138 when shift-select-mode is off.
15139
151402008-04-03 Jason Rumney <jasonr@gnu.org>
15141
15142 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15143
151442008-04-03 Kenichi Handa <handa@m17n.org>
15145
15146 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15147 (CATEGORY_MASK_UTF_16): Likewise.
15148 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15149 binary file.
15150 (detect_coding): Add null-byte detection for a binary file.
15151 (detect_coding_system): Likewise.
15152
151532008-04-03 Jason Rumney <jasonr@gnu.org>
15154
15155 * w32uniscribe.c: New file.
15156
15157 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15158
15159 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15160
15161 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15162 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15163 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15164 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15165 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15166 (Qphonetic): New symbols.
15167 (syms_of_w32font): Initialize them.
15168 (font_supported_scripts): Use them.
15169 (w32font_list_family): List all charsets.
15170 (w32font_text_extents, recompute_cached_metrics): Fix metric
15171 calculations.
15172 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15173 Give opentype fonts their own format.
15174 (font_matches_spec): New arguments backend and logfont.
15175 Handle :otf spec for uniscribe backend.
15176 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15177 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15178
15179 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15180 font backend.
15181 (globals_of_w32fns): Initialize uniscribe font backend.
15182
15183 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15184 dependencies.
15185 (w32uniscribe.$(O)): New file to build.
15186 (FONT_OBJ): Include w32uniscribe.$(O).
15187 (LIBS): Add uniscribe libraries.
15188
15189 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15190
151912008-04-02 Chong Yidong <cyd@stupidchicken.com>
15192
15193 * callint.c (Vshift_select_mode): New var.
15194 (Finteractive): Document new ^ spec.
15195 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15196 is present.
15197
15198 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15199 (command_loop_1): Avoid running the direct display versions of
15200 forward-char and backward-char if shift-selection may occur.
15201 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15202 shift-translation takes place.
15203
15204 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15205 avoid clobbering by define-minor-mode.
15206
15207 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15208 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15209
15210 * syntax.c (Fforward_word): Add ^ interactive spec.
15211
15212 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15213 (Fscroll_right): Add ^ interactive spec.
15214
152152008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15216
15217 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15218
15219 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15220
15221 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15222
152232008-03-31 Juri Linkov <juri@jurta.org>
15224
15225 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15226
152272008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15228
15229 * gtkutil.c (xg_set_geometry): Fix indentation.
15230 (xg_resize_outer_widget): Remove.
15231 (x_wm_size_hint_off): Fix indentation.
15232 (xg_frame_set_char_size): Call flush_and_sync after
15233 gtk_window_resize.
15234 (x_wm_set_size_hint): Pass NULL as geometry window to
15235 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15236 Add menu bar and tool bar height to base height.
15237 (xg_update_frame_menubar, free_frame_menubar)
15238 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15239 (update_frame_tool_bar, free_frame_tool_bar):
15240 Change xg_resize_outer_widget to xg_frame_set_char_size.
15241
152422008-03-30 Michael Albinus <michael.albinus@gmx.de>
15243
15244 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15245 (Fdbus_call_method): New parameter TIMEOUT.
15246 (dbus-send-signal): Optimize UNGCPRO call.
15247
152482008-03-29 Juri Linkov <juri@jurta.org>
15249
15250 * window.c (Fdisplay_buffer): Move call to
15251 Vsplit_window_preferred_function out of conditions that check
15252 if window is eligible for vertical splitting.
15253 When Vsplit_window_preferred_function is non-nil, call it and use
15254 its non-nil return value as window. Otherwise, continue doing
15255 vertical splitting using Fsplit_window with arg horflag=nil.
15256 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15257 default value from `split-window' to nil.
15258
152592008-03-29 Juri Linkov <juri@jurta.org>
15260
15261 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15262 for interactive code letters 'b' and 'B'.
15263
152642008-03-29 Eli Zaretskii <eliz@gnu.org>
15265
15266 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15267 multibyte string.
15268
152692008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15270
15271 * keyboard.c (pending_funcalls): New var.
15272 (timer_check): Run it.
15273 (syms_of_keyboard): Initialize it.
15274 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15275 (Vdelete_terminal_functions): New vars.
15276 (syms_of_terminal): Initialize them.
15277 (Fdelete_terminal): Run delete-terminal-functions.
15278 * xdisp.c (safe_eval): Rewrite.
15279 (safe_call2): New fun.
15280 * frame.c (Qdelete_frame_functions): New var.
15281 (syms_of_frame): Initialize it.
15282 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15283 * lisp.h (safe_call2, pending_funcalls): Declare.
15284
152852008-03-28 Andreas Schwab <schwab@suse.de>
15286
15287 * indent.c (Fmove_to_column): Move declaration before statements.
15288
152892008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15290
15291 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15292 (struct frame): Use bit fields for boolean vars.
15293
15294 * process.c (server_accept_connection): Simplify naming.
15295 (emacs_get_tty_pgrp): Use SDATA.
15296
15297 * coding.c (decode_coding_object): Fix last change.
15298
152992008-03-27 Jason Rumney <jasonr@gnu.org>
15300
15301 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15302
153032008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15304
15305 * charset.c (Fdefine_charset_internal): Change the way of
15306 registering charsets in Vcharset_order_list.
15307 (syms_of_charset): Make the charset `eight-bit' supplementary.
15308
153092008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15310
15311 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15312 operations, to avoid having the difference between pointers
15313 overflow.
15314
153152008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15316
15317 * indent.c (check_display_width): New fun.
15318 (scan_for_column): Use it.
15319
15320 * data.c (syms_of_data): Mark most-positive-fixnum and
15321 most-negative-fixnum as constants.
15322
15323 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15324
15325 * indent.c (scan_for_column): Extract from current_column_1.
15326 Merge with the same code from Fmove_to_column.
15327 (current_column_1, Fmove_to_column): Use it.
15328
153292008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15330
15331 * keymap.c (map_keymap_internal): New fun.
15332 (map_keymap): Use it.
15333 (Fmap_keymap_internal): New fun.
15334 (Fmap_keymap): Remove left-out test from before make_save_value.
15335
15336 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15337
15338 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15339 Use XCAR/XCDR.
15340
15341 * process.h (struct Lisp_Process): Remove filter_multibyte.
15342 * process.c (QCfilter_multibyte): Remove.
15343 (setup_process_coding_systems): Don't use filter_multibyte.
15344 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15345 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15346 (Fset_process_filter_multibyte): Change the coding-system to
15347 approximate the previous behavior.
15348 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15349 coding-system.
15350
15351 * coding.c (decode_coding_object): When not decoding into a buffer,
15352 obey the coding system's preference of (uni|multi)byte.
15353
153542008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15355
15356 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15357 every char is changed and has a different byte-length.
15358 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15359 Fix int -> EMACS_INT.
15360
153612008-03-23 David Hansen <david.hansen@gmx.net>
15362
15363 * dbusbind.c (xd_read_message): Remove extra copying of message
15364 strings. Check for NULL `interface' or `member'.
15365
153662008-03-22 Eli Zaretskii <eliz@gnu.org>
15367
15368 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15369 cFileName a file name that includes `?' characters, use the 8+3
15370 alias in cAlternateFileName instead.
15371
153722008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15373
15374 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15375
153762008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15377
15378 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15379 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15380 work on current_buffer only instead (that was already the case
15381 for some of the code anyway).
15382 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15383 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15384 (SET_PT, SET_PT_BOTH): Adjust.
15385 * intervals.h (set_point, temp_set_point, set_point_both)
15386 (temp_set_point_both): Remove redundant declarations.
15387
153882008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15389
15390 * fileio.c (Finsert_file_contents):
15391 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15392 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15393 when buffer != current_buffer anyway.
15394
153952008-03-20 Andreas Schwab <schwab@suse.de>
15396
15397 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15398 as default.
15399
154002008-03-19 Jason Rumney <jasonr@gnu.org>
15401
15402 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15403 (syms_of_w32fns): Initialize them.
15404 (HOURGLASS_ID): New constant.
15405 (x_window_to_frame): Don't check hourglass_window.
15406 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15407 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15408 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15409 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15410 Only change the cursor if hourglass is not active.
15411 (Fx_create_frame): Initialize frame's current_cursor.
15412 (hourglass_atimer): Remove.
15413 (hourglass_started): New function.
15414 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15415 (show_hourglass): Adapt to w32, changing argument to frame.
15416
15417 * w32term.h (struct w32_output): Remove hourglass_window.
15418 Add current_cursor.
15419
15420 * eval.c (call_debugger, Fsignal):
15421 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15422 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15423 (Fexecute_extended_command, cancel_hourglass_unwind):
15424 * minibuf.c (read_minibuf):
15425 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15426
154272008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15428
15429 * window.c (run_funs): New fun.
15430 (run_window_configuration_change_hook): Use it to run the buffer-local
15431 and the global part of the hook.
15432
15433 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15434 (unwind_format_mode_line): Restore selected window.
15435 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15436
154372008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15438
15439 * editfns.c (Fchar_equal): Check they are valid characters.
15440
15441 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15442
154432008-03-17 Andreas Schwab <schwab@suse.de>
15444
15445 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15446 against a charset.
15447
15448 * lisp.h (Fbuffer_list): Declare.
15449
154502008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15451
aac0c6e3
MR
15452 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15453 handlebox_widget is != 0.
15454
154552008-03-16 Juri Linkov <juri@jurta.org>
15456
15457 * callint.c (Fcall_interactively): For interactive code letters
15458 'b' and 'B' put the buffer list into the list of default "future"
15459 values of the minibuffer.
15460
154612008-03-16 Andreas Schwab <schwab@suse.de>
15462
15463 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15464 modifiers.
15465
15466 * regex.c (re_match_2_internal): Correct matching of a charset
15467 against latin-1 characters.
15468
154692008-03-16 Kenichi Handa <handa@m17n.org>
15470
15471 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15472 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15473 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15474 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15475 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15476 CHAR_STRING_ADVANCE.
15477 (produce_chars): Fix for the case that the source and the
15478 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15479 instead of CHAR_STRING_ADVANCE.
15480 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15481 STRING_CHAR_ADVANCE.
15482
154832008-03-15 Andreas Schwab <schwab@suse.de>
15484
15485 * regex.c (re_match_2_internal): Correct matching of eight bit
15486 characters in unibyte strings.
15487
154882008-03-15 Martin Rudalics <rudalics@gmx.at>
15489
15490 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15491 at end of range when it coincides with the end of the buffer.
15492
154932008-03-14 Eli Zaretskii <eliz@gnu.org>
15494
15495 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15496
15497 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15498
154992008-03-14 Jason Rumney <jasonr@gnu.org>
15500
15501 * editfns.c (initial_tz): New variable.
15502 (syms_of_editfns): Initialize it.
15503 (Fset_time_zone_rule): Set it when first called.
15504 Use it when TZSTRING is nil.
15505
15506 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15507 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15508 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15509 (globals_of_w32fns): Initialize them.
15510 (compute_tip_xy): Use them to position tooltips.
15511
155122008-03-14 Glenn Morris <rgm@gnu.org>
15513
15514 * emacs.c (main): Revert previous change.
15515 (standard_args): Revert -internal-script back to -scriptload,
15516 and remove the long-option form.
15517
155182008-03-13 Glenn Morris <rgm@gnu.org>
15519
15520 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15521 Remove option -enable-font-backend.
15522
155232008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15524
15525 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15526
155272008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15528
15529 * xterm.c (x_connection_closed): For GTK: If this is the last
15530 terminal just exit without closing the display.
15531
155322008-03-11 Jason Rumney <jasonr@gnu.org>
15533
15534 * w32font.c (w32font_full_name): Use floor to round.
15535
f0131492 155362008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15537
15538 * sound.c (alsa_configure): Declare vol at beginning of block.
15539
15540 * fontset.c (Ffontset_info): Remove extra semicolon.
15541
155422008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15543
15544 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15545 size of resulting string.
15546
155472008-03-10 Jason Rumney <jasonr@gnu.org>
15548
15549 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15550
155512008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15552
15553 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15554 Don't pretend as if characters with display property haven't been
15555 consumed for string-replacing-string case.
15556
155572008-03-08 Kim F. Storm <storm@cua.dk>
15558
15559 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15560 (get_next_display_element, next_element_from_string)
15561 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15562
155632008-03-08 Andreas Schwab <schwab@suse.de>
15564
15565 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15566
155672008-03-06 Jason Rumney <jasonr@gnu.org>
15568
15569 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15570 when charset not specified. Only translate ANSI to unicode when
15571 font_type is truetype.
15572 (w32font_coverage_ok): New function.
15573 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15574
155752008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15576
15577 * lread.c (Fread_char): Resolve modifiers.
15578 (Fread_char_exclusive): Likewise.
15579
15580 * character.c (char_resolve_modifier_mask): New function.
15581 (char_string): Use char_resolve_modifier_mask.
15582 (Fchar_resolve_modifiers): New function.
15583 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15584 function.
15585
155862008-03-04 Jason Rumney <jasonr@gnu.org>
15587
15588 * makefile.w32-in: Always include w32font.c in the build.
15589 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15590
155912008-03-04 Andreas Schwab <schwab@suse.de>
15592
15593 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15594 (versionclean): Likewise.
15595
155962008-03-04 Juanma Barranquero <lekktu@gmail.com>
15597
15598 * .cvsignore: Add oo.
15599
156002008-03-03 Andreas Schwab <schwab@suse.de>
15601
15602 * coding.c (decode_coding_object): Inhibit gap shrinking while
15603 decoding in place.
15604
156052008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15606
15607 * w32term.c: Remove unused include "gnu.h".
15608 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15609
15610 * gnu.h: Rename to ...
15611 * emacs-icon.h: ... this.
15612 * xterm.c: Use emacs-icon.h instead of gnu.h.
15613 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15614
156152008-03-03 Juanma Barranquero <lekktu@gmail.com>
15616
15617 * w32font.c: Include math.h.
15618
156192008-03-03 Jason Rumney <jasonr@gnu.org>
15620
15621 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15622 Compute options separately.
15623 (w32font_open_internal): Set glyph_idx before caching metrics.
15624
15625 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15626 Define if system headers don't.
15627 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15628 (w32font_encode_char): Don't declare here.
15629
15630 * w32font.c (Quniscribe, QCformat): New symbols.
15631 (syms_of_w32font): Define them.
15632 (w32font_has_char): Indicate uncertainty.
15633 (w32font_encode_char): Encode as glyph point. Make static.
15634 (recompute_cached_metrics): New function.
15635 (w32font_open_internal): Use it. Set font to use glyph points
15636 initially. Set format based on type of font.
15637 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15638 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15639 on it. Set format based on information available here.
15640 (add_font_entity_to_list): Identify backend based on opentype_only.
15641
156422008-03-02 Andreas Schwab <schwab@suse.de>
15643
15644 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15645
15646 * coding.c (decode_coding_big5, produce_chars):
15647 Fix typos in last change.
15648
156492008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15650
15651 * gnu.h: New icon.
15652
156532008-03-02 Kenichi Handa <handa@m17n.org>
15654
15655 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15656 `dos', don't decode '\r' if that is the last in the source.
15657 (decode_coding_utf_16, decode_coding_emacs_mule)
15658 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15659 (decode_coding_raw_text, decode_coding_charset): Likewise.
15660 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15661
156622008-03-01 Jason Rumney <jasonr@gnu.org>
15663
15664 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15665
156662008-03-01 Kim F. Storm <storm@cua.dk>
15667
15668 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15669
156702008-03-01 Jason Rumney <jasonr@gnu.org>
15671
15672 * w32font.c (w32font_full_name): New function.
15673 (w32font_open_internal): Use it.
15674
156752008-03-01 Kim F. Storm <storm@cua.dk>
15676
15677 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15678
156792008-03-01 Jason Rumney <jasonr@gnu.org>
15680
15681 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15682
156832008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15684
15685 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15686 xg_frame_resized when the event is for the edit widget.
15687
15688 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15689
15690 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15691 set_char_size.
15692 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15693 operations on widgets here. Just set frame size if needed.
15694 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15695 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15696 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15697 the whole frame.
15698 (xg_create_tool_bar): Move attachment of the tool bar to
15699 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15700 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15701
157022008-03-01 Jason Rumney <jasonr@gnu.org>
15703
15704 * w32fns.c (w32_msg_pump): Disable debug code.
15705
157062008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15707
15708 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15709
157102008-02-29 Chong Yidong <cyd@stupidchicken.com>
15711
15712 * xdisp.c (next_overlay_string): Don't set
15713 overlay_strings_at_end_processed_p if we're currently reading from
15714 a display string.
15715
157162008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15717
15718 * xdisp.c (get_overlay_strings_1): Fix typo.
15719
157202008-02-29 Chong Yidong <cyd@stupidchicken.com>
15721
15722 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15723
157242008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15725
15726 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15727
15728 * xdisp.c (display_mode_element): Cancel the previous change.
15729 (decode_mode_spec): Likewise.
15730 (handle_auto_composed_prop): Don't make composition if it->string
15731 is a string.
15732
157332008-02-27 Kim F. Storm <storm@cua.dk>
15734
15735 * lisp.h (GLYPH): Change type from int to struct with separate char
15736 and face_id members.
15737 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15738 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15739 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15740 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15741 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15742 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15743 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15744 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15745 handle new Lisp glyph code encoding, either an integer or a cons.
15746
15747 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15748 (GLYPH_ALIAS): Delete.
15749 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15750 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15751 (GLYPH_FROM_CHAR): Replace macro by ...
15752 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15753
15754 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15755 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15756 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15757 (GLYPH_INVALID_P): New macro.
15758 (spec_glyph_lookup_face): Update prototype.
15759
15760 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15761 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15762 new glyph code encoding.
15763 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15764 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15765
15766 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15767 Adapt to new glyph type and new glyph code encoding.
15768
15769 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15770
15771 * indent.c (current_column, current_column_1, Fmove_to_column)
15772 (compute_motion): Adapt to new glyph code encoding.
15773
15774 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15775
157762008-02-27 Chong Yidong <cyd@stupidchicken.com>
15777
15778 * process.c (wait_reading_process_output): Check for window
15779 changes caused by timers.
15780 Suggested by Johan Bockgård.
15781
157822008-02-27 Glenn Morris <rgm@gnu.org>
15783
15784 * emacs.c (USAGE1): Add `--disable-font-backend'.
15785
157862008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15787
15788 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15789 is made to the buffer.
15790
157912008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15792
15793 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15794 (face_at_string_position):
15795 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15796 (face_at_string_position):
15797 * xdisp.c (display_string, next_overlay_change):
15798 * buffer.h (overlays_at):
15799 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15800 Update callers.
15801
158022008-02-26 Chong Yidong <cyd@stupidchicken.com>
15803
15804 * editfns.c (Fformat): Doc fix.
15805
158062008-02-26 Juanma Barranquero <lekktu@gmail.com>
15807
15808 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15809 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15810 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15811
158122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15813
15814 * buffer.c (Fbuffer_swap_text): New function.
15815 (syms_of_buffer): Defsubr it.
15816
158172008-02-25 Chong Yidong <cyd@stupidchicken.com>
15818
15819 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15820
158212008-02-25 Jason Rumney <jasonr@gnu.org>
15822
15823 * w32font.c (w32font_draw): Draw one character at a time when padding.
15824
158252008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15826
15827 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15828 Handle a nil arg. Use run_window_configuration_change_hook.
15829 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15830 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15831 Use run_window_configuration_change_hook.
15832
158332008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15834
15835 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15836 1-pixel width.
15837
158382008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15839
15840 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15841 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15842 if the glyph in the font is zero pixel with.
15843
15844 * dispextern.h (struct glyph_string): New member padding_p.
15845
15846 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15847
15848 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15849
15850 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15851
15852 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15853
15854 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15855
158562008-02-25 Jason Rumney <jasonr@gnu.org>
15857
15858 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15859
158602008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15861
15862 Allow fine-grained image-cache flushing.
15863 * dispextern.h (struct image): Add `dependencies' field.
15864 (clear_image_caches): Change arg to Lisp_Object.
15865 * image.c (make_image): Initialize `dependencies' field.
15866 (clear_image_cache): Change arg to allow fine-grained flushing.
15867 Perform the flush even if image-cache-eviction-delay is nil.
15868 (clear_image_caches): Change arg to Lisp_Object.
15869 (Fclear_image_cache): Expand meaning of the argument.
15870 (mark_image): Mark `dependencies' field.
15871 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15872 (lface_hash): Use XHASH rather than XFASTINT.
15873 (face_at_buffer_position): Fix int -> EMACS_INT position.
15874 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15875 (select_frame_for_redisplay): Remove code duplication.
15876 (redisplay_internal): Adapt arg to call to clear_image_caches.
15877
158782008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15879
15880 * s/vms4-0.h:
15881 * s/vms4-2.h:
15882 * s/vms4-4.h:
15883 * s/vms5-5.h: Remove, unused.
15884
15885 * s/irix5-2.h:
15886 * s/irix6-0.h:
15887 * s/riscos5.h:
15888 * s/mach-bsd4-3.h:
15889 * m/mips4.h: Remove files for obsolete systems.
15890
15891 * Makefile.in:
15892 * filelock.c:
15893 * unexmips.c:
15894 * m/hp9000s300.h:
15895 * m/iris4d.h:
15896 * s/aix3-1.h:
15897 * s/hpux.h:
15898 * s/msdos.h:
15899 * s/usg5-0.h:
15900 * s/usg5-2-2.h:
15901 * s/usg5-2.h:
15902 * s/usg5-3.h: Remove references to obsolete variables.
15903
15904 * s/irix5-0.h: Remove, move all the contents ...
15905 * s/irix6-5.h: ... here. Simplify.
15906 * config.in: Regenerate.
15907
159082008-02-24 Jason Rumney <jasonr@gnu.org>
15909
15910 * w32term.c (x_draw_glyph_string_background): Clear the background
15911 manually when cleartype is in use.
15912 (x_draw_glyph_string_foreground): Draw text transparently when
15913 cleartype is in use.
15914
15915 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15916 a font into it unless we have to.
15917
159182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15919
15920 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15921 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15922
aac0c6e3
MR
159232008-02-18 Jason Rumney <jasonr@gnu.org>
15924
15925 * w32fns.c (Fw32_shell_execute): Encode parameters.
15926
159272008-02-09 Eli Zaretskii <eliz@gnu.org>
15928
15929 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15930
159312008-02-05 Juanma Barranquero <lekktu@gmail.com>
15932
15933 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15934
159352008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15936
15937 * xterm.c (x_set_offset): Don't change the gravity if
15938 CHANGE_GRAVITY is -1.
15939
159402008-02-23 Chong Yidong <cyd@stupidchicken.com>
15941
15942 * fileio.c (auto_save_error_occurred): New var.
15943 (auto_save_error): Set it.
15944 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15945 error occurred.
15946
159472008-02-23 Eli Zaretskii <eliz@gnu.org>
15948
15949 * w32.c (globals_of_w32): Add initializations for
15950 g_b_init_get_sid_sub_authority and
15951 g_b_init_get_sid_sub_authority_count.
15952
159532008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15954
15955 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15956 (font_parse_xlfd): Use them for sanity check.
15957 (Finternal_set_font_style_table): Make sure the table is bijective.
15958
15959 Consolidate the image_cache to the terminal struct.
15960 * termhooks.h (P_): Remove redundant def.
15961 (struct terminal): New field `image_cache'.
15962 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15963 of FRAME_X_IMAGE_CACHE.
15964 * xterm.h (struct x_display_info): Remove image_cache field.
15965 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15966 * w32term.h (struct w32_display_info): Remove image_cache field.
15967 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15968 * macterm.h (struct mac_display_info): Remove image_cache field.
15969 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15970 * xterm.c (x_term_init):
15971 * w32term.c (w32_term_init):
15972 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15973 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15974 Remove declarations.
15975 (clear_image_caches, mark_image_cache): New declarations.
15976 * xfaces.c (clear_face_cache):
15977 * xdisp.c (redisplay_internal): Use clear_image_caches.
15978 * image.c (clear_image_cache): Don't check that a frame is on
15979 a window-system before checking if it shares the same cache.
15980 (clear_image_caches): New function.
15981 (Fclear_image_cache): Use it.
15982 (mark_image): Move from allo.c.
15983 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15984 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15985 (mark_object): Don't call mark_image_cache for frames.
15986 (mark_terminals): Call mark_image_cache.
15987
15988 * lisp.h (Fdelete_terminal): Declare.
15989
15990 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15991 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15992 wrong_type_argument.
15993
159942008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15995
15996 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15997 malayalam.el, and tamil.el. Add sinhala.el.
15998
159992008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16000
16001 * xterm.c (x_connection_closed): Consolidate identical tests.
16002 (x_delete_terminal): Don't crash if called via x_connection_closed.
16003
160042008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16005
16006 * xdisp.c (decode_mode_spec): New arg string.
16007 (display_mode_element): Adjust for the above change.
16008
160092008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16010
16011 * callint.c (Fcall_interactively): Use AREF.
16012
160132008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16014
16015 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16016
160172008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16018
16019 * xfns.c (Fx_show_tip): Set string to " " if empty.
16020
160212008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16022
16023 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16024 with Qt.
16025
160262008-02-17 Kenichi Handa <handa@m17n.org>
16027
16028 * ftfont.c (ftfont_shape): Return Lispy number.
16029
16030 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16031 for GCs.
16032 (Finternal_set_font_selection_order): Call font_update_sort_order
16033 only when enable_font_backend is set.
16034 (realize_x_face): Set face->font_info to that of default face only
16035 when enable_font_backend is set.
16036
16037 * xdisp.c (handle_composition_prop): Set it->c to the fist
16038 character of the composed region.
16039 (fill_composite_glyph_string): Set base_face->font_info to
16040 s->font_info. Get a face for ascii from base_face->ascii_face.
16041 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16042 with a face already decided.
16043 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16044 non-negative.
16045 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16046 call font_prepare_composition unconditionally.
16047
16048 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16049
16050 * xterm.h (struct x_display_info): New member font.
16051
16052 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16053 (x_set_mouse_face_gc, x_new_font): Likewise.
16054 (x_term_init): Setup display_info->font.
16055 (x_delete_terminal): Free display_info->font.
16056
16057 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16058
16059 * ftxfont.c (ftxfont_default_fid): Delete it.
16060 (ftxfont_open): Set xfont->fid to 0.
16061 (ftxfont_end_for_frame): Clear data specific to the frame and the
16062 font-driver.
16063
16064 * xftfont.c (xftfont_default_fid): Delete it.
16065 (xftfont_open): Set xfont->fid to 0.
16066
16067 * fontset.c (FONTSET_OBJLIST): New macro.
16068 (fontset_find_font): Update font-object list of the fontset.
16069 (free_realized_fontset): New function.
16070 (free_face_fontset): Call free_realized_fontset.
16071 (Ffont_info): Call font_close_object only when enable_font_backend
16072 is set.
16073
16074 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16075 [HAVE_NTGUI]: Include w32term.h.
16076 [MAC_OS]: Include macterm.ch.
16077 (font_otf_ValueRecord): Use make_number.
16078 (font_finish_cache): Fix handling of reference count.
16079 (font_clear_cache): Update num_fonts.
16080 (font_open_entity): Update smallest_char_width and
16081 smallest_font_height of the frame.
16082 (font_close_object): Update num_fonts.
16083 (Fclear_font_cache): Fix finding the target cache data.
16084
160852008-02-16 Glenn Morris <rgm@gnu.org>
16086
16087 * fontset.c (Finternal_char_font): Fix compilation warning.
16088
160892008-02-16 Eli Zaretskii <eliz@gnu.org>
16090
16091 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16092 instead of char arrays. Enlarge the size of array passed to
16093 get_token_information.
16094
16095 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16096 warnings.
16097
160982008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16099
16100 * .gdbinit: Don't set `args', it breaks gdb --args.
16101
161022008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16103
16104 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16105 within a narrowed buffer.
16106
161072008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16108
16109 * coding.c (decode_coding_object, encode_coding_object):
16110 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16111
161122008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16113
16114 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16115 hardcoding 1.
16116 (detect_coding_system):
16117 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16118 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16119 * insdel.c (insert_from_gap):
16120 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16121 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16122 (string_to_multibyte):
16123 * character.c (chars_in_text, multibyte_chars_in_text):
16124 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16125
16126 * character.h (FETCH_STRING_CHAR_ADVANCE)
16127 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16128 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16129 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16130
16131 * casefiddle.c (casify_region): Only call after-change and composition
16132 functions on the part of the region that was changed.
16133
16134 * keyboard.c (read_avail_input):
16135 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16136
161372008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16138
16139 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16140 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16141
161422008-02-11 Juanma Barranquero <lekktu@gmail.com>
16143
16144 * w32menu.c (push_submenu_start, push_submenu_end)
16145 (push_left_right_boundary, push_menu_pane, push_menu_item):
16146 * keyboard.c (read_key_sequence): Don't pass args with side effects
16147 to AREF, it fails when compiling with -DENABLE_CHECKING.
16148
161492008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16150
16151 * Makefile.in (${lispsource}international/charprop.el):
16152 Delete this target.
16153
16154 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16155 emacs-unicode-2.
16156
161572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16158
16159 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16160
161612008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16162
16163 * frame.c (Qnoelisp): New symbol.
16164 (syms_of_frame): Initialize it.
16165 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16166 harmless Elisp code, from a strong `force' from x_connection_closed.
16167 * frame.h (Qnoelisp): Declare.
16168 * xterm.c (x_connection_closed): Pass `noelisp'.
16169
16170 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16171 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16172 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16173 rather than `int' for the type of `type'.
16174
161752008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16176
16177 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16178
16179 * Makefile.in (GNUC): Remove support for gcc-1.x.
16180
161812008-02-10 Richard Stallman <rms@gnu.org>
16182
16183 * lisp.h (ASET): Use AREF, not ASLOT.
16184
161852008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16186
16187 * lisp.h (ASET): Check bounds.
16188
161892008-02-10 Glenn Morris <rgm@gnu.org>
16190
16191 * buffer.c (mode-name): Doc fix.
16192
161932008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16194
16195 * Makefile.in:
16196 * emacs.c:
16197 * gmalloc.c:
16198 * keyboard.c:
16199 * lisp.h:
16200 * m/ibm370aix.h:
16201 * process.c:
16202 * regex.c:
16203 * s/hpux.h:
16204 * sysdep.c:
16205 * sysselect.h:
16206 * systty.h:
16207 * unexec.c:
16208 * w32term.c:
16209 * xsmfns.c:
16210 * xterm.c: Remove code that deals with obsolete variables.
16211
16212 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16213
16214 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16215 nothing else needs it anymore.
16216
162172008-02-09 Eli Zaretskii <eliz@gnu.org>
16218
16219 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16220 instead of unibyte_char_to_multibyte.
16221
162222008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16223
16224 * s/gnu-linux.h: Remove commented out code.
16225
16226 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16227
16228 * Makefile.in: Update what RMS says about using autoconf.
16229 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16230 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16231 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16232 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16233
162342008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16235
16236 * keymap.c (Fkey_description): Move side effect outside of macro call.
16237
16238 * xfaces.c (Finternal_make_lisp_face):
16239 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16240
16241 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16242 (syms_of_fontset): Use ASET.
16243
16244 * fns.c (concat): Move side effect outside of macro call.
16245 (hash_clear): Use ASET.
16246
162472008-02-08 Richard Stallman <rms@gnu.org>
16248
16249 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16250 If FORCE, and frame has a surrogate minibuffer for another frame,
16251 delete the other frame first.
16252
162532008-02-07 Timo Savola <timo.savola@iki.fi>
16254
16255 * xterm.c (x_detect_focus_change): Handle embed client message.
16256 (handle_one_xevent): Ditto.
16257 (handle_one_xevent): If embedded and we get a button press/release,
16258 request focus.
16259 (xembed_set_info, xembed_send_message): New functions.
16260 (x_make_frame_visible): Call xembed_set_info if embedded.
16261 (x_make_frame_invisible): Call xembed_set_info if embedded.
16262 (x_term_init): Initialize Xatom_XEMBED.
16263 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16264 (x_iconify_frame): Ditto.
16265
16266 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16267 (enum xembed_info, enum xembed_message, enum xembed_focus)
16268 (enum xembed_modifier, enum xembed_accelerator): New.
16269 (xembed_set_info, xembed_send_message): Declare.
16270 (FRAME_X_EMBEDDED_P): New.
16271
16272 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16273 gtk_plug_new.
16274
16275 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16276 window ID of a frame.
16277 (x_window): Reparent frame if embedded.
16278 (Fx_create_frame): Don't set border width if embedded.
16279
16280 * emacs.c (USAGE3): Add --parent-id.
16281 (standard_args): Ditto.
16282
162832008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16284
16285 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16286
162872008-02-07 Jim Meyering <meyering@redhat.com>
16288
16289 Use "do...while (0)", not "if (1)...else" in macro definitions.
16290 The latter provokes a warning from gcc about the empty else, when
16291 followed by ";". Also, without that trailing semicolon, it would
16292 silently swallow up any following statement.
16293 * syntax.h (SETUP_SYNTAX_TABLE)
16294 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16295 * buffer.h (DECODE_POSITION): Likewise.
16296 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16297 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16298 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16299 (FETCH_CHAR_ADVANCE): Likewise.
16300 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16301
163022008-02-07 Jim Meyering <meyering@redhat.com>
16303
16304 * lread.c [lint]: Don't include <sys/inode.h>.
16305
163062008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16307
16308 * xselect.c (x_handle_dnd_message):
16309 * xmenu.c (digest_single_submenu, xmenu_show):
16310 * xdisp.c (with_echo_area_buffer_unwind_data)
16311 (format_mode_line_unwind_data, unwind_format_mode_line)
16312 (display_menu_bar):
16313 * eval.c (Ffetch_bytecode):
16314 * doc.c (store_function_docstring):
16315 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16316 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16317 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16318
163192008-02-07 Kenichi Handa <handa@m17n.org>
16320
16321 * ftxfont.c (ftxfont_open): Don't set
16322 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16323
16324 * ftfont.c (ftfont_open): Fix previous change.
16325
163262008-02-06 Jason Rumney <jasonr@gnu.org>
16327
16328 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16329 Use cached metrics for ASCII characters.
16330 (w32font_open_internal): Don't set font's owning_frame.
16331 Cache metrics for ASCII characters.
16332
16333 * w32font.h (struct w32font_info): Add ascii_metrics.
16334 Remove owning_frame.
16335
163362008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16337
16338 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16339 to negative value.
16340
16341 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16342
16343 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16344
16345 * charset.c (syms_of_charset): Set QCtest and Qeq.
16346
163472008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16348
16349 * process.c (Fstart_process):
16350 * callproc.c (Fcall_process): Handle the case where
16351 Funhandled_file_name_directory returns nil.
16352
16353 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16354 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16355 * font.c (check_gstring): Use them and AREF to access the vector before
16356 we know it's really a gstring.
16357 (Ffont_shape_text): Fix typo.
46e722a9 16358 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16359
16360 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16361 Declare.
16362
16363 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16364
163652008-02-05 Jason Rumney <jasonr@gnu.org>
16366
16367 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16368 Set smallest_font_height and smallest_char_width in display info.
16369
163702008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16371
16372 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16373
163742008-02-05 Miles Bader <miles@gnu.org>
16375
16376 * xfaces.c (get_lface_attributes, merge_named_face)
16377 (lookup_named_face, lookup_derived_face, realize_named_face):
16378 Revert 2008-02-01 change by cyd@stupidchicken.com.
16379
163802008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16381
16382 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16383 fallback fonts.
16384 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16385
163862008-02-04 Jason Rumney <jasonr@gnu.org>
16387
16388 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16389 set full_name.
16390 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16391
163922008-02-03 Jason Rumney <jasonr@gnu.org>
16393
16394 * makefile.w32-in (OBJ1): Include font.o here.
16395 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16396
163972008-02-02 Jason Rumney <jasonr@gnu.org>
16398
16399 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16400
164012008-02-01 Jason Rumney <jasonr@gnu.org>
16402
16403 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16404
16405 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16406
164072008-02-01 Andreas Schwab <schwab@suse.de>
16408
16409 * Makefile.in (shortlisp, lisp): Update for rename of
16410 ../lisp/language/myanmar.el.
16411
164122008-02-01 Chong Yidong <cyd@stupidchicken.com>
16413
16414 * xfaces.c (get_lface_attributes): Delete function.
16415 (merge_named_face, lookup_named_face, lookup_derived_face)
16416 (realize_named_face): Call lface_from_face_name directly, and use
16417 the fact that merge_face_vectors does not alter its FROM argument.
16418
164192008-02-01 Jason Rumney <jasonr@gnu.org>
16420
16421 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16422 input in the default locale. Handle non-Unicode multibyte input.
16423
164242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16425
16426 * fontset.c (reorder_font_vector): Exclude nil elements from the
16427 font group. Don't try multiple fonts.
16428 (fontset_font): Adjust for the above change.
16429 (Finternal_char_font): Return nil if the found font doesn't
16430 contain the character ch.
16431
16432 * Makefile.in (lisp, shortlisp): Add cham.el.
16433
164342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16435
16436 * font.h (FONTP): Make it return 1 also for a font-object.
16437
16438 * .gdbinit (xfontset): New function.
16439
16440 * font.c (font_find_for_lface): Check if the character C is
16441 supported or not only for the first font.
16442
16443 * fontset.c (reorder_font_vector): Fix typo.
16444 (fontset_find_font): Don't add a font-spec specifying a script.
16445 Use 0 (not Qt) for the indication of empty font-group. Change the
16446 format of RFONT-DEF. Return Qt if no font in the font-group
16447 support the character.
16448 (fontset_font): Adjust for the above change. If no font was
16449 found the character, remember that.
16450 (face_for_char): Adjust for the change of RFONT-DEF.
16451 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16452 no font for the target.
16453 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16454
164552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16456
16457 * font.c (font_load_for_face): Handle the case that the font in
16458 face->lface is a string.
16459
164602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16461
16462 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16463
164642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16465
16466 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16467 Fix previous change. If the frame is not on a window system,
16468 signal an error.
16469
164702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16471
16472 * coding.c (decode_coding_object, encode_coding_object): Adjust
16473 marker positions after conversion.
16474
16475 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16476
164772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16478
16479 * font.c (font_find_for_lface): Fix the handling of the return
16480 value of font_has_char.
16481 (Ffont_shape_text): Fix previous change.
16482
16483 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16484 (fontset_ref_and_range): Delete it.
16485 (fontset_find_font): Call char_table_ref_and_range instead of
16486 FONTSET_REF_AND_RANGE.
16487 (make_fontset): Don't setup font groups of Latin here.
16488 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16489 (new_fontset_from_font): Make the specified font the default for
16490 all Latin characters.
16491
164922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16493
16494 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16495 is on a window system before accessing the fontset of the frame.
16496
164972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16498
16499 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16500
16501 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16502 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16503
16504 * font.c (Ffont_shape_text): If the font driver doesn't have a
16505 shaper function, make zero-width glyphs to have at least one-pixel
16506 width. Fix setting of `to' field of glyphs.
16507
165082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16509
16510 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16511 glyphs.
16512
16513 * font.h (struct font_driver): Improve docstring of member `shape'.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * composite.c (syms_of_composite): Fix docstring of
16518 auto-composition-function.
16519
16520 * font.h (LGLYPH_SIZE): New macro.
16521
16522 * font.c (Ffont_fill_gstring): Stop filling when a character not
16523 supported by the font is found.
16524 (Ffont_shape_text): When a shape callback function returns nil,
16525 try at most two more times with larger gstring.
16526 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16527
16528 * xdisp.c (handle_auto_composed_prop): Change the argument to
16529 auto-composition-function.
16530
16531 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16532 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16533 Lispy glyph and store it in the lgstring.
16534
16535 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16536
16537 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16538
165392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16540
16541 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16542
16543 * fontset.c (Vfont_encoding_charset_alist): New variable.
16544 (syms_of_fontset): DEFVAR it.
16545 (reorder_font_vector, fontset_find_font): Optimize for the case of
16546 no need of reordering.
16547 (face_for_char): Map the charset property by
16548 Vfont_encoding_charset_alist.
16549
165502008-02-01 Jason Rumney <jasonr@gnu.org>
16551
16552 * w32font.c (logfonts_match): Don't check adstyle here.
16553 (font_matches_spec): Check here against physical font instead.
16554 (add_font_entity_to_list): Avoid some substitutions.
16555
16556 * font.c (font_parse_fcname): Default weight and slant to normal.
16557 (font_score): Prefer normal fonts if weight or slant unspecified.
16558 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16559 match freetype scores.
16560
165612008-02-01 Jason Rumney <jasonr@gnu.org>
16562
16563 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16564 font, as it may have been deleted.
16565 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16566 most common hyphenless variation.
16567 (logfonts_match): Check generic family.
16568 (font_matches_spec): Don't check generic family here.
16569 (fill_in_logfont): Set generic family based on adstyle.
16570
16571 * w32font.h (w32font_get_cache): Update declaration.
16572
165732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16574
16575 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16576
16577 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16578 If none of the new drivers are available, call font_update_drivers
16579 with the old drivers.
16580
16581 * w32font.c (w32font_get_cache): Adjust the argument type.
16582
16583 * xfont.c (xfont_get_cache): Adjust the argument type.
16584
16585 * font.h (struct font_driver): Change argument type of get_cache.
16586
16587 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16588
16589 * font.c (Ffont_get): Fix arguments to Fassoc.
16590 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16591 (font_clear_cache): New function.
16592 (font_list_entities, font_matching_entity): Use font_get_cache.
16593 (font_update_drivers): Call font_clear_cache when finishing a driver.
16594
16595 * fontset.c (fontset_find_font): Fix previous change.
16596
165972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16598
16599 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16600 dpyinfo->font_table.
16601 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16602 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16603
16604 * font.c (font_at): Handle the case that the arg C is negative.
16605 Handle the unibyte case.
16606 (Ffont_at): Call font_at with the arg C -1.
16607
16608 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16609 the position here, and call font_at with the arg C -1.
16610 Don't check the range of the existing composition at the point.
16611
166122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16613
16614 * fontset.c (fontset_add): New args charset_id and family.
16615 Change caller.
16616 (load_font_get_repertory, fontset_find_font): Assume that
16617 font_spec is always a font-spec object.
16618 (Fset_fontset_font): Always store a font-spec object in a fontset.
16619
16620 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16621 instead of get_property_and_range.
16622
166232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16624
16625 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16626 (xftfont_open): Don't keep locking face.
16627 (xftfont_close): Don't unlock face.
16628 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16629
16630 * fontset.c (fontset_find_font): Don't prefer a font of
16631 supplementary charset.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16636 script, langsys_tag to langsys, new member script.
16637 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16638 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16639 listing to the script specified in that property. Fix arg to
16640 OTF_check_features.
16641
166422008-02-01 Jason Rumney <jasonr@gnu.org>
16643
16644 * w32font.h: New file.
16645
16646 * w32font.c: Include it.
16647 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16648 (w32font_open): Set owning_frame.
16649 (w32font_text_extents): Use owning_frame.
16650 (struct font_callback_data): Add opentype_only field.
16651 (add_font_entity_to_list): Use it to filter fonts.
16652 Don't check against full name.
16653 (w32font_list_internal): New function.
16654 (w32font_list): Use it.
16655 (w32font_match_internal): New function.
16656 (w32font_match): Use it.
16657 (w32font_open_internal): New function.
16658 (w32font_open): Use it.
16659 (w32font_get_cache, w32font_close, w32font_has_char)
16660 (w32font_encode_char, w32font_text_extents, w32font_draw):
16661 Make non-static.
16662
16663 * makefile.w32-in (w32font.o): Depend on w32font.h.
16664
166652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16666
16667 * charset.c (Fdefine_charset_internal): Record a supplementary
16668 charset at the tail of Vcharset_order_list.
16669
16670 * font.c (Ffont_shape_text): Fix the return value.
16671
16672 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16673
16674 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16675
166762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16677
16678 * ftfont.c (struct OpenTypeSpec): New struct.
16679 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16680 (ftfont_get_open_type_spec): New function.
16681 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16682
16683 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16684
166852008-02-01 Jason Rumney <jasonr@gnu.org>
16686
16687 * w32font.c (add_font_entity_to_list): Compare only the beginning
16688 of full name.
16689
166902008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16693 Never return HANDLED_RECOMPUTE_PROPS.
16694
166952008-02-01 Kenichi Handa <handa@m17n.org>
16696
16697 * font.c (font_gstring_produce): Delete it.
16698
16699 * composite.h (COMPOSITION_METHOD):
16700 Handle COMPOSITION_WITH_GLYPH_STRING.
16701
167022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16703
16704 * xfont.c (Qx): Delete.
16705 (syms_of_xfont): Don't initialize Qx.
16706
16707 * composite.h (enum composition_method):
16708 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16709
167102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16711
16712 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16713 (choose_face_font): Accept new form of font-spec.
16714
16715 * frame.h (font_driver_list): Declare it unconditionally.
16716 (struct frame): Define members font_driver_list and font_data_list
16717 unconditionally.
16718
16719 * fontset.c: Include "font.h" unconditionally.
16720 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16721 (Fset_fontset_font): Accept a font-spec object.
16722
16723 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16724 PIXEL_SIZE part a wild card.
16725
16726 * dispextern.h (struct glyph_string): Define members clip and
16727 num_clips unconditionally.
16728 (struct face): Define members font_info and extra unconditionally.
16729
16730 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16731 ftfont_info only when HAVE_LIBOTF is defined.
16732
167332008-02-01 Andreas Schwab <schwab@suse.de>
16734
16735 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16736 and end.
16737
167382008-02-01 Jason Rumney <jasonr@gnu.org>
16739
16740 * w32font.c (w32font_driver): Add new fields.
16741
167422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16743
16744 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16745 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16746 (LIBES): Add @M17N_FLT_CFLAGS@.
16747
16748 * composite.c (compose_text): Don't treat the new style
16749 composition specially.
16750
16751 * emacs.c (main): Call syms_of_font unconditionally.
16752
16753 * font.h (FONT_ENTITY_NOT_LOADABLE)
16754 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16755 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16756 (struct font_driver): New member shape.
16757 (font_registry_charsets): Extern it.
16758 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16759 (font_otf_capability, font_drive_otf): Delete their externs.
16760
16761 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16762 (font_charset_alist, font_registry_charsets): Move from xfont.c
16763 and rename.
16764 (font_prop_validate_otf): New function.
16765 (font_property_table): Register it for QCotf.
16766 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16767 (font_drive_otf): Delete.
16768 (font_prepare_composition): New arg F. Adjust for the change of
16769 lispy gstring.
16770 (font_find_for_lface): New arg C.
16771 (font_load_for_face): Adjust for the change of font_find_for_lface.
16772 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16773 lispy gstring.
16774 (Ffont_shape_text): New function.
16775 (Fopen_font): If the font size is not given, use 12-pixel.
16776 (Ffont_at): New arg STRING.
16777 (syms_of_font): Initalize font_charset_alist.
16778 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16779 conditionally.
16780
16781 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16782 fonts of the same font-spec. Change the format of RFONT-DEF.
16783 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16784 Adjust for the change of RFONT-DEF.
16785 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16786
16787 * ftfont.h: New file.
16788
16789 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16790 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16791 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16792 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16793 font_otf_capability and font_drive_otf, set ftfont_shape.
16794 (ftfont_list): Adjust for the change of :otf property value.
16795 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16796 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16797 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16798 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16799 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16800 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16801
16802 * w32term.c (x_draw_composite_glyph_string_foreground):
16803 Adjust for the change of lispy gstring.
16804
16805 * xdisp.c (handle_composition_prop): Adjust for the change of
16806 lispy gstring. Call a function for auto-composition with the
16807 third arg it->window.
16808 (fill_composite_glyph_string): Adjust for the change of lispy string.
16809 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16810
16811 * xfaces.c (set_font_frame_param): Adjust for the change of
16812 font_find_for_lface.
16813
16814 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16815 (xfont_registry_charsets): Likewise. Change caller.
16816 (syms_of_xfont): Don't handle x_font_charset_alist.
16817
16818 * xftfont.c: Include "ftfont.h".
16819 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16820 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16821 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16822 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16823 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16824 Set xftfont_driver.shape to xftfont_shape.
16825
16826 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16827 the change of lispy gstring.
16828
168292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16830
16831 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16832
168332008-02-01 Jason Rumney <jasonr@gnu.org>
16834
16835 * w32font.c (w32font_draw): Fill background manually.
16836
168372008-02-01 Jason Rumney <jasonr@gnu.org>
16838
16839 * font.c (Qfontp): Remove unused symbol.
16840 (QCantialias): New symbol.
16841 (syms_of_font): Define it.
16842 (font_property_table): Set a validator for QCantialias.
16843
16844 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16845 Define if not already.
16846 (QCfamily): Share with xfaces.c.
16847 (Qstandard, Qsubpixel, Qnatural): New symbols.
16848 (syms_of_w32font): Define them. Don't define QCfamily here.
16849 (w32_antialias_type, lispy_antialias_type): New functions.
16850 (w32_enumfont_pattern_entity): New arg requested_font.
16851 Set antialias parameter if non-default was requested.
16852 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16853
168542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16855
16856 * lread.c (read1): Undo the previous change.
16857
168582008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16859
16860 * frame.c (Fdelete_frame): Call font_update_drivers only when
16861 USE_FONT_BACKEND is defined.
16862
168632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16864
16865 * font.h (struct font_bitmap): New member bits_per_pixel.
16866 (struct font_driver): New members start_for_frame and end_for_frame.
16867 (struct font_data_list): New struct.
16868 (font_put_frame_data, font_get_frame_data): Extern them.
16869
16870 * frame.h (struct frame): New member font_data_list.
16871
16872 * font.c (font_update_drivers): Call driver->start_for_frame and
16873 driver->end_for_frame at proper timings.
16874 (font_put_frame_data, font_get_frame_data): New functions.
16875 (Ffont_spec): Add usage in the docstring.
16876
16877 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16878 (Fdelete_frame): Call font_update_drivers.
16879
16880 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16881 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16882 (xftfont_get_xft_draw): New function.
16883 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16884 (xftfont_end_for_frame): New function.
16885 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16886
16887 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16888 Change argument. Cache GCs in the per-frame data.
16889 (struct ftxfont_frame_data): New struct.
16890 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16891 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16892 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16893 (ftxfont_end_for_frame): New function.
16894 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16895
16896 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16897
168982008-02-01 Kenichi Handa <handa@m17n.org>
16899
16900 * xselect.c (Vselection_coding_system)
16901 (Vnext_selection_coding_system): Delete them.
16902 (syms_of_xselect): Don't declare selection-coding-system and
16903 next-selection-coding-system. They are declared in select.el.
16904
169052008-02-01 Jason Rumney <jasonr@gnu.org>
16906
16907 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16908
16909 * w32fns.c: Include imm.h.
16910 (get_composition_string_fn, get_ime_context_fn): New optional
16911 system functions.
16912 (globals_of_w32fns): Load them from imm32.dll.
16913 (ignore_ime_char): New flag.
16914 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16915 WM_IME_ENDCOMPOSITION messages.
16916
16917 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16918 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16919
169202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16921
16922 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16923 (READCHAR_REPORT_MULTIBYTE): New macro.
16924 (readchar): New 2nd arg MULTIBYTE.
16925 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16926 Make symbol's name multibyte according to the multibyteness of the
16927 source.
16928
169292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16930
16931 * xfaces.c (face_for_overlay_string): Call lookup_face with
16932 correct arguments (fix of synching with the trunk).
16933
169342008-02-01 Kenichi Handa <handa@m17n.org>
16935
16936 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16937 (font_prop_validate_non_neg, font_prop_validate_spacing):
16938 Delete argument prop_index.
16939 (font_property_table): Change arguments to validater. Change Callers.
16940 (font_lispy_object): Delete.
16941 (font_at): Use font_find_object instead fo font_lispy_object.
16942
169432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16944
16945 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16946 and file names.
16947
169482008-02-01 Jason Rumney <jasonr@gnu.org>
16949
16950 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16951 (font_matches_spec): Remove debug output.
16952 (add_font_entity_to_list): Avoid using substituted fonts.
16953
169542008-02-01 Jason Rumney <jasonr@gnu.org>
16955
16956 * doc.c (Fsnarf_documentation):
16957 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16958
169592008-02-01 Miles Bader <miles@gnu.org>
16960
16961 * dispextern.h (struct glyph_row): Only define "clip" field if
16962 HAVE_WINDOW_SYSTEM is defined.
16963
169642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16965
16966 Fix up multi-tty merge.
16967
16968 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16969 and indentation.
16970
16971 * xfaces.c (free_realized_face, clear_face_gcs):
16972 Include font_done_for_face in the input_blocked section, just in case.
16973
16974 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16975 (get_char_face_and_encoding): Undo last change and remove the *other*
16976 duplicate definition (i.e. keep the one that's better scoped and that
16977 includes code for the font-backend).
16978
16979 * terminal.c (create_terminal): Default keyboard_coding to
16980 `no-conversion' and terminal_coding to `undecided'.
16981
16982 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16983
16984 * fontset.c (free_realized_fontsets): Check that the table entry does
16985 contain a fontset before trying to compare it to `base'.
16986
16987 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16988 syms_of_charset, and syms_of_coding earlier because init_window_once
16989 now needs Vcoding_system_hash_table to be setup.
16990
16991 * coding.h (default_buffer_file_coding): Remove.
16992
16993 * coding.c (default_buffer_file_coding): Remove.
16994 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16995 than ->symbol, and use the terminal-local coding system.
16996 (syms_of_coding): Don't setup the coding-systems that are not
16997 terminal-local.
16998 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16999
17000 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17001 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17002
17003 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17004 in chartab.c and were re-added here by mistake.
17005 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17006
17007 * doc.c (Fsnarf_documentation):
17008 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17009 src to etc.
17010
17011 * ChangeLog.10: Add mistakenly removed entry.
17012
170132008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17014
17015 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17016
170172008-02-01 Miles Bader <miles@gnu.org>
17018
17019 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17020 Add extra args to FACE_FOR_CHAR.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17025 in sequence.
17026
17027 * chartab.c (map_sub_char_table, map_char_table): If the range
17028 contains just one character, call the function with that character
17029 even if the depth is not 3.
17030
170312008-02-01 Jason Rumney <jasonr@gnu.org>
17032
17033 * w32font.c (w32font_text_extents): Calculate metrics for the
17034 whole string.
17035
170362008-02-01 Jason Rumney <jasonr@gnu.org>
17037
17038 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17039
170402008-02-01 Jason Rumney <jasonr@gnu.org>
17041
17042 * w32term.c (x_set_glyph_string_clipping): Use
17043 get_glyph_string_clip_rects.
17044 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17045 Adjust for the change of struct glyph_string.
17046
17047 * w32font.c (w32font_draw): Do clipping here.
17048
170492008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * xftfont.c (xftfont_draw): Adjust for the change of struct
17052 glyph_string.
17053
17054 * xterm.c (x_set_glyph_string_clipping): Use
17055 get_glyph_string_clip_rects.
17056 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17057 Adjust for the change of struct glyph_string.
17058
17059 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17060 the resulting clip(s}.
17061 (expose_overlaps): Add arg r. Change callers. Set it to
17062 row->clip temporarily.
17063 (expose_window): Redraw rows overlapping the exposed area.
17064
17065 * dispextern.h (struct glyph_row): New member clip.
17066 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17067 clip_height, new member clip, and num_clips.
17068
170692008-02-01 Kenichi Handa <handa@m17n.org>
17070
17071 * data.c (Fchar_or_string_p): Fix docstring.
17072
170732008-02-01 Kenichi Handa <handa@m17n.org>
17074
17075 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17076 create a temporary XftDraw object.
17077
170782008-02-01 Kenichi Handa <handa@m17n.org>
17079
17080 * font.c (Ffontp): Fix docstring.
17081
17082 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17083 strong evidence of ISO-2022.
17084
170852008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17088 SYNTAX_ENTRY_FOLLOW_PARENT.
17089
170902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17091
17092 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17093 its type.
17094 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17095 Update to the new type of weak_hash_tables and next_weak.
17096
17097 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17098 a plain C pointer to Lisp_Hash_Table.
17099
17100 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17101 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17102 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17103 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17104 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17105 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17106 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17107 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17108 (GC_EQ): Remove since they've been identical to their non-GC_
17109 alter-egos ever since the markbit was eradicated.
17110
17111 * alloc.c:
17112 * buffer.c:
17113 * buffer.h:
17114 * data.c:
17115 * fileio.c:
17116 * filelock.c:
17117 * fns.c:
17118 * frame.h:
17119 * lisp.h:
17120 * macterm.c:
17121 * print.c:
17122 * process.c:
17123 * w32fns.c:
17124 * w32menu.c:
17125 * w32term.c:
17126 * xfns.c:
17127 * xmenu.c:
17128 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17129
171302008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * chartab.c (map_sub_char_table): Make it work for the top-level
17133 char-table. Fix handling of parent char-table.
17134 (map_char_table): Adjust for the above change.
17135
171362008-02-01 Jason Rumney <jasonr@gnu.org>
17137
17138 * w32font.c (Qgdi): Rename from Qw32.
17139
171402008-02-01 Jason Rumney <jasonr@gnu.org>
17141
17142 * w32bdf.c (get_quoted_string): Make function static.
17143
171442008-02-01 Kenichi Handa <handa@m17n.org>
17145
17146 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17147 bigger ascent and descent than those of the font, use them as
17148 font's ascent and descent.
17149
171502008-02-01 Kenichi Handa <handa@m17n.org>
17151
17152 * Makefile.in (${lispsource}international/charprop.el): Move this
17153 target within "#ifdef HAVE_UNIDATA" and "#endif".
17154
171552008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17158 (shortlisp): Add ../lisp/language/tai-viet.el.
17159
171602008-02-01 Ulrich Mueller <ulm@gentoo.org>
17161
17162 * Makefile.in (${lispsource}international/charprop.el): Depend on
17163 temacs${EXEEXT}.
17164
171652008-02-01 Jason Rumney <jasonr@gnu.org>
17166
17167 * w32font.c (w32font_close): Delete the GDI font object.
17168
17169 * w32menu.c: Include character.h.
17170
17171 * w32proc.c: Likewise.
17172
17173 * w32select.c: Likewise.
17174
17175 * makefile.w32-in (w32proc.o): Depend on character.h.
17176
171772008-02-01 Jason Rumney <jasonr@gnu.org>
17178
17179 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17180
17181 * w32menu.c (syms_of_w32menu): Likewise.
17182
17183 * w32proc.c (syms_of_ntproc): Likewise.
17184
17185 * w32select.c (syms_of_w32select): Likewise.
17186
17187 * w32term.c (syms_of_w32term): Likewise.
17188
171892008-02-01 Jason Rumney <jasonr@gnu.org>
17190
17191 * w32font.c (w32font_draw): Delete brush after using it.
17192
171932008-02-01 Jason Rumney <jasonr@gnu.org>
17194
17195 * w32font.c (w32font_open): Don't set font_idx.
17196 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17197 to font settings.
17198 (w32font_draw): Fill background explicitly.
17199
172002008-02-01 Jason Rumney <jasonr@gnu.org>
17201
17202 * w32term.c (w32_initialize): Don't call w32font_initialize.
17203
17204 * w32font.c (w32font_info): Remove subranges.
17205 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17206 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17207 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17208 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17209 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17210 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17211 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17212 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17213 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17214 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17215 New symbols.
17216 (font_callback_data): New struct.
17217 (w32font_list, w32font_match): Use it.
17218 (w32font_open): Don't populate subranges.
17219 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17220 (w32font_encode_char): Always return unicode code-point as-is.
17221 (w32font_text_extents): Supply a transformation matrix to
17222 GetGlyphOutline. Never look up by glyph index. Avoid looping
17223 twice. Use unicode version of GetTexExtentPoint32 instead of
17224 glyph index version.
17225 (set_fonts_frame): Remove.
17226 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17227 set frame parameter. Use backward compatible fake foundries.
17228 Save generic family in extra slot under QCfamily. Make width slot
17229 constant. Save QCspacing value. Save list of scripts instead of
17230 binary subranges.
17231 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17232 (add_font_entity_to_list): Use font_callback_data struct. Filter
17233 unwanted fonts.
17234 (add_one_font_entity_to_list): Use font_callback_data struct.
17235 (w32_registry): Default to iso10646_1.
17236 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17237 string font registries. Don't fill in font name if it is a generic
17238 family name, fill family instead. Use spacing, family and script
17239 extra info to fill pitch, family and charset fields.
17240 (list_all_matching_fonts): Use font_callback_data struct.
17241 (unicode_range_for_char): Remove.
17242 (font_supported_scripts): New function.
17243 (w32font_initialize): Remove.
17244 (syms_of_w32font): Update which symbols are defined.
17245
172462008-02-01 Jason Rumney <jasonr@gnu.org>
17247
17248 * font.c (font_pixel_size): Reverse assq_no_quit args.
17249
17250 * w32term.h (FONT_WIDTH): Report max width, not average.
17251 (FONT_MAX_WIDTH): Remove.
17252 (FONT_AVG_WIDTH): New macro.
17253
17254 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17255 redefinition of FONT_WIDTH.
17256
17257 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17258 (w32_cache_char_metrics): Use FONT_WIDTH.
17259
17260 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17261
172622008-02-01 Jason Rumney <jasonr@gnu.org>
17263
17264 * w32font.c (w32font_open): Make lfHeight negative.
17265
17266 * w32fns.c (x_default_font_parameter): Use new style font name.
17267 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17268
172692008-02-01 Jason Rumney <jasonr@gnu.org>
17270
17271 * w32font.c (QCsubranges): New symbol.
17272 (w32font_open, w32font_has_char): Get subranges from subproperty
17273 of extra.
17274 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17275 (syms_of_w32font): Define :subranges symbol.
17276
17277 * font.c (font_put_extra): Expose externally.
17278
17279 * font.h (font_put_extra): Move declaration from font.c.
17280
17281 * font.c (Ffont_get): Use font driver to determine otf capability.
17282 (adjust_anchor): Check if driver defines anchor_point before using.
17283
17284 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17285 (w32font_draw): Use options.
17286 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17287 Fix detection of truetype fonts.
17288 (registry_to_w32_charset): Handle charsets other than iso8859-1
17289 expressed as lisp symbols.
17290 (w32_registry): Express charset as lisp symbol.
17291 (fill_in_logfont): Reverse pixel and point height logic.
17292 Don't set width here. Set quality to default.
17293
17294 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17295 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17296
17297 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17298 Remove redundant loop and allocation.
17299
17300 * makefile.w32-in (font.o, w32font.o): New objects.
17301 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17302 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17303
17304 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17305 STORE_XCHARB a valid l-value.
17306
17307 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17308 calculations for non-Truetype fonts.
17309 (x_draw_glyph_string): Sync with xterm.c.
17310 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17311 Remove redundant code.
17312 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17313
17314 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17315 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17316
17317 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17318 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17319
17320 * w32font.c: New file for w32 font backend.
17321
173222008-02-01 Kenichi Handa <handa@m17n.org>
17323
17324 * term.c: Don't include "buffer.h" twice.
17325
173262008-02-01 Kenichi Handa <handa@m17n.org>
17327
17328 * character.c (Funibyte_string): New function.
17329 (syms_of_character): Defsubr it.
17330
173312008-02-01 Jason Rumney <jasonr@gnu.org>
17332
17333 * w32term.c [USE_FONT_BACKEND]:
17334 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17335 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17336 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17337 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17338 (x_free_frame_resources): Sync with xterm.c.
17339
173402008-02-01 Andreas Schwab <schwab@suse.de>
17341
17342 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17343 char-table size.
17344
173452008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17352 font_otf_gpos, add font_drive_otf.
17353
17354 * fontset.c (fontset_find_font): Pay attention to font size
17355 specified for a font.
17356 (reorder_font_vector): Check contents of font_def.
17357
17358 * font.c (struct otf_list): Delete it.
17359 (otf_list): Make it a lisp variable.
17360 (otf_open): Use lispy otf_list.
17361 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17362 (check_otf_features): New function.
17363 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17364 New functions.
17365 (font_drive_otf): New function merging font_otf_gsub and
17366 font_otf_gpos.
17367 (font_open_for_lface): New arg spec. Change argument order.
17368 (font_load_for_face): Adjust for the change of font_open_for_lface.
17369 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17370 Ffont_otf_gpos.
17371 (syms_of_font): Staticpro otf_list. Delete defsubr of
17372 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17373
17374 * xfaces.c (set_font_frame_param): Adjust for the change of
17375 font_open_for_lface.
17376
17377 * font.h (font_open_for_lface): Adjust prototype.
17378 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17379 member otf_drive.
17380 (font_otf_gsub, font_otf_gpos): Delete externs.
17381 (font_drive_otf): Extern it.
17382
173832008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * font.c (font_at): If the window W is not on a window system,
17386 return Qnil.
17387
17388 * coding.c (produce_chars, encode_coding): Don't call
17389 insert_from_gap if no characters to produce.
17390
173912008-02-01 Kenichi Handa <handa@m17n.org>
17392
17393 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17394 Fclear_face_cache.
17395
17396 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17397
173982008-02-01 Miles Bader <miles@gnu.org>
17399
17400 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17401 Parse "--disable-font-backend" option.
17402 (standard_args): Add "--disable-font-backend" option.
17403
174042008-02-01 Kenichi Handa <handa@m17n.org>
17405
17406 * fontset.c (fontset_find_font): New function.
17407 (fontset_font): Use fontset_find_font.
17408 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17409 Register the specified font for all Latin characters.
17410 (new_fontset_from_font): Register the specified font for all Latin
17411 characters.
17412 (dump_fontset): For a realized fontset, include the base fontset
17413 name in the returned vector.
17414
174152008-02-01 Kenichi Handa <handa@m17n.org>
17416
17417 * character.h (CHAR_STRING): Cast C to unsigned on calling
17418 char_string.
17419
17420 * character.c (char_string): Type of arg C changed to unsigned.
17421 Signal an error if C is an invalid character code.
17422
17423 * editfns.c (general_insert_function, Fchar_to_string):
17424 Use CHARACTERP, not INTEGERP.
17425
174262008-02-01 Kenichi Handa <handa@m17n.org>
17427
17428 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17429 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17430
17431 * regex.c (analyse_first): Fix for multibyte characters in "case
17432 charset:" and "case categoryspec:".
17433
174342008-02-01 Andreas Schwab <schwab@suse.de>
17435
17436 * Makefile.in (LIBES): Move standard libraries to the end.
17437
174382008-02-01 Kenichi Handa <handa@m17n.org>
17439
17440 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17441 nonzero, don't shrink the buffer nextb.
17442
17443 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17444
17445 * coding.c (coding_alloc_by_making_gap): New arg offset.
17446 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17447 offset.
17448 (decode_coding_iso_2022): Update coding->safe_charsets.
17449 (decode_coding_gap): Temporarily set
17450 current_buffer->text->inhibit_shrinking to 1.
17451
174522008-02-01 Kenichi Handa <handa@m17n.org>
17453
17454 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17455 indexing into elements of s->cmp and s->char2b.
17456
174572008-02-01 Juanma Barranquero <lekktu@gmail.com>
17458
17459 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17460
174612008-02-01 Kenichi Handa <handa@m17n.org>
17462
17463 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17464 target_multibyte instead of multibyte.
17465 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17466 (bcmp_translate): Change the argument name from multibyte to
17467 target_multibyte.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 These changes are to compile a regexp into a pattern that can be
17472 used both for multibyte and unibyte targets.
17473
17474 * Makefile.in (search.o): Depend on charset.h.
17475
17476 * character.c (multibyte_char_to_unibyte_safe): New function.
17477
17478 * search.c: Include "charset.h".
17479 (compile_pattern_1): Delete argument multibyte. Don't set
17480 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17481 (compile_pattern): Don't compare cp->buf.target_multibyte.
17482 Compare cp->buf.charset_unibyte.
17483 (compile_pattern): Set cp->buf.target_multibyte.
17484
17485 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17486
17487 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17488
17489 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17490 multibyte. Change callers.
17491 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17492 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17493 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17494 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17495 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17496 (regex_compile): Make the compiled pattern usable both for
17497 multibyte and unibyte targets.
17498 (analyse_first): Make the fastmap usable both for multibyte and
17499 unibyte targets.
17500 (TRANSLATE_VIA_MULTIBYTE): Delete.
17501 (re_match_2_internal): Pay attention to the case that the
17502 multibyteness of bufp and target may be different.
17503
175042008-02-01 Kenichi Handa <handa@m17n.org>
17505
17506 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17507 empty box occupy at least one column width.
17508
175092008-02-01 Miles Bader <miles@gnu.org>
17510
17511 * Makefile.in: Remove redundant HAVE_XFT clause.
17512
175132008-02-01 Kenichi Handa <handa@m17n.org>
17514
17515 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17516
175172008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17520 being nil.
17521
175222008-02-01 Kenichi Handa <handa@m17n.org>
17523
17524 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17525
175262008-02-01 Kenichi Handa <handa@m17n.org>
17527
17528 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17529
175302008-02-01 Kenichi Handa <handa@m17n.org>
17531
17532 * search.c (simple_search): Fix previous change.
17533
175342008-02-01 Kenichi Handa <handa@m17n.org>
17535
17536 * xftfont.c (ftfont_font_format): Extern declaration.
17537
17538 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17539
17540 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17541 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17542
17543 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17544 (ftfont_font_format): Fix previous change.
17545
17546 * font.h (Ffont_xlfd_name): EXFUN it.
17547
17548 * font.c (font_parse_xlfd): Fix the array size of `f'.
17549 (register_font_driver): Use EQ to compare driver->type.
17550
17551 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17552 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17553 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17554
175552008-02-01 Kenichi Handa <handa@m17n.org>
17556
17557 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17558 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17559
175602008-02-01 Kenichi Handa <handa@m17n.org>
17561
17562 * xfont.c (xfont_open): Set font->format.
17563
17564 * xftfont.c (xftfont_open): Set font->format.
17565
17566 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17567 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17568 (ftfont_open): Set font->format.
17569 (ftfont_font_format): New function.
17570
17571 * font.h (struct font): New member format.
17572
17573 * font.c (Qopentype): New variable.
17574 (syms_of_font): Defsym it.
17575 (Fquery_font): Change the format of the last element of the return
17576 value.
17577
175782008-02-01 Kenichi Handa <handa@m17n.org>
17579
17580 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17581 last resort.
17582
175832008-02-01 Kenichi Handa <handa@m17n.org>
17584
17585 * coding.c (detect_coding_charset): Fix detection of multi-byte
17586 charset.
17587
175882008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17589
17590 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17591
175922008-02-01 Kenichi Handa <handa@m17n.org>
17593
17594 * xdisp.c (get_next_display_element): Set it->face_id for the
17595 first component of a composition.
17596 (x_produce_glyphs): Check if the font is changed or not for composition.
17597
175982008-02-01 Kenichi Handa <handa@m17n.org>
17599
17600 * fontset.c (Qlatin): New variable.
17601 (syms_of_fontset): Define it as a lisp symbol.
17602 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17603
176042008-02-01 Kenichi Handa <handa@m17n.org>
17605
17606 * font.c (font_unparse_fcname): Pay attention to the case that
17607 some of font property is a null string.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * term.c: Include "composite.h".
17612 (encode_terminal_code): Output all components of composition.
17613 Check the size of encode_terminal_src.
17614 (produce_glyphs): For composition, call produce_composite_glyph.
17615 (append_composite_glyph, produce_composite_glyph): New functions.
17616
17617 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17618 is not found, get font_info from the current ascii face.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17623 buffer-file-name to Qnil before calling insert_from_buffer.
17624
17625 * font.c (font_unparse_fcname): Pay attention to the case that
17626 foundry is a null string.
17627
176282008-02-01 Kenichi Handa <handa@m17n.org>
17629
17630 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17631
17632 * font.c (Qunicode_sip): New variable.
17633 (syms_of_font): Declare it as a Lisp symbol.
17634
17635 * font.h (Qunicode_sip): Extern it.
17636
176372008-02-01 Kenichi Handa <handa@m17n.org>
17638
17639 * composite.c (get_composition_id): Pay attention to TAB component.
17640
17641 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17642 TAB. Adjust for the change of s->char2b which always points to
17643 the first element of allocated memory.
17644
17645 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17646
17647 * xdisp.c (handle_composition_prop): Set it->c to the first
17648 non-TAB component.
17649 (fill_composite_glyph_string): Change argument.
17650 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17651 (x_produce_glyphs): Fix handling of left/right padding.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * coding.c (detect_coding_system): Fix for handling off
17656 inhibit_iso_escape_detection. Fix for the case that no coding
17657 system is defined for a specific coding category.
17658
176592008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * font.c (font_matching_entity): Delete unused local var.
17662
17663 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17664 opening a font.
17665
17666 * fileio.c (Finsert_file_contents): On recovering a file, assume
17667 Unix-like eol.
17668 (choose_write_coding_system): On auto-saving a file, force
17669 Unix-like eol.
17670
17671 * coding.c (setup_coding_system): Fix setting of
17672 coding->common_flags based on eol_type.
17673 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17674 inherit from it.
17675
176762008-02-01 Kenichi Handa <handa@m17n.org>
17677
17678 * alloc.c (NSTATICS): Increas to 0x600.
17679
176802008-02-01 Kenichi Handa <handa@m17n.org>
17681
17682 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17683 (ftfont_list): Don't check :name property.
17684 (ftfont_match): New function.
17685 (ftfont_pattern_entity): If the pattern doesn't contain
17686 FC_SPACING, don't assume FC_MONO.
17687
17688 * font.h (struct font_driver): New member `match'.
17689 (font_update_drivers): Adjust prototype.
17690
17691 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17692 property of FONT.
17693 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17694 them unconditionally.
17695 (font_matching_entity): New function.
17696 (font_open_by_name): Try font_matching_entity if exact match is
17697 not found.
17698 (font_update_drivers): Delete the arg FONT. Return a list of
17699 actually used backends. Don't free faces, font caches here.
17700 Don't store data in frame parameters. Don't call x_set_font.
17701 (Ffont_spec): Store :name property as is.
17702 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17703 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17704 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17705 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17706 Call font->driver->otf_gsub instead of font_otf_gsub.
17707
17708 * frame.c (x_set_font_backend): Do more works that were done in
17709 font_update_drivers before.
17710
17711 * xfont.c (xfont_match): New function.
17712 (xfont_driver): Set xfont_driver.match to xfont_match.
17713 (xfont_draw): Set font in GC if necessary.
17714
17715 * ftxfont.c (ftxfont_match): New function.
17716 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17717
17718 * xftfont.c (xftfont_match): New function.
17719 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17720
177212008-02-01 Kenichi Handa <handa@m17n.org>
17722
17723 * font.h (struct font): New member scalable.
17724 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17725 (font_otf_gsub): Adjust prototype.
17726
17727 * font.c (font_otf_capability): Fix handling of the default langsys.
17728 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17729 Check the contents of SPEC.
17730 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17731 (check_gstring): New function.
17732 (REPLACEMENT_CHARACTER): New macro.
17733 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17734 glyph codes of GSTRING.
17735 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17736 (font_prepare_composition): Set cmp->glyph_len.
17737 (font_open_entity): Set font->scalable.
17738 (Ffont_get): Handle :otf property.
17739 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17740 functions.
17741 (Fquery_font): Use font->font.full_name.
17742 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17743 Sfont_otf_alternates.
17744
17745 * ftfont.c (ftfont_open): Set font->font.full_name and
17746 font->font.name properly. Fix calculation of font->font.height
17747 and font->min_width.
17748
17749 * ftxfont.c (ftxfont_create_gcs): New function.
17750 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17751 (ftxfont_draw_backgrond): Fix filling region.
17752 (ftxfont_default_fid): New function.
17753 (ftxfont_open): Set xfont->fid to the return value of
17754 ftxfont_default_fid.
17755 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17756 (ftxfont_done_face): Free only GCs that are created by
17757 ftxfont_create_gcs.
17758 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17759
17760 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17761 Clip to src->width, etc (not src->clip_XXX).
17762
17763 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17764 FontBackend frame parameter.
17765
177662008-02-01 Kenichi Handa <handa@m17n.org>
17767
17768 * font.h (struct font_driver_list): New member `on'.
17769 (Fclear_font_cache): EXFUN it.
17770 (font_update_drivers): Extern it.
17771
17772 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17773 (font_list_entities): Check driver_list->on.
17774 (register_font_driver): Initalize `on' member to 0.
17775 (font_update_drivers): New function.
17776 (Fclear_font_cache): Check driver_list->on.
17777
17778 * frame.h (Qfont_backend): Extern it.
17779 (x_set_font_backend): Extern it.
17780
17781 * frame.c (Qfont_backend): New variable.
17782 (frame_parms): New element for font-backend.
17783 (x_set_font_backend): New function.
17784
17785 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17786 FontBackend frame parameter.
17787 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17788 x_set_font_backend.
17789
17790 * xfont.c (xfont_list): Don't try listing by :name property if the
17791 name is not for XLFD.
17792
177932008-02-01 Kenichi Handa <handa@m17n.org>
17794
17795 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17796 (LGLYPH_SET_TO): New macros.
17797 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17798 element of G is vector or not.
17799 (font_at): Extern it.
17800
17801 * font.c: Include window.h.
17802 (font_lispy_object): New function.
17803 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17804 end of valid glyph.
17805 (font_close_object): Fix getting (struct font *).
17806 (font_at): New function.
17807 (Ffont_get): If FONT is a font-object, get entity from it.
17808 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17809 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17810 range check.
17811 (Ffont_at): New function.
17812 (syms_of_font): Defsubr Sfont_at.
17813
17814 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17815 before the entry for Qcomposition.
17816 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17817 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17818 the font in gstring.
17819 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17820 LGLYPH_FORM (g) to detect the end of valid glyph.
17821 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17822 we are composing with gstring.
17823
17824 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17825 Check if adjustment is vector or not.
17826
17827 * Makefile.in (font.o): Make it depends on window.h.
17828
178292008-02-01 Kenichi Handa <handa@m17n.org>
17830
17831 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17832 adjustment is vector or not.
17833
178342008-02-01 Miles Bader <miles@gnu.org>
17835
17836 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17837
178382008-02-01 Kenichi Handa <handa@m17n.org>
17839
17840 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17841 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17842 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17843
17844 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17845 (DEVICE_DELTA): Fix typo.
17846 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17847 LGLYPH format.
17848
17849 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17850 the change of LGLYPH format.
17851
178522008-02-01 Kenichi Handa <handa@m17n.org>
17853
17854 * ftfont.c (ftfont_list): Fix typo.
17855 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17856
178572008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17858
17859 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17860
17861 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17862 xftface_info is non-NULL.
17863
178642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17865
17866 * ftfont.c (ftfont_list): Move misplaced #endif.
17867
178682008-02-01 Kenichi Handa <handa@m17n.org>
17869
17870 * ftfont.c (ftfont_list): Pay attention to the case that
17871 FC_CAPABILITY is not defined.
17872
178732008-02-01 Kenichi Handa <handa@m17n.org>
17874
17875 * xftfont.c (xftfont_open): Set charset related members to -1.
17876
17877 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17878 QCname.
17879 (ftfont_open): Set charset related members to -1.
17880
17881 * fontset.c (Votf_script_alist): New variable.
17882 (syms_of_fontset): Initialize it.
17883 (fontset_font): Delete unused variable.
17884
17885 * fontset.h (Votf_script_alist): Extern it.
17886
17887 * font.c (font_find_for_lface): Optimize code.
17888
17889 * font.h (font_close_object, font_merge_old_spec): Extern them.
17890
178912008-02-01 Kenichi Handa <handa@m17n.org>
17892
17893 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17894 (syms_of_font): Initialize them.
17895 (font_pixel_size): Allow float value in dpi.
17896 (font_prop_validate_type): Delete.
17897 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17898 Change caller.
17899 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17900 (font_prop_validate_extra): Delete.
17901 (font_prop_validate_spacing): New function.
17902 (font_property_table): Add elements for all known properties.
17903 (get_font_prop_index): Rename from check_font_prop_name. New
17904 argument FROM. Change caller.
17905 (font_prop_validate): Validate all known properties.
17906 (font_put_extra): Delete argument force. Change caller.
17907 (font_expand_wildcards): Make it static. Fix the way of shrinking
17908 the possible range.
17909 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17910 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17911 Change caller.
17912 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17913 (font_parse_fcname): Delete argument merge. Fix parsing of point
17914 size. Don't validate properties values here. Change caller.
17915 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17916 (font_open_by_name): Delete unused variable.
17917 (Ffont_spec): Likewise. Validate property values.
17918 (Ffont_match_p): New function.
17919
17920 * font.h (QCscalable): Extern it.
17921 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17922
17923 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17924
17925 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17926 (xfont_list_pattern): New function.
17927 (xfont_list): Use xfont_list_pattern.
17928
179292008-02-01 Kenichi Handa <handa@m17n.org>
17930
17931 * font.h (Flist_fonts): EXFUN it.
17932
179332008-02-01 Jason Rumney <jasonr@gnu.org>
17934
17935 * w32term.c (w32_initialize): Add back smoothing_type and
17936 smoothing_enabled definitions.
17937
179382008-02-01 Kenichi Handa <handa@m17n.org>
17939
17940 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17941 s->face->font on determining underline position.
17942
179432008-02-01 Kenichi Handa <handa@m17n.org>
17944
17945 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17946 (font_has_char): Accept font-object too.
17947 (font_find_for_lface): Try at first with a size specified in face.
17948
179492008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17952 font_open_by_name.
17953
179542008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * font.h (QCspacing, QCdpi): Extern them.
17957 (enum font_spacing): New enum.
17958 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17959
17960 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17961 (QCspacing, QCdpi): New variables.
17962 (syms_of_font): Initialize them.
17963 (font_pixel_size): New function.
17964 (font_put_extra): New function.
17965 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17966 in FONT_EXTRA.
17967 (font_parse_fcname): Handle enumerated values (e.g. bold).
17968 Fix handling font size. Add QCname property that contains only
17969 unknown properties.
17970 (font_score): Change argument. Change caller. Pay attention to
17971 FONT_PIXEL_SIZE_QUANTUM.
17972 (font_sort_entites, font_list_entities, font_find_for_lface)
17973 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17974 (Ffont_spec): Add QCname property that contains only unknown properties.
17975
17976 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17977 include weight in listing pattern, instead check weight of each
17978 listed font. Don't include scalable in pattern. Pay attention to
17979 FONT_PIXEL_SIZE_QUANTUM.
17980
179812008-02-01 Kenichi Handa <handa@m17n.org>
17982
17983 * font.c (font_parse_fcname): Fix parsing of point-size.
17984 (font_unparse_fcname): Produce symbolic names for style properties.
17985 (font_list_entities): Handle float size correctly.
17986 (font_open_by_name): Prefer `normal' property values if the name
17987 doesn't specify them.
17988
17989 * fontset.c (Finternal_char_font): Use font_get_name, not
17990 Ffont_xlfd_name.
17991
17992 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17993 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17994 pattern. Don't force scalable.
17995
17996 * xftfont.c (xftfont_open): For generating a name, start from
17997 96-byte buffer.
17998
179992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18000
18001 * frame.h (x_new_fontset2): Fix prototype.
18002
180032008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * font.h (struct font_driver): Delete member parse_name.
18006 (font_match_p, font_get_spec, font_parse_fcname)
18007 (font_unparse_fcname): Extern them.
18008 (font_get_name): Adjust prototype.
18009
18010 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18011 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18012 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18013 unnecessary checks for weight, slant, and swidth.
18014 (font_parse_fcname): New function.
18015 (font_unparse_fcname): New function.
18016 (font_parse_name): New function.
18017 (font_match_p): New function.
18018 (font_get_name): Change return value to Lisp string.
18019 (font_get_spec): New function.
18020 (Qunspecified, Qignore_defface): Don't extern them.
18021 (font_find_for_lface): Assume that LFACE is fully specified.
18022 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18023 object, use it for FACE.
18024 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18025 driver->parse_name.
18026 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18027
18028 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18029 prototype.
18030
18031 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18032 argument F. Don't call Fnew_fontset. Instead, directly call
18033 make_fontset.
18034
18035 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18036
18037 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18038 of x_new_fontset2.
18039
18040 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18041 (Qsans__serif): New variables.
18042 (ftfont_generic_family_list): New variable.
18043 (syms_of_ftfont): Initialize the above variables.
18044 (ftfont_pattern_entity): Delete argument NAME.
18045 (ftfont_list_generic_family): New function.
18046 (ftfont_parse_name): Delete this function.
18047 (ftfont_list): Try generic family only when FcFontList found no font.
18048 (ftfont_list_family): Fix args to FcObjectSetBuild.
18049
18050 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18051 object in attrs[LFACE_FONT_INDEX].
18052 (set_lface_from_font_name): Cancel all changes for font-backend.
18053 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18054 function.
18055 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18056 font object in QCfont attribute.
18057 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18058 (realize_default_face) [USE_FONT_BACKEND]: Call
18059 set_lface_from_font_and_fontset.
18060
18061 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18062 "fixed", and signal error here if no suitable font was found.
18063
18064 * xfont.c (xfont_parse_name): Delete this function.
18065
18066 * xftfont.c (xftfont_open): Change coding style of error
18067 handling. Generate fontconfig's fontname pattern.
18068
18069 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18070 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18071
18072 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18073 Both args FONTSET and FONT_OBJECT must be existing ones.
18074
180752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18076
18077 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18078
180792008-02-01 Kenichi Handa <handa@m17n.org>
18080
18081 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18082
18083 * font.h (struct font): Fix typo.
18084
18085 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18086 XLFD_XXX_INDEX.
18087 (enum xlfd_field_mask): New enum.
18088 (intern_font_field): Changed argument. Change caller. If digits
18089 are followed by non-digits, return a symbol.
18090 (font_expand_wildcards): New function.
18091 (font_parse_xlfd): Fix wildcard handling.
18092 (Ffont_spec): If :name is specified, reflect the info in the other
18093 properties.
18094
18095 * ftfont.c (ftfont_pattern_entity): Fix typo.
18096 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18097 locale.
18098
180992008-02-01 Kenichi Handa <handa@m17n.org>
18100
18101 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18102
18103 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18104 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18105 registry doesn't specify encoding part.
18106 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18107 (font_open_by_name): At first try parsing the name.
18108 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18109 as Lisp symbols.
18110
18111 * fontset.c (reorder_font_vector): Pay attention to the case that
18112 the 3rd element of font_def is nil.
18113 (fontset_font): For the default fontset, append one more fontset
18114 elements for a script-based font specification. Don't add script
18115 attribute on finding a font.
18116 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18117 font name.
18118 (fontset_ascii_font): If a font can't be opened, return nil.
18119
18120 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18121 (ftfont_pattern_entity): New function.
18122 (ftfont_get_cache): Assume that freetype_font_cache is already
18123 initialized.
18124 (ftfont_list): Handle the case that a file is specified in font
18125 name. Use ftfont_pattern_entity to generate entities.
18126 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18127 (syms_of_ftfont): Initialize freetype_font_cache.
18128
18129 * xftfont.c (xftfont_open): Make the font name fontconfig's
18130 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18131 (xftfont_close): Free font->font.name if not NULL.
18132
18133 * xfont.c (xfont_list): If script is specified for a font, return
18134 null_vector.
18135 (xfont_list_family): Declare argument type.
18136
18137 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18138 name, set LFACE_FONT (lface) to nil.
18139
18140 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18141 return Qnil.
18142
181432008-02-01 Kenichi Handa <handa@m17n.org>
18144
18145 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18146 (standard_args): Add "-enable-font-backend".
18147
181482008-02-01 Kenichi Handa <handa@m17n.org>
18149
18150 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18151 (struct xftdraw_list, xftdraw_list): Delete them.
18152 (register_xftdraw, check_xftdraw): Delete them.
18153 (xftfont_prepare_face): Don't call register_xftdraw.
18154 (xftfont_done_face): Don't call check_xftdraw.
18155 (xftfont_draw): Get background color only when with_background is
18156 nonzero.
18157
18158 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18159
181602008-02-01 Kenichi Handa <handa@m17n.org>
18161
18162 These changes are for the new font handling codes.
18163
18164 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18165 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18166 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18167 (FONTSRC, FONTOBJ): New variables.
18168 (obj): Add $(FONTOBJ).
18169 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18170 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18171 @LIBOTF_LIBS@.
18172 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18173 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18174
18175 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18176
18177 * character.h (Vscript_representative_chars): Extern it.
18178
18179 * character.c (Vscript_representative_chars): New variable.
18180 (syms_of_character): Declare it as a Lisp variable.
18181
18182 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18183 enable_font_backend is nonzero, accept the composition method
18184 COMPOSITION_WITH_GLYPH_STRING.
18185
18186 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18187 enumeration COMPOSITION_WITH_GLYPH_STRING.
18188
18189 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18190 members clip_x, clip_y, clip_width, and clip_height.
18191 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18192
18193 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18194 --enable-font-backend. Call syms_of_font.
18195
18196 * fns.c (assoc_no_quit): New function.
18197
18198 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18199 (face_for_font, new_fontset_from_font)
18200 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18201
18202 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18203 (fontset_font, fontset_ascii, face_for_char)
18204 (make_fontset_for_ascii_face, Ffont_info)
18205 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18206 is nonzero, use font-backend mechanism.
18207 (find_font_encoding): Make it non-static.
18208 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18209 New functions.
18210
18211 * frame.h (struct frame): New members resx and resy.
18212 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18213 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18214
18215 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18216 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18217
18218 * lisp.h (assoc_no_quit): Extern it.
18219
18220 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18221 Through out the file, use FONT_INFO_FROM_FACE instead of
18222 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18223 rif->per_char_metric.
18224 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18225 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18226 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18227 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18228 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18229 nonzero, use font-backend mechanism.
18230 (get_per_char_metric): New function.
18231
18232 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18233 (set_lface_from_font_name)
18234 (set_font_frame_param, free_realized_face)
18235 (prepare_face_for_display, clear_face_gcs)
18236 (Finternal_set_font_selection_order, realize_x_face)
18237 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18238 font-backend mechanism.
18239 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18240 (load_face_font) [USE_FONT_BACKEND]: Abort.
18241 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18242 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18243
18244 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18245 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18246 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18247 nonzero, register all available font drivers. Call
18248 x_default_font_parameter for deciding a font.
18249 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18250
18251 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18252 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18253 (x_set_glyph_string_clipping_exactly)
18254 (x_compute_glyph_string_overhangs)
18255 (x_draw_glyph_string_foreground)
18256 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18257 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18258 enable_font_backend is nonzero, use font-backend mechanism.
18259 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18260
182612008-02-01 Kenichi Handa <handa@m17n.org>
18262
18263 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18264 system_eol_type.
18265 (syms_of_coding): Initialize system_eol_type.
18266
18267 * process.c (Fset_process_coding_system): Inherit system's eol
18268 format if necessary.
18269
182702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18271
18272 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * coding.c (decode_eol): Pay attention to buffer relocation in
18277 del_range_2.
18278 (decode_coding): Call decode_eol before restoring undo_list.
18279
182802008-02-01 Kenichi Handa <handa@m17n.org>
18281
18282 * charset.c (Fdefine_charset_internal): Fix setting of
18283 emacs_mule_bytes.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * keyboard.c (read_char): Check if C is a character or not before
18288 looking up Vkeyboard_translate_table.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18293 condition to terminate the loop.
18294
182952008-02-01 Kenichi Handa <handa@m17n.org>
18296
18297 * coding.c (produce_composition): Compare charbuf[i] instead of
18298 args[i] against 0.
18299 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18300
183012008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18304 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18305 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18306 detect_coding.
18307 (emacs_mule_char): Handle old style (Emacs 20) component character
18308 of a composition.
18309 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18310 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18311 composition rule.
18312 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18313
183142008-02-01 Kenichi Handa <handa@m17n.org>
18315
18316 * coding.c (encode_coding_ccl): Allocate destination dynamically
18317 when necessary.
18318
183192008-02-01 Kenichi Handa <handa@m17n.org>
18320
18321 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18322 the loop. When quitted, show a proper error message.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18327 src->clip_head and src->clip_tail temporarily instead of src->hl.
18328
18329 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18330 character sequence.
18331 (Fccl_execute_on_string): Use ASET, not XSET.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18336
183372008-02-01 Kenichi Handa <handa@m17n.org>
18338
18339 * coding.c (decode_coding): Fix the condition of terminating the
18340 decoding loop.
18341
183422008-02-01 Kenichi Handa <handa@m17n.org>
18343
18344 * data.c (Faset): On setting a character bigger than 255 in a
18345 unibyte string, signal an error instead of make the string multibyte.
18346
183472008-02-01 Kenichi Handa <handa@m17n.org>
18348
18349 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18350 made by a mapping table.
18351
183522008-02-01 Kenichi Handa <handa@m17n.org>
18353
18354 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18355 not.
18356 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18357 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18358
18359 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18360 s->face is NULL or not.
18361
183622008-02-01 Kenichi Handa <handa@m17n.org>
18363
18364 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18365 (x_draw_glyph_string): Fix drawing of right_overhang and
18366 left_overhang around/on cursor.
18367
18368 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18369
183702008-02-01 Kenichi Handa <handa@m17n.org>
18371
18372 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18373
183742008-02-01 Kenichi Handa <handa@m17n.org>
18375
18376 * coding.c (Fdefine_coding_system_internal)
18377 (Fdefine_coding_system_alias): Avoid a duplicated element in
18378 Vcoding_system_alist.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18383
18384 * coding.c (Qcoding_system_define_form): New variable.
18385 (syms_of_coding): Intern and staticpro it.
18386 (Fcoding_system_p): Check Qcoding_system_define_form.
18387 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18388
18389 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18390 Fcoding_system_p.
18391 (CHECK_CODING_SYSTEM): If ID is not available, call
18392 Fcheck_coding_system.
18393 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18394 Try also Fcheck_coding_system.
18395
183962008-02-01 Kenichi Handa <handa@m17n.org>
18397
18398 * coding.c (code_conversion_restore): GCPRO arg.
18399
184002008-02-01 Kenichi Handa <handa@m17n.org>
18401
18402 * character.c (lisp_string_width): Check multibyteness of STRING.
18403
184042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18405
18406 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18407 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18408 (decode_mac_font_name): Use decode_coding_c_string instead of
18409 decode_coding.
18410 (x_load_font): Initialize fontp->fontset to -1. Set
18411 fontp->encoding_type.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * search.c (search_buffer): Give up BM search on case-fold-search
18416 if one of a target character has a case-equivalence of different
18417 byte length even if that target charcter is an ASCII.
18418 (simple_search): Fix calculation of byte length of matched text.
18419 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * coding.c (decode_coding): Fix handling of invalid bytes.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18428 Unicode characters.
18429
184302008-02-01 Kenichi Handa <handa@m17n.org>
18431
18432 * coding.c (encode_coding_object): If a pre-write-conversion
18433 function makes a new buffer, kill it.
18434
184352008-02-01 Kenichi Handa <handa@m17n.org>
18436
18437 * coding.c (QCascii_compatible_p): New variable.
18438 (syms_of_coding): Initialize it.
18439 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18440 calling string_char.
18441 (record_conversion_result): Add `default:' case.
18442 (coding_charset_list): Delete unused variable `coding_type'.
18443 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18444 property in the plist of the coding system.
18445 (Fcoding_system_put): Check QCascii_compatible_p.
18446
184472008-02-01 Miles Bader <miles@gnu.org>
18448
18449 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18450 removed calculation of frame `f', as it's now used.
18451
184522008-02-01 Kenichi Handa <handa@m17n.org>
18453
18454 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18455 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18456 (UNIDATA): New variable.
18457 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18458 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18459 $(RUN_TEMACS) unconditionally.
18460
184612008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18464 (admindir): New variable.
18465 ($(lispsource)international/charprop.el): New target.
18466
184672008-02-01 Miles Bader <miles@gnu.org>
18468
18469 * character.c (chars-in-region): Remove obsolete function.
18470 (syms_of_character): Remove its initialization.
18471
184722008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18473
18474 * w32select.c (validate_coding_system)
18475 (setup_windows_coding_system): New functions.
18476 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18477 setup_windows_coding_system.
18478 (setup_config, Fw32_get_clipboard_data): Use
18479 validate_coding_system.
18480 (Fx_selection_exists): Move call to setup_config to a place
18481 where signals are allowed.
18482
18483 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18484 (Fcheck_coding_system): Add declarations.
18485
184862008-02-01 Kenichi Handa <handa@m17n.org>
18487
18488 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18489
184902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18491
18492 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18493 string as the second argument for x_new_fontset.
18494
184952008-02-01 Kenichi Handa <handa@m17n.org>
18496
18497 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18498 (encode_coding_object): Use safe_call instead of call2.
18499
185002008-02-01 Kenichi Handa <handa@m17n.org>
18501
18502 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18503
18504 * Makefile.in (lisp): Include charprop.el.
18505
185062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18507
18508 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18509 Not sure if it's unnecessary.
18510
185112008-02-01 Steven Tamm <steventamm@mac.com>
18512
18513 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18514 some possibly unnecessary fontset checking code that crashed
18515 when creating a new frame.
18516
185172008-02-01 Kenichi Handa <handa@m17n.org>
18518
18519 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18520 lookup_face.
18521
18522 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18523
18524 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18525
185262008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18529 (coding_charset_list): New function.
18530
18531 * coding.h (coding_charset_list): Extern it.
18532
185332008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18536 concatenation of family and registry.
18537
185382008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * character.h (BYTE8_STRING): Fix typo.
18541
18542 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18543 string to multibyte (sync to HEAD).
18544
18545 * casefiddle.c (casify_region): Handle changes in byte-length
18546 using replace_range_2 (sync to HEAD).
18547
185482008-02-01 Andreas Schwab <schwab@suse.de>
18549
18550 * chartab.c (map_char_table): GCPRO table and arg.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18555 already at limit.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18560 instead of fast_c_string_match_ignore_case.
18561 (find_font_encoding): Change argument to Lisp_Object. Use
18562 fast_string_match_ignore_case instead of
18563 fast_c_string_match_ignore_case. Change caller.
18564
185652008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * xdisp.c (get_next_display_element): In unibyte case, decide to
18568 display in octal form by checking a character by
18569 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18570
18571 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18572
18573 * character.c (unibyte_has_multibyte_table): New variable.
18574
18575 * character.h (unibyte_has_multibyte_table): Extern it.
18576 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18577
185782008-02-01 Kenichi Handa <handa@m17n.org>
18579
18580 * coding.c (encode_coding_iso_2022): Fix handling of charset
18581 annotation.
18582
185832008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * coding.c (setup_coding_system): If coding_system is nil, use
18586 Qundecided.
18587 (Fterminal_coding_system): Return nil if terminal coding system is
18588 `undecided'.
18589 (syms_of_coding): Define coding-system `undecided' here. Setup
18590 terminal_coding as `undecided'.
18591
185922008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * xdisp.c (message_dolog, set_message_1): Call
18595 unibyte_char_to_multibyte with arg type int.
18596
18597 * lread.c (read1): Fix reading of a char-table.
18598
18599 * print.c (print_object): Include sub char-table in circularities
18600 detection.
18601
186022008-02-01 Kenichi Handa <handa@m17n.org>
18603
18604 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18605 Append the found sequences in car of ARGS instead of prepending.
18606
186072008-02-01 Kenichi Handa <handa@m17n.org>
18608
18609 * fileio.c (report_file_error): Make a unibyte string from
18610 strerror (errorno).
18611 (Fsubstitute_in_file_name): Fix the arg to
18612 unibyte_char_to_multibyte. It is evaluated twice.
18613
186142008-02-01 Kenichi Handa <handa@m17n.org>
18615
18616 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18621 BOM is not found.
18622 (detect_coding, detect_coding_system): Optimization for ISO-2022
18623 when no 8-bit data is found.
18624
186252008-02-01 Jason Rumney <jasonr@gnu.org>
18626
18627 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18628
186292008-02-01 Kenichi Handa <handa@m17n.org>
18630
18631 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18632 CHARS.
18633
186342008-02-01 Steven Tamm <steventamm@mac.com>
18635
18636 * macterm.c (mac_encode_char): Add charset argument and update
18637 to use encoding_type.
18638 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18639 switch to pure fontset.
18640 (decode_mac_font_name): Temporarily remove decoding.
18641 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18642 (x_load_font): Temporarily remove encoding.
18643
186442008-02-01 Kenichi Handa <handa@m17n.org>
18645
18646 * xfaces.c (Fface_font): If frame is not on a window system,
18647 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18648 refer to face->font.
18649 (split_font_name_into_vector, build_font_name_from_vector)
18650 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18651 when HAVE_WINDOW_SYSTEM is defined.
18652
186532008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18656 (x_produce_glyphs): Fix setting of members of cmp in case
18657 cmp->glyph_len is zero.
18658
18659 * fontset.c (Fset_fontset_font): Fix docstring.
18660 (Ffontset_info): Make it backward compatible. New arg ALL.
18661
186622008-02-01 Kim F. Storm <storm@cua.dk>
18663
18664 * process.c (read_process_output): Grow decoding_buf when needed;
18665 this could cause a crash in allocate_string and compact_small_strings.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18670
186712008-02-01 Kenichi Handa <handa@m17n.org>
18672
18673 * coding.c (setup_coding_system): Set coding->common_flags
18674 correctly for raw-text.
18675 (consume_chars): On encoding unibyte text by raw-text, don't check
18676 multibyte form.
18677 (encode_coding): On encoding by raw-text, never use translation tables.
18678
18679 * fileio.c (e_write): Short cut for the case of no encoding.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * coding.c (detect_coding, detect_coding_system): Delete unused
18684 variables.
18685
186862008-02-01 Kenichi Handa <handa@m17n.org>
18687
18688 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18689 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18690
186912008-02-01 Kenichi Handa <handa@m17n.org>
18692
18693 * coding.c (Ffind_coding_systems_region_internal): Include
18694 raw-text and no-conversion in the result.
18695
186962008-02-01 Kenichi Handa <handa@m17n.org>
18697
18698 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18699 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18700 FONT_DEF.
18701 (font_def_arg, add_arg, from_arg, to_arg): New args.
18702 (set_fontset_font): Change argument.
18703 (Fset_fontset_font): Fix for the case that TARGET is a script
18704 name and charset name.
18705 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18706
187072008-02-01 Kenichi Handa <handa@m17n.org>
18708
18709 * fontset.c (fontset_font): Rename from fontset_face. Change return
18710 value.
18711 (face_suitable_for_char_p, face_for_char): Adjust for the change
18712 of fontset_font.
18713 (make_fontset_for_ascii_face): Fix setting of the fontset element
18714 for ASCII.
18715 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18716 to get a font name.
18717 (Ffontset_info): Adjust for the change of fontset_font.
18718
18719 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18720
18721 * character.h (LEADING_CODE_LATIN_1_MIN)
18722 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18723
187242008-02-01 Kenichi Handa <handa@m17n.org>
18725
18726 * editfns.c (check_translation): New function.
18727 (Ftranslate_region_internal): Handle M:N mapping.
18728
187292008-02-01 Kenichi Handa <handa@m17n.org>
18730
18731 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18732
187332008-02-01 Kenichi Handa <handa@m17n.org>
18734
18735 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18736 goto invalid_code.
18737 (decode_coding_iso_2022): Fix handling of invalid designation.
18738
18739 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18740 after calling code_conversion_save.
18741
187422008-02-01 Kenichi Handa <handa@m17n.org>
18743
18744 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18745
18746 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18747
18748 * fontset.c: Include "intervals.h".
18749 (fontset_face): Fix comparing of Lisp_Objects.
18750 (free_face_fontset, new_fontset_from_font_name): Fix
18751 Lisp_Object/int mixup.
18752
18753 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18754
18755 * coding.c: Add many prototypes for static functions.
18756 (get_translation_table): Allow max_lookup to be NULL.
18757 (decode_coding, Ffind_coding_systems_region_internal)
18758 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18759 get_translation_table with max_lookup NULL.
18760
187612008-02-01 Kenichi Handa <handa@m17n.org>
18762
18763 * coding.c (get_translation_table): Declare it as Lisp_Object.
18764 (LOOKUP_TRANSLATION_TABLE): New macro.
18765 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18766 instead of CHAR_TABLE_REF.
18767
187682008-02-01 Kenichi Handa <handa@m17n.org>
18769
18770 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18771 annotation data format.
18772 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18773 Change arguments FROM and TO to single argument NCHARS. Change caller.
18774 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18775 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18776 (decode_coding_ccl, decode_coding_charset): Pay attention to
18777 coding->charbuf_used.
18778 (get_translation): New function.
18779 (produce_chars): New arguments translation_table and last_block.
18780 Translate characters here. Return number of carryover chars.
18781 Change caller.
18782 (produce_composition): New argument pos. Change caller.
18783 Adjust for the change of annotation data format.
18784 (produce_charset, produce_annotation): Likewise.
18785 (decode_coding, encode_coding): Don't call translate_chars.
18786 (consume_chars): New arg translation_table. Change caller.
18787 (translate_chars): Delete.
18788 (syms_of_coding): Make translation-table's number of extra slots 2.
18789
187902008-02-01 Kenichi Handa <handa@m17n.org>
18791
18792 * search.c (simple_search): Fix setting this_pos_byte in backward
18793 search.
18794
18795 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18796 byte sequence.
18797 (detect_coding_ccl): Fix setting of the variable valids.
18798
187992008-02-01 Kenichi Handa <handa@m17n.org>
18800
18801 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18802
18803 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18804
18805 * editfns.c (Ftranslate_region_internal): Rename from
18806 Ftranslate_region. Accept a char-table in TABLE.
18807 (syms_of_editfns): Defsubr Stranslate_region_internal.
18808
18809 * xfaces.c (set_lface_from_font_name): If a font is specified for
18810 a frame, generate a fontset from the font.
18811 (build_scalable_font_name): If the scalable font is requested for
18812 a specific size, don't change that size.
18813 (try_font_list): Try a scalable font also in the case that a
18814 pattern string is specified.
18815
188162008-02-01 Kenichi Handa <handa@m17n.org>
18817
18818 * xfaces.c (Fface_font): New optional arg CHARACTER.
18819
188202008-02-01 Kenichi Handa <handa@m17n.org>
18821
18822 * charset.h (CHARSET_OFFSET): New macro.
18823
188242008-02-01 Kenichi Handa <handa@m17n.org>
18825
18826 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18827
18828 * fontset.c (fontset_face): Handle the case that repertory is a
18829 char-table.
18830 (find_font_encoding): Return nil for unknown encoding.
18831 (Fset_fontset_font): Ignore a font of unknown encoding.
18832
188332008-02-01 Kenichi Handa <handa@m17n.org>
18834
18835 * keymap.c (describe_vector): Handle default value of a char table.
18836
18837 * fontset.c (fontset_face): Handle fallback fonts correctly.
18838 (Ffontset_info): Return infomation about fallback fonts.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 * fontset.c (FONTSET_DEFAULT): New macro.
18843 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18844 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18845 the case that it is nil.
18846 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18847 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18848
18849 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18850 subset or superset.
18851
188522008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * emacs.c (main): Call init_charset after syms_of_XXX.
18855
18856 * charset.c (Vcharset_map_directory): Delete.
18857 (Vcharset_map_path): New variable.
18858 (load_charset_map_from_file): Use Vcharset_map_path instead.
18859 (init_charset): Initialize Vcharset_map_path.
18860 (syms_of_charset): Delete declaration of "charset-map-directory",
18861 add declaration of "charset-map-path".
18862
188632008-02-01 Kenichi Handa <handa@m17n.org>
18864
18865 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18866 ASCII only string.
18867
18868 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18869
18870 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18871 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18872
188732008-02-01 Kenichi Handa <handa@m17n.org>
18874
18875 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18876
18877 * coding.c (QCmnemonic, QCdefalut_char)
18878 (QCdecode_translation_table, QCencode_translation_table)
18879 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18880 (get_translation_table): Return a list of translation tables if
18881 necessary.
18882 (decode_coding): Call get_translation_table with ENCODEP 0.
18883 (char_encodable_p): If translation_table is non-nil, always call
18884 translate_char.
18885 (Fdefine_coding_system_internal): Accept list of translation
18886 tables as :encode-translation-table and :decode-translation-table.
18887 (Fcoding_system_put): New function.
18888 (syms_of_coding): Declare new symbols. Defsubr
18889 Scoding_system_put.
18890 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18891 typically JISX0212.
18892
18893 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18894 when the charset is superset type.
18895
18896 * character.c (translate_char): Accept list of translation tables.
18897
188982008-02-01 Kenichi Handa <handa@m17n.org>
18899
18900 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18901 (CODING_ATTR_TRANS_TBL): New macro.
18902
18903 * coding.c (get_translation_table): New function.
18904 (translate_chars): Fix the bug of skipping annotation data.
18905 (decode_coding, encode_coding): Utilize get_translation_table.
18906 (char_encodable_p, Funencodable_char_position): Translate char if
18907 necessary.
18908 (Ffind_coding_systems_region_internal)
18909 (Fcheck_coding_systems_region): Setup translation table for encode
18910 in a coding system attribute vector in advance.
18911 (Fdefine_coding_system_internal): Allow a symbol as translation
18912 table. For shift-jis type coding system, allow 4th charset.
18913
189142008-02-01 Kenichi Handa <handa@m17n.org>
18915
18916 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18917
18918 * xdisp.c (get_next_display_element): Pass -1 as POS to
18919 FACE_FOR_CHAR if displaying a C-string.
18920
189212008-02-01 Kenichi Handa <handa@m17n.org>
18922
18923 * composite.c (get_composition_id): Handle xoff and yoff in a
18924 composition rule.
18925
18926 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18927 (struct composition): New member lbearing and rbearing.
18928
18929 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18930 (x_get_glyph_overhangs): Handle a composition glyph.
18931 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18932
18933 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18934 composition glyph.
18935
189362008-02-01 Kenichi Handa <handa@m17n.org>
18937
18938 * print.c: Include charset.h.
18939 (Vprint_charset_text_property): New variable.
18940 (Qdefault): Extern it.
18941 (PRINT_STRING_NON_CHARSET_FOUND)
18942 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18943 (print_check_string_result): New variable.
18944 (print_check_string_charset_prop): New function.
18945 (print_prune_charset_plist): New variable.
18946 (print_prune_string_charset): New function.
18947 (print_object): Call print_prune_string_charset if
18948 Vprint_charset_text_property is not t.
18949 (print_interval): Print nothing if interval->plist is nil.
18950 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18951 variable. Init and staticpro print_prune_charset_plist.
18952
189532008-02-01 Kenichi Handa <handa@m17n.org>
18954
18955 * fontset.c (new_fontset_from_font_name): Use the specified font
18956 for all characters in the new fontset.
18957
18958 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18959 OBJECT args.
18960
18961 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18962 OBJECT args for composition too.
18963
18964 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18965 OBJECT args.
18966
189672008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18970
18971 * fontset.c (reorder_font_vector): Adjust for the change of
18972 FONT_DEF format.
18973 (fontset_face): New arg id. Change caller.
18974 (face_for_char): New args pos and object.
18975 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18976 (fs_query_fontset): Check NAME by Fassoc too.
18977 (Fset_fontset_font): Allow non-XLFD font name.
18978 (Ffontset_info): Adjust for the change of FONT_DEF format.
18979
18980 * fontset.h (face_for_char): Adjust prototype.
18981
18982 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18983 (append_space, extend_face_to_end_of_line)
18984 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18985 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18986
18987 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18988 POS and OBJECT args.
18989
18990 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18991 POS and OBJECT args.
18992
189932008-02-01 Jason Rumney <jasonr@gnu.org>
18994
18995 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18996 of GlobalAlloc'ed memory.
18997
189982008-02-01 Kenichi Handa <handa@m17n.org>
18999
19000 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19001
19002 * charset.h (charset_table_used): Delete extern.
19003
19004 * charset.c (charset_table_used): Make it static.
19005 (map_charset_chars): Fix args to c_function with.
19006
19007 * chartab.c (map_sub_char_table_for_charset): Fix args to
19008 c_function with.
19009
19010 * coding.h (enum coding_result_code): Delete
19011 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19012
19013 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19014 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19015 (Vlast_code_conversion_error): New variables.
19016 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19017 (ONE_MORE_BYTE): Record error if any instead of signaling an
19018 error. If non-ASCII multibyte char is found, return the negative
19019 value of the code. All callers changed to check it.
19020 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19021 (record_conversion_result): New function. Change all codes setting
19022 coding->result to call this function.
19023 (detect_coding_utf_8, decode_coding_utf_8)
19024 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19025 Don't use the local variable incomplete.
19026 (emacs_mule_char): Change the second arg to `const'.
19027 (decode_coding): Fix of flushing out unprocessed data.
19028 (make_conversion_work_buffer): Fix making of a work buffer.
19029 (decode_coding_object): Return coding->dst_object.
19030
19031 * fontset.c (set_fontset_font): Fix args.
19032
19033 * lisp.h (CHARACTERBITS): Define as 22.
19034
19035 * process.c (send_process): Be sure to set coding->src_multibyte.
19036
19037 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19038
190392008-02-01 Kenichi Handa <handa@m17n.org>
19040
19041 * xdisp.c (handle_auto_composed_prop): Give limit to
19042 Fnext_single_char_property_change.
19043
190442008-02-01 Kenichi Handa <handa@m17n.org>
19045
19046 * composite.c (syms_of_composite): Don't make the composition hash
19047 table weak.
19048
19049 * fontset.c (Fset_fontset_font): Fix docstring.
19050
19051 * lisp.h (detect_coding_system): Adjust prototype.
19052
19053 * fileio.c (kill_workbuf_unwind): Delete this function.
19054 (Finsert_file_contents): Adjust the call of detect_coding_system.
19055 Get conversion_buffer by code_conversion_save. Use the macro
19056 CODING_MAY_REQUIRE_DECODING. After decoding, update
19057 coding_system.
19058
19059 * coding.h (make_conversion_work_buffer): Delete extern.
19060 (code_conversion_save): Extern it.
19061
19062 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19063 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19064 (decode_coding_utf_8): Don't do eol converion.
19065 (detect_coding_utf_16): Check coding->src_chars, not
19066 coding->src_bytes. Add heuristics for those that have no signature.
19067 (decode_coding_emacs_mule, decode_coding_iso_2022)
19068 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19069 Don't do eol converion.
19070 (adjust_coding_eol_type): Return a new coding system.
19071 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19072 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19073 each change.
19074 (decode_coding): Pay attention to undo_list. Do eol conversion for
19075 all types of coding-systems (if necessary).
19076 (Vcode_conversion_work_buf_list): Delete it.
19077 (Vcode_conversion_reused_workbuf): Rename from
19078 Vcode_conversion_reused_work_buf.
19079 (Vcode_conversion_workbuf_name): New variable.
19080 (reused_workbuf_in_use): New variable.
19081 (make_conversion_work_buffer): Delete the arg DEPTH.
19082 (code_conversion_restore): Change argument to cons.
19083 (code_conversion_save): Delete the argument BUFFER. Change callers.
19084 (detect_coding_system): New argument src_chars. Change callers.
19085 Fix for utf-16 detection.
19086 (init_coding_once): Don't use ISO_carriage_return.
19087 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19088 reused_workbuf_in_use.
19089
190902008-02-01 Kenichi Handa <handa@m17n.org>
19091
19092 * keymap.c (store_in_keymap): Pay attention to the case that idx
19093 is a cons specifying a character range.
19094
190952008-02-01 Kenichi Handa <handa@m17n.org>
19096
19097 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19098 HANDLED_RECOMPUTE_PROPS.
19099
19100 * coding.c (Fdefine_coding_system_internal): Fix checking of
19101 ascii compatibility.
19102
191032008-02-01 Kenichi Handa <handa@m17n.org>
19104
19105 * charset.c (find_charsets_in_text): Delete unused locale variable.
19106 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19107
19108 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19109 Resync charset_list to Vemacs_mule_charset_list.
19110
19111 * keymap.c (store_in_keymap): Pay attention to the case that idx
19112 is a cons specifying a character range.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * composite.c (update_compositions): Bind inhibit-read-only, etc
19117 to t before calling remove-list-of-text-properties.
19118
19119 * print.c (print_object): Always print ASCII chars as is.
19120
191212008-02-01 Kenichi Handa <handa@m17n.org>
19122
19123 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19124
19125 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19126 is a char table.
19127
191282008-02-01 Kenichi Handa <handa@m17n.org>
19129
19130 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19131
191322008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * xfaces.c (set_lface_from_font_name): Fix for the case that
19135 FONTNAME is not fontset name.
19136
191372008-02-01 Kenichi Handa <handa@m17n.org>
19138
19139 * fns.c (base64_encode_1): Fix previous change.
19140
191412008-02-01 Kenichi Handa <handa@m17n.org>
19142
19143 * fontset.c (set_fontset_font): New function.
19144 (Fset_fontset_font): If a font is specified for a charset, use
19145 map_charset_chars to store the font spec in a fontset.
19146
191472008-02-01 Kenichi Handa <handa@m17n.org>
19148
19149 * fontset.c (fontset_face): Create a fallback fontset on demand.
19150 (make_fontset): Don't create a fallback fontset here.
19151 (free_face_fontset): Free a fallback fontset (if any) too.
19152 (n_auto_fontsets): Delete this variable.
19153 (auto_fontset_alist): New variable.
19154 (new_fontset_from_font_name): Check auto_fontset_alist.
19155 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19156 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19157 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19158 Defsubr Sfontset_list_all.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19163
191642008-02-01 Kenichi Handa <handa@m17n.org>
19165
19166 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 * editfns.c (Fgoto_char): Fix docstring.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * insdel.c (insert_from_gap): Adjust intervals correctly.
19175
191762008-02-01 Jason Rumney <jasonr@gnu.org>
19177
19178 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19179 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19180 (w32_initialize): Try to load it.
19181 (x_get_font_repertory): Use it if available.
19182 (w32_encode_char): Add shortcut for unicode output.
19183
19184 * w32fns.c (w32_load_system_font): Default charset to -1.
19185 (x_to_w32_charset): Match all fonts for unicode.
19186 (w32_to_x_charset): New parameter matching. Don't return partial
19187 or wildcard charsets.
19188 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19189 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19190 (w32_to_x_font): Match charset to real charset.
19191 (enum_font_cb2): Always list unicode versions.
19192
19193 * makefile.w32-in (temacs): Increase EMHEAP.
19194
191952008-02-01 Jason Rumney <jasonr@gnu.org>
19196
19197 * w32term.c (w32_encode_char): New charset parameter.
19198 font_info.encoding becomes encoding_type.
19199 (x_get_font_repertory): New function. Warning: stub only!
19200 (x_new_font): Return quickly if font already set.
19201 (x_new_fontset): fontsetname parameter is Lisp_Object.
19202 Use new fs_query_fontset. Try new_fontset_from_font_name.
19203 Use fontset_name for return value.
19204
19205 * w32term.h: Declare x_get_font_repertory.
19206
19207 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19208 place of find_charset_in_text. Use encode_coding_object in place
19209 of encode_coding.
19210 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19211 decode_coding.
19212
19213 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19214 of x_new_fontset.
19215 (w32_load_system_font): Initialize charset as unicode.
19216 font_info.encoding becomes encoding_type.
19217 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19218 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19219 (syms_of_w32fns): Set get_font_repertory_func.
19220
19221 * w32console.c: Include character.h. Use terminal_encode_buffer
19222 from term.c.
19223 (write_glyphs): Use new version of encode_terminal_code. Use
19224 encode_coding_object in place of encode_coding.
19225
19226 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19227 encoding becomes encoding_type.
19228
19229 * term.c (terminal_encode_buffer): Make externally visible.
19230
19231 * makefile.w32-in: Add character.h dependancies.
19232 (character.o, chartab.o): New targets.
19233
192342008-02-01 Kenichi Handa <handa@m17n.org>
19235
19236 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19237 CODING_ID_EOL_TYPE.
19238
192392008-02-01 Andreas Schwab <schwab@suse.de>
19240
19241 * coding.c (produce_chars): Revert last change.
19242
192432008-02-01 Kenichi Handa <handa@m17n.org>
19244
19245 * charset.h (charset_unicode): Extern it.
19246
19247 * charset.c (string_xstring_p): Check by (C >= 0x100).
19248 (find_charsets_in_text): Change format of the arc CHARSETS. New
19249 arg MULTIBYTE.
19250 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19251 change of find_charsets_in_text.
19252 (Fsplit_char): Fix doc. Never return unknown.
19253
19254 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19255
19256 * coding.c (Fdefine_coding_system_alias): Update
19257 Vcoding_system_list.
19258
19259 * fontset.c (load_font_get_repertory): Pay attention to the case
19260 that ENCODING of a font is specified by a char-table.
19261
19262 * xterm.c (x_get_font_repertory): Handle the case that the
19263 encoding of font is other than Unicode.
19264
192652008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19268 if a character is encodable by the terminal coding system. If
19269 not, produces proper number of `?'s. Update
19270 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19271 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19276 variables.
19277 (encode_terminal_code): Change argument. Encode multiple
19278 characters at once. Store the result of encoding in
19279 terminal_encode_buffer.
19280 (write_glyphs, insert_glyphs): Adjust for the change of
19281 encode_terminal_code.
19282 (term_init): Initialize terminal_encode_buffer and
19283 terminal_encode_buf_size.
19284
19285 * coding.c (consume_chars): If coding->src_object is nil, don't
19286 check annotation.
19287
192882008-02-01 Kenichi Handa <handa@m17n.org>
19289
19290 * character.c (char_string): Use ASCII_CHAR_P instead of
19291 SINGLE_BYTE_CHAR_P.
19292
192932008-02-01 Kenichi Handa <handa@m17n.org>
19294
19295 * xdisp.c (handle_auto_composed_prop): Check if the last
19296 characters of auto-composed region is newly composed with the
19297 following characters.
19298 (handle_composition_prop): Fix checking of point being inside
19299 composition.
19300
193012008-02-01 Kenichi Handa <handa@m17n.org>
19302
19303 * fns.c (concat): Don't change multibyteness of the result by
19304 concatenating an 8-bit character.
19305
19306 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19307 multibyteness of the result when newelt is an 8-bit character.
19308
193092008-02-01 Dave Love <fx@gnu.org>
19310
19311 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19312 EMACS_INT.
19313
19314 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19315
19316 * xfaces.c (face_numeric_value): Declare dim size_t.
19317 (Finternal_lisp_face_equal_p): Remove unused f.
19318
19319 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19320 (MATRIX_ROW): Remove unused vars.
19321 (draw_glyphs, x_insert_glyphs, fast_find_position)
19322 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19323 byte/char counts.
19324
19325 * regex.c (regex_compile): Remove unused var.
19326
19327 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19328
19329 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19330 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19331
19332 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19333
19334 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19335
19336 * fileio.c (Fwrite_region): Remove unused var.
19337
19338 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19339 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19340
19341 * composite.c (Fremove_list_of_text_properties): Declare.
19342
19343 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19344 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19345 (coding_inherit_eol_type): Remove unused attrs.
19346 (detect_coding): Cast arg of detect_eol.
19347
19348 * charset.c (syms_of_charset): Remove unused var p.
19349 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19350 byte/char counts.
19351
19352 * casetab.c (set_case_table): Remove unused var.
19353
19354 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19355 unused vars.
19356
193572008-02-01 Dave Love <fx@gnu.org>
19358
19359 * xterm.c (x_bitmap_mask): Declare.
19360
193612008-02-01 Dave Love <fx@gnu.org>
19362
19363 * xterm.c (x_term_init): Fix type error.
19364
19365 * lisp.h: Add Funibyte_char_to_multibyte.
19366
19367 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19368 (Fset_coding_system_priority): Doc fix.
19369
19370 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19371
19372 * indent.c (check_composition): Make start and end EMACS_INT.
19373
19374 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19375
19376 * xdisp.c (handle_composition_prop, check_point_in_composition):
19377 Make buffer positions EMACS_INT.
19378
19379 * composite.c (find_composition, run_composition_function)
19380 (update_compositions, Ffind_composition_internal): Make buffer
19381 positions EMACS_INT.
19382
19383 * composite.h (find_composition, update_compositions): Make
19384 position args EMACS_INT.
19385
19386 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19387
19388 * intervals.c (get_property_and_range):
19389 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19390
19391 * unexalpha.c: Don't include varargs.h.
19392
193932008-02-01 Dave Love <fx@gnu.org>
19394
19395 * coding.h (ENCODE_UTF_8): New.
19396
19397 * Makefile.in (gtkutil.o): Depend on coding.h.
19398
19399 * coding.c (Fset_coding_system_priority): Doc fix.
19400
194012008-02-01 Kenichi Handa <handa@m17n.org>
19402
19403 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19404 the case of auto saving.
19405
194062008-02-01 Andreas Schwab <schwab@suse.de>
19407
19408 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19409 `range' from GC.
19410
194112008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19414
194152008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * fileio.c (choose_write_coding_system): Return a decided coding system.
19418 (Fwrite_region): Set Vlast_coding_system_used to the return value
19419 of choose_write_coding_system.
19420
194212008-02-01 Kenichi Handa <handa@m17n.org>
19422
19423 * charset.c (Fset_charset_priority): Pay attention to duplicated
19424 arguments.
19425
19426 * coding.c (QCcategory): New variable.
19427 (syms_of_coding): Defsym it. Set all elements of
19428 Vcoding_category_table and their symbol values.
19429 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19430 coding-category-XXX, and coding-category-list.
19431 (Fdefine_coding_system_internal): Add category in the plist.
19432
194332008-02-01 Kenichi Handa <handa@m17n.org>
19434
19435 * callproc.c (Fcall_process): Handle carryover correctly.
19436
19437 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19438 (raw_text_coding_system): Check NILP (coding_system).
19439 (coding_inherit_eol_type): Check NILP (coding_system) and
19440 NILP (parent).
19441 (consume_chars): Fix for the case of raw-text.
19442
19443 * process.c (read_process_output): Handle carryover correctly.
19444
194452008-02-01 Dave Love <fx@gnu.org>
19446
19447 * regex.c (re_search_2): Fix last change.
19448
194492008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19452 target_multibyte. Even in a unibyte case, return a converted
19453 multibyte char.
19454 (GET_CHAR_AFTER): New macro.
19455 (PATFETCH): Translate via multibyte char.
19456 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19457 (SETUP_MULTIBYTE_RANGE): New macro.
19458 (regex_compile): Setup compiled code so that its multibyteness
19459 matches that of a target. Fix the handling of "[X-YZ]" using
19460 SETUP_MULTIBYTE_RANGE.
19461 (analyse_first) <charset>: For filling fastmap for all multibyte
19462 characters, don't check by BASE_LEADING_CODE_P.
19463 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19464 the same as RE_MULTIBYTE_P (bufp) now.
19465 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19466 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19467 (TRANSLATE_VIA_MULTIBYTE): New macro.
19468 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19469 It is the same as RE_MULTIBYTE_P (bufp) now.
19470 <exactn>: Translate via multibyte.
19471 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19472 translate it.
19473 <charset, charset_not>: Fetch a character by
19474 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19475 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19476 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19477 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19478 by GET_CHAR_AFTER.
19479 (bcmp_translate): Likewise.
19480
19481 * search.c (compile_pattern): Check the member target_multibyte,
19482 not the member multibyte of buf.
19483
19484 * lread.c (read1): While reading a string, set force_singlebyte
19485 and force_multibyte correctly.
19486
19487 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19488 up of unibyte_to_multibyte_table.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * coding.c (setup_coding_system): If coding has
19493 post-read-conversion or pre-write-conversion, set
19494 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19495 respectively.
19496 (decode_coding_gap): Run post-read-conversion if any.
19497
19498 * fileio.c (Finsert_file_contents): Even if we read into a
19499 unibyte buffer, check if we must decode the result or not.
19500
195012008-02-01 Kenichi Handa <handa@m17n.org>
19502
19503 * coding.c (make_conversion_work_buffer): Change the work buffer
19504 name to the same one as that of Emacs 21.
19505
195062008-02-01 Kenichi Handa <handa@m17n.org>
19507
19508 * coding.h (make_conversion_work_buffer): Adjust prototype.
19509 (code_conversion_restore): Don't extern it.
19510
19511 * coding.c (detected_mask): Delete unused variable.
19512 (decode_coding_iso_2022): Pay attention to the byte sequence of
19513 CTEXT extended segment, and retain those bytes as is.
19514 (decode_coding_ccl): Delete unused variable `valids'.
19515 (setup_coding_system): Delete unused variable `category'.
19516 (consume_chars): Delete unused variable `category'. Make it work
19517 for non-multibyte case.
19518 (make_conversion_work_buffer): Change argument.
19519 (saved_coding): Delete unused variable.
19520 (code_conversion_restore): Don't check saved_coding->destination.
19521 (code_conversion_save): New function.
19522 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19523 instead of record_unwind_protect.
19524 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19525 (detect_coding_system): Delete unused variable `mask'.
19526 (Fdefine_coding_system_internal): Delete unused variable id.
19527
19528 * fileio.c (kill_workbuf_unwind): New function.
19529 (Finsert_file_contents): On replacing, call
19530 make_conversion_work_buffer with correct args, and call
19531 record_unwind_protect with the first arg kill_workbuf_unwind.
19532
19533 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19534
195352008-02-01 Kenichi Handa <handa@m17n.org>
19536
19537 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19538 (fontset_add): Fix for the case that TO is less than TO1.
19539 (Ffontset_info): Don't use fallback fontset on checking the
19540 default fontset.
19541 (dump_fontset): New function for debugging.
19542
19543 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19544 coding_type is Qcharset.
19545
195462008-02-01 Kenichi Handa <handa@m17n.org>
19547
19548 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19549 (map_char_table): Don't inherit the value from the parent on
19550 initializing VAL. Adjust for the above change.
19551
195522008-02-01 Kenichi Handa <handa@m17n.org>
19553
19554 * coding.c (Qsignature, Qendian): Delete these variables.
19555 (syms_of_coding): Don't initialize them.
19556 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19557 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19558 detect_info->found.
19559 (decode_coding_utf_16): Don't detect BOM here.
19560 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19561 is NOT utf_16_without_bom.
19562 (setup_coding_system): For a coding system of type utf-16, check
19563 if the attribute :endian is Qbig or not (not nil or not), and set
19564 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19565 (detect_coding): If coding type is utf-16 and BOM detection is
19566 required, detect it.
19567 (Fdefine_coding_system_internal): For a coding system of type
19568 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19569
195702008-02-01 Kenichi Handa <handa@m17n.org>
19571
19572 * coding.c (coding_set_source): Fix for the case that the current
19573 buffer is different from coding->src_object.
19574 (decode_coding_object): Don't use the conversion work buffer if
19575 DST_OBJECT is a buffer.
19576
195772008-02-01 Dave Love <fx@gnu.org>
19578
19579 * lread.c (read_emacs_mule_char) [len==2]: Index
19580 emacs_mule_charset correctly.
19581
195822008-02-01 Dave Love <fx@gnu.org>
19583
19584 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19585 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19586 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19587 treated specially.)
19588 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19589 (detected_mask): Remove Big5 bits.
19590
195912008-02-01 Kenichi Handa <handa@m17n.org>
19592
19593 The following changes are to make the font rescaling facility
19594 compatible with Emacs 21.
19595
19596 * xfaces.c (Vface_font_rescale_alist): Rename from
19597 Vface_resizing_fonts.
19598 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19599 (font_rescale_ratio): Rename from font_resizing_ratio.
19600 (split_font_name): Set font->rescale_ratio.
19601 (better_font_p): Pay attention to font->rescale_ratio.
19602 (build_scalable_font_name): Likewise. Change RESX, and RESY
19603 fields.
19604 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19605
196062008-02-01 Kenichi Handa <handa@m17n.org>
19607
19608 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19609 (Qutf_16_le): Remove these variables.
19610 (syms_of_coding): Don't DEFSYM them.
19611 (decode_coding_utf_16): Fix handling of BOM.
19612 (encode_coding_utf_16): Fix handling of BOM.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * fileio.c (Finsert_file_contents): On replacing, before decoding
19617 the file into the work buffer, set point of the work buffer to the end.
19618
196192008-02-01 Dave Love <fx@gnu.org>
19620
19621 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19622
196232008-02-01 Dave Love <fx@gnu.org>
19624
19625 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19626 and fix C types.
19627
196282008-02-01 Kenichi Handa <handa@m17n.org>
19629
19630 * xdisp.c (SKIP_GLYPHS): New macro.
19631 (set_cursor_from_row): Pay attention to string display properties.
19632
19633 * category.c (copy_category_entry): Fix for the case that RANGE
19634 is an integer.
19635
19636 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19637
19638 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19639
196402008-02-01 Kenichi Handa <handa@m17n.org>
19641
19642 * charset.c (Fcharset_id_internal): New function.
19643 (syms_of_charset): Defsubr it.
19644
19645 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19646 with the last arg charset_list acquired from coding.
19647 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19648 the attribute coding_attr_ccl_valids.
19649
19650 * coding.h (enum define_coding_ccl_arg_index): Set the first
19651 member coding_arg_ccl_decoder to coding_arg_max.
19652
19653 * ccl.h (ccl_driver): Adjust prototype.
19654
19655 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19656 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19657 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19658 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19659 last arg Qnil.
19660
196612008-02-01 Kenichi Handa <handa@m17n.org>
19662
19663 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19664 call encode_char.
19665
19666 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19667
196682008-02-01 Dave Love <fx@gnu.org>
19669
19670 * composite.c (syms_of_composite): Make composition_hash_table weak.
19671
196722008-02-01 Kenichi Handa <handa@m17n.org>
19673
19674 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19675 (font_name_registry): Don't extern them.
19676 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19677
19678 * fontset.h (Qfontset): Don't extern it.
19679 (new_fontset_from_font_name): Extern it.
19680
19681 * fontset.c: Give 8 extra slots to fontset objects.
19682 (Qfontset_info): New variable.
19683 (syms_of_fontset): Defsym it.
19684 (FONTSET_FALLBACK): New macro.
19685 (fontset_face): Try also the default fontset.
19686 (make_fontset): Realize a fallback fontset from the default fontset.
19687 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19688 using split_font_name_into_vector and build_font_name_from_vector.
19689 (Fset_fontset_font): Access the elements of font_spec by enum
19690 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19691 name by using split_font_name_into_vector.
19692 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19693 generate a proper font name from the fontset name. Update
19694 Vfontset_alias_alist.
19695 (n_auto_fontsets): New variable.
19696 (new_fontset_from_font_name): New function.
19697 (Ffont_info): Store the information about fonts generated from the
19698 default fontset in the first extra slot of the returned char-table.
19699
19700 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19701 (font_name_registry): Delete function.
19702 (split_font_name_into_vector): New function.
19703 (build_font_name_from_vector): New function.
19704 (font_list): The argument REGISTRY is now a list of registry names.
19705 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19706 specifies an explicit font name, return the name as is. Make a
19707 list of registy names.
19708
19709 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19710 of x_new_fontset.
19711 (Fx_create_frame): Don't call x_new_fontset here. Just use
19712 x_list_fonts to check the existence of fonts.
19713
19714 * xterm.h (x_new_fontset): Adjust prototype.
19715
19716 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19717 string. Use new_fontset_from_font_name to create a fontset from a
19718 font name.
19719
197202008-02-01 Kenichi Handa <handa@m17n.org>
19721
19722 * syntax.c (Vfind_word_boundary_function_table): New name for
19723 Vnext_word_boundary_function_table.
19724 (find-word-boundary-function-table): New name for
19725 next-word-boundary-function-table.
19726
197272008-02-01 Dave Love <fx@gnu.org>
19728
19729 * Makefile.in: Fix some dependencies.
19730
19731 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19732 set it to nil before returning.
19733
19734 * composite.c (update_compositions): Fix type error.
19735
19736 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19737
197382008-02-01 Kenichi Handa <handa@m17n.org>
19739
19740 * xterm.c (x_new_font): Optimize for the case that the font is
19741 already set for the frame.
19742
197432008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * chartab.c (char_table_ascii): Check if the char table contents
19746 is sub-char-table or not.
19747 (char_table_set, char_table_set_range): Fix argument to
19748 char_table_ascii.
19749
19750 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19751 (detect_coding_utf_8, detect_coding_utf_16)
19752 (detect_coding_emacs_mule, detect_coding_iso_2022)
19753 (detect_coding_sjis, detect_coding_big5)
19754 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19755 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19756 sequence is valid in this coding system. Change callers.
19757 (MAX_ANNOTATION_LENGTH): New macro.
19758 (ADD_ANNOTATION_DATA): New macro.
19759 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19760 ADD_ANNOTATION_DATA. Change the format of annotation data.
19761 (ADD_CHARSET_DATA): New macro.
19762 (emacs_mule_char): New argument ID. Change callers.
19763 (decode_coding_emacs_mule, decode_coding_iso_2022)
19764 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19765 Produce charset annotation data in coding->charbuf.
19766 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19767 to charset annotation data in coding->charbuf.
19768 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19769 coding->common_flags if the coding system is iso-2022 based and
19770 uses designation.
19771 (produce_composition): Adjust for the new annotation data format.
19772 (produce_charset): New function.
19773 (produce_annotation): Handle charset annotation.
19774 (handle_composition_annotation, handle_charset_annotation): New
19775 functions.
19776 (consume_chars): Handle charset annotation. Utilize the above two
19777 functions.
19778 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19779 buffer, get the deleted text as a string and set
19780 coding->src_object to that string.
19781 (detect_coding, detect_coding_system): Use the new struct
19782 coding_detection_info.
19783
19784 * coding.h (struct coding_detection_info): New structure.
19785 (struct coding_system): Adjust prototype of the member `detector'.
19786 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19787
197882008-02-01 Kenichi Handa <handa@m17n.org>
19789
19790 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19791
197922008-02-01 Dave Love <fx@gnu.org>
19793
19794 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19795 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19796 to new local and nullify apropos_accumulate before returning.
19797 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19798
197992008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19802 correctly.
e3eea1fc 19803
aac0c6e3
MR
198042008-02-01 Dave Love <fx@gnu.org>
19805
19806 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19807
198082008-02-01 Kenichi Handa <handa@m17n.org>
19809
19810 The following changes are to make character composition happen
19811 automatically on displaying.
19812
19813 * Makefile.in (lisp, shortlisp): Add composite.elc.
19814
19815 * composite.h (Qauto_composed, Vauto_composition_function)
19816 (Qauto_composition_function): Extern them.
19817
19818 * composite.c (Vcomposition_function_table)
19819 (Qcomposition_function_table): Delete variables.
19820 (Qauto_composed, Vauto_composition_function)
19821 (Qauto_composition_function): New variables.
19822 (run_composition_function): Don't call
19823 compose-chars-after-function.
19824 (update_compositions): Clear `auto-composed' text property.
19825 (compose_chars_in_text): Delete this function.
19826 (syms_of_composite): Staticpro Qauto_composed and
19827 Qauto_composition_function. Declare Vauto_composition_function as
19828 a Lisp variable.
19829
19830 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19831
19832 * xdisp.c (it_props): Add an entry for Qauto_composed.
19833 (handle_auto_composed_prop): New function.
19834
19835 * xselect.c (selection_data_to_lisp_data): Don't call
19836 compose_chars_in_text.
19837
198382008-02-01 Dave Love <fx@gnu.org>
19839
19840 * keyboard.c (read_char): Modify checking around use of
19841 Vkeyboard_translate_table.
19842
19843 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19844 and fix C types.
19845
198462008-02-01 Kenichi Handa <handa@m17n.org>
19847
19848 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19849 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19850 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19851 the case that the last byte is '\r' correctly.
19852 (decode_coding): Flush out the unprocessed data correctly.
19853 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19854
198552008-02-01 Dave Love <fx@gnu.org>
19856
19857 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19858 Add XK_ISO... case.
19859 (xaw_scroll_callback): Revert last change.
19860
198612008-02-01 Kenichi Handa <handa@m17n.org>
19862
19863 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * xfaces.c (Vface_resizing_fonts): New variable.
19868 (struct font_name): New member `resizing_ratio'.
19869 (font_resizing_ratio): New function.
19870 (split_font_name): Set font->resizing_ratio.
19871 (better_font_p): Pay attention to font->resizing_ratio.
19872 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19873 RESX, and RESY fields.
19874 (try_alternative_families): Try scalable fonts if
19875 Vscalable_fonts_allowed is not Qt.
19876 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19877
198782008-02-01 Dave Love <fx@gnu.org>
19879
19880 * xterm.c (xaw_scroll_callback): Cast correctly.
19881
198822008-02-01 Dave Love <fx@gnu.org>
19883
19884 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19885 (lispy_kana_keys): Comment out.
19886 (make_lispy_event) [XK_kana_A]: Comment out.
19887
19888 * xterm.c (xaw_scroll_callback): Cast call_data.
19889 (XTread_socket): Deal with ASCII keysyms.
19890 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19891
198922008-02-01 Dave Love <fx@gnu.org>
19893
19894 * xterm.c (Vx_keysym_table): New.
19895 (syms_of_xterm): Initialize it.
19896 (XTread_socket): Use it.
19897 From head: Eliminate incorrect optimization that tried to avoid
19898 decoding the output of X*LookupString.
19899 (x_get_font_repertory): Delete charset declaration.
19900
199012008-02-01 Kenichi Handa <handa@m17n.org>
19902
19903 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19904 return 0.
19905 (Fdefine_coding_system_internal): Setup
19906 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19907
199082008-02-01 Dave Love <fx@gnu.org>
19909
19910 * coding.c (Fcheck_coding_system): Doc fix.
19911
19912 * editfns.c (Finsert_byte): Return a proper value.
19913
199142008-02-01 Kenichi Handa <handa@m17n.org>
19915
19916 * coding.c (decode_coding): Fix args to translate_chars. Pay
19917 attention to Vstandard_translation_table_for_decode.
19918 (encode_coding): Fix args to translate_chars. Pay attention to
19919 Vstandard_translation_table_for_encode.
19920
19921 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19922 SINGLE_BYTE_CHAR_P.
19923
19924 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19925 not by SINGLE_BYTE_CHAR_P.
19926
19927 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19928 SINGLE_BYTE_CHAR_P.
19929
19930 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19931 SINGLE_BYTE_CHAR_P.
19932
19933 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19934 by SINGLE_BYTE_CHAR_P.
19935
19936 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19937 SINGLE_BYTE_CHAR_P.
19938
199392008-02-01 Dave Love <fx@gnu.org>
19940
19941 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19942
199432008-02-01 Dave Love <fx@gnu.org>
19944
19945 * fns.c (Flanginfo): Fix typo.
19946
19947 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19948
199492008-02-01 Kenichi Handa <handa@m17n.org>
19950
19951 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19952 (detect_coding_emacs_mule, detect_coding_iso_2022)
19953 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19954 incomplete byte sequence. Don't update *mask when correctly detected.
19955 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19956 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19957 (detect_coding, detect_coding_system): Adjust for the changes above.
19958
199592008-02-01 Kenichi Handa <handa@m17n.org>
19960
19961 * character.c (char_string): Rename from
19962 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19963 (string_char): Rename from string_char.
19964
19965 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19966 if C is greater than MAX_3_BYTE_CHAR.
19967 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19968 string_char instead of string_char_with_unification.
19969
199702008-02-01 Dave Love <fx@gnu.org>
19971
19972 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19973
199742008-02-01 Kenichi Handa <handa@m17n.org>
19975
19976 * keymap.c (push_key_description): Pay attention to force_multibyte.
19977
19978 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19979
199802008-02-01 Dave Love <fx@gnu.org>
19981
19982 * charset.c (define_charset_internal): Rename `supprementary'.
19983
19984 * Makefile.in (lisp, shortlisp): Remove latin-N.
19985
199862008-02-01 Dave Love <fx@gnu.org>
19987
19988 * xfns.c (x_window, x_window): Use use_xim.
19989
19990 * xterm.c (use_xim): Initialize.
19991 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19992 (x_term_init): Maybe set use_xim.
19993
19994 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19995
199962008-02-01 Kenichi Handa <handa@m17n.org>
19997
19998 * search.c (search_buffer): Fix case-fold-search of multibyte
19999 characters.
20000 (boyer_moore): Rename the last argument to char_high_bits.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * xdisp.c (display_string): Fix for the case of zero width glyph.
20005
20006 * xfns.c (x_set_font): Change the error message of the case that
20007 x_new_fontset returns Qt.
20008
20009 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20010 (Finternal_set_lisp_face_attribute): Use signal_error for the
20011 error of invalid fontset.
20012
20013 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20014 fontset, return Qt.
20015
200162008-02-01 Dave Love <fx@gnu.org>
20017
20018 * unexelf.c (unexec): Make .got handling not SGI-specific.
20019
20020 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20021
20022 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20023
20024 * keyboard.c (read_key_sequence): Fix type error.
20025
20026 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20027 type error.
20028
20029 * fontset.c (fontset_add): Return Lisp_Object.
20030
200312008-02-01 Dave Love <fx@gnu.org>
20032
20033 * charset.h (charset_ordered_list_tick): Declare extern.
20034
200352008-02-01 Kenichi Handa <handa@m17n.org>
20036
20037 The following changes (and some of 2008-02-01 changes of mine) are
20038 for handling syntax, category, and case conversion for unibyte
20039 characters by converting them to multibyte on the fly. With these
20040 changes, we don't have to setup syntax and case tables for unibyte
20041 characters in each language environment.
20042
20043 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20044 multibyte if necessary.
20045
20046 * bytecode.c (Fbyte_code): Likewise.
20047
20048 * character.h (LEADING_CODE_LATIN_1_MIN)
20049 (LEADING_CODE_LATIN_1_MAX): New macros.
20050 (unibyte_to_multibyte_table): Extern it.
20051 (unibyte_char_to_multibyte): New macro.
20052 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20053 (CHAR_LEADING_CODE): New macro.
20054 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20055
20056 * character.c (unibyte_to_multibyte_table): New variable.
20057 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20058 (multibyte_char_to_unibyte): If C is an eight-bit character,
20059 convert it to the corresponding byte value.
20060
20061 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20062 not 1, signals an error. Update the elements of
20063 unibyte_to_multibyte_table.
20064 (init_charset_once): Initialize unibyte_to_multibyte_table.
20065 (syms_of_charset): Define the charset `iso-8859-1'.
20066
20067 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20068 as is without converting it to unibyte. In a unibyte buffer,
20069 convert C to multibyte before checking the syntax.
20070
20071 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20072
20073 * minibuf.c (Fminibuffer_complete_word): Use the macro
20074 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20075
20076 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20077
20078 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20079 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20080 that is zero, convert an eight-bit char to multibyte.
20081 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20082 non-emacs case.
20083 (PATFETCH): Convert an eight-bit char to multibyte.
20084 (HANDLE_UNIBYTE_RANGE): New macro.
20085 (regex_compile): Setup the compiled pattern for multibyte chars
20086 even if the given regex string is unibyte. Use PATFETCH_RAW
20087 instead of PATFETCH in many places. To handle `charset'
20088 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20089 only for ASCII chars.
20090 (analyse_first) <exactn>: Simplify because the compiled pattern
20091 is multibyte.
20092 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20093 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20094 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20095 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20096 multibyte always 1.
20097 (re_search_2): In emacs, set the locale variable multibyte to 1,
20098 otherwise to 0. New local variable target_multibyte. Check it
20099 to decide the multibyteness of STR1 and STR2. If
20100 target_multibyte is zero, convert unibyte chars to multibyte
20101 before translating and checking fastmap.
20102 (TARGET_CHAR_AND_LENGTH): New macro.
20103 (re_match_2_internal): In emacs, set the locale variable multibyte
20104 to 1, otherwise to 0. New local variable target_multibyte. Check
20105 it to decide the multibyteness of STR1 and STR2. Use
20106 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20107 <charset, charset_not>: If multibyte is nonzero, check fastmap
20108 only for ASCII chars. Call bcmp_translate with
20109 target_multibyte, not with multibyte.
20110 <begline>: Declare the local variable C as `unsigned'.
20111 (bcmp_translate): Change the last arg name to target_multibyte.
20112
20113 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20114 the regexp pattern and the matching target. Set cp->buf.multibyte
20115 to the multibyteness of the regexp pattern. Set
20116 cp->but.target_multibyte to the multibyteness of the matching target.
20117 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20118 FETCH_STRING_CHAR_ADVANCE.
20119 (Freplace_match): Convert unibyte chars to multibyte.
20120
20121 * syntax.c (char_quoted, back_comment, scan_words)
20122 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20123 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20124 unibyte chars to multibyte.
20125 (skip_chars): Delete the arg syntaxp, and move the code for
20126 handling syntaxes to skip_syntaxes. Change callers.
20127 Fix the case that the multibyteness of STRING and the current
20128 buffer doesn't match.
20129 (skip_syntaxes): New function.
20130 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20131 SINGLE_BYTE_CHAR_P.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * xfaces.c (QCfontset): New variable.
20136 (LFACE_FONTSET): New macro.
20137 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20138 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20139 (Finternal_set_lisp_face_attribute)
20140 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20141 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20142 check also LFACE_FONTSET_INDEX.
20143 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20144 attrs[LFACE_FONT_INDEX].
20145 (syms_of_xfaces): Intern and staticpro QCfontset.
20146
20147 * dispextern.h (enum lface_attribute_index): New member
20148 LFACE_FONTSET_INDEX.
20149
20150 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * coding.c (coding_set_destination): Fix coding->destination for
20155 the case converting a region.
20156 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20157 (encode_coding_object): Fix coding->dst_pos and
20158 coding->dst_pos_byte for the case converting a region.
20159
20160 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20161
20162 * character.h (BYTE8_STRING): New macro.
20163
20164 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20165
201662008-02-01 Kenichi Handa <handa@m17n.org>
20167
20168 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20169 characters by octal form.
20170
20171 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20172
20173 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20174 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20175 _fetch_multibyte_char_len.
20176 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20177
20178 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20179
20180 * casefiddle.c (casify_object): Simplify. Handle the case that
20181 the case conversion change the byte length.
20182 (casify_region): Likewise.
20183
20184 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20185
20186 * character.c (_fetch_multibyte_char_len): Delete this variable.
20187 (syms_of_character): Setup Vprintable_chars.
20188
20189 * editfns.c (Fchar_equal): Fix for the unibyte case.
20190 (Finsert_byte): New function.
20191 (syms_of_editfns): Defsubr it.
20192
20193 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20194 of direct code 0x3ffff.
20195
20196 * search.c (Freplace_match): Fix for the unibyte case.
20197
201982008-02-01 Kenichi Handa <handa@m17n.org>
20199
20200 * lread.c (safe_to_load_p): Fix the logic.
20201
20202 * syntax.c (scan_words): Don't treat characters belonging to
20203 different scripts as constituting a word.
20204
20205 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20206
20207 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20208
20209 * emacs.c (main): In the case of --unibyte, instead of aborting on
20210 finding non-empty buffer, make it unibyte.
20211
202122008-02-01 Kenichi Handa <handa@m17n.org>
20213
20214 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20215 to create a fontset.
20216
202172008-02-01 Dave Love <fx@gnu.org>
20218
20219 * character.c (Funibyte_char_to_multibyte): Doc fix.
20220
20221 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20222
202232008-02-01 Kenichi Handa <handa@m17n.org>
20224
20225 * fontset.c (fontset_add): Make the type `int'.
20226 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20227
20228 * character.c (unibyte_char_to_multibyte)
20229 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20230 charset_unibyte, not charset_primary.
20231
20232 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20233
20234 * charset.c (charset_unibyte): Rename from charset_primary.
20235 (Funibyte_charset): Rename from Fprimary_charset.
20236 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20237 (syms_of_charset): Adjust for the above changes.
20238
20239 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20240 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20241 it->multibyte_p is zero.
20242
20243 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20244 Delete extern.
20245
202462008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 * coding.c (Fdefine_coding_system_internal): Fix category setting
20249 for a coding system of type iso-2022.
20250
202512008-02-01 Kenichi Handa <handa@m17n.org>
20252
20253 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * syntax.c (Vnext_word_boundary_function_table): New variable.
20258 (next-word-boundary-function-table): Declare it as a Lisp variable
20259 in syms_of_syntax.
20260 (scan_words): Call functions in Vnext_word_boundary_function_table
20261 if any.
20262
20263 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20264
20265 * fontset.c (fs_load_font): If fontp->charset is not negative,
20266 return fontp without setting its members.
20267
202682008-02-01 Dave Love <fx@gnu.org>
20269
20270 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20271
20272 * m/sparc.h (HAVE_ALLOCA): Delete.
20273
20274 * s/irix6-5.h: Don't include strings.h.
20275 (bcopy, bzero, bcmp): Don't undef.
20276
20277 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20278
20279 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20280 (TIOCSIGSEND): Don't test IRIX6.
20281 (bcopy, bzero, bcmp): Define conditionally.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * buffer.c (Qas, Qmake, Qto): New variables.
20286 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20287 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20288
20289 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20290 we are inserting a process output into a multibyte buffer.
20291
20292 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20293 multibyte_char_to_unibyte.
20294
20295 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20296 by the primary charset, make it eight-bit char.
20297 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20298
20299 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20300 (charset_8_bit__control, charset_8_bit_graphic)
20301 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20302 (define_charset_internal): New function.
20303 (syms_of_charset): Call define_charset_internal for pre-defined
20304 charsets.
20305
20306 * charset.h (charset_8_bit): Extern it.
20307
20308 * coding.c (make_conversion_work_buffer): Adjust for the change
20309 of Fset_buffer_multibyte.
20310 (encode_coding_raw_text): Increment p0 in the loop.
20311
20312 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20313
20314 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20315 for the change of Fset_buffer_multibyte.
20316
20317 * fns.c (Fstring_to_multibyte): New function.
20318 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20319
203202008-02-01 Dave Love <fx@gnu.org>
20321
20322 * xfns.c (x_put_x_image): Declare args.
20323
20324 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20325 (try_font_list): Declare an arg.
20326
20327 * xdisp.c (message2_nolog, set_message): Declare an arg.
20328
20329 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20330
20331 * syntax.c (scan_sexps_forward): Declare an arg.
20332
20333 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20334 Declare an arg.
20335
20336 * lisp.h (Fnew_fontset): Declare.
20337
20338 * keymap.c (push_key_description): Call CHARACTERP correctly.
20339
20340 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20341 (face_for_char): Delete unused vars.
20342 (Fset_fontset_font): Doc fix. Delete unused vars.
20343
20344 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20345
20346 * composite.c (update_compositions): Declare arg.
20347
20348 * cm.c (calccost, cmgoto): Declare args.
20349
20350 * charset.c: Remove `emacs' conditional. Doc fixes.
20351 (map_char_table_for_charset): Declare.
20352
20353 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20354
20355 * ccl.c: Remove `emacs' conditional.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 The following changes are to allow specifying multiple font
20360 patterns for a character range (specified by script or charset).
20361
20362 * Makefile.in (abbrev.o): Depend on syntax.h.
20363 (xfaces.o): Depend on charset.h.
20364
20365 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20366 SINGLE_BYTE_CHAR_P.
20367
20368 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20369
20370 * character.h (Vchar_script_table): Extern it.
20371
20372 * character.c (Vscript_alist): Delete.
20373 (Vchar_script_table, Qchar_script_table): New variable.
20374 (syms_of_character): Declare Vchar_script_table as a lisp variable
20375 and initialize it.
20376
20377 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20378 have property char-table-extra-slots, make no extra slot.
20379
20380 * dispextern.h (struct face): Delete member `charset'.
20381 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20382 SINGLE_BYTE_CHAR_P.
20383 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20384 Add prototypes.
20385 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20386 (generate_ascii_font_name): Rename from generate_ascii_font.
20387
20388 * fontset.h (get_font_repertory_func): New prototype.
20389 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20390 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20391
20392 * fontset.c (Qprepend, Qappend): New variables.
20393 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20394 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20395 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20396 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20397 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20398 (load_font_get_repertory): New functions.
20399 (fontset_set): Delete.
20400 (fontset_face): New arg FACE. Return face ID, not face.
20401 Complete re-write to handle new fontset structure. Change caller.
20402 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20403 (face_for_char): Don't call lookup_face.
20404 (make_fontset_for_ascii_face): New arg FACE.
20405 (fs_load_font): New arg CHARSET_ID. Don't check
20406 Vfont_encoding_alist here.
20407 (find_font_encoding): New function.
20408 (list_fontsets): Use STRINGP, not ! NILP.
20409 (accumulate_script_ranges): New function.
20410 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20411 re-written to handle new fontset structure.
20412 (Ffontset_font): Return a copy of element.
20413 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20414 docstring of font-encoding-alist.
20415
20416 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20417 (Fset_fotset_font): Fix arguments to 5.
20418
20419 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20420
20421 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20422 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20423 (highlight_trailing_whitespace): Adjust for the change of
20424 lookup_named_face.
20425
20426 * xfaces.c: Include charset.h.
20427 (load_face_font): Delete argument C. Change caller.
20428 (generate_ascii_font_name): Rename from generate_ascii_font.
20429 (font_name_registry): New function.
20430 (cache_face): Store ascii faces before non-ascii faces in buckets.
20431 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20432 Lookup only ascii faces.
20433 (lookup_non_ascii_face): New function.
20434 (lookup_named_face): Delete argument C. Change caller.
20435 (lookup_derived_face): Delete argument C. Change caller.
20436 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20437 a string, just call font_list with it.
20438 (choose_face_font): Delete arguments FACE and C. New arg
20439 FONT_SPEC. Change caller.
20440 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20441 Change caller.
20442 (realize_non_ascii_face): New function.
20443 (realize_x_face): Call load_face_font here.
20444 (realize_tty_face): Delete argument C. Change caller.
20445 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20446 get a face ID.
20447 (dump_realized_face): Don't print charset of FACE.
20448
20449 * xfns.c (x_set_font): Always call x_new_fontset and
20450 store_frame_parameter.
20451 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20452 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20453
20454 * xterm.h (x_get_font_repertory): Extern it.
20455
20456 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20457 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20458 it->multibyte_p is zero.
20459 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20460 (x_new_fontset): If FONTSETNAME doesn't match any existing
20461 fontsets, create a new one.
20462 (x_get_font_repertory): New function.
20463
204642008-02-01 Kenichi Handa <handa@m17n.org>
20465
20466 * coding.c (Ffind_coding_systems_region_internal): Detect an
20467 ASCII only string correctly.
20468
20469 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20470 version is 0.
20471
204722008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * lread.c: Include "coding.h".
20475 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20476 (load_each_byte, unread_char): New variables.
20477 (readchar_backlog): Delete.
20478 (readchar): Return a character unless load_each_byte is nonzero.
20479 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20480 cons. If unread_char is not -1, simply return it.
20481 (unreadchar): Handle the case that readcharfun is
20482 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20483 (read_multibyte): Delete.
20484 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20485 (read_emacs_mule_char): New functions.
20486 (Fload): Even if the file doesn't have the extension ".elc", if
20487 safe_to_load_p returns a positive version number, assume that the
20488 file contains bytecompiled code. If the version is less than 22,
20489 load the file while decoding multibyte sequences by emacs-mule.
20490 (readevalloop): Don't use readchar_backlog.
20491 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20492 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20493 (read_escape): Delete the arg BYTEREP.
20494 (read1): Set load_each_byte to 1 temporarily while handling
20495 #@NUMBER. Don't call read_multibyte.
20496 (read_vector): Call Fread with a cons. If readcharfun is
20497 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20498 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20499 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20500 and Qload_force_doc_strings.
20501
205022008-02-01 Kenichi Handa <handa@m17n.org>
20503
20504 * xdisp.c (face_before_or_after_it_pos): Call
20505 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20506
205072008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * character.h (TRAILING_CODE_P): New macro.
20510 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20511 (string_char_with_unification): Fix prototype.
20512 (Vscript_alist): Extern it.
20513
20514 * character.c (Vscript_alist): New variable.
20515 (string_char_with_unification, str_as_unibyte)
20516 (string_escape_byte8): Add `const' to local variables.
20517 (syms_of_character): Declare script-alist as a Lisp variable.
20518
20519 * charset.h (Vcharset_ordered_list): Extern it.
20520 (charset_ordered_list_tick): Extern it.
20521 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20522 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20523 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20524 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20525 (Funify_charset): Adjust for the change of Funify_charset.
20526
20527 * charset.c (charset_ordered_list_tick): New variable.
20528 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20529 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20530 deunify intead of unify a charset.
20531 (string_xstring_p): Add `const' to local variables.
20532 (find_charsets_in_text): Add `const' to arguments and local variables.
20533 (encode_char): Adjust for the change of Funify_charset. Fix
20534 detecting of invalid code.
20535 (Fset_charset_priority): Increment charset_ordered_list_tick.
20536 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20537 and TO_CODE.
20538
20539 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20540 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20541 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20542 (decode_coding_ccl, consume_chars)
20543 (Ffind_coding_systems_region_internal)
20544 (Fcheck_coding_systems_region): Add `const' to local variables.
20545
20546 * print.c (print_object): Use octal form for printing the
20547 contents of a bool vector.
20548
205492008-02-01 Dave Love <fx@gnu.org>
20550
20551 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20552 <version == 20>: Refuse to load.
20553
205542008-02-01 Dave Love <fx@gnu.org>
20555
20556 * fns.c: Move coding.h.
20557 (Qcodeset, Qdays, Qmonths): New.
20558 (concat): Use CHARACTERP instead of INTEGERP.
20559 (Flocale_codeset): Delete.
20560 (Flanginfo): New function.
20561 (syms_of_fns): Change accordingly.
20562
20563 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20564
205652008-02-01 Dave Love <fx@gnu.org>
20566
20567 * casetab.c (init_casetab_once, init_casetab_once): Fix
20568 CHAR_TABLE_SET call.
20569
20570 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20571
20572 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20573
20574 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20575 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20576 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20577
20578 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20579
20580 * coding.c (ENCODE_DESIGNATION, decode_eol)
20581 (make_conversion_work_buffer, code_conversion_restore)
20582 (Fdefine_coding_system_internal): Convert Lisp types.
20583 (code_conversion_restore): Use EQ, not ==.
20584 (Fencode_coding_string): Fix code_convert_string call.
20585
20586 * coding.h (code_convert_region): Fix prototype.
20587
20588 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20589
20590 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20591 (Ffontset_info): Convert Lisp types.
20592
20593 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20594
20595 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20596
20597 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20598
20599 * chartab.c: Include "...h", not <...h> in some cases.
20600
20601 * callproc.c (Fcall_process): Remove unused variables.
20602
206032008-02-01 Dave Love <fx@gnu.org>
20604
20605 * coding.c (Fset_coding_system_priority): Allow null arg list.
20606
206072008-02-01 Dave Love <fx@gnu.org>
20608
20609 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20610 (Fself_insert_and_exit): Use CHARACTERP.
20611
20612 * callproc.c (Fcall_process): Remove unused vars.
20613
20614 * xterm.c (XTread_socket): Add extra dead keysyms.
20615
20616 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20617
20618 * dispextern.h: Remove prototypes for redraw_frame,
20619 redraw_garbaged_frames.
20620
20621 * cmds.c (Fself_insert_command): Use CHARACTERP.
20622
20623 * chartab.c (make_sub_char_table): Remove unused var.
20624 (Fset_char_table_default, Fmap_char_table): Doc fix.
20625
20626 * keymap.c (access_keymap): Remove generic char code.
20627 (push_key_description): Use CHARACTERP.
20628
206292008-02-01 Dave Love <fx@gnu.org>
20630
20631 * charset.c: Doc fixes.
20632 (Funify_charset): Extra checking.
20633
206342008-02-01 Dave Love <fx@gnu.org>
20635
20636 * lread.c: Remove some unused variables.
20637 (safe_to_load_p): If safe, return the magic number version byte.
20638 (Fload): Maybe use load-with-code-conversion.
20639
206402008-02-01 Kenichi Handa <handa@m17n.org>
20641
20642 * category.c (Fmodify_category_entry): Don't modify the contents
20643 of category_set for characters out of the range. Avoid
20644 unnecessary modification.
20645
20646 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20647 Vchar_unify_table. The default value of the table is now nil.
20648
20649 * character.c (syms_of_character): Setup Vchar_width_table for
20650 eight-bit-control and raw-byte chars.
20651
20652 * charset.h (enum define_charset_arg_index): Delete
20653 charset_arg_parents and add charset_arg_subset and
20654 charset_arg_superset.
20655 (enum charset_attr_index): Delete charset_parents and add
20656 charset_subset and charset_superset.
20657 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20658 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20659 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20660 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20661 (CHARSET_SUPERSET): New macros.
20662 (charset_work): Extern it.
20663 (ENCODE_CHAR): Use charset_work.
20664 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20665 (map_charset_chars): Extern it.
20666
20667 * charset.c (load_charset_map): Set the default value of encoder
20668 and deunifier char-tables to nil.
20669 (map_charset_chars): Change argument. Change callers. Use
20670 map_char_table_for_charset instead of map_char_table.
20671 (Fmap_charset_chars): New optional args from_code and to_code.
20672 (Fdefine_charset_internal): Adjust for the change of
20673 `define-charset' (:parents -> :subset or :superset).
20674 (charset_work): New variable.
20675 (encode_char, syms_of_charset): Adjust for the change of
20676 Fdefine_charset_internal.
20677 (Ffind_charset_string): Setup the vector `charsets' correctly.
20678
20679 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20680 the previous change.
20681 (char_table_ref_and_range): Adjust for the above change.
20682 (map_sub_char_table_for_charset): New function.
20683 (map_char_table_for_charset): New function.
20684
20685 * keymap.c (describe_vector): Handle a char-table directly here.
20686 (describe_char_table): Delete.
20687
20688 * lisp.h (map_charset_chars): Delete.
20689
206902008-02-01 Dave Love <fx@gnu.org>
20691
20692 * fns.c (count_combining): Comment out (unused).
20693 (Flocale_codeset): New.
20694 (syms_of_fns): Defsubr it.
20695
20696 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20697 (size_t): Remove.
20698
206992008-02-01 Dave Love <fx@gnu.org>
20700
20701 * Makefile.in (chartab.o): Depend on charset.h.
20702
207032008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * character.c (syms_of_character): Set the default value of
20706 Vprintable_chars to Qnil.
20707
207082008-02-01 Dave Love <fx@gnu.org>
20709
20710 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20711
207122008-02-01 Kenichi Handa <handa@m17n.org>
20713
20714 * charset.c (load_charset_map): Handle the case that from < to
20715 correctly.
20716
20717 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20718 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20719 Pay attention to raw-8-bit chars.
20720
207212008-02-01 Kenichi Handa <handa@m17n.org>
20722
20723 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20724 It is not bytecompiled now.
20725
20726 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20727 (charset_jisx0208): New variables.
20728 (Fdefine_charset_internal): Setup them if appropriate.
20729 (init_charset_once): Initialize them to -1.
20730
20731 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20732 (charset_jisx0208): Extern them.
20733
20734 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20735 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20736 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20737 (setup_iso_safe_charsets): Fix arguments to Fassq.
20738 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20739 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20740 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20741 (encode_coding_iso_2022): Change the 1st arg to
20742 ENCODE_ISO_CHARACTER to a variable.
20743
207442008-02-01 Kenichi Handa <handa@m17n.org>
20745
20746 * charset.h (enum define_charset_arg_index): New enums
20747 charset_arg_min_code and charset_arg_max_code.
20748 (struct charset): New member char_index_offset.
20749
20750 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20751 Take charset->char_index_offset into account.
20752 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20753 args[charset_arg_max_code]. Setup charset.char_index_offset.
20754 (syms_of_charset): Fix args to Fdefine_charset_internal.
20755
207562008-02-01 Dave Love <fx@gnu.org>
20757
20758 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20759
207602008-02-01 Dave Love <fx@gnu.org>
20761
20762 * coding.c: Doc fixes.
20763 (Fcoding_system_aliases): Fix return value.
20764 (Qmac): Remove (duplicated) definition.
20765
207662008-02-01 Dave Love <fx@gnu.org>
20767
362654a6
JB
20768 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20769 New functions.
aac0c6e3
MR
20770
20771 * character.c (Fstring): Doc fix.
20772
20773 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20774
362654a6 20775 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20776 (font-encoding-alist): Doc fix.
20777
207782008-02-01 Dave Love <fx@gnu.org>
20779
20780 * term.c (costs_set): Declare static, non-initialized for pcc.
20781 (encode_terminal_code): Remove unused var.
20782
20783 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20784 for K&R.
20785
20786 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20787
20788 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20789 (suffixes): Move out of make_subsidiaries for K&R.
20790
20791 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20792
20793 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20794
207952008-02-01 Dave Love <fx@gnu.org>
20796
20797 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20798
20799 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20800
208012008-02-01 Yong Lu <lyongu@asia-infonet.com>
20802
20803 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20804
20805 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20806
208072008-02-01 Kenichi Handa <handa@m17n.org>
20808
20809 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20810 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20811
208122008-02-01 Kenichi Handa <handa@m17n.org>
20813
20814 * coding.c (decode_coding_charset): Adjust for the change of
20815 Fdefine_coding_system_internal.
20816 (Fdefine_coding_system_internal): For a coding system of
20817 `charset' type, store a list of charset IDs in
20818 `charset_attr_charset_valids' element of coding attributes.
20819
208202008-02-01 Kenichi Handa <handa@m17n.org>
20821
20822 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20823 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20824 caller. Handle 2-byte and 3-byte charsets correctly.
20825 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20826 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20827 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20828 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20829 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20830 sequence.
20831 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20832 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20833 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20834 and alt&rule composition.
20835 (decode_coding_iso_2022): Handle composition correctly.
20836 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20837
20838 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20839 re-defining a charset. If the charset has :emacs-mule-id, setup
20840 emacs_mule_bytes.
20841 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20842
208432008-02-01 Kenichi Handa <handa@m17n.org>
20844
20845 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20846 (encode_coding_big5, encode_coding_charset): If coding requires safe
20847 encoding, produce a character specified by
20848 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20849
208502008-02-01 Dave Love <fx@gnu.org>
20851
20852 * xterm.c (XSetIMValues): Declare.
20853
20854 * process.c: Conditionally include sys/wait.h, pty.h.
20855
20856 * print.c (print_object): Fix print format for 64-bit systems.
20857
20858 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20859
20860 * buffer.c (emacs_strerror): Declare.
20861
20862 * fontset.c (Fclear_face_cache): Declare.
20863 (accumulate_font_info): Comment-out (unused).
20864 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20865 variables.
20866
20867 * character.h (string_escape_byte8): Declare.
20868
20869 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20870 unused vars.
20871 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20872 (Fmap_charset_chars): Doc fix.
20873
20874 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20875 (Fset_coding_system_priority, Fset_coding_system_priority)
20876 (Fdefine_coding_system_internal): Doc fix.
20877
208782008-02-01 Dave Love <fx@gnu.org>
20879
20880 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20881
208822008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * character.c (string_escape_byte8): Make multibyte string with
20885 correct size.
20886
20887 * charset.c (Fmake_char): Delete unnecessary code.
20888
208892008-02-01 Kenichi Handa <handa@m17n.org>
20890
20891 * xfns.c (x_encode_text): Allocate coding.destination here, and
20892 call encode_coding_object with dst_object Qnil.
20893
20894 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20895 multibyte form correctly.
20896
20897 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20898 against Vfont_encoding_alist.
20899
20900 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20901 handling of charset list.
20902 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20903 (decode_coding_object): Move point to coding->dst_pos before
20904 calling post-read-conversion function.
20905 (encode_coding_object): Give correct arguments to
20906 pre-write-conversion. Ignore the return value of
20907 pre-write-conversion function. Pay attention to the case that
20908 pre-write-conversion changes the current buffer. If dst_object is
20909 Qt, even if coding->src_bytes is zero, allocate at least one byte
20910 to coding->destination.
20911
20912 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20913
20914 * charset.c (Fmake_char): Make it more backward compatible.
20915 (Fmap_charset_chars): Fix docstring.
20916
209172008-02-01 Dave Love <fx@gnu.org>
20918
20919 * coding.c: Doc fixes.
20920 (Fdefine_coding_system_alias): Use names, not symbols, in
20921 coding-system-alist.
20922
209232008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20926 of calling free_realized_face.
20927
209282008-02-01 Yong Lu <lyongu@asia-infonet.com>
20929
20930 * charset.c (read_hex): Don't treat SPC as a comment starter.
20931 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20932 (Fdecode_char): Fix typo.
20933
209342008-02-01 Kenichi Handa <handa@m17n.org>
20935
20936 * charset.h (struct charset): New member `code_space_mask'.
20937
20938 * coding.c (coding_set_source): Delete the local variable beg_byte.
20939 (encode_coding_charset, Fdefine_coding_system_internal):
20940 Delete the local variable charset.
20941 (Fdefine_coding_system_internal): Setup
20942 attrs[coding_attr_charset_valids] correctly.
20943
20944 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20945 member to check if CODE is valid or not.
20946 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20947 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20948 is within the range of charset->min_code and carset->max_code.
20949
209502008-02-01 Dave Love <fx@gnu.org>
20951
20952 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20953
20954 * dispextern.h (generate_ascii_font): Fix return type.
20955
20956 * xfaces.c (generate_ascii_font): Fix arg declaration.
20957
20958 * coding.c (coding_inherit_eol_type)
20959 (Fset_terminal_coding_system_internal)
20960 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20961
209622008-02-01 Kenichi Handa <handa@m17n.org>
20963
20964 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20965 multiple charsets correctly.
20966
209672008-02-01 Kenichi Handa <handa@m17n.org>
20968
20969 * search.c (boyer_moore): Fix handling of multibyte character
20970 translation.
20971
20972 * xdisp.c (display_mode_element): When the variable `elt' is
20973 changed, update `this' and `lisp_string'.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20978
20979 * callproc.c (Fcall_process): Be sure to give the current buffer
20980 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20981
20982 * charset.c (struct charset_map_entries): New struct.
20983 (load_charset_map): Rename from parse_charset_map. New args
20984 entries and n_entries. Change caller.
20985 (load_charset_map_from_file): Rename from load_charset_map.
20986 Change caller. New arg control_flag. Call load_charset_map at
20987 the tail.
20988 (load_charset_map_from_vector): New function.
20989 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20990 (encode_char): If the charset is compact, change a character index
20991 to a code point.
20992
20993 * coding.c (coding_alloc_by_making_gap): Check the case that the
20994 source and destination are the same correctly.
20995 (decode_coding_raw_text): Set coding->consumed_char and
20996 coding->consumed to 0.
20997 (produce_chars): If coding->chars_at_source is nonzero, update
20998 coding->consumed_char and coding->consumed before calling
20999 alloc_destination.
21000 (Fdefine_coding_system_alias): Register ALIAS in
21001 Vcoding_system_alist.
21002 (syms_of_coding): Define `no-conversion' coding system at the tail.
21003
21004 * fileio.c (Finsert_file_contents): Set coding_system instead of
21005 val. If the current buffer is multibyte, always call
21006 decode_coding_gap.
21007
21008 * xfaces.c (try_font_list): Give higher priority to fontset's
21009 family than face's family.
21010
210112008-02-01 Kenichi Handa <handa@m17n.org>
21012
21013 * callproc.c (Fcall_process): Be sure to give the current buffer
21014 to decode_coding_c_string.
21015
21016 * xfaces.c (try_font_list): Give a family specified in a fontset
21017 higher priority than a family specified in a face.
21018
210192008-02-01 Kenichi Handa <handa@m17n.org>
21020
21021 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21022 Fix arguments to insert_from_buffer.
21023
21024 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21025
210262008-02-01 Kenichi Handa <handa@m17n.org>
21027
21028 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21029 (decode_coding_gap): Set coding->dst_multibyte correctly.
21030
210312008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21034 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21035 (encode_coding_utf_16): Substitute coding->default_char for
21036 non-Unicode characters.
21037 (decode_coding): Don't call record_insert here.
21038 (setup_coding_system): Initialize `surrogate' of
21039 coding->spec.utf_16 to 0.
21040 (EMIT_ONE_BYTE): Fix for multibyte case.
21041
21042 * insdel.c (insert_from_gap): Call record_insert.
21043
210442008-02-01 Kenichi Handa <handa@m17n.org>
21045
21046 * casefiddle.c (casify_region): Fix multibyte case.
21047
21048 * character.c (c_string_width): Add return type `int'.
21049 (char_string_with_unification): Delete arg ADVANCED.
21050
21051 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21052 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21053 (CHAR_STRING_ADVANCE): Make it do-while statement.
21054
21055 * chartab.c (sub_char_table_set_range): Optimize for the case
21056 DEPTH == 3. Add workaround code for a GCC optimization bug.
21057
21058 * charset.c (parse_charset_map): Remove an unused variable.
21059
21060 * coding.c: Delete unused variables.
21061
21062 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21063 earlier. If inserted is zero and the coding system doesn't
21064 require flushing, don't call decode_coding_gap.
21065
21066 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21067
210682008-02-01 Kenichi Handa <handa@m17n.org>
21069
21070 The following changes are for using Unicode as an internal
21071 character model, and use UTF-8 format for buffer/string
21072 representation.
21073
21074 * .gdbinit (xchartable): Adjust for the change of char table structure.
21075 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21076
21077 * Makefile.in (obj): Add character.o and chartab.o.
21078 (lisp, shortlisp): Remove utf-8.elc.
21079 (*.o): For many files, change dependency on charset.h to
21080 character.h, and add dependency on character.h.
21081 (character.o, chartab.o): New targets.
21082
21083 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21084 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21085 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21086 of "charset.h".
21087
21088 * dired.c, filelock.c: Include "character.h".
21089
21090 * alloc.c: Include "character.h" instead of "charset.h".
21091 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21092 (syms_of_alloc): Remove defsubr for Smake_char_table.
21093
21094 * buffer.c: Include "character.h" instead of "charset.h", don't
21095 include "coding.h".
21096 (Fset_buffer_multibyte): Adjust for UTF-8.
21097
21098 * buffer.h: EXFUN Fbuffer_live_p.
21099
21100 * callproc.c: Include "character.h" instead of "charset.h".
21101 (Fcall_process): Big change for the new code-conversion APIs.
21102
21103 * casetab.c: Include "character.h" instead of "charset.h".
21104 (set_canon, set_identity, shuffle): Adjust for the new
21105 map_char_table spec.
21106 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21107 accessing the char table structure.
21108
21109 * chartab.c: New file that implements char table.
21110
21111 * category.c: Include "character.h".
21112 (copy_category_entry): New function.
21113 (copy_category_table): Call map_char_table and copy_category_entry.
21114 (Fmake_category_table): Initialize all top-level slots.
21115 (char_category_set): New function.
21116 (modify_lower_category_set): Delete.
21117 (Fmodify_category_entry): Call char_table_ref_and_range.
21118
21119 * category.h (CATEGORY_SET): Just call char_category_set.
21120
21121 * ccl.c: Include "character.h".
21122 (Qccl, Qcclp): New variables.
21123 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21124 it's less than 256.
21125 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21126 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21127 and DST type.
21128 (ccl_driver): Change types of argument, adjust code accordingly.
21129 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21130 ccl_driver.
21131 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21132
21133 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21134 New members src_multibyte, dst_multibyte, consumed, and produced.
21135 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21136 (CODING_SPEC_CCL_PROGRAM): New macro.
21137 (ccl_driver): Update prototype.
21138 (Qccl, Qcclp, Fccl_program_p): Extern them.
21139 (CHECK_CCL_PROGRAM): New macro.
21140
21141 * character.c, character.h, chartab.c: New files.
21142
21143 * charset.c: Mostly re-written. Move character and multibyte sequence
21144 handling codes to character.c.
21145
21146 * charset.h: Mostly re-written. Move character and multibyte sequence
21147 handling codes to character.h.
21148
21149 * coding.c, coding.h: Mostly re-written.
21150
21151 * composite.c: Include "character.h" instead of "charset.h".
21152 (CHAR_WIDTH): Move to character.h.
21153 (HASH_KEY, HASH_VALUE): Delete.
21154
21155 * composite.h (enum composition_method): Change order of enumeration
21156 symbols.
21157
21158 * data.c: Include "character.h" instead of "charset.h".
21159 (Faref): Call CHAR_TABLE_REF for a char table.
21160 (Faset): Call CHAR_TABLE_SET for a char table.
21161
21162 * dispextern.h (free_realized_face, check_face_attribytes)
21163 (generate_ascii_font): Extern them.
21164 (free_realized_multibyte_face): Delete extern.
21165
21166 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21167 table structure.
21168
21169 * editfns.c: Include "character.h" instead of "charset.h".
21170 (Fchar_to_string): Always call CHAR_STRING.
21171
21172 * emacs.c (main): Call init_charset_once, init_charset,
21173 syms_of_chartab, and syms_of_character.
21174
21175 * fileio.c: Include "character.h" instead of "charset.h".
21176 (Finsert_file_contents): Big change for the new code-conversion API.
21177 (choose_write_coding_system, Fwrite_region): Likewise.
21178 (build_annotations_2): Delete.
21179 (e_write): Big change for the new code-conversion API.
21180
21181 * fns.c: Include "character.h" instead of "charset.h".
21182 (copy_sub_char_table): Move to chartab.c.
21183 (Fcopy_sequence): Call copy_char_table for a char table.
21184 (concat): Delete codes calling count_multibyte.
21185 (string_char_to_byte, string_byte_to_char): Adjust for the new
21186 multibyte form.
21187 (internal_equal): Adjust for the change of char table structure.
21188 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21189 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21190 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21191 (char_table_translate, optimize_sub_char_table)
21192 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21193 chartab.c.
21194 (char_table_ref_and_index): Delete.
21195 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21196 (Fmd5): Call preferred_coding_system instead of accessing
21197 Vcoding_category_list. Adjust for the new code-conversion API.
21198 (syms_of_fns): Move defsubr for char table related functions to
21199 chartab.c.
21200
21201 * fontset.c: Mostly re-written.
21202
21203 * fontset.h (struct font_info): Change type of the member encoding_type.
21204 (enum FONT_SPEC_INDEX): New enum.
21205 (fontset_font_pattern, fs_load_font): Update prototype.
21206 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21207
21208 * indent.c: Include "character.h" instead of "charset.h".
21209 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21210
21211 * insdel.c: Include "character.h" instead of "charset.h".
21212 (copy_text): Don't refer to Vnonascii_translation_table.
21213 (insert_from_gap): New function.
21214
21215 * keyboard.c: Include "character.h" instead of "charset.h".
21216 (command_loop_1): Never call direct_output_forward_char before
21217 a non-ASCII character.
21218 (read_char): If Vkeyboard_translate_table is a char table, always
21219 translate a character.
21220
21221 * keymap.c: Include "character.h".
21222 (store_in_keymap): Handle the case that IDX is a cons.
21223 (Fdefine_key): Handle the case that KEY is a cons and the car part
21224 is also a cons (range).
21225 (push_key_description): Adjust for the new character code.
21226 (describe_vector): Call describe_char_table for a char table.
21227 (describe_char_table): New function.
21228
21229 * keymap.h (describe_char_table): Extern it.
21230
21231 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21232 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21233 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21234 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21235 Delete.
21236 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21237 structure.
21238 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21239 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21240 (CHARTAB_SIZE_BITS_3): New macros.
21241 (chartab_size): Extern it.
21242 (struct Lisp_Char_Table): Re-design.
21243 (struct Lisp_Sub_Char_Table): New structure.
21244 (HASH_KEY, HASH_VALUE): Move from fns.c.
21245 (CHARACTERBITS): Define as 22.
21246 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21247 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21248 (GC_SUB_CHAR_TABLE_P): New macro.
21249 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21250 (code_convert_string_norecord): Deleted extern.
21251 (init_character_once, syms_of_character, init_charset)
21252 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21253
21254 * lread.c: Include "character.h".
21255 (read_multibyte): New arg NBYTES.
21256 (read_escape): Change the meaning of returned *BYTEREP.
21257 (to_multibyte): Delete.
21258 (read1): Adjust the handling of char table and string.
21259
21260 * print.c: Include "character.h" instead of "charset.h".
21261 (print_string): Convert 8-bit raw bytes to octal form by
21262 string_escape_byte8.
21263 (print_object): Adjust for the new multibyte form. Print 8-bit
21264 raw bytes always in octal form. Handle sub char table correctly.
21265
21266 * process.c: Include "character.h" instead of "charset.h".
21267 (read_process_output, send_process): Adjust for the new
21268 code-conversion API.
21269
21270 * puresize.h (BASE_PURESIZE): Increase.
21271
21272 * regex.c: Include "character.h" instead of "charset.h".
21273 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21274 (regex_compile): Accept a range whose starting and ending
21275 character have different leading bytes.
21276 (analyse_first): Adjust for the above change.
21277
21278 * search.c: Include "character.h" instead of "charset.h".
21279 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21280 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21281
21282 * syntax.c: Include "character.h" instead of "charset.h".
21283 (syntax_parent_lookup): Delete.
21284 (Fmodify_syntax_entry): Accept a cons as CHAR.
21285 (skip_chars): Adjust for the new multibyte form.
21286 (init_syntax_once): Call char_table_set_range instead of directly
21287 accessing the structure of a char table.
21288
21289 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21290 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21291 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21292 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21293
21294 * term.c: Include "buffer.h" and "character.h".
21295 (encode_terminal_code, write_glyphs): Adjust for the new
21296 code-conversion API.
21297 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21298
21299 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21300
21301 * xdisp.c: Include "character.h".
21302 (get_next_display_element): Adjust for the new multibyte form.
21303 (disp_char_vector): Adjust for the new char table structure.
21304 (decode_mode_spec_coding): Adjust for the new structure of
21305 coding system.
21306 (decode_mode_spec): Adjust for the new code-conversion API.
21307
21308 * xfaces.c: Include "character.h" instead of "charset.h".
21309 (load_face_font): Adjust for the change of choose_face_font and
21310 FS_LOAD_FONT.
21311 (generate_ascii_font): New function.
21312 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21313 (set_font_frame_param): Adjust for the change of choose_face_font.
21314 (free_realized_face): Make it public.
21315 (free_realized_faces_for_fontset): Rename from
21316 free_realized_multibyte_face. Free also faces realized for ASCII.
21317 (choose_face_font): Change arguments. Adjust for the change of
21318 fontset_font_pattern and FS_LOAD_FONT.
21319
21320 * xfns.c: Include "character.h".
21321 (x_encode_text): Adjust for the new code-conversion API.
21322
21323 * xselect.c: Don't include "charset.h".
21324 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21325
21326 * xterm.c: Include "character.h".
21327 (x_encode_char): New argument CHARSET. Change caller.
21328 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21329 Call ENCODE_CHAR instead of SPLIT_CHAR.
21330 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21331 CHAR_WIDTH instead of CHARSET_WIDTH.
21332 (XTread_socket): Adjust for the new code-conversion API.
21333 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21334 (x_load_font): Adjust for the change of struct font.
21335
213362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21337
21338 * xfaces.c (face_at_buffer_position): Remove unused vars.
21339
213402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21341
21342 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21343 Fix overflow checking.
21344
213452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21346
21347 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21348 Cancel previous change.
21349
213502008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21351
21352 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21353 ccl->eight_bit_control. Fix check for buffer overflow.
21354 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21355 (ccl_driver): Initialize extra_bytes to 0.
21356
213572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21358
21359 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21360 return it ORed with ctrl_modifier.
21361
213622008-01-29 Miles Bader <miles@gnu.org>
21363
21364 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21365
213662008-01-28 Jason Rumney <jasonr@gnu.org>
21367
21368 * w32.c (stat): Don't double check for networked drive.
21369
213702008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21371
21372 * window.c (run_window_configuration_change_hook): New function.
21373 Code extracted from set_window_buffer. Set the selected frame.
21374 (set_window_buffer): Use it.
21375 * window.h (run_window_configuration_change_hook): Declare.
21376 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21377
21378 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21379
213802008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21381
21382 * Makefile.in: Remove references to unused macros.
21383
213842008-01-26 Eli Zaretskii <eliz@gnu.org>
21385
21386 * w32.c (g_b_init_get_sid_sub_authority)
21387 (g_b_init_get_sid_sub_authority_count): New static variables.
21388 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21389 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21390 (init_user_info): Use them to retrieve uid and gid.
21391 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21392 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21393 st_uid and st_gid of the file.
21394
213952008-01-26 Jason Rumney <jasonr@gnu.org>
21396
21397 * w32.c (logon_network_drive): New function.
21398 (stat): Use it.
21399
214002008-01-26 Chong Yidong <cyd@stupidchicken.com>
21401
21402 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21403 invisible text covered with an ellipsis.
21404
214052008-01-25 Richard Stallman <rms@gnu.org>
21406
21407 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21408 jump back to beginning. Move some other initializations after that.
21409 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21410 New variables.
21411 (syms_of_xdisp): Init them.
21412
21413 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21414
21415 * buffer.c (reset_buffer_local_variables):
21416 Implement `permanent-local-hook'.
21417 (Qpermanent_local_hook): New variable.
21418 (syms_of_buffer): Init and staticpro it.
21419
214202008-01-25 Michael Albinus <michael.albinus@gmx.de>
21421
21422 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21423
214242008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21425
21426 * fns.c (Fclrhash): Return TABLE.
21427
214282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21429
21430 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21431 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21432 is set even without positional changes.
21433 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21434
21435 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21436
214372008-01-23 Jason Rumney <jasonr@gnu.org>
21438
21439 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21440
21441 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21442 the unicode range available in MULE by locale-coding-system.
21443 Improve dbcs lead byte detection. Set event timestamp and modifiers
21444 earlier.
21445
214462008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21447
21448 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21449 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21450 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21451 when used on child processes.
21452
214532008-01-21 Michael Albinus <michael.albinus@gmx.de>
21454
21455 * dbusbind.c (Fdbus_method_return_internal): Rename from
21456 Fdbus_method_return.
21457 (Fdbus_unregister_object): Move to dbus.el.
21458 (Fdbus_call_method, Fdbus_method_return_internal)
21459 (Fdbus_send_signal): Improve debug messages.
21460
214612008-01-20 Martin Rudalics <rudalics@gmx.at>
21462
21463 * undo.c (undo_inhibit_record_point): New variable.
21464 (syms_of_undo): Initialize it.
21465 (record_point): Don't record point when undo_inhibit_record_point
21466 is set.
21467
214682008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21469
21470 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21471
21472 * xdisp.c (Qauto_hscroll_mode): New var.
21473 (syms_of_xdisp): Initialize it.
21474 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21475 window's buffer.
21476 (hscroll_windows): Don't check automatic_hscrolling_p here.
21477
21478 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21479 vscroll if we're setting window-buffer to the value it already has.
21480
214812008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21482
21483 * m/intel386.h: Remove references to XENIX.
21484
214852008-01-17 Andreas Schwab <schwab@suse.de>
21486
21487 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21488 instead of HAVE_X86_64_LIB64_DIR.
21489 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21490
214912008-01-17 Glenn Morris <rgm@gnu.org>
21492
21493 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21494 to HAVE_X86_64_LIB64_DIR.
21495
214962008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21497
21498 * s/irix3-3.h:
21499 * s/irix4-0.h:
21500 * s/386-ix.h:
21501 * s/domain.h:
21502 * s/hpux9-x11r4.h:
21503 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21504
21505 * sysdep.c: Remove code containing references to symbols defined
21506 by unsupported systems.
21507
215082008-01-16 Glenn Morris <rgm@gnu.org>
21509
21510 * coding.c (select-safe-coding-system-function): Doc fix.
21511
215122008-01-15 Glenn Morris <rgm@gnu.org>
21513
21514 * config.in: Revert 2008-01-13 change: this is a generated file.
21515
215162008-01-13 Tom Tromey <tromey@redhat.com>
21517
21518 * lisp.h: Fix typo.
21519
215202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21521
21522 * m/sequent-ptx.h:
21523 * m/sequent.h:
21524 * s/ptx.h:
21525 * s/ptx4-2.h:
21526 * s/ptx4.h: Remove files for systems no longer supported.
21527
21528 * callproc.c (Fcall_process): Fix previous change.
21529
215302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21531
21532 * unexsunos4.c: Remove file, system not supported anymore.
21533
21534 * m/mips.h:
21535 * m/intel386.h:
21536 * callproc.c:
21537 * config.in:
21538 * ecrt0.c:
21539 * emacs.c:
21540 * fileio.c:
21541 * frame.c:
21542 * getpagesize.h:
21543 * keyboard.c:
21544 * lread.c:
21545 * process.c:
21546 * puresize.h:
21547 * sysdep.c:
21548 * systty.h:
21549 * syswait.h:
21550 * unexec.c:
21551 * xdisp.c:
21552 * alloc.c: Remove code containing references to symbols defined by
21553 unsupported systems.
21554
215552008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21556
21557 * coding.c (detect_coding_mask): Fix previous change.
21558
215592008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21560
21561 * coding.c (detect_coding_iso2022): New arg
21562 latin_extra_code_state. Allow Latin extra codes only
21563 when *latin_extra_code_state is nonzero.
21564 (detect_coding_mask): If there is a NULL byte, detect the encoding
21565 as UTF-16 or binary. If Latin extra codes exist, detect the
21566 encoding as ISO-2022 only when there's no other proper encoding is
21567 found.
21568
215692008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21570
21571 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21572 #ifdef MAC_OS.
21573
215742008-01-08 Richard Stallman <rms@gnu.org>
21575
21576 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21577
215782008-01-06 Nick Roberts <nickrob@snap.net.nz>
21579
21580 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21581 menu bar in parentheses.
21582
215832008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21584
21585 * m/7300.h:
21586 * m/acorn.h:
21587 * m/alliant-2800.h:
21588 * m/alliant.h:
21589 * m/alliant1.h:
21590 * m/alliant4.h:
21591 * m/altos.h:
21592 * m/amdahl.h:
21593 * m/apollo.h:
21594 * m/att3b.h:
21595 * m/aviion-intel.h:
21596 * m/aviion.h:
21597 * m/celerity.h:
21598 * m/clipper.h:
21599 * m/cnvrgnt.h:
21600 * m/convex.h:
21601 * m/cydra5.h:
21602 * m/delta88k.h:
21603 * m/dpx2.h:
21604 * m/dual.h:
21605 * m/elxsi.h:
21606 * m/f301.h:
21607 * m/gould-np1.h:
21608 * m/gould.h:
21609 * m/i860.h:
21610 * m/ibmps2-aix.h:
21611 * m/ibmrt-aix.h:
21612 * m/ibmrt.h:
21613 * m/irist.h:
21614 * m/is386.h:
21615 * m/isi-ov.h:
21616 * m/mega68.h:
21617 * m/mg1.h:
21618 * m/news-r6.h:
21619 * m/news-risc.h:
21620 * m/news.h:
21621 * m/nh3000.h:
21622 * m/nh4000.h:
21623 * m/ns16000.h:
21624 * m/ns32000.h:
21625 * m/nu.h:
21626 * m/orion.h:
21627 * m/orion105.h:
21628 * m/paragon.h:
21629 * m/pfa50.h:
21630 * m/plexus.h:
21631 * m/pyramid.h:
21632 * m/pyrmips.h:
21633 * m/sh3el.h:
21634 * m/sps7.h:
21635 * m/sr2k.h:
21636 * m/stride.h:
21637 * m/sun1.h:
21638 * m/sun2.h:
21639 * m/sun3-68881.h:
21640 * m/sun3-fpa.h:
21641 * m/sun3-soft.h:
21642 * m/sun3.h:
21643 * m/sun386.h:
21644 * m/symmetry.h:
21645 * m/tad68k.h:
21646 * m/tahoe.h:
21647 * m/targon31.h:
21648 * m/tek4300.h:
21649 * m/tekxd88.h:
21650 * m/tower32.h:
21651 * m/tower32v3.h:
21652 * m/ustation.h:
21653 * m/wicat.h:
21654 * m/xps100.h:
21655 * s/cxux.h:
21656 * s/cxux7.h:
21657 * s/dgux.h:
21658 * s/dgux4.h:
21659 * s/dgux5-4-3.h:
21660 * s/dgux5-4r2.h:
21661 * s/esix.h:
21662 * s/esix5r4.h:
21663 * s/hiuxmpp.h:
21664 * s/hiuxwe2.h:
21665 * s/iris3-5.h:
21666 * s/iris3-6.h:
21667 * s/isc2-2.h:
21668 * s/isc3-0.h:
21669 * s/isc4-0.h:
21670 * s/isc4-1.h:
21671 * s/newsos5.h:
21672 * s/newsos6.h:
21673 * s/osf1.h:
21674 * s/osf5-0.h:
21675 * s/riscix1-1.h:
21676 * s/riscix12.h:
21677 * s/sco4.h:
21678 * s/sco5.h:
21679 * s/sunos4-0.h:
21680 * s/sunos4-1.h:
21681 * s/sunos413.h:
21682 * s/sunos4shr.h:
21683 * s/umax.h:
21684 * s/unipl5-2.h:
21685 * s/xenix.h:
21686 * cxux-crt0.s:
21687 * unexapollo.c:
21688 * unexconvex.c:
21689 * unexenix.c:
21690 * unexsni.c: Remove files for systems no longer supported.
21691
21692 * m/intel386.h: Remove references to unsupported systems.
21693
21694 * w32.c (get_emacs_configuration): Remove reference to i860.
21695
21696 * sysdep.c: Remove dead code.
21697
216982008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21699
21700 * s/rtu.h:
21701 * m/masscomp.h: Remove files. Platform is obsolete.
21702
217032008-01-04 Michael Albinus <michael.albinus@gmx.de>
21704
21705 * dbusbind.c (Fdbus_method_return): New function.
21706 (xd_read_message): Add the serial number to the event.
21707 (Fdbus_register_method): Activate the function.
21708
217092008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21710
21711 * keyboard.c (read_key_sequence): Fix typo.
21712
217132008-01-03 Michael Albinus <michael.albinus@gmx.de>
21714
21715 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21716 (xd_signature, xd_append_arg): Handle element type detection for
21717 empty arrays.
21718 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21719 SDATA () calls; this must be solved more general.
21720 (Fdbus_register_signal): Use SBYTES instead of strlen.
21721
217222008-01-03 Magnus Henoch <magnus@zemdatav>
21723
21724 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21725 unsigned int for byte values (necessary for big-endian platform).
21726 (Fdbus_call_method): Handle the case of no returned arguments.
21727
217282007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21729
21730 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21731
217322007-12-31 Magnus Henoch <mange@freemail.hu>
21733
21734 * dbusbind.c (xd_signature): Signature of variant is just "v".
21735
217362007-12-30 Michael Albinus <michael.albinus@gmx.de>
21737
21738 * dbusbind.c: Fix several errors and compiler warnings.
21739 Reported by Tom Tromey <tromey@redhat.com>.
21740 (XD_ERROR, XD_DEBUG_MESSAGE)
21741 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21742 (xd_append_arg): Part for basic D-Bus types rewritten.
21743 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21744 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21745 appropriate.
21746 (xd_read_message): Return Qnil. Don't signal an error; it is not
21747 useful during event reading.
21748 (Fdbus_register_signal): Signal an error if the check for
21749 FUNCTIONP fails.
21750 (Fdbus_register_method): New function. The implementation is not
21751 complete, the call of the function signals an error therefore.
21752 (Fdbus_unregister_object): New function, renamed from
21753 Fdbus_unregister_signal. The initial check signals an error, if
21754 the object is not well formed.
21755
217562007-12-30 Richard Stallman <rms@gnu.org>
21757
21758 * textprop.c (get_char_property_and_overlay):
21759 Signal error if POSITION is out of range in a buffer.
21760
217612007-12-29 Martin Rudalics <rudalics@gmx.at>
21762
21763 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21764 because the original parameters are in pure storage now.
21765
217662007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21767
21768 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21769
217702007-12-22 Eli Zaretskii <eliz@gnu.org>
21771
21772 * callint.c (syms_of_callint) <command-history>: Add reference to
21773 history-length in the doc string.
21774
217752007-12-17 Jason Rumney <jasonr@gnu.org>
21776
21777 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21778 before passing as wParam.
21779
217802007-12-22 Michael Albinus <michael.albinus@gmx.de>
21781
21782 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21783 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21784 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21785 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21786 as number.
21787 (Fdbus_call_method): Fix docstring.
21788
217892007-12-21 Michael Albinus <michael.albinus@gmx.de>
21790
21791 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21792 New macros.
21793 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21794 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21795 Simplify.
21796 (xd_signature): New function.
21797 (xd_append_arg): Compute also signatures. Major rewrite.
21798 (xd_retrieve_arg): Make debug messages friendly.
21799 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21800 Check for signatures of arguments.
21801
218022007-12-19 Michael Albinus <michael.albinus@gmx.de>
21803
21804 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21805 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21806 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21807 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21808 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21809 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21810 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21811 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21812 (xd_retrieve_value): Remove. Functionality included in ...
21813 (xd_append_arg): New function.
21814 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21815
218162007-12-16 Michael Albinus <michael.albinus@gmx.de>
21817
21818 * dbusbind.c (top): Include <stdio.h>.
21819 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21820 dbus_message_new_method_call and dbus_message_new_signal.
21821 (Fdbus_register_signal): Rename unique_name to uname.
21822 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21823 non-existing unique name. Fix typos in matching rule. Return an
21824 object which is useful in Fdbus_unregister_signal.
21825 (Fdbus_unregister_signal): Reimplementation, in order to remove
21826 only the corresponding entry.
21827 (Vdbus_registered_functions_table): Change the order of entries.
21828 Apply these changes in xd_read_message and Fdbus_register_signal.
21829
218302007-12-16 Andreas Schwab <schwab@suse.de>
21831
21832 * fileio.c (Finsert_file_contents): Fix overflow check to not
21833 depend on undefined integer overflow.
21834
218352007-12-14 Jason Rumney <jasonr@gnu.org>
21836
21837 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21838 for characters above 127.
21839
218402007-12-13 Jason Rumney <jasonr@gnu.org>
21841
21842 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21843 before dereferencing array.
21844 (lookup_vk_code): Remove zero comparison.
21845
218462007-12-14 Michael Albinus <michael.albinus@gmx.de>
21847
21848 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21849 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21850 Use `unsigned int' instead of `uint'.
21851 (xd_read_message, Fdbus_register_signal): Split expressions into
21852 multiple lines before operators "&&" and "||", according to the
21853 GNU Coding Standards.
21854
218552007-12-14 Eli Zaretskii <eliz@gnu.org>
21856
21857 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21858
218592007-12-12 Juri Linkov <juri@jurta.org>
21860
21861 * buffer.c (Frename_buffer): In interactive spec replace
21862 `read-buffer' with `read-string' that uses `buffer-name-history'
21863 as history, and the current buffer's name as default.
21864
218652007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21866
21867 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21868 manipulating the backtrace manually.
21869 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21870 (struct backtrace, backtrace_list): Remove.
21871 (command_loop_1): Remove dead var `no_direct'.
21872
21873 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21874 preserve non-built-in buffer-local variables.
21875 (Fkill_all_local_variables): Don't re-create&re-set permanent
21876 buffer-local variables.
21877
218782007-12-09 Juri Linkov <juri@jurta.org>
21879
21880 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21881 Lisp code that uses `read-buffer' with current buffer as default.
21882
218832007-12-08 Michael Albinus <michael.albinus@gmx.de>
21884
21885 * dbusbind.c (xd_read_message): Generate an event for every
21886 registered handler. There might be several handlers registered
21887 for the same signal.
21888 (Fdbus_register_signal): Don't overwrite a registration for the
21889 same signal. Add a new registration if handlers are different.
21890 (Vdbus_registered_functions_table): Rework doc string.
21891
218922007-12-07 Michael Albinus <michael.albinus@gmx.de>
21893
21894 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21895 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21896 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21897 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21898 Unify argument lists.
21899 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21900 arguments and hash table keys. Use unique name for service.
21901 (Fdbus_unregister_signal): Remove checks.
21902 (Vdbus_registered_functions_table): Fix doc string.
21903
219042007-12-05 Magnus Henoch <mange@freemail.hu>
21905
21906 * process.c (make_process): Initialize pty_flag to 0.
21907
219082007-12-05 Jason Rumney <jasonr@gnu.org>
21909
21910 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21911 specified XBMs.
21912
219132007-12-05 Richard Stallman <rms@gnu.org>
21914
21915 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21916
219172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21918
21919 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21920 New variable.
21921 (mac_try_close_socket) [MAC_OSX]: New function.
21922 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21923 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21924
21925 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21926 Use mac_try_close_socket.
21927
219282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21929
21930 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21931 reloc_base.
21932 (copy_dysymtab): Compute relocation base here.
21933 (rebase_reloc_address) [__ppc64__]: New function.
21934 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21935 changed.
21936
219372007-12-05 Jason Rumney <jasonr@gnu.org>
21938
21939 * w32proc.c (sys_spawnve): Quote args with wildcards.
21940
219412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21942
21943 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21944 __objc_* sections.
21945 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21946
219472007-12-05 Michael Albinus <michael.albinus@gmx.de>
21948
21949 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21950 Move check for Vdbus_registered_functions_table to
21951 xd_read_queued_messages.
21952 (xd_read_queued_messages): Protect xd_read_message calls by
21953 internal_condition_case_1.
21954
219552007-12-04 Michael Albinus <michael.albinus@gmx.de>
21956
21957 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21958 Qdbus_system_bus and Qdbus_session_bus, respectively.
21959 (Vdbus_intern_symbols): Remove.
21960 (Vdbus_registered_functions_table): New hash table.
21961 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21962 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21963 Rewrite in order to manage registered functions by hash table
21964 Vdbus_registered_functions_table.
21965
219662007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21967
21968 * xterm.c: Update URL to Window Manager Specification in comment.
21969
219702007-12-02 Michael Albinus <michael.albinus@gmx.de>
21971
21972 * config.in (HAVE_DBUS): Add.
21973
21974 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21975 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21976 (obj): Add $(DBUS_OBJ).
21977 (LIBES): Add $(DBUS_LIBS).
21978 (dbusbind.o): New target.
21979
21980 * dbusbind.c: New file.
21981
21982 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21983
21984 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21985 (Qdbus_event): New Lisp symbol.
21986 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21987 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21988 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21989
21990 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21991
219922007-12-01 Richard Stallman <rms@gnu.org>
21993
21994 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21995
219962007-11-30 Jason Rumney <jasonr@gnu.org>
21997
21998 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21999 (w32con_reset_terminal_modes): Clear screen buffer.
22000 (w32_face_attributes): Don't use color indexes that are out of range.
22001 Only reverse the default colors.
22002
22003 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22004 WINDOWSNT.
22005
22006 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22007
220082007-11-29 Jason Rumney <jasonr@gnu.org>
22009
22010 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22011 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22012 if the terminal colors are initialized.
22013 (unspecified_fg, unspecified_bg): Remove unused declarations.
22014
220152007-11-29 Andreas Schwab <schwab@suse.de>
22016
22017 * keyboard.c (apply_modifiers): Fix typo.
22018
220192007-11-29 Richard Stallman <rms@gnu.org>
22020
22021 * keymap.c (Fcurrent_local_map): Doc fix.
22022
220232007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22024
22025 * s/gnu-kfreebsd.h: New file.
22026
220272007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22028
22029 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22030 Don't cast redundantly.
22031
22032 * keyboard.c (KEY_TO_CHAR): New macro.
22033 (parse_modifiers, apply_modifiers): Accept integer arguments.
22034 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22035 for chars and symbol keys.
22036 After doing such remapping, apply function-key-map again.
22037
220382007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22039
22040 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22041 compiled anymore.
22042
220432007-11-26 Andreas Schwab <schwab@suse.de>
22044
22045 * process.c (list_processes_1): Fix indentation level of the
22046 command column.
22047
220482007-11-23 Andreas Schwab <schwab@suse.de>
22049
22050 * editfns.c (Fformat): Handle %c specially since it requires the
22051 argument to be of type int.
22052
220532007-11-23 Markus Triska <markus.triska@gmx.at>
22054
22055 * emacs.c (main): Call init_editfns before init_process, since
22056 init_process sets Vprocess_connection_type depending on OS release.
22057
220582007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22059
22060 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22061 (find_symbol_value): Use do_symval_forwarding.
22062
22063 * data.c (set_internal): Set the value in the `cons-cell' (for
22064 Buffer_Local_values) not only for frame-local variables.
22065
220662007-11-22 Andreas Schwab <schwab@suse.de>
22067
22068 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22069 values to sprintf.
22070 * keymap.c (Fsingle_key_description): Likewise.
22071 * print.c (print_object): Likewise.
22072
220732007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22074
22075 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22076 file for image is nil.
22077
220782007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22079
22080 * term.c: Include stdarg.h.
22081 (fatal): Implement using varargs.
22082 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22083
220842007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22085
22086 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22087 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22088 Update call to buffer_slot_type_mismatch.
22089 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22090 (buffer_slot_type_mismatch): Update.
22091 * buffer.c (buffer_local_types): Remove.
22092 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22093 (defvar_per_buffer): Set the type in the buffer_objfwd.
22094
220952007-11-21 Jason Rumney <jasonr@gnu.org>
22096
22097 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22098 CreateFileMapping returns NULL on failure.
22099
221002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22101
22102 * search.c (Fset_match_data): Remove the `evaporate' feature.
22103 (unwind_set_match_data): Don't use the `evaporate' feature.
22104
221052007-11-21 Jason Rumney <jasonr@gnu.org>
22106
22107 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22108
22109 * w32console.c (w32con_write_glyphs): Remove unused variables.
22110
221112007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22112
22113 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22114
22115 * s/darwin.h (MULTI_KBOARD): Remove.
22116
22117 * macfns.c (x_create_tip_frame, Fx_create_frame)
22118 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22119
221202007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22121
22122 * buffer.c (Fbuffer_local_value): Remove redundant test.
22123 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22124 than in `current-buffer' to match the comment.
22125 Do the swap using swap_in_global_binding.
22126
22127 * data.c (store_symval_forwarding, set_internal):
22128 * eval.c (specbind): Remove dead code.
22129
22130 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22131 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22132 Since we do not want to see internal Lisp_*fwd objects here.
22133
221342007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22135
22136 * sysdep.c (init_system_name): Use getaddrinfo if available.
22137
22138 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22139 (x_scroll_bar_note_movement): start, end, with, height in struct
22140 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22141
221422007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22143
22144 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22145
221462007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22147
22148 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22149 This undoes Richard's change of 14-Oct-2002.
22150
22151 * alloc.c (allocate_other_vector):
22152 * lisp.h (allocate_other_vector): Remove.
22153
22154 * window.c (struct save_window_data): Move non-lisp data to the end
22155 and make it `int' rather than Lisp_Object.
22156 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22157 Done wrap/unwrap integer values.
22158 (Fset_window_configuration, compare_window_configurations):
22159 Update use of fields to their new types.
22160
22161 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22162 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22163 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22164 (SET_SCROLL_BAR_X_WINDOW): Remove.
22165 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22166 Access the new x_window field directly.
22167 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22168 Don't wrap/unwrap integers into Lisp_Objects.
22169 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22170 (x_scroll_bar_report_motion):
22171 Don't wrap/unwrap integers into Lisp_Objects.
22172 (x_term_init): Use SDATA.
22173 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22174 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22175 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22176 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22177 * xfns.c (x_set_background_color):
22178 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22179 Access the new x_window field directly.
22180
22181 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22182 (allocate_pseudovector): Make non-static.
22183
22184 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22185 (allocate_pseudovector): Declare.
22186 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22187
221882007-11-15 Andreas Schwab <schwab@suse.de>
22189
22190 * editfns.c (Fformat): Correctly format EMACS_INT values.
22191 Also take precision into account when formatting an integer.
22192
22193 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22194
221952007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22196
22197 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22198 (syms_of_keyboard): Defsubr it.
22199
22200 * data.c (swap_in_global_binding): Fix longstanding bug where
22201 store_symval_forwarding was not called with the right second argument,
22202 thus causing objfwd-ing from being dropped.
22203
222042007-11-14 Juanma Barranquero <lekktu@gmail.com>
22205
22206 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22207 (Fx_display_pixel_height, Fx_display_planes)
22208 (Fx_display_color_cells, Fx_server_max_request_size)
22209 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22210 (Fx_display_visual_class, Fx_display_save_under):
22211 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22212 (Fx_display_pixel_height, Fx_display_planes)
22213 (Fx_display_color_cells, Fx_server_max_request_size)
22214 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22215 (Fx_display_mm_height, Fx_display_mm_width)
22216 (Fx_display_backing_store, Fx_display_visual_class)
22217 (Fw32_select_font, Fx_display_save_under):
22218 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22219 (Fx_display_pixel_height, Fx_display_planes)
22220 (Fx_display_color_cells, Fx_server_max_request_size)
22221 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22222 (Fx_display_save_under): Fix typos in docstrings.
22223
222242007-11-14 Juanma Barranquero <lekktu@gmail.com>
22225
22226 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22227 corresponding to deleted entries; they are an implementation detail.
22228 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22229 Remove variables.
22230 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22231 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22232 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22233 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22234 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22235 (Fw32_define_rgb_color, Fw32_load_color_file)
22236 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22237 Fix typos in docstrings.
22238 (Fx_server_version): Reflow docstring.
22239 (Fw32_shell_execute): Doc fixes.
22240
222412007-11-13 Juanma Barranquero <lekktu@gmail.com>
22242
22243 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22244 if w32_parse_hot_key returned nil.
22245
222462007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22247
22248 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22249
222502007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22251
aac0c6e3
MR
22252 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22253
22254 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22255
22256 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22257 Remove W32_SCROLL_BAR_CLICK_EVENT.
22258
22259 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22260 Add MULTIMEDIA_KEY_EVENT.
22261
22262 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22263 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22264 (make_lispy_event) [WINDOWSNT]: Use it to translate
22265 MULTIMEDIA_KEY_EVENT.
22266
22267 * w32term.h (WM_APPCOMMAND): Define if not already.
22268 (GET_APPCOMMAND_LPARAM): Likewise.
22269
22270 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22271 WM_APPCOMMAND.
22272
22273 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22274 (syms_of_w32fns): Export and initialize it.
22275 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22276
222772007-11-09 Chong Yidong <cyd@stupidchicken.com>
22278
22279 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22280 twice.
22281
22282 * xdisp.c (handle_face_prop): Fix last change.
22283
222842007-11-09 Richard Stallman <rms@gnu.org>
22285
22286 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22287 not just for after-strings and before-strings.
22288 Call face_for_overlay_string and pass the overlay to it.
22289 (handle_display_prop): Determine whether property came from an overlay.
22290 Pass OVERLAY arg to handle_single_display_spec.
22291 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22292 (load_overlay_strings): Fill in it->string_overlays.
22293 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22294
22295 * xfaces.c (face_for_overlay_string): Function renamed from
22296 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22297
22298 * dispextern.h (struct it): New elt string_overlays.
22299 New elt from_overlay, also in stack.
22300 Rearrange a few elements.
22301 (face_for_overlay_string): Decl renamed from
22302 face_at_buffer_position_no_overlays, and add argument.
22303
223042007-11-09 Richard Stallman <rms@gnu.org>
22305
22306 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22307 to get the base face for an overlay string.
22308
22309 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22310
22311 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22312
22313 * xdisp.c (handle_stop): Move some code out of loop.
22314
223152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22316
22317 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22318 Fix conversion from Lisp object to ATSUFontID.
22319
223202007-11-09 Jason Rumney <jasonr@gnu.org>
22321
22322 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22323
223242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22325
22326 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22327 Don't assume regions are aligned to page boundary.
22328 (print_load_command_name): Add LC_UUID if defined.
22329
223302007-11-09 Richard Stallman <rms@gnu.org>
22331
22332 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22333
223342007-11-07 Jason Rumney <jasonr@gnu.org>
22335
22336 * s/windows95.h: Remove.
22337
223382007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22339
22340 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22341 abort with a message on unhandled store_type values.
22342
223432007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22344
22345 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22346 Remove HAVE_X11R5 and HAVE_X11R4.
22347
223482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22349
22350 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22351
223522007-11-01 Johan Bockgård <bojohan@gnu.org>
22353
22354 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22355 Don't set s->stippled_p here, since it has already been set by
22356 x_set_glyph_string_gc from x_draw_glyph_string.
22357
223582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22359
22360 * sunfns.c: Remove file.
22361
22362 * m/sun386.h:
22363 * m/sun2.h:
22364 * m/sparc.h: Remove Sun windows code.
22365
223662007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22367
22368 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22369 (init_keyboard): Set current_kboard's window-system to nil.
22370 (tty_read_avail_input): Typo.
22371 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22372
223732007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22374
22375 * s/usg5-4.h:
22376 * s/usg5-3.h:
22377 * s/ptx.h:
22378 * m/is386.h:
22379 * m/ibmps2-aix.h:
22380 * Makefile.in: Remove all mentions of X10.
22381
22382 * dispnew.c (syms_of_display): Don't mention version 10.
22383
223842007-10-28 Juanma Barranquero <lekktu@gmail.com>
22385
22386 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22387 ($(BLD)/abbrev.$(O)): Remove.
22388
223892007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22390
22391 Rewrite abbrev.c in Elisp.
22392 * image.c (Qcount): Don't declare as extern.
22393 (syms_of_image): Initialize and staticpro `Qcount'.
22394 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22395 * emacs.c (main): Don't call syms_of_abbrev.
22396 * Makefile.in (obj): Remove abbrev.o.
22397 (abbrev.o): Remove.
22398 * abbrev.c: Remove.
22399
224002007-10-26 Martin Rudalics <rudalics@gmx.at>
22401
22402 * window.c (window_min_size_2): Don't count header-line.
22403
224042007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22405
22406 * frame.h (struct frame): Move all bit fields after the first bit
22407 field to take advantage of the available space. Group all the
22408 chars together to reduce wasted space due to padding.
22409
224102007-10-26 Juanma Barranquero <lekktu@gmail.com>
22411
22412 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22413
22414 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22415 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22416 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22417 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22418 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22419 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22420 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22421 (last_marked, mark_object_loop_halt): Make static.
22422
22423 * frame.c (syms_of_frame) <delete-frame-functions>:
22424 Fix typo in docstring.
22425
224262007-10-25 Juanma Barranquero <lekktu@gmail.com>
22427
22428 * w32.c (init_environment): Fix tiny memory leak.
22429 (w32_get_resource): Remove unused variable `ok'.
22430
224312007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22432
22433 Make `window-system' into a keyboard-local variable (rather than
22434 frame-local as done originally by multi-tty).
22435
22436 * keyboard.h (struct kboard): Add Vwindow_system.
22437 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22438 (mark_kboards): Mark Vwindow_system.
22439
22440 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22441 (init_display): Don't set the obsolete `window-system' frame-param.
22442
22443 * xterm.c (x_term_init):
22444 * w32term.c (w32_create_terminal):
22445 * term.c (init_tty): Set Vwindow_system.
22446 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22447 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22448
22449 * xfns.c (Fx_create_frame, x_create_tip_frame):
22450 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22451 * macfns.c (Fx_create_frame):
22452 Don't set the obsolete `window-system' frame-param.
22453
22454 * frame.h (Qwindow_system): Remove.
22455 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22456 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22457
224582007-10-24 Richard Stallman <rms@gnu.org>
22459
22460 * frame.c (x_figure_window_size): For fullscreen case,
22461 set USPosition | PPosition without clobbering rest of window_prompting.
22462
22463 * keyboard.c (Fcurrent_idle_time): Doc fix.
22464
22465 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22466
224672007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22468
22469 * process.c (unwind_request_sigio): Only define if __ultrix__.
22470
22471 * callproc.c (child_setup): Remove spurious *.
22472
22473 * lisp.h (Fget_text_property): Declare.
22474 (have_menus_p): Declare it here rather than in sys-dep header files.
22475 * macterm.h (have_menus_p):
22476 * msdos.h (have_menus_p):
22477 * xterm.h (have_menus_p): Remove.
22478
22479 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22480 (Fmake_variable_frame_local): Just check the variable's const-ness
22481 rather than checking nil or t.
22482
224832007-10-22 Jason Rumney <jasonr@gnu.org>
22484
22485 * w32fns.c: Include math.h.
22486 (w32_abort): Declaration moved to nt/config.nt.
22487
22488 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22489 (abort): Redefinition moved to nt/config.nt.
22490
22491 * m/windowsnt.h: Remove.
22492
224932007-10-22 Juanma Barranquero <lekktu@gmail.com>
22494
22495 * emacs.c (Fdump_emacs): Fix typo in message.
22496 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22497 <installation-directory>: Reflow docstring.
22498
224992007-10-22 Juri Linkov <juri@jurta.org>
22500
22501 * minibuf.c: Allow minibuffer default to be a list of default values.
22502 With empty input use the first element of this list as returned default.
22503 (string_to_object)
22504 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22505 (read_minibuf): If defalt is cons, set histstring to its car.
22506 (Fread_string): If default_value is cons, set val to its car.
22507 (Fread_buffer): If def is cons, use its car.
22508 (Fcompleting_read): If defalt is cons, set val to its car.
22509
225102007-10-21 Michael Albinus <michael.albinus@gmx.de>
22511
22512 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22513
225142007-10-20 Juanma Barranquero <lekktu@gmail.com>
22515
22516 * doc.c (Fdocumentation): Check for advice in all cases.
22517
225182007-10-19 Chong Yidong <cyd@stupidchicken.com>
22519
22520 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22521
225222007-10-19 Richard Stallman <rms@gnu.org>
22523
22524 * doc.c (Fdocumentation): Check for and handle an advised function.
22525
225262007-10-19 Juanma Barranquero <lekktu@gmail.com>
22527
22528 * process.c (Fset_process_filter): Doc fix.
22529
225302007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22531
22532 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22533 which caused key-translation-map to applied repeatedly (thus breaking
22534 double-mode).
22535
225362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22537
22538 * xselect.c (x_own_selection, x_handle_selection_clear)
22539 (x_clear_frame_selections):
22540 * w32menu.c (list_of_panes, list_of_items):
22541 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22542 * textprop.c (validate_plist, interval_has_all_properties)
22543 (interval_has_some_properties, interval_has_some_properties_list)
22544 (add_properties, text_property_list):
22545 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22546 * minibuf.c (Fassoc_string):
22547 * macselect.c (x_own_selection, x_clear_frame_selections)
22548 (Fx_disown_selection_internal):
22549 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22550 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22551
225522007-10-17 Chong Yidong <cyd@stupidchicken.com>
22553
22554 * process.c: Link to libs for calling res_init() if available.
22555 (Fmake_network_process): Call res_init() before getaddrinfo or
22556 gethostbyname, if possible.
22557
225582007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22559
22560 * lread.c (read1): Set pvectype for char_tables.
22561
22562 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22563 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22564 Add type checks.
22565 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22566
22567 * alloc.c (free_misc): Use XMISCTYPE.
22568 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22569
225702007-10-17 Glenn Morris <rgm@gnu.org>
22571
22572 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22573 (syms_of_minibuf): Add Qcompletion_ignore_case.
22574 * dired.c (Qcompletion_ignore_case): Change to external.
22575 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22576 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22577 (Fread_file_name): Use it rather than intern'ing.
22578
22579 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22580 (Fread_coding_system): Ignore case of user input.
22581
225822007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22583
22584 * xdisp.c (handle_display_prop): Ignore display specs after
22585 replacing one when string text is being replaced.
22586 (handle_single_display_spec): Pretend as if characters with display
22587 property haven't been consumed only when buffer text is being replaced.
22588
225892007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22590
22591 * xfns.c (Fx_create_frame, Fx_display_list):
22592 * window.c (window_fixed_size_p, enlarge_window)
22593 (shrink_window_lowest_first):
22594 * macterm.c (init_font_name_table):
22595 * macfns.c (Fx_create_frame, Fx_display_list):
22596 * lread.c (close_load_descs):
22597 * keyboard.c (read_char_x_menu_prompt):
22598 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22599 * coding.c (code_convert_region_unwind): Test the type of an object
22600 rather than just !NILP before extracting data from it.
22601
22602 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22603
22604 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22605 (XMISCANY): New macro.
22606 (XMISCTYPE): Use it.
22607 (struct Lisp_Misc_Any): New type.
22608 (union Lisp_Misc): Use it.
22609 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22610 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22611 (find_symbol_value, set_internal, default_value, Fset_default)
22612 (Fmake_variable_buffer_local, Fmake_local_variable)
22613 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22614 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22615 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22616 * alloc.c (allocate_buffer): Set the size and tag.
22617 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22618 Use XMISCANY.
22619 (die): Follow the GNU convention for error messages.
22620 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22621 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22622 tag any more.
22623 (set_buffer_internal_1):
22624 * frame.c (store_frame_param):
22625 * eval.c (specbind):
22626 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22627
22628 * doc.c (Fsnarf_documentation): Simplify.
22629
226302007-10-14 Juanma Barranquero <lekktu@gmail.com>
22631
22632 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22633 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22634
226352007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22636
22637 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22638
226392007-10-14 Juanma Barranquero <lekktu@gmail.com>
22640
22641 * eval.c (do_autoload): Don't save autoloads.
22642
22643 * data.c (Ffset): Save autoload of the function being set.
22644
226452007-10-07 John Paul Wallington <jpw@pobox.com>
22646
22647 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22648 parameter before setting up faces.
22649
226502007-10-13 Eli Zaretskii <eliz@gnu.org>
22651
22652 * ccl.c (Fregister_code_conversion_map):
22653 * keyboard.c (append_tool_bar_item): Reformat last change.
22654
22655 * lisp.h (eabs): Rename from `abs'. All callers changed.
22656
226572007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22658
22659 * buffer.c (add_overlay_mod_hooklist):
22660 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22661 * fontset.c (make_fontset):
22662 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22663 (append_tool_bar_item):
22664 * macmenu.c (grow_menu_items):
22665 * w32menu.c (grow_menu_items):
22666 * xmenu.c (grow_menu_items): Use larger_vector.
22667
226682007-10-13 Eli Zaretskii <eliz@gnu.org>
22669
22670 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22671 selected frame'' on MSDOS).
22672
226732007-10-12 Martin Rudalics <rudalics@gmx.at>
22674
22675 * frame.c (Qexplicit_name): New variable.
22676 (x_report_frame_params): Report it in parameter alist.
22677 (syms_of_frame): Intern and staticpro it.
22678
226792007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22680
22681 * macfns.c (x_create_tip_frame): Set terminal for frame.
22682
226832007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22684
22685 * frame.c (Qenvironment): Remove.
22686 (syms_of_frame) <Qenvironment>: Don't initialize.
22687 (Fdelete_frame): Don't treat the `environment' param specially.
22688 * frame.h (Qenvironment): Don't declare.
22689 * callproc.c (set_initial_environment): Don't set unused frame param.
22690
22691 * frame.c (Fframe_with_environment): Remove.
22692 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22693
22694 * lisp.h (Fframe_with_environment): Don't declare.
22695
226962007-10-10 Juanma Barranquero <lekktu@gmail.com>
22697
22698 * indent.c (indent_tabs_mode, last_known_column)
22699 (last_known_column_modified): Make static.
22700 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22701
227022007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22703
22704 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22705
227062007-10-09 Jason Rumney <jasonr@gnu.org>
22707
22708 * w32term.c (x_set_window_size): Disable code that attempts to tell
22709 Lisp code about a size change before it actually happens.
22710
227112007-10-09 Richard Stallman <rms@gnu.org>
22712
22713 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22714 return HANDLED_RETURN.
22715
227162007-10-08 Martin Rudalics <rudalics@gmx.at>
22717
22718 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22719 when there's an unread command event.
22720
22721 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22722 window autoselection act appropriately when leaving selected frame.
22723 (syms_of_frame): Initialize focus_follows_mouse.
22724 * frame.h (focus_follows_mouse): Extern it.
22725 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22726 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22727 * msdos.c (dos_rawgetc): Likewise.
22728 * w32term.c (w32_read_socket): Likewise.
22729 * xterm.c (handle_one_xevent): Likewise.
22730 * xdisp.c (syms_of_xdisp): In doc-string of
22731 mouse-autoselect-window mention focus-follows-mouse.
22732
227332007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22734
22735 * macterm.c (mac_load_query_font): Fix missing return value.
22736 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22737 Add BLOCK_INPUT.
22738
227392007-10-08 Richard Stallman <rms@gnu.org>
22740
22741 * xdisp.c (get_window_cursor_type): Implement documented behavior
22742 for cursor-in-non-selected-windows = t.
22743
227442007-10-08 Jason Rumney <jasonr@gnu.org>
22745
22746 * w32.c (w32_get_resource): Always close registry keys.
22747
227482007-10-08 Jason Rumney <jasonr@gnu.org>
22749
22750 * makefile.w32-in (LIBS): Add COMCTL32.
22751
22752 * w32fns.c (globals_of_w32fns): Init common controls.
22753
227542007-10-08 Richard Stallman <rms@gnu.org>
22755
22756 * image.c (our_memory_buffer): Rename from omfib_buffer.
22757
227582007-10-08 Richard Stallman <rms@gnu.org>
22759
22760 * buffer.c (Foverlays_at): Doc fix.
22761
227622007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22763
22764 * fns.c (Fplist_put): Preserve uneven tail data.
22765
227662007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22767
22768 * termhooks.h (enum event_kind): Remove trailing comma.
22769
22770 * frame.h (enum): Remove trailing comma.
22771
227722007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22773
22774 * w32proc.c (delete_child): Don't terminate threads of zombies.
22775
227762007-10-08 Martin Rudalics <rudalics@gmx.at>
22777
22778 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22779
22780 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22781 last-repeatable-command.
22782 (init_kboard): Initialize Vlast_repeatable_command.
22783 (command_loop_1): Set it to real_this_command unless that was
22784 bound to an input event.
22785 (mark_kboards): Mark it.
22786
227872007-10-08 Richard Stallman <rms@gnu.org>
22788
22789 * eval.c (condition-case): Doc fix.
22790
227912007-10-08 Masatake YAMATO <jet@gyve.org>
22792
22793 * xfaces.c (tty_supports_face_attributes_p): Fix code
22794 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22795 was copied and not edited.
22796
227972007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22798
22799 Add new `input-decode-map' keymap and use it for terminal
22800 escape sequences.
22801 * keyboard.h (struct kboard): Add Vinput_decode_map.
22802 Remove Vlocal_key_translation_map.
22803 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22804 (init_kboard): Init input-decode-map.
22805 Replace local-key-translation-map back with key-translation-map.
22806 (syms_of_keyboard): Declare input-decode-map.
22807 Remove local-key-translation-map. Update docstrings.
22808 (mark_kboards): Mark Vinput_decode_map.
22809 Don't mark Vlocal_key_translation_map.
22810 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22811 Replace local-key-translation-map back with key-translation-map.
22812 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22813 Bind in input-decode-map rather than function-key-map.
22814
22815 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22816 This was made redundant by the previous introduction of XSETPVECTYPE.
22817
228182007-10-09 Richard Stallman <rms@gnu.org>
22819
22820 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22821
228222007-09-29 Richard Stallman <rms@gnu.org>
22823
22824 * eval.c (internal_condition_case_2, internal_condition_case_1)
22825 (internal_condition_case): Reenable abort if x_catching_errors ()
22826 to see if that really happens and why.
22827
228282007-10-06 Andreas Schwab <schwab@suse.de>
22829
22830 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22831
228322007-10-04 Juanma Barranquero <lekktu@gmail.com>
22833
22834 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22835
228362007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22837
22838 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22839
228402007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22841
22842 * window.h (struct window):
22843 * window.c (struct save_window_data, struct saved_window):
22844 * termhooks.h (struct terminal):
22845 * process.h (struct Lisp_Process):
22846 * frame.h (struct frame):
22847 * buffer.h (struct buffer):
22848 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22849 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22850 The size field of (pseudo)vectors is now unsigned.
22851 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22852
22853 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22854 Turn `count' into an integer.
22855
22856 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22857 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22858 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22859 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22860 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22861
22862 * alloc.c (allocate_pseudovector): New fun.
22863 (ALLOCATE_PSEUDOVECTOR): New macro.
22864 (allocate_window, allocate_terminal, allocate_frame)
22865 (allocate_process): Use it.
22866 (mark_vectorlike): New function.
22867 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22868 (mark_terminals): Use it.
22869 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22870 (Fmake_byte_code): Use XSETPVECTYPE.
22871
22872 * frame.c (Fframe_parameters): Minor simplification.
22873
22874 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22875
22876 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22877
22878 * buffer.c (Fget_buffer_create, init_buffer_once):
22879 * lread.c (defsubr):
22880 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22881
22882 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22883 defined differently in the m/*.h files.
22884 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22885 (XSETPVECTYPE): New macro.
22886 (XSETPSEUDOVECTOR): Use it.
22887
22888 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22889 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22890
22891 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22892 * lread.c (defvar_per_buffer):
22893 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22894
22895 * window.c (candidate_window_p): Only consider as visible frames that
22896 are on the same terminal.
22897
22898 * m/ibms390x.h (MARKBIT): Remove unused macro.
22899
229002007-10-01 Juanma Barranquero <lekktu@gmail.com>
22901
22902 * lread.c (Fload): Fix typo in docstring.
22903
229042007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22905
22906 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22907 of a non-zero value can't yield zero.
22908
229092007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22910
22911 * term.c (term_clear_mouse_face, term_mouse_highlight)
22912 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22913
22914 * print.c (safe_debug_print): Use XHASH.
22915
22916 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22917 Lisp elements such as tags.
22918 (XHASH): New macro.
22919 (EQ): Use it.
22920 (SREF, SSET, STRING_COPYIN): Use SDATA.
22921 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22922
22923 * alloc.c (mark_terminal): Remove left-over declaration.
22924 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22925 (allocate_vectorlike): Remove type argument. Adjust callers.
22926 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22927 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22928
22929 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22930 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22931 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22932 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22933 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22934 Use them.
22935
22936 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22937 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22938 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22939
229402007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22941
22942 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22943 loaded by default.
22944
229452007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22946
22947 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22948 on this tty.
22949 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22950
22951 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22952 Update all users.
22953 (handle_one_term_event): Use Gpm_DrawPointer.
22954 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22955 Signal errors instead of returning nil. Always return nil.
22956 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22957 Make it a noop if gpm-mouse was not activated.
22958 (syms_of_term): Update names.
22959
229602007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22961
22962 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22963 (init_sys_modes): Check that gpm_tty is the current tty.
22964
22965 * alloc.c (allocate_terminal): Set the vector size to only count the
22966 lisp fields. Initialize those to nil.
22967 (mark_object): Don't treat terminals specially.
22968 (mark_terminal): Remove.
22969 (mark_terminals): Use mark_object instead.
22970
22971 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22972 the GC to the beginning.
22973
22974 * indent.h:
22975 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22976
22977 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22978
229792007-09-25 Jason Rumney <jasonr@gnu.org>
22980
22981 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22982
22983 * w32console.c (create_w32cons_output): Remove.
22984
22985 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22986
22987 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22988 (reset_sys_modes): Use reset_terminal_modes_hook.
22989
229902007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22991
22992 * eval.c (do_autoload): Don't output any message.
22993
229942007-09-24 Juri Linkov <juri@jurta.org>
22995
22996 * emacs.c (standard_args): Change priority of "--no-splash"
22997 from 40 to 3. Add "--no-desktop" with the same priority.
22998
229992007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23000
23001 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23002 and optimize the case where they are all 1.
23003
230042007-09-23 Johannes Weiner <hannes@saeurebad.de>
23005
23006 * lisp.h (abs): Define if not defined.
23007 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23008 Don't define `abs', since it's defined in lisp.h.
23009
230102007-09-22 Eli Zaretskii <eliz@gnu.org>
23011
23012 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23013 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23014 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23015 (init_tty): Use DEV_TTY instead of "/dev/tty".
23016 [WINDOWSNT]: No need to protect from NAME arg being null.
23017
230182007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23019
23020 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23021 up the tty state.
23022
230232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23024
23025 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23026 (gpm_tty): Change its type.
23027 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23028 (gpm_tty): Change its type and initialize it.
23029 (Fterm_open_connection): Check the frame is indeed a tty.
23030 Use the new gpm_tty.
23031 (Fterm_close_connection): Use the new gpm_tty.
23032 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23033 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23034
230352007-09-21 Juanma Barranquero <lekktu@gmail.com>
23036
23037 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23038 underline_color, to draw strike-through.
23039
230402007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23041
23042 * lisp.h (allocate_terminal): Declare.
23043
23044 * window.c (candidate_window_p): Consider frames that are being placed
23045 by the user as somewhere between visible and iconified.
23046 (window_loop): Prefer windows on the current frame.
23047 (Fselect_window): Move the use of select-frame to the beginning so we
23048 can just delegate all the work (it'll call us back anyway).
23049
23050 * frame.c (Qdisplay_environment_variable):
23051 * frame.h (Qdisplay_environment_variable): Delete.
23052
23053 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23054 of the first arg, since that value may be a union.
23055
23056 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23057 parameter rather than Qdisplay_environment_variable. If all else
23058 fails, look for DISPLAY in initial-environment.
23059
230602007-09-21 Glenn Morris <rgm@gnu.org>
23061
23062 * Makefile.in (emacstool): Remove target.
23063 (lisp, shortlisp): Remove termdev.elc.
23064
230652007-09-21 Markus Triska <markus.triska@gmx.at>
23066
23067 * xterm.c (x_delete_display): Compile session management conditionally.
23068
230692007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23070
23071 * callproc.c (getenv_internal_1): New function.
23072 (getenv_internal): Use it.
23073 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23074
23075 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23076 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23077 (Fset_terminal_parameter): Work with dead terminals as well.
23078 (Fmodify_terminal_parameters): Remove.
23079
23080 * terminal.c (get_terminal): Handle terminals.
23081 Make sure the terminal returned is live.
23082 (create_terminal): Use allocate_terminal.
23083 (mark_terminals): Move to alloc.c.
23084 (delete_terminal): Use terminal->name as liveness status.
23085 NULL out fields after freeing their contents.
23086 Don't deallocate the object.
23087 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23088 rather than an int.
23089 (Fterminal_live_p): Accept non-integer arguments.
23090 (Fterminal_list): Return terminal objects rather than an ints.
23091
23092 * alloc.c (enum mem_type): New member for `terminal' objects.
23093 (allocate_terminal): New function.
23094 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23095 Handle terminals.
23096 (mark_terminal): New fun.
23097 (mark_terminals): Move from terminal.c.
23098
23099 * term.c (get_tty_terminal): Don't treat output_initial specially.
23100 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23101 (delete_tty): Use terminal->name as liveness status.
23102
23103 * termhooks.h (struct terminal): Make it into a pseudovector.
23104 Remove `deleted' replaced by checking `name's nullness.
23105
23106 * print.c (print_object): Handle terminals.
23107
23108 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23109 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23110
23111 * frame.c (make_terminal_frame):
23112 * keyboard.c (tty_read_avail_input):
23113 * w32term.c (x_delete_terminal):
23114 * xfns.c (Fx_create_frame, x_create_tip_frame):
23115 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23116
231172007-09-20 Glenn Morris <rgm@gnu.org>
23118
23119 * process.c (Fmake_network_process): Doc fix.
23120
231212007-09-19 Jason Rumney <jasonr@gnu.org>
23122
23123 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23124
231252007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23126
23127 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23128 Fix a C warning regarding variable constness.
23129
23130 * xterm.c (handle_one_xevent): Fix a C warning.
23131
231322007-09-18 Jason Rumney <jasonr@gnu.org>
23133
23134 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23135
231362007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23137
23138 * gtkutil.c (gdpy_def): New variable.
23139 (xg_initialize): Initialize gdpy_def.
23140 (xg_display_close): If no other display exists, set gdpy_def to a
23141 new connection.
23142
231432007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23144
23145 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23146 when we have no file name for the icon.
23147 (xg_tool_bar_expose_callback): Remove.
23148 (xg_create_tool_bar): Don't connect expose signal to
23149 xg_tool_bar_expose_callback.
23150 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23151
231522007-09-16 Andreas Schwab <schwab@suse.de>
23153
23154 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23155 values instead of zapping them.
23156
231572007-09-14 Glenn Morris <rgm@gnu.org>
23158
23159 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23160 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23161 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23162 scope and rename to omfib_buffer for clarity.
23163 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23164
231652007-09-14 Kenichi Handa <handa@m17n.org>
23166
23167 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23168
231692007-09-13 Jason Rumney <jasonr@gnu.org>
23170
23171 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23172
23173 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23174
23175 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23176 (mac_term_init): Call here instead, passing rif.
23177
231782007-09-13 Glenn Morris <rgm@gnu.org>
23179
23180 * s/hpux.h: No longer define `static' as nothing.
23181
231822007-09-13 Johan Bockgård <bojohan@gnu.org>
23183
23184 * callint.c (Fcall_interactively): Remove unused var `fun'.
23185
231862007-09-12 Romain Francoise <romain@orebokech.com>
23187
23188 * window.c (prefer_window_split_horizontally, display_buffer):
23189 Revert 2007-09-08 change.
23190
231912007-09-12 Glenn Morris <rgm@gnu.org>
23192
23193 * alloca.c: Remove file.
23194 * Makefile.in (alloca): Do not undef.
23195 (allocaobj, alloca.o): Remove.
23196 (otherobj): Remove allocaobj.
23197 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23198 * regex.c (C_ALLOCA): Remove all references and code that was only
23199 used when this was defined.
23200 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23201 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23202 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23203
23204 * Makefile.in (SOURCES, unlock, relock): Delete.
23205
23206 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23207 (menu_grab_callback): All uses changed.
23208
23209 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23210 (x_reply_selection_request): All uses changed.
23211
232122007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23213
23214 * lread.c (load_warn_old_style_backquotes): Change message to look
23215 better when it appears in the middle of byte-compiler messages.
23216
232172007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23218
23219 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23220
23221 * xterm.c (x_create_terminal): Add comment.
23222
23223 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23224
232252007-09-10 Richard Stallman <rms@gnu.org>
23226
23227 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23228
232292007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23230
23231 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23232 (DEFUN): Document `intspec', use it instead of `prompt'.
23233
23234 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23235
23236 * data.c (Finteractive_form): If the interactive specification starts
23237 with a `(', use it as a Lisp form.
23238
23239 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23240 name and file modes.
23241
23242 * callint.c (Fcall_interactively): Comment fixes.
23243
232442007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23245
23246 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23247 and compiled functions.
23248
232492007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23250
23251 * window.c (prefer_window_split_horizontally): New variable.
23252 (display_buffer): Consider splitting window horizontally depending
23253 on prefer_window_split_horizontally.
23254
232552007-09-08 Eli Zaretskii <eliz@gnu.org>
23256
23257 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23258
232592007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23260
23261 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23262
23263 * frame.c (x_set_frame_parameters): Check number is positive before
23264 using XFASTINT.
23265
23266 * window.c (freeze_window_start): Don't presume selected_window holds
23267 a window object.
23268 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23269
232702007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23271
23272 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23273
232742007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23275
23276 * window.c (Vsplit_window_preferred_function): New var.
23277 (Fdisplay_buffer): Use it.
23278 (syms_of_window): Export, and initialize it.
23279
232802007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23281
23282 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23283
232842007-09-06 Glenn Morris <rgm@gnu.org>
23285
23286 * gtkutil.c (menu_grab_callback) <cnt>:
23287 * xselect.c (x_reply_selection_request) <cnt>: Move static
23288 variable to file scope.
23289
232902007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23291
23292 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23293 consistent values of selected_frame and selected_window.
23294
232952007-09-04 Jason Rumney <jasonr@gnu.org>
23296
23297 * w32console.c (initialize_w32_display): Zero unused hooks.
23298
232992007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23300
23301 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23302 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23303
233042007-09-04 Jason Rumney <jasonr@gnu.org>
23305
23306 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23307 in w32console.c. Set up input. Remove XXX comments that have been
23308 confirmed as correct.
23309
23310 * s/ms-w32.h (MULTI_KBOARD): Define.
23311
23312 * w32console.c (one_and_only_w32cons): Remove.
23313 (initialize_w32_display): Take terminal argument.
23314
23315 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23316 initialize_w32_display.
23317 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23318
23319 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23320
23321 * keyboard.c (discard_mouse_events): Discard it.
23322 (make_lispy_event): Translate it to a lisp event.
23323 (lispy_wheel_names): Add wheel-left and right events.
23324 (syms_of_keyboard): Enlarge wheel_syms.
23325
23326 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23327 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23328
23329 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23330
23331 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23332 from WM_MOUSEHWHEEL.
23333 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23334
23335 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23336 terminal.
23337
23338 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23339 keyboard for the terminal.
23340
233412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23342
23343 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23344 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23345 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23346 and resume-tty-function to resume-tty-hook.
23347 (Fsuspend_tty, Fresume_tty): Use new names.
23348
233492007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23350
23351 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23352 if it starts with "n:".
23353
233542007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23355
23356 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23357
233582007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23359
23360 * frame.h:
23361 * frame.c (Qterm_environment_variable): Remove.
23362 (syms_of_frame): Don't init and staticpro it.
23363
23364 * callproc.c (getenv_internal): Remove special case for $TERM.
23365
23366 * callproc.c (Vinitial_environment): New variable.
23367 (set_initial_environment): Initialize it.
23368 (syms_of_callproc): Declare it.
23369 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23370 TERM under which a process runs is never related to the TERM in which
23371 Emacs is running.
23372
233732007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23374
23375 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23376 * s/darwin.h: ... do it here.
23377
233782007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23379
23380 * lisp.h (set_initial_environment): Rename from set_global_environment.
23381
23382 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23383 removed by mistake on the multi-tty branch.
23384
23385 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23386 (Fmodify_frame_parameters): Return a value.
23387
23388 * image.c (png_load): Comment-out var only used in commented-out code.
23389
23390 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23391 before passing it to mark_object.
23392
23393 * xfaces.c (internal_resolve_face_name): Return a value.
23394 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23395
23396 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23397 (x_icon): Comment-out var only used in commented-out code.
23398
233992007-08-29 Romain Francoise <romain@orebokech.com>
23400
23401 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23402 QUIT hasn't been provided.
23403
234042007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23405
23406 * callproc.c (child_setup, getenv_internal): Use the
23407 display-environment-variable and term-environment-variable frame params.
23408 (set_initial_environment): Initialise Vprocess_environment.
23409
23410 * config.in: Disable multi-keyboard support on a mac.
23411
23412 * frame.c (Qterm_environment_variable)
23413 (Qdisplay_environment_variable): New variables.
23414 (syms_of_frame): Intern and staticpro them.
23415 (Fmake_terminal_frame): Disable output method test.
23416
23417 * frame.h: Declare them here.
23418
23419 * macfns.c (x_set_mouse_color): Get rif from the frame.
23420 (x_set_tool_bar_lines): Don't use updating_frame.
23421 (mac_window): Add 2 new parameters for consistency with other systems.
23422 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23423 frame parameters following what is done in X11 and w32. Don't use
23424 FRAME_MAC_DISPLAY_INFO.
23425 (Fx_open_connection, start_hourglass): Remove window-system check.
23426 (x_create_tip_frame): Get the keyboard from the terminal.
23427
23428 * macmenu.c: Reorder includes.
23429 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23430
23431 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23432 terminal parameter.
23433 (x_clear_frame): Add a frame parameter.
23434 (note_mouse_movement): Get rif from the frame.
23435 (mac_term_init): Initialize the terminal.
23436 (mac_initialize): Make static and move terminal initialization ...
23437 (mac_create_terminal): ... to this new function.
23438
23439 * macterm.h (struct mac_display_info): Add terminal.
23440 (mac_initialize): Delete declaration.
23441
23442 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23443
23444 * sysdep.c: Comment out text after #endif.
23445
23446 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23447 is defined. Better initialize ttys in windows. Use terminal
23448 specific mouse_position_hook.
23449
23450 * termhooks.h (union display_info): Add mac_display_info.
23451
23452 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23453 Set the default minibuffer frame, window_system and the rest of the
23454 frame parameters following what is done in X11.
23455
23456 * w32term.c (w32_initialize): Make static.
23457
23458 * xselect.c (x_handle_selection_clear): Only access
23459 terminal->kboard when MULTI_KBOARD is defined.
23460
23461 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23462 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23463
234642007-08-29 Jason Rumney <jasonr@gnu.org>
23465
23466 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23467 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23468
23469 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23470 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23471
23472 * keyboard.c (restore_kboard_configuration): Only define when
23473 MULTI_KBOARD defined.
23474
23475 * makefile.w32-in: Update dependancies from Makefile.in.
23476 (OBJ1): Add terminal.$(O)
23477
23478 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23479 Don't define function body.
23480 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23481
23482 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23483
23484 * w32.c (request_sigio, unrequest_sigio): Remove.
23485
23486 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23487 (w32con_clear_frame, w32con_clear_end_of_line)
23488 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23489 (w32con_delete_glyphs, w32con_set_terminal_window)
23490 (scroll_line, w32_sys_ring_bell): Add frame arg.
23491 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23492 Add terminal arg.
23493 (PICK_FRAME): Remove.
23494 (w32con_write_glyphs): Use frame specific terminal coding.
23495 (one_and_only_w32cons): New global variable.
23496 (initialize_w32_display): Use it for storing hooks.
23497 (create_w32cons_output): New function.
23498
23499 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23500 arg a frame.
23501
23502 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23503 Set window_system.
23504 (x_set_tool_bar_lines): Don't use updating_frame.
23505 (Fx_create_frame): Set terminal and ref count.
23506 (Fx_open_connection): Remove window-system check.
23507
23508 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23509
23510 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23511 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23512 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23513 Add frame arg.
23514 (x_delete_terminal, w32_create_terminal): New functions.
23515 (w32_term_init): Create a terminal.
23516 (w32_initialize): Move terminal specific initialization to
23517 w32_create_terminal.
23518
23519 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23520 (w32_clear_rect, w32_clear_area): Use background from frame.
23521 (w32_display_info): Add terminal.
23522 (w32_sys_ring_bell, x_delete_display): Declare here.
23523
23524 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23525
23526 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23527
235282007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23529
23530 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23531 Fix get_named_tty calls for the controlling tty.
23532
235332007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23534
194d44e7 23535 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23536
235372007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23538
23539 * term.c (tty_insert_glyphs): Add missing first parameter.
23540
235412007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23542
23543 * buffer.c (Fbuffer_list, Fbury_buffer):
23544 Take frame->buried_buffer_list into account.
23545
23546 * cm.c (current_tty): New variable, for cmputc().
23547 (cmputc): Use it.
23548 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23549 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23550 (cmgoto): Add tty parameter. Pass it on to calccost().
23551 Use emacs_tputs() instead of tputs().
23552
23553 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23554 tputs().
23555 (current_tty): New variable, for cmputc().
23556 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23557
23558 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23559 (internal_condition_case, internal_condition_case_1)
23560 (internal_condition_case_2): Don't abort when x_catching_errors.
23561
23562 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23563 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23564 prevent crashes caused by bogus longjmps in read_char.
23565
23566 * keymap.h (Fset_keymap_parent): Add EXFUN.
23567
23568 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23569 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23570 Remove redundant definition.
23571
23572 * macfns.c (x_set_mouse_color, x_make_gc):
23573 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23574
23575 * w32term.c (x_free_frame_resources):
23576 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23577 (w32_initialize): Use the accessor macros for terminal characteristics.
23578
23579 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23580 Use the accessor macros for terminal characteristics.
23581 * msdos.c (internal_terminal_init): Use the accessor macros for
23582 terminal characteristics.
23583 (ScreenVisualBell, internal_terminal_init):
23584 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23585
23586 * termopts.h (no_redraw_on_reenter): Declare.
23587
23588 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23589 (mark_terminals, mark_ttys): Declare.
23590 (Fgarbage_collect): Call them.
23591 (mark_object): Mark buried_buffer_list.
23592
23593 * prefix-args.c: Include stdlib.h for exit.
23594
23595 * syssignal.h: Add comment.
23596
23597 * indent.c: Include stdio.h.
23598
23599 * window.h (Vinitial_window_system): Declare.
23600 (Vwindow_system): Delete declaration.
23601
23602 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23603
23604 * image.c (lookup_image): Don't initialize `c' until the xasserts
23605 have been run.
23606
23607 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23608 FRAME_FOREGROUND_PIXEL.
23609
23610 * print.c (print_preprocess): Don't lose print_depth levels while
23611 iterating.
23612
23613 * widget.c (update_from_various_frame_slots):
23614 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23615
23616 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23617 frames.
23618 (window_internal_height): Remove bogus make_number call.
23619 (init_window_once): Call make_terminal_frame with two zero parameters.
23620
23621 * fileio.c (Fread_file_name): Update comment.
23622
23623 * callint.c (Fcall_interactively):
23624 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23625 Make sure it is correctly unwound.
23626
23627 * xsmfns.c (x_session_close): New function.
23628
23629 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23630 Delete declarations.
23631
23632 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23633 (x_output): Remove background_pixel and foreground_pixel fields.
23634 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23635 (x_delete_device, x_session_close): Declare.
23636
23637 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23638 (read_filtered_event): Call `read_char' with a local
23639 `wrong_kboard_jmpbuf'.
23640
23641 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23642 Don't call single_kboard_state. Use FRAME_RIF.
23643
23644 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23645 systems.
23646
23647 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23648 (Fframe_with_environment, Fset_input_meta_mode)
23649 (Fset_quit_char): EXFUN.
23650 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23651 (init_sys_modes, reset_sys_modes): Update prototypes.
23652 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23653
23654 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23655 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23656 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23657 Delete declarations.
23658 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23659 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23660 New declarations.
23661
23662 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23663 already does that during init_display(). Call syms_of_keymap
23664 before syms_of_keyboard. Call `syms_of_terminal'.
23665 Call set_initial_environment, not set_process_environment.
23666 (shut_down_emacs): Call reset_all_sys_modes() instead of
23667 reset_sys_modes().
23668
23669 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23670 (internal_resolve_face_name, resolve_face_name_error): New functions.
23671 (resolve_face_name): Protect against loops and errors thrown by Fget.
23672 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23673 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23674
23675 * scroll.c: Replace CURTTY() with local variables throughout the
23676 file (where applicable).
23677 (calculate_scrolling, calculate_direct_scrolling)
23678 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23679 characteristics.
23680
23681 * keymap.c (Vfunction_key_map): Remove.
23682 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23683 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23684 (Vkey_translation_map): Remove.
23685 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23686 (Fdescribe_buffer_bindings)
23687 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23688 Update for terminal-local key-translation-map.
23689
23690 * Makefile.in (callproc.o): Update dependencies.
23691 (lisp, shortlisp): Add termdev.elc.
23692 (obj): Add terminal.o.
23693 (terminal.o): Add dependencies.
23694 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23695 (data.o, fns.o): Add termhooks.h dependency.
23696 (SOME_MACHINE_LISP): Add dnd.elc.
23697 (minibuf.o): Fix typo.
23698 Update dependencies.
23699
23700 * data.c (do_symval_forwarding, store_symval_forwarding)
23701 (find_symbol_value): Use the selected frame's keyboard, not
23702 current_kboard.
23703
23704 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23705 Vwindow_system.
23706
23707 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23708 Fmenu_bar_open.
23709 (syms_of_xmenu): Update defsubr.
23710 (mouse_position_for_popup, Fx_popup_menu)
23711 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23712 (set_frame_menubar, free_frame_menubar)
b97439ce 23713 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23714 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23715 an X frame.
23716
23717 * xselect.c (x_own_selection): Abort if not an X frame.
23718 (some_frame_on_display): Check if it is an X frame.
23719 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23720
23721 * coding.c: Include frame.h and termhooks.h.
23722 (terminal_coding, keyboard_coding): Delete.
23723 (Fset_terminal_coding_system_internal)
23724 (Fset_keyboard_coding_system_internal)
23725 (Fkeyboard_coding_system)
23726 (Fterminal_coding_system): Add a terminal parameter.
23727 Get terminal_coding from the terminal.
23728 (init_coding_once): Don't call setup_coding_system here.
23729
23730 * dispextern.h (set_scroll_region, turn_off_insert)
23731 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23732 (tty_clear_end_of_line, tty_setup_colors)
23733 (delete_tty, updating_frame)
23734 (produce_special_glyphs, produce_glyphs, write_glyphs)
23735 (insert_glyphs): Remove.
23736 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23737 (tty_turn_off_highlight, get_tty_size): Add declaration.
23738 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23739
23740 * frame.h (enum output_method): Add output_initial.
23741 (struct x_output): Delete.
23742 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23743 Access foreground_pixel and background_pixel directly from the frame.
23744 (tty_display): Delete.
23745 (struct frame): Add buried_buffer_list, foreground_pixel,
23746 background_pixel and terminal. Delete kboard.
23747 (union output_data): Add tty.
23748 (FRAME_KBOARD): Get the kboard from the terminal.
23749 (FRAME_INITIAL_P): New macro.
23750 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23751 (Qterm_environment_variable, Qdisplay_environment_variable)
23752 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23753 New declarations.
23754
23755 * termchar.h (tty_output, tty_display_info): New structures.
23756 (tty_list): Declare.
23757 (FRAME_TTY, CURTTY): New macros.
23758 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23759 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23760 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23761 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23762
23763 * callproc.c: Include frame.h and termhooks.h, for terminal
23764 parameters.
23765 (add_env): New function.
23766 (child_setup): Use it.
23767 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23768 (getenv_internal): Fix get_terminal_param call.
23769 (Fgetenv_internal, egetenv): Update doc.
23770 (syms_of_callproc): Initialize Vprocess_environment to nil.
23771 Register and initialize them. Remove obsolete defvars. Update doc
23772 strings.
23773 (child_setup): Handle Vlocal_environment_variables.
23774 (getenv_internal): Add terminal parameter.
23775 Handle Vlocal_environment_variables.
23776 (Fgetenv_internal): Add terminal parameter.
23777 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23778 environment in a frame (not terminal) parameter. Update doc strings.
23779 (set_initial_environment): Rename from set_global_environment.
23780 Store Emacs environment in initial frame parameter.
23781
23782 * xdisp.c (redisplay_internal): Update references to
23783 `previous_terminal_frame'.
23784 (display_mode_line, Fformat_mode_line): Replace calls to
23785 `push_frame_kboard' with `push_kboard'.
23786 (get_glyph_string_clip_rects): Add extra parentheses and
23787 braces to prevent compiler warnings.
23788 (calc_pixel_width_or_height): Add xassert to check that the
23789 frame is alive. Don't call `lookup_image' on a termcap frame.
23790 (message2_nolog, message3_nolog, redisplay_internal)
23791 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23792 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23793 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23794 (Fx_display_pixel_width, Fx_display_pixel_height)
23795 (Fx_display_planes, Fx_display_color_cells)
23796 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23797 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23798 (Fx_display_backing_store, Fx_display_visual_class)
23799 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23800 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23801
23802 * xfns.c (x_set_foreground_color x_set_background_color)
23803 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23804 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23805 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23806 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23807 terminal that is being deleted.
23808 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23809 frame parameter, and make sure it overrides any user-supplied setting.
23810 (Fx_close_connection, Fx_synchronize): Unify argument names with
23811 the rest of the DEFUNs.
23812
23813 * dispnew.c (Fsend_string_to_terminal): Update call to
23814 `get_tty_terminal'.
23815 (Fredraw_frame, Fsend_string_to_terminal)
23816 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23817 FRAME_TERMCAP_P and FRAME_TTY.
23818 (window_change_signal): Don't believe width/height values that are
23819 impossibly small.
23820 (Vinitial_window_system): Rename from Vwindow_system.
23821 (termscript, Wcm, rif): Delete.
23822
23823 * termhooks.h (struct terminal): New struct containing the
23824 previously global text display hooks and new members NAME,
23825 DELETED and PARAM_ALIST.
23826 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23827 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23828 (FRAME_RIF): New macros.
23829 (get_terminal_param, get_device): New declarations.
23830 (termscript): Delete declaration.
23831
23832 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23833 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23834 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23835 FRAME_FOREGROUND_PIXEL.
23836 (x_fully_uncatch_errors): Disable definition.
23837 (x_scroll_bar_expose): Fix reference to foreground pixel.
23838 (XTread_socket): Disable loop on all X displays.
23839 (x_delete_terminal): Don't set terminal->deleted and let
23840 delete_terminal delete the frames on the terminal.
23841 (x_delete_display): Doc update to reflect changes in
23842 delete_terminal.
23843 (x_display_info) <terminal>: Move member earlier in the struct.
23844 (deleting_tty): Remove old variable.
23845 (Fsuspend_tty): Call clear_tty_hooks.
23846 (Fresume_tty, init_tty): Call set_tty_hooks.
23847 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23848 errors on X frames.
23849 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23850 (handle_one_xevent): Initialize `f' to NULL.
23851 (x_delete_terminal, x_create_terminal): New functions.
23852 (XTset_terminal_modes, XTreset_terminal_modes)
23853 (XTread_socket, x_connection_closed, x_term_init)
23854 (x_term_init, x_delete_display): Add terminal parameter.
23855 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23856 X connections.
23857
23858 * frame.c: Include termchar.h.
23859 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23860 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23861 (Qdisplay_environment_variable): New vars.
23862 (Fframep): Deal with output_initial.
23863 (Fframe-live-p): Doc fix.
23864 (Fwindow-system): New function.
23865 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23866 (make_terminal_frame): Don't create frames on a terminal that is
23867 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23868 (store_frame_param): Check for found_for_frame before calling XFRAME.
23869 (Fmake_terminal_frame): Handle NULL tty names correctly.
23870 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23871 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23872 frames to refer to a deleted frame in their 'environment parameter.
23873 (Fframe_with_environment): New function.
23874 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23875 (get_future_frame_param): New function.
23876 (Fmake_terminal_frame): Use it.
23877 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23878
23879 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23880 * sysdep.c (reset_sys_modes): Update for renames.
23881
23882 * keyboard.c (tty_read_avail_input): New function.
23883 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23884 (syms_of_keyboard): Defsubr them.
23885 (Fset_input_meta_mode, Fset_quit_char): New functions.
23886 (Fset_input_mode): Split to above functions.
23887 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23888 parameter. Use it in call to `read_char'.
23889 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23890 Set wrong_kboard_jmpbuf correctly in recursive calls.
23891 Use current_kboard to access Vkeyboard_translate_table.
23892 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23893 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23894 Update longjmp invocations. Remember the original current_kboard,
23895 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23896 changes it. Comment out unnecessary calls to
23897 `record_single_kboard_state' and `any_kboard_state'.
23898 Update recursive calls.
23899 (wrong_kboard_jmpbuf): Remove global variable.
23900 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23901 Handle deleted interrupted_kboards correctly; that is a legal
23902 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23903 and read_char calls. Abort if interrupted_kboard died in read_char.
23904 (any_kboard_state, single_kboard_state)
23905 (push_frame_kboard): Remove function.
23906 (pop_kboard): Switch out of single_kboard mode if the kboard has
23907 been deleted. Remove unused variable. Help debugging by not
23908 changing current_kboard unnecessarily. Set current_kboard to the
23909 kboard of the selected frame when the stored kboard object has
23910 been deleted before pop_kboard.
23911 (temporarily_switch_to_single_kboard): Change first parameter to a
23912 frame pointer. Throw an error when caller wants to change kboards
23913 while in single_kboard mode. Don't push_kboard if we weren't in
23914 single kboard state. Don't pop_kboard if we popped into any
23915 kboard state.
23916 (restore_kboard_configuration): Abort if pop_kboard changed the
23917 kboard in single_kboard mode. Call pop_kboard only after setting
23918 up single_kboard mode.
23919 (Frecursive_edit): Switch to single_kboard mode only in nested
23920 command loops.
23921 (cmd_error, command_loop, command_loop_1, timer_check):
23922 Comment out unnecessary call to `any_kboard_state' and
23923 `record_single_kboard_state'.
23924 (delete_kboard): Exit single_kboard mode if we have just deleted
23925 that kboard. Use FRAME_KBOARD.
23926 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23927 `fatal_error_signal'.
23928 (record_single_kboard_state): Don't push_kboard if we weren't in
23929 single kboard state. Don't pop_kboard if we popped into any
23930 kboard state.
23931 (push_frame_kboard): Rename to push_kboard.
23932 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23933 (read_avail_input): Read input from all terminals.
23934 (mark_kboards): Also mark Vkeyboard_translate_table.
23935 (kbd_buffer_store_event_hold): Simplify condition.
23936 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23937 (Vkeyboard_translate_table): Move to struct kboard.
23938 (init_kboard): Initialize Vkeyboard_translate_table.
23939 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23940 Vkeyboard_translate_table. Update doc strings. Update docs of
23941 local-function-key-map and function-key-map.
23942
23943 * terminal.c: New file.
23944
23945 * term.c: Include errno.h.
23946 (Vring_bell_function, device_list, initial_device)
23947 (next_device_id, ring_bell, update_begin, update_end)
23948 (set_terminal_window, cursor_to, raw_cursor_to)
23949 (clear_to_end, clear_frame, clear_end_of_line)
23950 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23951 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23952 (syms_of_term): Move their initialization to terminal.c.
23953 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23954 (Ftty_display_color_cells)
23955 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23956 (clear_tty_hooks, set_tty_hooks)
23957 (init_tty, maybe_fatal): New functions.
23958 (Ftty_type): Return nil if terminal is not on a tty instead of
23959 throwing an error. Doc update.
23960 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23961 Doc update. Initialize new subrs and variables.
23962 (delete_tty): Use terminal->deleted.
23963 (tty_set_terminal_modes): Rename from set_terminal_modes.
23964 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23965 (set_scroll_region): Rename to `tty_set_scroll_region'.
23966 (turn_on_insert): Rename to `tty_turn_on_insert'.
23967 (turn_off_insert): Rename to `tty_turn_off_insert'.
23968 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23969 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23970 (toggle_highligh): Rename to `tty_toggle_highlight'.
23971 (background_highlight): Rename to `tty_background_highlight'.
23972 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23973 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23974 (tty_set_scroll_region, tty_background_highlight)
23975 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23976 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23977 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23978 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23979 Add static modifier.
23980 (tty_reset_terminal_modes, tty_set_terminal_window)
23981 (tty_set_scroll_region, tty_background_highlight)
23982 (tty_highlight_if_desired, tty_cursor_to)
23983 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23984 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23985 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23986 renames.
23987
239882007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23989
23990 * keyboard.c: Qrtl is new.
23991 (parse_tool_bar_item): Handle :rtl keyword.
23992 (syms_of_keyboard): Intern :rtl keyword.
23993
23994 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23995
23996 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23997 so no Lisp code is executed.
23998 (file_for_image, find_rtl_image): New functions.
23999 (xg_get_image_for_pixmap): Use file_for_image.
24000 (update_frame_tool_bar): If direction is RTL, use RTL image if
24001 defined. Use Gtk stock images if defined.
24002
240032007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24004
24005 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24006 for nonexistent or zero-width glyph in composition glyph.
24007
240082007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24009
24010 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24011
24012 * xdisp.c (Finvisible_p): New function.
24013 (syms_of_xdisp): defsubr it.
24014
240152007-08-24 Juanma Barranquero <lekktu@gmail.com>
24016
24017 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24018 Doc fixes.
24019
240202007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24021
24022 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24023
240242007-08-24 Martin Rudalics <rudalics@gmx.at>
24025
24026 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24027 whether decoding has modified buffer contents.
24028
240292007-08-24 Jason Rumney <jasonr@gnu.org>
24030
24031 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24032 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24033 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24034 (init_svg_functions) [HAVE_NTGUI]: New function.
24035 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24036 (svg_load_image): Use them.
24037 (svg_load_image) [HAVE_NTGUI]: Implement background.
24038
240392007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24040
24041 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24042 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24043 (LIBX): Remove @RSVG_LIBS@.
24044 (LIBES): Add $(RSVG_LIBS).
24045
24046 * image.c (svg_load_image): Blend with specified background if exists.
24047 Use IMAGE_BACKGROUND. Add Mac OS Support.
24048
24049 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24050 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24051 Remove macros.
24052 [MAC_OSX] (socket_callback): Do nothing.
24053 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24054 ReceiveNextEvent.
24055 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24056 socket_callback.
24057 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24058
240592007-08-22 Glenn Morris <rgm@gnu.org>
24060
24061 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24062
240632007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24064
24065 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24066
24067 * image.c: Add support for SVG images. Some additional comments
24068 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24069 (svg_image_p): New function to test for SVG image.
24070 (svg_load): New function to load SVG image.
24071 (svg_load_image): New function, helper for svg_load.
24072 (Qsvg): New Lisp_object.
24073 (svg_keyword_index): New enum.
24074 (svg_format): New static `image_keyword' struct.
24075 (svg_type): New static `image_type' struct.
24076 (librsvg/rsvg.h): Include it.
24077
240782007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24079
24080 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24081
240822007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24083
24084 * lread.c (Qold_style_backquotes): New var.
24085 (syms_of_lread): Init and staticpro it.
24086 (load_warn_old_style_backquotes): New fun.
24087 (Fload): Use them to warn about old style backquotes.
24088 (end_of_file_error, Fload): Remove unused vars.
24089
24090 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24091
24092 * lread.c (Vold_style_backquotes): New var.
24093 (syms_of_lread): Init and export it to Elisp.
24094 (read1): Set it when we find an old-style (back)quote.
24095
240962007-08-22 Jason Rumney <jasonr@gnu.org>
24097
24098 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24099
241002007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24101
24102 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24103
241042007-08-19 Richard Stallman <rms@gnu.org>
24105
24106 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24107
241082007-08-19 Andreas Schwab <schwab@suse.de>
24109
24110 * alloc.c (pure): Round PURESIZE up.
24111
241122007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24113
24114 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24115 active frame.
24116
241172007-08-16 Richard Stallman <rms@gnu.org>
24118
24119 * eval.c (Fcommandp): Add parens to clarify.
24120
24121 * minibuf.c (Fall_completions): Use enum for type of table.
24122
24123 * emacs.c (USAGE2): Improve text.
24124
241252007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24126
24127 * term.c (tty_default_color_capabilities): Declare static
24128 variables in file scope, to avoid HPUX compiler problem.
24129
241302007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24131
24132 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24133 to gtk_toolbar_insert.
24134
241352007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24136
24137 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24138
24139 * insdel.c (reset_var_on_error): New fun.
24140 (signal_before_change, signal_after_change):
24141 Use it to reset (after|before)-change-functions to nil in case of error.
24142 Bind inhibit-modification-hooks to t.
24143 Don't bind (after|before)-change-functions to nil while they run.
24144
241452007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24146
24147 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24148 filling pixmap with stippled background.
24149
241502007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24151
24152 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24153 Don't use invisible frame as parent window for repositioning.
24154
241552007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24156
24157 * print.c (new_backquote_output): Rename from old_backquote_output.
24158 (print): Inverse its logic (according to its name) so as to match the
24159 behavior of new_backquote_flag in lread.c.
24160
241612007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24162
24163 * gmalloc.c (posix_memalign): New function.
24164
24165 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24166 ActivateControl/DeactivateControl here.
24167 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24168 frame-notice-user-settings is non-nil.
24169 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24170 for kEventParamFMFontStyle.
24171 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24172 mac_pass_command_to_system and mac_pass_control_to_system here.
24173 (XTread_socket): Call ActivateControl/DeactivateControl here.
24174 (XTread_socket) [TARGET_API_MAC_CARBON]:
24175 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24176 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24177 for window repositioning.
24178
241792007-08-08 Glenn Morris <rgm@gnu.org>
24180
24181 * Replace `iff' in doc-strings and comments.
24182
241832007-08-07 Chong Yidong <cyd@stupidchicken.com>
24184
24185 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24186
241872007-08-07 Martin Rudalics <rudalics@gmx.at>
24188
24189 * fileio.c (Finsert_file_contents): Run format-decode and
24190 after_insert_file_functions on entire buffer when REPLACE is
24191 non-nil and inhibit modification_hooks and point_motion_hooks.
24192 For consistency, run after_insert_file_functions iff something
24193 got inserted. Move signal_after_change and update_compositions
24194 after code running after_insert_file_functions. Make sure that
24195 undo_list doesn't record intermediate steps of the decoding process.
24196
241972007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24198
24199 * emacs.c (main)
24200 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24201 Call malloc_enable_thread on interactive startup.
24202
24203 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24204 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24205 [USE_PTHREAD]: Conditionalize with it.
24206 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24207 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24208 New functions.
24209
242102007-08-06 Chong Yidong <cyd@stupidchicken.com>
24211
24212 * xdisp.c (redisplay_window): When restoring original buffer
24213 position, make sure it is still valid.
24214
24215 * image.c (png_load): Ignore png-supplied background color.
24216
242172007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24218
24219 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24220 Use kCFAbsoluteTimeIntervalSince1970.
24221
24222 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24223 New variable.
24224 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24225 event loop should be quit.
24226 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24227 Quit dialog event loop if quit_dialog_event_loop is set.
24228
24229 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24230 (Selection): New typedef. Use instead of ScrapRef.
24231 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24232 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24233 (mac_clear_selection): Rename from clear_scrap.
24234 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24235 scrap_has_target_type. All uses changed.
24236 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24237 (mac_selection_has_target_p): New functions.
24238 (mac_put_selection_value): Rename from put_scrap_string.
24239 (mac_get_selection_value): Rename from get_scrap_string.
24240 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24241 (put_scrap_private_timestamp, scrap_has_target_type)
24242 (get_scrap_private_timestamp): Remove functions.
24243 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24244 (x_own_selection, x_get_local_selection):
24245 Use mac_valid_selection_value_p.
24246 (x_own_selection): Don't use put_scrap_private_timestamp.
24247 Record OWNERSHIP-INFO into Vselection_alist instead.
24248 (x_get_local_selection): Don't check type if request is local.
24249 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24250 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24251
242522007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24253
24254 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24255 add comment explaining why.
24256
242572007-08-03 Richard Stallman <rms@gnu.org>
24258
24259 * fileio.c (Fvisited_file_modtime): Use make_time.
24260
242612007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24262
24263 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24264 build.
24265
242662007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24267
24268 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24269
242702007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24271
24272 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24273
242742007-07-30 Richard Stallman <rms@gnu.org>
24275
24276 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24277
242782007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24279
24280 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24281
242822007-07-28 Nick Roberts <nickrob@snap.net.nz>
24283
24284 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24285 remote default-directory.
24286
24287 * buffer.c (mode-line-format): Update doc string.
24288
242892007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24290
24291 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24292 scroll bar gap.
24293 (x_scroll_bar_create): Set bar->fringe_extended_p.
24294 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24295 on frame edge. Check fringe background extension. Don't clear
24296 extended fringe background area.
24297
24298 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24299 (w32_fill_area): Enclose multiple statements with do ... while (0).
24300
24301 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24302 Extend fringe background to scroll bar gap.
24303 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24304 Set bar->fringe_extended_p.
24305 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24306 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24307 background extension. Don't clear extended fringe background area.
24308
24309 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24310 New member fringe_extended_p.
24311
243122007-07-25 Glenn Morris <rgm@gnu.org>
24313
24314 * Relicense all FSF files to GPLv3 or later.
24315
24316 * COPYING: Switch to GPLv3.
24317
243182007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24319
24320 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24321
24322 * data.c (Finteractive_form): Check for the presence of an
24323 `interactive-form' symbol property more thoroughly.
24324
24325 * data.c (Finteractive_form): Use an `interactive-form' property if
24326 present, analogous to the function-documentation property.
24327
243282007-07-24 Jason Rumney <jasonr@gnu.org>
24329
24330 * w32fns.c (x_real_positions): Get real position from OS instead of
24331 calculating it.
24332
243332007-07-23 Jason Rumney <jasonr@gnu.org>
24334
24335 * filelock.c (current_lock_owner): Allow for @ sign in username.
24336
243372007-07-22 Nick Roberts <nickrob@snap.net.nz>
24338
24339 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24340 remote default-directory.
24341
24342 * buffer.c (mode-line-format): Describe above case in doc string.
24343
243442007-07-20 Eli Zaretskii <eliz@gnu.org>
24345
24346 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24347 Define if not defined.
24348
243492007-07-18 Jason Rumney <jasonr@gnu.org>
24350
24351 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24352
243532007-07-18 Richard Stallman <rms@gnu.org>
24354
24355 * data.c (Fsetq_default): Doc fix.
24356
24357 * eval.c (Fsetq): Doc fix.
24358
243592007-07-18 Juanma Barranquero <lekktu@gmail.com>
24360
24361 * coding.c (Ffind_operation_coding_system):
24362 * eval.c (For, Fand): Doc fixes.
24363 Reported by Johan Bockgård.
24364
243652007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24366
24367 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24368
24369 * xterm.h: Declare x_ewmh_activate_frame.
24370
24371 * xterm.c (x_ewmh_activate_frame): New function.
24372 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24373
243742007-07-17 Martin Rudalics <rudalics@gmx.at>
24375
24376 * window.c (Fdisplay_buffer): If largest or LRU window is the
24377 only window, split it even if it is not eligible for splitting.
24378 This restores the original behavior broken by the 2007-07-15
24379 change.
24380
243812007-07-17 Glenn Morris <rgm@gnu.org>
24382
24383 * abbrev.c (abbrev_check_chars): New function.
24384 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24385 Call abbrev_check_chars to check abbrev characters are word
24386 constituents. Doc fix.
24387
243882007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24389
24390 * process.c (Fstart_process, Fmake_network_process)
24391 (read_process_output): Fix up last changes.
24392
243932007-07-16 Eli Zaretskii <eliz@gnu.org>
24394
24395 * makefile.w32-in (clean): Don't delete *~.
24396
243972007-07-16 Andreas Schwab <schwab@suse.de>
24398
24399 * window.c (Fdisplay_buffer): Use NILP.
24400 (Fset_window_scroll_bars): Likewise.
24401
244022007-07-15 Martin Rudalics <rudalics@gmx.at>
24403
24404 * window.c (window_min_size_2): New function.
24405 (window_min_size_1, size_window, Fdisplay_buffer)
24406 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24407 windows without mode- or header-lines when window-min-height is
24408 too small.
24409 (size_window): Reset nodelete_p after testing it, following an
24410 earlier note by Kim F. Storm.
24411 (display_buffer): Do not set split_height_threshold to twice the
24412 value of window_min_height to avoid changing the value of a
24413 customizable variable. Rather explicitly check whether the
24414 height of the window that shall be splitted is at least as large
24415 as split_height_threshold.
24416 (Fwindow_full_width_p): New defun.
24417 (syms_of_window): Defsubr it.
24418
24419 * window.h: Add EXFUN for Fwindow_full_width_p.
24420
244212007-07-14 Jason Rumney <jasonr@gnu.org>
24422
24423 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24424
244252007-07-14 Richard Stallman <rms@gnu.org>
24426
24427 * eval.c (maybe_call_debugger): New function.
24428 (find_handler_clause): Use maybe_call_debugger.
24429 Call it when the handler says `debug'.
24430 Eliminate DEBUGGER_VALUE_PTR.
24431 (Fsignal): Eliminate debugger_value.
24432 (Qdebug): New variable.
24433 (syms_of_eval): Initialize it.
24434
244352007-07-14 Juanma Barranquero <lekktu@gmail.com>
24436
24437 * eval.c (Fprogn):
24438 * keyboard.c (Ftrack_mouse):
24439 * print.c (Fwith_output_to_temp_buffer):
24440 * window.c (Fsave_window_excursion): Doc fix.
24441
244422007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24443
24444 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24445
244462007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24447
24448 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24449 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24450 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24451 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24452 Remove unused encoding_carryover.
24453 * process.c: Adjust all functions accordingly.
24454
244552007-07-12 Richard Stallman <rms@gnu.org>
24456
24457 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24458
244592007-07-11 Jason Rumney <jasonr@gnu.org>
24460
24461 * makefile.w32-in (LIBS): Include OLE32.
24462
24463 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24464 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24465
244662007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24467
24468 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24469 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24470 from a Lisp_Object into a bare pointer.
24471 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24472 Adjust the code correspondingly.
24473
24474 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24475
24476 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24477 (term_show_mouse_face): Remove unused var `j'.
24478 (handle_one_term_event): Remove unused vars `i' and `j'.
24479 Don't cast return value of ttyname since it's not necessary.
24480
244812007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24482
24483 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24484 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24485
24486 * fns.c (map_char_table): Use an array of int for `indices' rather than
24487 an array of Lisp_Objects (which are only ever integers anyway).
24488 (Fmap_char_table): Update caller.
24489 * lisp.h: Update prototype.
24490 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24491 * fontset.c (Ffontset_info):
24492 * casetab.c (set_case_table): Update callers.
24493
24494 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24495
24496 * keymap.c (struct accessible_keymaps_data)
24497 (struct where_is_internal_data): New structures.
24498 (accessible_keymaps_1, where_is_internal_1): Use them to change
24499 interface to adhere to the one used by map_keymap.
24500 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24501 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24502
24503 * keymap.h (map_keymap_function_t): More informative prototype.
24504
245052007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24506
24507 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24508 (looking_at_1): Don't change search_regs and last_thing_searched
24509 if `inhibit-changing-match-data' is non-nil.
24510 (string_match_1, search_buffer, set_search_regs): Likewise.
24511 (syms_of_search): Add Lisp level definition for
24512 `inhibit-changing-match-data' and set it to nil.
24513 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24514 start and end of the match, instead of using values in search_regs.
24515
245162007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24517
24518 * minibuf.c (Fcompleting_read): New value `confirm-only'
24519 for `require-match'.
24520
245212007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24522
24523 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24524 part of the 2007-06-27 change to syms_of_fileio.
24525
245262007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24527
24528 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24529 Check WINDOWP before using XWINDOW. Consolidate return statements.
24530
245312007-06-27 Richard Stallman <rms@gnu.org>
24532
24533 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24534
245352007-06-27 Juanma Barranquero <lekktu@gmail.com>
24536
24537 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24538
245392007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24540
24541 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24542 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24543 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24544 (_free_internal, memalign): Use them.
24545 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24546 Initialize to PTHREAD_MUTEX_INITIALIZER.
24547 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24548 (morecore_nolock): Rename from morecore. All uses changed.
24549 Use only nolock versions of internal allocation functions.
24550 (_malloc_internal_nolock, _realloc_internal_nolock)
24551 (_free_internal_nolock): New functions created from
24552 _malloc_internal, _realloc_internal, and _free_internal.
24553 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24554 Copy hook value to automatic variable before its use.
24555 (memalign): Copy hook value to automatic variable before its use.
24556
245572007-06-26 Kenichi Handa <handa@m17n.org>
24558
24559 * coding.c (Ffind_operation_coding_system): Docstring improved.
24560 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24561
245622007-06-25 David Kastrup <dak@gnu.org>
24563
24564 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24565 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24566 cater for additional parameter.
24567
24568 * keymap.h: Adjust number of parameters to `current-active-maps'.
24569
24570 * doc.c (Fsubstitute_command_keys): Adjust call of
24571 `current-active-maps'.
24572
245732007-06-25 David Kastrup <dak@gnu.org>
24574
24575 * callint.c (Fcall_interactively): Make the parsing of interactive
24576 specs somewhat more readable.
24577
245782007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24579
24580 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24581 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24582 if extended background has already been filled.
24583
245842007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24585
24586 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24587 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24588
24589 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24590 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24591 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24592 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24593 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24594 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24595 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24596 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24597 Run timers during dialog popup.
24598 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24599
246002007-06-21 Jason Rumney <jasonr@gnu.org>
24601
24602 * image.c (convert_mono_to_color_image): Swap fore and background.
24603
246042007-06-20 Jason Rumney <jasonr@gnu.org>
24605
24606 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24607 (w32_free_bdf_font): Unmap memory not handle.
24608
246092007-06-20 Sam Steingold <sds@gnu.org>
24610
24611 * gmalloc.c (__morecore): Fix the declaration to comply with the
24612 definition.
24613
246142007-06-20 Juanma Barranquero <lekktu@gmail.com>
24615
24616 * w32term.c (w32_delete_display): Remove leftover declaration.
24617 (w32_define_cursor, w32_initialize): Make static.
24618
24619 * w32.c (_wsa_errlist): Fix typo in error message.
24620 (init_environment): Ignore any environment variable from the
24621 registry having a null value.
24622
246232007-06-20 Glenn Morris <rgm@gnu.org>
24624
24625 * Makefile.in (LIBGIF): Default to -lgif.
24626
246272007-06-17 Jason Rumney <jasonr@gnu.org>
24628
24629 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24630 unicode strings.
24631
246322007-06-16 Juanma Barranquero <lekktu@gmail.com>
24633
24634 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24635 Fix typo in docstring.
24636
246372007-06-16 Eli Zaretskii <eliz@gnu.org>
24638
24639 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24640 and their keybindings.
24641
246422007-06-15 Chong Yidong <cyd@stupidchicken.com>
24643
24644 * composite.c (update_compositions): Fix last fix.
24645
246462007-06-14 Jason Rumney <jasonr@gnu.org>
24647
24648 * w32.c (get_process_times_fn): New function pointer.
24649 (globals_of_w32): Intialize it if present in kernel32.dll.
24650 (w32_get_internal_run_time): New function.
24651
24652 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24653
246542007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24655
24656 * composite.c (update_compositions): Check the validness of
24657 compositions.
24658
246592007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24660
24661 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24662 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24663
24664 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24665 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24666
24667 * macgui.h (USE_MAC_TOOLBAR): New define.
24668
24669 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24670 Return immediately unless popup is activated.
24671
24672 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24673 background to scroll bar gap.
24674 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24675 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24676 scroll bars on frame edge. Check fringe background extension.
24677 Don't clear extended fringe background area.
24678 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24679 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24680 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24681 [USE_MAC_TOOLBAR]: New macros.
24682 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24683 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24684 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24685 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24686 [USE_MAC_TOOLBAR]: New functions.
24687 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24688 manually if previous repositioning has failed.
24689 (mac_handle_keyboard_event): Use precomputed event kind.
24690 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24691 as tool bar item click. Handle mouse movement over tool bar items.
24692
24693 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24694 toolbar_win_gravity.
24695 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24696 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24697 Add externs.
24698
24699 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24700 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24701
247022007-06-14 Chong Yidong <cyd@stupidchicken.com>
24703
24704 * image.c (search_image_cache): Remove unused variable.
24705
247062007-06-13 Chong Yidong <cyd@stupidchicken.com>
24707
24708 * xfns.c, xmenu.c: Link to xaw3d if available.
24709
247102007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24711
24712 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24713 frame_foreground and frame_background.
24714
24715 * image.c (lookup_image): Save frame foreground and background colors.
24716 (search_image_cache): Check if saved and current frame colors match.
24717
247182007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24719
24720 * regex.c (regex_compile): Remove the `regnum' counter.
24721 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24722
247232007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24724
24725 * term.c: Include intervals.h to declare Fget_text_property.
24726
247272007-06-10 Jason Rumney <jasonr@gnu.org>
24728
24729 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24730
247312007-06-08 Juanma Barranquero <lekktu@gmail.com>
24732
24733 * callint.c (Fcall_interactively):
24734 * editfns.c (Fdelete_and_extract_region):
24735 * fileio.c (Fread_file_name):
24736 * fns.c (Fmapconcat):
24737 * keyboard.c (cmd_error_internal):
24738 * keymap.c (Fkey_description):
24739 * lread.c (openp):
24740 * minibuf.c (read_minibuf):
24741 * search.c (wordify):
24742 * sunfns.c (sel_read):
24743 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24744 * xfns.c (x_default_scroll_bar_color_parameter):
24745 * xmenu.c (menu_help_callback):
24746 * xselect.c (Fx_get_atom_name):
24747 * xterm.c (x_term_init): Use empty_unibyte_string.
24748
247492007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24750
24751 * alloc.c (init_strings): Initialize canonical empty strings.
24752 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24753 canonical empty string when the requested size is 0.
24754
24755 * emacs.c (empty_unibyte_string): Rename from empty_string.
24756 (empty_multibyte_string): New canonical empty string.
24757 (syms_of_emacs): Don't initialize empty_string.
24758
24759 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24760 string, if appropriate.
24761 (empty_unibyte_string, empty_multibyte_string): New externs.
24762 (empty_string): Remove extern.
24763
24764 * lread.c (syms_of_lread): Use empty_unibyte_string.
24765
247662007-06-07 Jason Rumney <jasonr@gnu.org>
24767
24768 * s/ms-w32.h: Don't define HAVE_TZNAME.
24769
24770 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24771
247722007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24773
24774 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24775
24776 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24777 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24778
24779 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24780 Don't call next handler.
24781 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24782 Remove argument. Install handler to application.
24783 (set_frame_menubar): Don't change deep_p.
24784 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24785 FRAME_OUTER_TO_INNER_DIFF_Y.
24786 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24787 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24788 [HAVE_DIALOGS]: New macros.
24789 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24790 Use them.
24791 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24792
24793 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24794 init_service_handler. All callers changed. Return OSStatus value.
24795
24796 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24797 All callers changed so as not to call SetPortWindowPort.
24798 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24799 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24800 mac_draw_string_common.
24801 (mac_draw_image_string_qd): Likewise.
24802 (mac_draw_string_common): Use them. Add INLINE.
24803 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24804 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24805 GetGlobalMouse.
24806 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24807 and FRAME_OUTER_TO_INNER_DIFF_Y.
24808 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24809 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24810 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24811 repositioning window to mac_handle_window_event.
24812 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24813 saving window location to mac_handle_window_event
24814 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24815 (install_menu_target_item_handler): Remove argument in extern.
24816 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24817 Also accept command events.
24818 (do_keystroke): New function created from XTread_socket.
24819 (init_command_handler): Remove functions.
24820 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24821 and save window location by kEventWindowShowing and kEventWindowHiding
24822 handlers here. Don't call next handler for window state change and
24823 focus events.
24824 (mac_handle_application_event, mac_handle_keyboard_event)
24825 [TARGET_API_MAC_CARBON]: New functions.
24826 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24827 kEventWindowShowing and kEventWindowHiding events. Move installation
24828 of mouse, font, text input and menu target item handlers to
24829 install_application_handler.
24830 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24831 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24832 New function.
24833 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24834 Register it.
24835 (XTread_socket) [TARGET_API_MAC_CARBON]:
24836 Consolidate SendEventToEventTarget calls.
24837 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24838 Move application activation handler to mac_handle_application_event.
24839 Move keyboard handler to mac_handle_keyboard_event.
24840 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24841 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24842 init_command_handler. Call install_application_handler.
24843
24844 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24845 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24846
248472007-06-07 Glenn Morris <rgm@gnu.org>
24848
24849 * emacs.c (main): Use `emacs-copyright' in --version output.
24850
248512007-06-06 Chong Yidong <cyd@stupidchicken.com>
24852
24853 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24854
248552007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24856
24857 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24858
24859 * macgui.h: Replace WindowPtr with WindowRef.
24860
24861 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24862 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24863 Replace ControlHandle with ControlRef.
24864 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24865
24866 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24867 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24868 Replace ControlHandle with ControlRef.
24869 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24870 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24871
24872 * macterm.h (struct scroll_bar): Rename member control_handle_low
24873 and control_handle_high to control_ref_low and control_ref_high.
24874 All uses changed.
24875 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24876 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24877 respectively. All uses changed.
24878 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24879 (install_window_handler, remove_window_handler): Replace WindowPtr
24880 with WindowRef in externs.
24881
248822007-06-05 Juanma Barranquero <lekktu@gmail.com>
24883
24884 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24885
248862007-06-03 Nick Roberts <nickrob@snap.net.nz>
24887
24888 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24889
24890 * frame.c (Fmouse_position, Fmouse_pixel_position):
24891 Condition on HAVE_GPM too.
24892
24893 * term.c (term_mouse_highlight): Remove unused variables.
24894 (Fterm_open_connection): Set gpm_zerobased to 1.
24895 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24896 Use zero based co-ordinates.
24897 (handle_one_term_event): Report a drag as mouse movement too.
24898
24899 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24900
249012007-06-03 Chong Yidong <cyd@stupidchicken.com>
24902
24903 * image.c (search_image_cache): New function. Require background
24904 color match if background color is unspecified in the image spec.
24905 (uncache_image, lookup_image): Use it.
24906
249072007-06-01 Juanma Barranquero <lekktu@gmail.com>
24908
24909 * window.c (Fshrink_window): Reflow docstring.
24910
249112007-06-02 Chong Yidong <cyd@stupidchicken.com>
24912
24913 * Version 22.1 released.
24914
249152007-06-01 Richard Stallman <rms@gnu.org>
24916
24917 * xfns.c (x_encode_text): Add GCPRO.
24918
249192007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24920
24921 * xfns.c (x_set_name_internal): Save encoded name before
24922 x_encode_text in case string data is relocated.
24923
249242007-05-31 Richard Stallman <rms@gnu.org>
24925
24926 * buffer.c (syms_of_buffer): Doc fix.
24927
249282007-05-30 Nick Roberts <nickrob@snap.net.nz>
24929
24930 * sysdep.c (init_sys_modes): Add rather than replace with
24931 O_NONBLOCK.
24932
24933 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24934 term_mouse_moveto.
24935
24936 * termhooks.h (term_mouse_moveto): New extern.
24937
24938 * term.c (mouse_face_window): Rename...
24939 (Qmouse_face_window): ...to this.
24940 (term_show_mouse_face, term_clear_mouse_face)
24941 (term_mouse_highlight): Use Qmouse_face_window.
24942 (term_mouse_moveto): New function.
24943 (term_mouse_position): Make it work.
24944 (syms_of_term): Uncomment assignment to mouse_position_hook.
24945 Staticpro Qmouse_face_window.
24946
249472007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24948
24949 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24950 around current_column call.
24951
249522007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24953
24954 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24955 * xdisp.c (next_element_from_buffer):
24956 * window.c (delete_window):
24957 * term.c (term_mouse_highlight):
24958 * msdos.c (getdefdir):
24959 * macterm.c (mac_create_bitmap_from_bitmap_data)
24960 (init_font_name_table):
24961 * fns.c (Fsxhash):
24962 * data.c (Fmake_local_variable):
24963 * ccl.c (ccl_driver): Likewise.
24964
249652007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24966
24967 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24968 Call mac_wakeup_from_rne on window size change.
24969
249702007-05-25 Chong Yidong <cyd@stupidchicken.com>
24971
24972 * image.c (uncache_image): Fix typo.
24973
249742007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24975
24976 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24977
249782007-05-22 Richard Stallman <rms@gnu.org>
24979
24980 * xterm.c (x_connection_closed): Remove NO_RETURN.
24981
249822007-05-22 Martin Rudalics <rudalics@gmx.at>
24983
24984 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24985
249862007-05-21 Chong Yidong <cyd@stupidchicken.com>
24987
24988 * image.c (uncache_image): New function.
24989 (Fimage_refresh): New function.
24990
249912007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24992
24993 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24994
249952007-05-20 Nick Roberts <nickrob@snap.net.nz>
24996
24997 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24998 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24999
250002007-05-20 Nick Roberts <nickrob@snap.net.nz>
25001
25002 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25003 conditional on [HAVE_GPM_H].
25004
250052007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25006
25007 * syntax.c (skip_chars): Update syntax-table only after we checked that
25008 the new location is valid.
25009
250102007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25011
25012 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25013 mac_get_window_bounds.
25014
250152007-05-20 Nick Roberts <nickrob@snap.net.nz>
25016
25017 * Makefile.in (LIBGPM): Allow it to be set from configure.
25018 If set then link Emacs with it.
25019
25020 * config.in: Regenerate.
25021
25022 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25023 New externs.
25024
25025 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25026 Include gpm.h.
25027 (handle_one_term_event, term_gpm): New externs.
25028
25029 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25030 and allow it to be interrupted by SIGIO.
25031
25032 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25033 (wait_reading_process_output): Wait on gpm_fd too.
25034 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25035 (add_gpm_wait_descriptor_called_flag): New variable.
25036 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25037
25038 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25039 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25040 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25041 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25042 (make_lispy_event): Add case GPM_CLICK_EVENT.
25043 (read_avail_input): Handle mouse input.
25044
25045 * term.c (write_glyphs_with_face): New function.
25046 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25047 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25048 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25049 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25050 (last_mouse_x, last_mouse_y): New variables.
25051 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25052 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25053 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25054 (Fterm_close_connection): New functions.
25055 (term_init): Initialise mouse_face_window.
25056
250572007-05-19 Chong Yidong <cyd@stupidchicken.com>
25058
25059 * xdisp.c (redisplay_window): If first window line is a
25060 continuation line, recompute the new window start instead of
25061 recentering.
25062
250632007-05-18 Glenn Morris <rgm@gnu.org>
25064
25065 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25066 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25067
250682007-05-17 Glenn Morris <rgm@gnu.org>
25069
25070 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25071
250722007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25073
25074 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25075 dead key repeat and up events.
25076
250772007-05-14 Chong Yidong <cyd@stupidchicken.com>
25078
25079 * image.c (pbm_load): Check image size for monochrome pbm.
25080
250812007-05-13 Chong Yidong <cyd@stupidchicken.com>
25082
25083 * xterm.c (XTread_socket): Revert last change.
25084
250852007-05-12 Chong Yidong <cyd@stupidchicken.com>
25086
25087 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25088
25089 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25090
250912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25092
25093 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25094 mixup (YAILOM).
25095
250962007-05-07 Andreas Schwab <schwab@suse.de>
25097
25098 * keymap.c (Flookup_key): Fix typo in last change.
25099
251002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25101
25102 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25103 mapping for unibyte strings.
25104
251052007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25106
25107 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25108 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25109
251102007-04-29 Richard Stallman <rms@gnu.org>
25111
25112 * insdel.c (replace_range): For undo, record insertion first.
25113
251142007-04-29 Andreas Schwab <schwab@suse.de>
25115
25116 * lisp.h (VECSIZE): Use OFFSETOF.
25117
251182007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25119
25120 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25121 disabled lines.
25122
251232007-04-28 Richard Stallman <rms@gnu.org>
25124
25125 * lread.c (read_escape): In a string, \s is always space.
25126
251272007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25128
25129 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25130
25131 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25132 submenu for menu bar items.
25133
25134See ChangeLog.10 for earlier changes.
25135
25136;; Local Variables:
25137;; coding: utf-8
25138;; add-log-time-zone-rule: t
aac0c6e3
MR
25139;; End:
25140
e3eb1dae 25141 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25142
25143 This file is part of GNU Emacs.
25144
25145 GNU Emacs is free software: you can redistribute it and/or modify
25146 it under the terms of the GNU General Public License as published by
25147 the Free Software Foundation, either version 3 of the License, or
25148 (at your option) any later version.
25149
25150 GNU Emacs is distributed in the hope that it will be useful,
25151 but WITHOUT ANY WARRANTY; without even the implied warranty of
25152 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25153 GNU General Public License for more details.
25154
25155 You should have received a copy of the GNU General Public License
25156 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25157
25158;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40