1 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
4 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
9 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
11 Clean up include guards.
12 * tparam.c: Remove include guards for config.h, string.h and code
13 that assumes #ifndef emacs.
22 * prefix-args.c: Remove file.
23 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
24 * Makefile.in (temacs${EXEEXT}): Remove references to
25 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
26 (mostlyclean): Remove reference to prefix-args.
27 (prefix-args): Remove.
29 Simplify cstart_of_data, start_of_code and related code.
30 * mem-limits.h: Remove !emacs and _LIBC conditional code.
31 (start_of_data): Merge into start_of_data function.
32 * sysdep.c (start_of_text): Remove. Move simplified versions of
33 it in the only users: unexaix.c and unexec.c.
34 (read_input_waiting): Remove local declaration of quit_char.
35 (start, etext): Remove declarations.
36 (start_of_data): Merge with the version in mem-limits.h and move
38 * vm-limit.c (start_of_data): Merged and simplified version of the
39 code formerly in mem-limits.h and sysdep.c.
40 * unexec.c (start): New declaration, moved from sysdep.c.
41 (start_of_text): Simplified version of the code formerly in sysdep.c.
42 * unexaix.c (start_of_text): Simplified version of the code
44 * m/alpha.h (HAVE_TEXT_START): Remove.
45 (TEXT_START): Move ...
46 * unexalpha.c (TEXT_START): ... here.
47 * s/hpux10-20.h (TEXT_START): Remove.
48 * s/darwin.h (TEXT_START):
49 * m/mips.h (TEXT_START):
50 * m/macppc.h (HAVE_TEXT_START):
51 * m/m68k.h (TEXT_START):
52 * m/iris4d.h (TEXT_START):
53 * m/intel386.h (TEXT_START):
54 * m/ibmrs6000.h (TEXT_START):
55 * m/ia64.h (HAVE_TEXT_START):
56 * s/msdos.h (TEXT_START): Likewise.
58 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
60 * alloc.c (overrun_check_malloc, overrun_check_realloc)
61 (overrun_check_free, xstrdup, allocate_string)
62 (allocate_string_data, compact_small_strings, Fmake_string)
63 (make_unibyte_string, make_multibyte_string)
64 (make_string_from_bytes, make_specified_string, make_float)
65 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
66 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
67 memcpy, memmove, memset, memcmp.
68 * atimer.c (start_atimer, set_alarm): Likewise.
69 * buffer.c (clone_per_buffer_values, report_overlay_modification)
70 (mmap_realloc, init_buffer_once): Likewise.
71 * callint.c (Fcall_interactively): Likewise.
72 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
73 (getenv_internal_1): Likewise.
74 * casefiddle.c (casify_object): Likewise.
75 * ccl.c (ccl_driver): Likewise.
76 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
77 * charset.c (load_charset_map_from_file)
78 (load_charset_map_from_file, load_charset_map_from_vector)
79 (Fdefine_charset_internal): Likewise.
80 * cm.c (Wcm_clear): Likewise.
81 * coding.c (decode_eol, decode_coding_object)
82 (Fset_coding_system_priority, make_subsidiaries): Likewise.
83 * data.c (Faset): Likewise.
84 * dired.c (directory_files_internal, file_name_completion_stat):
86 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
87 (clear_glyph_row, copy_row_except_pointers)
88 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
89 (save_current_matrix, restore_current_matrix)
90 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
91 (mirror_line_dance, scrolling_window): Likewise.
92 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
94 * doprnt.c (doprnt): Likewise.
95 * editfns.c (Fuser_full_name, make_buffer_string_both)
96 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
97 * emacs.c (sort_args): Likewise.
98 * eval.c (Fapply, Ffuncall): Likewise.
99 * fileio.c (Ffile_name_directory, make_temp_name)
100 (Fexpand_file_name, search_embedded_absfilename)
101 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
102 (auto_save_error): Likewise.
103 * fns.c (Fstring_equal, Fcopy_sequence, concat)
104 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
105 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
106 (Fmake_hash_table): Likewise.
107 * fringe.c (Fdefine_fringe_bitmap): Likewise.
108 * ftfont.c (ftfont_text_extents): Likewise.
109 * getloadavg.c (getloadavg): Likewise.
110 * image.c (define_image_type, make_image, make_image_cache)
111 (x_create_x_image_and_pixmap, xbm_image_p)
112 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
113 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
114 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
115 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
116 (tiff_image_p, tiff_read_from_memory, gif_image_p)
117 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
119 * indent.c (scan_for_column, compute_motion): Likewise.
120 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
121 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
122 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
123 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
124 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
125 (store_user_signal_events, menu_bar_items, tool_bar_items)
126 (process_tool_bar_item, append_tool_bar_item)
127 (read_char_minibuf_menu_prompt, read_key_sequence)
128 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
130 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
132 * lisp.h (STRING_COPYIN): Likewise.
133 * lread.c (Fload, read1, oblookup): Likewise.
134 * msdos.c (Frecent_doskeys): Likewise.
135 * nsfns.m (Fx_create_frame): Likewise.
136 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
138 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
139 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
141 * nsmenu.m (ns_update_menubar): Likewise.
142 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
143 * print.c (print_unwind, printchar, strout, print_string)
144 (print_error_message): Likewise.
145 * process.c (conv_lisp_to_sockaddr, set_socket_option)
146 (Fmake_network_process, Fnetwork_interface_list)
147 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
148 (init_process): Likewise.
149 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
150 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
152 * scroll.c (do_scrolling, do_direct_scrolling)
153 (scrolling_max_lines_saved): Likewise.
154 * search.c (search_buffer, wordify, Freplace_match): Likewise.
155 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
156 * syntax.c (skip_chars, skip_syntaxes): Likewise.
157 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
158 (emacs_set_tty): Likewise.
159 * term.c (encode_terminal_code, calculate_costs)
160 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
162 * termcap.c (tgetst1, gobble_line): Likewise.
163 * termhooks.h (EVENT_INIT): Likewise.
164 * tparam.c (tparam1): Likewise.
165 * unexalpha.c (unexec): Likewise.
166 * unexec.c (write_segment): Likewise.
167 * unexmacosx.c (unexec_write_zero): Likewise.
168 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
169 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
170 * w32font.c (w32font_list_family, w32font_text_extents)
171 (w32font_list_internal, w32font_match_internal)
172 (w32font_open_internal, compute_metrics, Fx_select_font):
174 * w32menu.c (set_frame_menubar, add_menu_item)
175 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
176 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
177 * w32uniscribe.c (uniscribe_list_family): Likewise.
178 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
179 * window.c (make_window, replace_window, set_window_buffer)
180 (Fsplit_window): Likewise.
181 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
182 (add_to_log, message3, x_consider_frame_title)
183 (append_space_for_newline, extend_face_to_end_of_line)
184 (decode_mode_spec_coding, init_glyph_string): Likewise.
185 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
186 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
187 (face_attr_equal_p, make_realized_face, make_face_cache)
188 (free_realized_faces, lookup_named_face, smaller_face)
189 (face_with_height, lookup_derived_face)
190 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
191 (Finternal_set_font_selection_order, realize_default_face)
192 (compute_char_face, face_at_buffer_position)
193 (face_for_overlay_string, face_at_string_position, merge_faces):
195 * xfns.c (xic_create_fontsetname, Fx_create_frame)
196 (Fx_window_property, x_create_tip_frame)
197 (Fx_backspace_delete_keys_p): Likewise.
198 * xfont.c (xfont_list, xfont_match, xfont_list_family)
199 (xfont_text_extents): Likewise.
200 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
201 * xrdb.c (magic_file_p, x_get_resource): Likewise.
202 * xselect.c (x_queue_event, x_get_window_property)
203 (receive_incremental_selection): Likewise.
204 * xsmfns.c (x_session_check_input): Likewise.
205 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
206 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
208 * character.h (BCOPY_SHORT): Removed.
209 * config.in: Regenerate.
210 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
211 * emacs.c (main) [PROFILING]: Don't declare
212 dump_opcode_frequencies.
213 * lisp.h (safe_bcopy): Remove declaration.
214 (memset) [!HAVE_MEMSET]: Declare.
215 (memcpy) [!HAVE_MEMCPY]: Likewise.
216 (memmove) [!HAVE_MEMMOVE]: Likewise.
217 (memcmp) [!HAVE_MEMCMP]: Likewise.
218 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
219 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
221 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
222 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
223 (BCOPY_DOWNWARD_SAFE): Don't define.
224 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
225 (memcpy) [!HAVE_MEMCPY]: Define.
226 (memmove) [!HAVE_MEMMOVE]: Define.
227 (memcmp) [!HAVE_MEMCMP]: Define.
229 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
231 * process.c (kbd_is_on_hold): New variable.
232 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
234 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
235 select on empty input mask.
236 (init_process): Initialize kbd_is_on_hold to 0.
238 * process.h (hold_keyboard_input, unhold_keyboard_input)
239 (kbd_on_hold_p): Declare.
241 * keyboard.c (input_available_signal): Declare.
242 (kbd_buffer_nr_stored): New function.
243 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
244 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
245 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
246 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
247 (tty_read_avail_input): If input is on hold, return.
248 Don't read more that free slots in kbd_buffer (Bug#6571).
250 2010-07-07 Eli Zaretskii <eliz@gnu.org>
255 * w16select.c: Convert function definitions to ANSI C.
257 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
260 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
262 * coding.c, sysdep.c: Convert some more functions to standard C.
264 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
266 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
267 (encode_coding_object): Use SPECPDL_INDEX.
268 (syms_of_coding): Use DOS_NT.
270 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
272 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
274 Make the function member of Lisp_Subr use standard C prototypes.
275 * lisp.h (struct Lisp_Subr): Use a union for the function member.
276 (DECL_ALIGN): Add a cast for the function.
277 * eval.c (Feval, Ffuncall): Use the proper type for each type
280 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
282 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
283 fringe face id, so face-remapping-alist works (Bug#6091).
285 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
287 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
288 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
289 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
291 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
293 * xterm.c (x_get_keysym_name): Change type of parameter to int.
294 * lisp.h: Declare x_get_keysym_name.
295 * keyboard.c (modify_event_symbol): Don't declare
296 x_get_keysym_name here.
298 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
300 * ecrt0.c: Revert conversion to standard C.
302 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
304 * vm-limit.c (memory_warnings):
305 * keyboard.c (modify_event_symbol):
306 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
307 (round2, emacs_rint):
308 * process.c (send_process, old_sigpipe): Convert function
309 definitions and declarations to standard C.
311 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
313 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
314 * xdisp.c: Convert function definitions to standard C.
316 * cm.c (cmputc): Arg C is now int, not char.
317 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
319 2010-07-05 James Cloos <cloos@jhcloos.com>
321 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
323 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
324 _NET_WM_ICON_NAME atoms.
326 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
327 and _NET_WM_ICON_NAME properties, too, matching what is
328 done in the Gtk+ case.
330 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
332 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
334 * xsmfns.c (SSDATA): New macro.
335 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
336 passed to strlen/strcpy/strcat.
337 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
338 7:th arg to XChangeProperty to (unsigned char *)
340 * xsettings.c (something_changedCB, parse_settings)
341 (apply_xft_settings): Reformat prototype.
342 (something_changedCB, init_gconf): Remove unused variable i.
343 (read_settings): Remove unused variable long_len.
345 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
346 (xg_get_image_for_pixmap, create_dialog)
347 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
348 (menuitem_highlight_callback, make_menu_item)
349 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
350 (xg_create_scroll_bar, xg_update_scrollbar_pos)
351 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
352 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
353 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
354 (xg_tool_bar_item_expose_callback): Reformat prototype.
355 (xg_update_menubar): GList *group => GSList *group.
356 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
358 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
359 to GTK_IMAGE (wimage).
361 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
363 * atimer.c: Use "" instead of <> for local includes for
364 consistency with the rest of the code.
366 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
367 * xrdb.c (get_system_name):
368 * window.c (shrink_windows):
369 * syntax.c (forw_comment):
370 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
372 * mem-limits.h (start_of_data):
373 * lread.c (readevalloop):
374 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
375 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
376 * frame.c (x_get_focus_frame):
377 * floatfns.c (fmod_float):
378 * fileio.c (choose_write_coding_system):
379 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
380 (malloc_initialize_hook, sort_args, synchronize_locale):
382 * dired.c (compile_pattern):
383 * data.c (fmod_float):
384 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
385 (map_char_table_for_charset):
386 * charset.c (define_charset_internal):
387 * alloc.c (Fgarbage_collect): Convert declarations or definitions
390 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
391 Stefan Monnier <monnier@iro.umontreal.ca>
393 * lread.c (read1): Fix up last change to not mess up `c'.
395 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
397 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
399 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
403 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
404 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
405 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
406 arg, as required by internal_condition_case_1.
407 * print.c (strout): Use const char* for arg PTR.
408 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
409 (analyse_first): Fix "const const".
410 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
411 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
412 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
414 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
416 * alloc.c: Convert function definitions to standard C.
492 2010-07-03 Eli Zaretskii <eliz@gnu.org>
494 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
495 frames other than the initial one. Fix reversal of colors when
496 `reverse' is specified in the frame parameters. Call
497 update_face_from_frame_parameter instead of
498 internal-set-lisp-face-attribute. Initialize screen colors from
499 initial_screen_colors[] when f->default_face_done_p is zero,
500 instead of depending on being called with default-frame-alist as
503 * xfaces.c (update_face_from_frame_parameter): Move out of
504 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
505 with HAVE_WINDOW_SYSTEM.
507 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
508 to menu-bar-mode, if not set in the frame parameters or in
511 * w32console.c (sys_tputs): Adjust argument list to prototype in
514 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
516 * lisp.h (memory_warnings): Fix prototype.
518 * cm.h (evalcost): Fix prototype.
520 * cm.c (evalcost): Fix arg type.
522 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
524 * term.c (term_clear_mouse_face, Fidentity):
525 * syssignal.h (signal_handler_t):
526 * lisp.h (memory_warnings):
527 * coding.h (preferred_coding_system):
529 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
531 2010-07-02 Eli Zaretskii <eliz@gnu.org>
533 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
536 * msdos.h (load_pixmap): Don't define away.
538 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
541 * atimer.h: Remove define for P_.
543 * alloc.c: Remove __P and P_ from .c and .m files.
607 Remove P_ and __P macros.
608 * atimer.h: Remove P_ and __P macros.
648 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
650 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
653 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
654 * syssignal.h: Remove code for Lynx, not supported anymore.
655 * vm-limit.c: Remove unused code the depends on emacs not being
656 defined and NO_LIM_DATA being defined.
657 * mem-limits.h: Remove dead code.
659 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
661 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
663 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
664 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
666 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
667 parameters, they are already absolute.
669 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
670 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
672 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
674 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
675 FRAME_TOOLBAR_HEIGHT.
677 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
678 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
680 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
682 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
683 check default-frame-alist.
685 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
687 * process.c (create_process): Avoid using invalid file descriptors.
689 * callproc.c (child_setup): Avoid closing a file descriptor twice.
691 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
693 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
694 Improve documentation. Return font regardless of use_system_font.
695 (syms_of_xsettings): Improve documentation for font-use-system-font.
697 2009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
699 * xftfont.c (xftfont_open): Check font width one by one also when
702 * ftfont.c (ftfont_open): Ditto.
704 2010-06-30 Glenn Morris <rgm@gnu.org>
706 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
708 * Makefile.in (CANNOT_DUMP): Update for configure name change.
710 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
711 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
712 * s/darwin.h (SYSTEM_MALLOC):
713 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
715 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
717 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
718 (ns_get_screen): Don't assign integer to f.
719 (Fx_display_color_cells): Declarations before statements.
721 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
723 * xfns.c (x_default_font_parameter): Remove got_from_system
726 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
727 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
728 defines based on what configure finds.
730 * xterm.c (XTflash): Use gtk_widget_get_window.
731 (xg_scroll_callback): Use gtk_adjustment_get_upper and
732 gtk_adjustment_get_page_size.
733 (handle_one_xevent): Use gtk_widget_get_mapped.
734 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
737 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
739 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
740 HAVE_GTK_FILE_SELECTION_NEW.
742 * gtkutil.c (xg_display_open, xg_display_close): Remove
743 HAVE_GTK_MULTIDISPLAY, it is always defined.
744 (xg_display_open): Return type is void.
745 (gtk_widget_set_has_window)
746 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
747 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
748 (gtk_adjustment_set_page_increment)
749 (gtk_adjustment_get_step_increment): #define these if not found
751 (remove_submenu): New define based on Gtk+ version.
752 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
753 gtk_widget_get_window.
754 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
755 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
756 (create_dialog): Use gtk_dialog_get_action_area and
757 gtk_dialog_get_content_area.
758 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
759 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
760 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
761 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
762 g_object_ref and g_object_unref.
763 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
764 gtk_widget_get_sensitive.
765 (xg_update_submenu): Use remove_submenu.
766 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
767 properties instead to get old x and y position.
768 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
769 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
770 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
771 (xg_get_tool_bar_widgets): New function.
772 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
773 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
774 (toolbar_set_orientation): New #define based on if configure
775 finds gtk_orientable_set_orientation.
776 (xg_create_tool_bar): Call toolbar_set_orientation.
777 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
778 instead of gtk_box_pack_start_defaults.
780 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
782 * cmds.c (Fdelete_backward_char): Move into Lisp.
784 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
786 * s/freebsd.h (BSD4_2): Remove redundant definition.
787 bsd-common.h defines it already.
789 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
791 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
792 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
793 tool-bar-mode, which are now set using these X resources at
794 startup, to determine the defaults (Bug#2249).
796 * w32fns.c (Fx_create_frame):
797 * nsfns.m (Fx_create_frame): Likewise.
799 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
801 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
803 * gtkutil.c (xg_update_scrollbar_pos):
804 Avoid C99 mid-block variable declaration.
806 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
808 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
810 * gtkutil.h (xg_show_scroll_bar): Remove.
812 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
813 if height is less than scroll bar min size.
814 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
816 * xfns.c (x_default_font_parameter): Try to open font from system
817 before using it (bug#6478). Rename got_from_gconf to got_from_system.
819 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
821 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
823 2010-06-20 Eli Zaretskii <eliz@gnu.org>
825 * xdisp.c (try_scrolling): When scroll-conservatively is set to
826 most-positive-fixnum, be extra accurate when scrolling window
827 start, to avoid missing the cursor line.
829 2010-06-19 Eli Zaretskii <eliz@gnu.org>
831 * xdisp.c (try_scrolling): Compute the limit for searching point
832 in forward scroll from scroll_max, instead of an arbitrary limit
833 of 10 screen lines. See
834 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
836 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
839 2010-06-16 Glenn Morris <rgm@gnu.org>
841 * editfns.c (Fbyte_to_string): Pacify compiler.
843 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
845 * lread.c (read1): Phase out old-style backquotes a bit more.
847 2010-06-12 Eli Zaretskii <eliz@gnu.org>
849 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
852 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
854 * bidi.c (bidi_initialize): Remove explicit initialization of
855 bidi_type_table; include biditype.h instead. Don't support
856 entries whose second codepoint is zero. Initialize bidi_mirror_table.
857 (bidi_mirror_char): Use bidi_mirror_table.
859 * biditype.h: New file.
861 * bidimirror.h: New file.
863 * window.c (syms_of_window): Doc fix (bug#6409).
865 2010-06-12 Romain Francoise <romain@orebokech.com>
867 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
870 2010-06-10 Glenn Morris <rgm@gnu.org>
872 * editfns.c (Fbyte_to_string): Pacify compiler.
874 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
876 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
878 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
879 Check `object's type before accessing its guts.
881 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
883 * s/usg5-4.h: Fix previous change.
884 Suggested by Lawrence Mitchell <wence@gmx.li>
886 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
888 * minibuf.c (Fall_completions): Add more checks.
890 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
892 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
894 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
896 * lread.c (X_OK): Remove, unused.
898 * dispnew.c: Remove obsolete comment.
900 Remove INCLUDED_FCNTL.
901 * xterm.c (INCLUDED_FCNTL):
902 * callproc.c (INCLUDED_FCNTL):
903 * alloc.c (INCLUDED_FCNTL):
904 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
905 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
907 2010-06-07 Martin Rudalics <rudalics@gmx.at>
909 * window.c (Fselect_window): Move `record_buffer' up to the
910 beginning of this function, so the buffer gets recorded
911 even if the selected window does not change.
912 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
914 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
916 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
917 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
919 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
921 Remove BSTRING related code, all platforms define it.
922 * s/usg5-4.h (BSTRING): Remove definition.
923 * s/template.h (BSTRING):
924 * s/msdos.h (BSTRING):
925 * s/ms-w32.h (BSTRING):
926 * s/hpux10-20.h (BSTRING):
927 * s/gnu-linux.h (BSTRING):
928 * s/darwin.h (BSTRING):
929 * s/cygwin.h (BSTRING):
930 * s/bsd-common.h (BSTRING):
931 * s/aix4-2.h (BSTRING): Likewise.
932 * sysdep.c: Remove code depending on BSTRING not being defined.
934 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
936 Remove obsolete macro BASE_LEADING_CODE_P.
937 * character.h (BASE_LEADING_CODE_P): Remove.
938 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
939 * buffer.c (Fset_buffer_multibyte):
940 * indent.c (scan_for_column, compute_motion):
941 * insdel.c (count_combining_before, count_combining_after):
942 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
944 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
946 Turn `directory-sep-char' into a noop.
948 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
949 (DIRECTORY_SEP): Define unconditionally.
951 * s/ms-w32.h (DIRECTORY_SEP): Remove.
953 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
954 call dostounix_filename directly.
956 * fileio.c (CORRECT_DIR_SEPS): Remove.
957 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
958 (Fsubstitute_in_file_name): Use dostounix_filename instead.
959 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
960 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
962 * w32proc.c (CORRECT_DIR_SEPS): Remove.
963 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
965 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
967 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
970 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
972 * ccl.c (Fccl_program_p): Fix typo in docstring.
974 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
976 Move UNEXEC definition to autoconf.
977 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
978 * s/sol2-10.h (UNEXEC):
979 * s/irix6-5.h (UNEXEC):
980 * s/hpux10-20.h (UNEXEC):
981 * s/gnu-linux.h (UNEXEC):
982 * s/darwin.h (UNEXEC):
983 * s/cygwin.h (UNEXEC):
984 * s/bsd-common.h (UNEXEC):
985 * s/aix4-2.h (UNEXEC):
986 * m/alpha.h (UNEXEC): Likewise.
987 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
989 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
991 Remove obsolete pre-unicode2 macros.
992 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
993 * composite.c (composition_reseat_it):
995 * fns.c (Ffillarray):
996 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
997 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
999 2010-06-03 Juri Linkov <juri@jurta.org>
1001 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1002 (Fswitch_to_buffer): Remove unused variable `err'.
1004 2010-06-03 Glenn Morris <rgm@gnu.org>
1006 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1008 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1009 now that AH_BOTTOM does it.
1011 * m/hp800.h (HAVE_ALLOCA):
1012 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1014 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1015 Remove NOT_C_CODE tests, it is always true now.
1017 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1019 Fix config.h includes.
1027 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1030 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1032 * s/sol2-6.h: Remove obsolete comments.
1034 Remove unnecessary alloca.h includes.
1035 * keymap.c: Do not include alloca.h, config.h does that.
1036 * sysdep.c: Likewise. Do not define fwrite, not used.
1038 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1040 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1041 the HAVE_TERMIO where it belongs (bug#6149).
1043 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1045 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1048 2010-05-30 Eli Zaretskii <eliz@gnu.org>
1050 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1051 state is always cached (bug#6306).
1053 2010-05-29 Eli Zaretskii <eliz@gnu.org>
1055 Fix cursor motion in bidi-reordered continued lines.
1056 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1057 only after finding point's row. Fix the logic. Rewrite the loop
1058 over continuation lines in bidi-reordered buffers. Return
1059 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1060 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1062 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
1064 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1066 2010-05-28 Kenichi Handa <handa@m17n.org>
1068 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1069 Don't sheck SPEC if it is nil.
1070 (font_list_entities): Call font_delete_unmatched if
1071 Vface_ignored_fonts is non-nil. (Bug#6287)
1073 2010-05-28 Glenn Morris <rgm@gnu.org>
1075 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1077 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1079 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1081 (internal_delete_file, Frename_file): Callers changed.
1082 (delete_by_moving_to_trash): Doc fix.
1083 (Fdelete_directory_internal): Don't move to trash.
1085 * callproc.c (delete_temp_file):
1086 * buffer.c (Fkill_buffer): Callers changed.
1088 * lisp.h: Update prototype.
1090 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1092 * xdisp.c (redisplay_window): After redisplay, check if point is
1093 still valid before setting it (Bug#6177).
1095 2010-05-27 Glenn Morris <rgm@gnu.org>
1097 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1098 Convert comments to Makefile format.
1100 * Makefile.in (bootstrap-clean): No more Makefile.c.
1102 2010-05-26 Glenn Morris <rgm@gnu.org>
1104 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1105 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1107 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1109 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1111 2010-05-26 Kenichi Handa <handa@m17n.org>
1113 * composite.c (composition_compute_stop_pos): Fix condition for
1116 2010-05-25 Glenn Morris <rgm@gnu.org>
1118 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1119 Move before TEMACS_LDFLAGS.
1120 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1121 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1123 * Makefile.in (NOT_C_CODE): No longer define.
1124 (config.h): No longer include.
1126 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1127 variables it may reference.
1129 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1130 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1132 2010-05-25 Kenichi Handa <handa@m17n.org>
1134 * dispextern.h (struct composition_it): New members rule_idx and
1137 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1138 that the character positions of IT point the last character of the
1139 current grapheme cluster.
1140 (next_element_from_composition): Don't change character positions
1142 (append_composite_glyph): Set glyph->charpos to
1145 * composite.c (autocmp_chars): Change the first argument to RULE,
1146 and try composition with RULE only.
1147 (composition_compute_stop_pos): Record the index number of the
1148 composition rule in CMP_IT->rule_idx.
1149 (composition_reseat_it): Call autocmp_chars repeatedly until the
1150 correct rule of the composition is found.
1151 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1152 is at the last character of the current grapheme cluster when
1153 CMP_IT->reversed_p is nonzero.
1155 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1157 * editfns.c (Fbyte_to_string): New function.
1159 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1161 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1162 Suggested by Masatake YAMATO <yamato@redhat.com>.
1164 2010-05-23 Eli Zaretskii <eliz@gnu.org>
1166 * dispextern.h (init_iterator): Sync prototype with changed definition.
1168 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1170 * s/netbsd.h: If terminfo is found, use it in preference to
1171 termcap. (Bug#6190) [Backport from trunk]
1173 2010-05-19 Eli Zaretskii <eliz@gnu.org>
1175 Redesign and reimplement bidi-aware edge positions of glyph rows.
1177 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1178 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1179 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1180 and maxpos members instead of start.pos and end.pos, respectively.
1182 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1183 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1184 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
1185 (try_window_reusing_current_matrix, try_window_id):
1186 Use ROW->minpos rather than ROW->start.pos.
1187 (init_from_display_pos, init_iterator): Use EMACS_INT for
1188 character and byte positions.
1189 (find_row_edges): Rename from find_row_end. Accept additional
1190 arguments for minimum and maximum buffer positions seen by
1191 display_line for this row. Don't use iterator to find the
1192 position following the maximum one; instead, increment the
1193 position found by display_line directly. Fix logic; eol_pos
1194 should be tested before the rest. Handle the case of characters
1195 delivered from display vector (bug#6036). Fix tests related to
1196 it->method. Handle the truncated_on_right_p rows.
1197 (RECORD_MAX_MIN_POS): New macro.
1198 (display_line): Use it to record the minimum and maximum buffer
1199 positions for glyphs in the row being assembled. Record the
1200 position of the newline that terminates the line. If word wrap is
1201 in effect, restore minimum and maximum positions seen up to the
1202 wrap point, when iterator returns to it.
1203 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1204 row and cursor not already at point. Restore original pre-bidi
1205 code for unidirectional buffers.
1207 * dispnew.c (increment_row_positions, check_matrix_invariants):
1208 Increment and check row->start.pos and row->end.pos, in addition
1209 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1211 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1212 Display truncated_on_left_p and truncated_on_right_p flags.
1214 (pmtxrows): Display the ordinal number of each row. Don't display
1215 rows beyond the last one.
1217 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1218 it is not copied by bidi_copy_it.
1220 2010-05-22 Eli Zaretskii <eliz@gnu.org>
1222 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1225 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
1227 * image.c (Fimage_flush): Rename from image-refresh.
1229 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
1231 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1234 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1235 (clear_image_cache): If the number of cached images is unusually
1236 large, decrease the cache eviction delay (Bug#6230).
1238 2010-05-21 Glenn Morris <rgm@gnu.org>
1240 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1241 Move these rules to ns.mk.
1244 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1246 * Makefile.in (CANNOT_DUMP): New, set by configure.
1247 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1249 2010-05-20 Juri Linkov <juri@jurta.org>
1251 * fileio.c (Fdelete_file): Change interative spec to use
1252 `read-file-name' like in `find-file-read-args' where the default
1253 value is `default-directory' instead of `buffer-file-name'.
1254 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1256 2010-05-20 Kevin Ryde <user42@zip.com.au>
1258 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1259 (Voverriding_terminal_local_map, Vsystem_key_alist)
1260 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1262 2010-05-20 Glenn Morris <rgm@gnu.org>
1264 * Makefile.in (DEPDIR): New constant.
1265 (DEPFLAGS): Set with configure, not cpp.
1266 (MKDEPDIR): New, set by configure.
1267 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1268 (clean): Use $DEPDIR.
1269 (deps_frag): Include from configure.
1270 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1271 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1273 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1274 reallocation of the cache. (Bug#6210)
1276 2010-05-19 Glenn Morris <rgm@gnu.org>
1278 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1280 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1281 (GNULIB_VAR): Remove.
1282 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1284 * m/ibms390x.h (LINKER):
1285 * m/macppc.h (LINKER) [GNU_LINUX]:
1286 * s/aix4-2.h (ORDINARY_LINK):
1287 * s/cygwin.h (LINKER):
1288 * s/darwin.h (ORDINARY_LINK):
1289 * s/gnu.h (ORDINARY_LINK):
1290 * s/netbsd.h (LINKER):
1291 * s/usg5-4.h (ORDINARY_LINK):
1294 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1296 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
1298 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1299 prevent stack overflow if number of arguments is too large
1302 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
1304 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1306 2010-05-18 Glenn Morris <rgm@gnu.org>
1308 * s/gnu-linux.h: Combine two conditionals.
1310 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
1313 * Makefile.in (RALLOC_OBJ): New, set by configure.
1314 (rallocobj): Replace with the previous variable.
1315 (otherobj): Use $RALLOC_OBJ.
1317 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1318 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1320 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1321 (gmallocobj, vmlimitobj): Replace with previous two variables.
1322 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1324 2010-05-17 Glenn Morris <rgm@gnu.org>
1326 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1327 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1329 2010-05-16 Glenn Morris <rgm@gnu.org>
1331 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1333 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1335 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1338 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1339 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1341 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1342 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1343 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1344 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1345 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1347 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1348 Remove ${STARTFLAGS}, nothing ever sets it.
1350 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1352 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1354 2010-05-16 Glenn Morris <rgm@gnu.org>
1356 * Makefile.in (LIBX_BASE): Always define.
1358 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1360 * Makefile.in (LIBXT): Always define.
1362 2010-05-15 Glenn Morris <rgm@gnu.org>
1364 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
1366 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1367 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1369 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
1371 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
1372 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1374 * emacs.c (main): Initialize initial-environment and
1375 process-environment before generating from env, not after.
1377 Handle --version reasonably in CANNOT_DUMP configuration.
1378 * emacs.c (emacs_version, emacs_copyright): New string variables.
1379 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1380 (syms_of_emacs): Defvar them, and initialize them from the C
1382 (main): If initialization hasn't been done, print initial version
1383 info from the C strings, instead of starting an interactive session.
1385 2010-05-15 Eli Zaretskii <eliz@gnu.org>
1387 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1388 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
1389 (bidi_paragraph_init): Remove redundant assertion that we are at
1390 the beginning of a line after call to bidi_find_paragraph_start.
1392 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1393 (syms_of_xdisp): Defsubr it.
1395 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1397 * Makefile.in: Fix MSDOS-related comments.
1399 2010-05-15 Glenn Morris <rgm@gnu.org>
1401 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1402 (really-lwlib, really-oldXMenu): Always define.
1403 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1405 * Makefile.in: Simplify cpp conditional.
1407 * Makefile.in (${ns_appdir}): Simplify using umask.
1409 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1411 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1413 * eval.c (specbind): Remove left-over duplicate test.
1414 Disallow let-binding frame-local vars. Add comment.
1416 2010-05-14 Eli Zaretskii <eliz@gnu.org>
1418 Make the cache of bidi iterator states dynamically allocated.
1419 * bidi.c (bidi_cache_shrink): New function.
1420 (bidi_init_it): Call it.
1421 (bidi_cache_iterator_state): Enlarge the cache if needed.
1423 * bidi.c (bidi_move_to_visually_next): Rename from
1424 bidi_get_next_char_visually. All callers changed.
1426 2010-05-14 Kenichi Handa <handa@m17n.org>
1428 * dispextern.h (struct composition_it): New member reversed_p.
1430 * composite.c (composition_compute_stop_pos): Search backward if
1432 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1433 Set CMP_IT->reversed_p.
1434 (composition_update_it): Pay attention to CMP_IT->reversed_p.
1436 * xdisp.c (set_iterator_to_next):
1437 Call composition_compute_stop_pos with negative ENDPOS if we are
1438 scanning backward. Call composition_compute_stop_pos if scan
1439 direction is changed.
1440 (next_element_from_buffer): Call composition_compute_stop_pos with
1441 negative ENDPOS if we are scanning backward.
1442 (next_element_from_composition): Pay attention to
1443 IT->cmp_it.reversed_p.
1445 2010-05-14 Kenichi Handa <handa@m17n.org>
1447 * font.c (font_range): Return the range for the font found at first.
1449 2010-05-14 Glenn Morris <rgm@gnu.org>
1451 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1453 * Makefile.in (mktime, X11, register): Move undefs to configure.
1455 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1456 (MSDOS_X_OBJ): New variable.
1457 (MSDOS_SUPPORT_REAL): New constant.
1458 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1459 (obj): Use MSDOS_X_OBJ.
1460 (lisp): Use MSDOS_SUPPORT as a variable.
1462 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1463 (GPM_MOUSE_SUPPORT): Now it's a constant.
1464 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1467 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
1468 (ns_appresdir): Remove, unused.
1470 * Makefile.in (SHELL): Move outside cpp section.
1472 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1474 2010-05-13 Glenn Morris <rgm@gnu.org>
1476 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1477 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1479 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1480 HAVE_WINDOW_SYSTEM must be too.
1482 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1483 (lisp): Remove WINNT_SUPPORT.
1485 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1486 Let configure set these variables (to empty) in this case as well.
1488 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1489 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1491 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1492 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1493 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1494 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1495 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
1496 the values output by configure.
1497 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1499 2010-05-12 Glenn Morris <rgm@gnu.org>
1501 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1502 (LINKER_WAS_SPECIFIED): Remove.
1504 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1505 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1506 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1507 * s/cygwin.h (LIB_GCC):
1508 * s/freebsd.h (LIB_GCC):
1509 * s/gnu-linux.h (LIB_GCC):
1510 * s/msdos.h (LIB_GCC):
1511 * s/netbsd.h (LIB_GCC):
1514 2010-05-11 Karel Klic <kklic@redhat.com>
1516 * ftfont.c: Fix incorrect parentheses of #if condition for
1517 definining M17N_FLT_USE_NEW_FEATURE.
1519 2010-05-11 Glenn Morris <rgm@gnu.org>
1521 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1522 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1524 2010-05-10 Eli Zaretskii <eliz@gnu.org>
1526 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1527 unibyte buffers. See
1528 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1530 2010-05-10 Glenn Morris <rgm@gnu.org>
1532 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1533 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1534 (LIBES): Use LIBS_SYSTEM as a variable.
1535 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1536 * s/aix4-2.h (LIBS_SYSTEM):
1537 * s/freebsd.h (LIBS_SYSTEM):
1538 * s/hpux10-20.h (LIBS_SYSTEM):
1539 * s/sol2-6.h (LIBS_SYSTEM):
1540 * s/unixware.h (LIBS_SYSTEM):
1543 * s/aix4-2.h (MAIL_USE_LOCKF):
1544 * s/bsd-common.h (MAIL_USE_FLOCK):
1545 * s/darwin.h (MAIL_USE_FLOCK):
1546 * s/gnu-linux.h (MAIL_USE_FLOCK):
1547 * s/irix6-5.h (MAIL_USE_FLOCK):
1548 * s/template.h (MAIL_USE_FLOCK):
1551 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
1553 * Version 23.2 released.
1555 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
1557 * composite.c (autocmp_chars): Save point as marker before calling
1558 auto-composition-function (Bug#5984).
1560 * lisp.h (restore_point_unwind): Add prototype.
1562 * fileio.c (restore_point_unwind): Remove static attribute.
1564 2010-05-08 Kenichi Handa <handa@m17n.org>
1566 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1567 new feature of libotf and m17n-flt.
1568 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1569 Call OTF_check_features even if no specific feature is given.
1570 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1571 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1572 that OUT is NULL. Use OTF_drive_gsub_with_log and
1573 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1575 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
1576 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1577 Setup mflt_enable_new_feature and mflt_try_otf.
1579 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1581 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1583 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1584 box and toolbar (Bug #6139).
1585 (xg_create_tool_bar): Remove comment (Bug #6139).
1586 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1587 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1589 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
1591 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1592 Update dependencies.
1594 2010-05-08 Eli Zaretskii <eliz@gnu.org>
1596 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1599 2010-05-08 Glenn Morris <rgm@gnu.org>
1601 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1603 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1604 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1605 (termcapobj): Replace with TERMCAP_OBJ.
1606 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1607 (LIBES): Use LIBS_TERMCAP as a variable.
1609 * s/freebsd.h (osreldate.h): No longer include, since this file
1610 does not use __FreeBSD_version any more.
1612 * s/aix4-2.h (TERMINFO):
1613 * s/cygwin.h (TERMINFO):
1614 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1615 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1616 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1617 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1618 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1619 * s/irix6-5.h (TERMINFO):
1620 * s/netbsd.h (LIBS_TERMCAP):
1621 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1622 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1623 * s/usg5-4.h (TERMINFO):
1626 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1628 * eval.c (unbind_to): Don't unbind a local binding into the global
1629 binding when the local binding disappeared. Inversely, don't unbind
1630 a global binding into a newly created local binding.
1631 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1632 can specify the frame to use, when applicable. Adjust callers.
1634 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
1635 Stefan Monnier <monnier@iro.umontreal.ca>
1637 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1639 2010-05-07 Eli Zaretskii <eliz@gnu.org>
1641 * w32fns.c: Include w32.h.
1642 (Fw32_shell_execute): Decode the error message before passing it
1643 to `error'. (Bug#6126)
1645 * msdos.c (dos_set_window_size):
1646 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1647 instead of `XSYMBOL (foo)->value'.
1649 2010-05-07 Eli Zaretskii <eliz@gnu.org>
1651 Fix the MS-DOS build, broken by autoconfiscation.
1653 * Makefile.in: Don't use Make-style comments past the "start of
1655 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1657 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1658 edited directly by msdos/sed1v2.inp).
1660 2010-05-07 Glenn Morris <rgm@gnu.org>
1662 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1663 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1664 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1665 move out of cpp section.
1666 * s/freebsd.h (LD_SWITCH_SYSTEM):
1667 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1668 * s/netbsd.h (LD_SWITCH_SYSTEM):
1669 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1671 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1673 Define LIB_STANDARD and START_FILES using autoconf.
1674 * s/usg5-4.h (LIB_STANDARD):
1675 * s/netbsd.h (START_FILES):
1676 * s/irix6-5.h (LIB_STANDARD):
1677 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1678 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1679 * s/freebsd.h (START_FILES):
1680 * s/darwin.h (START_FILES):
1681 * s/cygwin.h (START_FILES):
1682 * s/aix4-2.h (LIB_STANDARD):
1683 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1684 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1687 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1689 Remove NEED_BSDTTY and NEED_UNISTD_H.
1690 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1691 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1692 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1693 <sys/ptyio.h> and <unistd.h>.
1695 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1697 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1698 * s/gnu.h (START_FILES): Remove empty definition.
1700 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1702 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1704 2010-05-06 Glenn Morris <rgm@gnu.org>
1706 * Makefile.in (CPP, LN_S): Remove unused variables.
1708 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1710 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1712 2010-05-05 Lawrence Mitchell <wence@gmx.li>
1714 * m/sparc.h: Fix typo in earlier change.
1716 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1719 * eval.c (Fdefvaralias): Remove unintended nested if.
1720 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1722 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
1724 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1726 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1729 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1730 * s/gnu-linux.h (BSD_PGRPS): Remove.
1731 * term.c (dissociate_if_controlling_tty):
1732 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1733 (init_sys_modes, reset_sys_modes):
1735 * callproc.c (Fcall_process, child_setup): Remove code depending
1738 Remove POSIX_SIGNALS.
1739 * s/usg5-4.h (POSIX_SIGNALS):
1740 * s/netbsd.h (POSIX_SIGNALS):
1741 * s/msdos.h (POSIX_SIGNALS):
1742 * s/ms-w32.h (POSIX_SIGNALS):
1743 * s/hpux11.h (POSIX_SIGNALS):
1744 * s/gnu.h (POSIX_SIGNALS):
1745 * s/gnu-linux.h (POSIX_SIGNALS):
1746 * s/freebsd.h (POSIX_SIGNALS):
1747 * s/darwin.h (POSIX_SIGNALS):
1748 * s/cygwin.h (POSIX_SIGNALS):
1749 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1751 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1752 * process.c (create_process):
1754 * sysdep.c (wait_for_termination, init_signals):
1755 * process.c (create_process):
1756 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1757 remove all code that assumes the contrary.
1759 2010-05-04 Glenn Morris <rgm@gnu.org>
1761 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1763 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1764 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1765 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1766 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1767 LD_SWITCH_SYSTEM_tmp.
1768 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1769 New variables, set by configure.
1771 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1772 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1773 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1774 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1775 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1777 * s/aix4-2.h (C_SWITCH_SYSTEM):
1778 * m/alpha.h (C_SWITCH_MACHINE):
1779 Move to configure.in.
1780 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1781 New variables, set by configure.
1782 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1783 $c_switch_machine and $c_switch_system.
1785 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1787 * s/hpux10-20.h (LIB_STANDARD): New definition.
1788 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1789 on it, not used anymore.
1791 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
1793 * eval.c (internal_condition_case_n): Rename from
1794 internal_condition_case_2.
1795 (internal_condition_case_2): New function.
1797 * xdisp.c (safe_call): Use internal_condition_case_n.
1799 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1800 (internal_delete_file, Frename_file): Callers changed.
1802 * buffer.c (Fkill_buffer):
1803 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1805 * lisp.h: Update prototypes.
1807 2010-05-03 Glenn Morris <rgm@gnu.org>
1809 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1810 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1811 (LIBXT): Set with configure, not cpp.
1813 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1815 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1817 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1818 The FreeBSD is not needed, the default works, Solaris version is
1819 not needed, and the remaining case is not supported by configure.
1821 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1823 * xsmfns.c (CHDIR_OPT): New define.
1824 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1827 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1830 * emacs.c (USAGE1): Mention --chdir.
1831 (main): Handle --chdir.
1832 (standard_args): Add --chdir.
1833 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1836 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1838 Remove LD_SWITCH_MACHINE.
1839 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1840 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1843 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1844 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1847 * m/ibmrs6000.inp: Remove file, unused.
1848 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1849 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1851 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1853 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1856 2010-05-01 Eli Zaretskii <eliz@gnu.org>
1858 Emulate POSIX_SIGNALS on MS-Windows.
1860 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1861 (SIG_SETMASK, SIG_UNBLOCK): Define.
1863 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1864 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1865 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1867 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1870 Miscellaneous fixes of bidi display.
1872 * xdisp.c (find_row_end): New function, refactored from display_line.
1873 (display_line): Use it.
1874 (extend_face_to_end_of_line): In almost-filled rows, extend only
1875 if the row is R2L and not continued.
1876 (display_line): Fix prepending of truncation glyphs to R2L rows.
1877 Preserve overlay and string info in row->end.
1878 (insert_left_trunc_glyphs): Support addition of left truncation
1880 (set_cursor_from_row): Don't place cursor on the vertical border
1881 glyph between adjacent windows. Fix a crash when a display string
1882 is continued to the next line. Don't return zero if cursor was
1883 found by `cursor' property of a display string.
1884 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1885 test for that explicitly.
1887 2010-05-01 Glenn Morris <rgm@gnu.org>
1889 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1891 (OTHER_OBJ): Remove.
1892 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1893 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1895 2010-05-01 Karel Klíč <kklic@redhat.com>
1897 * fileio.c (Ffile_selinux_context): Context functions may return null.
1899 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1901 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
1903 2010-04-30 Glenn Morris <rgm@gnu.org>
1905 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1906 (OTHER_OBJ): Define as a separate variable, for clarity.
1908 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1910 * xsettings.c: include limits.h and update file comment.
1912 2010-04-30 Glenn Morris <rgm@gnu.org>
1914 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1915 Set with configure, not cpp.
1916 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1918 * Makefile.in (mallocobj): Remove.
1919 (otherobj): Simplify using @OTHER_OBJ@.
1921 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1922 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1923 Don't bother making nsgui.h dependency platform-specific.
1925 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1927 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1929 * process.c (read_process_output, exec_sentinel): Don't burp if the
1930 sentinel/filter kills the current buffer (bug#6060).
1932 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
1933 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1934 Remove unused var `args'.
1935 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1936 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1937 * doc.c (store_function_docstring): Use XSETCAR.
1939 2010-04-28 Glenn Morris <rgm@gnu.org>
1941 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1942 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1944 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1946 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1947 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1949 * Makefile.in (FONT_OBJ): New, set by configure.
1950 (FONT_DRIVERS): Use $FONT_OBJ.
1952 * Makefile.in (LIBXMU): Set with configure, not cpp.
1953 * s/aix4-2.h (LIBXMU):
1954 * s/hpux10-20.h (LIBXMU):
1955 Remove definition, now set in configure.
1957 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1959 * m/amdx86-64.h [i386]: Move this test to configure.in.
1961 2010-04-27 Glenn Morris <rgm@gnu.org>
1963 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1964 * s/unixware.h (NEED_LIBW): Remove definition.
1966 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1967 (TOOLKIT_LIBW): New, set by configure.
1968 (@X_TOOLKIT_TYPE@): No longer define it.
1970 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1971 (MOTIF_LIBW): Set with configure, not cpp.
1972 * s/aix4-2.h (LIB_MOTIF):
1973 * s/gnu-linux.h (LIB_MOTIF):
1974 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1976 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1979 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1980 (obj): Use autoconf for unexec instead of cpp.
1981 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1982 definitions and undefs. Inline definitions in the only user.
1983 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
1985 2010-04-27 Glenn Morris <rgm@gnu.org>
1987 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1988 since the defaults (set by the system file) are fine in most cases.
1989 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1990 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1991 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1992 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1993 Remove definitions, since they are set correctly in s/gnu-linux.h.
1994 * s/freebsd.h (START_FILES, LIB_STANDARD):
1995 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1996 * s/hpux10-20.h (START_FILES):
1997 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1998 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2000 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2001 (MOTIF_LIBW): Use $LIBXP.
2002 (otherobj): Use $WIDGET_OBJ.
2004 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2006 * Makefile.in (LIBS_MACHINE): Remove, unused.
2008 Use autoconf instead of cpp for LIB_MATH.
2009 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2010 * s/cygwin.h (LIB_MATH): Likewise.
2011 * Makefile.in (LIB_MATH): Do not define with cpp.
2012 (LIBES): Use autoconf for LIB_MATH.
2014 2010-04-26 Kenichi Handa <handa@m17n.org>
2016 * composite.c (Ffind_composition_internal): Fix the return value
2017 for an automatic composition.
2019 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2021 Remove all NO_ARG_ARRAY uses.
2022 * fns.c (concat2, concat3, nconc2):
2023 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2024 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2025 * m/xtensa.h (NO_ARG_ARRAY):
2026 * m/template.h (NO_ARG_ARRAY):
2027 * m/sparc.h (NO_ARG_ARRAY):
2028 * m/sh3.h (NO_ARG_ARRAY):
2029 * m/mips.h (NO_ARG_ARRAY):
2030 * m/macppc.h (NO_ARG_ARRAY):
2031 * m/iris4d.h (NO_ARG_ARRAY):
2032 * m/intel386.h (NO_ARG_ARRAY):
2033 * m/ibms390x.h (NO_ARG_ARRAY):
2034 * m/ibms390.h (NO_ARG_ARRAY):
2035 * m/ibmrs6000.h (NO_ARG_ARRAY):
2036 * m/ia64.h (NO_ARG_ARRAY):
2037 * m/hp800.h (NO_ARG_ARRAY):
2038 * m/arm.h (NO_ARG_ARRAY):
2039 * m/amdx86-64.h (NO_ARG_ARRAY):
2040 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2042 2010-04-25 Eli Zaretskii <eliz@gnu.org>
2044 * xdisp.c (display_line): Don't assume 2nd call to
2045 get_next_display_element cannot return zero. (Bug#6030)
2046 (iterate_out_of_display_property): New function, body from pop_it.
2049 2010-04-24 Glenn Morris <rgm@gnu.org>
2051 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2052 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2053 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2054 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2056 2010-04-24 Eli Zaretskii <eliz@gnu.org>
2058 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2059 use `get_next_display_element' and `set_iterator_to_next' to
2060 advance to the next character, when looking for the character that
2061 begins the next row.
2063 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2064 definition of "struct Lisp_Symbol".
2066 2010-04-24 Glenn Morris <rgm@gnu.org>
2068 * Makefile.in (CRT_DIR): New variable, set by configure.
2069 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2070 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2072 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2074 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2076 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2078 Remove redundant flags.
2079 * s/freebsd.h (C_SWITCH_SYSTEM):
2080 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2081 * s/netbsd.h (C_SWITCH_SYSTEM):
2082 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2085 Simplify m/intel386.h.
2086 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2088 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2089 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2090 the only user: s/unixware.h.
2091 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2093 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2094 moved here from m/intel386.h.
2096 * m/mips.h: Remove #if 0 code.
2098 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2100 Fix display of composed characters from L2R scripts in bidi buffers.
2101 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2102 After advancing IT past the composition, resync the bidi iterator
2103 with IT's position. (Bug#5977)
2105 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2107 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2108 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2110 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2112 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2114 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2116 Support `display' text properties and overlay strings in bidi buffers.
2117 * xdisp.c (pop_it): When the stack is popped after displaying
2118 from a string, bidi-iterate to exit from the text portion covered
2119 by the `display' property or overlay. (Bug#5988, bug#5920)
2121 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2123 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2124 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2126 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2127 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2129 Simplify STARTFILES definition.
2130 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2131 relying on Makefile.in to define it.
2132 * s/cygwin.h (START_FILES): Likewise.
2133 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2135 Clean up Solaris code.
2136 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2137 (LIB_MOTIF): Remove, configure takes care of this.
2138 (NOT_USING_MOTIF): Remove, unused.
2139 * xrdb.c: Remove #if 0-ed #include.
2140 (SYSV): Remove conditional for old SysV.
2141 * sysdep.c (closedir): Remove conditional code for Solaris,
2142 Solaris has closedir.
2144 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2146 * xsettings.c (read_and_apply_settings): Check if current_font is
2147 NULL before strcmp (Bug#6001).
2149 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2151 Clean up HP-UX files.
2152 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2153 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2154 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2155 * s/hpux10-20.h: ... to the only user, here.
2157 2010-04-21 Eli Zaretskii <eliz@gnu.org>
2159 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2160 use buffer-local values of paragraph-start and paragraph-separate.
2161 <paragraph_start_re, paragraph_separate_re>: Rename from
2162 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2165 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2167 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2168 current_tool_bar_style are new.
2169 (store_config_changed_event): Rename from store_font_changed_event.
2170 (XSETTINGS_TOOL_BAR_STYLE): New define.
2171 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2172 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2174 (something_changedCB): store_font_changed_event is now
2175 store_config_changed_event
2176 (parse_settings): Rename from parse_xft_settings. Read
2177 non-xft xsettings outside #ifdef HAVE_XFT.
2178 (read_settings): Renamed from read_xft_settings.
2179 (apply_xft_settings): Take current settings as parameter. Do not
2180 call read_(xft)_settings.
2181 (read_and_apply_settings): New function.
2182 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2183 read_and_apply_settings if there are settings to be read.
2184 (init_xsettings): Renamed from init_xfd_settings.
2185 Call read_and_apply_settings unconditionally.
2186 (xsettings_initialize): Call init_xsettings.
2187 (Ftool_bar_get_system_style): New function.
2188 (syms_of_xsettings): Define Qmonospace_font_name and
2189 Qtool_bar_style. Initialize current_tool_bar_style to nil.
2190 defsubr Stool_bar_get_system_style. Fprovide on
2192 Move misplaced HAVE_GCONF
2194 * xsettings.h (Ftool_bar_get_system_style): Declare.
2196 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2197 Qtext, Qboth, Qboth_horiz are new.
2198 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2199 Vtool_bar_style, tool_bar_max_label_size.
2201 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2203 * keyboard.c: QClabel is new.
2204 (parse_tool_bar_item): Take out QClabel from tool bar items.
2205 Try to construct a label if ther is no QClabel.
2206 (syms_of_keyboard): Intern :label as QClabel.
2208 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2209 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2212 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2215 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2216 (xg_make_tool_item, xg_show_toolbar_item): New function.
2217 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2218 Call xg_make_tool_item to make a tool bar item.
2219 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2221 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2222 into account for toolbars.
2224 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2226 * data.c (make_blv): Declarations before code (Bug#5993).
2228 2010-04-21 Glenn Morris <rgm@gnu.org>
2230 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2231 Define using autoconf, not cpp.
2232 (LIBXSM): New variable, set by autoconf.
2233 (LIBXT): Use $LIBXSM.
2235 2010-04-21 Dan Nicolaescu <local_user@dannlt>
2237 Remove NOMULTIPLEJOBS, unused.
2238 * s/template.h (NOMULTIPLEJOBS):
2239 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2241 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2242 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2243 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2244 detects -znocombreloc and passes it to the linker
2245 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2247 2010-04-21 Glenn Morris <rgm@gnu.org>
2249 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2251 2010-04-21 Karel Klíč <kklic@redhat.com>
2253 * Makefile.in (LIBSELINUX_LIBS): New.
2254 (LIBES): Add $LIBSELINUX_LIBS.
2255 * eval.c, lisp.h (call7): New function.
2256 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2257 (Ffile_selinux_context, Fset_file_selinux_context):
2259 (Fcopy_file): New parameter preserve-selinux-context.
2260 (Frename_file): Preserve selinux context when renaming by copy-file.
2262 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
2263 Eli Zaretskii <eliz@gnu.org>
2265 Don't depend on cm.c or termcap.c on Windows, use stubs.
2266 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2267 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2268 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2269 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2270 (sys_tputs, sys_tgetstr): New stubs.
2271 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2272 (tputs, tgetstr): New; define to sys_*.
2274 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
2276 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2278 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2280 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2281 Just signal a warning rather than an error when inside a let.
2282 (Fmake_variable_frame_local): Add the same test.
2284 * font.c (syms_of_font): Make the style table vars read-only.
2286 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2287 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2289 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2291 2010-04-20 Eli Zaretskii <eliz@gnu.org>
2293 Fix R2L paragraph display on TTY.
2295 * xdisp.c (unproduce_glyphs): New function.
2296 (display_line): Use it when produced glyphs are discarded from R2L
2298 (append_composite_glyph): In R2L rows, prepend the glyph rather
2301 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2302 rather than append it. Set up the resolved_level and bidi_type
2303 attributes of the appended glyph.
2304 (produce_special_glyphs): Mirror the backslash continuation
2305 character in R2L lines.
2307 Implement display of R2L paragraphs in GUI sessions.
2309 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2310 append_stretch_glyph.
2311 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2312 off-by-one error in computing x at end of text in the row.
2313 (append_stretch_glyph): In reversed row, prepend the glyph rather
2314 than append it. Set resolved_level and bidi_type of the glyph.
2315 (extend_face_to_end_of_line): If the row is reversed, prepend a
2316 stretch glyph whose width is such that the rightmost glyph will be
2317 drawn at the right margin of the window. Fix off-by-one error on
2318 TTY frames in testing whether a line needs face extension. Fix
2319 face extension at ZV. If this is the last glyph row, use
2320 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2322 (set_cursor_from_row, display_line): Use
2323 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2324 row->continuation_lines_width.
2325 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2326 are at ZV. Fixes a crash when reseated to ZV by
2327 try_window_reusing_current_matrix.
2328 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2329 which happens with R2L glyph rows. Fixes a crash when inserting a
2330 character at end of an R2L line.
2331 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2332 treat them as having zero-width characters. Improve comments.
2333 Don't reverse pos_before and pos_after for reversed glyph rows.
2334 Set cursor.x to negative value when the cursor might be on the
2336 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2337 left fringe, not the right one.
2338 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2339 (erase_phys_cursor): For reversed cursor_row, support cursor on
2342 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2343 of continuation indicators on the fringes.
2344 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2347 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2348 draw cursor on the left fringe.
2350 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2351 cursor on the left fringe.
2353 * dispnew.c (update_text_area): Handle reversed desired rows when
2354 the cursor is on the left fringe.
2355 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2356 below, not by 0, for when the cursor is on the left fringe.
2358 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2360 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2361 widget is a scrollbar.
2363 2010-04-20 Kenichi Handa <handa@m17n.org>
2365 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2366 only when the arg CHARSET_LIST is nil.
2368 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2370 Make variable forwarding explicit rather the using special values.
2371 Basically, this makes the structure of buffer-local values and object
2372 forwarding explicit in the type of Lisp_Symbols rather than use
2373 special Lisp_Objects for that. This tends to lead to slightly more
2374 verbose code, but is more C-like, simpler, and makes it easier to make
2375 sure we handled all cases, among other things by letting the compiler
2377 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2378 Removing forwarding objects.
2379 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2380 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2381 explicit rather than hiding them inside Lisp_Object "values".
2382 (XFWDTYPE): New macro.
2383 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2384 (XBUFFER_LOCAL_VALUE): Remove.
2385 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2386 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2387 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2388 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2389 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2390 Remove the Lisp_Misc_* header.
2391 (struct Lisp_Buffer_Local_Value): Redefine.
2392 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2393 (struct Lisp_Misc_Any): Add filler to get the right size.
2394 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2396 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2397 (DEFVAR_KBOARD): Allocate a forwarding object.
2398 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2399 (let_shadows_global_binding_p): New function.
2400 (union Lisp_Val_Fwd): New type.
2401 (make_blv): New function.
2402 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2403 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2404 (swap_in_symval_forwarding, find_symbol_value, Fset)
2405 (let_shadows_buffer_binding_p, set_internal, default_value)
2406 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2407 (Fkill_local_variable, Fmake_variable_frame_local)
2408 (Flocal_variable_p, Flocal_variable_if_set_p)
2409 (Fvariable_binding_locus):
2410 * xdisp.c (select_frame_for_redisplay):
2411 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2412 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2413 * frame.c (store_frame_param):
2414 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2415 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2417 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2418 (clone_per_buffer_values): Only adjust markers into the current buffer.
2419 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2420 (Fbuffer_local_value, set_buffer_internal_1)
2421 (swap_out_buffer_local_variables):
2422 Adapt to the new symbol value structure.
2423 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2424 (defvar_per_buffer): Take a new arg for the fwd object.
2425 (buffer_lisp_local_variables): Return a proper alist (different fix
2427 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2428 (Fgarbage_collect): Don't handle buffer_defaults specially.
2429 (mark_object): Handle new symbol value structure rather than the old
2430 special Lisp_Misc_* objects.
2431 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2432 * term.c (set_tty_color_mode):
2433 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2434 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2435 a buffer_local_flags.
2436 * print.c (print_object): Get rid of impossible forwarding objects.
2438 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2440 * bidi.c (bidi_get_type, bidi_get_category)
2441 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
2442 (bidi_type_of_next_char, bidi_level_of_next_char):
2443 Declare static. Use `INLINE' rather than `inline'.
2445 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
2447 * dired.c (Ffile_attributes): Fix typo in docstring.
2449 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2451 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2452 NSInteger (Bug#5811).
2454 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2456 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2457 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2459 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2461 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2463 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
2465 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2466 terminal frames (Bug#5837).
2468 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2470 * .gdbinit (xsubchartable): New command.
2472 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2474 * xdisp.c (display_line): Don't write beyond the last glyph row in
2475 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
2476 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2478 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2480 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2482 * alloc.c (Fpurecopy): Hash-cons if requested.
2483 (syms_of_alloc): Update purify-flag docstring.
2485 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2487 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2488 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2490 2010-04-17 Eli Zaretskii <eliz@gnu.org>
2492 Fix a crash when an NSM character is inserted at BEGV.
2494 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2495 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2496 NEUTRAL_B or UNKNOWN_BT.
2498 2010-04-16 Eli Zaretskii <eliz@gnu.org>
2500 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2501 other rows with cursor unless they are different from this row and
2502 this row is part of a continued line. (Bug#5943)
2504 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2506 * s/freebsd.h: Restore osreldate.h include.
2507 Suggested by Naohiro Aota.
2509 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2511 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2513 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2515 * s/cygwin.h: Avoid linking against static libgcc.
2517 2010-04-15 Juri Linkov <juri@jurta.org>
2519 * window.c: Add Qscroll_command.
2520 Remove Vscroll_preserve_screen_position_commands.
2521 (window_scroll_pixel_based, window_scroll_line_based): Check the
2522 `scroll-command' property on the last command instead of searching
2523 the last command in Vscroll_preserve_screen_position_commands.
2524 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2525 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2526 (scroll-preserve-screen-position): Doc fix.
2527 (Vscroll_preserve_screen_position_commands): Remove variable.
2529 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2531 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2533 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2535 Reduce cpp use in Makefile.in.
2536 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2537 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2538 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2539 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2540 (CRT0_COMPILE): Remove, inline it in the only user.
2542 2010-04-14 Juri Linkov <juri@jurta.org>
2544 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2545 `scroll-up-command' and `M-v' from `scroll-down' to
2546 `scroll-down-command'.
2548 2010-04-14 Juri Linkov <juri@jurta.org>
2550 * window.c (Vscroll_preserve_screen_position_commands): New variable
2551 with the default value as the list of Qscroll_down and Qscroll_up.
2552 (window_scroll_pixel_based, window_scroll_line_based): Search the
2553 last command in the list Vscroll_preserve_screen_position_commands
2554 instead of comparing with Qscroll_up and Qscroll_down.
2556 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2558 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2559 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2562 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2565 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2567 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2569 Try to solve the problem of spurious EOF chars in long lines of text
2570 sent to interactive subprocesses.
2571 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2572 (system_process_attributes): Remove unused var `ttotal'.
2573 * process.c (send_process): Don't bother breaking long line with EOF
2574 chars when talking to ttys any more.
2575 (wait_reading_process_output): Output a warning when called in such
2576 a way that it could block without being interruptible.
2578 Try to detect file modification within the same second.
2579 * buffer.h (struct buffer): New field modtime_size.
2580 * buffer.c (reset_buffer): Initialize it.
2581 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2582 (Fverify_visited_file_modtime): Check it.
2583 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2584 (Fset_visited_file_modtime): Set (or clear) it.
2586 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2588 * process.c (status_notify): Remove unused var `ro'.
2590 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2592 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2593 more than one visual (Bug#5938).
2595 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2597 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2600 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2602 Remove C_SWITCH_SYSTEM_TEMACS.
2603 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2604 (malloc, realloc, free): Use emacs, not temacs for conditional
2607 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2608 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2610 Use autoconf, not cpp for some variables.
2611 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2612 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2613 (ALL_CFLAGS): Use them as make variables.
2614 (really-lwlib, really-oldXMenu): Do not pass them.
2616 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2618 * xmenu.c (apply_systemfont_to_dialog): New.
2619 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2621 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2623 * process.c (exec_sentinel): Preserve current-buffer.
2625 * process.c (read_process_output): Move the save-current-buffer to
2626 apply to both the filter and the non-filter branches.
2628 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2630 * s/msdos.h (UNEXEC): New definition.
2632 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2634 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2635 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2637 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2638 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2639 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2640 TRY_WINDOW_CHECK_MARGINS.
2642 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
2643 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2644 width only when it is for padding.
2646 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2648 * xfns.c (Fx_show_tip): Call try_window in a loop until
2649 fonts_changed_p is zero (Bug#2423).
2651 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2653 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2654 the end of TEXT_AREA. (Bug#5856)
2656 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2658 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2661 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2663 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2664 prev.orig_type, for resolving type of NSM. (Bug#5858)
2666 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2668 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2669 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2671 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
2672 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2674 (syms_of_xsettings): Initialize current_font.
2675 defsubr Sfont_get_system_normal_font.
2677 * xsettings.h (Ffont_get_system_normal_font,
2678 xsettings_get_system_normal_font): Declare.
2680 * xfns.c (extern xlwmenu_default_font): Remove.
2681 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2684 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2685 menu items in UTF-8.
2687 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2688 (apply_systemfont_to_menu): New function.
2689 (set_frame_menubar, create_and_show_popup_menu): Call
2690 apply_systemfont_to_menu.
2692 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2694 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2695 FRAME_LINE_TO_PIXEL_Y.
2697 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2700 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2702 Simplify code for HP machines.
2703 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2704 for GNU_LINUX, not needed.
2705 (UNEXEC, NEED_BSDTTY): Move definitions...
2706 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2708 * m/iris4d.h (UNEXEC): Move definition ...
2709 * s/irix6-5.h (UNEXEC): ... here.
2711 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2713 * xfns.c (set_machine_and_pid_properties): New function.
2714 (Fx_create_frame): Call set_machine_and_pid_properties.
2716 2010-04-03 Eli Zaretskii <eliz@gnu.org>
2718 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2719 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2720 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2722 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2723 in this function. (Bug#5703)
2725 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
2727 * nsterm.h: Fix last change.
2729 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2731 * m/intel386.h (NO_REMAP): Move definition ...
2732 * s/msdos.h (NO_REMAP): ... here.
2734 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2736 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2737 used on those platforms.
2739 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2741 Remove extern errno declarations.
2758 * buffer.c: Remove errno extern declarations.
2759 * s/netbsd.h (NEED_ERRNO): Remove.
2761 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2763 Remove all uses of LIBX11_SYSTEM.
2764 * Makefile.in (LIBX11_SYSTEM): Remove.
2765 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2768 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2770 Remove support for DJGPP v1.x (bug#5813).
2772 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
2774 * unexec.c (make_hdr, copy_text_and_data):
2775 * sysdep.c (wait_for_termination, sys_subshell):
2776 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
2777 (IT_set_terminal_modes, __write, _rename, gethostname)
2778 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2779 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2780 the value of __DJGPP__.
2781 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2784 * gmalloc.c (memalign):
2785 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2787 * dosfns.c (init_dosfns):
2788 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2790 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2792 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2793 string with `cursor' property comes from an `after-string'
2796 2010-04-01 Glenn Morris <rgm@gnu.org>
2798 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2799 Define as Makefile variables.
2800 (LIBX): Use above variables rather than directly using autoconf.
2802 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2804 Clean up BSD_SYSTEM use.
2807 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2808 for including <sys/ioctl.h>.
2809 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2810 code is only used for MSDOS.
2812 2010-03-31 Juri Linkov <juri@jurta.org>
2814 * image.c: Add `Qextension_data'.
2815 (syms_of_image): Initialize and staticpro `Qextension_data'.
2816 (Fimage_metadata): Rename from `Fimage_extension_data'.
2817 (gif_load): Put GIF extension data to the property
2820 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2822 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2823 * nsterm.h: Fix prototype.
2825 2010-03-31 Eli Zaretskii <eliz@gnu.org>
2827 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2828 trailing whitespace in right-to-left rows.
2830 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2832 Get rid of the direct_output optimizations.
2833 * keyboard.c (nonundocount): Remove extern declaration.
2834 (command_loop_1): Remove brittle optimisation for cheap and
2836 * xdisp.c (redisplay_internal): Don't bother checking
2837 redisplay_performed_directly_p any more.
2838 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2840 * dispnew.c (redisplay_performed_directly_p)
2841 (direct_output_for_insert, direct_output_forward_char):
2842 * dispextern.h (redisplay_performed_directly_p)
2843 (direct_output_for_insert, direct_output_forward_char): Remove.
2844 * cmds.c (nonundocount): Make it static.
2846 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
2848 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2850 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
2852 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2853 invisible (Bug#5766).
2855 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
2857 * xdisp.c (x_consider_frame_title, update_window_cursor):
2858 Remove HAVE_NS conditionals.
2859 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
2861 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2862 filename for the title.
2863 (ns_set_doc_edited): Do nothing if the selected window is a
2866 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2869 * nsterm.m: Remove unneeded prototype.
2871 2010-03-31 Glenn Morris <rgm@gnu.org>
2873 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2874 in the DOC file. (Bug#5336)
2876 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2878 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2880 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2882 * window.c (keys_of_window): Remove redundant/overridden bindings.
2884 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2886 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2887 Restore original behavior when the iterator is not bidi_p.
2889 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2891 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2893 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2895 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2896 are outside the range of cached character positions.
2898 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
2900 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2902 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2904 Initial support for bidirectional editing.
2906 * Makefile.in (obj): Include bidi.o.
2907 (bidi.o): New target.
2909 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2910 ($(BLD)/bidi.$(O)): New target.
2914 * buffer.h (struct buffer): New members bidi_display_reordering
2915 and bidi_paragraph_direction.
2917 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2918 and bidi_paragraph_direction.
2919 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2920 and bidi-paragraph-direction.
2921 (Fbuffer_swap_text): Swap the values of
2922 bidi_display_reordering and bidi_paragraph_direction.
2924 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2925 (bidi_type_t, bidi_dir_t): New types.
2926 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2927 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2928 prev_stop, base_level_stop, and eol_pos.
2929 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2930 (IT_STACK_SIZE): Enlarge to 5.
2931 (struct glyph_row): New member reversed_p.
2932 <string_buffer_position>: Update prototype.
2933 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2934 glyph_row if bidi_it.paragraph_dir == R2L.
2935 (struct glyph): New members resolved_level and bidi_type.
2937 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2938 processing or buffer's direction is right-to-left.
2939 (prepare_desired_row): Preserve the reversed_p flag.
2940 (row_equal_p): Compare the reversed_p attributes as well.
2942 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2943 bidi_init_it and set it->paragraph_embedding from the current
2944 buffer's value of bidi_paragraph_direction.
2945 (reseat_1): Initialize bidi_it.first_elt.
2946 (set_iterator_to_next, next_element_from_buffer): Use the value of
2947 paragraph_embedding to determine the paragraph direction.
2948 (set_iterator_to_next): Under bidi reordering, call
2949 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2950 new_paragraph flag is set in the bidi iterator.
2951 (next_element_from_buffer): If bidi_it.first_elt is set,
2952 initialize paragraph direction and find the first character to
2953 display in the visual order. If reseated to a middle of a line,
2954 prime the bidi iterator starting at the line's beginning. Handle
2955 the situation where we overstepped stop_charpos due to
2956 non-linearity of the bidi iteration. Likewise for when we back up
2957 beyond the previous stop_charpos. When moving across stop_charpos,
2958 record it in prev_stop.
2959 (display_line): Set row->end and it->start for the next row to the
2960 next character in logical order. Always extend reversed_p rows to
2961 the end of line, even if they end at ZV. Copy the reversed_p flag
2962 to the next glyph row. Keep calling set_cursor_from_row for
2963 bidi-reordered rows even if we already have a possible candidate
2964 for cursor position. Set row_end after all the row's glyphs have
2965 been produced, by looping over the glyphs. Record the position
2966 after EOL in it->eol_pos, and use it to set end_pos of the last
2967 row produced for a continued line.
2968 <Qright_to_left, Qleft_to_right>: New variables.
2969 (syms_of_xdisp): Initialize and staticpro them.
2970 (string_buffer_position_lim): New function.
2971 (string_buffer_position): Most of code moved to
2972 string_buffer_position_lim. Last argument and return value are
2973 now EMACS_INT; all callers changed.
2974 (set_cursor_from_row): Rewritten to support bidirectional text and
2975 reversed glyph rows.
2976 (text_outside_line_unchanged_p, try_window_id): Disable
2977 optimizations if we are reordering bidirectional text and the
2978 paragraph direction can be affected by the change.
2979 (append_glyph, append_composite_glyph)
2980 (produce_image_glyph, append_stretch_glyph): Set the
2981 resolved_level and bidi_type members of each glyph.
2982 (append_glyph): If the glyph row is reversed, prepend the glyph
2983 rather than appending it.
2984 (handle_stop_backwards): New function.
2985 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2986 (reseat): call handle_stop_backwards to recompute prev_stop and
2987 base_level_stop for the new position.
2988 (handle_invisible_prop): Under bidi iteration, skip invisible text
2989 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2990 paragraph direction. Update IT->prev_stop after skipping
2992 (move_it_in_display_line_to): New variables prev_method
2993 and prev_pos. Compare for strict equality in
2994 BUFFER_POS_REACHED_P.
2995 (try_cursor_movement): Examine all the candidate rows that occlude
2996 point, to return the best match. If rows are bidi-reordered
2997 and point moved backwards, back up to the row that is not a
2998 continuation line, and start looking for a suitable row from
3001 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3002 rather than appending, if the glyph_row's reversed_p flag is set.
3003 Set the resolved_level and bidi_type members of each glyph.
3005 * .gdbinit (pbiditype): New command.
3006 (pgx): Use it to display bidi level and type of the glyph.
3007 (pitx): Display some bidi information about the iterator.
3008 (prowlims, pmtxrows): New commands.
3010 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3012 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3013 * s/usg5-4.h (LIBS_DEBUG):
3014 * s/irix6-5.h (C_DEBUG_SWITCH):
3015 * s/gnu-linux.h (LIBS_DEBUG):
3016 * s/darwin.h (LIBS_DEBUG):
3017 * s/bsd-common.h (LIBS_DEBUG):
3018 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3019 * m/iris4d.h (LIBS_DEBUG):
3020 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3022 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3023 (LIBS_DEBUG): Remove definition.
3025 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
3027 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3030 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3032 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3033 `connect' (Bug#5723).
3035 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
3037 * process.c (Fmake_network_process): Call `select' for interrupted
3038 `connect' rather than creating new socket (Bug#5173).
3040 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
3042 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3044 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3046 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3048 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3050 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3053 2010-03-24 Kenichi Handa <handa@m17n.org>
3055 * coding.c (decode_coding_ccl): Fix previous change for the
3057 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3058 case that the output buffer is fullfilled.
3059 (encode_coding): Setup ccl program here.
3061 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3063 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3065 Simplify LIBS_MACHINE definitions.
3066 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3067 * m/iris4d.h (LIBS_MACHINE): Likewise.
3068 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3069 * s/aix4-2.h (LIBS_SYSTEM): ... here.
3070 * s/netbsd.h: Remove commented out code.
3072 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3074 Remove dead code dealing with POSIX_SIGNALS.
3075 * atimer.c (set_alarm): Remove dead code, all USG systems define
3077 * data.c (arith_error): Likewise.
3078 * keyboard.c (input_available_signal, handle_user_signal)
3079 (interrupt_signal): Likewise.
3080 * process.c (sigchld_handler): Likewise.
3081 (create_process): Remove if 0 code. Remove HPUX conditional when
3082 !defined (POSIX_SIGNALS), it cannot be true.
3083 * syssignal.h: Remove USG5_4 and USG conditionals when
3084 !POSIX_SIGNALS, they cannot be true.
3086 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3087 NO_SOCK_SIGIO, not used anymore.
3089 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3091 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3092 support vax on BSDs.
3094 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3095 * s/aix4-2.h (ORDINARY_LINK): ... here.
3097 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3099 * Makefile.in (abs_builddir): Define.
3100 (bootstrap_exe): Use it.
3101 (VPATH): Use $(srcdir) instead of @srcdir@.
3103 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3105 * Makefile.in (bootstrap_exe): Use an absolute name.
3107 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3109 Remove support for old GNU/Linux using libc version 5.
3110 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3111 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3113 Consolidate redundant definitions in s/bsd-common.h.
3114 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3115 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3116 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3117 doing it in all files that include this one.
3118 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3119 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3120 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3121 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3122 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3123 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3124 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3125 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3126 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3128 Consolidate redundant definitions.
3129 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3130 it's undefined in all files that include this one.
3131 (POSIX_SIGNALS): Define here instead of doing it in all files that
3133 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3134 (POSIX_SIGNALS): Do not define.
3135 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3136 (POSIX_SIGNALS): Do not define.
3137 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3138 (POSIX_SIGNALS): Do not define.
3140 Remove support for old UNIX System V systems.
3141 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3142 * s/usg-5-4-2.h: Remove.
3144 Remove support for Solaris on PPC and for old versions.
3145 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3146 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3147 that cancel each other.
3150 * s/sol2-5.h: Remove.
3151 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3152 (NO_REMAP): Remove, unused.
3153 (UNEXEC): Move definition ...
3154 * s/aix4-2.h (UNEXEC): ... here.
3156 * s/openbsd.h: Remove support for non-ELF and for systems that do
3157 not support shared libraries.
3159 * s/freebsd.h: Likewise.
3161 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3163 Remove non-working support for lynxos 3.0.
3164 * s/lynxos.h: Remove file.
3166 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3167 COFF_BSD_SYMBOLS, nothing defines it anymore.
3169 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3171 Remove obsolete uses of HAVE_SHM.
3172 * emacs.c (standard_args):
3174 (syms_of_emacs): Remove code depending on HAVE_SHM.
3176 * alloc.c: Remove HAVE_SHM dependent definition.
3178 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3180 2010-03-18 Glenn Morris <rgm@gnu.org>
3182 * emacs.c (USAGE4): Hard-code bug address.
3183 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3184 (bug_reporting_address): Remove.
3185 (main): Don't call bug_reporting_address.
3187 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3188 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3190 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
3192 * xfns.c (Fx_create_frame):
3193 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3196 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3198 * editfns.c (Fformat): Account for string precision when computing
3199 field width (Bug#5710).
3201 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
3203 * xfns.c (Fx_create_frame): Set default to Qright.
3205 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3208 2010-03-12 Eli Zaretskii <eliz@gnu.org>
3210 These changes remove termcap.c from the build on Posix platforms.
3211 * Makefile.in (termcapobj): Move termcap.o from here...
3212 (MSDOS_OBJ): ...to here.
3213 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3214 now identical to when LIBS_TERMCAP is defined.
3216 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3218 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3220 * config.in: Regenerated. (See top-level ChangeLog.)
3222 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
3226 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3228 Cleanup setup of gl_state in various parts of the code.
3229 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3230 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3231 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3233 * regex.c (regex_compile): Use it.
3234 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3235 it's now set in regex_compile when/if we need it.
3237 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3239 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3240 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3241 (QUIT): Use it to consolidate code and remove redundancy.
3242 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3244 * regex.c (regex_compile): Setup gl_state as well.
3246 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3247 (in_classes): Use CONSP before XCAR/XCDR.
3249 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
3251 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3252 definitions, so that keyboard macros are correctly handled
3255 2010-03-02 Eli Zaretskii <eliz@gnu.org>
3257 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3258 text that could be relocated inside the call to emacs_mule_char.
3259 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3260 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3262 2010-03-02 Kenichi Handa <handa@m17n.org>
3264 * character.c (parse_str_as_multibyte): Fix handling of the
3265 multibyte form of raw-bytes.
3266 (str_as_multibyte): Likewise.
3268 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3271 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
3273 * charset.c (load_charset_map_from_file)
3274 (load_charset_map_from_vector): Zero out allocated
3275 charset_map_entries before using them.
3277 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3279 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3281 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
3283 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3284 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
3286 2010-02-26 Kenichi Handa <handa@m17n.org>
3288 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3290 * xdisp.c (reseat_to_string): Fix previous change.
3292 2010-02-26 David Reitter <david.reitter@gmail.com>
3294 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3295 Lisp_Object (Bug#4736).
3297 2010-02-25 Kenichi Handa <handa@m17n.org>
3299 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3301 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3303 * xterm.c (XTflash): Move declarations before statements.
3305 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3306 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3307 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3308 (xg_create_tool_bar): Remove unused variables.
3309 (x_wm_set_size_hint): Move declarations before statements.
3310 (xg_create_frame_widgets): Remove variable grav.
3312 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
3314 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3316 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3318 * term.c (fatal): Add a final \n if needed (bug#5596).
3320 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
3322 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3324 2010-02-18 Glenn Morris <rgm@gnu.org>
3326 * callint.c (Finteractive): Doc fix.
3328 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3330 * coding.c (record_conversion_result):
3331 Handle CODING_RESULT_INSUFFICIENT_DST.
3332 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3333 memory allocation error.
3335 2010-02-17 Kenichi Handa <handa@m17n.org>
3337 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3338 Fix for the case that the output buffer is fullfilled.
3339 (decode_coding): Setup ccl program here. Keep looping when the
3340 decoder stopped because the output buffer is
3341 fullfilled (bug#5534).
3343 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3345 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3347 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
3349 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
3352 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3354 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3355 doing_interact here.
3356 (ice_connection_closed): New function.
3357 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3358 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3359 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3361 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3364 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
3366 * nsfont.m (nsfont_open): The system's value for the font descent
3367 is negative, so round it down to avoid clipping.
3369 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
3371 * charset.c (load_charset_map_from_file)
3372 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
3373 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
3375 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
3377 * charset.c (load_charset_map_from_file): Allocate large
3378 charset_map_entries structure on the heap rather than the stack.
3381 2010-01-31 Kenichi Handa <handa@m17n.org>
3383 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
3384 size in NAME is invalid, return -1 (Bug#5396).
3386 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
3388 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3389 <deactivated@gmail.com> (Bug#3605).
3391 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
3393 * fileio.c (Frename_file): Correctly rename symlinks to
3394 directories (Bug#5496).
3396 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3398 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3400 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3402 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3404 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
3406 * frame.c (DEFAULT_ROWS): Change default to 35.
3408 * xfns.c (x_default_font_parameter): Change default XFT font to
3409 monospace-10 (Bug#3643).
3411 2010-01-29 Eli Zaretskii <eliz@gnu.org>
3413 * w32inevt.c (key_event): Remove unnecessary comparison of
3414 event->uChar.AsciiChar with 128.
3416 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
3418 * fileio.c (Frename_file): Fix last change (Bug#5487).
3420 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3422 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3424 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3426 * xfns.c (Fx_create_frame): Remove window size matching code from
3428 (x_get_current_desktop, x_get_desktop_workarea): Remove.
3430 2010-01-27 Jason Rumney <jasonr@gnu.org>
3432 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
3433 (key_event): Use unicode for characters 128 and higher (Bug#4567).
3435 2010-01-27 Kenichi Handa <handa@m17n.org>
3437 * regex.c (analyse_first): Fix setting of fastmap for unibyte
3438 pattern string (Bug#4209).
3440 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
3442 * fileio.c (Frename_file): Call copy-directory and
3443 delete-directory for directories, in order to handle cross-device
3444 renaming (Bug#3353).
3446 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3448 * xfns.c (Fx_create_frame): If frame height is too big, try
3449 sizes 24 and 10. Bug #3643.
3451 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3453 Try and fix bug#788, hopefully for real this time.
3454 * keymap.c (shadow_lookup): Add `remap' arg.
3455 (describe_map, describe_vector): Update calls to shadow_lookup.
3456 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3457 `remapped' so this flag is applicable to `sequence'. Be careful to
3458 perform remapping during shadow_lookup check of remapped_sequences.
3460 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3462 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3463 png_check_sig, which has been removed in libpng 1.4.
3465 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3467 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3468 lacks this header file).
3470 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3472 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3475 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3477 * lisp.h (make_pure_string): String pointer arg now points to const.
3479 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3480 args now point to const.
3482 2010-01-22 Eli Zaretskii <eliz@gnu.org>
3484 * lread.c (Fload): Don't treat files without .elc extension as
3485 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3488 2010-01-20 Kenichi Handa <handa@m17n.org>
3490 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3491 treat the source as actual byte sequence.
3493 2010-01-19 Alan Mackenzie <acm@muc.de>
3495 Fix spurious before-change-functions invocation from (insert ?\n).
3496 * textprop.c (set_text_properties): Rename parameter
3497 `signal_after_change_p' to `coherent_change_p', and make the
3498 invocation of `modify_region' conditional on it.
3500 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3502 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3504 (syms_of_xsettings): Declare xft-settings.
3506 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
3508 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3510 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3512 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3514 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
3516 * emacs.c (standard_args): Adjust arg priorities to reflect how
3517 they are processed in startup.el.
3519 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3521 * Makefile.in (lisp, shortlisp): Update.
3523 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3525 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3526 code, link the new kboard into all_kboard before running Lisp code,
3527 and protect the new terminal with GCPRO (Bug#5365).
3528 (x_term_init): Remove unused var `atom'.
3529 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3531 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3533 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3534 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3535 to find out usable size of the desktop. Don't make frames larger than
3538 2010-01-15 Kenichi Handa <handa@m17n.org>
3540 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3542 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
3544 * nsterm.m (Qnone): Define.
3546 * nsfns.m (Qnone): Move definition to nsterm.m.
3548 2010-01-14 Kenichi Handa <handa@m17n.org>
3550 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3553 2010-01-14 Kenichi Handa <handa@m17n.org>
3555 Make auto-composition work on all buffers even if they are
3558 * composite.c (Vauto_composition_mode): New variable.
3559 (composition_compute_stop_pos): Check Vauto_composition_mode
3560 instead of Vauto_composition_function.
3561 (composition_adjust_point, Ffind_composition_internal): Likewise.
3562 (syms_of_composite): Declare Lisp variable
3563 "auto-composition-mode" here.
3565 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
3567 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3568 during call to vendor-specific-keysyms (Bug#5365).
3570 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3572 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3573 Call SIGNAL_THREAD_CHECK (Bug#5333).
3575 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3576 Call SIGNAL_THREAD_CHECK.
3578 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3580 Try to fix bug#5314. This is probably not the final word, tho.
3581 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3582 recent-auto-save-p as a side-effect.
3583 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3584 * buffer.c (Fkill_buffer, reset_buffer):
3585 * editfns.c (Fsubst_char_in_region):
3586 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3587 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3589 2010-01-13 Kenichi Handa <handa@m17n.org>
3591 Display buffer name, etc. in mode line by composing correctly.
3593 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3595 (display_mode_element): Adjust for the change of
3596 decode_mode_spec and display_line.
3597 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3598 (display_string): Handle the case that STRING is non-null and
3599 LISP_STRING is not nil.
3601 * xterm.c (x_draw_composite_glyph_string_foreground):
3602 Pay attention to s->face->overstrike.
3604 * composite.c (composition_reseat_it): Don't check PT if STRING is
3607 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3609 * keyboard.c (read_char): Don't apply previous change when current
3610 buffer is unchanged by command execution.
3612 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3614 * keyboard.c (read_char): Return after executing from special map.
3616 2010-01-12 Glenn Morris <rgm@gnu.org>
3618 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3619 bug-gnu-emacs rather than emacs-pretest-bug.
3621 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
3623 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3624 initializing the Lisp variables that depend on them.
3626 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3628 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3629 Clear areas that will not be updated after change of menu bar lines.
3630 Clear the menu bar window's current matrix when the window gets empty.
3632 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
3634 * intervals.h, textprop.c (extend_property_ranges): Return value
3635 and args changed. Discard properties that begin at or after the
3638 * editfns.c (Fformat): Caller changed.
3640 * nsterm.m (ns_set_default_prefs): Delete function.
3641 (syms_of_nsterm): Initialize ns_command_modifier,
3642 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3643 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3645 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3646 position (Bug#4040).
3648 2010-01-09 Eli Zaretskii <eliz@gnu.org>
3650 * editfns.c (Ffloat_time): Doc fix.
3652 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3654 * xfns.c (Fx_create_frame): Don't create frame larger than display
3655 by default bug#3643.
3657 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3659 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3660 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3661 windows above internal border.
3663 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3664 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3665 windows above internal border.
3667 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3668 tool bar windows specially.
3670 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3672 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3674 (XTflash): Take account of menu bar height.
3676 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3679 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3681 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
3682 also be true before we can return early (bug #5339).
3684 2010-01-06 David Reitter <david.reitter@gmail.com>
3686 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3687 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3690 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3692 * font.c (font_open_entity): Enable chache and call cached_font_ok
3693 for the driver if defined.
3694 (QCuser_spec): New symbol.
3695 (font_spec_from_name): Save name as user-spec.
3696 (font_load_for_lface): Keep user-spec instead of name.
3697 (font_open_by_name): Save name as user-spec.
3698 (syms_of_font): Initialize QCuser_spec.
3699 (font_clear_prop): Clear name if it exists in font (bug#5157).
3701 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3702 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3703 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3705 * font.h (struct font_driver): Add cached_font_ok.
3707 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3709 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3711 * xterm.c (x_new_font): Move code for setting rows/cols before
3713 (x_set_window_size): ... to here. Bug #2568.
3715 * gtkutil.c (xg_clear_under_internal_border): New function.
3716 (xg_frame_resized, xg_frame_set_char_size):
3717 Call xg_clear_under_internal_border.
3718 (xg_update_scrollbar_pos): Clear under old scroll bar position.
3720 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
3722 * keyboard.c (read_key_sequence): Catch keyboard switch after
3723 making a new tty frame (Bug#5095).
3725 2010-01-05 Kenichi Handa <handa@m17n.org>
3727 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3729 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3731 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3732 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3733 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3735 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
3737 * dbusbind.c (xd_add_watch): Improve debug message.
3738 (xd_remove_watch): Improve debug message. If DATA is the session
3739 bus, unset D-Bus session environment.
3740 (Fdbus_init_bus): Pass the bus as argument to
3741 dbus_connection_set_watch_functions. (Bug#5283)
3743 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
3745 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3747 * lread.c (syms_of_lread): Make it clearer that these are the
3748 names of loaded files (Bug#5068).
3750 * eval.c (run_hook_with_args): Handle the case where the global
3751 value has the obsolete single-function form (Bug#5026).
3753 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
3755 * minibuf.c (Fall_completions): Minor optimization.
3757 2009-12-26 Eli Zaretskii <eliz@gnu.org>
3759 * .gdbinit (pgx): Fix display of composite glyphs.
3760 Display cmp.from and cmp.to as well.
3761 (pitx): Fix last change.
3763 2009-12-25 Kenichi Handa <handa@m17n.org>
3765 * composite.h (composition_adjust_point): Update prototype.
3767 * composite.c (composition_reseat_it): Don't make a composition
3768 spanning over point.
3769 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3770 composable characters.
3771 (composition_adjust_point): New arg NEW_PT. Callers changed.
3773 * keyboard.c (command_loop_1): Force redisplay if the last point
3774 was within a composition.
3775 (adjust_point_for_property): Don't adjust point for automatic
3776 composition when called after buffer modification.
3778 2009-12-19 Eli Zaretskii <eliz@gnu.org>
3780 * .gdbinit (pitx): Don't use enum names, use their values.
3781 Remove reference to non-existing value GET_FROM_COMPOSITION.
3782 (pgx): Don't use enum names, use their values.
3783 (pitmethod): New helper command.
3784 (pitx): Use it to display iteration method.
3785 (pgrowit): New command.
3787 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3789 Update dependencies in Makefile.in.
3791 * Makefile.in (alloc.o): Depend on termhooks.h.
3792 (atimer.o): Depend on blockinput.h.
3793 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3795 (callint.o): Depend on systime.h, coding.h, and composite.h.
3796 (callproc.o): Depend on buffer.h.
3797 (casefiddle.o): Don't depend on charset.h.
3798 (casetab.o): Depend on character.h.
3799 (ccl.o): Depend on composite.h.
3800 (chartab.o): Depend on ccl.h.
3801 (cm.o): Depend on dispextern.h.
3802 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3803 (coding.o): Don't depend on $(INTERVALS_H).
3804 (composite.o): Don't depend on dispextern.h explicitly (it's in
3805 $(INTERVALS_H)). Depend on ccl.h.
3806 (data.o): Depend on systime.h, coding.h, composite.h,
3807 dispextern.h, font.h, and ccl.h.
3808 (dired.o): Depend on composite.h.
3809 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3810 composite.h (it's in $(INTERVALS_H)).
3811 (doc.o): Depend on systime.h, coding.h, and composite.h.
3812 (editfns.o): Don't depend explicitly on dispextern.h.
3813 (emacs.o): Depend on frame.h and coding.h.
3814 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3815 (fileio.o): Depend on frame.h and commands.h. Don't depend
3816 explicitly on dispextern.h.
3817 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3819 (fns.o): Don't depend on termhooks.h.
3820 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3821 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3822 coding.h, $(INTERVALS_H), window.h, xterm.h.
3823 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3824 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3825 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3826 fontset.h, ccl.h, and ftfont.h.
3827 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3828 (gtkutil.o): Depend on dispextern.h and composite.h.
3829 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3830 termhooks.h, and ccl.h.
3831 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3832 (intervals.o): Depend on systime.h and coding.h.
3833 (keyboard.o): Depend on composite.h and coding.h.
3834 (keymap.o): Depend on coding.h and frame.h.
3835 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3836 (macros.o): Depend on systime.h, coding.h, and composite.h.
3837 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3839 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3840 dispextern.h explicitly.
3841 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3842 Don't depend explicitly on dispextern.h and composite.h.
3843 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3844 (regex.o): Don't depend on charset.h.
3845 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3846 (search.o): Don't depend explicitly on composite.h.
3847 (sound.o): Depend on atimer.h and systime.h.
3848 (syntax.o): Don't depend explicitly on composite.h.
3849 (sysdep.o): Depend on coding.h and composite.h.
3850 (term.o): Depend on xterm.h and buffer.h.
3851 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3852 (textprop.o): Don't depend on dispextern.h explicitly.
3853 (undo.o): Depend on dispextern.h.
3854 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3855 dispextern.h and composite.h explicitly.
3856 (xdisp.o): Depend on ccl.h.
3857 (xfaces.o): Depend on coding.h and ccl.h.
3858 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3859 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3860 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3862 (xgselect.o): New dependency.
3863 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3864 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3865 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3866 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3867 (xsmfns.o): Depend on frame.h and dispextern.h.
3868 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3871 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3873 * font.c (Fclear_font_cache): Pass correct cache argument to
3876 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3878 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3881 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
3883 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3884 calling file-remote-p. Reported by Jim Meyering.
3886 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
3888 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
3889 avoid compiler warnings. (Bug #5217)
3891 2009-12-14 Kenichi Handa <handa@m17n.org>
3893 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3896 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
3898 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3901 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3903 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3904 Xatom_net_window_type.
3906 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3907 Xatom_net_window_type.
3909 * xterm.c (my_log_handler): New function.
3910 (x_term_init): Set my_log_handler as log handler during gtk_init
3911 so we can filter out buggy messages. (Bug #5120).
3913 * xterm.c (xg_scroll_callback): Parameter list changed,
3914 use parameter GtkScrollType to determine scroll/line/page.
3915 Only allow dragging if a button < 4 is grabbed (bug #5177).
3916 (xg_end_scroll_callback): New function.
3917 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3918 xg_create_scroll_bar.
3920 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3921 (scroll_end_callback): Remove.
3922 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3923 button-release-event. Replace value-changed event with change-value,
3925 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3928 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3929 (xg_create_scroll_bar): Add GCallback end_callback.
3931 * xftfont.c (QClcdfilter): New variable.
3932 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3933 (syms_of_xftfont): Initialize QClcdfilter.
3935 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3937 * xsettings.c (struct xsettings): Add member seen.
3938 (parse_xft_settings): Update member seen with what we have read.
3939 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3940 (apply_xft_settings): Only update Xft settings with what member seen
3943 2009-12-12 Eli Zaretskii <eliz@gnu.org>
3945 * dispextern.h (struct text_pos): Use EMACS_INT;
3946 (struct glyph): Use EMACS_INT for charpos.
3947 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3948 region_beg_charpos, region_end_charpos,
3949 redisplay_end_trigger_charpos, and also for
3950 iterator_stack_entry.end_charpos and
3951 iterator_stack_entry.stop_charpos.
3953 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3955 * gtkutil.c (scroll_end_callback): New function (bug #5177).
3956 (xg_create_scroll_bar): Call scroll_end_callback on button release
3958 (xg_event_is_for_scrollbar): != replaced with ==.
3960 2009-12-12 Kenichi Handa <handa@m17n.org>
3962 * ftfont.c (struct ftfont_info): New member matrix.
3963 (ftfont_open): Setup xftfont_info->matrix.
3964 (MFLTFontFT): New member matrix.
3965 (FLOOR, CEIL, ROUND): New macros.
3966 (ftfont_get_metrics): Handle matrix transformation.
3967 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3969 * xftfont.c (struct xftfont_info): New member matrix.
3970 (xftfont_open): Setup xftfont_info->matrix.
3972 2009-12-10 Kenichi Handa <handa@m17n.org>
3974 * xdisp.c (append_space_for_newline): Consider face-remapping.
3976 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3978 * xsettings.c: Include "keyboard.h".
3980 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3982 Fix implicit function declarations.
3983 * cmds.c: Include "frame.h".
3984 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3985 * frame.h: Move declaration of delete_frame outside of
3988 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3990 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3992 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3995 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3997 * unexelf.c (unexec): Don't search for .data twice.
3999 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
4001 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4003 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4004 of push_display_prop (Bug#5000).
4006 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4007 value of font_list_entities (Bug#5085).
4009 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
4011 Fix `string-to-number' to deal consistently with integers and floats.
4012 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4013 trailing characters, not just whitespace.
4014 (read1): Pass new arg 0 to keep old behavior.
4015 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4016 trailing chars, as it is already done for integers. Doc fixes.
4017 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4019 2009-12-04 Eli Zaretskii <eliz@gnu.org>
4021 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4022 Delete unused enumeration value.
4024 2009-12-03 Eli Zaretskii <eliz@gnu.org>
4026 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4028 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4030 * process.c (Fmake_network_process): Fix up the tests for
4031 "connectionless socket", so they DTRT for seqpacket sockets as well.
4033 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4035 * process.c (Qseqpacket): New symbol.
4036 (HAVE_SEQPACKET): New macro.
4037 (Fmake_network_process): Accept new :type `seqpacket'.
4038 (init_process): Add `seqpacket' feature when applicable.
4039 (syms_of_process): Initialize Qseqpacket.
4041 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4043 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4046 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4048 * print.c (print_preprocess): Preprocess the key_and_value table of
4049 hashtables, even tho they're "hidden" (bug#5082).
4051 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4053 * frame.c (frame_make_pointer_invisible)
4054 (frame_make_pointer_visible): Declare f before statements.
4056 2009-11-28 Eli Zaretskii <eliz@gnu.org>
4058 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4059 omitted dependencies on lisp.h.
4061 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4063 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4066 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4068 * frame.c (frame_make_pointer_invisible)
4069 (frame_make_pointer_visible): Just return if there isn't any selected
4072 * search.c (simple_search): Remove warning by making *p const.
4074 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4076 * xdisp.c (power_letter): Remove duplicate const.
4078 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4080 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4082 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
4083 defaults (bug #5025).
4085 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4087 * insdel.c (adjust_markers_for_delete): Move it in the
4088 right direction! (bug#4803)
4090 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4092 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4094 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4096 2009-11-24 Glenn Morris <rgm@gnu.org>
4098 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4100 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4102 * Makefile.in: Must create deps for ecrt0.o in its rule.
4104 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4105 because that is what Gtk+ font dialog understands.
4107 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4109 (font_open_by_name): Put name given into QCname for font-object returned.
4111 * frame.c (x_set_font): Save original font name as frame parameter
4114 * xsettings.c (set_default_xft_settings): New function.
4115 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4118 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4120 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4121 searching backwards through multibyte buffer.
4123 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4125 * xterm.c: #include xgselect.h.
4126 (x_initialize): Call xgselect_initialize.
4128 * xsettings.c (something_changedCB): C++ comments => C comments.
4129 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4132 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4133 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4134 (scroll_bar_button_cb): Remove.
4135 (create_menus): C++ comments => C comments. Don't bind grab-notify
4137 (xg_create_scroll_bar): Don't bind button-press-event and
4138 button-release-event.
4140 * process.c: Include xgselect.h if defined (USE_GTK) ||
4141 defined (HAVE_GCONF).
4142 (wait_reading_process_output): Call xg_select for the same condition.
4144 * xgselect.c (xg_select): New function to better integrate with
4145 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4147 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4149 * Makefile.in (XOBJ): Add xgselect.o.
4151 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4153 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4154 Remove ignored second argument. All callers changed.
4155 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4156 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4157 * xdisp.c (string_char_and_length): Likewise.
4159 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4161 * xterm.c (x_new_font):
4162 * print.c (print_object):
4163 * cmds.c (Fself_insert_command): Move declarations before statements.
4165 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4167 * s/cygwin.h: Remove unneeded linker flags.
4169 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4171 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4173 * xsettings.h: Declare xsettings_get_system_font.
4175 * xsettings.c (xsettings_get_system_font): New function.
4176 (init_gconf): No use initiating gconf unless we have Xft also.
4177 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4180 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4181 add a blank entry so it doesn't collapse into nothing.
4183 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4185 * lread.c (Funintern): Comment out last change.
4187 2009-11-19 Richard Stallman <rms@gnu.org>
4189 * lread.c (Funintern): Error if symbol is t or nil.
4191 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4193 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4194 representation of Lisp integers.
4195 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4197 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4199 * lisp.h: Remove declaration of Ffont_get_system_font.
4200 * xfns.c: Move include of "xsettings.h".
4201 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4203 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4205 * xsettings.c (something_changedCB, Ffont_get_system_font):
4206 Check use_system_font.
4207 (syms_of_xsettings): DEFVAR font-use-system-font.
4209 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4211 * xfns.c (x_default_font_parameter): Remove dead assignment.
4213 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4215 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4217 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
4218 not have FC_LCD_*. #define them if not there.
4220 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
4222 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4224 * xterm.c (handle_one_xevent): Call xft_settings_event for
4225 ClientMessage, PropertyNotify and DestroyNotify.
4226 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4227 Call xsettings_initialize.
4229 * xftfont.c (xftfont_fix_match): New function.
4230 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4231 Call xftfont_fix_match after XftFontMatch.
4233 * xfont.c (xfont_driver): Initialize all members.
4235 * xfns.c (x_default_font_parameter):
4236 Try font from Ffont_get_system_font.
4237 Do not get font from x_default_parameter if we got one from
4238 Ffont_get_system_font.
4239 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
4241 * w32font.c (w32font_driver): Initialize all members.
4243 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4245 * lisp.h: Declare syms_of_xsettings.
4247 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4248 Handle CONFIG_CHANGED_EVENT.
4250 * ftfont.c (ftfont_filter_properties): New function.
4252 * frame.c (x_set_font): Remove unused variable lval.
4254 * font.h (struct font_driver): Add filter_properties.
4256 * font.c (font_put_extra): Don't return if val is nil, it means
4257 boolean option is off.
4258 (font_parse_fcname): Collect all extra properties in extra_props
4259 and call filter_properties for all drivers with extra_props and
4261 (font_open_entity): Do not use cache, it does not pick up new
4262 fontconfig settings like hinting.
4263 (font_load_for_lface): If spec had a name in it, store it in entity.
4265 * emacs.c (main): Call syms_of_xsettings.
4267 * config.in: HAVE_GCONF is new.
4269 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4272 2009-11-17 Kenichi Handa <handa@m17n.org>
4274 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4275 back to the default font in case that no suitable font is found.
4277 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4279 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4280 Suggested by Chad Brown <yandros@mit.edu>.
4281 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4283 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4285 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4287 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4289 * Makefile.in: Ignore errors from mkdir when creating deps directory.
4291 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4293 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4296 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
4297 dependency files in deps/. Include those files into Makefile.
4299 * config.in: Generated (AUTO_DEPEND).
4301 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
4303 * dbusbind.c (Vdbus_registered_objects_table): Rename from
4304 Vdbus_registered_functions_table, because it contains also
4305 properties. Fix docstring.
4306 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
4308 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4310 * alloc.c (mark_object): Don't reprocess marked strings.
4311 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4312 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4314 2009-11-13 Kenichi Handa <handa@m17n.org>
4316 * category.c (word_boundary_p): Adjust for the change of the
4317 semantics of Vword_combining_categories.
4318 (Vword_combining_categories): Describe the slight change of the
4321 2009-11-13 Eli Zaretskii <eliz@gnu.org>
4323 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4325 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4327 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4329 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4331 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
4333 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4335 2009-11-11 David Reitter <david.reitter@gmail.com>
4337 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4338 variables to fix 2009-11-09 change.
4340 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4342 * process.c (ifflag_def): Make flag_sym constant.
4343 (Fnetwork_interface_info): Use a constant pointer.
4345 * xfns.c (cursor_bits):
4346 * xdisp.c (power_letter):
4347 * termcap.c (speeds, esctab):
4348 * sysdep.c (baud_convert):
4349 * keyboard.c (lispy_accent_codes, modifier_names):
4350 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4351 (jpeg_format, tiff_format, gif_format, svg_format)
4352 (interlace_start, interlace_increment, gs_format):
4353 * gtkutil.c (separator_names):
4354 * fringe.c (swap_nibble):
4355 * fns.c (base64_value_to_char, base64_char_to_value):
4356 * fileio.c (make_temp_name_tbl):
4357 * coding.c (suffixes): Make constant.
4359 * frame.c (make_initial_frame):
4360 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4362 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4365 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4367 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4368 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4370 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4371 * xterm.c (syms_of_xterm):
4372 * xfaces.c (syms_of_xfaces):
4373 * xdisp.c (syms_of_xdisp):
4374 * lread.c (syms_of_lread):
4375 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4378 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4380 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4382 * fns.c (Fplist_get): Merge the active and the commented out code.
4384 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4386 * keyboard.h: Declare timer_check.
4388 * keyboard.c (timer_check_2): New function that does what the old
4390 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4391 returned, i.e. don't return -1 with timers pending.
4393 * process.c: Remove extern declaration of timer_check.
4395 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4396 even if timer_check returned -1.
4398 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4400 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4402 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4403 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4404 Destroy the dialog after xg_dialog_run.
4406 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4408 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4410 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4412 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4414 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
4416 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4418 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4420 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4421 w32menu.c, and nsmenu.m.
4422 Simplify the obsolete case where position is nil.
4423 (cleanup_popup_menu): New function, moved from nsmenu.m.
4424 (struct skp): Remove slot `notreal'.
4425 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4427 (single_menu_item): Adjust call to parse_menu_item.
4428 (syms_of_menu): Defsubr x-popup-menu.
4429 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4430 (keymap_panes): Don't export any more.
4431 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4432 (xmenu_show): Declare.
4433 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4434 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4435 * keyboard.h (parse_menu_item): Update declaration.
4436 * xmenu.c (Fx_popup_menu): Remove.
4437 (syms_of_xmenu): Don't defsubr x-popup-menu.
4438 * w32menu.c (Fx_popup_menu): Remove.
4439 (syms_of_w32menu): Don't defsubr x-popup-menu.
4440 * nsmenu.m (cleanup_popup_menu): Remove.
4441 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4442 moved to menu.c's Fx_popup_menu.
4443 (Fx_popup_menu): Remove.
4444 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4445 menu_items (it's done in menu.c already).
4447 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4449 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4450 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4452 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
4454 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
4455 xmenu_show. Hide any tooltip before opening a menu.
4456 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4457 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4459 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4461 Let integers use up 2 tags to give them one extra bit and thus double
4463 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4464 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4466 (enum Lisp_Type): Use them. Give explicit values.
4467 (Lisp_Type_Limit): Remove.
4468 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4469 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4470 Pay attention to USE_2_TAGS_FOR_INTS.
4471 (INTEGERP): Use LISP_INT_TAG_P.
4472 * fns.c (internal_equal): Simplify the default case.
4473 (sxhash): Use case_Lisp_Int.
4474 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4476 (Ftype_of): Use case_Lisp_Int.
4477 (store_symval_forwarding): Take into account the fact that Ints can
4478 now have more than one tag.
4479 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4480 buffer_slot_type_mismatch):
4481 * xfaces.c (face_attr_equal_p):
4482 * print.c (print_object):
4483 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4486 2009-11-06 Eli Zaretskii <eliz@gnu.org>
4488 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4490 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4493 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4495 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4497 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4499 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4500 ButtonPressRelease and MotionNotify (bug#4870).
4502 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4504 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4506 * xterm.c (syms_of_xterm):
4507 * xselect.c (syms_of_xselect):
4508 * xmenu.c (syms_of_xmenu):
4509 * xfns.c (syms_of_xfns):
4510 * xfaces.c (syms_of_xfaces):
4511 * xdisp.c (syms_of_xdisp):
4512 * window.c (syms_of_window):
4513 * w32fns.c (syms_of_w32fns):
4514 * undo.c (syms_of_undo):
4515 * textprop.c (syms_of_textprop):
4516 * terminal.c (syms_of_terminal):
4517 * syntax.c (syms_of_syntax):
4518 * sound.c (syms_of_sound):
4519 * search.c (syms_of_search):
4520 * print.c (syms_of_print):
4521 * minibuf.c (syms_of_minibuf):
4522 * macros.c (syms_of_macros):
4523 * keymap.c (syms_of_keymap, initial_define_key)
4524 (initial_define_lispy_key):
4525 * keyboard.c (syms_of_keyboard):
4526 * insdel.c (syms_of_insdel):
4527 * image.c (syms_of_image):
4528 * fringe.c (syms_of_fringe):
4529 * frame.c (syms_of_frame):
4530 * fontset.c (syms_of_fontset):
4531 * fns.c (syms_of_fns):
4532 * fns.c (syms_of_fns):
4533 * fileio.c (syms_of_fileio):
4534 * fileio.c (syms_of_fileio):
4535 * eval.c (syms_of_eval):
4536 * doc.c (syms_of_doc):
4537 * dispnew.c (syms_of_display):
4538 * dired.c (syms_of_dired):
4539 * dbusbind.c (syms_of_dbusbind):
4540 * data.c (syms_of_data):
4541 * composite.c (syms_of_composite):
4542 * coding.c (syms_of_coding):
4543 * cmds.c (syms_of_cmds):
4544 * charset.c (define_charset_internal, syms_of_character):
4545 * ccl.c (syms_of_ccl):
4546 * category.c (syms_of_category, init_category_once):
4547 * casetab.c (syms_of_casetab):
4548 * casefiddle.c (syms_of_casefiddle):
4549 * callint.c (syms_of_callint):
4550 * bytecode.c (syms_of_bytecode):
4551 * buffer.c (keys_of_buffer, syms_of_buffer):
4552 * alloc.c (syms_of_alloc):
4553 * process.c (syms_of_process, init_process):
4554 * lread.c (syms_of_lread, init_obarray):
4555 * font.c (build_style_table):
4556 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4557 intern_c_string, calls to make_pure_string with
4558 make_pure_c_string. Use pure_cons instead of Fcons.
4560 * process.c (socket_options): Make it const.
4561 (set_socket_option, init_process): Use a const pointer.
4563 * lread.c (intern_c_string): New function.
4564 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4565 (defvar_int): Uset it. Make the name const char*.
4567 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4568 (defvar_int): Update prototypes.
4569 (DEFUN, EXFUN): Support for prototypes is now required.
4570 (intern_c_string): New prototype.
4571 (struct Lisp_Subr): Make symbol_name constant.
4573 * font.c (struct table_entry): Remove unused member. Make NAMES
4575 (weight_table, slant_table, width_table): Make constant.
4577 * emacs.c (struct standard_args): Make name and longname constant.
4579 * character.h (DEFSYM): Use intern_c_string.
4581 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4583 * alloc.c (make_pure_c_string): New function.
4585 * eval.c (Fautoload): Purecopy all arguments.
4587 2009-11-05 Kenichi Handa <handa@m17n.org>
4589 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4590 the buffer in case of replace.
4592 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4594 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4596 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4598 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4599 when applicable (bug#4851).
4601 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4602 (P_): Support for prototypes is now required.
4604 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
4606 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4609 2009-10-30 Eli Zaretskii <eliz@gnu.org>
4611 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
4613 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4615 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4617 * lread.c (Fload): Purecopy the file name when building
4618 Vpreloaded_file_list.
4620 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4622 * w32fns.c (syms_of_w32fns): Change default value of
4623 w32-scroll-lock-modifier to nil. (Bug#2827)
4625 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
4627 * minibuf.c (Fall_completions): Fix typos in docstring.
4629 2009-10-26 Andreas Schwab <schwab@redhat.com>
4631 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4633 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
4635 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4636 For delta < 0, skip check that only makes sense when the mini-window
4637 is going to be enlarged. (Bug#4534)
4639 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
4641 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4642 string in menu maps (Bug#4471).
4644 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
4646 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4647 FRAME_NS_VIEW on terminal frames (Bug#4765).
4649 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4651 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4652 DBUS_TYPE_UINTnn separately to get proper sign extension.
4654 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4655 can properly handle unsigned types.
4656 (make_uid, make_gid): Remove.
4658 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4661 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
4662 (system_process_attributes): Likewise.
4664 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4666 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4668 * eval.c (Fautoload): Purecopy the filename. Simplify.
4670 * category.c (Fdefine_category): Purecopy docstring.
4672 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4674 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4676 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4678 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
4680 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4681 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4684 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4686 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4688 * lisp.h (init_fileio_once): Remove.
4689 * emacs.c (main): Don't call init_fileio_once.
4691 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4693 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4695 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4697 * doprnt.c (doprnt): Fix overflow check.
4699 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4701 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4703 * xterm.h (x_wait_for_event): Declare it.
4705 * xterm.c (pending_event_wait): New variable.
4706 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4707 see pending_event_wait.eventtype.
4708 (handle_one_xevent): Don't change gravity when parent changes.
4709 (x_new_font): Call change_frame_size with new rows/columns before we
4710 try to resize the frame.
4711 (x_wait_for_event): New function.
4712 (x_set_window_size_1): Don't change gravity unless change_gravity
4714 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4715 don't change frame size, instead wait for the ConfigureNotify.
4716 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4717 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4718 (x_initialize): Initialize pending_event_wait.
4720 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4723 * widget.c (EmacsFrameSetValues): Add comment.
4724 (EmacsFrameSetCharSize): Just call x_set_window_size.
4726 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4728 (flush_and_sync): Remove again.
4729 (xg_get_font_name): Suggest monospace if no previous font is known.
4731 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4733 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
4734 8th bit, since that only made sense in the ASCII world (bug#4751).
4736 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4738 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4739 processing pending events when event is filtered for input method.
4742 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
4744 * fns.c: Add #endif accidentally removed in previous change.
4746 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4748 * fns.c: Remove code for unsupported system: MAC_OS.
4749 * image.c: Likewise. Include setjmp.h.
4751 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4753 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4754 pixel -1 (bug #4742).
4756 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4758 * process.c (create_pty): Remove conditionals for no longer
4759 supported systems: UNIPLUS and RTU.
4762 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4764 * alloc.c: Do not define struct catchtag.
4765 * eval.c: Move struct catchtag definition ...
4768 * image.c: Move png.h #include earlier to avoid warnings.
4869 * atimer.c: Include setjmp.h. (Bug#4643)
4871 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4873 Remove leftover table unibyte_to_multibyte_table.
4874 * character.c (unibyte_to_multibyte_table): Remove.
4875 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4876 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4877 * character.h (UNIBYTE_TO_CHAR): New macro.
4878 (MAKE_CHAR_MULTIBYTE): Use it.
4879 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4880 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4881 (message_dolog, set_message_1):
4882 * search.c (Freplace_match):
4883 * editfns.c (Fcompare_buffer_substrings):
4884 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4886 * insdel.c (copy_text, count_size_as_multibyte):
4887 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4888 * term.c (produce_glyphs):
4889 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4890 * regex.c (RE_CHAR_TO_MULTIBYTE):
4891 * cmds.c (internal_self_insert):
4892 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4894 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4896 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4898 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4900 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
4902 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4904 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4906 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4907 still needed under Tiger.
4909 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4911 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4914 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4916 2009-10-15 Kenichi Handa <handa@m17n.org>
4918 * print.c (print_object): Escape a symbol like "2E10" too.
4920 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
4922 Cleanups and changes for 64-bit compile under Snow Leopard.
4923 Based on suggestions by Erik Charlebois.
4925 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4927 * nsfont.m (ns_char_width): Replace deprecated call.
4928 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4930 (nsfont_open): Use ns_char_width() everywhere.
4931 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
4933 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4935 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4938 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4940 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4941 Use stringWithUTF8String.
4942 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4944 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4945 Add formal protocol mention to inheritance.
4946 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4948 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4950 (ns_query_color): Use CGFloat where appropriate.
4951 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
4952 (EmacsScroller-mouseDown:): Use long format in printf, and cast
4955 * config.in (NS_HAVE_NSINTEGER): Drop.
4957 * dbusbind.c (dbus-method-return-internal)
4958 (dbus-method-error-internal): Use long format in printf, and cast
4961 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4962 in printf, and cast argument.
4964 * process.c (list_processes_1): Use long format in printf, and
4967 2009-10-11 Glenn Morris <rgm@gnu.org>
4969 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4971 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4973 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4974 menu bar with a small width so it doesn't enlarge the frame.
4976 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
4978 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4980 2009-10-06 Glenn Morris <rgm@gnu.org>
4982 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4983 SOME_MACHINE_LISP (this enters indirectly via DOC).
4985 2009-10-05 Eli Zaretskii <eliz@gnu.org>
4987 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4989 2009-10-04 Eli Zaretskii <eliz@gnu.org>
4991 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4994 2009-10-03 Martin Rudalics <rudalics@gmx.at>
4996 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4998 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
5000 * lisp.h (Qdelete_directory_internal): Remove, because it is not
5001 used anymore outside fileio.c.
5003 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5005 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
5007 * lisp.h (Qdelete_directory_internal):
5008 Declare, instead of Qdelete_directory.
5010 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5012 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5014 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5016 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
5018 * fileio.c (Fdelete_directory_internal): Rename from
5019 Fdelete_directory. It is not a command anymore. It has no file
5022 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5024 * xdisp.c (get_next_display_element): Use an enum in last change.
5026 2009-09-28 Kenichi Handa <handa@m17n.org>
5028 * xdisp.c (get_next_display_element): Pay attention to
5029 unibyte_display_via_language_environment in handling
5030 Vnobreak_char_display.
5032 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5034 * nsterm.h (ns_app_name): New extern variable.
5036 * nsterm.m (ns_app_name): New variable.
5037 (ns_term_init): Set and use it.
5038 (ns_term_shutdown): Use it.
5040 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5041 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5043 * nsfns.m (ns_set_name_iconic, ns_set_name)
5044 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5045 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5047 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5048 Remove double-casting in client_data comparison.
5050 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5052 * keyboard.c (make_lispy_event): Remember last wheel direction.
5053 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5055 2009-09-26 Glenn Morris <rgm@gnu.org>
5057 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5058 internal.elc. Add term/pc-win.elc.
5059 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5061 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5064 (lisp): Add NS_SUPPORT.
5065 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5067 2009-09-25 David Reitter <david.reitter@gmail.com>
5069 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5070 on Mac OS X 10.6+ (bug#4513).
5072 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5074 * frame.c (xrdb_get_resource): Return nil for empty string resources;
5075 some parts of Emacs code (like font selection) don't grok them.
5076 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
5078 2009-09-24 Andreas Schwab <schwab@redhat.com>
5080 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5082 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5084 * dired.c (Fdirectory_files): Fix typo in docstring.
5086 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5088 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5089 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5090 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5092 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5094 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5097 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5099 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
5100 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
5102 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5103 deleted (bug #4492).
5105 * nsfont.m (Vns_reg_to_script): New lisp variable.
5106 (syms_of_nsfont): Declare it.
5107 (ns_registry_to_script): New function.
5108 (ns_get_req_script): Call it.
5109 (ns_findfonts): Don't give up on non-unicode registry.
5111 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5113 2009-09-20 Tom Tromey <tromey@redhat.com>
5115 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5116 batch mode (bug#4228).
5118 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
5120 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
5121 carefully. (Bug #4339)
5123 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
5125 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
5127 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5129 * emacs.c (inhibit_x_resources): Update doc string for NS.
5130 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
5131 legacy code for -NXHost. Fix error printf in daemon case.
5133 * nsterm.h (ns_no_defaults): Remove.
5135 * nsterm.m (ns_no_defaults): Remove.
5136 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5137 (ns_use_qd_smoothing): Remove legacy variable.
5138 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5139 don't update the NSWindow itself.
5140 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
5141 state detection and store user rect ourselves. (Bug #3581)
5143 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5144 ns_use_qd_smoothing.
5146 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5147 platform versions. Drop support for emacs-20-style face specs.
5148 (x-close-connection): Drop PSFlush() under OS X.
5149 (x-focus-frame): Activate the app first. (Bug #4180)
5151 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
5153 * emacs.c (inhibit_x_resources): New variable.
5154 (main) [HAVE_NS]: Don't process --quick command line option.
5155 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5157 * lisp.h (inhibit_x_resources): Declare it extern.
5159 * w32reg.c (x_get_string_resource):
5160 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5162 2009-09-17 Eli Zaretskii <eliz@gnu.org>
5164 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5165 Add lisp/term/internal.elc.
5167 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5169 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5172 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5174 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5176 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5177 (OBJECTS_MACHINE): Remove, unused.
5179 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5181 * frame.c (x_get_resource_string): Remove unused.
5183 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5185 * xterm.c (x_new_font): Call change_frame_size before calling
5186 x_set_window_size, in case frame size won't change.
5188 * frame.c (x_set_font): Remove dead code.
5190 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5192 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5194 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5196 * lread.c (Fload): Don't output a message after loading an obsolete
5197 package any more (done in Lisp now).
5199 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
5201 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5203 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5205 * keymap.c (Fwhere_is_internal): Use nconc2.
5207 2009-09-11 Alan Mackenzie <acm@muc.de>
5209 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5212 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5214 * xdisp.c (display_mode_element): Detect cycles.
5216 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5218 * keymap.c (where_is_internal): Don't erroneously return nil right after
5220 (where_is_internal_1): Fix up typo.
5222 2009-09-11 Glenn Morris <rgm@gnu.org>
5224 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5225 share a common doc-string.
5227 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5229 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5230 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5232 * keymap.c (QCadvertised_binding): New constant.
5233 (syms_of_keymap): Initialize it.
5234 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5237 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5239 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5240 (parse_menu_item): Streamline since bindings are recomputed all the
5241 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5242 more and don't support lmenu's menu-alias any more either.
5244 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5245 (where_is_internal): Strip it down to only traverse the keymaps.
5246 Move the cache handling from Fwhere_is_internal to here.
5247 (Fwhere_is_internal): Move the handling of remapping and the choice of
5248 the best binding from where_is_internal to here.
5249 Unify the cached/noncached paths, so remapping is also handled
5250 correctly when the cache is used, and so the cache can be used to
5251 speed up remap-handling when applicable.
5252 Give preference to non-remapped bindings.
5253 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5254 non-remapped bindings.
5255 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5258 * xdisp.c (display_mode_element): Move list length limit from 50 to
5259 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5261 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
5263 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5265 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5267 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5270 * keymap.c (where_is_internal): Filter out shadowed remappings.
5271 Assume that where_is_internal returns unshadowed bindings to simplify
5272 the code and get rid of the gotos. Use ASIZE.
5274 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5276 * xterm.c (x_focus_changed): If we get a focusout and pointer
5277 is invisible, make it visible.
5279 * xterm.h: Remove condition for declaration of
5280 x_*_window_to_frame.
5282 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5284 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5285 initial terminal as well.
5287 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5289 * xterm.h: Rename x_non_menubar_window_to_frame to
5290 x_menubar_window_to_frame.
5292 * xterm.c: Remove declarations also in xterm.h.
5293 (XTmouse_position): Do not return valid positions
5294 for clicks in the menubar and the toolbar for Gtk+.
5296 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5297 if the widget for the event has the same top level as a frame,
5299 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5300 internal windows, bug #4122.
5301 (x_non_menubar_window_to_frame): Remove.
5303 2009-09-02 Glenn Morris <rgm@gnu.org>
5305 * buffer.c (default-major-mode): Move most of the doc from here...
5306 (major-mode): ... to here.
5308 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
5310 * process.c (wait_reading_process_output): Keep the descriptor
5311 when pty is used by a non-child process, e.g., in I/O buffer of
5312 GDB this allows inferior to be restarted.
5314 2009-08-29 Eli Zaretskii <eliz@gnu.org>
5316 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5317 both branches into one.
5319 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5321 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5322 (main): Use enable-multibyte-characters rather than
5323 default-enable-multibyte-characters. Output a warning message when
5324 running a unibyte session.
5326 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5328 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5329 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5330 (copy_data_segment): Also copy __program_vars section.
5331 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5332 (dump_it) [LC_DYLD_INFO]: Use it.
5334 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5336 2009-08-28 Eli Zaretskii <eliz@gnu.org>
5338 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5340 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5341 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5343 (clean): Add buildobj.h.
5345 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5347 * print.c (print_object): Set escapeflag to 1 when printing
5348 hashtable keys and values.
5350 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5352 * lread.c (read_integer): Use doubles (and potentially return a float
5353 number) as we do in string-to-number.
5354 (read1): Use strtol to read integers, signal errors on strtol's
5355 overflow and use floats if strtol's output is too large for
5358 2009-08-27 Eli Zaretskii <eliz@gnu.org>
5360 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5361 (make-buildobj-SH): Fix last change.
5362 (SRC): Move to before where it's first used.
5364 2009-08-27 Kenichi Handa <handa@m17n.org>
5366 * process.c (send_process): Use encode_coding_object instead of
5367 encode_coding_string to perform eol-conversion even if the string
5370 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5373 * cmds.c (Fself_insert_command): Avoid unnecessay
5374 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
5376 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5378 * callproc.c (Fcall_process): Remove always true #if.
5380 * lisp.h: Replace #if 0 code for checking with text pointing to
5381 the --enable-checking configure flag.
5383 * emacs.c (main): Mention the --enable-profiling configure flag
5384 instead of using CFLAGS.
5386 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
5388 * Makefile.in (buildobj.h): New target.
5389 (doc.o): Depend on it.
5390 (temacs${EXEEXT}): Don't generate buildobj.lst.
5391 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5392 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5393 ($(BLD)/doc.$(O)): Depend on it.
5394 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5395 provided by Eli Zaretskii.)
5396 ($(TEMACS)): Don't generate buildobj.lst.
5397 * doc.c: Include buildobj.h.
5398 (buildobj): New static variable.
5399 (Fsnarf_documentation): Use it, instead of opening and reading
5402 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
5404 * dbusbind.c (Fdbus_call_method)
5405 (Fdbus_call_method_asynchronously): Use English numeric format for
5406 timeout values in doc string.
5408 2009-08-25 Kenichi Handa <handa@m17n.org>
5410 * alloc.c (mark_char_table): New function.
5411 (mark_object): Use mark_char_table for a char-table.
5413 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5414 (CHAR_TABLE_REF): Use it.
5416 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
5418 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5419 before invoking the newly build emacs to check for load-path
5422 2009-08-22 Glenn Morris <rgm@gnu.org>
5424 * Makefile.in (bootstrap_exe): New variable.
5425 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5426 Use ${bootstrap_exe}.
5428 2009-08-22 Eli Zaretskii <eliz@gnu.org>
5430 * coding.h (encode_coding_string): Don't encode unibyte strings.
5433 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
5435 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5437 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5438 intended as hotfix only.
5439 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5441 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5443 * nsterm.m (ns_get_color): Update documentation properly for last
5444 change, and clean up loose ends in the code left by it. Fix
5445 longstanding bug with 16-bit hex parsing, and add support for
5446 yet another X11 format (rgb:r/g/b) for compatibility.
5447 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5448 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5450 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5452 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5454 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
5456 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5457 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5458 (xd_initialize, xd_pending_messages): Check, whether
5459 $DBUS_SESSION_BUS_ADDRESS is set.
5461 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5463 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5465 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5467 2009-08-20 Glenn Morris <rgm@gnu.org>
5469 * emacs.c (system-type): Doc fix.
5471 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5473 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5474 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5476 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
5478 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5480 (xd_initialize): Revert change from 2009-08-16.
5482 2009-08-18 Kenichi Handa <handa@m17n.org>
5484 * fontset.c (Ffontset_font): If a nil element is found in a
5485 font-group vector, return nil.
5487 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
5489 * process.c (status_notify): Don't perform redisplay.
5490 (Fdelete_process, list_processes_1, process_send_signal):
5491 Expliticly perform redisplay.
5492 (wait_reading_process_output): Always check process status, but
5493 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5495 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
5497 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
5498 (XFLOAT_INIT): New macro for storing a float value.
5499 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5500 * fns.c (sxhash): Copy out the value of a float in order to
5502 * dbusbind.c (xd_append_arg): Likewise.
5504 * emacs.c (main): Don't call syms_of_data twice.
5506 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
5508 * dbusbind.c (xd_initialize): Add connection file descriptor to
5509 input_wait_mask, in order to let select() detect, whether a new
5510 message has been arrived.
5511 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
5513 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
5515 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5518 * lisp.h (xd_pending_messages): Declare.
5520 * keyboard.c (readable_events): Call xd_pending_messages.
5522 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
5524 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
5526 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5528 * buffer.c (set_buffer_internal_1)
5529 (swap_out_buffer_local_variables): Check for unbound local
5530 variables (Bug#4138).
5532 2009-08-14 Eli Zaretskii <eliz@gnu.org>
5534 * process.c (create_pty): Fix last change.
5536 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
5538 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5539 (xbm_load_image): Caller changed.
5540 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
5542 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
5544 * process.c (create_pty): New function.
5545 (Fstart_process): Use it to allow Emacs to just associate a pty
5546 with the buffer. See associated change in gdb-mi.el.
5547 (list_processes_1): Deal with no program name.
5548 (start_process_unwind): Use pid == -2 to mean no process.
5550 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5552 * cmds.c (nonundocount): New global variable.
5553 (keys_of_cmds): Initialize it.
5554 (Fself_insert_command): Use it to combine upto 20 sequential chars
5555 into a single undo entry, just like the Qself_insert_command code in
5557 Call frame_make_pointer_invisible, also like the Qself_insert_command
5558 code in keyboard.c does.
5559 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5560 than its own local replacement for it.
5562 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
5564 * fns.c (concat): Don't re-set string length to its current value.
5566 * coding.h (decode_coding_string, encode_coding_string):
5569 * doprnt.c (doprnt_lisp): Delete unused function.
5570 (doprnt): Merge with doprnt1, discarding lispstrings code.
5571 * lisp.h (doprnt_lisp): Don't declare.
5573 2009-08-07 Juri Linkov <juri@jurta.org>
5575 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5577 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5579 * print.c (syms_of_print): Undo previous change.
5581 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5583 * lread.c (read1, syms_of_lread): Read hashtables back from the
5586 * print.c (print_preprocess, print_object): Print hashtables fully
5588 (syms_of_print): Provide 'hashtable-print-readable.
5590 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5592 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5594 (nsfont_open): Handle case when entity has no family.
5596 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5598 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5599 element, not a list, for match case.
5601 2009-07-28 Kenichi Handa <handa@m17n.org>
5603 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5606 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5607 font_parse_xlfd. Check font properties more rigidly.
5609 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5611 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5614 2009-07-27 Kenichi Handa <handa@m17n.org>
5616 * xfaces.c (face_with_height): Call font_clear_prop.
5618 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
5620 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5622 * xterm.c (x_term_init): Use Qx.
5624 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5626 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
5627 (ns_get_color): Revert 2009-07-16 change.
5629 2009-07-25 Eli Zaretskii <eliz@gnu.org>
5631 * lread.c (syms_of_lread) <force_load_messages>: New variable.
5632 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
5634 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
5636 * coding.h (decode_coding_string, encode_coding_string):
5639 * lread.c: Rewrite 2009-07-21 changes.
5640 (load_depth): Delete.
5641 (Qload_in_progress): New variable.
5642 (load_unwind): Don't reference load_depth or load_in_progress.
5643 (Fload): Likewise; specbind Qload_in_progress instead.
5644 (init_lread): Don't initialize load_depth.
5645 (syms_of_lread): Initialize and protect Qload_in_progress.
5647 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5649 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5651 2009-07-23 Yavor Doganov <yavor@gnu.org>
5653 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5655 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5657 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
5658 Bugs 3792, 3720, 2402.
5659 (ns_lookup_indexed_color): Check for bad index.
5660 (ns_index_color): Init unused slot to 0.
5661 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5662 Bug 3714, possibly 3082.
5664 2009-07-22 Jason Rumney <jasonr@gnu.org>
5666 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5667 Position IME window at cursor (Bug#2570).
5668 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5669 (globals_of_w32fns): Dynamically load functions required above.
5671 * w32term.c (w32_draw_window_cursor): Send message to reposition
5674 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
5676 * fileio.c: Revert 2009-07-16 changes.
5677 (Vauto_save_include_big_deletions): New variable.
5678 (Fdo_auto_save): Disable auto-save only if
5679 auto-save-include-big-deletions is nil.
5681 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
5683 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5684 the overflowed pixels into account (Bug#3879).
5686 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
5688 * lread.c (load_depth): New variable.
5689 (Fload, load_unwind, init_lread): Set it to the load recursion
5690 depth; set load_in_progress as a simple boolean based on the
5691 current load_depth. (Bug#3892)
5693 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5695 * nsfont.m (ns_has_attribute): Remove.
5696 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5698 2009-07-18 Juri Linkov <juri@jurta.org>
5700 * process.c (Fset_process_query_on_exit_flag): Mention killing
5701 a buffer in docstring.
5703 2009-07-17 Kenichi Handa <handa@m17n.org>
5705 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5707 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5709 * nsfns.m (Fns_set_alpha): Remove function.
5710 (syms_of_nsfns): Don't defsubr it.
5712 * nsterm.m (ns_get_color): Remove incompatible color formats.
5713 (ns_color_to_lisp): Generate #rrggbb color format string.
5715 2009-07-16 Richard Stallman <rms@gnu.org>
5717 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5718 (Fset_buffer_auto_saved): Handle save_length = -2.
5720 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
5722 * xterm.c (Qx_gtk_map_stock): New var.
5724 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5725 of calling intern each time.
5727 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5729 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5732 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5734 2009-07-14 Kenichi Handa <handa@m17n.org>
5736 * font.c (font_vconcat_entity_vectors): New function.
5737 (struct font_sort_data): New member font_driver_preference.
5738 (font_compare): Check font_driver_preference.
5739 (font_sort_entities): The format of the first argument changed.
5740 (font_delete_unmatched): Likewise.
5741 (font_list_entities): The return type changed.
5742 (font_select_entity): The format of the second argument changed.
5743 (font_find_for_lface): Adjuste for the above changes.
5744 Don't suppress the checking of C even if the repertory supports it.
5745 (Flist_fonts): Adjust for the above changes.
5747 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5748 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
5749 Reject a font who has adstyle property that is different from a
5750 langname derived from registry property.
5751 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
5753 2009-07-13 Eli Zaretskii <eliz@gnu.org>
5755 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5756 local copy of dirfilename.
5758 2009-07-13 Kenichi Handa <handa@m17n.org>
5760 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5763 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5764 calling XSYMBOL (sym).
5766 2009-07-11 Eli Zaretskii <eliz@gnu.org>
5768 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5770 (directory_files_internal) [WINDOWSNT]:
5771 Bind w32-get-true-file-attributes to either t or nil, depending whether
5772 the filesystem of the directory is fast or slow.
5774 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5776 (is_slow_fs): New function.
5777 (stat): Use it to determine whether to issue more system calls to
5778 get accurate file attributes, when w32-get-true-file-attributes is
5781 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5783 * xfns.c (Fx_select_font): Remember last font selected in
5784 x_last_font_name and use that the next time. Also try the frame
5785 parameter font-parameter as default to the font dialog.
5787 2009-07-10 Kenichi Handa <handa@m17n.org>
5789 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5791 2009-07-09 Eli Zaretskii <eliz@gnu.org>
5793 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
5795 * w32.c (stat): Treat UNC file names as residing on remote
5798 2009-07-09 Kenichi Handa <handa@m17n.org>
5800 * fontset.c (fontset_find_font): Fix previous change.
5802 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
5804 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5805 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5808 2009-07-08 Kenichi Handa <handa@m17n.org>
5810 * fontset.c (fontset_find_font): Fix the logic of handling
5812 (font_for_char): Delete unused var.
5813 (generate_ascii_font_name): Delete it.
5815 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5817 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5818 (encode_coding_sjis): Fix the code range check.
5820 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
5822 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5823 (Fexpand_file_name): Copy string data properly (Bug#3772).
5825 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5827 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5830 2009-07-07 Kenichi Handa <handa@m17n.org>
5832 * character.h (unibyte_has_multibyte_table): Delete extern.
5833 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5835 * charset.c (Fset_charset_priority): Update charset_unibyte.
5836 (syms_of_charset): Initialize charset_unibyte.
5838 * character.c (unibyte_has_multibyte_table): Delete it.
5839 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5841 (multibyte_char_to_unibyte_safe): Likewise.
5842 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5844 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
5845 (x_produce_glyphs): Likewise.
5847 * .gdbinit (xcharset): Fix the treating $arg0.
5849 2009-07-04 Eli Zaretskii <eliz@gnu.org>
5851 Emulation of `getloadavg' on MS-Windows.
5852 * w32.c: Include float.h.
5853 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5854 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5855 (get_native_system_info, get_system_times): New functions.
5856 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5857 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5858 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5859 g_b_init_get_system_times, and num_of_processors.
5861 2009-07-03 Jason Rumney <jasonr@gnu.org>
5863 * w32term.c (w32_initialize): Use standard types.
5865 2009-07-03 Eli Zaretskii <eliz@gnu.org>
5867 * dired.c (Ffile_attributes): Decode user and group names by the
5868 locale's encoding. (Bug#3443)
5870 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5872 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5873 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5875 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5877 * term.c (init_tty): Remove spurious #ifdef.
5879 * m/mips.h: Mention this file is also used for netbsd.
5880 * m/pmax.h: Remove file.
5882 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5884 * xterm.h (struct x_display_info): Add invisible_cursor.
5885 (struct x_output): Add current_cursor.
5887 * xterm.c (XTtoggle_invisible_pointer): New function.
5888 (x_define_frame_cursor): Don't define cursor if invisible or the
5889 same as before. Set current_cursor.
5890 (x_create_terminal): Set toggle_invisible_pointer_hook.
5892 * xfns.c (make_invisible_cursor): New function.
5893 (x_set_mouse_color): Call make_invisible_cursor.
5895 (x_window): Set current_cursor.
5897 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5899 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5900 inserting a character.
5901 (read_avail_input): Call frame_make_pointer_visible.
5903 * frame.c (Vmake_pointer_invisible): New variable.
5904 (frame_make_pointer_invisible, frame_make_pointer_visible):
5906 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5908 * frame.h: Declare frame_make_pointer_invisible and
5909 frame_make_pointer_visible.
5910 (struct frame): Add pointer_invisible.
5912 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5914 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5915 frame isn't visible.
5916 (xg_frame_resized): If width/height is -1, get size of window
5919 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5922 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
5923 here or call change_frame_size. Just call flush_and_sync.
5924 (flush_and_sync): Reintroduce.
5926 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
5928 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
5930 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5931 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5933 * frame.h: Declare Qsticky.
5935 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5937 * nsfns.m (ns_frame_parm_handlers): Ditto.
5939 * frame.c: Declare Qsticky.
5940 (frame_parms): Add sticky.
5942 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5944 * xterm.h: Declare x_set_sticky.
5946 * xterm.c (x_set_sticky): New function.
5948 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5949 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5950 xg_tool_bar_proxy_help_callback.
5952 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5954 * frame.c: Qmaximized is new.
5955 (x_set_frame_parameters): Do not handle fullscreen specially.
5956 Only set width and height if explicitly set.
5957 (x_set_fullscreen): Handle Qmaximized.
5958 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5959 (syms_of_frame): Initialize Qmaximized.
5961 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5962 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
5964 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
5965 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5966 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
5967 set gravity to NorthWestGravity when USE_GTK.
5968 (set_wm_state): New function.
5969 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
5970 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5971 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
5972 or the case when no window manager is running. That means remove calls
5973 to x_real_positions and x_fullscreen_adjust.
5975 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5976 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5978 (xg_height_changed): New function.
5979 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
5980 and gtk_window_set_policy. Set frame gravity after parsing the
5982 (xg_update_frame_menubar, free_frame_menubar)
5983 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5984 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5985 Remove calls to xg_frame_set_char_size.
5987 2009-07-01 Kenichi Handa <handa@m17n.org>
5989 * keyboard.c (decode_keyboard_code): New function.
5990 (tty_read_avail_input): Decode the input bytes if necessary.
5992 * coding.c (setup_coding_system):
5993 Initialize coding->carryover_bytes to 0.
5994 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5997 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5999 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6001 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
6003 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
6005 2009-06-30 Jason Rumney <jasonr@gnu.org>
6007 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6009 Set user model ID if supported (bug#1849).
6011 2009-06-29 Jim Meyering <meyering@redhat.com>
6013 Remove useless if-before-xfree test.
6014 * nsfont.m (nsfont_close): Remove useless test.
6015 * term.c (delete_tty): Likewise.
6016 * w32.c (system_process_attributes): Likewise.
6017 * w32font.c (w32font_close): Likewise.
6018 * xfaces.c (x_free_gc): Likewise.
6019 * xselect.c (buffer): Likewise.
6021 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6023 * process.c (send_process): Keep decoded string in a local
6024 variable and protect it from GC. (Bug#3521)
6026 2009-06-28 Eli Zaretskii <eliz@gnu.org>
6028 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6029 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6031 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
6033 * xdisp.c (start_display, handle_face_prop)
6034 (move_it_vertically_backward, cursor_row_fully_visible_p)
6035 (redisplay_window, try_window_id, produce_image_glyph):
6036 Delete some #ifdef-ed out code chunks that are now obsolete.
6038 * xterm.c (x_update_window_begin, x_new_focus_frame)
6039 (x_scroll_bar_handle_click, handle_one_xevent)
6040 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6041 (x_make_frame_visible, x_make_frame_invisible)
6042 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6043 code chunks that are now obsolete.
6045 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
6047 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6048 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6049 for hours, when optimzation is enabled.
6050 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6051 (xd_read_message): Make them static.
6053 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6055 * term.c (turn_on_face): Allow simultaneously bold and dim
6056 terminal faces (Bug#3530).
6058 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
6060 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6062 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6063 truncation glyphs (Bug#3686).
6065 2009-06-27 Glenn Morris <rgm@gnu.org>
6067 * m/pmax.h: Restore file, with only netbsd portions.
6069 2009-06-26 David Reitter <david.reitter@gmail.com>
6071 * nsterm.m (keydown): Avoid infinite loop.
6073 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6075 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6076 the arg FORCE_SYMBOL.
6078 2009-06-25 Kenichi Handa <handa@m17n.org>
6080 * fontset.c (fontset_find_font): When a usable rfont_def is found
6081 in a fallback font-group, make it the first element of the group.
6083 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
6085 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6087 2009-06-24 Kenichi Handa <handa@m17n.org>
6089 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6091 (fontset_font): Record the availability of a font for C both in
6092 the realized fontsets of the current one and the default one.
6094 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6096 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6097 conditional, it is always defined on AIX.
6099 2009-06-23 Miles Bader <miles@gnu.org>
6101 * window.c (Vrecenter_redisplay): New variable.
6102 (syms_of_window): Initialize it.
6103 (Qtty): New extern declaration.
6104 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6106 2009-06-23 Jim Meyering <meyering@redhat.com>
6108 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6109 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
6110 pointer dereferences are guaranteed to be valid.
6112 2009-06-23 Kenichi Handa <handa@m17n.org>
6114 * emacs.c (main): Call init_font ().
6116 * font.h (Vfont_log): Extern it.
6117 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6119 * font.c (font_sort_entities, font_list_entities)
6120 (font_matching_entity, font_open_entity)
6121 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6122 (Vfont_log): Delete static.
6123 (font_log_env_checked): Delete this variable.
6124 (font_add_log): Don't check font_log_env_checked.
6125 (font_deferred_log): Check Vfont_log.
6126 (init_font): New function.
6128 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6130 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6132 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6134 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6136 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6137 (face_for_char): Don't call font_deferred_log here.
6138 (font_for_char): Likewise.
6140 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
6142 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6143 rather than its background_width for drawing the overline and
6144 underline (Bug#489).
6146 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6147 rather than its background_width for drawing the overline and
6148 underline (Bug#489).
6149 (xg_default_icon_file): New variable.
6150 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6151 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
6153 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6154 (load_overlay_strings): Remove externs.
6155 (fast_find_position): Function deleted.
6156 (mouse_face_from_buffer_pos): New function, based on
6157 fast_find_position. Correctly handle before-strings,
6158 display-strings, and after-strings (Bug#1220).
6159 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6161 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6163 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
6164 (move_it_in_display_line_to, move_it_in_display_line_to)
6165 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6167 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6171 2009-06-21 Jason Rumney <jasonr@gnu.org>
6173 * w32term.c (keyboard_codepage): New static variable.
6174 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6175 (w32_read_socket) [WM_CHAR]: Use it to decode character
6177 (w32_initialize): Initialize it.
6178 (codepage_for_locale): New function.
6180 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
6182 * process.c (status_message): Pass Faset index argument as a lisp
6183 object, so as to work with USE_LISP_UNION_TYPE.
6185 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6187 * coding.c (Ffind_coding_systems_region_internal):
6188 Cache checked characters.
6190 2009-06-18 Kenichi Handa <handa@m17n.org>
6192 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
6194 2009-06-18 Andreas Schwab <aschwab@redhat.com>
6196 * xdisp.c (redisplay_internal): Check that the frame is still
6197 live after redisplay of its windows.
6198 (redisplay_windows): Check that the window is still live.
6200 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6202 * coding.c (detect_coding_utf_16): Fix previous change.
6204 2009-06-16 Kenichi Handa <handa@m17n.org>
6206 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6207 UTF-16 by checking the dispersion of Eth and Oth bytes.
6209 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6211 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6213 2009-06-15 Kenichi Handa <handa@m17n.org>
6215 * process.c (status_message): Fix previous change. Be sure to
6216 decode a localized string.
6218 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6220 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6221 add comment explaining why.
6223 2009-06-14 Sidney Markowitz <sidney@sidney.com>
6225 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
6227 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6229 * nsfont.m (ns_attribute_value): Remove.
6230 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6231 (ns_has_attribute): Shrink the normal range.
6232 (ns_findfonts): Don't worry about requested spec in determining
6234 (ns_get_covering_families): Retain scriptToFamilies.
6236 2009-06-14 Seiji Zenitani <zenitani@mac.com>
6238 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6240 2009-06-11 Kenichi Handa <handa@m17n.org>
6242 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6243 overhang for the static composition case.
6245 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6247 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6248 overhang for the automatic composition case.
6250 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6253 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
6255 * xdisp.c (get_next_display_element): When handling wrap-prefix
6256 and line-prefix, treat \n as a control character (bug#3502).
6258 2009-06-10 Kenichi Handa <handa@m17n.org>
6260 * font.c (font_parse_family_registry): Fix for one-char foundry.
6261 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6263 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6265 * process.c (status_message): Fix handling of multibyte signal
6268 2009-06-09 Jim Meyering <meyering@redhat.com>
6270 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6271 color name is missing.
6273 2009-06-09 Kenichi Handa <handa@m17n.org>
6275 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6276 FROM-CODE and TO-CODE are codepoints of CHARSET.
6278 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6280 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6282 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6284 Changes to support :script/:lang/:otf in NS font driver.
6285 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6286 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6287 indicate not part of font driver interface, and change callers.
6288 (ns_get_family): Remove pointless null check.
6289 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6290 ns_spec_to_descriptor, ns_descriptor_to_entity.
6291 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6292 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6293 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6294 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6295 (ns_get_req_script, ns_accumulate_script_ranges)
6296 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6298 (nsfont_list, nsfont_match): Use ns_findfonts.
6299 (nsfont_open): Use font descriptor instead of traits.
6300 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6301 (dump_glyphstring): Rename to ns_dump_glyphstring.
6303 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6305 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6307 * fontset.c (fontset_from_font): Remove NS-specific code.
6309 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
6311 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6314 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
6316 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
6318 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6320 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6322 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
6324 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6325 account for the overflowing of newlines into the last glyph on the
6326 display line (Bug#3482).
6328 2009-06-05 David Reitter <david.reitter@gmail.com>
6330 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6331 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
6332 Fns_selection_exists_p, Fns_selection_owner_p.
6334 2009-06-03 Jason Rumney <jasonr@gnu.org>
6336 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6337 available. (Bug#3379)
6339 2009-05-29 Kenichi Handa <handa@m17n.org>
6341 * coding.c (get_translation_table):
6342 Check Venable_character_translation.
6344 2009-05-26 David Reitter <david.reitter@gmail.com>
6346 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6347 (x_make_frame_visible): Move frame to front rather than calling
6349 (keyDown:): Do not swallow events that aren't re-sent if frame
6351 (drawRect:): Do not set visibility/iconified flags because
6352 drawRect may be called by NSView even if the frame is hidden.
6354 * nsfns.m (Fx_create_frame): Follow other ports in
6355 determining visibility; default to t. Ensure async_visible is set.
6357 2009-05-23 Eli Zaretskii <eliz@gnu.org>
6359 * dired.c (Ffile_attributes): Doc fix.
6361 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
6363 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6365 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6367 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6368 and xfont_scratch_props.
6369 (syms_of_xfont): Do it here instead.
6370 (xfont_find_ccl_program): Delete, unused.
6371 (xfont_open): Delete unused var `i'.
6373 2009-05-21 Kenichi Handa <handa@m17n.org>
6375 * fontset.c (Qlatin): Don't make it static.
6377 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6379 (xfont_scripts_cache, xfont_scratch_props): New variables.
6380 (Qlatin, Vscalable_fonts_allowed): Extern it.
6381 (xfont_list_pattern): Argument changed. Callers changed.
6382 Check Vscalable_fonts_allowed. Check the support of a script.
6383 (xfont_list): Don't reject a font spec with :script property.
6384 (xfont_has_char): Fix setting of encoding.
6385 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6386 xfont_scratch_props.
6388 2009-05-19 Kenichi Handa <handa@m17n.org>
6390 * font.c (font_sort_entities): Rename from font_sort_entites.
6393 2009-05-18 Kenichi Handa <handa@m17n.org>
6395 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6397 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6399 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6400 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6402 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6404 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6405 (x_delete_terminal): Dissociate resource database from display and
6406 then call XrmDestroyDatabase before closing display.
6408 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6410 * nsterm.m (ns_read_socket): Remove unused variable.
6411 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6412 whether selected frame is viable before raising it (based on patch
6413 by David Reitter), and improve commentary.
6414 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
6416 2009-05-15 Kenichi Handa <handa@m17n.org>
6418 * font.c (Ffont_spec): Check arguments.
6420 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
6422 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6423 weight when testing attributes (Bug#3282).
6425 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6427 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6428 what we expect to get in the next ConfigureNotify event.
6430 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6431 before Xft one (Bug#1696).
6433 2009-05-07 David Reitter <david.reitter@gmail.com>
6435 * nsfns.m (Fx_display_planes): Compute bitplanes using
6436 NSBitsPerPixelFromDepth (Bug#3207).
6438 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
6440 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6442 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
6444 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6446 2009-05-07 David Reitter <david.reitter@gmail.com>
6448 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6449 Respect mouse face background.
6451 2009-05-07 David Reitter <david.reitter@gmail.com>
6453 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6454 Mouse movement/highlight: bracket drawing operations
6455 in ns_update_begin and ns_update_end.
6457 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6459 * nsfns.m (ns_get_screen): Rewrite.
6460 Don't presume selected-frame is of type `ns'.
6462 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6465 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6467 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6469 * keyboard.h (add_user_signal): Fix typo in extern.
6471 * lisp.h (add_user_signal): Remove extern.
6473 * unexelf.c (unexec): Consider a section to precede the .bss section
6474 if its addresses overlap that of .bss.
6475 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6476 instead of dumping process.
6478 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6480 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6482 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6484 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6486 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6488 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6491 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6493 * process.c (read_process_output): Make sure the current buffer is
6496 * coding.c (record_conversion_result): Don't modify
6497 Vlast_code_conversion_error for successful result.
6498 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6500 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6502 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
6503 (load_charset_map): Remove unnecessary code.
6505 2009-04-30 David Reitter <david.reitter@gmail.com>
6507 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
6510 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
6512 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6514 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6515 face_at_buffer_position.
6516 (face_before_or_after_it_pos, get_next_display_element)
6517 (note_mouse_highlight): Update face_at_buffer_position call.
6519 * term.c (term_mouse_highlight):
6520 * msdos.c (IT_note_mouse_highlight):
6521 * fontset.c (Finternal_char_font):
6522 * font.c (font_at, font_range): Update face_at_buffer_position call.
6524 * dispextern.h (face_at_buffer_position): Update prototype.
6526 2009-04-30 Kenichi Handa <handa@m17n.org>
6528 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
6530 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6532 * callproc.c (Fcall_process): Fix GC protection. Make sure
6533 current buffer is always restored.
6535 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6537 * atimer.c (init_atimer): Also clear stopped_atimers.
6539 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6541 * process.c (create_process): Clean up merger residues of
6544 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
6546 * lread.c (Vread_circle): New variable.
6547 (read1): Disable recursive read if Vread_circle is nil.
6549 2009-04-29 Kenichi Handa <handa@m17n.org>
6551 * fontset.h (set_default_ascii_font): Delete extern.
6553 * fontset.c (set_default_ascii_font): Delete this unused function.
6555 * frame.c (x_set_font): When ARG is a font-object, check if the
6556 font-object matches with the ASCII font-spec of the frame's
6557 fontset. If not, create a new fontset for the frame. (Bug #3075)
6559 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6561 * fns.c (Flocale_info): Protect vector from GC during decoding.
6563 * process.c (Fstart_process): Protect argv strings from GC during
6566 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6568 * sysdep.c: Include <ctype.h>.
6570 2009-04-27 David Reitter <david.reitter@gmail.com>
6572 * nsfont.m (nsfont_open): Remove unused variable shrink.
6573 Remove commented-out code.
6575 2009-04-26 Johan Bockgård <bojohan@gnu.org>
6577 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6579 2009-04-25 Jason Rumney <jasonr@gnu.org>
6581 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6583 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6585 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6586 Swap bytes in short integer if fringe bitmap width > 8.
6588 2009-04-23 Kenichi Handa <handa@m17n.org>
6590 * xfaces.c (Fx_list_fonts): If a font size is specified in
6591 PATTERN, set it in returned scalable fonts.
6593 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
6595 * keyboard.c (Fset_input_meta_mode): Doc fix.
6597 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6599 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
6601 * coding.c (Fterminal_coding_system): Doc fix.
6603 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6604 (Fx_display_pixel_height, Fx_display_planes)
6605 (Fx_display_color_cells, Fx_server_max_request_size)
6606 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6607 (Fx_display_mm_height, Fx_display_mm_width)
6608 (Fx_display_backing_store, Fx_display_visual_class)
6609 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6610 Doc fixes, replacing "terminal id" with "terminal object".
6611 (check_x_display_info): Handle terminal objects instead of
6614 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6615 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
6616 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6617 Doc fixes, replacing "terminal id" with "terminal object".
6619 2009-04-21 Kenichi Handa <handa@m17n.org>
6621 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
6622 (font_score): Check AVGWIDTH too.
6624 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6626 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6627 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
6629 2009-04-19 Jason Rumney <jasonr@gnu.org>
6631 The following changes fix Bug#3005 for wide glyphs on each platform,
6632 without reintroducing Bug#1258 for stretch glyphs.
6634 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6635 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6636 get_phys_cursor_geometry.
6638 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
6639 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6640 using get_phys_cursor_geometry.
6642 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6643 correctly calculated.
6645 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6647 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6648 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
6649 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6652 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6654 * font.c (font_put_frame_data): Use xfree instead of free.
6656 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
6658 * w32font.c (Qja, Qko): Remove declarations.
6659 (syms_of_w32font): Don't DEFSYM them.
6661 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
6663 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6665 * font.h (Qja, Qko): Extern them.
6667 * ftfont.c (Qja, Qko): Remove declarations.
6669 * xfont.c (Qja, Qko): Remove declarations.
6671 2009-04-17 Kenichi Handa <handa@m17n.org>
6673 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6674 string from a vector to handle Latin-1 characters correctly.
6676 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6677 entity even if the cache hits.
6679 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6681 * search.c (boyer_moore): Use zero as marker value for a possible
6682 match instead of depending on overflow behavior. (Bug#2844)
6684 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6685 * lisp.h: Adjust prototypes.
6687 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
6689 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6692 2009-04-16 Kenichi Handa <handa@m17n.org>
6694 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
6696 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6699 * ftfont.c (Qja, Qko): Don't make them static.
6700 (enum ftfont_cache_for): New enum.
6701 (fc_charset_table): Undo the previous change.
6702 (ftfont_get_latin1_charset): Delete it.
6703 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6704 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
6705 non-scarable font, try to get AVERAGE_WIDTH.
6706 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6707 Change ft_face_cache from a list of a hash-table. Don't check
6708 `ja' and `ko' adstyle here.
6709 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6710 FTFONT_CACHE_FOR_CHARET.
6711 (ftfont_get_charset): Undo the previous change.
6712 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
6713 (ftfont_close): Likewise.
6714 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6716 * font.c (font_sort_entites): Change the meaning of the arg
6717 BEST-ONLY. Don't optimize for VEC of lenght 1.
6718 (font_select_entity): Just return the value of font_sort_entites.
6720 * xfaces.c (merge_face_vectors): Reflect font properties in
6721 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6722 font_clear_prop if a face attribute doesn't change.
6724 * charset.h (charset_ksc5601): Extern it.
6726 * charset.c (charset_ksc5601): New variable.
6727 (Fdefine_charset_internal): Set charset_ksc5601.
6728 (init_charset_once): Initialize charset_ksc5601 to -1.
6730 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6732 * fileio.c (history_delete_duplicates): Remove unused declaration.
6734 * callint.c (history_delete_duplicates): New declaration.
6735 (Fcall_interactively): Remove command history duplicates when
6736 history_delete_duplicates is true.
6738 2009-04-14 Eli Zaretskii <eliz@gnu.org>
6740 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6742 2009-04-14 Kenichi Handa <handa@m17n.org>
6744 * font.c (Ffont_info): Fix docstring. Fix the second element of
6745 the returned value (bug#2949).
6747 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
6749 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6751 2009-04-14 Kenichi Handa <handa@m17n.org>
6753 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6754 encoding charset is ascii_compatible.
6756 * charset.c (Fdefine_charset_internal): Make charset
6757 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6758 code_offset is 0, and covers all ASCII characters.
6760 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6762 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6763 (ns_string_to_pasteboard_internal):
6764 * nsmenu.m (process_dialog):
6765 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6766 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6767 * lisp.h (Fx_load_color_file): Declare.
6769 2009-04-13 Kenichi Handa <handa@m17n.org>
6771 * font.c (font_delete_unmatched): Preserve the order of list elements.
6772 (font_select_entity): Suppress the code to optimize for the same
6774 (font_load_for_lface): Get a font that supports at least ASCII
6777 * ftfont.c (Qja, Qko): New variables.
6778 (fc_charset_table): Delete uniquifier data for iso8859-1.
6779 (ftfont_get_latin1_charset): New function.
6780 (get_adstyle_property): New function.
6781 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6783 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6784 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6786 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
6787 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
6788 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6790 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6791 (syms_of_ftfont): DEFSYM Qja and Qko.
6793 2009-04-09 Kenichi Handa <handa@m17n.org>
6795 * charset.c (map_charset_chars): For a charset of `superset'
6796 method, fix calculation of code range.
6798 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6799 from the list of extra properties.
6800 (font_clear_prop): Be sure to delete `:name' font property.
6802 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6804 * dispnew.c (redraw_overlapping_rows): Fix detection of
6805 overlapping for topmost and bottommost rows.
6807 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
6809 2009-04-06 Jason Rumney <jasonr@gnu.org>
6811 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6813 2009-04-06 Kenichi Handa <handa@m17n.org>
6815 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6817 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6819 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6821 * ftfont.c (ftfont_open): Fix checking of the return value of
6822 FT_Load_Char. Fix setting font->underline_thickness.
6824 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
6826 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6827 (Fterminal_parameters, Fterminal_parameter)
6828 (Fset_terminal_parameter): In doc string, refer to terminal
6829 objects rather than terminal ids.
6831 2009-04-04 Eli Zaretskii <eliz@gnu.org>
6833 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6834 ret_lim_data. (Bug#2867)
6836 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
6838 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6839 so they don't get wider than the window, matching 2006-01-23
6840 change to the partner function in xdisp.c (Bug#2800).
6842 2009-04-03 Kenichi Handa <handa@m17n.org>
6844 * print.c (print_object): Make each lowest sub_char_table start a
6845 new line (Bug#2866).
6847 2009-04-02 Kenichi Handa <handa@m17n.org>
6849 * fontset.c (fontset_font): Record no-font when a fontset
6850 explicitly tells not to try another font-specs.
6852 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6854 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6856 2009-03-30 Kenichi Handa <handa@m17n.org>
6858 * fontset.c (fontset_from_font): Specify only registry in a
6859 font-spec for all characters supported by that registry.
6861 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6862 even if HAVE_M17N_FLT is not defined.
6864 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6866 * ftfont.c: Conditionalize prototyping and use of
6867 ftfont_variation_glyphs.
6869 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6871 * frame.c (delete_frame): Work around compiler bug.
6873 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6874 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6875 Some more EMACS_INT.
6876 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6878 * xdisp.c (dump_glyph): Fix typo.
6880 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6881 (adjust_markers_gap_motion, adjust_markers_for_delete)
6882 (adjust_markers_for_insert, adjust_point)
6883 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6884 (make_gap, copy_text, count_size_as_multibyte, insert)
6885 (insert_and_inherit, insert_before_markers)
6886 (insert_before_markers_and_inherit, insert_1)
6887 (count_combining_before, count_combining_after, insert_1_both)
6888 (insert_from_string, insert_from_string_before_markers)
6889 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6890 (insert_from_buffer_1, adjust_after_replace)
6891 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6892 (replace_range_2, del_range, del_range_1, del_range_byte)
6893 (del_range_both, del_range_2, modify_region)
6894 (prepare_to_modify_buffer, signal_before_change)
6895 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6896 for buffer positions and sizes.
6897 * lisp.h: Adjust prototypes accordingly.
6899 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6900 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6901 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6903 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6905 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6907 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6908 lines and columns so we keep the same pixel height and width.
6910 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6911 the property _NET_WM_STATE has changed.
6912 (x_handle_net_wm_state): New function to update frame parameter
6914 (x_term_init): Initialize atoms for _NET_WM_STATE.
6916 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6918 2009-03-27 Kevin Ryde <user42@zip.com.au>
6920 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6921 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6922 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6923 (Fgpm_mouse_stop): Pass that new parameter.
6924 * termhooks.h (close_gpm): Adjust prototype.
6926 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6928 * lisp.h (Fx_focus_frame): Declare.
6930 * callint.c (Fcall_interactively): For '^' just delegate the work to
6931 handle-shift-selection.
6932 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6934 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
6936 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6938 * data.c (Qinteractive_form): New variable.
6939 (Finteractive_form): Use it.
6941 * eval.c (Fcommandp): Use Qinteractive_form.
6943 2009-03-24 Jason Rumney <jasonr@gnu.org>
6945 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6946 Calculate total size precisely. Decode environment variables
6947 before substituting. (Bug#38)
6949 2009-03-24 Kenichi Handa <handa@m17n.org>
6951 * font.c (find_font_encoding): Return Qnil for unsupported
6952 encoding (Bug#2722).
6954 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6956 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6959 2009-03-22 Alan Mackenzie <acm@muc.de>
6961 * callint.c (Finteractive): Clarify the doc string - even
6962 promptless elements need \n separators.
6964 2009-03-22 Jason Rumney <jasonr@gnu.org>
6966 * w32term.c (syms_of_w32term): Doc fix for
6967 x-use-underline-position-properties.
6969 2009-03-21 Eli Zaretskii <eliz@gnu.org>
6971 * w32.c (getpwuid): Change argument type to unsigned.
6972 (struct w32_id): Change type of `rid' member to unsigned.
6973 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6974 argument ID to unsigned. All callers changed.
6975 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6977 2009-03-20 Eli Zaretskii <eliz@gnu.org>
6979 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6980 negative, produce a float value.
6982 * dired.c (make_uid, make_gid): New functions.
6983 (Ffile_attributes): Use them to avoid negative UID and GID.
6985 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
6987 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6988 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6989 Fix typos in docstrings.
6991 2009-03-19 Kenichi Handa <handa@m17n.org>
6993 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
6994 changed, use font_load_for_lface to get a new font object.
6995 Call free_realized_fontset after handling ASCII font change.
6997 * frame.c (x_set_font): Handle the case that ARG is a cons.
6999 2009-03-19 Glenn Morris <rgm@gnu.org>
7001 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7003 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
7005 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7007 2009-03-19 Kenichi Handa <handa@m17n.org>
7009 * charset.c (load_charset_map_from_file): When a mapfile can't be
7010 loaded, signal an error.
7012 2009-03-18 Eli Zaretskii <eliz@gnu.org>
7014 * dired.c (Ffile_attributes): Make sure UID and GID are always
7015 positive, even if the value is too large for a positive EMACS_INT.
7018 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7020 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7022 * xmenu.c (xdialog_show): Move Fredisplay call ...
7023 (Fx_popup_dialog): ... here.
7025 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7027 * dired.c (file_name_completion): Disable the first optimization just
7028 installed, since it is not implemented correctly.
7030 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7032 * dired.c (file_name_completion): Check completion-ignored-extensions
7033 only if the entry can affect bestmatch.
7034 Stop the search early, as Ftry_completion already does.
7036 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
7038 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
7040 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
7042 * keyboard.c (parse_menu_item): Don't display remappings as menu
7043 equivalent bindings (Bug#788).
7045 2009-03-15 Jason Rumney <jasonr@gnu.org>
7047 * w32term.h (WM_EMACS_PAINT): New message.
7048 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7049 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7050 before passing to lisp thread. (Bug#950)
7052 2009-03-14 David Reitter <david.reitter@gmail.com>
7054 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7055 variable as it was never reset.
7056 (ns_term_init): Remove initialization of Lisp-settable defaults
7057 and ns_expand_space.
7058 (-setPanelFromDefaultValues): Remove ns_expand_space.
7059 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7060 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
7061 i.e. no additional spacing, similar to Carbon port.
7063 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7064 * nsfns.m (ns-popup-prefs-panel): Remove.
7066 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7068 * sound.c (alsa_configure): Remove call to deprecated
7069 snd_pcm_sw_params_set_xfer_align.
7071 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
7073 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7074 after clicking in a detached tool bar.
7075 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7077 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7079 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7080 int/Lisp_Object mixup).
7082 2009-03-13 Kenichi Handa <handa@m17n.org>
7084 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
7085 Handle NAME nil and t correctly. Callers changed.
7086 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7087 (set_fontset_font): Change ARG to a vector. Handle range_list in
7089 (Fset_fontset_font): Fix the case that TARGET is both a script
7090 name and charset name. Adjust the arg to set_fontset_font for
7092 (fontset_from_font): Fix previous change.
7093 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
7094 entry. If FONTSET is the default fontset, don't set the extra
7095 slot of the returning char-table.
7097 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
7099 * nsfns.m (Fx_close_connection): Doc fix.
7100 (Fns_do_applescript): Reflow docstring.
7101 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7102 (Fx_display_pixel_width, Fx_display_pixel_height)
7103 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7104 Fix typos in docstrings.
7105 (Fns_set_alpha): Fix typos in error messages.
7107 2009-03-12 David Reitter <david.reitter@gmail.com>
7109 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
7110 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7111 were used for such events.
7113 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7114 (toggleToolbar, performDragOperation, runHelp): Use it.
7116 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
7117 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7119 2009-03-11 Kenichi Handa <handa@m17n.org>
7121 * font.h (font_open_by_spec): Extern it.
7123 * font.c (font_open_by_spec): New function.
7124 (font_open_by_name): Use font_open_by_spec.
7126 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7127 fontset of the frame.
7129 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7130 modify the default font of frames that use this fontset.
7131 (num_auto_fontsets): New variable.
7132 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7133 name. Be sure to set FONTSET_ASCII to the correct font name.
7134 (update_auto_fontset_alist): New function.
7136 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
7138 * makefile.w32-in: Update dependencies.
7140 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7142 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7144 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7146 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7148 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
7150 * lread.c (Feval_buffer): Doc fix.
7152 2009-03-09 Kenichi Handa <handa@m17n.org>
7154 * charset.c (Qfile_name_handler_alist): Extern it.
7155 (load_charset_map_from_file): Temporarily bind
7156 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7158 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
7160 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7161 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
7163 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7165 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7166 (x_set_window_size): Change back to calculated method of setting
7167 toolbar height under Cocoa. (Bug#2546)
7168 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7169 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7171 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7173 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7174 accelerator in parens under GNUstep.
7176 2009-03-06 Kenichi Handa <handa@m17n.org>
7178 These changes are to detect incorrect composition sequence without
7179 looking ahead the source. (Bug#2370)
7181 * coding.h: Include "composite.h".
7182 (enum compisition_state): New enum.
7183 (struct compisition_status): New struct.
7184 (struct iso_2022_spec): New member cmp_status.
7185 (struct emacs_mule_spec): New struct.
7186 (struct coding_system): New members ctext_extended_segment_len and
7187 embedded_utf_8. Change the union member
7188 spec.emacs_mule_full_support to spec.emacs_mule.
7190 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7191 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
7192 (MAX_ANNOTATION_LENGTH): Define to 5.
7193 (ADD_COMPOSITION_DATA): New arg nbytes.
7194 (emacs_mule_char): New arg cmp_status.
7195 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7196 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7197 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7198 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7199 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7200 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7201 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7202 (EMACS_MULE_COMPOSITION_END): New macro.
7203 (emacs_mule_finish_composition): New function.
7204 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7205 (decode_coding_emacs_mule): Avoid long looking ahead while
7206 handling composition.
7207 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7208 (ENCODE_COMPOSITION_RULE): New macro.
7209 (finish_composition): New function.
7210 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7211 (DECODE_COMPOSITION_START): New implementation.
7212 (DECODE_COMPOSITION_END): Likewise.
7213 (STORE_COMPOSITION_RULE): New macro.
7214 (decode_coding_iso_2022): Avoid long looking ahead while handling
7215 composition, CTEXT extended segment, and embedded UTF-8.
7216 (setup_coding_system): For a coding of type iso-2022, reset
7217 CODING_ISO_EXTSEGMENT_LEN (coding) and
7218 CODING_ISO_EMBEDDED_UTF_8 (coding).
7219 (get_translation): Delete arguments last_block, from_nchars,
7220 to_nchars. Callers changed.
7221 (produce_chars): Don't modify charbuf. Adjusted for the change of
7223 (produce_composition): Adjust for the new annotation sequence.
7224 (handle_composition_annotation): Likewise.
7225 (consume_chars): Adjust for the change of get_translation.
7227 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7229 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
7231 2009-03-05 Kenichi Handa <handa@m17n.org>
7233 * font.c (font_select_entity): New function.
7234 (font_find_for_lface): Use font_select_entity to select a font.
7236 * fontset.c (fontset_find_font): If a font found without
7237 restricting to the characters C doesn't support C, try to find a
7238 font with C restriction.
7240 2009-03-04 Nikolaj Schumacher <me@nschum.de>
7242 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
7244 2009-03-04 Jason Rumney <jasonr@gnu.org>
7246 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
7247 characters that have already been read. (Bug#2569)
7249 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7250 Log an error message if check_image_size failed.
7251 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
7252 (gs_load): Mention max-image-size in size error message. (Bug#2560)
7254 2009-03-02 Eli Zaretskii <eliz@gnu.org>
7256 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7257 when decoding process output.
7259 2009-03-01 Richard M Stallman <rms@gnu.org>
7261 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7263 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7265 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7267 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7268 (decode_coding_emacs_mule, decode_coding_iso_2022)
7269 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7270 (decode_coding_raw_text, decode_coding_charset)
7271 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7272 Honor inhibit-eol-conversion. (Bug #2186)
7274 2009-02-28 Jason Rumney <jasonr@gnu.org>
7276 * coding.c (detect_coding_charset): If not checking latin extra,
7277 fail on characters between 0x80 and 0xA0. (Bug#2354)
7279 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7281 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
7282 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
7284 2009-02-27 Glenn Morris <rgm@gnu.org>
7286 * callint.c (Finteractive): Doc fix.
7288 2009-02-27 Kenichi Handa <handa@m17n.org>
7290 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7292 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
7294 * font.c (font_style_to_value): Set value for unknown symbols to
7296 (weight_table, slant_table, width_table): Treat "unspecified" as
7299 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
7301 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7303 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
7305 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7306 error as soon as a recursive load is detected.
7308 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7310 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7313 2009-02-24 Kenichi Handa <handa@m17n.org>
7315 * fontset.c (fontset_find_font): Fix the condition for checking
7318 2009-02-24 Glenn Morris <rgm@gnu.org>
7320 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7321 whitespace that confuses documentation.
7323 2009-02-23 Miles Bader <miles@gnu.org>
7325 * process.c (Flist_system_processes, Fprocess_attributes)
7326 (syms_of_process): Rename `system-process-attributes' to
7327 `process-attributes'.
7329 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7331 * coding.h (struct coding_system): Make safe_charsets a pointer to
7333 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7335 (SAFE_CHARSET_P): Likewise.
7336 (setup_iso_safe_charsets): Properly setup safe_charsets.
7337 (Fdefine_coding_system_internal): Likewise.
7338 (setup_coding_system): Likewise. Remove unneeded casts.
7339 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7340 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7343 * insdel.c (del_range_2): Don't modify gap contents when called
7344 from decode_coding_object. (Bug#1809)
7346 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
7348 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7350 (Ftype_of): Recognize font objects.
7352 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7354 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7357 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7359 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7360 async_iconified. Based on a patch by Christian Lynbech
7361 <christian.lynbech@tieto.com>.
7362 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7364 2009-02-20 Glenn Morris <rgm@gnu.org>
7366 * syntax.c (Fskip_chars_forward): Fix doc typo.
7368 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
7370 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7372 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
7374 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7376 2009-02-19 Kenichi Handa <handa@m17n.org>
7378 * coding.c (detect_coding): Preserve coding->mode.
7379 Don't overflow coding->carryover. (Bug#2370)
7381 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7383 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7385 2009-02-18 Kenichi Handa <handa@m17n.org>
7387 * font.c (font_check_otf_features): Fix handling of `nil' element.
7388 (Ffont_spec): Describe :lang and :otf in the docstring.
7390 2009-02-16 Andreas Schwab <schwab@suse.de>
7392 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7395 2009-02-16 Kenichi Handa <handa@m17n.org>
7397 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
7400 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
7402 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
7404 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7405 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7407 2009-02-14 Eli Zaretskii <eliz@gnu.org>
7409 * msdos.c (MAX_SCREEN_BUF): New macro.
7410 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7411 Encode the entire run of glyphs sharing the same face, instead of
7412 doing that one glyph at a time (fixes a bug with displaying
7413 double-size characters).
7415 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7417 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7419 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7420 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
7421 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
7423 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
7424 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
7426 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7428 * keyboard.c (adjust_point_for_property): Allow stopping between two
7431 2009-02-12 Jason Rumney <jasonr@gnu.org>
7433 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7434 (add_font_entity_to_list): Call check_face_name even when family
7437 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7438 Release DC when finished. Use NULL window to refer to desktop.
7439 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
7441 * w32font.c (add_font_entity_to_list): Fix check for substituted
7442 raster fonts. (Bug#2219)
7444 2009-02-12 Kenichi Handa <handa@m17n.org>
7446 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7447 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7448 (autocmp_chars): Use fast_looking_at. Don't compose more
7449 characters than MAX_COMPOSITION_COMPONENTS.
7450 (find_automatic_composition): While looking forward and backward,
7451 check static composition. Fix where to stop looking forward.
7452 (composition_adjust_point): Fix checking of static composition.
7453 (Fcomposition_get_gstring): Pay attention to
7454 MAX_COMPOSITION_COMPONENTS.
7456 * lisp.h (fast_looking_at): Extern it.
7458 * search.c (fast_looking_at): New function.
7460 * term.c (encode_terminal_code): Adjust for the change of
7461 <struct glyph>.u.cmp.to.
7462 (append_composite_glyph): Likewise.
7464 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
7465 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7467 (append_composite_glyph): Adjust for the change of
7468 <strcut glyph>.u.cmp.to.
7470 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
7472 * casetab.c (init_casetab_once):
7473 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7474 * font.c (font_update_lface):
7475 * fontset.c (Fnew_fontset):
7476 * ftfont.c (ftfont_drive_otf):
7477 * xfont.c (xfont_open):
7478 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7480 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7482 * fileio.c (Fwrite_region): !NILP -> CONSP.
7484 2009-02-10 Andreas Schwab <schwab@suse.de>
7486 * process.c (send_process): Properly relocate pointer into data
7487 when using encoded data. (Bug#2272)
7489 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7491 * coding.c (detect_coding_charset): Fix previous change.
7493 2009-02-08 Jason Rumney <jasonr@gnu.org>
7495 * w32fns.c (w32_hide_hourglass): Handle case where frame
7496 disappeared while hourglass was displayed. (Bug #2193)
7498 2009-02-07 Andreas Schwab <schwab@suse.de>
7500 * unexelf.c (unexec): Fix error message.
7502 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7504 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
7505 when modal window is active. (Bug #2152)
7506 (applicationShouldTerminate:): Remove now-unneeded while loop
7507 around NSRunAlertPanel.
7509 * nsmenu.m (popupSession): New file-global variable.
7510 (pop_down_menu): End the popupSession before closing dialog.
7511 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7512 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7513 don't query NSApp for events (just sleep instead).
7515 2009-02-07 Eli Zaretskii <eliz@gnu.org>
7517 * coding.c (syms_of_coding) <translation-table-for-input>:
7518 Modify doc string to discourage use for character code unification.
7520 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7522 * atimer.c (run_timers): Update pending_atimers.
7524 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
7526 * image.c (svg_load_image): Fix last change.
7528 * xfns.c (Fx_create_frame): Signal an error if no font is
7531 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
7533 * character.c (syms_of_character) <script-representative-chars>:
7534 Fix typo in docstring.
7536 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7538 * nsmenu.m (pop_down_menu): New function.
7539 (ns_popup_dialog): Call it on unwind.
7540 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7541 call timer_check() (Bug#2154).
7542 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7543 handling_signal is set.
7544 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7546 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
7548 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7550 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7552 * keyboard.c (poll_for_input_1, handle_async_input):
7553 Set handling_signal under HAVE_NS.
7555 2009-02-04 Glenn Morris <rgm@gnu.org>
7557 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7559 2009-02-04 Kenichi Handa <handa@m17n.org>
7561 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7563 * charset.c (Fchar_charset): New optional arg restriction.
7565 * coding.h (coding_system_charset_list): Extern it.
7567 * coding.c (coding_system_charset_list): New function.
7569 * composite.c: Include coding.h and termhooks.h.
7570 (composition_gstring_p): Fix for the terminal case.
7571 (composition_gstring_width): Likewise.
7572 (fill_gstring_body): Likewise.
7573 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7575 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7576 is within a composition.
7577 (Fcomposition_get_gstring): Fix the terminal case.
7579 * term.c (encode_terminal_code): Fix handling of composition.
7580 (produce_composite_glyph): For static composition, get pixel_width
7581 from struct composition.
7583 2009-02-02 Andreas Schwab <schwab@suse.de>
7585 * unexelf.c (unexec): Handle unaligned bss offset.
7587 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7589 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7590 XT,w32read_socket changes to ns_read_socket.
7592 * keyboard.c (handle_interrupt): Don't call
7593 quit_throw_to_read_char() under NS.
7595 * blockinput.h: Remove NS-specific code.
7597 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7599 * dispnew.c (window_change_signal): Don't try to get the size of a
7600 suspended tty frame.
7601 * term.c (Fresume_tty): Resize if the size has changed while the
7604 * alloc.c (mark_stack): Properly conditionalize previous change.
7606 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
7608 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7609 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7610 Remove; this code is not used on Windows.
7612 2009-01-30 Eli Zaretskii <eliz@gnu.org>
7614 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7615 EOLs that also has stray ^M characters.
7617 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
7619 * atimer.c (run_timers, alarm_signal_handler):
7620 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7621 * w32inevt.c (w32_console_read_socket):
7622 * w32term.c (w32_read_socket):
7623 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7625 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
7627 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7628 Initialize it as a relative filename pattern.
7629 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7630 (Fcall_process_region): Simplify temp file creation using
7631 temporary-file-directory.
7633 2009-01-29 Eli Zaretskii <eliz@gnu.org>
7635 * msdos.c: Rename pending_signals to msdos_pending_signals.
7636 (sig_suspender, sigprocmask): Adjust.
7638 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
7640 * keyboard.c (pending_signals): New var.
7641 (poll_for_input, input_available_signal, init_keyboard): Set it.
7642 (process_pending_signals): New function.
7644 * lisp.h (QUIT): Check pending_signals instead of
7645 interrupt_input_pending. Use process_pending_signals.
7647 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
7649 * process.c (wait_reading_process_output): Use process_pending_signals.
7651 * sysdep.c (emacs_write): Use process_pending_signals.
7653 * xterm.c (XTread_socket): Update pending_signals.
7655 * w32term.c (w32_read_socket): Update pending_signals.
7657 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7659 2009-01-29 Kenichi Handa <handa@m17n.org>
7661 * xftfont.c (xftfont_has_char): New function.
7662 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7664 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7666 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7668 (ns_query_color): New declaration.
7670 * nsterm.m (ns_confirm_quit): New variable.
7671 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7672 (EmacsApp-applicationShouldTerminate:): Use it.
7673 (EmacsPrefsController): Let user set it.
7674 (ns_query_color): New function.
7675 (ns_defined_color): Use it.
7676 (ns_initialize): Drop.
7677 (ns_term_init): Add two lines from ns_initialize(), and set
7678 input_interrupt_mode to nil.
7680 * image.c (svg_load_image): Don't right-shift background RGB when
7681 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
7683 2009-01-28 Kenichi Handa <handa@m17n.org>
7685 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7686 (fontset_get_font_group): Remember that no font-group is specified
7689 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
7691 * fns.c (concat): Check for string overflow (bug#1787).
7693 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7694 Quadruple undo limits (bug#1501).
7696 2009-01-27 Kenichi Handa <handa@m17n.org>
7698 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7699 directly use GT_Get_Char_index.
7701 * xftfont.c (struct xftfont_info): New member `index'.
7703 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7704 (Ffontset_font): Adjust for the change of fontset entry.
7706 2009-01-26 Kenichi Handa <handa@m17n.org>
7708 * fontset.c (fontset_find_font): Fix handling of non-cons return
7709 value of fontset_get_font_group.
7710 (fontset_font): Revert last change.
7712 2009-01-26 Jason Rumney <jasonr@gnu.org>
7714 * w32font.c (w32font_list_internal): Return quickly if registry is
7715 unknown. Simplify final return.
7716 (add_font_entity_to_list): Break complex logic down into more
7717 manageable chunks. Move unknown registry check to
7718 w32font_list_internal.
7720 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7722 Changes to remove Feval calls from GUI under NS.
7724 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7725 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
7726 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7728 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7729 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7730 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7731 instead of NON_ASCII_KEYSTROKE_EVENT.
7732 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7733 (EmacsApp-applicationShouldTerminate:): Query user.
7734 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7737 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7739 * keyboard.c (kbd_buffer_get_event): Check for it.
7740 (keys_of_keyboard): Define lispy keys for
7741 ns-put/unput-working-text.
7743 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7745 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7747 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
7749 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
7750 setting current_buffer directly. (Bug#2044)
7752 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
7754 * fontset.c (fontset_font): If we know there is no font, don't do
7755 any work. (Bug#1952, bug#1990).
7757 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
7759 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7761 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
7762 (ns_no_defaults): New declaration.
7765 * nsterm.h (ns_no_defaults): New declaration.
7767 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
7769 * nsterm.m (ns_no_defaults): New variable.
7770 (ns_initialize): Don't read defaults when ns_no_defaults.
7771 (EmacsView-readSelectionFromPasteboard:)
7772 (writeSelectionToPasteboard:types:): New stubbed-out methods for
7773 NSServicesRequests protocol. (Bug#1435)
7774 (ns_dumpglyphs_stretch): New function.
7775 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
7776 of 2008-11-15 to other terms. (Bug#615)
7778 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7780 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7782 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7785 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7792 * nsterm.m: Remove '23' comments that indicated code added during
7793 update from emacs-20 -> emacs-23.
7795 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7797 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
7798 ns_alternate_modifier. (Bug#1217)
7800 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7801 Display all shortcuts, including those w/o super modifier.
7803 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7805 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
7807 * fileio.c (Vwrite_region_post_annotation_function)
7808 (Vwrite_region_annotation_buffers): New vars.
7809 (build_annotations_unwind): Just reset
7810 Vwrite_region_annotation_buffers.
7811 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7812 Call write-region-post-annotation-function.
7813 (build_annotations): Add to Vwrite_region_annotation_buffers if
7816 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7818 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7820 * nsfns.m (ns_do_applescript):
7821 Conditionalize typeUTF16ExternalRepresentation on Tiger.
7823 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7825 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7827 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7829 * nsmenu.m (NSMENUPROFILE): Change #if style.
7831 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7833 * nsterm.m (x_set_frame_alpha): Add prototype.
7834 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7835 handle Ctrl-tab. (Bug#1841)
7836 (ns_get_color): Use unsigned long long for scanned hex string value.
7837 (ns_term_shutdown): Abort on non SIGTERM signals.
7838 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
7839 (EmacsPrefsController-setPanelFromDefaultValues): New function.
7840 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
7841 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
7842 (ns_defined_color): Fix settings of the XColor variable fields:
7843 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
7845 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
7847 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7848 values in onTiger section.
7850 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
7852 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7853 Check return value of font_spec_from_name.
7854 (Fx_list_fonts): Doc fix. (Bug#1951)
7856 * font.c (font_spec_from_name): Return Qnil if font name could not
7858 (font_parse_name): Treat a `?' character as part of an XLFD.
7860 * fns.c (Fsubstring): Doc fix.
7862 2009-01-19 Kenichi Handa <handa@m17n.org>
7864 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
7865 (ftfont_list): Likewise.
7867 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
7869 * dbusbind.c (Fdbus_register_signal):
7870 * process.c (conv_sockaddr_to_lisp):
7871 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7873 * callproc.c (Fgetenv_internal): Doc fix.
7875 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
7877 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7878 it is not even used.
7880 2009-01-16 Glenn Morris <rgm@gnu.org>
7882 * font.c (Ffont_variation_glyphs): Silence compiler.
7884 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
7886 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7887 Reported by David Robinow <drobinow@gmail.com>.
7889 2009-01-15 Kenichi Handa <handa@m17n.org>
7891 * coding.c (detect_coding_system): Fix handling of null_byte_found.
7893 2009-01-14 Jason Rumney <jasonr@gnu.org>
7895 * frame.c (x_set_font): Always store a font to the font parameter,
7896 never a fontset. (Bug#1562)
7898 2009-01-14 Kenichi Handa <handa@m17n.org>
7900 * coding.c (TWO_MORE_BYTES): New macro.
7901 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
7903 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
7905 * font.c (font_clear_prop): If clearing the family, clear the font
7908 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
7910 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
7912 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7913 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7914 functions, use sizeof.
7916 2009-01-12 Martin Rudalics <rudalics@gmx.at>
7918 * keyboard.c (read_char): Fix case where last_nonmenu_event
7919 returned a bad value with submenus. (Bug#447)
7921 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
7923 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7924 family, clear the font width index too.
7926 2009-01-11 Jason Rumney <jasonr@gnu.org>
7928 * keyboard.c (cmd_error_internal): Exit when errors occur before
7929 frame creation and not in daemon mode. (Bug#1836)
7931 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
7933 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7934 of a display vector, backtrack.
7935 (try_window_reusing_current_matrix): Check glyph type before
7936 referencing charpos member.
7938 2009-01-10 Eli Zaretskii <eliz@gnu.org>
7942 * coding.c (inhibit_null_byte_detection): New variable.
7943 (detect_coding, detect_coding_system): Don't pay attention to null
7944 bytes if inhibit_null_byte_detection is non-zero.
7945 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
7946 <inhibit-iso-escape-detection>: Doc fix.
7948 2009-01-09 Jason Rumney <jasonr@gnu.org>
7950 * w32font.c (add_font_entity_to_list): Don't report unknown
7951 Windows charset as any unrecognized registry. (Bug#1548)
7952 Only report Unicode Plane 2 fonts as unicode-sip.
7954 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
7956 * xfaces.c (Fx_font_family_list): Delete function.
7957 Move compatibility version to faces.el.
7959 * font.c (Ffont_family_list): Return a list of strings, not symbols.
7961 2009-01-09 Martin Rudalics <rudalics@gmx.at>
7963 * frame.c (x_set_frame_parameters): Remember requested value for
7964 fullscreen before it's reset by the parameter handler.
7966 2009-01-09 Glenn Morris <rgm@gnu.org>
7968 * keyboard.c (last_command_char): For clarity, rename to...
7969 (last_command_event): ... and update all users.
7970 (last_input_char): For clarity, rename to...
7971 (last_input_event): ... and update all users.
7972 (last-command-char, last-input-char): Move to subr.el as aliases.
7973 * cmds.c, commands.h: Update for last_command_char rename.
7975 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
7977 * font.c (font_open_for_lface): Handle unspecified height attribute.
7979 2009-01-08 Jason Rumney <jasonr@gnu.org>
7981 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7982 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7983 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7985 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
7986 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7988 2009-01-07 Kenichi Handa <handa@m17n.org>
7990 * fileio.c (Finsert_file_contents): In the case of replace,
7991 remember the coding system used for decoding in
7992 coding_system (Bug#1039).
7994 * coding.c (decode_coding_utf_8): Check byte_after_cr before
7995 breaking the loop. (Bug#870)
7996 (decode_coding_utf_16, decode_coding_emacs_mule)
7997 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7998 (decode_coding_charset): Likewise.
8000 2009-01-05 Martin Rudalics <rudalics@gmx.at>
8002 * frame.c (x_set_frame_parameters): Make sure height (width) get
8003 applied when fullwidth (fullheight) is set. (Bug#1522)
8005 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
8007 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8008 (utc_base): Declare as ULONGLONG, not long double.
8009 (convert_time_raw): Delete.
8010 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8011 (initialize_utc_base): New function.
8012 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8013 (convert_from_time_t): Use initialize_utc_base; compute result with
8015 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8017 2009-01-03 Eli Zaretskii <eliz@gnu.org>
8019 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
8020 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8021 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8022 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8023 [!subprocesses]: Define.
8024 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8025 (Flist_system_processes, Fsystem_process_attributes)
8026 [!subprocesses]: Call list_system_processes and
8027 system_process_attributes instead of returning Qnil.
8029 * dosfns.c (system_process_attributes, list_system_processes):
8032 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8034 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8035 Don't use the default (no-op) implementation.
8037 2009-01-03 Jason Rumney <jasonr@gnu.org>
8039 * keyboard.c (parse_modifiers_uncached): Wheel events are
8042 * w32term.c (x_query_colors, x_query_color): New functions.
8044 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8045 (svg_load_image): Cast returned pointers from dynamically loaded
8046 functions. Eliminate W32 specific code.
8048 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8050 * nsfns.m (x_set_foreground_color, x_set_background_color)
8051 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8052 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8053 x_ prefix instead of ns_. Update references.
8054 (syms_of_nsfns): Add a FIXME comment.
8056 * nsterm.m (x_set_cursor_type): New prototype.
8057 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8059 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8060 for Solaris instead of incorrectly providing Qutime and Qcutime.
8062 2009-01-02 Eli Zaretskii <eliz@gnu.org>
8064 * w32.c (process_times): Compute sum of utime and stime.
8065 (system_process_attributes): Add Qtime to the alist.
8067 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8068 and add them to the alist.
8070 * process.c (top level) <Qtime, Qctime>: New variables.
8071 (syms_of_process): staticpro them.
8072 (Fsystem_process_attributes): Add their documentation to the doc
8075 * process.h: Declare Qtime and Qctime.
8077 2009-01-02 Jason Rumney <jasonr@gnu.org>
8079 * image.c (Qgobject): New symbol.
8080 (syms_of_image): Initialize it.
8081 (init_svg_functions): Load some functions from gobject library.
8083 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8085 * frame.c (make_terminal_frame): Remove redundant code and useless
8088 2009-01-01 Andreas Schwab <schwab@suse.de>
8090 * process.c (conv_sockaddr_to_lisp): Add workaround for
8091 getsockname bug on BSD.
8093 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
8095 * xfns.c (x_create_tip_frame): Set border width of the X window.
8097 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
8099 2009-01-01 Jason Rumney <jasonr@gnu.org>
8101 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
8102 Don't block input, as per earlier xterm.c changes.
8104 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8106 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8107 (ns_appkit_version_int): New function.
8108 (x-server-version): Use ns_appkit_version_int and follow 21+
8109 convention of returning 3 integers.
8111 2008-12-30 Kenichi Handa <handa@m17n.org>
8113 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8114 (CHAR_SURROGATE_PAIR_P): New macro.
8116 * font.h (struct font_driver): New member get_variation_glyphs.
8118 * font.c (font_range): Don't require a font for a variation selector.
8119 (Ffont_variation_glyphs): New function.
8120 (syms_of_font): Defsubr it.
8122 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8123 ftfont_variation_glyphs.
8124 (setup_otf_gstring): New function.
8125 (ftfont_drive_otf): Use it.
8126 (ftfont_shape_by_flt): Handle variation selector.
8127 (ftfont_variation_glyphs): New function.
8129 2008-12-30 Martin Rudalics <rudalics@gmx.at>
8131 * frame.c (Vemacs_iconified): Remove.
8133 2008-12-30 Jason Rumney <jasonr@gnu.org>
8135 * frame.c (store_frame_param, x_get_arg): Enable newer code on
8136 WINDOWSNT too, as related changes have already been synced. (Bug#117)
8138 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
8140 * indent.c (Fvertical_motion): Don't advance iterator if we have
8141 reseated to the desired position.
8143 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8144 checking for pos match.
8146 2008-12-30 Kenichi Handa <handa@m17n.org>
8148 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8149 just get the low 8-bit of the code.
8151 * font.c (font_intern_prop): Validate str as multibyte.
8153 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8155 * dispextern.h (struct face): Move lface and hash from the middle
8158 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8160 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8162 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8163 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8164 instead of intervals.h.
8166 2008-12-26 Andreas Schwab <schwab@suse.de>
8168 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8171 2008-12-26 Martin Rudalics <rudalics@gmx.at>
8173 * textprop.c (Qminibuffer_prompt): New variable.
8174 (syms_of_textprop): Initialize it.
8175 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8176 in minibuffer-prompt face. (Bug#1662)
8178 2008-12-25 Jason Rumney <jasonr@gnu.org>
8180 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8182 2008-12-24 Jason Rumney <jasonr@gnu.org>
8184 * ralloc.c (r_alloc_reset_variable): New function.
8186 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
8187 record of what points where. (Bug#716)
8189 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8191 * minibuf.c (read_minibuf): Follow the non-interactive case when
8192 running as a daemon, before detaching.
8194 2008-12-22 Andreas Schwab <schwab@suse.de>
8196 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8197 * gtkutil.c (free_widget_value): Use xfree instead of free.
8199 2008-12-22 Martin Rudalics <rudalics@gmx.at>
8201 * frame.c (delete_frame): New function derived from
8202 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8203 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8204 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8205 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8206 * frame.h: Extern delete_frame.
8207 * window.c (window_loop):
8208 * terminal.c (delete_terminal):
8209 * xterm.c (x_connection_closed):
8210 * xfns.c (Fx_hide_tip):
8211 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
8213 2008-12-21 Jason Rumney <jasonr@gnu.org>
8215 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8216 when character maps to .notdef character.
8218 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8220 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8222 2008-12-20 Jason Rumney <jasonr@gnu.org>
8224 * frame.c (Fmake_terminal_frame): Raise an error when called from
8225 a graphical frame on Windows. (Bug#1325)
8227 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8229 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8231 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
8233 * minibuf.c (Fread_buffer): Doc fix.
8235 2008-12-20 Jason Rumney <jasonr@gnu.org>
8237 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
8238 server name in UNC paths. (Bug#719)
8240 * coding.c (decode_coding): Clear chars_at_source flag when using
8243 2008-12-19 Daniel Engeler <engeler@gmail.com>
8245 * sysdep.c (serial_configure): Fix typo.
8247 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8249 * sysdep.c: Include alloca.h.
8250 (system_process_attributes): Add implementation for Solaris.
8252 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
8254 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8256 Reorganize implementation of Flist_system_processes and
8257 Fsystem_process_attributes. No functional changes.
8258 * process.c: Don't #include pwd.h, grp.h and limits.h.
8259 (Flist_system_processes): Just call list_system_processes.
8260 (Fsystem_process_attributes): Just call system_process_attributes.
8261 (procfs_list_system_processes, time_from_jiffies)
8262 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8263 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8265 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8266 (list_system_processes): Rename from
8267 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8268 Provide a do nothing implementation.
8269 (system_process_attributes): Rename from
8270 procfs_list_system_processes.
8271 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8272 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
8274 * w32.c (list_system_processes): Rename from
8275 w32_list_system_processes.
8276 (system_process_attributes): Rename from
8277 w32_system_process_attributes.
8279 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8281 * process.h (w32_list_system_processes)
8282 (w32_system_process_attributes): Remove.
8283 (list_system_processes, system_process_attributes):
8286 2008-12-19 Kenichi Handa <handa@m17n.org>
8288 * xfont.c (xfont_decode_coding_xlfd): New function.
8289 (xfont_encode_coding_xlfd): New function.
8290 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8291 (xfont_list): Decode and encode XLFD by iso-8859-1.
8292 (xfont_match): Likewise.
8293 (xfont_list_family): Likewise.
8294 (xfont_open): Likewise.
8296 * ftfont.c (ftfont_open): Generate a multibyte string if given
8299 * xftfont.c (xftfont_open): Generate a multibyte string if given
8302 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8304 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8306 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8307 clicked on a detached tool bar button.
8309 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8311 * emacs.c (main): Print and error and exit when no data is read
8314 2008-12-17 Jason Rumney <jasonr@gnu.org>
8316 * w32font.c (w32font_has_char): Always return -1.
8318 2008-12-16 Kenichi Handa <handa@m17n.org>
8320 * font.c (font_open_entity): Fix previous change.
8322 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8324 * process.c: Include <limits.h>.
8326 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
8328 * font.c (font_update_drivers): Fix mistake in reconstructing the
8331 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
8333 * font.c (font_clear_cache): Fix format of font cache data.
8335 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
8337 * xftfont.c (xftfont_open): Free Xft font pattern if
8338 XftFontOpenPattern fails.
8340 * xterm.c (x_free_frame_resources): Remove extraneous call to
8343 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8345 * xterm.c (x_delete_display): Move xim_close_dpy call to
8347 (x_delete_terminal): Call xim_close_dpy.
8349 2008-12-13 Jason Rumney <jasonr@gnu.org>
8351 * w32font.c (intern_font_name): New function.
8352 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8353 (w32font_open_internal, Fx_select_font): Decode font name.
8354 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8356 * w32font.h (intern_font_name): Declare new function.
8358 * w32uniscribe.c (add_opentype_font_name_to_list):
8359 Use intern_font_name.
8361 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8363 * frame.c (Fdelete_frame): Call free_font_driver_list.
8365 * font.c (free_font_driver_list): Implement missing function.
8367 * w32term.c (w32_term_init): Don't initialize the image cache
8368 here; it will be done in init_frame_faces.
8370 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8371 (struct x_display_info): Remove unused member null_pixel. New
8372 member xim_callback_data.
8374 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8375 (xim_initialize): Save pointer to callback function data.
8376 (xim_close_dpy): Free callback function data. Call XCloseIM,
8377 reverting 2008-11-04 change by David Smith.
8378 (x_term_init): Don't initialize the image cache here; it will be
8379 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8380 (x_delete_display): Free x_dnd_atoms member.
8382 2008-12-13 Kenichi Handa <handa@m17n.org>
8384 * font.c (font_rescale_ratio): Moved from xfaces.c.
8385 Argument type changed. Handle a font-spec too.
8386 (font_score): Check Vface_font_rescale_alist.
8387 (font_open_entity): Likewise. (Bug#1547)
8389 * xfaces.c (font_rescale_ratio): Moved to font.c.
8391 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8393 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8395 2008-12-12 Jason Rumney <jasonr@gnu.org>
8397 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8398 Vwindow_system_version to the real w32 major version.
8400 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8402 * term.c (init_tty): Move setting the terminal name before the
8403 potential user: maybe_fatal.
8405 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
8407 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8408 all callers changed. Call free_frame_faces to free the face cache.
8410 2008-12-11 Jason Rumney <jasonr@gnu.org>
8412 * w32font.c (fill_in_logfont): Don't assume symbol script means
8413 SYMBOL_CHARSET. (Bug#547)
8415 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
8416 size for surrogates. (Bug#1096, bug#872)
8418 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8420 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8422 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8424 * process.c (Fsystem_process_attributes, syms_of_process):
8425 Fix typo in name of Ssystem_process_attributes.
8426 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8428 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8430 * syntax.c (Fmodify_syntax_entry): Doc fix.
8432 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8434 * font.c (Ffont_spec): Move usage to end of docstring.
8436 2008-12-10 Jason Rumney <jasonr@gnu.org>
8438 * w32font.c (Qcham): New symbol.
8439 (font_supported_scripts): Add cham, and comments for other new
8440 scripts in bitfield from OpenType spec.
8441 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8442 contain characters beyond the bmp.
8444 2008-12-10 Kenichi Handa <handa@m17n.org>
8446 * ftfont.c (fc_charset_table): Add "unicode-sip".
8447 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
8450 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8452 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8453 (Fcoding_system_put): Use QCdefault_char.
8454 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8456 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
8458 * xftfont.c (syms_of_xftfont): Fix typo.
8460 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
8462 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8464 * emacs.c (main): Close daemon_pipe on exec.
8466 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
8468 * termchar.h (struct tty): New members termcap_term_buffer and
8469 termcap_strings_buffer.
8471 * term.c (encode_terminal_code): Free any previous memory blocks
8472 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
8473 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8474 All callers changed.
8475 (init_tty): Store termcap data and string buffers in new struct
8476 tty members termcap_term_buffer and termcap_strings_buffer.
8477 (delete_tty): Free them.
8478 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
8480 2008-12-07 Seiji Zenitani <zenitani@mac.com>
8482 * nsfns.m (ns_set_background_color): Remove code duplication.
8483 It was a substitute for face-transparency on OS X 10.3.
8485 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
8487 * coding.c (make_conversion_work_buffer): Disable buffer
8488 modification hooks in the work buffer.
8490 2008-12-05 Eli Zaretskii <eliz@gnu.org>
8492 * process.c (procfs_system_process_attributes): If `nread' has a
8493 negative value, assign zero to it.
8495 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
8497 * eval.c (Vdebug_on_error): Doc fix.
8499 2008-12-05 Kenichi Handa <handa@m17n.org>
8501 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8502 second character is a combining character.
8504 2008-12-05 Eli Zaretskii <eliz@gnu.org>
8506 * process.c (procfs_system_process_attributes): Don't use cmd,
8507 cmdsize, and q without initializing them first.
8509 2008-12-04 Jason Rumney <jasonr@gnu.org>
8511 * w32font.c (w32font_draw): Initialize orig_clip before getting
8512 it, and delete it when finished.
8514 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8516 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8517 case when running as a daemon before detaching.
8519 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
8521 * w32.c (init_environment): Don't unload library shell32.dll.
8523 2008-12-03 Kenichi Handa <handa@m17n.org>
8525 * font.c (font_at): Set `multibyte' at first.
8527 * coding.c (decode_coding_charset): Check type of an element of
8529 (encode_coding_emacs_mule): Be sure to set `code'.
8531 * fontset.c (face_for_char): Handle invalid charset property correctly.
8532 (font_for_char): Likewise.
8534 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
8536 * font.c (Fopen_font): Compute pixel size correctly.
8537 (font_update_lface): Handle fonts with corrupted size specs,
8538 i.e. non-int and non-float.
8540 * ftfont.c (ftfont_match): Initialize entity variable.
8541 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8542 (ftfont_list_family): Initialize list var earlier.
8544 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8546 * xterm.c (x_draw_glyph_string): Fall back on
8547 underline_minimum_offset for underline position.
8549 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8551 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8553 * character.c (c_string_width): Specify the type for LEN.
8555 2008-12-03 Kenichi Handa <handa@m17n.org>
8557 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
8558 (decode_coding_utf_8): Likewise.
8559 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
8560 (produce_chars): Initialize consumed_chars to 0.
8562 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
8564 * keyboard.c (make_lispy_position): Only use PT if the selected
8567 2008-12-02 Andreas Schwab <schwab@suse.de>
8569 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8571 * doprnt.c (doprnt1): Fix size of charbuf.
8573 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
8575 * keyboard.c (timer_check): Revert last change.
8577 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
8579 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8581 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
8583 * makefile.w32-in: Update dependencies.
8584 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8586 2008-12-01 Andreas Schwab <schwab@suse.de>
8588 * font.c (register_font_driver): Use xmalloc.
8589 (font_put_frame_data): Likewise.
8591 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
8593 * xfaces.c (realize_x_face): Make abort condition clearer.
8595 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8597 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
8599 * keyboard.c (timer_check): After a timer runs, ensure that the
8600 selected window's buffer is current.
8602 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
8604 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8605 It was accidentally restored by the Unicode merge.
8607 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8609 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
8611 * w32proc.c: Include "coding.h".
8612 (Fw32_short_file_name): Encode filename passed to Windows API.
8613 (Fw32_long_file_name): Encode filename passed to Windows API and
8614 decode back the result. (Bug#1433)
8616 2008-11-29 Kenichi Handa <handa@m17n.org>
8618 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8619 not before accessing it.
8621 * charset.c (Fdefine_charset_internal): After calculating
8622 min_char, max_char, and fastmap, copy the charset structure again.
8623 (encode_char): Fix the previous change.
8625 2008-11-28 Seiji Zenitani <zenitani@mac.com>
8627 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8629 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8631 * nsterm.m (x_set_frame_alpha): New function.
8633 2008-11-27 Eli Zaretskii <eliz@gnu.org>
8635 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8637 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
8639 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8640 pointer to check_face_name.
8642 2008-11-27 Kenichi Handa <handa@m17n.org>
8644 * category.h (SET_CATEGORY_SET): Call set_category_set.
8645 (set_category_set): Extern it.
8647 * category.c (hash_get_category_set): New function.
8648 (Fmodify_category_entry): Adjusted for the change of
8649 char_table_ref_and_range. Call hash_get_category_set to get a
8650 category set to store in the table.
8652 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8655 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
8656 (DECODE_CHAR): Check if the decoder vector is ready.
8657 (ENCODE_CHAR): Check if the encoder char-table is ready.
8658 (maybe_unify_char): Extern it.
8660 * charset.c (Vchar_unified_charset_table): Delete it.
8661 (inhibit_load_charset_map): New variable.
8662 (temp_charset_work): New variable.
8663 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8664 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8666 (load_charset_map): Meaning of control_flag changed. If
8667 inhibit_load_charset_map is nonzero, setup a table in
8669 (load_charset): New argument control_flag.
8670 (map_charset_for_dump): New function.
8671 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8672 map_charset_for_dump.
8673 (Fdefine_charset_internal): If the charset method is MAP, load
8674 mapping tables by calling load_charset.
8675 (Funify_charset): Don't load a mapping table but directly set
8677 (maybe_unify_char): New function.
8678 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8679 Handle the case of inhibit_load_charset_map being nonzero.
8680 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8681 Handle the case of inhibit_load_charset_map being nonzero.
8682 (Fclear_charset_maps): Just free temp_charset_work.
8683 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8686 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8687 change of char_table_ref_and_range.
8688 (char_table_ref_and_range): Change the meaning of argument FROM
8689 and TO. Now the caller must provide initial values for *FROM
8692 * fontset.c (fontset_add): Adjusted for the change of
8693 char_table_ref_and_range.
8694 (fontset_get_font_group): Likewise.
8695 (Ffontset_info): Likewise.
8697 * keymap.c (describe_vector): Adjusted for the change of
8698 char_table_ref_and_range. For char-table, put boundary between
8699 non-ASCII and 8-bit characters.
8701 * print.c (print_object): For bool-vector, delete unnecessary
8702 check of ASCII_BYTE_P.
8704 2008-11-26 Jason Rumney <jasonr@gnu.org>
8706 * w32font.c (w32font_open_internal): Don't include external
8707 leading in font height. (Bug#879)
8709 2008-11-26 Glenn Morris <rgm@gnu.org>
8711 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8712 redefinition with ifdef. (Bug#1383)
8714 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8716 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8718 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8720 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8721 New EmacsView methods.
8722 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8723 Fixes bug #1048,1357,1414.
8725 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8728 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8729 is not an indexed color.
8730 * nsterm.m (free_indexed_color): Add argument checking.
8731 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8733 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
8735 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8736 Document confirm-after-completion value for
8737 minibuffer-completion-confirm.
8739 2008-11-24 Jason Rumney <jasonr@gnu.org>
8741 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8744 2008-11-23 Jason Rumney <jasonr@gnu.org>
8746 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8747 restored before returning.
8749 * w32font.c (check_face_name): New function.
8750 (add_font_entity_to_list): Use it to filter out common substituted
8753 2008-11-22 Martin Rudalics <rudalics@gmx.at>
8755 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8756 confirm-nonexistent-file-or-buffer in doc-string.
8758 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8760 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8761 Fix copy/paste typo. Add checks.
8763 2008-11-21 Kenichi Handa <handa@m17n.org>
8765 * coding.c (detect_coding_iso_2022): Reject invalid composition
8767 (DECODE_COMPOSITION_START): If the current source is the last
8768 block, and the current composition doesn't end, regard this
8769 sequence as invalid.
8770 (decode_coding_iso_2022): Handle invalid composition sequence.
8772 2008-11-20 Martin Rudalics <rudalics@gmx.at>
8774 * window.c (coordinates_in_window): Don't return
8775 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8776 line when the window is not the rightmost one. (Bug#1372)
8778 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8780 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8782 2008-11-15 Eli Zaretskii <eliz@gnu.org>
8784 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8785 and bright_bg if noninteractive is non-zero.
8787 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8789 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8790 x_draw_glyph_string_background.
8792 * w32term.c (x_draw_glyph_string): Likewise.
8794 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
8796 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8797 the next glyph string once past the overhang width.
8799 * nsterm.m (ns_draw_glyph_string): Likewise.
8801 * w32term.c (x_draw_glyph_string): Likewise.
8803 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8805 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8808 2008-11-14 Martin Rudalics <rudalics@gmx.at>
8810 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8811 dedicated status of window before attempting to display another
8814 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
8816 * msdos.c (Fmsdos_long_file_names):
8817 (syms_of_msdos) <dos-unsupported-char-glyph>:
8818 * dosfns.c (Fint86): Fix typos in docstrings.
8820 2008-11-14 Eli Zaretskii <eliz@gnu.org>
8822 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8824 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8826 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8828 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8830 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8832 * frame.h: Negative alpha means "don't touch".
8834 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8836 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8838 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8842 * acldef.h: Remove files used only for systems no longer supported.
8844 * Makefile.in: Fix .o alphabetical ordering.
8845 (hftctl.o): Remove dependency, file removed.
8846 (keymap.o, print.o): Depend on charset.h.
8848 2008-11-10 Kenichi Handa <handa@m17n.org>
8850 * character.c (Fget_byte): Fix and make it faster for unibyte target.
8852 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
8854 * dired.c (file_name_completion): If completion_ignore_case is
8855 enabled, ignore case when checking completion-regexp-list.
8857 2008-11-08 Eli Zaretskii <eliz@gnu.org>
8859 * vm-limit.c (get_lim_data): Fix last change.
8861 2008-11-08 Kenichi Handa <handa@m17n.org>
8863 * character.c (Fget_byte): New function.
8864 (syms_of_character): Defsubr Fget_byte.
8866 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
8868 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8869 cursor position is valid after scrolling.
8871 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
8873 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8875 2008-11-06 Glenn Morris <rgm@gnu.org>
8877 * xterm.c (handle_one_xevent): Don't let popup menus cause
8878 mouse-autoselect-window related window switching. (Bug#1261)
8880 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8882 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8884 2008-11-04 Andreas Schwab <schwab@suse.de>
8886 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8888 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
8890 * xfns.c (Fx_wm_set_size_hint): New function.
8892 2008-11-03 Martin Rudalics <rudalics@gmx.at>
8894 * textprop.c (Fprevious_single_char_property_change): Return 0
8895 when there's no change in a string. (Bug#1301)
8897 2008-11-02 Martin Rudalics <rudalics@gmx.at>
8899 * frame.c (do_switch_frame): New argument NORECORD passed to
8901 (Fselect_frame): New argument NORECORD passed to
8903 (Fset_frame_selected_window): New argument NORECORD passed to
8905 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8906 in call of do_switch_frame.
8907 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8908 Handle NORECORD argument in call of Fselect_frame.
8909 * lisp.h (do_switch_frame, Fselect_frame)
8910 (Fset_frame_selected_window): Adjust declarations.
8911 * window.c (select_frame_norecord): New function.
8912 (run_window_configuration_change_hook): Use it and call
8913 Fselect_frame with NORECORD set.
8914 (Fselect_window): Pass NORECORD to Fselect_frame.
8915 (Fset_window_configuration): Handle NORECORD argument in call of
8917 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8918 Fset_frame_selected_window.
8919 * keyboard.c (command_loop_1): Handle NORECORD in call of
8920 Fselect_frame (currently ifdefd).
8922 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8924 * emacs.c (USAGE2): Untabify.
8926 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8928 * composite.c (fill_gstring_header): Fix copy/paste typo.
8930 2008-10-31 Martin Rudalics <rudalics@gmx.at>
8932 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8933 (Fother_window): Rename argument and rewrite doc-string.
8934 (select_window_norecord): Fix return value. (Bug#1276)
8936 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
8938 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8939 new frames overriding foreground for tooltips. Based on similar patch
8940 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8942 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
8944 * emacs.c (Fdaemon_initialized): Initialize nfd.
8946 2008-10-29 Martin Rudalics <rudalics@gmx.at>
8948 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8949 (Fwindow_text_height): Clarify doc-strings.
8950 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8951 doc-string of window-scroll-functions.
8953 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8955 * category.c (syms_of_category): Fix typo in docstring.
8957 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
8959 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8960 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8961 Fix typos in docstrings.
8963 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8965 * emacs.c (daemon_pipe): Make non-static.
8966 (IS_DAEMON): Move definition ...
8967 * lisp.h (IS_DAEMON): ... here.
8968 (daemon_pipe): Declare.
8969 (is_daemon): Remove.
8970 * dispnew.c (init_display): Use IS_DAEMON.
8972 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8974 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8975 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8977 * emacs.c (is_daemon): Remove.
8978 (main): Don't set is_daemon.
8979 (IS_DAEMON): New macro.
8980 (Fdaemonp, Fdaemon_initialized): Use it.
8981 (Fdaemon_initialized): Write a char into the pipe to make sure the
8983 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8985 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
8987 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8988 over-sized glyph, draw it with the default glyph width.
8990 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8991 glyph, draw it with the default glyph width.
8993 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8994 glyph, draw it with the default glyph width.
8996 * xdisp.c (try_scrolling): When computing the distance from the
8997 scroll margin to PT, try moving some distance past the window
8998 bottom before giving up.
9000 2008-10-27 Martin Rudalics <rudalics@gmx.at>
9002 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9003 (Fset_window_buffer): Explain in doc-string that a window can be
9004 "strongly" dedicated to its buffer.
9006 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9008 * emacs.c (daemon_name): New variable.
9009 (main): Deal with --daemon=SERVER_NAME.
9010 (Fdaemonp): Return a name if one was passed to --daemon.
9012 2008-10-26 Romain Francoise <romain@orebokech.com>
9014 * emacs.c (daemon_pipe): New variable.
9015 (main): Create a pipe before forking, make the parent exit only after
9016 the child has closed its end of the pipe. Move closing the
9018 (Fdaemon_initialized): ... here. New function.
9020 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9022 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9023 the previous unoptimized table.
9025 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9026 the distinction between non-nil and non-t value of `dedicated'.
9028 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
9030 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
9031 read_char_minibuf_menu_text is large enough to hold the menu string.
9033 2008-10-25 Martin Rudalics <rudalics@gmx.at>
9035 * window.c (Fget_buffer_window, Fdelete_windows_on)
9036 (Freplace_buffer_in_windows): Make buffer argument optional and
9037 rename to buffer_or_name.
9039 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
9041 * xdisp.c (handle_single_display_spec, handle_display_prop):
9042 Undo 2005-05-16 change.
9043 (handle_stop): Pop iterator if it's loaded with an empty string.
9044 (get_overlay_strings_1): Don't save iterator if it's loaded with
9045 an empty string (bug#1201).
9047 2008-10-24 Kenichi Handa <handa@m17n.org>
9049 * ftfont.c (ftfont_otf_features): Fix previous change.
9050 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9051 calling ftfont_otf_features.
9053 2008-10-24 Kenichi Handa <handa@m17n.org>
9055 * font.c (font_match_p): Fix for the case that a vector of
9056 characters is in script-representative-chars.
9058 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
9060 * dbusbind.c (xd_in_read_queued_messages): New variable.
9061 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
9062 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9063 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
9066 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9068 * s/sol2-10.h: New file.
9070 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9072 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9073 poor beast has survived 9+ years and the jump from xterm.c!).
9075 2008-10-23 Martin Rudalics <rudalics@gmx.at>
9077 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9079 (Fbury_buffer): In doc-string say what happens to the buffer's window.
9081 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9083 * character.c (syms_of_character) <script-representative-chars>:
9084 <unicode-category-table>: Doc fixes.
9086 2008-10-23 Noah Friedman <friedman@splode.com>
9088 * coding.c (make_conversion_work_buffer): Check that
9089 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9092 2008-10-23 Kenichi Handa <handa@m17n.org>
9094 * font.c (font_add_log): Check the values of extra properties.
9096 2008-10-22 Martin Rudalics <rudalics@gmx.at>
9098 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9100 (Fset_window_parameter): Use NILP.
9101 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
9102 (Frecenter): Use "selected" instead of "current" window in doc-strings.
9104 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9106 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9108 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9110 * nsfns.m (ns_appkit_version): New function.
9111 (x-server-version): Use it.
9112 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9113 (x-server-vendor): Don't check_ns().
9115 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9117 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9119 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9120 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9122 2008-10-22 Kenichi Handa <handa@m17n.org>
9124 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9127 * category.c (word_boundary_p): Check scripts instead of charset.
9128 Handle nil value in word-separating-categories and
9129 word-combining-categories.
9130 (syms_of_category): Fix docstrings of word-separating-categories
9131 and word-combining-categories.
9133 2008-10-21 Eli Zaretskii <eliz@gnu.org>
9135 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9136 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9138 2008-10-21 Martin Rudalics <rudalics@gmx.at>
9140 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9141 Rename arg "buffer" to "buffer_or_name".
9142 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9144 (no_switch_window): Remove since the return value is not used.
9145 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
9146 Consider window as dedicated when Fwindow_dedicated_p returns a
9148 * lisp.h: Remove prototype for no_switch_window.
9150 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9152 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
9153 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
9155 2008-10-21 Kenichi Handa <handa@m17n.org>
9157 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9158 check Vlatin_extra_code_table.
9160 2008-10-20 Eli Zaretskii <eliz@gnu.org>
9162 * fileio.c (Fset_file_modes): Doc fix.
9164 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
9166 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9169 2008-10-19 Martin Rudalics <rudalics@gmx.at>
9171 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9172 Mention kill-buffer in doc-string.
9173 (Fset_window_buffer): Reinsert tem check removed in last commit.
9174 (Fenlarge_window, Fshrink_window): Have argument names and
9175 doc-string follow Elisp manual more closely.
9177 2008-10-18 Eli Zaretskii <eliz@gnu.org>
9179 * fileio.c (Fset_file_modes): Doc fix.
9181 2008-10-18 Martin Rudalics <rudalics@gmx.at>
9183 * window.c (Fwindow_width, Fset_window_start)
9184 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
9185 (Fdelete_windows_on, Freplace_buffer_in_windows):
9186 Make doc-strings follow code and Elisp manual more closely.
9187 (Fwindow_dedicated_p): Make window argument optional.
9188 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9189 (Fset_window_buffer): Respect any non-nil dedicated value for
9190 window. Rename "buffer" argument to "buffer_or_name".
9192 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
9194 * m/sh3.h: New file, machine description for SuperH.
9196 2008-10-17 Martin Rudalics <rudalics@gmx.at>
9198 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9200 2008-10-17 Kenichi Handa <handa@m17n.org>
9202 * ftfont.c (ftfont_otf_features): Fix indexing
9203 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9205 2008-10-16 Magnus Henoch <mange@freemail.hu>
9207 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9208 (Fdbus_call_method_asynchronously): Ditto.
9209 This change makes C-h f display the argument list.
9211 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
9213 * fileio.c (Fexpand_file_name): Doc fix.
9215 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9216 of :foreground and :background equivalent to unspecified (20.x
9219 2008-10-15 Eli Zaretskii <eliz@gnu.org>
9221 * buffer.c (syms_of_buffer): Doc fix.
9223 2008-10-14 Kenichi Handa <handa@m17n.org>
9225 * font.c (font_clear_prop): When clearing font width, clear the
9226 average width field too.
9228 2008-10-12 Andreas Schwab <schwab@suse.de>
9230 * ftfont.c (ftfont_shape_by_flt): Make static.
9231 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9233 * font.c: Don't include <m17n-flt.h>.
9235 2008-10-10 Eli Zaretskii <eliz@gnu.org>
9237 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9239 2008-10-09 Eli Zaretskii <eliz@gnu.org>
9241 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9244 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
9246 * dispnew.c (update_text_area): Avoid looping due to large glyph
9247 overhangs (bug#1070).
9249 2008-10-09 Kenichi Handa <handa@m17n.org>
9251 * fontset.c (face_for_char): If face->fontset is negative, just
9254 * font.c (font_delete_unmatched): Fix previous change.
9255 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
9257 2008-10-09 Martin Rudalics <rudalics@gmx.at>
9259 * frame.c (Fraise_frame): On text-only terminals select frame in
9260 order to make it visible. (Bug#1061)
9262 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
9264 * fontset.c (fontset_find_font): Check frame validity.
9266 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
9268 * gtkutil.c (xg_display_open): Reset default display if none exists.
9269 (xg_display_close): Allow Emacs to close all displays (bug#985).
9271 2008-10-06 Andreas Schwab <schwab@suse.de>
9273 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
9275 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
9277 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
9279 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
9281 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9282 during initialization.
9284 2008-10-04 Eli Zaretskii <eliz@gnu.org>
9286 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9287 whole thing on MSDOS frames as well as on a TTY.
9289 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9291 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9294 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9297 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9299 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9300 MSDOS frames as well.
9302 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9304 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9306 * menu.c (find_and_return_menu_selection): Add cast.
9308 2008-10-03 Glenn Morris <rgm@gnu.org>
9310 * emacs.c (USAGE1): Add --daemon.
9312 2008-10-02 Eli Zaretskii <eliz@gnu.org>
9314 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9315 100, so it's in percents as advertised.
9317 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9319 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9320 (ns_output.current_cursor, ns_output.desired_cursor)
9321 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9322 (FRAME_NEW_CURSOR_COLOR): Remove.
9324 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
9325 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
9326 enumeration (HOLLOW_BOX_CURSOR, etc.).
9328 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9329 (draw_window_cursor): Simplify code.
9330 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9331 Don't change cursor type. In latter, call rehighlight instead of doing
9333 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9334 Use core Emacs cursor types.
9336 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
9338 2008-10-02 Martin Rudalics <rudalics@gmx.at>
9340 * process.c (Faccept_process_output): Fix doc-string.
9342 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9344 * gmalloc.c (__sbrk): Also define for uClibc.
9346 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9349 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9351 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9353 (nsfont_open): Reenable the cache.
9355 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9357 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9358 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9360 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9362 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9363 a suspended terminal.
9365 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
9367 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9369 2008-09-30 Eli Zaretskii <eliz@gnu.org>
9371 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9373 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
9375 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9376 in a continued line coincides with a line beginning.
9378 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9380 * nsfont.m (nsfont_trait_distance): Fix bug.
9381 (nsfont_list): Return a list rather than a vector (syncs with Handa
9382 changes of 2008-05-14).
9383 (nsfont_open): Improve logging.
9385 2008-09-29 Andreas Schwab <schwab@suse.de>
9387 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9389 2008-09-28 Martin Rudalics <rudalics@gmx.at>
9391 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9392 name as char-resolve-modifiers.
9393 Reported by: Markus Triska <markus.triska@gmx.at>
9395 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9397 * dispnew.c (init_display): Return earlier when running as a daemon.
9399 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9401 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9403 2008-09-27 Eli Zaretskii <eliz@gnu.org>
9405 * composite.c (Fcomposition_get_gstring)
9406 (Fcompose_region_internal, Fcompose_string_internal)
9407 (Ffind_composition_internal): Doc fix.
9408 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9409 (syms_of_composite) <auto-composition-function>: Doc fix.
9410 (syms_of_composite) <composition-function-table>: Doc fix.
9412 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
9414 * search.c (wordify): New argument for lax word-ends.
9415 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9417 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9419 * lisp.h (is_daemon): Declare.
9420 * dispnew.c (init_display): Do not try to initialize the terminal
9421 when running as a daemon.
9423 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
9425 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9426 x_display_pixel_height.
9428 2008-09-22 Martin Rudalics <rudalics@gmx.at>
9430 * undo.c (record_point): Don't call Fundo_boundary for first
9433 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
9435 * emacs.c (Fdaemonp): Doc fix.
9437 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9439 * emacs.c (main): Place #ifdef in the proper place.
9441 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9443 * emacs.c (standard_args): Add --daemon.
9444 (main): Disconnect from the terminal when --daemon is passed.
9445 (is_daemon): New variable.
9446 (Fdaemonp): New function.
9447 (syms_of_emacs): Defsubr it.
9449 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
9451 * xdisp.c (get_next_display_element): Handle string display
9452 correctly when checking for the end of a box run.
9454 2008-09-20 Glenn Morris <rgm@gnu.org>
9456 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9457 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9458 (Frename_file): Avoid copying to trash if a rename involves
9459 a delete. (Bug#964).
9461 2008-09-20 Eli Zaretskii <eliz@gnu.org>
9463 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9464 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9465 frames as well as termcap frames.
9466 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9469 2008-09-19 Eli Zaretskii <eliz@gnu.org>
9471 * process.c (procfs_system_process_attributes): Fix cmdline in
9472 case /proc/PID/cmdline is empty.
9474 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9475 x_display_pixel_height.
9477 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
9479 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9481 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9482 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9484 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9486 * dispextern.h (struct it): Move line_wrap away from the middle of
9487 bitfields. Move voffset in struct iterator_stack_entry after the
9488 bitfields. Move tab_width near after another short.
9490 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9492 * frame.h (struct frame): Move alpha from the middle of bitfields.
9494 * window.h (struct window): Move frozen_window_start_p after the
9495 rest of the bitfields to reduce padding.
9497 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
9499 * xterm.h (x_display_info): Remove `height' and `width' members.
9501 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9503 * w32term.h (w32_display_info): Remove `height', `width',
9504 `height_in', and `width_in' members.
9506 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9508 (x_calc_absolute_position): Use them.
9509 (x_term_init): Omit removed `height' and `width' members.
9511 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9513 (w32_read_socket, x_calc_absolute_position): Use them.
9514 (w32_initialize_display_info, w32_term_init): Omit removed members
9515 of w32_display_info.
9517 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9519 (ns_initialize_display_info): Omit removed members of ns_display_info.
9521 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9523 (x_calc_absolute_position): Use them.
9524 (x_term_init): Omit removed `height' and `width' members.
9526 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9528 * frame.c (x_fullscreen_adjust):
9529 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9530 x_display_pixel_width.
9532 2008-09-18 Kenichi Handa <handa@m17n.org>
9534 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9535 (composition_compute_stop_pos): Fix handling of static composition.
9536 (Fcomposition_get_gstring): Check FROM and TO at first.
9538 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9540 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
9543 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
9545 * indent.c (Fvertical_motion): Use position reported by iterator
9546 instead of PT for determining screen motion (bug#943).
9548 2008-09-17 Romain Francoise <romain@orebokech.com>
9550 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9552 2008-09-17 Kenichi Handa <handa@m17n.org>
9554 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9556 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9559 2008-09-16 Kenichi Handa <handa@m17n.org>
9561 * coding.c (make_conversion_work_buffer): Avoid calling
9562 Fget_buffer_create if it is not necessary.
9564 2008-09-15 Martin Rudalics <rudalics@gmx.at>
9566 * window.c (Fselect_window): Don't update window_select_count and
9567 use_time when norecord is not nil.
9569 2008-09-14 Kenichi Handa <handa@m17n.org>
9571 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9574 2008-09-12 Kenichi Handa <handa@m17n.org>
9576 * indent.c (scan_for_column): Don't handle automatic composition
9577 if the current buffer is not associated with a window.
9579 * composite.c (composition_reseat_it): If the current buffer is
9580 not associated with a window, ignore the automatic composition.
9581 (find_automatic_composition): Likewise.
9583 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9585 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9586 (Fgpm_mouse_stop): Use it.
9587 * termhooks.h (close_gpm): Declare.
9588 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9589 connection if Gpm_GetEvent fails.
9591 * window.c (set_window_buffer): Always preserve current-buffer.
9593 2008-09-12 Glenn Morris <rgm@gnu.org>
9595 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9597 2008-09-11 Glenn Morris <rgm@gnu.org>
9599 * charset.c (charset-map-path): Doc fix.
9601 2008-09-10 Kenichi Handa <handa@m17n.org>
9603 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9605 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9606 compose a grapheme cluster with the preceding base glyph.
9608 * composite.c (composition_compute_stop_pos): Fix previous change.
9609 Reset cmp_it->id to -1 at first.
9611 2008-09-10 Glenn Morris <rgm@gnu.org>
9613 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9615 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
9617 * keyboard.c (read_key_sequence): Reapply translation maps when
9618 switching keyboards.
9620 2008-09-09 Kenichi Handa <handa@m17n.org>
9622 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9625 * composite.c (FORWARD_CHAR): Fix calculation
9626 of (POSITION).pos_byte.
9627 (composition_compute_stop_pos): Limit the search of composition to
9628 at most 500 characters ahead. If we reach the limit or find a
9629 newline, set cmp_it->ch to -2 and return 0.
9630 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9632 2008-09-08 Kenichi Handa <handa@m17n.org>
9634 * indent.c (Fvertical_motion): Be sure to set
9635 it_overshoot_expected if it.cmp_it.id is non-negative.
9637 2008-09-07 Andreas Schwab <schwab@suse.de>
9639 * callproc.c (Fcall_process): Don't hold references to string data
9640 across garbage collection. Move initialisation of new_argv down
9641 to avoid compiler bug.
9643 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9645 * process.c (Fsystem_process_attributes): Doc fix.
9647 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
9649 * callproc.c (Fcall_process): Canonicalize current directory name.
9651 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9652 iterator advances to the next line if the current line ends in a
9655 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9657 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9658 member to point to cmp_from.
9660 * xdisp.c: Doc fix for references to gidx data member.
9662 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9664 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9666 2008-09-07 Kenichi Handa <handa@m17n.org>
9668 * composite.c (FORWARD_CHAR): Check STOP after
9669 incrementing (POSITION).pos.
9671 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9673 * process.c (Fsystem_process_attributes): Doc fix.
9675 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
9677 * keyboard.c (Ftop_level): Doc fix.
9679 2008-09-06 Eli Zaretskii <eliz@gnu.org>
9681 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9682 minibuffer, don't let lower part of menu invade the echo area.
9684 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9685 "char *q" to access menu text and advance through it. Revert the
9686 change that displayed ">" instead of ASCII character 0x10.
9688 2008-09-05 Eli Zaretskii <eliz@gnu.org>
9690 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9691 toggle boxes and radio buttons on MS-DOS as well.
9693 2008-09-05 Kenichi Handa <handa@m17n.org>
9695 * composite.c (autocmp_chars): Check lookback count.
9696 (composition_compute_stop_pos): Set cmp_it->lookback.
9697 (composition_reseat_it): Check lookback count.
9698 (struct position_record): New struct.
9699 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9700 (find_automatic_composition): New function.
9701 (composition_adjust_point): Use find_automatic_composition.
9703 * dispextern.h (struct composition_it): New member lookback.
9705 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
9707 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9708 if moving by a single line.
9710 2008-09-02 Andreas Schwab <schwab@suse.de>
9712 * xterm.c (x_delete_display): Fix merge error.
9714 * fileio.c (Fexpand_file_name): Remove unused variables.
9716 2008-09-02 Eli Zaretskii <eliz@gnu.org>
9718 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9719 storage on all platforms, not just on DOS_NT.
9721 2008-09-02 Jason Rumney <jasonr@gnu.org>
9723 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9724 Ensure mouse is not grabbed after menu is finished.
9726 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
9728 * xfaces.c (Finternal_set_alternative_font_family_alist)
9729 (Finternal_set_alternative_font_registry_alist): Properly copy
9730 entire alist structure.
9732 2008-09-01 Kenichi Handa <handa@m17n.org>
9734 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
9735 representative chars of the script is a vector.
9736 (ftfont_list): Handle the case where the representative chars of
9737 the script is a vector.
9739 * character.c (syms_of_character): Docstring of
9740 script-representative-chars fixed.
9742 2008-08-31 Eli Zaretskii <eliz@gnu.org>
9744 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9745 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9746 the menu. Allocate larger buffer for `text', to account for
9747 possible ^C characters.
9749 2008-08-31 Martin Rudalics <rudalics@gmx.at>
9751 * xdisp.c (prepare_menu_bars): Don't call
9752 Vwindow_size_change_functions with arg Qt.
9754 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9756 * font.h (font_range):
9757 * fileio.c (report_file_error):
9758 * composite.c (composition_update_it): Yet another int/Lisp_Object
9761 2008-08-30 Glenn Morris <rgm@gnu.org>
9763 * data.c (Fmake_variable_frame_local): Doc fix.
9765 * frame.c (Fmodify_frame_parameters): Doc fix.
9767 2008-08-30 Eli Zaretskii <eliz@gnu.org>
9769 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9770 needed by GetTokenInformation.
9771 (w32_system_process_attributes): Check return values of all system
9774 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9775 only when the state changes.
9776 (IT_update_begin, IT_update_end): Add termscript trace.
9778 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9779 clipboard is unavailable. Set dst to NULL if it doesn't point to
9781 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9782 passing random values to xfree.
9784 * dispnew.c (init_display): Set `tty's association in frame's
9785 parameters alist to the name of the terminal device, if that is known.
9787 2008-08-29 Jason Rumney <jasonr@gnu.org>
9789 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9791 2008-08-29 Eli Zaretskii <eliz@gnu.org>
9793 * composite.c (fill_gstring_body): Avoid compiler warnings.
9795 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9796 LGLYPH_SET_CODE to avoid compiler warnings.
9798 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
9800 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9802 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9805 2008-08-29 Kenichi Handa <handa@m17n.org>
9807 * fileio.c (report_file_error): Don't downcase the first character
9808 of errstring if it is still unibyte.
9810 2008-08-29 Kenichi Handa <handa@m17n.org>
9812 These changes are to re-implement the automatic composition so
9813 that it doesn't use text properties.
9815 * Makefile.in (ftfont.o): Depend on composite.h.
9816 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9818 * character.h (Vunicode_category_table): Extern it.
9820 * character.c (Vunicode_category_table): New variable.
9821 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9823 * chartab.c (optimize_sub_char_table): Perform more greedy
9826 * composite.h (enum composition_method):
9827 Delete COMPOSITION_WITH_GLYPH_STRING.
9828 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9829 (Vcomposition_function_table): Extern it.
9830 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9831 (composition_gstring_put_cache, composition_gstring_from_id)
9832 (composition_gstring_p, composition_gstring_width)
9833 (composition_compute_stop_pos, composition_reseat_it)
9834 (composition_update_it, composition_adjust_point): Extern them.
9835 (Fcomposition_get_gstring): EXFUN it.
9837 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
9838 (Vcomposition_function_table)
9839 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
9840 (gstring_hash_table, gstring_work, gstring_work_headers):
9842 (gstring_lookup_cache, composition_gstring_put_cache)
9843 (composition_gstring_from_id, composition_gstring_p)
9844 (composition_gstring_width, fill_gstring_header)
9845 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9846 (composition_reseat_it, composition_update_it)
9847 (composition_adjust_point, Fcomposition_get_gstring): New functions.
9848 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9849 and gstring_work_headers. DEFVAR_LISP composition-function-table.
9850 Defsubr composition_get_gstring.
9852 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9854 (struct glyph_string): Delete the member gidx. New members
9855 cmp_id, cmp_from, and cmp_to.
9856 (enum it_method): Delete GET_FROM_COMPOSITION.
9857 (struct composition_it): New struct.
9858 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9859 Delete c, len, cmp_id, cmp_len in u.comp.
9861 * font.h (enum lgstring_indices): Delete it.
9862 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
9863 (enum lglyph_indices): Likewise.
9864 (font_range): Adjust extern.
9865 (font_fill_lglyph_metrics): Extern it.
9867 * font.c (QCf): New variable.
9868 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9869 (font_prepare_composition): Delete this function.
9870 (font_range): Type and arguments changed.
9871 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9872 (font_fill_lglyph_metrics): New function.
9873 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
9874 (syms_of_font): DEFSYM QCf. Delete defsubr for
9875 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9876 Defsubr Sfont_shape_gstring.
9878 * fontset.h (font_for_char): Extern it.
9880 * fontset.c (font_for_char): New function.
9882 * ftfont.c: Include composite.h.
9883 (ftfont_resolve_generic_family): Add langset "en" to pattern.
9884 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9886 * indent.c: Include composite.h and dispextern.h.
9887 (check_composition): Delete this function.
9888 (scan_for_column): Handle composition by
9889 composition_compute_stop_pos, composition_reseat_it, and
9890 composition_update_it.
9891 (compute_motion): Likewise.
9892 (Fvertical_motion): Fix checking of composition.
9894 * keyboard.c (adjust_point_for_property): Check composition by
9895 composition_adjust_point.
9897 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
9898 struct glyph_string.
9900 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9901 (append_composite_glyph): Adjust for the change of struct it and
9903 (produce_composite_glyph): Likewise.
9905 * w32term.c (x_draw_composite_glyph_string_foreground):
9906 Adjust for the change of struct glyph_string.
9907 (x_draw_glyph_string): Likewise.
9909 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9910 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9912 * xdisp.c: Include font.h.
9913 (it_props): Delete the entry for Qauto_composed.
9914 (init_iterator): Initialize it->cmp_it.id to -1.
9915 (compute_stop_pos): Call composition_compute_stop_pos.
9916 (face_before_or_after_it_pos): Adjust for the change of struct it.
9917 (handle_auto_composed_prop): Delete it.
9918 (handle_composition_prop): Handle only static composition.
9919 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9920 from xassert. Initialize it->cmp_it.stop_pos.
9921 (push_it): Adjust for the change of struct it.
9923 (get_next_element): Delete next_element_from_composition.
9924 (CHAR_COMPOSED_P): New macro.
9925 (get_next_display_element): For automatic composition, get a face
9926 from the font in the glyph-string.
9927 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
9928 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
9929 (next_element_from_string): Check if the character at the current
9930 position is composed by CHAR_COMPOSED_P.
9931 (next_element_from_buffer): Likewise.
9932 (next_element_from_composition): Adjust for the change of struct it.
9934 (dump_glyph): Adjust for the change of struct glyph.
9935 (fill_composite_glyph_string): Adjust for the change of struct
9936 it and struct glyph. Don't handle automatic composition here.
9937 (fill_gstring_glyph_string): New function.
9938 (x_get_glyph_overhangs): Handle automatic composition.
9939 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
9940 (BUILD_GSTRING_GLYPH_STRING): New macro.
9941 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9942 automatic composition.
9943 (append_composite_glyph): Adjust for the change of struct it and
9945 (x_produce_glyphs): Adjust for the change of struct it.
9947 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9948 the change of struct glyph_string.
9949 (x_draw_glyph_string): Likewise.
9951 2008-08-29 Glenn Morris <rgm@gnu.org>
9953 * buffer.c (word-wrap): Doc fix.
9954 * xdisp.c (truncate-partial-width-windows): Doc fix.
9955 Increase default to 50.
9957 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
9959 * xdisp.c (update_tool_bar_unwind): New function.
9960 (update_tool_bar): Temporarily set selected frame before building
9963 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
9965 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9966 snprintf, respectively.
9967 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9969 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
9971 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9972 LDFLAGS to GNUstep CC invocation.
9974 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
9976 * indent.c (Fvertical_motion): Revert last change. Handle the
9977 general case where we are moving forward, and PT spans multiple
9980 * eval.c (find_handler_clause): Temporarily increase
9981 max-lisp-eval-depth while printing the backtrace buffer, to
9982 guarantee that help-mode code can run.
9984 2008-08-27 Eli Zaretskii <eliz@gnu.org>
9986 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9988 (IT_set_frame_parameters): Don't swap foreground and background
9989 colors if `(reverse . t)' is present in the frame properties.
9990 (internal_terminal_init): Call init_frame_faces only for the
9993 2008-08-27 Andreas Schwab <schwab@suse.de>
9995 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9997 2008-08-27 Andreas Schwab <schwab@suse.de>
9999 * search.c (search_buffer): Set char_base to zero only at the end.
10001 2008-08-27 Kenichi Handa <handa@m17n.org>
10003 * fileio.c (report_file_error): Fix handling of multibyte error string.
10005 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10007 * xterm.c (x_term_init): Temporarily hide the partially
10008 initialized terminal while calling vendor-specific-keysyms.
10010 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10012 * msdos.c (internal_terminal_init): Most initializations done only
10013 once, especially initial_screen_colors[] and termscript open.
10015 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10017 * eval.c (Fcondition_case): Doc fix.
10019 * widgetprv.h (EmacsFramePart): Change font member to the new font
10022 * widget.c: Include character.h and font.h for XSETFONT.
10023 (setup_frame_gcs): Compute X font id from font struct, just once.
10025 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10027 * term.c (get_named_tty): Fix last change.
10029 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10031 * indent.c (Fvertical_motion): If moving forward starting from a
10032 multi-line string, move the iterator to the last line of that string.
10034 2008-08-25 Eli Zaretskii <eliz@gnu.org>
10036 * frame.c (do_switch_frame): Mark previously displayed frame as
10037 obscured for FRAME_MSDOS_P frames as well.
10039 2008-08-24 Eli Zaretskii <eliz@gnu.org>
10041 * frame.c (make_terminal_frame): Initialize f->terminal,
10042 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10043 Set the top frame to newly created frame.
10044 (Fmake_terminal_frame): Reuse the_only_display_info.
10046 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10047 estimating available memory.
10049 2008-08-23 David Reitter <david.reitter@gmail.com>
10051 * nsterm.m (ns_draw_window_cursor): Don't call
10052 NSDisableScreenUpdates and NSEnableScreenUpdates on
10053 non-NS_IMPL_COCOA systems.
10055 2008-08-23 Andreas Schwab <schwab@suse.de>
10057 * process.c (procfs_system_process_attributes): Fix use of
10058 uninitialized variables.
10060 2008-08-23 Eli Zaretskii <eliz@gnu.org>
10062 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10064 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10065 calling tty-set-up-initial-frame-faces.
10067 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10068 Allow MSDOS frames along with X frames.
10070 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10071 addition to output_termcap.
10073 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10075 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10076 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10079 * process.c [!subprocesses]: Define QCname.
10080 (syms_of_process): Intern and staticpro it.
10082 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
10083 Adjust for changes in encoding/decoding routines.
10084 Use encode_coding_object and decode_coding_object instead of
10085 encode_coding and decode_coding.
10087 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
10089 * dosfns.c: Include frame.h before termhooks.h.
10090 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10091 variable termscript.
10093 * s/msdos.h (USER_FULL_NAME): Define.
10094 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10096 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10097 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10100 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10101 SELECTED_FRAME as additional (1st) argument.
10102 (tty_read_avail_input): Handle output_msdos_raw in
10103 addition to output_termcap.
10105 * msdos.c: Include frame.h before termhooks.h.
10106 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10107 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10108 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10109 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10110 (IT_set_terminal_modes, IT_reset_terminal_modes)
10111 (IT_set_frame_parameters): Use tty->termscript instead of a global
10112 variable termscript.
10113 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10114 global variable terminal_coding. Don't refer to
10115 Vnonascii_translation_table.
10116 (internal_terminal_init): Set Vwindow_system in current_kboard.
10117 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10118 Announce date and time of session start, if termscript is open.
10119 Don't zero out the_only_display_info (it is done in
10120 term.c:init_tty). Open termscript only of not already open.
10121 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
10122 here instead of dos_ttraw. Don't initialize display if this is an
10123 initial tty. Don't set FRAME_FONT.
10124 (Vwindow_system_version): Bump to 23.
10125 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10126 is available, set up mouse_position_hook.
10127 (dos_ttraw, IT_set_terminal_modes): If called with initial
10128 terminal, do nothing.
10129 (IT_set_frame_parameters): Handle the Qtty_type frame
10130 parameter by calling internal_terminal_init.
10131 (dos_set_window_size, show_mouse_face)
10132 (clear_mouse_face, IT_note_mode_line_highlight)
10133 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10134 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10135 (initialize_msdos_display): New function.
10136 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10137 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10138 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10139 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
10140 Accept additional argument: a pointer to a frame. Update all callers.
10141 (request_sigio, unrequest_sigio): Don't define, now defined on
10143 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10145 * term.c [MSDOS]: Include msdos.h.
10146 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10147 conditional to DOS_NT. Allow only one call to this function in a
10148 session. Don't allocate a new struct tty_display_info; instead,
10149 reuse the_only_display_info. Call get_tty_size to get screen
10150 dimensions. Call init_baud_rate to set bad_rate.
10151 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10152 (Fsuspend_tty) [MSDOS]: Don't close input and output.
10153 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
10154 (get_tty_terminal, get_named_tty, Ftty_type)
10155 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10157 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10158 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
10159 only when subprocesses are supported.
10161 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10163 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10166 * msdos.h: Remove definition of struct x_display_info and struct
10168 (FRAME_FONT): Use output_data.tty.
10169 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
10170 (struct x_display_info): Rename from display_info. Update all users in
10172 (struct x_output): Remove background_pixel and foreground_pixel.
10173 (the_only_display_info): Rename from the_only_x_display.
10174 (dos_ttraw): Update prototype.
10176 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10177 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10179 2008-08-23 Jason Rumney <jasonr@gnu.org>
10181 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10182 (fn_TIFFSetDirectory): New library function used.
10183 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10184 (tiff_load): Use :index to select among multiple images. Set count
10185 property when multiple images exist.
10186 (gif_format): Use :index, not :image.
10188 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
10190 * xdisp.c (try_scrolling): Check INT_MAX instead of
10191 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10194 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10196 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10198 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10200 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10201 GNUstep library location.
10203 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
10205 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10208 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10210 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10212 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10213 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10214 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10215 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10216 (EmacsApp-cursor_blink_handler): Remove declaration.
10217 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10218 match 01 Feb 2008 changes in xterm.c.
10219 (ns_read_socket): Add cast to avoid warning.
10220 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10223 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
10225 * xselect.c (x_get_foreign_selection): Return nil if desired
10226 selection could not be obtained, instead of signalling an error.
10228 2008-08-20 David Reitter <david.reitter@gmail.com>
10230 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10231 * nsterm.m: Remove ns-specific code for cursor blinking.
10232 (ns_draw_window_cursor): Clear cursor properly rather than
10233 redrawing the area. Respect width of bar cursors.
10234 These changes enable the use of generic blink-cursor-mode and
10235 generic cursor types in NS and support smooth cursor movements (do
10236 not blink off after command).
10237 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10240 2008-08-19 Kenichi Handa <handa@m17n.org>
10242 * font.c (Vfont_log_deferred): New variable.
10243 (font_add_log): Check Vfont_log_deferred.
10244 (font_deferred_log): New function.
10246 * font.h (font_deferred_log): Extern it.
10248 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10250 (face_for_char): Use deferred log.
10252 2008-08-18 Kenichi Handa <handa@m17n.org>
10254 * fontset.c (face_for_char): Add font log.
10256 * font.c (font_add_log): Add the font properties :script, :lang,
10257 and :otf in the log.
10259 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
10261 * xdisp.c: Remove dead code.
10262 (handle_invisible_prop, next_overlay_string): Defer call to
10263 setup_for_ellipsis.
10264 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10266 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
10268 * xfaces.c (lookup_derived_face): Properly handle possible zero
10269 return value of get_lface_attributes.
10270 (merge_faces): Don't tell lookup_derived_face to signal an error
10271 if face is not found.
10273 * dired.c (Fdirectory_files): Doc fix.
10275 * process.c (make_process): Initialize kill_without_query struct
10278 2008-08-15 Eli Zaretskii <eliz@gnu.org>
10280 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10281 Alternative calculation of totphys for Visual Studio 6.
10283 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10285 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10286 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10288 (stat): Only root directory passed to GetDriveType. Allow RAM
10289 disk as well as local fixed disk when w32-get-true-file-attributes
10291 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10292 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10293 (w32_cached_id, w32_add_to_cache): New functions.
10294 (get_name_and_id): Look account names in the cache before calling
10295 lookup_account_sid.
10296 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10297 New initialization flags.
10298 (globals_of_w32): Initialize them to zero.
10299 (w32_system_process_attributes): Use w32_cached_id and
10302 2008-08-14 Lawrence Mitchell <wence@gmx.li>
10304 * lread.c (Fread_char, Fread_char_exclusive): If no character
10305 event is read before timeout is reached, return nil, rather than
10306 converting to a number.
10308 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
10310 * fns.c (use_dialog_box): Doc fix.
10312 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10315 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
10317 * frame.c (Qns_parse_geometry): New var.
10318 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10320 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
10322 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10323 space character in calculating tabs.
10325 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10327 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10329 2008-08-10 Glenn Morris <rgm@gnu.org>
10331 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10332 silence gcc "limited range of data type" warnings in some
10333 make_fixnum_or_float calls.
10335 2008-08-09 Eli Zaretskii <eliz@gnu.org>
10337 * w32.c (w32_system_process_attributes): If the process does not
10340 * w32.c: Include thelp32.h, psapi.h and coding.h.
10341 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10343 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10344 (Process32Next_Proc): New typedefs.
10345 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10346 (g_b_init_process32_next, g_b_init_open_thread_token)
10347 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10348 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10349 (g_b_init_get_process_working_set_size)
10350 (g_b_init_global_memory_status_ex): New static variables.
10351 (globals_of_w32): Initialize them.
10352 (create_toolhelp32_snapshot, process32_first, process32_next)
10353 (open_thread_token, impersonate_self, revert_to_self)
10354 (get_process_memory_info, get_process_working_set_size)
10355 (global_memory_status, global_memory_status_ex): New wrapper
10357 (w32_list_system_processes, w32_system_process_attributes)
10358 (enable_privilege, restore_privilege, ltime, process_times):
10360 (convert_time_raw): New function.
10361 (convert_time): Remove conversion of FILETIME into time in 100
10362 nsec units, call convert_time_raw instead.
10364 * process.h (w32_list_system_processes, w32_system_process_attributes):
10366 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10367 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10368 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10369 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10371 * process.c (Fsystem_process_attributes): Doc fix.
10373 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
10375 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10376 a continued multi-char glyph; if so, advance to the actual glyph.
10378 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10380 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10382 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10384 * config.in: Regenerate.
10386 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
10388 * xdisp.c (redisplay_window): Revert last change.
10389 (try_window): Check bottom scroll margin too.
10391 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10393 * config.in: Regenerate.
10395 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10396 -list-load-path-shadows'.
10397 (nsgui.h): Reduce number of things depending on it.
10399 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
10401 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10402 instead of window-end which does the wrong thing at eob.
10403 (try_cursor_movement): Minor optimization.
10404 (redisplay_window): If scroll margin is defined, don't assume
10405 window doesn't need scrolling.
10407 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10409 * config.in: Regenerate.
10411 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10412 (mostlyclean): Don't delete *.d under NS.
10414 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10416 2008-08-06 Kenichi Handa <handa@m17n.org>
10418 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10420 2008-08-06 Andreas Schwab <schwab@suse.de>
10422 * config.in: Regenerate.
10424 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
10426 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10427 forcing a window start.
10429 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10430 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10432 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10434 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10437 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
10439 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10440 <scroll-down-aggressively, before-change-functions>:
10441 <after-change-functions>: Reflow docstrings.
10443 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10444 Ken Raeburn <raeburn@gnu.org>
10446 Dock menu customization, based on a patch by Ken Raeburn, plus some
10448 * nsmenu.m (dockMenu): New variable.
10449 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10451 * nsterm.h (dockMenu): Declare.
10453 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10454 (ns_term_init): Initialize dockMenu.
10455 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10456 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10459 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10461 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10463 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10465 * config.in: Regenerate.
10467 2008-08-04 Seiji Zenitani <zenitani@mac.com>
10469 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10471 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10473 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10475 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10477 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10479 * keyboard.h: Comment an #endif.
10481 * lisp.h (have_menus_p): Adjust comment.
10483 * menu.c (find_and_return_menu_selection): Fix comparison with
10486 * nsmenu.m (popup_activated_flag): New variable.
10487 (popup_activated): New function.
10488 (menu-or-popup-active-p): New exported lisp definition.
10489 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10491 (ns_popup_dialog): Set popup_activated_flag.
10493 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10494 version for GNUstep (handled by conditional typedef in nsterm.m).
10495 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10498 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10500 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10502 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10504 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10505 shortcircuit if popup_activated like GTK and X toolkit.
10507 * m/inter386.h: Change DARWIN to DARWIN_OS.
10509 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10510 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10511 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10512 comment on NO_SOCK_SIGIO.
10514 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
10516 * nsterm.m (windowDidResize): Remove stopModal call.
10518 2008-08-03 Andreas Schwab <schwab@suse.de>
10520 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10521 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10523 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
10525 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10526 Don't use uninitialized pointer variable when using getrlimit.
10528 2008-08-02 Jason Rumney <jasonr@gnu.org>
10530 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10532 2008-08-02 Eli Zaretskii <eliz@gnu.org>
10534 * alloc.c (NSTATICS): Bump to 0x640.
10536 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10538 * lisp.h: Add prototype for directory_files_internal.
10540 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10542 (syms_of_process): Defsubr them. Add initializations for various
10543 Q* symbols used in procfs_system_process_attributes.
10544 (procfs_list_system_processes, procfs_system_process_attributes)
10545 [HAVE_PROCFS]: New functions.
10546 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10547 (procfs_get_total_memory): New functions.
10549 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
10551 * xfaces.c (Fx_load_color_file): Fix previous change;
10552 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10554 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
10556 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10558 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10560 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10562 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
10564 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10566 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10567 define NSApplicationDelegateReplySuccess.
10568 (EmacsView -converstationIdentifier): Use long instead of
10569 NSInteger for GNUstep, since it doesn't have NSInteger.
10571 * xmenu.c: Revert last change.
10573 * keyboard.h: Fix last change.
10575 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
10577 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10580 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10582 Warning clearing and clean-up in NS port.
10583 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10585 * nsgui.h (FACE_DEFAULT): Remove, unused.
10586 (XGCValues): Change colors to unsigned long.
10587 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10589 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10590 (ns_list_fonts): Remove, unused.
10591 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10592 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10593 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10594 (nsfont_draw): Compare face colors to 0, not nil.
10595 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10596 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10597 (-addSubmenuWithTitle:): Use NSMenuItem class.
10598 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10599 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10600 (ns_clip_to_row): Make gc arg a BOOL.
10601 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10602 ns_clip_to_row() call.
10603 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10604 used). Cast FRAME_FONT assignments.
10605 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10606 (ns_string_to_lispmod): Change arg to const char.
10607 (ns_term_init): Use NSMenuItem class.
10608 (EmacsApp -openFile:): Move to different section of file.
10609 (EmacsApp -application:openFiles:): Don't return a value, call
10610 -replyToOpenOrPrint:.
10611 (EmacsView -keyDown:): Fix up cast.
10612 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10613 (EmacsView -menuDown:): Cast tag in call to
10614 find_and_call_menu_selection().
10615 (ns_list_fonts): Remove, unused.
10616 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10617 (ns_fontname_to_xlfd): Make static.
10618 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10619 Remove prototypes (now in keyboard.h).
10620 (next_menubar_widget_id): Remove, unused.
10621 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10622 Remove prototypes (now in keyboard.h).
10623 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10625 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10627 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10628 (floatfns.o): Depend on syssignal.h.
10629 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10631 * systty.h: Fix previous change that removed BSD_TERMIOS.
10632 Add comments to #ifdefs.
10634 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10636 * w32fns.c (w32-load-color-file): Remove.
10637 (x-open-connection): Use renamed Fx_load_color_file.
10638 * xfaces.c (x-load-color-file): Add.
10639 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10641 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10643 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
10645 * dbusbind.c (Fdbus_call_method_asynchronously)
10646 (Fdbus_method_error_internal): New defuns.
10647 (xd_read_message): Handle also reply messages.
10648 (Vdbus_registered_functions_table): Extend docstring.
10650 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
10652 * keyboard.c (gobble_input): Fix previous change.
10654 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10685 * m/vax.h: Remove VMS support.
10691 * ioctl.h: Remove file.
10693 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10695 * s/ms-w32.h (MULTI_KBOARD): Remove.
10710 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10711 * config.in: Regenerate.
10713 2008-07-30 Jason Rumney <jasonr@gnu.org>
10715 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10717 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10718 (w32font_open_internal): Get unicode version of textmetrics.
10719 Don't enable or disable glyph indices here.
10720 (w32font_open): Disable use of glyph indices.
10722 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10724 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
10726 * minibuf.c (Vread_buffer_function): Doc fix.
10728 2008-07-30 John Paul Wallington <jpw@pobox.com>
10730 * minibuf.c (read_buffer_completion_ignore_case): New var.
10731 (Fread_buffer): Use it.
10733 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10735 * systty.h (sensemode): Remove empty #if. Remove reference to
10736 BSD_TERMIOS, unused.
10738 * sysdep.c: Remove reference to DGUX.
10739 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10741 * config.in: Regenerate.
10743 2008-07-30 Jason Rumney <jasonr@gnu.org>
10745 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10747 2008-07-29 Jason Rumney <jasonr@gnu.org>
10749 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10751 (uniscribe_encode_char): Always use uniscribe.
10752 Avoid using context if cache is populated.
10754 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10756 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10759 * gtkutil.c (menu_nav_ended): Remove.
10760 (create_menus): Remove signal connect for menu_nav_ended.
10762 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
10764 * xdisp.c (redisplay_window): Check return value of
10765 compute_window_start_on_continuation_line before forcing a window
10768 2008-07-28 Jason Rumney <jasonr@gnu.org>
10770 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10772 * w32term.c (w32_enable_unicode_output, cleartype_active):
10773 Remove obsolete display options.
10774 (x_draw_glyph_string_background): Don't use old cleartype_active
10776 (w32_initialize): Remove cleartype_active initialization.
10777 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10779 2008-07-28 Andreas Schwab <schwab@suse.de>
10781 * lisp.h (init_weak_hash_tables, syms_of_font)
10782 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10783 (remove_hash_entry): Don't declare.
10784 * eval.c (maybe_call_debugger): Make static and move before use.
10785 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10786 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10787 * xterm.h (x_set_frame_alpha): Declare.
10789 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10791 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10792 (create_menus): Connect selection-done to menu_nav_ended.
10794 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10796 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10797 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10798 parameter with read of 'alpha' one.
10799 (Qns_frame_parameter): Remove.
10800 * nsselect.m (selection-coding-system)
10801 (next-selection-coding-system, Vselection_coding_system)
10802 (Vnext_selection_coding_system): Drop.
10804 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10806 * nsfns.m (do-applescript, do_applescript): Rename to
10807 ns-do-applescript, ns_do_applescript, and move within file.
10809 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10811 Remove support for Mac Carbon.
10819 * mac.c: Remove file.
10850 * Makefile.in: Remove code for Carbon.
10852 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10854 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10856 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10858 * macterm.h (kCGBitmapByteOrder32Host): New define for
10859 non-universal SDKs.
10861 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10862 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10864 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10865 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10867 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10869 * w32inevt.c: Include dispextern.h.
10871 2008-07-26 Andreas Schwab <schwab@suse.de>
10873 * print.c (print_object): Fix off-by-one in last change.
10875 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
10877 * term.c (syms_of_term): Don't initialize default_orig_pair,
10878 default_set_foreground and default_set_background on Windows.
10880 2008-07-25 Jason Rumney <jasonr@gnu.org>
10882 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10883 ScriptItemize. Clean up return value checking. Remove unused
10885 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10888 * w32font.c (w32font_has_char): Handle the case where we can't
10889 determine the script for a character.
10891 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10893 * term.c (syms_of_term): Initialize default_orig_pair,
10894 default_set_foreground, and default_set_background.
10896 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10898 (getloadavg): Callers changed.
10900 * image.c (svg_load_image): Fix last change.
10901 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10902 image size is valid. Use g_object_unref instead of deprecated
10903 rsvg_handle_free to free rsvg handle.
10904 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10906 2008-07-25 Jason Rumney <jasonr@gnu.org>
10908 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10909 surrogates before looking up glyph index.
10910 (w32font_text_extents): Encode as surrogates if falling back to
10911 functions that need UTF-16 wide chars.
10913 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10914 BMP as surrogates before looking up glyph index.
10916 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10918 * image.c (svg_load_image): Check for failure in return value of
10919 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10921 2008-07-25 Jason Rumney <jasonr@gnu.org>
10923 * w32font.c (Fx_select_font): Reverse sense of second arg.
10925 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10927 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10928 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10930 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10931 (PURESIZE): Use it.
10933 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10935 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10936 * m/alpha.h (TEXT_END):
10937 * m/ibmrs6000.h (TEXT_END):
10938 * m/macppc.h (TEXT_END):
10939 * s/darwin.h (TEXT_END):
10940 * s/msdos.h (TEXT_END): Remove, unused.
10941 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10942 * s/cygwin.h: Remove comment.
10944 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10945 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10946 * m/intel386.h (DOT_GLOBAL_START):
10947 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10948 (USG): Remove, file not used on USG platforms.
10950 * Makefile.in (HAVE_X11): Remove empty #else.
10952 2008-07-24 Andreas Schwab <schwab@suse.de>
10954 * fileio.c (Finsert_file_contents): Properly adjust undo list
10955 after format conversion.
10957 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10959 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10960 (menu_nav_ended): Remove.
10961 (create_menus): Remove signal connect for menu_nav_ended.
10962 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10964 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10966 2008-07-23 Jason Rumney <jasonr@gnu.org>
10968 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10970 (w32font_open): Set font type to gdi.
10972 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10974 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10976 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10977 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10979 * unexec.c (ADDR_CORRECT): Define unconditionally.
10981 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10983 * unexec.c: Remove code depending on !COFF and USG, the file is
10984 not used for such systems.
10986 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10987 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10988 (LD_SWITCH_SYSTEM_1): Remove, update users.
10990 * s/darwin.h (DATA_END):
10991 * m/intel386.h (DATA_END):
10992 * m/ibmrs6000.h (DATA_END):
10993 * m/alpha.h (DATA_END): Remove, unused.
10995 * config.in: Regenerate.
10996 * s/ms-w32.h (subprocesses): Define unconditionally.
10997 * s/template.h (subprocesses): Update comment.
10998 * s/vms.h (subprocesses):
10999 * s/usg5-4.h (subprocesses):
11000 * s/hpux10-20.h (subprocesses):
11001 * s/gnu-linux.h (subprocesses):
11002 * s/cygwin.h (subprocesses):
11003 * s/bsd-common.h (subprocesses):
11004 * s/aix4-2.h (subprocesses):
11005 * s/darwin.h (subprocesses): Do not define, defined by default now.
11007 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11008 Remove all references.
11009 (temacs): Add GNUstep specific ld flags.
11011 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11012 similarly to what X does.
11014 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11016 * nsfns.m (x-list-fonts): Remove.
11017 (syms_of_nsfns): Drop the x-list-fonts declaration.
11018 * nsterm.m: Get rid of remaining "//" comments.
11020 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
11022 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11024 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11025 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11026 (Fns_own_selection_internal, Fx_disown_selection_internal)
11027 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11029 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11030 ... */' style of docstrings. Doc fixes.
11032 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11034 * terminfo.c (UP, BC, PC): Undo previous change.
11036 * nsfns.m: Rename ns prefixed functions/variables to the
11037 corresponding x versions. Update references.
11039 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11041 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11043 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11045 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11046 Remove forwarding functions.
11047 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11049 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11051 (ns_frame_parm_handlers): Use the new names.
11052 (syms_of_nsfns): Move to the end of file.
11054 * nsterm.m (syms_of_nsterm): Move to the end of file.
11056 * dispnew.c (init_display): Remove code for X10.
11058 2008-07-22 Jason Rumney <jasonr@gnu.org>
11060 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11063 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11065 * nsterm.m (syms_of_nsterm): Remove debugging println.
11067 2008-07-22 David Reitter <david.reitter@gmail.com>
11069 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11070 Carbon implementation of the same functionality: execute arbitrary
11073 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11075 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11076 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11077 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11078 (Fx_display_mm_height, Fx_display_mm_width)
11079 (Fx_display_backing_store, Fx_display_visual_class)
11080 (Fx_display_save_under, Fx_open_connection)
11081 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11082 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11083 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11084 (Fx_display_pixel_width, Fx_display_pixel_height)
11085 (Fx_display_usable_bounds, Fx_display_planes)
11086 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11087 ... */' style of docstrings.
11089 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11091 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11094 * m/iris4d.h (mips): Do not define.
11095 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11097 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11103 * nsterm.m: Rename ns prefixed functions/variables to the
11104 corresponding x versions. Update references.
11106 * m/ibms390x.h (NO_REMAP): Do not undefine.
11108 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11110 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
11112 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11113 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11114 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11115 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11116 (Fns_display_mm_height, Fns_display_mm_width)
11117 (Fns_display_backing_store, Fns_display_visual_class)
11118 (Fns_display_save_under, Fns_open_connection)
11119 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11120 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11121 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11122 (Fns_display_pixel_width, Fns_display_pixel_height)
11123 (Fns_display_usable_bounds, Fx_display_planes)
11124 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11126 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11128 * print.c (print_object): Check print_depth before searching for
11131 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
11133 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11136 2008-07-21 Kenichi Handa <handa@m17n.org>
11138 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11140 2008-07-20 Andreas Schwab <schwab@suse.de>
11142 * syntax.c (find_start_pos, find_start_value)
11143 (find_start_value_byte, find_start_begv, find_defun_start)
11144 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11146 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11148 * s/sol2-3.h: Insert contents of s/sol2.h.
11149 (LD_SWITCH_SYSTEM): Remove redundant definition.
11150 * s/sol2.h: Remove, unused.
11152 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11154 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11156 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11158 * Makefile.in (ns_appdir): Fix typo in find command.
11160 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11162 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11164 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11165 added not supported anymore.
11167 * s/usg5-4-2.h (LIBS_SYSTEM):
11168 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11170 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11171 * s/lynxos.h (GETPGRP_NO_ARG):
11172 * s/hpux10-20.h (NO_SIOCTL_H):
11173 * s/gnu.h (GETPGRP_NO_ARG):
11174 * s/gnu-linux.h (NO_SIOCTL_H):
11175 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11176 * s/cygwin.h (GETPGRP_NO_ARG):
11177 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11178 (C_DEBUG_SWITCH): Remove duplicate definition.
11180 * m/ibms390.h: Remove boilerplate comments.
11182 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11184 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11185 (wait_reading_process_output): Remove code for SunOS, platform not
11186 supported anymore. Use SOLARIS2 instead of sun.
11188 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11190 * font.c (font_open_by_name): Under NS, default lface height to zero.
11191 (font_open_for_lface): Under NS, set size based on frame fontsize.
11192 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11193 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11195 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11197 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11198 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11199 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11201 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11202 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11203 * Makefile.in (clean): Clear out build destination dir.
11205 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11207 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11209 * lisp.h: Remove declaration of hash_remove.
11210 * nsgui.h: Remove redefinitions of hash_remove.
11211 * fns.c (hash_remove): Rename to hash_remove_from_table.
11213 2008-07-19 Seiji Zenitani <zenitani@mac.com>
11215 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11216 strdup() the family UTF8String before modifying it.
11218 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11220 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11221 NS_FACE_BACKGROUND with 0 instead of nil.
11222 * nsfont.m (nsfont_draw): Same.
11224 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
11226 * nsfns.m (ns_set_background_color): Fix crash.
11228 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
11230 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11232 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11234 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11236 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11238 * gtkutil.c: Include <config.h> instead of "config.h".
11240 * lisp.h (Foverlay_buffer): Add EXFUN.
11242 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11243 child process to complete child_setup. Undo 2005-09-21 change.
11245 * s/darwin.h: Mention setsid after vfork.
11247 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11249 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11250 Depend on macgui.h.
11252 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11253 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11255 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11257 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11259 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11260 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11261 Remove enumerators.
11263 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11264 Check if FACE_FROM_ID returns NULL.
11266 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11268 * w32inevt.c (change_frame_size): Remove extern declaration.
11269 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11272 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11274 * getloadavg.c: Revert last change (2008-07-15).
11276 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11278 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
11279 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
11282 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11285 * s/sol2-4.h: Reorganize conditionals.
11287 * ecrt0.c: Remove code depending on m68000, not used anymore.
11289 * fns.c (hash_remove): Make static.
11290 * lisp.h (hash_remove): Don't prototype.
11294 * m/macppc.h: Remove boilerplate comments.
11296 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11297 Solaris, which does not need them.
11299 * m/vax.h: Remove comments about unsupported systems.
11301 * s/darwin.h: Reorganize ifdefs.
11303 2008-07-17 Andreas Schwab <schwab@suse.de>
11305 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11307 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11309 Use SDATA. Follow coding convention of placing operators at
11310 beginning of next line rather than end of previous line, and placing
11311 spaces around infix operators.
11313 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11314 in case it was defined already.
11315 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11316 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11318 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11320 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11321 (ns_defined_color, ns_color_to_lisp): Declare.
11322 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11323 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11324 it's accepted even with USE_LISP_UNION_TYPE.
11325 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11326 (update_frame_tool_bar): Remove apparently obsolete tests for
11327 non-integerness of f->tool_bar_lines.
11328 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11329 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11330 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11331 (nsfont_open): Don't confuse NULL for Qnil.
11332 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11333 * menu.h (find_and_call_menu_selection):
11334 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11335 (find_and_return_menu_selection): Always return something.
11336 * frame.h: Include dispextern.h for Display_Info.
11337 (display_x_get_resource): Declare.
11339 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11341 * syntax.c: Remove stdio.h include accidentally introduced in
11343 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11345 * keyboard.c (handle_async_input, input_available_signal): Remove
11346 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11348 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11350 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11351 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11352 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11355 * keymap.c: Remove all NS-specific code.
11356 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11357 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11358 where_is_preferred_modifier, return a different value depending on how
11359 preferred is the binding.
11360 (where_is_internal): Adjust accordingly.
11361 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11362 Adjust to new preferred_sequence_p.
11363 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11364 * keyboard.c (parse_solitary_modifier): Not static any more.
11365 * keyboard.h (parse_solitary_modifier): Declare.
11367 2008-07-16 Andreas Schwab <schwab@suse.de>
11369 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11372 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
11374 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11375 that we don't move off the line.
11377 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11379 * keyboard.c (Qsuper): Remove.
11380 (parse_menu_item): Don't call where_is_internal specially for NS.
11382 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11384 * s/gnu-linux.h: Remove boilerplate comments.
11386 * m/alpha.h (__ELF__): Consolidate conditions.
11388 * m/m68k.h (linux): Use GNU_LINUX instead.
11389 Remove boilerplate comments.
11391 * m/intel386.h: Undo refactoring from previous change.
11392 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11393 too, remove dead code.
11394 (linux): Use GNU_LINUX instead.
11396 2008-07-16 Jason Rumney <jasonr@gnu.org>
11398 * w32gui.h: Repeat 26 June changes lost by last change.
11400 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11402 * systty.h: Remove code for Aix on 386, unsupported platform.
11404 * s/ms-w32.h: Remove boilerplate comments.
11405 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11407 * s/gnu-linux.h (TERM): Remove support.
11408 (HAVE_SYSVIPC): Remove, unused.
11409 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11412 * process.c: Remove support for IRIS, unused.
11413 Remove support for TERM, not relevant anymore.
11415 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11416 used with the definition.
11418 * s/aix4-2.h (static): Do not undef.
11420 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11422 (HAVE_SYSVIPC): Remove, unused.
11424 * m/hp800.h (CANNOT_DUMP): Do not undef.
11426 * m/alpha.h: Fix comment.
11428 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11429 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11430 used by this configuration.
11431 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11432 * unexec.c: Remove code depending on HPUX and
11433 USG_SHARED_LIBRARIES, not used with this file. Remove code
11434 depending on IRIS, unused. Remove if 0-ed code.
11436 * s/template.h: Remove comments about static.
11438 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11439 Remove if 0-ed code.
11440 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11441 were the same as the default.
11442 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11443 Remove boilerplate comments.
11444 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11445 (HAVE_SYSVIPC): Remove, unused.
11446 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11448 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11449 Remove boilerplate comments.
11450 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11451 Remove boilerplate comments.
11452 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11453 Remove boilerplate comments.
11454 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11456 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11457 USG systems which do not use DATA_SEG_BITS.
11458 Refactor code. Remove boilerplate comments.
11467 * s/msdos.h: Remove boilerplate comments.
11469 * m/iris4d.h: Remove boilerplate comments and code for systems that
11470 do not use this file.
11471 (IRIS_4D): Remove, unused.
11473 * m/mips.h: Remove boilerplate comments and code for systems that
11474 do not use this file.
11475 (SIGN_EXTEND_CHAR):
11476 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11477 * unexmips.c: Remove file, unused.
11479 * editfns.c (Fuser_full_name): Replace the only use of
11480 USER_FULL_NAME with its value.
11481 * config.in: Regenerate.
11483 2008-07-16 David Reitter <david.reitter@gmail.com>
11485 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11486 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11488 2008-07-16 Glenn Morris <rgm@gnu.org>
11490 * emacs.c (system-type): Doc fix.
11492 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11494 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11495 If the cache doesn't work, let's fix it, rather than work around it.
11497 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11499 * Makefile.in: Correct additions for nsfont.o in last commit.
11500 * nsfont.m: New file (forgot last commit).
11502 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11504 * callproc.c (set_initial_environment): Initialize
11505 Vprocess_environment under CANNOT_DUMP (fixes crash when
11506 batch-compiling for bootstrap).
11508 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11509 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11511 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11512 fix crash due to different init order.
11514 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11516 Changes and additions for NeXTstep windowing system (Cocoa and
11520 * config.in: Support defines and build commands for NS port.
11521 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11522 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11523 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11525 (struct face): Add synth_ital field.
11526 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11527 (init_display): Initialize Vinitial_window_system to "ns" when so
11529 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11530 (display_arg): Use under NS.
11531 (main): Under NS, allocate autorelease pool and handle command line
11532 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11533 (standard_args): Add NS-specific args.
11534 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11535 * font.c (DEFAULT_ENCODING): New variable.
11536 (font_find_for_lface): Use it.
11537 (syms_of_font): Load syms_of_nsfont under NS.
11538 * font.h: Declare nsfont_driver when compiled under NS.
11539 * fontset.c: When compiling under NS, include nsterm.h.
11540 (fontset_from_font): Autoconstruct fontset under NS.
11541 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11542 symbol, document and use it.
11543 (do_switch_frame): When for_deletion under Cocoa, add
11544 Fraise_frame(Qnil).
11545 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11546 (x_get_arg): Allow "yes" and "no" as boolean values.
11547 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11548 Qright under Cocoa.
11549 (focus-follows-mouse): Default to 0 under NS.
11550 * frame.h (enum output_method): Add output_ns.
11551 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11552 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11553 (FRAME_WINDOW_P): NS-specific definition.
11554 * fringe.c (max_used_fringe_bitmap): Make public.
11555 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11556 (getloadavg): Use NeXT code under descendant OS's.
11557 * image.c (includes and header section, x_create_bitmap_from_data)
11558 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11559 (image_background_transparent, x_clear_image_1)
11560 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11561 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11562 (x_to_xcolors, x_from_xcolors, x_disable_image)
11563 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11564 other GUIs, including XPM support using code originally written for
11566 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11568 (image_ascent): Use font metrics macros instead of direct struct field
11570 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11571 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11572 Also, handle NS as GTK for menu bar purposes.
11573 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11574 toolkit where they differ.
11575 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11576 use cachelist, still needed under NS.
11577 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11578 (struct widget_value): Define it here for menu.c.
11579 * keymap.c (includes): Include modifier internals.
11580 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11582 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11583 support for preferring sequences using certain modifiers, specified by
11584 the FIRSTONLY argument.
11585 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11586 under NS GNUstep implementation.
11587 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11588 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11589 * menu.c: Include nsterm.h under NS.
11590 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11591 (free_menubar_widget_tree_value, update_submenu_strings)
11592 (find_and_call_menu_selection): Treat NS as X and NT.
11593 (find_and_return_menu_selection): New function, used for popup menus.
11600 * nsterm.m: New files.
11601 * process.c (wait_reading_process_output): Under NS, call ns_select()
11602 instead of plain select().
11603 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11604 beginning of buffer.
11605 * sysselect.h (init_process): Rename when compiling under Cocoa to
11606 avoid name conflict.
11607 * termhooks.h (display_info): Add ns_display_info to union.
11608 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11609 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11611 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11612 unexec() signature. (Note, this will dump, but the resulting file
11613 crashes; unexosx is used instead; keeping around for reference and
11614 possible aid in getting dump working under GNUstep.)
11615 * w32gui.h (button_type, widget_value): Remove definitions (now in
11617 * window.c: Include nsterm.h when compiling under NS.
11618 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11619 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11620 other GUI windowing systems.
11621 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11623 (x_consider_frame_title): Under NS, set icon type and frame
11624 modified-state indicator; use ns_set_name_as_filename() when using
11626 (update_window_cursor): Make public when compiling under NS.
11627 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11628 (hourglass_atimer, Vhourglass_delay
11629 * xfaces.c (header section, init_frame_faces, clear_font_table)
11630 (defined_color, unload_color, x_face_list_fonts)
11631 (prepare_face_for_display): Add NS support parallel to other GUIs.
11632 Emulate GCs like other non-X GUIs.
11633 (split_font_name): Don't lowercase font name under NS.
11634 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11636 * s/darwin.h: Add support for compilation under NS.
11638 2008-07-15 Jason Rumney <jasonr@gnu.org>
11640 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11641 (w32_show_hourglass): Rename from show_hourglass.
11642 (w32_hide_hourglass): Rename from hide_hourglass.
11643 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11644 (Vhourglass_delay): Declare extern.
11645 (hourglass_started): Remove.
11647 * xdisp.c (Vhourglass_delay): Remove static.
11648 (hourglass_started, start_hourglass, cancel_hourglass):
11649 Don't include these versions on WINDOWSNT.
11651 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11653 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11654 variables (formerly in xfns.c).
11655 (show_hourglass, hide_hourglass): New prototypes (same).
11656 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11657 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11659 (syms_of_xdisp): Declare/initialize display-hourglass,
11660 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11661 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11662 formerly in xfns.c.
11663 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11664 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11665 (start_hourglass, cancel_hourglass): Remove.
11666 (show_hourglass, hide_hourglass): Remove prototypes and static
11668 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11669 hourglass_atimer, hourglass_shown_p declaration/initialization.
11670 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11671 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11672 (start_hourglass, cancel_hourglass): Remove.
11673 (show_hourglass, hide_hourglass): Remove prototypes and static
11675 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11676 hourglass_atimer, hourglass_shown_p declaration/initialization.
11677 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11678 (DEFAULT_HOURGLASS_DELAY): Remove.
11679 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11680 hourglass_shown_p declaration/initialization.
11682 2008-07-14 Jason Rumney <jasonr@gnu.org>
11684 * w32fns.c (w32_get_arg): Remove wrapper function.
11685 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11687 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11689 2008-07-14 Kenichi Handa <handa@m17n.org>
11691 * xfont.c (xfont_open): Add workaround for X's bug.
11693 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11695 * fontset.c: Include <stdio.h> unconditionally.
11697 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
11699 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11702 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11704 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11707 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11709 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11710 (SPECIAL_EMACS_INT):
11711 * m/ia64.h (SPECIAL_EMACS_INT):
11712 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11713 * s/gnu.h (NLIST_STRUCT):
11714 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11715 * s/gnu-linux.h (LINUX):
11716 * s/msdos.h (HAVE_FACES):
11717 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11720 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11723 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11725 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11726 always defined as int.
11728 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11729 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11730 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11731 * s/freebsd.h (HAVE_WAIT_HEADER):
11732 * s/bsd-common.h (HAVE_UNION_WAIT):
11733 * s/aix4-2.h (HAVE_WAIT_HEADER):
11734 * m/mips.h (HAVE_UNION_WAIT):
11735 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11736 (COFF, static): Do not define, they are undefined later in the file.
11738 * process.c (update_status): Don't use a union.
11740 (sigchld_handler): Use int instead of WAITTYPE.
11742 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
11744 * indent.c (Fvertical_motion): Restore hscroll before moving to
11747 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11749 * lisp.h: Remove left over code.
11751 2008-07-11 Andreas Schwab <schwab@suse.de>
11753 * lisp.h: Fix logic in last change.
11755 * menu.h: New file.
11756 * menu.c: Include it.
11757 * xmenu.c: Likewise.
11758 * Makefile.in: Update dependencies.
11760 2008-07-11 Kenichi Handa <handa@m17n.org>
11762 * fontset.c (fontset_from_font): Cancel the previous change.
11764 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11769 * alloc.c: Replace all references of NO_UNION_TYPE with
11770 USE_LISP_UNION_TYPE.
11772 * m/xtensa.h (NO_UNION_TYPE):
11773 * m/vax.h (NO_UNION_TYPE):
11774 * m/template.h (NO_UNION_TYPE):
11775 * m/sparc.h (NO_UNION_TYPE):
11776 * m/mips.h (NO_UNION_TYPE):
11777 * m/macppc.h (NO_UNION_TYPE):
11778 * m/m68k.h (NO_UNION_TYPE):
11779 * m/iris4d.h (NO_UNION_TYPE):
11780 * m/intel386.h (NO_UNION_TYPE):
11781 * m/ibms390x.h (NO_UNION_TYPE):
11782 * m/ibms390.h (NO_UNION_TYPE):
11783 * m/ibmrs6000.h (NO_UNION_TYPE):
11784 * m/ia64.h (NO_UNION_TYPE):
11785 * m/hp800.h (NO_UNION_TYPE):
11786 * m/arm.h (NO_UNION_TYPE):
11787 * m/amdx86-64.h (NO_UNION_TYPE):
11788 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11789 defining it the same.
11791 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
11793 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11795 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11812 * s/vms.h: Remove references to unused variables.
11814 2008-07-10 Andreas Schwab <schwab@suse.de>
11816 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11817 pattern before matching the generic family.
11819 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11826 * s/darwin.h: Remove dead code.
11839 * m/amdx86-64.h: Remove dead code and references to unused
11840 and compiler defined symbols.
11843 * unexelf.c: Remove references to desupported systems.
11845 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11847 * m/powermac.h: Remove boilerplate comments.
11848 (NO_REMAP): Remove unused definition.
11850 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11853 2008-07-10 Kenichi Handa <handa@m17n.org>
11855 * xfont.c (xfont_open): Log the reason of failure.
11857 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11859 * fontset.c (fontset_get_font_group):
11860 * font.c (font_check_otf): Specify argument types.
11862 2008-07-09 Kenichi Handa <handa@m17n.org>
11864 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11865 non-ASCII char is found.
11867 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11868 (reorder_font_vector): Change the arg preferred_family to font.
11869 Prefer the spec matching with font.
11870 (fontset_get_font_group): New function.
11871 (fontset_find_font): Change the format of an element of a realized
11872 fontset. Use fontset_get_font_group.
11873 (fontset_font): Try the current fontset, the default fontset, the
11874 fallbacks of the current fontset, and the fallbacks of the default
11875 fontset in this order.
11876 (face_for_char): Delete the shortcut to use the current font.
11877 (fontset_from_font): Don't set fonts for Latin in the fontset.
11879 * font.h (font_make_object, font_match_p): Adjust prototypes.
11881 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11883 * font.c (font_make_object): New arg entity and pixelsize.
11884 (font_check_otf_features, font_check_otf): New functions.
11885 (font_match_p): Check :lang, :script, and :otf properties.
11887 * xfont.c (xfont_open): Adjust it for the change of
11889 (xfont_text_extents): Fix initial setting of metrics.
11891 * ftfont.c (struct ftfont_info): New member index, delete member
11892 fc_charset_idx. Make the member order compatible with struct
11894 (fc_charset_table): Change charset names to registry names.
11895 (ftfont_pattern_entity): Delete the args registry and
11896 fc_charset_idx. Change the value of :font-entity property
11897 to (FONTNAME . INDEX). Always set :registry property to
11899 (struct ftfont_cache_data): New struct.
11900 (ftfont_lookup_cache): New arg for_face.
11901 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11902 (ftfont_driver): Set the member otf_capability.
11903 (ftfont_get_charset): Adjust it for the change of
11905 (OTF_TAG_SYM): New macro.
11906 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11907 for the change of fc_charset_table.
11908 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11909 ftfont_pattern_entity. Add FC_INDEX to objset.
11910 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11911 and ftfont_pattern_entity.
11912 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11913 font_make_object, struct ftfont_info.
11914 (ftfont_has_char): Use ftfont_get_fc_charset.
11915 (ftfont_otf_features, ftfont_otf_capability): New functions.
11916 (ftfont_shape): Use ftfont_get_otf.
11917 (ftfont_text_extents): Fix initial setting of metrics.
11919 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11920 member order compatible with struct ftfont_info.
11921 (xftfont_open): Add FC_CHARSET to the pattern. Set
11922 xftfont_info->ft_size. Don't unlock the face. Check BDF
11923 properties if appropriate.
11924 (xftfont_close): Unlock the face.
11925 (xftfont_anchor_point, xftfont_shape): Deleted.
11926 (syms_of_xftfont): Don't set members anchor_point and shape of
11929 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11932 * w32font.c (w32font_open): Adjust it for the change of
11934 (w32font_open_internal): Don't set properties of font_object here.
11936 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
11938 * macfns.c (x_create_tip_frame):
11939 * w32fns.c (x_create_tip_frame):
11940 * xfns.c (x_create_tip_frame): Pass parameter argument to
11941 face-set-after-frame-default.
11943 * xfaces.c (Finternal_merge_in_global_face): Save merged
11944 attributes for the default face back into the face vector.
11946 2008-07-08 Andreas Schwab <schwab@suse.de>
11948 * fontset.h: Declare fontset_from_font. Don't declare
11949 new_fontset_from_font and fontset_from_font_name.
11950 * xterm.c: Include "fontset.h".
11951 * Makefile.in (xterm.o): Update dependencies.
11953 2008-07-08 Glenn Morris <rgm@gnu.org>
11955 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11956 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11958 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
11960 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11961 (x_set_frame_parameters): Don't bind it.
11963 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
11965 * w32fns.c (map_w32_filename): Declare extern.
11967 2008-07-07 Jason Rumney <jasonr@gnu.org>
11969 * w32term.c (WS_EX_LAYERED): Define if not already.
11971 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
11973 * xfaces.c (set_font_frame_param): Don't try to set the font
11974 parameter if it is still unspecified in the lface.
11976 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11978 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11979 face if it didn't already exist.
11981 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11983 2008-07-05 Andreas Schwab <schwab@suse.de>
11985 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11987 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11989 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11991 (IT_DISPLAYING_WHITESPACE): New macro.
11992 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11993 when word-wrapping. Simplify word-wrapping logic. Use correct
11994 pixel positions when saving copies of the iterator.
11995 (display_line): Use proper wrap point if the last character on a
11996 line was preceded by whitespace.
11998 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12000 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12002 2008-07-04 Kenichi Handa <handa@m17n.org>
12004 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12006 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12008 2008-07-02 Jason Rumney <jasonr@gnu.org>
12010 * xfns.c (syms_of_xfns): Only define x-select-font when both
12011 HAVE_FREETYPE and USE_GTK.
12013 * xdisp.c (next_element_from_display_vector): Move assignment out
12016 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12018 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12020 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12021 (syms_of_fileio): Initialize and export them.
12022 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12024 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12025 (Fsystem_move_file_to_trash): New function.
12026 (syms_of_w32fns): Export it to lisp.
12028 2008-07-01 Jason Rumney <jasonr@gnu.org>
12030 * w32font.c (w32font_text_extents): Don't count overhang as part
12033 2008-06-30 Miles Bader <miles@gnu.org>
12035 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12036 Add `avoid_cursor_p' field.
12038 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12039 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12040 (append_glyph, append_composite_glyph, produce_image_glyph)
12041 (append_stretch_glyph): Initialize avoid_cursor_p.
12042 (get_it_property): Rename from `get_line_height_property'.
12043 (x_produce_glyphs): Use get_it_property.
12044 (handle_line_prefix, push_display_prop): New functions.
12045 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12046 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12048 (syms_of_xdisp): Initialize them.
12050 2008-06-30 Kenichi Handa <handa@m17n.org>
12052 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12053 XftDefaultSubstitute (they are called in XftFontMatch).
12054 (xftfont_open): Fix args to ftfont_font_format.
12056 * ftfont.c (fc_charset_table): New member lang.
12057 (ftfont_resolve_generic_family): New arg pattern.
12058 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
12059 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12060 (ftfont_open): Fix args to ftfont_font_format.
12061 (ftfont_font_format): New arg filename.
12063 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
12065 * xfaces.c (Finternal_merge_in_global_face): If default face was
12066 modified, realize it again. Update the font face attribute.
12068 2008-06-29 Jason Rumney <jasonr@gnu.org>
12070 * w32term.c (x_set_frame_alpha): Fix logic.
12072 2008-06-29 Kenichi Handa <handa@m17n.org>
12074 * fontset.c (Finternal_char_font): Return font-object instead of
12077 * composite.c (get_composition_id): Fix the width calculation for TAB.
12079 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12081 * indent.c (Fvertical_motion): Properly handle float column arg.
12083 2008-06-28 Jason Rumney <jasonr@gnu.org>
12085 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12086 (pfnSetLayeredWindowAttributes): New function pointer.
12087 (w32_initialize): Initialize it when supported.
12088 (x_set_frame_alpha): New function.
12090 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12091 (w32_frame_parm_handlers): Set alpha handler.
12093 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12095 2008-06-27 Jason Rumney <jasonr@gnu.org>
12097 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12098 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12099 (w32_to_x_charset, x_to_w32_charset)
12100 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12101 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12102 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12103 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12104 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12105 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12106 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12107 (Qw32_charset_unicode): Remove.
12108 (syms_of_w32fns): Update for above changes.
12110 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12111 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12112 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12113 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12114 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12115 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12116 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12117 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12118 (syms_of_w32font): Update for above changes.
12120 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12122 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12124 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12126 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12127 Eli Zaretskii <eliz@gnu.org>
12129 * makefile.w32-in (LOCAL_FLAGS):
12130 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12132 * sysdep.c (_spawnlp, _getpid):
12133 Declare with explicit _cdecl instead of _CRTAPI1.
12135 * editfns.c (Fget_internal_run_time):
12136 Check for WINDOWSNT with #ifdef, not #if.
12138 2008-06-26 Jason Rumney <jasonr@gnu.org>
12140 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12142 * w32term.c (x_draw_glyph_string_foreground)
12143 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12144 Use FONT_HANDLE macro.
12145 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12147 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12148 (uniscribe_encode_char): Use FONT_HANDLE macro.
12150 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12151 (w32font_text_extents): Use precast w32_font.
12152 (w32font_close): Free cached metrics.
12153 (w32font_open_internal): Allocate space for name on stack.
12155 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
12157 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12159 2008-06-26 Jason Rumney <jasonr@gnu.org>
12161 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12162 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12164 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12166 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12168 2008-06-26 Jason Rumney <jasonr@gnu.org>
12170 * w32bdf.c, w32bdf.h: Remove obsolete files.
12172 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12174 * w32gui.h: Don't include w32bdf.h.
12175 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12176 Remove obsolete font support.
12178 * w32font.h (struct w32font_info): Remove compat_w32_font.
12180 (FONT_COMPAT): Remove obsolete macro.
12182 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12183 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12184 (w32font_open_internal): Remove compat code. Set new hfont member.
12185 (Fx_select_font): Use new hfont member.
12187 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12188 (uniscribe_encode_char): Use new hfont member.
12190 * w32term.c (x_draw_glyph_string_foreground)
12191 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12192 (x_draw_glyph_string): Use metrics in w32font_info.
12194 2008-06-26 Kenichi Handa <handa@m17n.org>
12196 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12198 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12204 * m/mips-siemens.h:
12226 * s/uxpv.h: Remove support for obsolete systems.
12227 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
12228 Remove, insert contents in s/hpux10-20.h.
12229 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12230 Remove, insert contents in s/aix4-2.h.
12231 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12232 * s/bsd4-3.h: Rename to ...
12233 * s/bsd-common.h: ... this.
12262 * s/template.h: Remove references to obsolete variables.
12264 * Makefile.in: Add dependencies for all unexec files.
12265 (admindir): Remove unused variable.
12266 (UNEXEC_SRC): Remove references.
12268 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
12270 * xfns.c (x_default_font_parameter): If Xft is available, first
12271 try Monospace-12 for the default font.
12273 2008-06-25 Jason Rumney <jasonr@gnu.org>
12275 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12277 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12279 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12281 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12283 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
12285 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12286 <scroll-conservatively>: Fix typo in docstring.
12288 * xselect.c (Fx_send_client_event): Doc fix.
12290 2008-06-25 Kenichi Handa <handa@m17n.org>
12292 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12294 * font.c (font_parse_fcname): Remove unused variables.
12295 (font_sort_entites): Delete the arg SPEC. Caller changed.
12296 Fix for the case of ! best_only.
12297 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12299 * lisp.h (Fstring_to_unibyte): EXFUN it.
12301 * character.h (str_to_unibyte): Extern it.
12303 * character.c (str_to_unibyte): New function.
12305 * fns.c (Fstring_to_unibyte): New function.
12306 (syms_of_fns): Defsubr it.
12308 2008-06-24 Kenichi Handa <handa@m17n.org>
12310 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12312 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12314 2008-06-24 Andreas Schwab <schwab@suse.de>
12316 * Makefile.in (${lispsource}loaddefs.el): Rename from
12317 ../lisp/loaddefs.el.
12318 (bootstrap-clean): Do what distclean does but don't remove
12320 (distclean): Depend on bootstrap-clean and remove Makefile.
12322 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
12324 * buffer.h (struct buffer): New member word_wrap.
12326 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12328 (init_buffer_once): Initialize them.
12330 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12331 line_wrap enum possessing three possible values.
12333 * termopts.h: Replace truncate_partial_width_windows with
12334 Vtruncate_partial_width_windows.
12336 * dispnew.c (direct_output_for_insert): Avoid direct output when
12337 inserting a space with word wrap on.
12339 * indent.c (compute_motion): Obey integer values of
12340 truncate-partial-width-windows.
12342 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12343 replacing truncate_partial_width_windows.
12344 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12345 truncate only if the window width is below that integer.
12346 (start_display, resize_mini_window, produce_stretch_glyph)
12347 (display_string, move_it_in_display_line_to): Use line_wrap.
12348 (back_to_previous_visible_line_start, reseat_1): Reset
12349 string_from_display_prop_p.
12350 (display_line): Extend default face to end of line when wrapping.
12352 2008-06-24 Kim F. Storm <storm@cua.dk>
12354 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12355 to wrap continued lines at word boundaries.
12357 2008-06-24 Jason Rumney <jasonr@gnu.org>
12359 * font.c (Ffont_face_attributes): Multiply pixel size before point
12360 conversion to avoid multiplying rounding error.
12362 2008-06-23 Jason Rumney <jasonr@gnu.org>
12364 * w32term.c (x_draw_glyph_string_background)
12365 (x_draw_glyph_string): Remove old bdf font code.
12367 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12369 2008-06-22 Kenichi Handa <handa@m17n.org>
12371 * font.c (font_find_for_lface): Try the adstyle specified in
12372 the property of LFACE_FONT of LFACE (if any).
12374 2008-06-21 Seiji Zenitani <zenitani@mac.com>
12375 Ryo Yoshitake <ryo@shiftmode.net>
12377 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12379 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12381 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12382 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12383 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12384 (witness-emacs): Remove.
12385 (lisp, shortlisp): Move loaddefs.el earlier.
12386 (mostlyclean): Forget about witness-emacs.
12388 2008-06-22 Glenn Morris <rgm@gnu.org>
12390 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12391 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12393 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12395 * Makefile.in (PRECOMP): Remove.
12396 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12397 (witness-emacs): Run `compile-first'.
12398 (.el.elc): Use the new compile-onefile target.
12400 2008-06-21 Kenichi Handa <handa@m17n.org>
12402 * xftfont.c (xftfont_open): Handle QCembolden only when
12403 FC_EMBOLDEN is defined.
12405 2008-06-21 Andreas Schwab <schwab@suse.de>
12407 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12408 (.el.elc): Likewise.
12410 2008-06-21 Miles Bader <miles@gnu.org>
12412 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12413 build dir, not the lisp source dir.
12415 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12417 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12418 (bootstrapclean): Remove.
12419 (.el.elc): New rule.
12420 (PRECOMP): New var.
12421 (../lisp/subdirs.el): Remove.
12422 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12423 (witness-emacs): New target.
12424 (mostlyclean): Remove witness-emacs as well.
12425 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12426 Add witness-emacs dependency.
12428 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
12430 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12431 defined by the font.
12433 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12435 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12436 (bootstrap-clean): New target that keeps TAGS around.
12437 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12438 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12440 2008-06-20 Jason Rumney <jasonr@gnu.org>
12442 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12443 Remove obsolete font code.
12445 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12446 to determine language support.
12448 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12450 * sysdep.c (cfsetspeed): New fun extracted from the code.
12451 (cfmakeraw): Move before first use.
12453 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12455 * sysdep.c (cfmakeraw): Provide fallback implementation.
12456 (serial_configure): Provide fallback implementation of cfsetspeed.
12458 2008-06-20 Kenichi Handa <handa@m17n.org>
12460 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12463 * fontset.c (fontset_from_font): Copy font_spec before changing
12466 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12468 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12470 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12471 for explicit `font' parameters.
12473 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12475 2008-06-19 Kenichi Handa <handa@m17n.org>
12477 * frame.c: Include <ctype.h>.
12478 (x_set_font_backend): Allow spacing characters in the X resource
12481 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12483 * w32fns.c, xfns.c (Qfont_param): New var.
12484 (syms_of_w32fns): Initialize it.
12485 (x_default_font_parameter): Record explicit `font' into
12488 2008-06-18 Kenichi Handa <handa@m17n.org>
12490 * font.c (font_parse_xlfd): Fix previous change.
12491 (font_parse_fcname): Don't use :fc-unknown-spec.
12492 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12493 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12494 (font_add_log): Prepend the driver name to the resulting fonts.
12496 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12497 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12498 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12500 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12501 (QCembolden): New variables.
12502 (syms_of_xftfont): DEFSYM them.
12503 (xftfont_open): Call XftFontMatch. Don't trust the result of
12504 XftTextExtents8 if the pixel_size is less than 5.
12506 2008-06-18 Andreas Schwab <schwab@suse.de>
12508 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12509 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12511 2008-06-18 Jason Rumney <jasonr@gnu.org>
12513 * w32font.c (w32font_list, w32font_match): Add logging.
12515 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12517 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
12519 * font.c (font_parse_fcname): Store divider characters for
12520 unknown-spec list. For known key symbols, intern using correct
12523 2008-06-17 Kenichi Handa <handa@m17n.org>
12525 * xfaces.c (realize_default_face): If the frame is not on window
12526 system, set the fontset of face to nil.
12528 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12530 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12532 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
12534 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12535 (build_font_name_from_vector): Delete externs.
12537 * xfaces.c (struct font_name): Don't declare.
12539 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12541 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12543 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
12545 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12547 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
12549 * font.c (Ffont_spec): Fix usage in docstring.
12550 (Ffont_face_attributes): Doc fix.
12552 2008-06-16 Andreas Schwab <schwab@suse.de>
12554 * font.c (Ffont_face_attributes): Fix definition.
12556 2008-06-16 Jason Rumney <jasonr@gnu.org>
12558 * font.h (font_style_symbolic_from_value): Remove.
12560 * font.c (font_style_symbolic_from_value): Remove.
12561 (font_style_symbolic): Revert to pre 2008-06-13 version.
12563 * w32font.c (w32_to_fc_weight): New function.
12564 (w32font_full_name, logfont_to_fcname): Use it.
12566 2008-06-16 Kenichi Handa <handa@m17n.org>
12568 * font.c (font_check_object): Delete it.
12569 (font_clear_cache): Check if a font-object is alive.
12570 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12571 font-object to nil.
12572 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12573 (font_at): Don't call font_check_object.
12574 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12576 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12578 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12580 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
12582 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12584 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
12586 * font.c (font_parse_fcname): Only one decimal point.
12587 (font_unparse_fcname): Handle data in family and foundry indices
12588 as symbols, not strings.
12589 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12591 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12593 * font.h (font_unparse_gtkname): Add prototype.
12595 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12597 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12599 2008-06-15 Andreas Schwab <schwab@suse.de>
12601 * font.c (font_update_drivers): Fix crash when no drivers match.
12603 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12605 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12606 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12608 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12610 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12612 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12614 * process.c (Fserial_process_configure, Fprocess_send_eof):
12615 Use EQ to compare Lisp_Objects.
12617 2008-06-13 Jason Rumney <jasonr@gnu.org>
12619 * w32fns.c (Fw32_select_font): Remove old font API function.
12621 * w32font.c (logfont_to_fcname): New function.
12622 (Fx_select_font): New font dialog function compatible with
12623 GTK/fontconfig version.
12625 * font.c (font_style_symbolic_from_value): New function.
12626 (font_style_symbolic): Use it.
12628 * font.h (font_style_symbolic_from_value): Declare new function.
12630 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
12632 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12633 <font-width-table>: Fix typos in docstrings.
12635 2008-06-13 Daniel Engeler <engeler@gmail.com>
12637 These changes add serial port access.
12638 * process.c: Add HAVE_SERIAL.
12639 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12640 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12641 (list_processes_1, select_wrapper, Fstop_process)
12642 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12643 (status_notify): Modify to handle serial processes.
12644 [HAVE_SERIAL] (Fserial_process_configure)
12645 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12647 * process.h (struct Lisp_Process): Add `type'.
12648 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12650 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12652 (serial_open, serial_configure): New functions.
12653 * w32.h: Add FILE_SERIAL.
12654 (struct _child_process): Add ovl_read, ovl_write.
12656 2008-06-13 Kenichi Handa <handa@m17n.org>
12658 * dispextern.h (enum lface_attribute_index): New member
12659 LFACE_FOUNDRY_INDEX.
12661 * font.c (font_score): Delete arg alternate_families. Check only
12662 weight, slant, width, and size. Ignore the difference of alias
12664 (font_sort_entites): Adjust for the above change. Reflect the
12665 order of font-driver to scores.
12666 (font_list_entities): Don't check alternate_familes here.
12667 (font_clear_prop): Handle foundry.
12668 (font_update_lface): Don't parse "foundry-family" form here.
12669 Handle FONT_FOUNDRY_INDEX.
12670 (font_find_for_lface): Likewise. Handle alternate families here.
12671 If registry is nil, try iso8859-1 and ascii-0.
12672 (font_open_for_lface): Pay attention to size in ENTITY.
12673 (font_open_by_name): Simplify by calling font_load_for_lface.
12674 (free_font_driver_list): Delete it.
12675 (font_update_drivers): Preserve the order of backends.
12676 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12677 of font_score and font_sort_entites.
12678 (font_update_sort_order): Likewise.
12680 * xfaces.c (LFACE_FOUNDRY): New macro.
12681 (check_lface_attrs): Check foundry.
12682 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12683 (merge_face_vectors): Check foundry.
12684 (merge_face_ref): Likewise.
12685 (Finternal_set_lisp_face_attribute): Likewise.
12686 (x_update_menu_appearance): Likewise.
12687 (Finternal_get_lisp_face_attribute): Likewise.
12688 (lface_hash): Likewise.
12689 (lface_same_font_attributes_p): Likewise.
12690 (x_supports_face_attributes_p): Likewise.
12691 (tty_supports_face_attributes_p): Likewise.
12692 (Finternal_set_alternative_font_family_alist): Intern strings.
12693 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12694 (realize_default_face): Set LFACE_FOUNDRY (lface).
12696 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12697 font-driver at first.
12699 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12701 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12703 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12705 2008-06-12 Jim Meyering <meyering@redhat.com>
12707 Make unexec_free handle NULL the same way free does.
12708 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12710 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12712 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12713 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12714 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12715 (WEAK_ALIAS): Simplify.
12716 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12717 when searching a unibyte buffer.
12719 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
12721 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12723 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
12725 * w32font.c: Include ctype.h.
12727 2008-06-11 Jason Rumney <jasonr@gnu.org>
12729 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12730 misreported as space.
12731 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12732 as aliases for registry iso10646-1.
12734 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12736 * buffer.c (clone_per_buffer_values): Skip `name'.
12738 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
12740 * font.c (font_parse_fcname): Fix last change; accept decimal
12741 points in font size.
12743 2008-06-10 Jason Rumney <jasonr@gnu.org>
12745 * w32uniscribe.c (add_opentype_font_name_to_list):
12746 Skip non unicode fonts.
12748 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12750 * xfns.c (Fx_font_dialog): New function.
12752 * gtkutil.c (xg_dialog_response_cb): Rename from
12753 xg_file_response_callback.
12754 (pop_down_dialog): Rename from pop_down_file_dialog.
12755 (xg_get_file_name): Callers changed.
12756 (xg_get_font_name): New function.
12758 * gtkutil.h (xg_get_font_name): Insert prototype.
12760 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12762 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12763 x_underline_minimum_display_offset.
12764 (syms_of_xdisp): Declare it here rather than in xterm.c.
12765 * dispextern.h (underline_minimum_offset): Declare it.
12766 * w32term.c (x_draw_glyph_string): Use it.
12767 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12768 (syms_of_xterm): Don't declare it any more.
12769 (x_draw_glyph_string): Adjust to the new name.
12771 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
12773 * xterm.c (x_underline_minimum_display_offset): New var.
12774 (x_draw_glyph_string): Use it.
12775 (syms_of_xterm): Declare it.
12777 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12779 * font.c (font_parse_fcname): Accept GTK-style font names too.
12781 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12783 * dired.c (file_name_completion): Don't return t if the match is exact
12784 but with different capitalization.
12785 * minibuf.c (Ftry_completion): Simplify.
12787 * window.c (Vwindow_point_insertion_type): New var.
12788 (set_window_buffer): Use it.
12789 (syms_of_window): Init and export it to Lisp.
12791 2008-06-10 Kenichi Handa <handa@m17n.org>
12793 * font.h (font_intern_prop): Prototype adjusted.
12795 * font.c (font_intern_prop): New arg force_symbol.
12796 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12797 Adjust for the change of font_intern_prop.
12799 * ftfont.c (ftfont_pattern_entity):
12800 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12802 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12803 the change of font_intern_prop.
12805 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
12807 * w32menu.c (digest_single_submenu): Declare extern.
12809 2008-06-09 Jason Rumney <jasonr@gnu.org>
12811 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12813 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12814 (parse_single_submenu): Remove.
12815 (digest_single_submenu): Remove.
12816 (syms_of_w32menu): Don't initialise variables that have moved
12818 (set_frame_menubar): Sync with version in xmenu.c.
12819 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12821 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12824 2008-06-09 Jason Rumney <jasonr@gnu.org>
12826 Changes to w32 files related to the move of common menu code
12827 to menu.c on 2008-06-08 by Chong Yidong.
12829 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12831 (single_keymap_panes, push_menu_item, push_menu_pane):
12832 Make globally visible.
12834 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12835 (local_free, malloc_widget_value, free_widget_value)
12836 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12837 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12838 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12839 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12840 (menu_items, menu_items_allocated, menu_items_used)
12841 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12842 (init_menu_items, finish_menu_items, discard_menu_items)
12843 (grow_menu_items, push_submenu_start, push_submenu_end)
12844 (push_left_right_boundary, push_menu_pane, push_menu_item)
12845 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12846 (free_menubar_widget_tree_value, parse_single_submenu)
12847 (update_submenu_strings): Remove functions.
12848 (xmalloc_widget_value): Remove and declare extern.
12850 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12853 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12854 (local_heap, local_alloc, local_free, malloc_widget_value)
12855 (free_widget_value): Define here.
12857 2008-06-09 Kenichi Handa <handa@m17n.org>
12859 * font.h (Qascii_0): Extern it.
12861 * font.c (Qascii_0): New variable.
12862 (syms_of_font): DEFSYM it.
12863 (font_open_by_name): If the registry "iso8859-1" fails, try also
12866 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12868 2008-06-08 Kenichi Handa <handa@m17n.org>
12870 * .gdbinit (xfont): New command.
12872 2008-06-08 Andreas Schwab <schwab@suse.de>
12874 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12875 * Makefile.in (menu.o): Update dependencies.
12877 * Makefile.in (obj): Always add menu.o.
12878 * emacs.c (main): Always call syms_of_menu.
12879 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12881 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
12883 * Makefile.in: Compile menu.c.
12885 * lisp.h: Declare syms_of_menu.
12887 * emacs.c (main): Call syms_of_menu.
12889 * keyboard.h: Relocate platform-independent menu definitions from
12892 * menu.c: New file. Relocate platform-independent menu
12893 definitions from xmenu.c. Suggested by Adrian Robert.
12895 * xmenu.c: Remove platform-independent menu definitions.
12896 (menu_items, menu_items_inuse, menu_items_allocated)
12897 (menu_items_used, menu_items_n_panes)
12898 (menu_items_submenu_depth): Move to keyboard.h.
12899 (init_menu_items, finish_menu_items, unuse_menu_items)
12900 (discard_menu_items, restore_menu_items, save_menu_items)
12901 (grow_menu_items, push_submenu_start, push_submenu_end)
12902 (push_left_right_boundary, push_menu_pane, push_menu_item)
12903 (keymap_panes, single_keymap_panes, single_menu_item)
12904 (list_of_panes, list_of_items, find_and_call_menu_selection)
12905 (xmalloc_widget_value, free_menubar_widget_value_tree)
12906 (parse_single_submenu, digest_single_submenu)
12907 (update_submenu_strings): Move to menu.c.
12909 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12911 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12913 2008-06-06 Miles Bader <miles@gnu.org>
12915 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12916 face, not frame default.
12918 2008-06-05 Martin Rudalics <rudalics@gmx.at>
12920 * window.c (pop_up_windows, pop_up_frames)
12921 (display_buffer_reuse_frames, Vpop_up_frame_function)
12922 (Vdisplay_buffer_function, Veven_window_heights)
12923 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12924 (Vspecial_display_function, Vsame_window_buffer_names)
12925 (Vsame_window_regexps, split_height_threshold)
12926 (Vsplit_window_preferred_function): Move those vars to window.el.
12927 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12928 (Fdisplay_buffer): Move those functions to window.el.
12929 (syms_of_window): Remove corresponding declarations.
12930 (display_buffer): New function.
12931 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12932 * dispnew.c (Flast_nonminibuf_frame): New function.
12933 * buffer.c (Fpop_to_buffer): Move to window.el.
12935 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12937 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12939 2008-06-05 Kenichi Handa <handa@m17n.org>
12941 * coding.c (detect_coding): Fix previous change.
12942 (detect_coding_system): Likewise.
12944 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12946 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12948 * keymap.c (Vminibuffer_local_filename_must_match_map):
12949 Rename from Vminibuffer_local_must_match_filename_map.
12951 * minibuf.c (Fcompleting_read): Adjust accordingly.
12952 * commands.h: Rename declaration as well.
12954 2008-06-05 Kenichi Handa <handa@m17n.org>
12956 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12958 (Ffont_put): Likewise.
12960 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12963 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12966 * xfaces.c (realize_x_face): If the font-related face attributes
12967 are the same as those of default face, realize a new fontset from
12969 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12971 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12973 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12974 (move_it_in_display_line): New wrapper.
12976 * window.c (window_scroll_pixel_based_preserve_x)
12977 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12978 (window_scroll_pixel_based, window_scroll_line_based):
12979 Use them to preserve column positions.
12980 (syms_of_window): Initialize them.
12982 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12983 (HPOS . VPOS) pair.
12985 * dispextern.h (move_it_in_display_line): Declare.
12987 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
12989 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12990 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12991 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12993 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
12995 * window.c (Fset_window_parameter): Doc fix.
12996 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12998 2008-06-04 Joakim Verona <joakim@verona.se>
13000 * window.h (struct window): Add new member window_parameters.
13002 * window.c (Fwindow_parameters, Fwindow_parameter)
13003 (Fset_window_parameter): New defuns.
13004 (syms_of_window): Defsubr the new defuns.
13005 (make_window): Initialize window_parameters to nil.
13007 2008-06-04 John Paul Wallington <jpw@pobox.com>
13009 * eval.c (Fdefmacro): Doc fix.
13011 2008-06-04 Kenichi Handa <handa@m17n.org>
13013 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13014 Be sure to call setup_coding_system when we find a proper coding system.
13015 (detect_coding_system): Fix handling of coding->head_ascii.
13017 2008-06-03 Andreas Schwab <schwab@suse.de>
13019 * font.c (font_prop_validate_spacing): Fix last change.
13021 2008-06-03 Kenichi Handa <handa@m17n.org>
13023 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13024 (font_parse_fcname): Fix handling of unknown key.
13026 * xfont.c (xfont_list): Try an alias.
13028 * charset.c (char_charset): Return NULL if the arg charset_list is
13029 specified and C doesn't belong to any of them.
13031 2008-06-02 Chip Coldwell <coldwell@redhat.com>
13033 * font.c (font_pixel_size): Don't take cdr of an integer.
13035 2008-06-02 Jim Meyering <meyering@redhat.com>
13037 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13038 * alloc.c (xfree): Return right away for a NULL arg.
13039 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13040 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13041 * mac.c (create_apple_event_from_event_ref): Likewise.
13042 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13044 * doprnt.c (doprnt1): Likewise.
13045 * frame.c (frame): Likewise.
13046 * keyboard.c (wipe_kboard): Likewise.
13047 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13048 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13049 * term.c (tty_default_color_capabilities, maybe_fatal)
13050 (delete_tty): Likewise.
13051 * w16select.c (string): Likewise.
13052 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13053 * w32bdf.c (w32_free_bdf_font): Likewise.
13054 * w32fns.c (w32_unload_font): Likewise.
13055 * w32font.c (w32font_close): Likewise.
13056 * window.c (size_window): Likewise.
13057 * xselect.c (receive_incremental_selection): Likewise.
13058 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13059 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13060 * w32.c (stat): Likewise.
13062 Remove useless if-before-free tests.
13063 * editfns.c (Fset_time_zone_rule): Likewise.
13064 * lread.c (nosuffix): Likewise.
13065 * ralloc.c (get_bloc): Likewise.
13066 * regex.c (reg_free): Likewise.
13067 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13068 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13069 * xsmfns.c (smc_save_yourself_CB): Likewise.
13071 2008-06-02 Kenichi Handa <handa@m17n.org>
13073 * font.c (font_find_for_lface): Handle float font size.
13074 (font_open_for_lface): Likewise.
13076 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13077 comparing the properties.
13079 2008-06-01 Jason Rumney <jasonr@gnu.org>
13081 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13082 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13083 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13084 Don't add empty script list.
13085 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13087 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13089 * Makefile.in (dot, dotdot): Remove, update users.
13090 ".." has been used elsewhere in the file for a long time.
13091 (LIBXT_STATIC): Remove conditional based on unused variable.
13093 2008-06-01 Miles Bader <miles@gnu.org>
13095 * xfaces.c (Vface_remapping_alist): New variable.
13096 (syms_of_xfaces): Initialize it.
13097 (enum named_merge_point_kind): New type.
13098 (struct named_merge_point): Add `named_merge_point_kind' field.
13099 (push_named_merge_point): Make cycle detection respect different
13100 named-merge-point kinds.
13101 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13102 Remove face-name alias resolution.
13103 (lface_from_face_name): New definition using
13104 `lface_from_face_name_no_resolve'.
13105 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13106 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13107 (get_lface_attributes): New definition that layers face-remapping on
13108 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13109 (lookup_basic_face): New function.
13110 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13111 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13112 `get_lface_attributes'.
13113 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13114 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13115 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13117 * xdisp.c (init_iterator): Pass base_face_id through
13118 `lookup_basic_face' when we actually use it as a face-id.
13119 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13122 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13123 lookup the initial face-id.
13125 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13127 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
13129 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13130 (Fremove_text_properties): Fix typos in docstrings.
13132 2008-05-31 Kenichi Handa <handa@m17n.org>
13134 * font.c (font_list_entities): Fix the car part of data to be
13135 stored in the cache.
13137 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13139 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13141 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13142 Add a `test' argument so another predicate than `equal' can be used.
13143 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13144 (map_char_table): Remove unused vars `c' and `i'.
13145 * lisp.h (Foptimize_char_table): Adjust declaration.
13146 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13148 2008-05-30 Kenichi Handa <handa@m17n.org>
13150 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13151 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13154 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13156 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13157 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13158 frame-local settings for the same variable.
13160 2008-05-30 Kenichi Handa <handa@m17n.org>
13162 * fontset.c (Ffont_info): Move to font.c.
13163 (syms_of_fontset): Delete defsubr of Sfont_info.
13165 * font.c (font_style_to_value, font_score): Delete casting of the
13166 args to xstcasecmp.
13167 (register_font_driver): Increment num_font_drivers only when
13168 registering the driver globally.
13169 (Ffont_info): Move from fontset.c. Handle a font object too.
13170 (syms_of_font): Defsubr Sfont_info.
13172 2008-05-29 Kenichi Handa <handa@m17n.org>
13174 * coding.h (enum define_coding_utf8_arg_index): New enum.
13175 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13176 coding_attr_utf_bom.
13177 (enum utf_bom_type): Rename from utf_16_bom_type.
13178 (struct utf_16_spec): Adjust for the above change.
13179 (struct coding_system): Add utf_8_bom in `spec' union.
13181 * coding.c (CODING_UTF_8_BOM): New macro.
13182 (enum coding_category): Delete coding_category_utf_8, add
13183 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13184 coding_category_utf_8_sig.
13185 (CATEGORY_MASK_UTF_8): Delete it.
13186 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13187 (CATEGORY_MASK_UTF_8_SIG): New macros.
13188 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13189 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13190 CATEGORY_MASK_UTF_8_SIG.
13191 (CATEGORY_MASK_UTF_8): New macro.
13192 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13193 (detect_coding_utf_8): Check BOM.
13194 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13195 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13196 (encode_coding_utf_16): Likewise.
13197 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13198 (detect_coding, detect_coding_system): Handle utf-8-auto.
13199 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13200 (syms_of_coding): Fix setting up of Vcoding_category_table.
13202 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13204 * process.c (Faccept_process_output): If `millisec' is non-nil,
13205 `seconds' default to 0.
13206 (wait_reading_process_output): Also return non-nil if we read output
13207 from a non-running process.
13209 2008-05-29 Jason Rumney <jasonr@gnu.org>
13211 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13212 `raster' specified.
13213 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13214 in the uniscribe backend, but disallow any font that has no
13215 unicode subrange support.
13217 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
13219 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13220 Fix typos in docstrings.
13222 2008-05-29 Kenichi Handa <handa@m17n.org>
13224 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13225 (Fx_family_fonts): Set frame correctly.
13227 2008-05-28 Jason Rumney <jasonr@gnu.org>
13229 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13231 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13233 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13234 calling build_annotations.
13236 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
13238 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13239 (Fencode_coding_string):
13240 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13241 <latin-extra-code-table>: Fix typos in docstrings.
13242 (syms_of_coding) <coding-system-alist>: Doc fix.
13243 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13245 2008-05-28 Kenichi Handa <handa@m17n.org>
13247 * fontset.c (Ffont_info): Don't call font_close_object.
13249 * font.c (font_parse_family_registry): Use Ffont_put to validate
13250 foundry and family.
13251 (font_delete_unmatched): Don't check spacing.
13252 (font_list_entities): Add spacing to the spec to list fonts.
13254 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13255 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13257 * coding.c (encode_coding_raw_text): Fix previous change.
13258 (encode_coding_object): When the dst_object is a buffer and is
13259 different from src_object, move gap to PT.
13261 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13263 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13265 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13267 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13268 all branches. Compute it differently.
13270 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13272 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
13274 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13275 into "else if () ... else ...".
13277 2008-05-27 Jason Rumney <jasonr@gnu.org>
13279 * w32font.c (w32font_open_internal): Determine if glyph indices
13280 are likely to work here.
13282 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13284 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13285 draw overlap glyphs with appropriate highlighting.
13287 2008-05-27 Kenichi Handa <handa@m17n.org>
13289 * xfont.c (xfont_open): Fix calculation of font->average_width.
13291 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13293 * casefiddle.c (casify_object): Try to guess better whether the
13294 argument is a byte or a char.
13296 2008-05-26 Andreas Schwab <schwab@suse.de>
13298 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13299 Always send multiples of format size.
13301 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13303 2008-05-26 Jason Rumney <jasonr@gnu.org>
13305 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13306 (compute_metrics): Don't set failure if we just cleared the cache.
13307 (w32_weight_table): Remove unused variable.
13308 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13309 backwards compatibility.
13311 2008-05-25 Kenichi Handa <handa@m17n.org>
13313 * w32term.c (x_draw_glyph_string):
13314 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13316 * xfaces.c: Delete unused function prototypes.
13317 (xstrlwr, font_frame): Delete them.
13318 (clear_face_cache): Delete unused variable.
13320 * xftfont.c (xftfont_open): Delete unused variable.
13321 If underline_thickness is not 1, adjust underline_position.
13323 * ftxfont.c (ftxfont_open): Delete unused variable.
13325 * fontset.c (face_for_char): Optimize for the case of no charset
13328 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13329 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13330 (otf_open, font_otf_capability, generate_otf_features)
13331 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13332 Comment out by surrounding "#if 0" and "#endif" for the moment.
13333 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13334 (syms_of_font): Codes for accessing above commented out.
13336 2008-05-24 Eli Zaretskii <eliz@gnu.org>
13338 * w32proc.c: Include dispextern.h.
13340 * w32.c: Include dispextern.h.
13342 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
13344 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13345 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13346 Fix typos in docstrings.
13348 2008-05-23 Jason Rumney <jasonr@gnu.org>
13350 * xsmfns.c: Remove includes that are already included by config.h.
13352 2008-05-23 Kenichi Handa <handa@m17n.org>
13354 * charset.c (Qemacs, charset_emacs): New variables.
13355 (char_charset): Fix for non-Unicode characters.
13356 (syms_of_charset): Define charset_emacs.
13358 * w32term.c (x_draw_glyph_string): Be sure to update
13359 s->underline_thickness and s->underline_position. Be sure to draw
13360 underline within the current line area.
13362 * xterm.c (x_draw_glyph_string): Be sure to update
13363 s->underline_thickness and s->underline_position. Be sure to draw
13364 underline within the current line area.
13366 * fontset.c: Delete unused variables and add casting for char *
13367 throughout the file.
13368 (fontset_font): Try the fallback fonts of the current fontset
13369 before consulting the default fontset.
13371 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13373 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13375 2008-05-22 Jason Rumney <jasonr@gnu.org>
13377 * font.c: Don't include strings.h.
13379 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13381 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13382 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13383 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13384 to call xstrcasecmp.
13386 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13388 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13390 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13392 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13394 2008-05-22 Kenichi Handa <handa@m17n.org>
13396 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13398 * font.c (font_prop_validate_style): Adjust for the format
13399 change of font_style_table.
13401 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13404 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13407 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13409 * minibuf.c (keys_of_minibuf): Delete.
13410 * lisp.h (keys_of_minibuf): Delete.
13411 * emacs.c (main): Don't call keys_of_minibuf.
13413 2008-05-22 Kenichi Handa <handa@m17n.org>
13415 * ftfont.c (ftfont_resolve_generic_family): Rename from
13416 ftfont_list_generic_family. Return a single family for each
13418 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13419 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13421 (ftfont_match): Call font_add_log.
13423 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13424 (FONT_DEBUG): Define it.
13425 (font_add_log): Extern it.
13426 (font_assert): Rename from xassert.
13428 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13429 (xfont_list_family): Call font_add_log.
13430 (xfont_match): Likewise.
13431 (memq_no_quit): Delete.
13433 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13434 call of Ffont_xlfd_name.
13436 * xfaces.c (struct table_entry, slant_table, weight_table)
13437 (swidth_table): Move to font.c.
13439 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13440 xassert are changed to font_assert. Delete many unused variables.
13441 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13443 (struct table_entry): Move from xfaces.c and modified.
13444 (weight_table, slant_table, width_table): Move from xfaces.c and
13445 contents adjusted for the change of struct table_entry.
13446 (font_style_to_value, font_style_symbolic): Adjust for the
13447 format change of font_style_table.
13448 (font_parse_family_registry): Don't overwrite existing foundry and
13449 family of font_spec.
13450 (font_score): Fix calculation of diff for sizes.
13451 (font_sort_entites): Call font_add_log.
13452 (font_delete_unmatched): Return a newly created list.
13453 (font_list_entities): Fix previous change. Call font_add_log.
13454 (font_matching_entity, font_open_entity, font_close_entity):
13456 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13457 (Finternal_set_font_style_table): Delete.
13458 (BUILD_STYLE_TABLE): New macro.
13459 (build_style_table): New function.
13460 (Vfont_log, font_log_env_checked): New variables.
13461 (font_add_log): New function.
13462 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13463 Declare Lisp variables "font-weight-table", "font-slant-table",
13464 "font-width-table", and "font-log". Initialize font_style_table.
13466 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13468 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13470 2008-05-21 Seiji Zenitani <zenitani@mac.com>
13471 Ryo Yoshitake <ryo@shiftmode.net>
13473 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13474 (Vframe_alpha_lower_limit): New variable.
13475 (x_set_alpha): New function.
13477 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13479 * xfns.c (x-create-frame, Qalpha):
13480 Initialize the frame parameter `alpha'.
13481 * xterm.c (OPAQUE, OPACITY): New.
13482 (x_set_frame_alpha): New function.
13483 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13485 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13486 * w32fns.c (w32_frame_parm_handlers): Likewise.
13488 2008-05-20 Jason Rumney <jasonr@gnu.org>
13490 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13491 truetype fonts to opentype list.
13493 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
13495 * fontset.c (Ffontset_info): Doc fix.
13496 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13497 <ignore-relative-composition>: Fix typos in docstrings.
13499 * font.c (syms-of-font) <font-encoding-alist>:
13500 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13501 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13502 (Ffont_otf_alternates): Doc fixes.
13504 2008-05-20 Kenichi Handa <handa@m17n.org>
13506 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13507 font.h through out the file.
13508 (FONT_DRIVERS): Rename from FONTOBJ.
13509 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13510 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13512 * emacs.c (main): Call syms_of_font unconditionally.
13514 * font.h (find_font_encoding): Extern it.
13516 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13518 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
13519 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13520 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13521 only when HAVE_WINDOW_SYSTEM is defined.
13522 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13523 when HAVE_WINDOW_SYSTEM is defined.
13525 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13526 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13528 * xfaces.c: Include font.h unconditionally.
13529 (merge_face_ref, merge_face_vectors)
13530 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13532 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13534 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13536 * eval.c (lisp_indirect_variable): New fun.
13537 (Fuser_variable_p): Use it.
13539 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13541 * lisp.h (indirect_variable):
13542 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13543 Use Lisp_Symbol pointers rather than Lisp_Object.
13545 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13546 To this end, change calling-convention.
13548 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13549 if some non-hidden buffers are selected by string&pred.
13551 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
13553 * process.c (wait_reading_process_output): Always check status
13554 when in batch mode.
13556 2008-05-19 Kenichi Handa <handa@m17n.org>
13558 * font.c (font_list_entities): Fix handling of cache.
13559 (font_matching_entity): Likewise.
13561 * ftfont.c (cs_iso8859_1): Delete.
13562 (ft_face_cache): New variable.
13563 (struct ftfont_info): New member fc_charset_idx.
13564 (ftfont_build_basic_charsets): Delete.
13565 (fc_charset_table): New variable.
13566 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13567 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13569 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13570 (ftfont_spec_pattern): New argument fc_charset_idx.
13571 Check registry more rigidly. Change callers.
13572 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13573 change of :font-entity property of the font.
13575 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13576 property of the font.
13578 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
13580 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13581 (Funencodable_char_position, Fcheck_coding_systems_region)
13582 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13583 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13584 (Ffind_operation_coding_system, Fset_coding_system_priority)
13585 (Fcoding_system_eol_type): Doc fixes.
13587 2008-05-17 Glenn Morris <rgm@gnu.org>
13589 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13591 2008-05-16 Eli Zaretskii <eliz@gnu.org>
13593 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13596 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13597 HAVE_WINDOW_SYSTEM is not defined.
13599 * xfaces.c (merge_face_ref, merge_face_vectors)
13600 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13601 HAVE_WINDOW_SYSTEM is defined.
13602 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13604 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13606 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13608 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13610 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13612 2008-05-15 Kenichi Handa <handa@m17n.org>
13614 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13617 2008-05-15 Glenn Morris <rgm@gnu.org>
13619 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13621 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
13623 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13624 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13626 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13628 2008-05-15 Kenichi Handa <handa@m17n.org>
13630 * ftfont.c (ftfont_list): Downcase family name to check generic
13633 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13634 font-spec for QCfont value.
13636 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13637 buffer. Check the return value of it.
13639 2008-05-14 Jason Rumney <jasonr@gnu.org>
13641 * w32term.c (w32_get_glyph_overhangs): Remove.
13642 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13644 2008-05-14 Kenichi Handa <handa@m17n.org>
13646 * font.c (font_prop_validate): Make nil a valid value.
13647 (font_clear_cache): Check if the cached vector of entities is nil
13650 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13652 * emacs.c (main_thread): Conditionalize on
13653 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13654 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13656 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13657 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13658 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13660 2008-05-14 Kenichi Handa <handa@m17n.org>
13662 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13663 has no corresponding coding system.
13665 2008-05-14 Jason Rumney <jasonr@gnu.org>
13667 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13669 * w32font.h (w32font_open_internal): Update declaration.
13671 * w32font.c (w32font_open_internal): Change last argument from
13672 w32font_info struct to font object. Fill in font object from
13673 font_entity. Get Outline metrics if possible. Use them to
13674 calculate underline position and thickness. Use xlfd name as name
13675 property. Don't set codepage.
13676 (w32font_open): Pass font_object to w32font_open_internal. Don't
13677 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13678 (w32font_draw): Use s->font.
13679 (clear_cached_metrics): Don't clear non-existent blocks.
13681 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13682 font was not found.
13683 (x_draw_glyph_string): Use underline position and thickness from font.
13685 * w32uniscribe.c (uniscribe_open): Pass font_object to
13686 w32font_open_internal.
13688 2008-05-14 Kenichi Handa <handa@m17n.org>
13690 These changes are to delete all legacy font-handling codes, and
13691 make Emacs use only font-backends.
13693 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13694 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13696 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13698 * charset.h (Vcharset_non_preferred_head)
13699 (Vcurrent_iso639_language): Extern them.
13701 * charset.c (Vcharset_non_preferred_head): New variable.
13702 (Vcurrent_iso639_language): New variable.
13703 (syms_of_charset): Declare it as a Lisp variable.
13704 (char_charset): Don't check non preferred charsets. As a last
13705 resort, return charset_unicode.
13706 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13708 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13709 conditionals. Don't check enable_font_backend. Delete all codes
13710 used only when USE_FONT_BACKEND is not defined.
13712 * dispextern.h (struct glyph_string): Change type of `font' to
13714 (struct glyph_string): New member underline_position and
13715 underline_thickness.
13716 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13717 (struct face): Change type of `font' to `struct font *'. Remove
13718 members `font_name', `font_info_id'.
13719 (per_char_metric, encode_char): Delete externs.
13720 (calc_pixel_width_or_height): Adjust the prototype.
13722 * emacs.c (enable_font_backend): Delete extern.
13723 (main): Don't set enable_font_backend. Don't check the command
13724 line argument "-disable-font-backend".
13726 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13727 (enum font_property_index): New members FONT_DPI_INDEX,
13728 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13729 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13730 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13731 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13732 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13733 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13734 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13735 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13736 (struct font_spec, struct font_entity): New structs.
13737 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13738 (struct font): Many members from old "struct font_info" moved to
13739 here. Members font and entity deleted.
13740 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13741 the new font-related objects.
13742 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13743 (CHECK_FONT_GET_OBJECT): Likewise.
13744 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13745 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13746 (struct font_driver): New members case_sensitive anc check. Type
13747 of the member list and open changed.
13748 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13749 (font_symbolic_width, font_find_object, font_get_spec)
13750 (font_set_lface_from_name): Delete extern.
13751 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13753 * font.c: Include <strings.h>.
13754 (enable_font_backend): Delete it.
13755 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13756 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13757 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13758 (null_string): Delete it.
13759 (null_vector): Make it static.
13760 (font_family_alist): Delete it.
13761 (Qnormal): Extern it.
13762 (QCextra, QClanguage): Delete it.
13763 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13764 (font_make_spec, font_make_entity, font_make_object)
13765 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13766 the string. Callers changed.
13767 (font_pixel_size): Adjusted for the format change of font-related
13769 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13770 (font_style_to_value, font_style_symbolic): New function.
13771 (build_font_family_alist): Delete it.
13772 (font_registry_charsets): Use Fassoc_string instead of
13774 (font_prop_validate_symbol): Don't return null_string.
13775 (font_prop_validate_style): Adjusted for the change of
13776 style-related values in a font vector.
13777 (font_property_table): Delete entries for QClanguage and
13778 QCantialias, add entries for QCavgwidth.
13779 (get_font_prop_index): Delete the 2nd argument FROM.
13780 (font_prop_validate): Arguments changed.
13781 (font_put_extra): Adjusted for the change of font-related objects.
13782 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13783 (font_parse_fcname, font_unparse_fcname)
13784 (font_prepare_composition): Likewise.
13785 (font_parse_family_registry): Renamed from font_merge_old_spec.
13786 (otf_open): Delete the 1st arg entity.
13787 (font_otf_capability): Adjusted for the above change.
13788 (font_score): New arg alternate_families. Adjusted for the change
13789 of font-related objects.
13790 (font_sort_entites): New arg best_only.
13791 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13793 (font_match_p): Check alternate families.
13794 (font_find_object): Delete it.
13795 (font_check_object): New function.
13796 (font_clear_cache): Adjusted for the change of font-related objects.
13797 (font_delete_unmatched): New arg.
13798 (font_list_entities): Call font_driver->list with a spec that
13799 doesn't specify style-related properties.
13800 (font_matching_entity): Arguments changed. Caller changed.
13801 (font_open_entity): Adjusted for the change of font-related objects.
13802 (font_close_object, font_has_char, font_encode_char)
13803 (font_get_name, font_get_spec): Likewise.
13804 (font_spec_from_name, font_clear_prop, font_update_lface):
13806 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13807 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13808 (font_at): Adjusted for the change of font-related objects.
13809 (font_range): New function.
13810 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13811 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13812 (Fcopy_font_spec, Fmerge_font_spec): New function.
13813 (Ffont_family_list): Renamed from list-families.
13814 (Finternal_set_font_style_table): Arguments changed.
13815 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13816 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13817 change of font-related objects.
13818 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13820 * fontset.h (struct font_info): Delete it. Most members go to
13822 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13823 (enum FONT_SPEC_INDEX): Delete it.
13824 (font_info, list_fonts_func, load_font_func, query_font_func)
13825 (set_frame_fontset_func, find_ccl_program_func)
13826 (get_font_repertory_func, new_fontset_from_font_name): Delete
13828 (fontset_from_font_name): Extern it.
13829 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13830 (FONT_INFO_FROM_FACE): Deleted.
13831 (face_for_font): Adjust prototype.
13833 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13834 conditionals. Don't check enable_font_backend. Delete all codes
13835 used only when USE_FONT_BACKEND is not defined.
13836 (get_font_info_func, list_font_func, load_font_func)
13837 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13838 (get_font_repertory_func): Delete them.
13839 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13840 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13841 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13842 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13843 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13844 (fontset_compare_rfontdef): New function.
13845 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13846 rfont-defs by qsort. Adjusted for the change of font-group vector.
13847 (load_font_get_repertory): Deleted.
13848 (fontset_find_font): Use new macros to ref/set elements of
13849 font-def and rfont-def.
13850 (fontset_font): Fix the timing of remembering that no font for C.
13851 (free_face_fontset): Do nothing if the face has no fontset.
13852 (face_suitable_for_char_p): Use new macros to ref/set elements of
13854 (face_for_char): Likewise. Call face_for_char with font_object.
13855 (fs_load_font): Delete. Delete #pragma surrounding it.
13856 (fs_query_fontset): Use strcasecmp instead of strcmp.
13857 (generate_ascii_font_name): Adjusted for the format change of
13859 (Fset_fontset_font): Likewise. Use new macros to set elements of
13861 (Fnew_fontset): Use font_unparse_xlfd to generate
13862 FONTSET_ASCII (fontset).
13863 (new_fontset_from_font_name): Deleted.
13864 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13865 a fontset is already created for the font. FIx updating of
13866 Vfontset_alias_alist.
13867 (fontset_ascii_font): Deleted.
13868 (Ffont_info): Adjusted for the format change of font-spec.
13869 (Finternal_char_font): Likewise.
13870 (Ffontset_info): Likewise.
13871 (syms_of_fontset): Don't check load_font_func.
13873 * fns.c (internal_equal): Handle PREV_FONT.
13875 * frame.h: Delete USE_FONT_BACKEND conditional.
13877 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13878 conditionals. Don't check enable_font_backend. Delete all codes
13879 used only when USE_FONT_BACKEND is not defined.
13880 (x_set_font): Call x_new_font, not x_new_fontset2.
13881 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13882 already set for the frame.
13884 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13885 a font-entity by font_make_entity. Use font_intern_prop instead
13886 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13887 font property. If a font is scalable, set avgwidth property to 0.
13888 Set font-entity property by font_put_extra.
13889 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13890 (ffont_driver): Adjusted for the change of struct font_driver.
13891 (ftfont_spec_pattern): New function.
13892 (ftfont_list): Return a list, not vector.
13893 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13894 (ftfont_list_family): Don't downcase names.
13895 (ftfont_free_entity): Deleted.
13896 (ftfont_open): Return a font-object. Adjusted for the change of
13897 struct font. Get underline_thickness and underline_position from
13898 font property. Don't update dpyinfo->smallest_font_height and
13899 dpyinfo->smallest_char_width.
13900 (ftfont_close): Don't free `struct font'.
13901 (ftfont_has_char): Adjusted for the format change of font-entity.
13902 (ftfont_encode_char, ftfont_text_extents): Likewise.
13904 * ftxfont.c (ftxfont_list): Return a list, not vector.
13905 (ftxfont_open): Return a font-object. Adjusted for the change of
13906 struct font. Get underline_thickness and underline_position from
13907 font property. Don't update dpyinfo->smallest_font_height and
13908 dpyinfo->smallest_char_width.
13909 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13910 (ftxfont_draw): Adjusted for the change of struct font.
13912 * image.c (image_ascent): Don't include "charset.h". Include
13913 "character.h" and "font.h".
13915 * lisp.h (enum pvec_type): New member PREV_FONT.
13916 (Fassoc_string): EXFUN it.
13918 * print.c: Include font.h.
13919 (print_object): Handle font-related objects.
13921 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13922 conditionals. Don't check enable_font_backend. Delete all codes
13923 used only when USE_FONT_BACKEND is not defined.
13924 (handle_auto_composed_prop): Do nothing if it->f is not on a
13925 window system. Check how many following characters can be
13926 displayed by the same font.
13927 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13929 (get_char_face_and_encoding): Assign the whole encoding task to
13930 the `encode-char' method of a font driver.
13931 (fill_composite_glyph_string): Adjusted for the change of `struct
13932 face' and `struct glyph_string'.
13933 (fill_glyph_string): Likewise.
13934 (get_per_char_metric): Arguments changed.
13935 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13936 and `struct glyph_string'.
13937 (produce_stretch_glyph, calc_line_height_property)
13938 (x_produce_glyphs): Likewise.
13940 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13941 conditionals. Don't check enable_font_backend. Delete all codes
13942 used only when USE_FONT_BACKEND is not defined. Use
13943 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13944 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13946 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13948 (struct font_name): Deleted.
13949 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13950 (compare_fonts_by_sort_order): New function.
13951 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13952 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13954 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13955 compare_fonts_by_sort_order.
13956 (Fx_font_family_list): Call Ffont_family_list.
13957 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13958 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13959 (face_symbolic_slant, face_symbolic_swidth)
13960 (split_font_name_into_vector, build_font_name_from_vector)
13961 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13962 (font_rescale_ratio, split_font_name, build_font_name)
13963 (free_font_names, sort_fonts, x_face_list_fonts)
13964 (face_font_available_p, sorted_font_list, cmp_font_names)
13965 (font_list_1, concat_font_list, font_list, remove_duplicates):
13967 (Fx_list_fonts): Use Ffont_list.
13968 (LFACE_AVGWIDTH): Deleted.
13969 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13971 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13972 (set_lface_from_font_name): Delete it.
13973 (set_lface_from_font): Renamed from
13974 set_lface_from_font_and_fontset. Caller changed. Don't set
13975 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13977 (merge_face_vectors): Copy font-spec if necessary.
13978 Clear properties of the font-spec if necessary.
13979 (merge_face_ref): Clear properties of the font-spec if necessary.
13980 (Finternal_set_lisp_face_attribute): Likewise.
13981 (set_font_frame_param): Use font_load_for_lface to load a
13982 font-object, and call Fmodify_frame_parameters with it.
13983 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13984 font name by Ffont_xlfd_name.
13985 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13986 QCslant, and QCwidth.
13987 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13988 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13989 Compare fonts by EQ.
13990 (lookup_non_ascii_face): Deleted.
13991 (face_for_font): The 2nd argument changed.
13992 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13993 Check atomic font properties by case insensitive.
13994 (realize_non_ascii_face): Set face->overstrike correctly.
13995 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13996 (dump_realized_face): Get font name from
13997 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13999 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14000 conditionals. Don't check enable_font_backend. Delete all codes
14001 used only when USE_FONT_BACKEND is not defined.
14002 (xic_create_xfontset): Original code deleted and renamed from
14003 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14004 (x_make_gc): Don't set GCFont in GCs.
14005 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14007 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14008 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14009 get_font_repertory_func.
14011 * xfont.c: Include <stdlib.h> and "ccl.h".
14012 (struct xfont_info): New structure.
14013 (xfont_query_font): Deleted.
14014 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14015 moved from xterm.c.
14016 (xfont_driver): Adjusted for the change of struct font_driver.
14017 (compare_font_names): New function.
14018 (xfont_list_pattern): Sort font names case insensitively. Make
14019 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14020 (xfont_list): Return a list, not vector.
14021 (xfont_match): If the font doesn't have QCname property, generate
14022 a name from the other font properties.
14023 (xfont_open): Return a font-object. Adjusted for the change of
14024 struct font. Get underline_thickness and underline_position from
14025 font property. Don't update dpyinfo->smallest_font_height and
14026 dpyinfo->smallest_char_width.
14027 (xfont_close): Don't free struct font.
14028 (xfont_prepare_face): Adjusted for the change of struct font.
14029 (xfont_done_face): Deleted.
14030 (xfont_has_char): Adjusted for the change of struct font.
14031 (xfont_encode_char, xfont_draw): Likewise.
14032 (xfont_check): New function.
14034 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14036 (xftfont_match): Adjusted for the format change of font-entity.
14037 (xftfont_open): Adjusted for the format change of font-entity and
14038 font-object. Adjusted for the change of struct font. Return a
14039 font-object. Don't update dpyinfo->smallest_font_height and
14040 dpyinfo->smallest_char_width.
14041 (xftfont_close): Block input while calling XftFontClose.
14042 (xftfont_prepare_face): Don't block input while calling
14043 xftfont_get_colors. Adjusted for the change of struct font.
14044 (xftfont_shape): Return value of error case fixed.
14046 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14048 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14050 (FONT_WIDTH): Return (f)->max_width.
14051 (struct x_display_info): Delete member `font'.
14052 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14053 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14054 (struct x_output): Change type of `font' to `struct font *'.
14056 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14057 conditionals. Don't check enable_font_backend. Delete all codes
14058 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14059 (x_per_char_metric, x_encode_char): Deleted.
14060 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14061 (x_compute_glyph_string_overhangs): Adjusted for the change of
14063 (x_draw_glyph_string_foreground)
14064 (x_draw_composite_glyph_string_foreground): Likewise.
14065 (x_draw_glyph_string): Likewise. Use font->underline_position and
14066 font->underline_thickness.
14067 (x_new_font): Renamed from x_new_fontset2.
14068 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14069 (x_check_font): Call `check' method of a font driver.
14070 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14071 (x_query_font, x_get_font_repertory): Deleted.
14072 (x_find_ccl_program): Renamed and moved to xfont.c.
14073 (x_redisplay_interface): Adjusted for the change of `struct
14074 redisplay_interface'.
14076 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14077 conditionals. Don't check enable_font_backend. Delete all codes
14078 used only when USE_FONT_BACKEND is not defined. Surround non-used
14079 code by "#ifdef OLD_FONT" and "endif".
14080 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14082 * w32font.h (struct w32font_info): New member.
14083 (FONT_COMPAT): New macro.
14084 (w32font_open_internal): Prototype adjusted.
14086 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14087 OLD_FONT" and "endif".
14089 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14090 conditionals. Don't check enable_font_backend. Delete all codes
14091 used only when USE_FONT_BACKEND is not defined.
14092 (w32font_open): Return a font-object. Make a font-object by
14093 font_make_object. Adjusted for the change of struct w32font_info.
14094 (w32font_close): Don't free struct font. Adjusted for the change
14095 of struct w32font_info.
14096 (w32font_encode_char, w32font_text_extents, w32font_draw):
14097 Adjusted for the change of struct w32font_info.
14098 (w32font_draw): Likewise.
14099 (w32font_list_internal): Return a list, not vector.
14100 (w32font_open_internal): Change the 4th arg to font-object.
14101 Adjusted for the change of struct w32font_info and font-object format.
14102 (add_font_name_to_list): Don't downcase names.
14103 (w32_enumfont_pattern_entity): Make a font-entity by
14104 font_make_entity. Adjusted for the format change of font-entity.
14105 Use FONT_SET_STYLE to set a style-related font property. If a
14106 font is scalable, set avgwidth property to 0. Set font-entity
14107 property by font_put_extra.
14108 (font_matches_spec): Adjusted for the format change of font-entity.
14109 (w32_weight_table, w32_decode_weight): New variables.
14110 (w32_encode_weight): New function.
14111 (fill_in_logfont): Adjusted for the format change of font-spec.
14112 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14114 (w32font_driver): Adjusted for the change of struct font_driver.
14116 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14117 conditionals. Don't check enable_font_backend. Surround non-used
14118 code by "#ifdef OLD_FONT" and "endif".
14119 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14120 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14122 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14123 conditionals. Don't check enable_font_backend. Delete all codes
14124 used only when USE_FONT_BACKEND is not defined. Surround non-used
14125 code by "#ifdef OLD_FONT" and "endif".
14127 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14128 (uniscribe_open): Return value changed to font-object.
14129 Adjusted for the format change of font-object.
14130 (uniscribe_otf_capability): Adjusted for the change of struct font.
14131 (add_opentype_font_name_to_list): Don't downcase names.
14132 (uniscribe_font_driver): Adjusted for the change of struct
14135 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
14137 * dispnew.c (update_frame_1): Check if tty output is still valid
14138 before flushing it.
14140 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14142 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14145 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14147 * dired.c (file_name_completion): Tweak the code so as to always do it
14148 in a single pass. Tighten the scope of some variables.
14150 * dired.c (Qdefault_directory): New var.
14151 (file_name_completion): Use it instead of Fexpand_file_name.
14152 (syms_of_dired): Initialize it.
14154 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14156 * fileio.c (double_dollars): Remove dead code.
14158 2008-05-10 Eli Zaretskii <eliz@gnu.org>
14160 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14161 Mention w32-get-true-file-attributes in doc string.
14163 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14165 2008-05-09 Glenn Morris <rgm@gnu.org>
14167 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14170 2008-05-09 Eli Zaretskii <eliz@gnu.org>
14172 Support for reporting owner and group of each file on MS-Windows:
14173 * dired.c (stat_uname, stat_gname): New functions, with special
14174 implementation for w32.
14175 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14177 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14178 (dflt_group_name): New static variable.
14179 (dflt_group): Rename from the_group.
14180 (init_user_info): Init dflt_group fields. Get user's group name
14181 from LookupAccountSid.
14182 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14183 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14184 New initialization states.
14185 (globals_of_w32): Initialize them to zero. Initialize the default
14186 group name to "None".
14187 (GetFileSecurity_Name): New global var, the name of the function
14188 to call for GetFileSecurity.
14189 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14190 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14191 (get_file_security, get_security_descriptor_owner)
14192 (get_security_descriptor_group, is_valid_sid)
14193 (get_file_security_desc, get_rid, get_name_and_id)
14194 (get_file_owner_and_group): New functions.
14195 (stat): Use get_file_security_desc and get_file_owner_and_group to
14196 report the owner and primary group of each file. Don't ignore the
14197 high 32 bits of file's size, now that st_size is 64-bit wide.
14198 Fix test when to get true file attributes.
14199 (init_user_info): Use get_rid instead of equivalent inline code.
14200 (fstat): Don't ignore the high 32 bits of file's size.
14202 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
14204 * image.c (png_load): Use correct bit-depth for setting background
14207 2008-05-08 Eli Zaretskii <eliz@gnu.org>
14209 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14212 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
14214 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14216 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14218 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14219 because the original parameters are in pure storage now.
14220 (mac_window): Remove unused params. Update callers.
14222 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14224 * lread.c (substitute_object_recurse): Use lower-level primitives.
14225 Don't signal errors when traversing sub-char-tables.
14226 Don't loop over all the possible characters when traversing char-tables.
14228 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14229 just like we do in print.c.
14231 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14233 * minibuf.c (Ftry_completion): Remove code left over from when we used
14234 scmp instead of Fcompare_strings.
14236 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
14238 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14240 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14242 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14243 Create bitmap context in native byte order.
14245 * macterm.c (XDrawLine)
14246 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14247 context in native byte order.
14249 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14251 * config.in: Regenerate.
14253 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14254 New definitions for Image I/O support.
14255 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14256 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14257 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14258 (mac_data_provider_release_data, image_load_image_io)
14259 [USE_MAC_IMAGE_IO]: New functions.
14260 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14261 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14262 (init_image_func_pointer) [MAC_OSX]: Remove function.
14263 (image_load_quartz2d) [MAC_OSX]: Check availability of
14264 CGImageCreateWithPNGDataProvider at compile time.
14265 Use lowercase `false' for boolean constant.
14266 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14267 Use image_load_image_io.
14268 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14269 Don't check MyCGImageCreateWithPNGDataProvider.
14270 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14271 Don't call init_image_func_pointer.
14273 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14275 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14276 Make variable non-static.
14277 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14278 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14280 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14281 (RED_FROM_ULONG): Mask off higher bits.
14282 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14284 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14285 Include AvailabilityMacros.h.
14286 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14287 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14289 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14291 * chartab.c (Fset_char_table_range): If range is t, really set all
14292 chars to that value.
14294 2008-05-03 Eli Zaretskii <eliz@gnu.org>
14296 * dired.c (Ffile_attributes): Don't allow the device number become
14299 2008-05-02 Daiki Ueno <ueno@unixuser.org>
14301 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14303 2008-05-02 Juri Linkov <juri@jurta.org>
14305 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14306 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14307 DEFAULT argument as a list of default values in docstrings.
14309 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
14311 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14313 2008-05-01 Martin Rudalics <rudalics@gmx.at>
14315 * dispnew.c (change_frame_size_1): Preserve small windows when
14316 shrinking frames by calling set_window_height|width with third
14319 * window.h (struct window): Replace field too_small_ok by field
14320 resize_proportionally.
14322 * window.c (make_window): Initialize resize_proportionally.
14323 (enlarge_window): Temporarily set resize_proportionally to make
14324 sure that shrink_windows does scale the window proportionally.
14325 (shrink_windows): When window has resize_proportionally set try
14326 to shrink it proportionally by stealing from other windows.
14327 (struct saved_window, Fset_window_configuration)
14328 (compare_window_configurations): Handle resize_proportionally.
14329 (WINDOW_TOTAL_SIZE): New macro.
14330 (window_min_size, shrink_windows, size_window): Use it.
14331 (check_min_window_sizes): Remove. Invalid values of
14332 window-min-height|width are handled by window_min_size_2 now.
14333 (size_window, Fsplit_window, enlarge_window)
14334 (adjust_window_trailing_edge, grow_mini_window): Don't call
14335 check_min_window_sizes.
14336 (window_min_size_2, window_min_size_1, window_min_size):
14337 New argument safe_p for retrieving "safe" minimum sizes.
14338 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14339 (adjust_window_trailing_edge, grow_mini_window):
14340 Adjust arguments of window_min_size... functions.
14341 (shrink_windows): Argument min_size removed. New argument
14342 safe_p allows shrinking windows to their safe minimum sizes.
14343 Calculate minimum size and decide whether a window shall be
14344 deleted for each window individually.
14345 (size_window): When nodelete_p equals 2, tell shrink_windows to
14346 delete windows only if their new minimum size is no more safe.
14347 (shrink_window_lowest_first): Call window_min_size_1 to make
14348 sure to preserve modeline of bottom-most window when resizing
14350 (Fset_window_configuration, Fcurrent_window_configuration)
14351 (compare_window_configurations): Do not handle
14352 window-min-height|width any more.
14353 (syms_of_window): Clarify window-min-height|width doc-strings.
14355 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14357 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14358 some more. Copy some of the code from Ftry_completions.
14359 Remove special case code that dates back to initial revision when the
14360 slash was only added when necessary and that can't trigger nowadays.
14362 2008-04-27 Kenichi Handa <handa@m17n.org>
14364 * font.c (font_prop_validate): Signal `error' instead of `font'.
14366 2008-04-29 Jason Rumney <jasonr@gnu.org>
14368 * w32fns.c (Fw32_battery_status): New defun.
14369 (syms_of_w32fns): Defsubr it.
14371 2008-04-28 Andreas Schwab <schwab@suse.de>
14373 * dired.c (file_name_completion): Fix another mixing of encoded
14376 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
14378 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14380 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
14382 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14384 2008-04-27 Andreas Schwab <schwab@suse.de>
14386 * dired.c (file_name_completion): Fix inappropriate mixing of
14387 encoded and decoded names.
14389 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14391 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14393 2008-04-26 Eli Zaretskii <eliz@gnu.org>
14395 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14396 2008-03-31, it's not needed anymore with `struct stat' definition
14397 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14398 for the same reasons.
14400 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14402 * m/sparc.h: Additional redefinitions for GNU/Linux.
14404 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14406 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14407 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14408 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14409 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14410 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14411 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14412 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14415 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14416 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14417 (mac_ax_number_of_characters): Add externs.
14418 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14419 [USE_MAC_TSM]: Likewise.
14420 (mac_handle_text_input_event) [MAC_OSX]:
14421 Handle kEventTextInputOffsetToPos for no active input area case.
14422 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14423 (mac_handle_document_access_event)
14424 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14425 (install_application_handler) [MAC_OSX]: Register handlers for
14426 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14427 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14428 Register mac_handle_document_access_event.
14430 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14431 Make functions non-static.
14433 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14435 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14436 (read_file_name_completion_ignore_case, insert_default_directory)
14437 (Qdefault_directory): Move to minibuffer.el.
14438 (Fread_file_name): Call the new `read-file-name' instead.
14440 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14442 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14443 Make function non-static.
14444 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14446 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14447 Move to mactoolbox.c.
14448 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14450 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14451 (mac_rect_make): New macro.
14453 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14455 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14456 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14457 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14458 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14460 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14461 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14462 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14463 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14464 instead of WindowRef in argument type.
14465 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14466 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14467 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14468 instead of DISPLAY. All uses changed.
14469 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14470 (x_calc_absolute_position): Simplify so as not to use
14471 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14473 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14474 instead of WindowRef in argument type.
14475 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14476 [TARGET_API_MAC_CARBON]: Remove externs.
14477 (create_apple_event, mac_event_parameters_to_lisp)
14478 [TARGET_API_MAC_CARBON]: Add externs.
14480 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14481 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14482 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14484 (x_activate_menubar): Remove extern for saved_menu_event_location.
14485 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14488 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14490 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14491 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14493 2008-04-23 Jason Rumney <jasonr@gnu.org>
14495 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14496 attributes only for local files.
14498 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14501 2008-04-22 Juri Linkov <juri@jurta.org>
14503 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14504 read-buffer-to-switch instead of using the letter "B".
14506 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14508 * fileio.c (Qdefault_directory): New variable.
14509 (Fread_file_name): Use it to pass `dir' to the completion functions.
14511 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
14513 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14515 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14517 * keyboard.c (Vpre_help_message): Remove.
14518 (show_help_echo): Remove default C code.
14520 * dired.c (directory_files_internal, file_name_completion):
14521 Only call ENCODE_FILE if the string is indeed decoded.
14523 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14525 * Makefile.in (TOOLKIT_DEFINES): Remove.
14526 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14528 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14530 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14531 (mactoolbox.o): New target.
14533 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14534 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14536 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14537 Use mac_set_frame_window_background instead of XSetWindowBackground.
14538 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14539 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14540 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14541 instead of SetWindowTitleWithCFString.
14542 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14543 Move function to mactoolbox.c.
14544 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14545 Use mac_set_window_modified instead of SetWindowModified.
14546 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14547 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14548 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14549 FrontNonFloatingWindow. Use mac_activate_window instead of
14550 ActivateWindow. Use mac_active_non_floating_window instead of
14551 ActiveNonFloatingWindow.
14552 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14553 Use mac_show_hourglass and mac_hide_hourglass.
14554 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14555 instead of GetGlobalMouse.
14556 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14557 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14558 Use mac_bring_window_to_front instead of BringToFront.
14559 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14561 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14562 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14563 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14566 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14567 (XtPointer): Move typedef from macmenu.c.
14568 (enum button_type): Move enum from macmenu.c.
14569 (widget_value): Move typedef from macmenu.c.
14570 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14571 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14572 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14573 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14574 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14575 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14576 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14577 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14578 (Selection): Move typedef from macselect.c.
14579 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14581 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14582 (mac_is_window_collapsed, mac_bring_window_to_front)
14583 (mac_send_window_behind, mac_hide_window, mac_show_window)
14584 (mac_collapse_window, mac_front_non_floating_window)
14585 (mac_active_non_floating_window, mac_activate_window)
14586 (mac_move_window_structure, mac_move_window, mac_size_window)
14587 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14589 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14590 (enum mac_menu_kind): Move enum to mactoolbox.c.
14591 (min_menu_id): Move variable to mactoolbox.c.
14592 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14593 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14594 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14595 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14596 [TARGET_API_MAC_CARBON]: Likewise.
14597 (XtPointer): Move typedef to macgui.h.
14598 (enum button_type): Move enum to macgui.h.
14599 (widget_value): Move typedef to macgui.h.
14600 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14601 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14602 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14603 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14604 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14605 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14606 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14607 (popup_activated_flag): Make variable non-static.
14608 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14609 (add_menu_item, fill_menu, dispose_menus):
14610 Move functions to mactoolbox.c.
14611 (restore_show_help_function, menu_target_item_handler)
14612 (install_menu_target_item_handler, mac_handle_dialog_event)
14613 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14614 [TARGET_API_MAC_CARBON]: Likewise.
14615 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14616 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14617 (find_and_call_menu_selection, name_is_separator): Make function
14619 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14621 (set_frame_menubar): Don't call install_menu_quit_handler.
14622 (menu_item_selection): New variable.
14623 (mac_menu_show): Use create_and_show_popup_menu.
14624 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14625 selection but set variable menu_item_selection. All uses changed.
14626 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14627 Call install_menu_quit_handler. Move to mactoolbox.c.
14629 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14630 (Selection): Move typedef to macgui.h.
14631 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14632 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14633 Make variables non-static.
14634 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14635 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14636 Make functions non-static.
14637 (Vmac_service_selection) [MAC_OSX]: Likewise.
14638 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14639 (mac_valid_selection_target_p, mac_clear_selection)
14640 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14641 (mac_put_selection_value, mac_selection_has_target_p)
14642 (mac_get_selection_value, mac_get_selection_target_list)
14643 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14644 Move functions to mactoolbox.c.
14645 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14647 (copy_scrap_flavor_data, mac_handle_service_event)
14648 (install_service_handler) [MAC_OSX]: Likewise.
14649 (syms_of_macselect) <Vmac_dnd_known_types>:
14650 Use mac_dnd_default_known_types.
14652 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14653 Move to mactoolbox.c.
14654 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14655 (Fx_selection_owner_p): Add EXFUN.
14656 (install_window_handler, remove_window_handler, XSetWindowBackground):
14658 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14659 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14660 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14661 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14662 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14663 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14664 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14665 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14666 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14667 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14668 (mac_valid_selection_target_p, mac_clear_selection)
14669 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14670 (mac_put_selection_value, mac_selection_has_target_p)
14671 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14672 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14673 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14674 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14675 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14676 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14677 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14678 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14679 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14681 * mactoolbox.c: New file.
14683 2008-04-18 Jason Rumney <jasonr@gnu.org>
14685 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14687 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14689 * character.c (Fmultibyte_char_to_unibyte):
14690 Return latin1 chars unchanged.
14692 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14693 relocated if it points to `name'.
14695 2008-04-17 Kenichi Handa <handa@m17n.org>
14697 * data.c (Faset): Allow setting a multibyte character in an
14698 ASCII-only unibyte string.
14700 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14702 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14704 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14707 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
14709 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14710 (Fchar_direction): Add usage in the docstring.
14712 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
14714 * keyboard.c (read_key_sequence): Remove always-true checks.
14716 2008-04-14 Jason Rumney <jasonr@gnu.org>
14718 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14719 compatibility struct, for better underline positioning.
14721 2008-04-13 David Hansen <david.hansen@gmx.net>
14723 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14726 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14728 * m/hp800.h (XUINT, XSET): Remove.
14730 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
14732 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14735 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14737 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14738 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14740 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14742 * keymap.h (map_keymap_canonical): Declare.
14743 * xmenu.c (single_keymap_panes): Use it.
14745 2008-04-11 Glenn Morris <rgm@gnu.org>
14747 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14748 set the target's value to that of the alias.
14750 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14752 * term.c (set_tty_color_mode): Left over typo.
14754 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
14756 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14757 only after check for file name handler functions. Signal, when
14758 native functionality is not supported.
14759 (syms_of_fileio): Declare it unconditionally.
14761 2008-04-10 Jason Rumney <jasonr@gnu.org>
14763 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14764 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14766 * w32.c (logon_network_drive): Also logon to remote drives that
14767 are mapped to drive letters.
14769 2008-04-10 Glenn Morris <rgm@gnu.org>
14771 * xdisp.c (truncate-partial-width-windows): Doc fix.
14773 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14775 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14776 Move functions to minibuffer.el.
14777 (syms_of_fileio): Don't declare them.
14779 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14781 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14782 (syms_of_minibuf): Remove its initialization.
14784 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14786 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
14788 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14790 2008-04-09 Jason Rumney <jasonr@gnu.org>
14792 * makefile.w32-in (distclean): Delete makefile too.
14793 (maintainer-clean): New target.
14795 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14797 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14798 for new font backend and composite cases.
14800 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14802 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14803 Most of the code moved to run_timers.
14804 (do_pending_atimers): Call run_timers.
14805 (run_timers): New function.
14807 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14810 * process.c (wait_reading_process_output): The same as above.
14812 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14814 * minibuf.c (last_exact_completion): Remove variable.
14815 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14816 (complete_and_exit_1, complete_and_exit_2)
14817 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14818 (Fdisplay_completion_list, display_completion_list_1)
14819 (Fminibuffer_completion_help, Fself_insert_and_exit)
14820 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14822 (syms_of_minibuf): Remove corresponding initializations.
14824 * keyboard.c (Qdeactivate_mark): New var.
14825 (command_loop_1): Use it to call `deactivate-mark'.
14826 (syms_of_keyboard): Initialize it.
14828 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14830 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14831 Don't call set_tty_color_mode.
14832 (store_frame_param): Reset previous_frame rather than call
14833 set_tty_color_mode.
14834 * term.c (set_tty_color_mode): Rewrite.
14835 * dispextern.h (set_tty_color_mode): New type.
14836 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14838 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14840 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14841 for generic chars, which do not exist any more in emacs-unicode.
14843 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
14845 * coding.c (detect_coding_emacs_mule)
14846 (Ffind_operation_coding_system): Fix typo.
14848 2008-04-08 Jason Rumney <jasonr@gnu.org>
14850 * w32uniscribe.c (SNAME): Extract only symbol name.
14852 * w32font.h (struct w32_metric_cache): New struct.
14853 (w32font_info): Use it.
14854 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14855 (CACHE_BLOCKSIZE): New constants.
14857 * w32font.c (Qja, Qko, Qzh): New symbols.
14858 (syms_of_w32font): Initialise them.
14859 (font_matches_spec): Use them to filter by language.
14860 (recompute_cached_metrics): Remove function.
14861 (compute_metrics, clear_cached_metrics): New functions.
14862 (w32font_encode_char): Use them to manage metric cache.
14863 (w32font_text_extents): Cache metrics for all glyphs on demand.
14864 Delay converting glyph indices to WORD until needed.
14865 (w32font_open_internal): Initialize metric cache to empty.
14866 (registry_to_w32_charset): Charset should always be a symbol.
14867 (fill_in_logfont, list_all_matching_fonts): Family should
14868 always be a symbol.
14870 2008-04-06 Jason Rumney <jasonr@gnu.org>
14872 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14873 Give up if glyph indices not supported. Use uniscribe obtained
14874 ABC widths for individual metrics. Map glyph clusters back to
14875 characters using fClusterStart flag. Return number of glyphs
14876 produced, not chars processed.
14877 (uniscribe_shape): Map char at FROM to current glyph.
14879 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14881 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14882 Use SetMenuItemHierarchicalMenu.
14884 2008-04-05 Jason Rumney <jasonr@gnu.org>
14886 * image.c (pbm_load): Allow color values up to 65535.
14887 Throw an error if max_color_idx is outside the supported range.
14888 Report an error when image size is invalid.
14889 Read two bytes at a time when raw images have max_color_idx above 255.
14891 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14893 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14894 append "CCL: Quitted" when the CCL program is quitted.
14895 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14897 * ccl.h (struct ccl_program): New member quit_silently.
14899 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
14901 * search.c (compile_pattern_1): Treat non-nil and non-string of
14902 search-spaces-regexp as nil.
14904 * minibuf.c (Fassoc_string): Tweak docstring.
14906 2008-04-05 Eli Zaretskii <eliz@gnu.org>
14908 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14909 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14910 2008-03-14 to force inode be positive.
14912 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14913 _S_* ones, since we now use our own sys/stat.h.
14914 (stat, fstat): Don't mangle the inode number.
14915 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14917 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14919 * frame.h (struct frame): Give one more bit to `visible' since we use
14920 values larger than 1 to indicate obscured frames on ttys.
14922 * keymap.c (Qkeymap_canonicalize): New var.
14923 (Fmap_keymap_internal): New fun.
14924 (describe_map): Use keymap-canonicalize.
14926 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14927 (Fundo_boundary): Set them.
14928 (syms_of_undo): Initialize them.
14929 (record_point): Use them instead of last_point_position*.
14930 (last_undo_buffer): Change type.
14932 2008-04-04 Jason Rumney <jasonr@gnu.org>
14934 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14935 (recompute_cached_metrics): Don't set ascent and descent per char.
14937 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14938 (uniscribe_check_otf): Add GC protection before consing.
14939 Rearrange loop for counting features.
14941 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14943 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14944 buffer with byte-size of source buffer.
14946 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
14948 * callint.c (Fcall_interactively): Handle temporary region even
14949 when shift-select-mode is off.
14951 2008-04-03 Jason Rumney <jasonr@gnu.org>
14953 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14955 2008-04-03 Kenichi Handa <handa@m17n.org>
14957 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14958 (CATEGORY_MASK_UTF_16): Likewise.
14959 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14961 (detect_coding): Add null-byte detection for a binary file.
14962 (detect_coding_system): Likewise.
14964 2008-04-03 Jason Rumney <jasonr@gnu.org>
14966 * w32uniscribe.c: New file.
14968 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14970 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14972 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14973 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14974 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14975 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14976 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14977 (Qphonetic): New symbols.
14978 (syms_of_w32font): Initialize them.
14979 (font_supported_scripts): Use them.
14980 (w32font_list_family): List all charsets.
14981 (w32font_text_extents, recompute_cached_metrics): Fix metric
14983 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14984 Give opentype fonts their own format.
14985 (font_matches_spec): New arguments backend and logfont.
14986 Handle :otf spec for uniscribe backend.
14987 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14988 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14990 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14992 (globals_of_w32fns): Initialize uniscribe font backend.
14994 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14996 (w32uniscribe.$(O)): New file to build.
14997 (FONT_OBJ): Include w32uniscribe.$(O).
14998 (LIBS): Add uniscribe libraries.
15000 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15002 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
15004 * callint.c (Vshift_select_mode): New var.
15005 (Finteractive): Document new ^ spec.
15006 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15009 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15010 (command_loop_1): Avoid running the direct display versions of
15011 forward-char and backward-char if shift-selection may occur.
15012 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15013 shift-translation takes place.
15015 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15016 avoid clobbering by define-minor-mode.
15018 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15019 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15021 * syntax.c (Fforward_word): Add ^ interactive spec.
15023 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15024 (Fscroll_right): Add ^ interactive spec.
15026 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15028 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15030 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15032 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15034 2008-03-31 Juri Linkov <juri@jurta.org>
15036 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15038 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15040 * gtkutil.c (xg_set_geometry): Fix indentation.
15041 (xg_resize_outer_widget): Remove.
15042 (x_wm_size_hint_off): Fix indentation.
15043 (xg_frame_set_char_size): Call flush_and_sync after
15045 (x_wm_set_size_hint): Pass NULL as geometry window to
15046 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15047 Add menu bar and tool bar height to base height.
15048 (xg_update_frame_menubar, free_frame_menubar)
15049 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15050 (update_frame_tool_bar, free_frame_tool_bar):
15051 Change xg_resize_outer_widget to xg_frame_set_char_size.
15053 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
15055 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15056 (Fdbus_call_method): New parameter TIMEOUT.
15057 (dbus-send-signal): Optimize UNGCPRO call.
15059 2008-03-29 Juri Linkov <juri@jurta.org>
15061 * window.c (Fdisplay_buffer): Move call to
15062 Vsplit_window_preferred_function out of conditions that check
15063 if window is eligible for vertical splitting.
15064 When Vsplit_window_preferred_function is non-nil, call it and use
15065 its non-nil return value as window. Otherwise, continue doing
15066 vertical splitting using Fsplit_window with arg horflag=nil.
15067 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15068 default value from `split-window' to nil.
15070 2008-03-29 Juri Linkov <juri@jurta.org>
15072 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15073 for interactive code letters 'b' and 'B'.
15075 2008-03-29 Eli Zaretskii <eliz@gnu.org>
15077 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15080 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15082 * keyboard.c (pending_funcalls): New var.
15083 (timer_check): Run it.
15084 (syms_of_keyboard): Initialize it.
15085 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15086 (Vdelete_terminal_functions): New vars.
15087 (syms_of_terminal): Initialize them.
15088 (Fdelete_terminal): Run delete-terminal-functions.
15089 * xdisp.c (safe_eval): Rewrite.
15090 (safe_call2): New fun.
15091 * frame.c (Qdelete_frame_functions): New var.
15092 (syms_of_frame): Initialize it.
15093 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15094 * lisp.h (safe_call2, pending_funcalls): Declare.
15096 2008-03-28 Andreas Schwab <schwab@suse.de>
15098 * indent.c (Fmove_to_column): Move declaration before statements.
15100 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15102 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15103 (struct frame): Use bit fields for boolean vars.
15105 * process.c (server_accept_connection): Simplify naming.
15106 (emacs_get_tty_pgrp): Use SDATA.
15108 * coding.c (decode_coding_object): Fix last change.
15110 2008-03-27 Jason Rumney <jasonr@gnu.org>
15112 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15114 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15116 * charset.c (Fdefine_charset_internal): Change the way of
15117 registering charsets in Vcharset_order_list.
15118 (syms_of_charset): Make the charset `eight-bit' supplementary.
15120 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15122 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15123 operations, to avoid having the difference between pointers
15126 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15128 * indent.c (check_display_width): New fun.
15129 (scan_for_column): Use it.
15131 * data.c (syms_of_data): Mark most-positive-fixnum and
15132 most-negative-fixnum as constants.
15134 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15136 * indent.c (scan_for_column): Extract from current_column_1.
15137 Merge with the same code from Fmove_to_column.
15138 (current_column_1, Fmove_to_column): Use it.
15140 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15142 * keymap.c (map_keymap_internal): New fun.
15143 (map_keymap): Use it.
15144 (Fmap_keymap_internal): New fun.
15145 (Fmap_keymap): Remove left-out test from before make_save_value.
15147 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15149 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15152 * process.h (struct Lisp_Process): Remove filter_multibyte.
15153 * process.c (QCfilter_multibyte): Remove.
15154 (setup_process_coding_systems): Don't use filter_multibyte.
15155 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15156 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15157 (Fset_process_filter_multibyte): Change the coding-system to
15158 approximate the previous behavior.
15159 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15162 * coding.c (decode_coding_object): When not decoding into a buffer,
15163 obey the coding system's preference of (uni|multi)byte.
15165 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15167 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15168 every char is changed and has a different byte-length.
15169 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15170 Fix int -> EMACS_INT.
15172 2008-03-23 David Hansen <david.hansen@gmx.net>
15174 * dbusbind.c (xd_read_message): Remove extra copying of message
15175 strings. Check for NULL `interface' or `member'.
15177 2008-03-22 Eli Zaretskii <eliz@gnu.org>
15179 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15180 cFileName a file name that includes `?' characters, use the 8+3
15181 alias in cAlternateFileName instead.
15183 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15185 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15187 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15189 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15190 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15191 work on current_buffer only instead (that was already the case
15192 for some of the code anyway).
15193 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15194 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15195 (SET_PT, SET_PT_BOTH): Adjust.
15196 * intervals.h (set_point, temp_set_point, set_point_both)
15197 (temp_set_point_both): Remove redundant declarations.
15199 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15201 * fileio.c (Finsert_file_contents):
15202 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15203 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15204 when buffer != current_buffer anyway.
15206 2008-03-20 Andreas Schwab <schwab@suse.de>
15208 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15211 2008-03-19 Jason Rumney <jasonr@gnu.org>
15213 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15214 (syms_of_w32fns): Initialize them.
15215 (HOURGLASS_ID): New constant.
15216 (x_window_to_frame): Don't check hourglass_window.
15217 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15218 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15219 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15220 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15221 Only change the cursor if hourglass is not active.
15222 (Fx_create_frame): Initialize frame's current_cursor.
15223 (hourglass_atimer): Remove.
15224 (hourglass_started): New function.
15225 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15226 (show_hourglass): Adapt to w32, changing argument to frame.
15228 * w32term.h (struct w32_output): Remove hourglass_window.
15229 Add current_cursor.
15231 * eval.c (call_debugger, Fsignal):
15232 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15233 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15234 (Fexecute_extended_command, cancel_hourglass_unwind):
15235 * minibuf.c (read_minibuf):
15236 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15238 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15240 * window.c (run_funs): New fun.
15241 (run_window_configuration_change_hook): Use it to run the buffer-local
15242 and the global part of the hook.
15244 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15245 (unwind_format_mode_line): Restore selected window.
15246 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15248 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15250 * editfns.c (Fchar_equal): Check they are valid characters.
15252 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15254 2008-03-17 Andreas Schwab <schwab@suse.de>
15256 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15259 * lisp.h (Fbuffer_list): Declare.
15261 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
15263 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15264 handlebox_widget is != 0.
15266 2008-03-16 Juri Linkov <juri@jurta.org>
15268 * callint.c (Fcall_interactively): For interactive code letters
15269 'b' and 'B' put the buffer list into the list of default "future"
15270 values of the minibuffer.
15272 2008-03-16 Andreas Schwab <schwab@suse.de>
15274 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15277 * regex.c (re_match_2_internal): Correct matching of a charset
15278 against latin-1 characters.
15280 2008-03-16 Kenichi Handa <handa@m17n.org>
15282 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15283 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15284 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15285 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15286 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15287 CHAR_STRING_ADVANCE.
15288 (produce_chars): Fix for the case that the source and the
15289 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15290 instead of CHAR_STRING_ADVANCE.
15291 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15292 STRING_CHAR_ADVANCE.
15294 2008-03-15 Andreas Schwab <schwab@suse.de>
15296 * regex.c (re_match_2_internal): Correct matching of eight bit
15297 characters in unibyte strings.
15299 2008-03-15 Martin Rudalics <rudalics@gmx.at>
15301 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15302 at end of range when it coincides with the end of the buffer.
15304 2008-03-14 Eli Zaretskii <eliz@gnu.org>
15306 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15308 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15310 2008-03-14 Jason Rumney <jasonr@gnu.org>
15312 * editfns.c (initial_tz): New variable.
15313 (syms_of_editfns): Initialize it.
15314 (Fset_time_zone_rule): Set it when first called.
15315 Use it when TZSTRING is nil.
15317 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15318 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15319 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15320 (globals_of_w32fns): Initialize them.
15321 (compute_tip_xy): Use them to position tooltips.
15323 2008-03-14 Glenn Morris <rgm@gnu.org>
15325 * emacs.c (main): Revert previous change.
15326 (standard_args): Revert -internal-script back to -scriptload,
15327 and remove the long-option form.
15329 2008-03-13 Glenn Morris <rgm@gnu.org>
15331 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15332 Remove option -enable-font-backend.
15334 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15336 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15338 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15340 * xterm.c (x_connection_closed): For GTK: If this is the last
15341 terminal just exit without closing the display.
15343 2008-03-11 Jason Rumney <jasonr@gnu.org>
15345 * w32font.c (w32font_full_name): Use floor to round.
15347 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15349 * sound.c (alsa_configure): Declare vol at beginning of block.
15351 * fontset.c (Ffontset_info): Remove extra semicolon.
15353 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15355 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15356 size of resulting string.
15358 2008-03-10 Jason Rumney <jasonr@gnu.org>
15360 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15362 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15364 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15365 Don't pretend as if characters with display property haven't been
15366 consumed for string-replacing-string case.
15368 2008-03-08 Kim F. Storm <storm@cua.dk>
15370 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15371 (get_next_display_element, next_element_from_string)
15372 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15374 2008-03-08 Andreas Schwab <schwab@suse.de>
15376 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15378 2008-03-06 Jason Rumney <jasonr@gnu.org>
15380 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15381 when charset not specified. Only translate ANSI to unicode when
15382 font_type is truetype.
15383 (w32font_coverage_ok): New function.
15384 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15386 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15388 * lread.c (Fread_char): Resolve modifiers.
15389 (Fread_char_exclusive): Likewise.
15391 * character.c (char_resolve_modifier_mask): New function.
15392 (char_string): Use char_resolve_modifier_mask.
15393 (Fchar_resolve_modifiers): New function.
15394 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15397 2008-03-04 Jason Rumney <jasonr@gnu.org>
15399 * makefile.w32-in: Always include w32font.c in the build.
15400 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15402 2008-03-04 Andreas Schwab <schwab@suse.de>
15404 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15405 (versionclean): Likewise.
15407 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
15409 * .cvsignore: Add oo.
15411 2008-03-03 Andreas Schwab <schwab@suse.de>
15413 * coding.c (decode_coding_object): Inhibit gap shrinking while
15416 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15418 * w32term.c: Remove unused include "gnu.h".
15419 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15421 * gnu.h: Rename to ...
15422 * emacs-icon.h: ... this.
15423 * xterm.c: Use emacs-icon.h instead of gnu.h.
15424 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15426 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
15428 * w32font.c: Include math.h.
15430 2008-03-03 Jason Rumney <jasonr@gnu.org>
15432 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15433 Compute options separately.
15434 (w32font_open_internal): Set glyph_idx before caching metrics.
15436 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15437 Define if system headers don't.
15438 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15439 (w32font_encode_char): Don't declare here.
15441 * w32font.c (Quniscribe, QCformat): New symbols.
15442 (syms_of_w32font): Define them.
15443 (w32font_has_char): Indicate uncertainty.
15444 (w32font_encode_char): Encode as glyph point. Make static.
15445 (recompute_cached_metrics): New function.
15446 (w32font_open_internal): Use it. Set font to use glyph points
15447 initially. Set format based on type of font.
15448 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15449 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15450 on it. Set format based on information available here.
15451 (add_font_entity_to_list): Identify backend based on opentype_only.
15453 2008-03-02 Andreas Schwab <schwab@suse.de>
15455 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15457 * coding.c (decode_coding_big5, produce_chars):
15458 Fix typos in last change.
15460 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15464 2008-03-02 Kenichi Handa <handa@m17n.org>
15466 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15467 `dos', don't decode '\r' if that is the last in the source.
15468 (decode_coding_utf_16, decode_coding_emacs_mule)
15469 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15470 (decode_coding_raw_text, decode_coding_charset): Likewise.
15471 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15473 2008-03-01 Jason Rumney <jasonr@gnu.org>
15475 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15477 2008-03-01 Kim F. Storm <storm@cua.dk>
15479 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15481 2008-03-01 Jason Rumney <jasonr@gnu.org>
15483 * w32font.c (w32font_full_name): New function.
15484 (w32font_open_internal): Use it.
15486 2008-03-01 Kim F. Storm <storm@cua.dk>
15488 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15490 2008-03-01 Jason Rumney <jasonr@gnu.org>
15492 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15494 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15496 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15497 xg_frame_resized when the event is for the edit widget.
15499 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15501 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15503 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15504 operations on widgets here. Just set frame size if needed.
15505 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15506 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15507 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15509 (xg_create_tool_bar): Move attachment of the tool bar to
15510 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15511 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15513 2008-03-01 Jason Rumney <jasonr@gnu.org>
15515 * w32fns.c (w32_msg_pump): Disable debug code.
15517 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15519 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15521 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
15523 * xdisp.c (next_overlay_string): Don't set
15524 overlay_strings_at_end_processed_p if we're currently reading from
15527 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15529 * xdisp.c (get_overlay_strings_1): Fix typo.
15531 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
15533 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15535 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15537 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15539 * xdisp.c (display_mode_element): Cancel the previous change.
15540 (decode_mode_spec): Likewise.
15541 (handle_auto_composed_prop): Don't make composition if it->string
15544 2008-02-27 Kim F. Storm <storm@cua.dk>
15546 * lisp.h (GLYPH): Change type from int to struct with separate char
15547 and face_id members.
15548 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15549 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15550 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15551 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15552 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15553 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15554 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15555 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15556 handle new Lisp glyph code encoding, either an integer or a cons.
15558 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15559 (GLYPH_ALIAS): Delete.
15560 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15561 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15562 (GLYPH_FROM_CHAR): Replace macro by ...
15563 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15565 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15566 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15567 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15568 (GLYPH_INVALID_P): New macro.
15569 (spec_glyph_lookup_face): Update prototype.
15571 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15572 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15573 new glyph code encoding.
15574 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15575 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15577 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15578 Adapt to new glyph type and new glyph code encoding.
15580 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15582 * indent.c (current_column, current_column_1, Fmove_to_column)
15583 (compute_motion): Adapt to new glyph code encoding.
15585 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15587 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
15589 * process.c (wait_reading_process_output): Check for window
15590 changes caused by timers.
15591 Suggested by Johan Bockgård.
15593 2008-02-27 Glenn Morris <rgm@gnu.org>
15595 * emacs.c (USAGE1): Add `--disable-font-backend'.
15597 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15599 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15600 is made to the buffer.
15602 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15604 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15605 (face_at_string_position):
15606 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15607 (face_at_string_position):
15608 * xdisp.c (display_string, next_overlay_change):
15609 * buffer.h (overlays_at):
15610 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15613 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
15615 * editfns.c (Fformat): Doc fix.
15617 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
15619 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15620 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15621 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15623 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15625 * buffer.c (Fbuffer_swap_text): New function.
15626 (syms_of_buffer): Defsubr it.
15628 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
15630 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15632 2008-02-25 Jason Rumney <jasonr@gnu.org>
15634 * w32font.c (w32font_draw): Draw one character at a time when padding.
15636 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15638 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15639 Handle a nil arg. Use run_window_configuration_change_hook.
15640 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15641 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15642 Use run_window_configuration_change_hook.
15644 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15646 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15649 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15651 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15652 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15653 if the glyph in the font is zero pixel with.
15655 * dispextern.h (struct glyph_string): New member padding_p.
15657 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15659 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15661 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15663 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15665 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15667 2008-02-25 Jason Rumney <jasonr@gnu.org>
15669 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15671 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15673 Allow fine-grained image-cache flushing.
15674 * dispextern.h (struct image): Add `dependencies' field.
15675 (clear_image_caches): Change arg to Lisp_Object.
15676 * image.c (make_image): Initialize `dependencies' field.
15677 (clear_image_cache): Change arg to allow fine-grained flushing.
15678 Perform the flush even if image-cache-eviction-delay is nil.
15679 (clear_image_caches): Change arg to Lisp_Object.
15680 (Fclear_image_cache): Expand meaning of the argument.
15681 (mark_image): Mark `dependencies' field.
15682 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15683 (lface_hash): Use XHASH rather than XFASTINT.
15684 (face_at_buffer_position): Fix int -> EMACS_INT position.
15685 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15686 (select_frame_for_redisplay): Remove code duplication.
15687 (redisplay_internal): Adapt arg to call to clear_image_caches.
15689 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15694 * s/vms5-5.h: Remove, unused.
15700 * m/mips4.h: Remove files for obsolete systems.
15713 * s/usg5-3.h: Remove references to obsolete variables.
15715 * s/irix5-0.h: Remove, move all the contents ...
15716 * s/irix6-5.h: ... here. Simplify.
15717 * config.in: Regenerate.
15719 2008-02-24 Jason Rumney <jasonr@gnu.org>
15721 * w32term.c (x_draw_glyph_string_background): Clear the background
15722 manually when cleartype is in use.
15723 (x_draw_glyph_string_foreground): Draw text transparently when
15724 cleartype is in use.
15726 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15727 a font into it unless we have to.
15729 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15731 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15732 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
15734 2008-02-18 Jason Rumney <jasonr@gnu.org>
15736 * w32fns.c (Fw32_shell_execute): Encode parameters.
15738 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15740 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15742 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
15744 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15746 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15748 * xterm.c (x_set_offset): Don't change the gravity if
15749 CHANGE_GRAVITY is -1.
15751 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
15753 * fileio.c (auto_save_error_occurred): New var.
15754 (auto_save_error): Set it.
15755 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15758 2008-02-23 Eli Zaretskii <eliz@gnu.org>
15760 * w32.c (globals_of_w32): Add initializations for
15761 g_b_init_get_sid_sub_authority and
15762 g_b_init_get_sid_sub_authority_count.
15764 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15766 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15767 (font_parse_xlfd): Use them for sanity check.
15768 (Finternal_set_font_style_table): Make sure the table is bijective.
15770 Consolidate the image_cache to the terminal struct.
15771 * termhooks.h (P_): Remove redundant def.
15772 (struct terminal): New field `image_cache'.
15773 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15774 of FRAME_X_IMAGE_CACHE.
15775 * xterm.h (struct x_display_info): Remove image_cache field.
15776 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15777 * w32term.h (struct w32_display_info): Remove image_cache field.
15778 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15779 * macterm.h (struct mac_display_info): Remove image_cache field.
15780 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15781 * xterm.c (x_term_init):
15782 * w32term.c (w32_term_init):
15783 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15784 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15785 Remove declarations.
15786 (clear_image_caches, mark_image_cache): New declarations.
15787 * xfaces.c (clear_face_cache):
15788 * xdisp.c (redisplay_internal): Use clear_image_caches.
15789 * image.c (clear_image_cache): Don't check that a frame is on
15790 a window-system before checking if it shares the same cache.
15791 (clear_image_caches): New function.
15792 (Fclear_image_cache): Use it.
15793 (mark_image): Move from allo.c.
15794 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15795 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15796 (mark_object): Don't call mark_image_cache for frames.
15797 (mark_terminals): Call mark_image_cache.
15799 * lisp.h (Fdelete_terminal): Declare.
15801 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15802 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15803 wrong_type_argument.
15805 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15807 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15808 malayalam.el, and tamil.el. Add sinhala.el.
15810 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15812 * xterm.c (x_connection_closed): Consolidate identical tests.
15813 (x_delete_terminal): Don't crash if called via x_connection_closed.
15815 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15817 * xdisp.c (decode_mode_spec): New arg string.
15818 (display_mode_element): Adjust for the above change.
15820 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15822 * callint.c (Fcall_interactively): Use AREF.
15824 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15826 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15828 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15830 * xfns.c (Fx_show_tip): Set string to " " if empty.
15832 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15834 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15837 2008-02-17 Kenichi Handa <handa@m17n.org>
15839 * ftfont.c (ftfont_shape): Return Lispy number.
15841 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15843 (Finternal_set_font_selection_order): Call font_update_sort_order
15844 only when enable_font_backend is set.
15845 (realize_x_face): Set face->font_info to that of default face only
15846 when enable_font_backend is set.
15848 * xdisp.c (handle_composition_prop): Set it->c to the fist
15849 character of the composed region.
15850 (fill_composite_glyph_string): Set base_face->font_info to
15851 s->font_info. Get a face for ascii from base_face->ascii_face.
15852 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15853 with a face already decided.
15854 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15856 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15857 call font_prepare_composition unconditionally.
15859 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15861 * xterm.h (struct x_display_info): New member font.
15863 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15864 (x_set_mouse_face_gc, x_new_font): Likewise.
15865 (x_term_init): Setup display_info->font.
15866 (x_delete_terminal): Free display_info->font.
15868 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15870 * ftxfont.c (ftxfont_default_fid): Delete it.
15871 (ftxfont_open): Set xfont->fid to 0.
15872 (ftxfont_end_for_frame): Clear data specific to the frame and the
15875 * xftfont.c (xftfont_default_fid): Delete it.
15876 (xftfont_open): Set xfont->fid to 0.
15878 * fontset.c (FONTSET_OBJLIST): New macro.
15879 (fontset_find_font): Update font-object list of the fontset.
15880 (free_realized_fontset): New function.
15881 (free_face_fontset): Call free_realized_fontset.
15882 (Ffont_info): Call font_close_object only when enable_font_backend
15885 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15886 [HAVE_NTGUI]: Include w32term.h.
15887 [MAC_OS]: Include macterm.ch.
15888 (font_otf_ValueRecord): Use make_number.
15889 (font_finish_cache): Fix handling of reference count.
15890 (font_clear_cache): Update num_fonts.
15891 (font_open_entity): Update smallest_char_width and
15892 smallest_font_height of the frame.
15893 (font_close_object): Update num_fonts.
15894 (Fclear_font_cache): Fix finding the target cache data.
15896 2008-02-16 Glenn Morris <rgm@gnu.org>
15898 * fontset.c (Finternal_char_font): Fix compilation warning.
15900 2008-02-16 Eli Zaretskii <eliz@gnu.org>
15902 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15903 instead of char arrays. Enlarge the size of array passed to
15904 get_token_information.
15906 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15909 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15911 * .gdbinit: Don't set `args', it breaks gdb --args.
15913 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15915 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15916 within a narrowed buffer.
15918 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15920 * coding.c (decode_coding_object, encode_coding_object):
15921 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15923 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15925 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15927 (detect_coding_system):
15928 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15929 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15930 * insdel.c (insert_from_gap):
15931 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15932 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15933 (string_to_multibyte):
15934 * character.c (chars_in_text, multibyte_chars_in_text):
15935 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15937 * character.h (FETCH_STRING_CHAR_ADVANCE)
15938 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15939 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15940 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15942 * casefiddle.c (casify_region): Only call after-change and composition
15943 functions on the part of the region that was changed.
15945 * keyboard.c (read_avail_input):
15946 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15948 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15950 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15951 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15953 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
15955 * w32menu.c (push_submenu_start, push_submenu_end)
15956 (push_left_right_boundary, push_menu_pane, push_menu_item):
15957 * keyboard.c (read_key_sequence): Don't pass args with side effects
15958 to AREF, it fails when compiling with -DENABLE_CHECKING.
15960 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15962 * Makefile.in (${lispsource}international/charprop.el):
15963 Delete this target.
15965 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15968 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15970 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15972 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15974 * frame.c (Qnoelisp): New symbol.
15975 (syms_of_frame): Initialize it.
15976 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15977 harmless Elisp code, from a strong `force' from x_connection_closed.
15978 * frame.h (Qnoelisp): Declare.
15979 * xterm.c (x_connection_closed): Pass `noelisp'.
15981 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15982 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15983 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15984 rather than `int' for the type of `type'.
15986 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15988 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15990 * Makefile.in (GNUC): Remove support for gcc-1.x.
15992 2008-02-10 Richard Stallman <rms@gnu.org>
15994 * lisp.h (ASET): Use AREF, not ASLOT.
15996 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15998 * lisp.h (ASET): Check bounds.
16000 2008-02-10 Glenn Morris <rgm@gnu.org>
16002 * buffer.c (mode-name): Doc fix.
16004 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16021 * xterm.c: Remove code that deals with obsolete variables.
16023 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16025 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16026 nothing else needs it anymore.
16028 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16030 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16031 instead of unibyte_char_to_multibyte.
16033 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16035 * s/gnu-linux.h: Remove commented out code.
16037 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16039 * Makefile.in: Update what RMS says about using autoconf.
16040 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16041 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16042 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16043 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16045 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16047 * keymap.c (Fkey_description): Move side effect outside of macro call.
16049 * xfaces.c (Finternal_make_lisp_face):
16050 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16052 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16053 (syms_of_fontset): Use ASET.
16055 * fns.c (concat): Move side effect outside of macro call.
16056 (hash_clear): Use ASET.
16058 2008-02-08 Richard Stallman <rms@gnu.org>
16060 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16061 If FORCE, and frame has a surrogate minibuffer for another frame,
16062 delete the other frame first.
16064 2008-02-07 Timo Savola <timo.savola@iki.fi>
16066 * xterm.c (x_detect_focus_change): Handle embed client message.
16067 (handle_one_xevent): Ditto.
16068 (handle_one_xevent): If embedded and we get a button press/release,
16070 (xembed_set_info, xembed_send_message): New functions.
16071 (x_make_frame_visible): Call xembed_set_info if embedded.
16072 (x_make_frame_invisible): Call xembed_set_info if embedded.
16073 (x_term_init): Initialize Xatom_XEMBED.
16074 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16075 (x_iconify_frame): Ditto.
16077 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16078 (enum xembed_info, enum xembed_message, enum xembed_focus)
16079 (enum xembed_modifier, enum xembed_accelerator): New.
16080 (xembed_set_info, xembed_send_message): Declare.
16081 (FRAME_X_EMBEDDED_P): New.
16083 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16086 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16087 window ID of a frame.
16088 (x_window): Reparent frame if embedded.
16089 (Fx_create_frame): Don't set border width if embedded.
16091 * emacs.c (USAGE3): Add --parent-id.
16092 (standard_args): Ditto.
16094 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16096 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16098 2008-02-07 Jim Meyering <meyering@redhat.com>
16100 Use "do...while (0)", not "if (1)...else" in macro definitions.
16101 The latter provokes a warning from gcc about the empty else, when
16102 followed by ";". Also, without that trailing semicolon, it would
16103 silently swallow up any following statement.
16104 * syntax.h (SETUP_SYNTAX_TABLE)
16105 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16106 * buffer.h (DECODE_POSITION): Likewise.
16107 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16108 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16109 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16110 (FETCH_CHAR_ADVANCE): Likewise.
16111 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16113 2008-02-07 Jim Meyering <meyering@redhat.com>
16115 * lread.c [lint]: Don't include <sys/inode.h>.
16117 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16119 * xselect.c (x_handle_dnd_message):
16120 * xmenu.c (digest_single_submenu, xmenu_show):
16121 * xdisp.c (with_echo_area_buffer_unwind_data)
16122 (format_mode_line_unwind_data, unwind_format_mode_line)
16123 (display_menu_bar):
16124 * eval.c (Ffetch_bytecode):
16125 * doc.c (store_function_docstring):
16126 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16127 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16128 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16130 2008-02-07 Kenichi Handa <handa@m17n.org>
16132 * ftxfont.c (ftxfont_open): Don't set
16133 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16135 * ftfont.c (ftfont_open): Fix previous change.
16137 2008-02-06 Jason Rumney <jasonr@gnu.org>
16139 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16140 Use cached metrics for ASCII characters.
16141 (w32font_open_internal): Don't set font's owning_frame.
16142 Cache metrics for ASCII characters.
16144 * w32font.h (struct w32font_info): Add ascii_metrics.
16145 Remove owning_frame.
16147 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16149 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16152 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16154 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16156 * charset.c (syms_of_charset): Set QCtest and Qeq.
16158 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16160 * process.c (Fstart_process):
16161 * callproc.c (Fcall_process): Handle the case where
16162 Funhandled_file_name_directory returns nil.
16164 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16165 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16166 * font.c (check_gstring): Use them and AREF to access the vector before
16167 we know it's really a gstring.
16168 (Ffont_shape_text): Fix typo.
16169 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
16171 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16174 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16176 2008-02-05 Jason Rumney <jasonr@gnu.org>
16178 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16179 Set smallest_font_height and smallest_char_width in display info.
16181 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16183 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16185 2008-02-05 Miles Bader <miles@gnu.org>
16187 * xfaces.c (get_lface_attributes, merge_named_face)
16188 (lookup_named_face, lookup_derived_face, realize_named_face):
16189 Revert 2008-02-01 change by cyd@stupidchicken.com.
16191 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16193 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16195 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16197 2008-02-04 Jason Rumney <jasonr@gnu.org>
16199 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16201 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16203 2008-02-03 Jason Rumney <jasonr@gnu.org>
16205 * makefile.w32-in (OBJ1): Include font.o here.
16206 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16208 2008-02-02 Jason Rumney <jasonr@gnu.org>
16210 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16212 2008-02-01 Jason Rumney <jasonr@gnu.org>
16214 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16216 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16218 2008-02-01 Andreas Schwab <schwab@suse.de>
16220 * Makefile.in (shortlisp, lisp): Update for rename of
16221 ../lisp/language/myanmar.el.
16223 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
16225 * xfaces.c (get_lface_attributes): Delete function.
16226 (merge_named_face, lookup_named_face, lookup_derived_face)
16227 (realize_named_face): Call lface_from_face_name directly, and use
16228 the fact that merge_face_vectors does not alter its FROM argument.
16230 2008-02-01 Jason Rumney <jasonr@gnu.org>
16232 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16233 input in the default locale. Handle non-Unicode multibyte input.
16235 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16237 * fontset.c (reorder_font_vector): Exclude nil elements from the
16238 font group. Don't try multiple fonts.
16239 (fontset_font): Adjust for the above change.
16240 (Finternal_char_font): Return nil if the found font doesn't
16241 contain the character ch.
16243 * Makefile.in (lisp, shortlisp): Add cham.el.
16245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16247 * font.h (FONTP): Make it return 1 also for a font-object.
16249 * .gdbinit (xfontset): New function.
16251 * font.c (font_find_for_lface): Check if the character C is
16252 supported or not only for the first font.
16254 * fontset.c (reorder_font_vector): Fix typo.
16255 (fontset_find_font): Don't add a font-spec specifying a script.
16256 Use 0 (not Qt) for the indication of empty font-group. Change the
16257 format of RFONT-DEF. Return Qt if no font in the font-group
16258 support the character.
16259 (fontset_font): Adjust for the above change. If no font was
16260 found the character, remember that.
16261 (face_for_char): Adjust for the change of RFONT-DEF.
16262 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16263 no font for the target.
16264 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16266 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16268 * font.c (font_load_for_face): Handle the case that the font in
16269 face->lface is a string.
16271 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16273 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16275 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16277 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16278 Fix previous change. If the frame is not on a window system,
16281 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16283 * coding.c (decode_coding_object, encode_coding_object): Adjust
16284 marker positions after conversion.
16286 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16288 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16290 * font.c (font_find_for_lface): Fix the handling of the return
16291 value of font_has_char.
16292 (Ffont_shape_text): Fix previous change.
16294 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16295 (fontset_ref_and_range): Delete it.
16296 (fontset_find_font): Call char_table_ref_and_range instead of
16297 FONTSET_REF_AND_RANGE.
16298 (make_fontset): Don't setup font groups of Latin here.
16299 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16300 (new_fontset_from_font): Make the specified font the default for
16301 all Latin characters.
16303 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16305 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16306 is on a window system before accessing the fontset of the frame.
16308 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16310 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16312 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16313 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16315 * font.c (Ffont_shape_text): If the font driver doesn't have a
16316 shaper function, make zero-width glyphs to have at least one-pixel
16317 width. Fix setting of `to' field of glyphs.
16319 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16321 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16324 * font.h (struct font_driver): Improve docstring of member `shape'.
16326 2008-02-01 Kenichi Handa <handa@m17n.org>
16328 * composite.c (syms_of_composite): Fix docstring of
16329 auto-composition-function.
16331 * font.h (LGLYPH_SIZE): New macro.
16333 * font.c (Ffont_fill_gstring): Stop filling when a character not
16334 supported by the font is found.
16335 (Ffont_shape_text): When a shape callback function returns nil,
16336 try at most two more times with larger gstring.
16337 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16339 * xdisp.c (handle_auto_composed_prop): Change the argument to
16340 auto-composition-function.
16342 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16343 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16344 Lispy glyph and store it in the lgstring.
16346 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16348 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16350 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16352 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16354 * fontset.c (Vfont_encoding_charset_alist): New variable.
16355 (syms_of_fontset): DEFVAR it.
16356 (reorder_font_vector, fontset_find_font): Optimize for the case of
16357 no need of reordering.
16358 (face_for_char): Map the charset property by
16359 Vfont_encoding_charset_alist.
16361 2008-02-01 Jason Rumney <jasonr@gnu.org>
16363 * w32font.c (logfonts_match): Don't check adstyle here.
16364 (font_matches_spec): Check here against physical font instead.
16365 (add_font_entity_to_list): Avoid some substitutions.
16367 * font.c (font_parse_fcname): Default weight and slant to normal.
16368 (font_score): Prefer normal fonts if weight or slant unspecified.
16369 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16370 match freetype scores.
16372 2008-02-01 Jason Rumney <jasonr@gnu.org>
16374 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16375 font, as it may have been deleted.
16376 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16377 most common hyphenless variation.
16378 (logfonts_match): Check generic family.
16379 (font_matches_spec): Don't check generic family here.
16380 (fill_in_logfont): Set generic family based on adstyle.
16382 * w32font.h (w32font_get_cache): Update declaration.
16384 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16386 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16388 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16389 If none of the new drivers are available, call font_update_drivers
16390 with the old drivers.
16392 * w32font.c (w32font_get_cache): Adjust the argument type.
16394 * xfont.c (xfont_get_cache): Adjust the argument type.
16396 * font.h (struct font_driver): Change argument type of get_cache.
16398 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16400 * font.c (Ffont_get): Fix arguments to Fassoc.
16401 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16402 (font_clear_cache): New function.
16403 (font_list_entities, font_matching_entity): Use font_get_cache.
16404 (font_update_drivers): Call font_clear_cache when finishing a driver.
16406 * fontset.c (fontset_find_font): Fix previous change.
16408 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16410 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16411 dpyinfo->font_table.
16412 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16413 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16415 * font.c (font_at): Handle the case that the arg C is negative.
16416 Handle the unibyte case.
16417 (Ffont_at): Call font_at with the arg C -1.
16419 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16420 the position here, and call font_at with the arg C -1.
16421 Don't check the range of the existing composition at the point.
16423 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16425 * fontset.c (fontset_add): New args charset_id and family.
16427 (load_font_get_repertory, fontset_find_font): Assume that
16428 font_spec is always a font-spec object.
16429 (Fset_fontset_font): Always store a font-spec object in a fontset.
16431 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16432 instead of get_property_and_range.
16434 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16436 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16437 (xftfont_open): Don't keep locking face.
16438 (xftfont_close): Don't unlock face.
16439 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16441 * fontset.c (fontset_find_font): Don't prefer a font of
16442 supplementary charset.
16444 2008-02-01 Kenichi Handa <handa@m17n.org>
16446 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16447 script, langsys_tag to langsys, new member script.
16448 (OTF_TAG_STR): Terminate by '\0'.
16449 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
16450 listing to the script specified in that property. Fix arg to
16451 OTF_check_features.
16453 2008-02-01 Jason Rumney <jasonr@gnu.org>
16455 * w32font.h: New file.
16457 * w32font.c: Include it.
16458 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16459 (w32font_open): Set owning_frame.
16460 (w32font_text_extents): Use owning_frame.
16461 (struct font_callback_data): Add opentype_only field.
16462 (add_font_entity_to_list): Use it to filter fonts.
16463 Don't check against full name.
16464 (w32font_list_internal): New function.
16465 (w32font_list): Use it.
16466 (w32font_match_internal): New function.
16467 (w32font_match): Use it.
16468 (w32font_open_internal): New function.
16469 (w32font_open): Use it.
16470 (w32font_get_cache, w32font_close, w32font_has_char)
16471 (w32font_encode_char, w32font_text_extents, w32font_draw):
16474 * makefile.w32-in (w32font.o): Depend on w32font.h.
16476 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16478 * charset.c (Fdefine_charset_internal): Record a supplementary
16479 charset at the tail of Vcharset_order_list.
16481 * font.c (Ffont_shape_text): Fix the return value.
16483 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16485 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16487 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16489 * ftfont.c (struct OpenTypeSpec): New struct.
16490 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16491 (ftfont_get_open_type_spec): New function.
16492 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16494 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16496 2008-02-01 Jason Rumney <jasonr@gnu.org>
16498 * w32font.c (add_font_entity_to_list): Compare only the beginning
16501 2008-02-01 Kenichi Handa <handa@m17n.org>
16503 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16504 Never return HANDLED_RECOMPUTE_PROPS.
16506 2008-02-01 Kenichi Handa <handa@m17n.org>
16508 * font.c (font_gstring_produce): Delete it.
16510 * composite.h (COMPOSITION_METHOD):
16511 Handle COMPOSITION_WITH_GLYPH_STRING.
16513 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16515 * xfont.c (Qx): Delete.
16516 (syms_of_xfont): Don't initialize Qx.
16518 * composite.h (enum composition_method):
16519 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16521 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16523 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16524 (choose_face_font): Accept new form of font-spec.
16526 * frame.h (font_driver_list): Declare it unconditionally.
16527 (struct frame): Define members font_driver_list and font_data_list
16530 * fontset.c: Include "font.h" unconditionally.
16531 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16532 (Fset_fontset_font): Accept a font-spec object.
16534 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16535 PIXEL_SIZE part a wild card.
16537 * dispextern.h (struct glyph_string): Define members clip and
16538 num_clips unconditionally.
16539 (struct face): Define members font_info and extra unconditionally.
16541 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16542 ftfont_info only when HAVE_LIBOTF is defined.
16544 2008-02-01 Andreas Schwab <schwab@suse.de>
16546 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16549 2008-02-01 Jason Rumney <jasonr@gnu.org>
16551 * w32font.c (w32font_driver): Add new fields.
16553 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16555 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16556 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16557 (LIBES): Add @M17N_FLT_CFLAGS@.
16559 * composite.c (compose_text): Don't treat the new style
16560 composition specially.
16562 * emacs.c (main): Call syms_of_font unconditionally.
16564 * font.h (FONT_ENTITY_NOT_LOADABLE)
16565 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16566 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16567 (struct font_driver): New member shape.
16568 (font_registry_charsets): Extern it.
16569 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16570 (font_otf_capability, font_drive_otf): Delete their externs.
16572 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16573 (font_charset_alist, font_registry_charsets): Move from xfont.c
16575 (font_prop_validate_otf): New function.
16576 (font_property_table): Register it for QCotf.
16577 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16578 (font_drive_otf): Delete.
16579 (font_prepare_composition): New arg F. Adjust for the change of
16581 (font_find_for_lface): New arg C.
16582 (font_load_for_face): Adjust for the change of font_find_for_lface.
16583 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16585 (Ffont_shape_text): New function.
16586 (Fopen_font): If the font size is not given, use 12-pixel.
16587 (Ffont_at): New arg STRING.
16588 (syms_of_font): Initalize font_charset_alist.
16589 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16592 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16593 fonts of the same font-spec. Change the format of RFONT-DEF.
16594 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16595 Adjust for the change of RFONT-DEF.
16596 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16598 * ftfont.h: New file.
16600 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16601 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16602 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16603 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16604 font_otf_capability and font_drive_otf, set ftfont_shape.
16605 (ftfont_list): Adjust for the change of :otf property value.
16606 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16607 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16608 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16609 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16610 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16611 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16613 * w32term.c (x_draw_composite_glyph_string_foreground):
16614 Adjust for the change of lispy gstring.
16616 * xdisp.c (handle_composition_prop): Adjust for the change of
16617 lispy gstring. Call a function for auto-composition with the
16618 third arg it->window.
16619 (fill_composite_glyph_string): Adjust for the change of lispy string.
16620 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16622 * xfaces.c (set_font_frame_param): Adjust for the change of
16623 font_find_for_lface.
16625 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16626 (xfont_registry_charsets): Likewise. Change caller.
16627 (syms_of_xfont): Don't handle x_font_charset_alist.
16629 * xftfont.c: Include "ftfont.h".
16630 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16631 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16632 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16633 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16634 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16635 Set xftfont_driver.shape to xftfont_shape.
16637 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16638 the change of lispy gstring.
16640 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16642 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16644 2008-02-01 Jason Rumney <jasonr@gnu.org>
16646 * w32font.c (w32font_draw): Fill background manually.
16648 2008-02-01 Jason Rumney <jasonr@gnu.org>
16650 * font.c (Qfontp): Remove unused symbol.
16651 (QCantialias): New symbol.
16652 (syms_of_font): Define it.
16653 (font_property_table): Set a validator for QCantialias.
16655 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16656 Define if not already.
16657 (QCfamily): Share with xfaces.c.
16658 (Qstandard, Qsubpixel, Qnatural): New symbols.
16659 (syms_of_w32font): Define them. Don't define QCfamily here.
16660 (w32_antialias_type, lispy_antialias_type): New functions.
16661 (w32_enumfont_pattern_entity): New arg requested_font.
16662 Set antialias parameter if non-default was requested.
16663 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16665 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16667 * lread.c (read1): Undo the previous change.
16669 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16671 * frame.c (Fdelete_frame): Call font_update_drivers only when
16672 USE_FONT_BACKEND is defined.
16674 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16676 * font.h (struct font_bitmap): New member bits_per_pixel.
16677 (struct font_driver): New members start_for_frame and end_for_frame.
16678 (struct font_data_list): New struct.
16679 (font_put_frame_data, font_get_frame_data): Extern them.
16681 * frame.h (struct frame): New member font_data_list.
16683 * font.c (font_update_drivers): Call driver->start_for_frame and
16684 driver->end_for_frame at proper timings.
16685 (font_put_frame_data, font_get_frame_data): New functions.
16686 (Ffont_spec): Add usage in the docstring.
16688 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16689 (Fdelete_frame): Call font_update_drivers.
16691 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16692 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16693 (xftfont_get_xft_draw): New function.
16694 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16695 (xftfont_end_for_frame): New function.
16696 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16698 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16699 Change argument. Cache GCs in the per-frame data.
16700 (struct ftxfont_frame_data): New struct.
16701 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16702 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16703 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16704 (ftxfont_end_for_frame): New function.
16705 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16707 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16709 2008-02-01 Kenichi Handa <handa@m17n.org>
16711 * xselect.c (Vselection_coding_system)
16712 (Vnext_selection_coding_system): Delete them.
16713 (syms_of_xselect): Don't declare selection-coding-system and
16714 next-selection-coding-system. They are declared in select.el.
16716 2008-02-01 Jason Rumney <jasonr@gnu.org>
16718 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16720 * w32fns.c: Include imm.h.
16721 (get_composition_string_fn, get_ime_context_fn): New optional
16723 (globals_of_w32fns): Load them from imm32.dll.
16724 (ignore_ime_char): New flag.
16725 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16726 WM_IME_ENDCOMPOSITION messages.
16728 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16729 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16731 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16733 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16734 (READCHAR_REPORT_MULTIBYTE): New macro.
16735 (readchar): New 2nd arg MULTIBYTE.
16736 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16737 Make symbol's name multibyte according to the multibyteness of the
16740 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16742 * xfaces.c (face_for_overlay_string): Call lookup_face with
16743 correct arguments (fix of synching with the trunk).
16745 2008-02-01 Kenichi Handa <handa@m17n.org>
16747 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16748 (font_prop_validate_non_neg, font_prop_validate_spacing):
16749 Delete argument prop_index.
16750 (font_property_table): Change arguments to validater. Change Callers.
16751 (font_lispy_object): Delete.
16752 (font_at): Use font_find_object instead fo font_lispy_object.
16754 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16756 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16759 2008-02-01 Jason Rumney <jasonr@gnu.org>
16761 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16762 (font_matches_spec): Remove debug output.
16763 (add_font_entity_to_list): Avoid using substituted fonts.
16765 2008-02-01 Jason Rumney <jasonr@gnu.org>
16767 * doc.c (Fsnarf_documentation):
16768 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16770 2008-02-01 Miles Bader <miles@gnu.org>
16772 * dispextern.h (struct glyph_row): Only define "clip" field if
16773 HAVE_WINDOW_SYSTEM is defined.
16775 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16777 Fix up multi-tty merge.
16779 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16782 * xfaces.c (free_realized_face, clear_face_gcs):
16783 Include font_done_for_face in the input_blocked section, just in case.
16785 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16786 (get_char_face_and_encoding): Undo last change and remove the *other*
16787 duplicate definition (i.e. keep the one that's better scoped and that
16788 includes code for the font-backend).
16790 * terminal.c (create_terminal): Default keyboard_coding to
16791 `no-conversion' and terminal_coding to `undecided'.
16793 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16795 * fontset.c (free_realized_fontsets): Check that the table entry does
16796 contain a fontset before trying to compare it to `base'.
16798 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16799 syms_of_charset, and syms_of_coding earlier because init_window_once
16800 now needs Vcoding_system_hash_table to be setup.
16802 * coding.h (default_buffer_file_coding): Remove.
16804 * coding.c (default_buffer_file_coding): Remove.
16805 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16806 than ->symbol, and use the terminal-local coding system.
16807 (syms_of_coding): Don't setup the coding-systems that are not
16809 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16811 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16812 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16814 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16815 in chartab.c and were re-added here by mistake.
16816 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16818 * doc.c (Fsnarf_documentation):
16819 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16822 * ChangeLog.10: Add mistakenly removed entry.
16824 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16826 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16828 2008-02-01 Miles Bader <miles@gnu.org>
16830 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16831 Add extra args to FACE_FOR_CHAR.
16833 2008-02-01 Kenichi Handa <handa@m17n.org>
16835 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16838 * chartab.c (map_sub_char_table, map_char_table): If the range
16839 contains just one character, call the function with that character
16840 even if the depth is not 3.
16842 2008-02-01 Jason Rumney <jasonr@gnu.org>
16844 * w32font.c (w32font_text_extents): Calculate metrics for the
16847 2008-02-01 Jason Rumney <jasonr@gnu.org>
16849 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16851 2008-02-01 Jason Rumney <jasonr@gnu.org>
16853 * w32term.c (x_set_glyph_string_clipping): Use
16854 get_glyph_string_clip_rects.
16855 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16856 Adjust for the change of struct glyph_string.
16858 * w32font.c (w32font_draw): Do clipping here.
16860 2008-02-01 Kenichi Handa <handa@m17n.org>
16862 * xftfont.c (xftfont_draw): Adjust for the change of struct
16865 * xterm.c (x_set_glyph_string_clipping): Use
16866 get_glyph_string_clip_rects.
16867 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16868 Adjust for the change of struct glyph_string.
16870 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16871 the resulting clip(s}.
16872 (expose_overlaps): Add arg r. Change callers. Set it to
16873 row->clip temporarily.
16874 (expose_window): Redraw rows overlapping the exposed area.
16876 * dispextern.h (struct glyph_row): New member clip.
16877 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16878 clip_height, new member clip, and num_clips.
16880 2008-02-01 Kenichi Handa <handa@m17n.org>
16882 * data.c (Fchar_or_string_p): Fix docstring.
16884 2008-02-01 Kenichi Handa <handa@m17n.org>
16886 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16887 create a temporary XftDraw object.
16889 2008-02-01 Kenichi Handa <handa@m17n.org>
16891 * font.c (Ffontp): Fix docstring.
16893 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16894 strong evidence of ISO-2022.
16896 2008-02-01 Kenichi Handa <handa@m17n.org>
16898 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16899 SYNTAX_ENTRY_FOLLOW_PARENT.
16901 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16903 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16905 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16906 Update to the new type of weak_hash_tables and next_weak.
16908 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16909 a plain C pointer to Lisp_Hash_Table.
16911 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16912 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16913 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16914 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16915 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16916 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16917 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16918 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16919 (GC_EQ): Remove since they've been identical to their non-GC_
16920 alter-egos ever since the markbit was eradicated.
16939 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16941 2008-02-01 Kenichi Handa <handa@m17n.org>
16943 * chartab.c (map_sub_char_table): Make it work for the top-level
16944 char-table. Fix handling of parent char-table.
16945 (map_char_table): Adjust for the above change.
16947 2008-02-01 Jason Rumney <jasonr@gnu.org>
16949 * w32font.c (Qgdi): Rename from Qw32.
16951 2008-02-01 Jason Rumney <jasonr@gnu.org>
16953 * w32bdf.c (get_quoted_string): Make function static.
16955 2008-02-01 Kenichi Handa <handa@m17n.org>
16957 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16958 bigger ascent and descent than those of the font, use them as
16959 font's ascent and descent.
16961 2008-02-01 Kenichi Handa <handa@m17n.org>
16963 * Makefile.in (${lispsource}international/charprop.el): Move this
16964 target within "#ifdef HAVE_UNIDATA" and "#endif".
16966 2008-02-01 Kenichi Handa <handa@m17n.org>
16968 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16969 (shortlisp): Add ../lisp/language/tai-viet.el.
16971 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
16973 * Makefile.in (${lispsource}international/charprop.el): Depend on
16976 2008-02-01 Jason Rumney <jasonr@gnu.org>
16978 * w32font.c (w32font_close): Delete the GDI font object.
16980 * w32menu.c: Include character.h.
16982 * w32proc.c: Likewise.
16984 * w32select.c: Likewise.
16986 * makefile.w32-in (w32proc.o): Depend on character.h.
16988 2008-02-01 Jason Rumney <jasonr@gnu.org>
16990 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16992 * w32menu.c (syms_of_w32menu): Likewise.
16994 * w32proc.c (syms_of_ntproc): Likewise.
16996 * w32select.c (syms_of_w32select): Likewise.
16998 * w32term.c (syms_of_w32term): Likewise.
17000 2008-02-01 Jason Rumney <jasonr@gnu.org>
17002 * w32font.c (w32font_draw): Delete brush after using it.
17004 2008-02-01 Jason Rumney <jasonr@gnu.org>
17006 * w32font.c (w32font_open): Don't set font_idx.
17007 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17009 (w32font_draw): Fill background explicitly.
17011 2008-02-01 Jason Rumney <jasonr@gnu.org>
17013 * w32term.c (w32_initialize): Don't call w32font_initialize.
17015 * w32font.c (w32font_info): Remove subranges.
17016 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17017 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17018 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17019 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17020 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17021 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17022 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17023 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17024 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17025 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17027 (font_callback_data): New struct.
17028 (w32font_list, w32font_match): Use it.
17029 (w32font_open): Don't populate subranges.
17030 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17031 (w32font_encode_char): Always return unicode code-point as-is.
17032 (w32font_text_extents): Supply a transformation matrix to
17033 GetGlyphOutline. Never look up by glyph index. Avoid looping
17034 twice. Use unicode version of GetTexExtentPoint32 instead of
17035 glyph index version.
17036 (set_fonts_frame): Remove.
17037 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17038 set frame parameter. Use backward compatible fake foundries.
17039 Save generic family in extra slot under QCfamily. Make width slot
17040 constant. Save QCspacing value. Save list of scripts instead of
17042 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17043 (add_font_entity_to_list): Use font_callback_data struct. Filter
17045 (add_one_font_entity_to_list): Use font_callback_data struct.
17046 (w32_registry): Default to iso10646_1.
17047 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17048 string font registries. Don't fill in font name if it is a generic
17049 family name, fill family instead. Use spacing, family and script
17050 extra info to fill pitch, family and charset fields.
17051 (list_all_matching_fonts): Use font_callback_data struct.
17052 (unicode_range_for_char): Remove.
17053 (font_supported_scripts): New function.
17054 (w32font_initialize): Remove.
17055 (syms_of_w32font): Update which symbols are defined.
17057 2008-02-01 Jason Rumney <jasonr@gnu.org>
17059 * font.c (font_pixel_size): Reverse assq_no_quit args.
17061 * w32term.h (FONT_WIDTH): Report max width, not average.
17062 (FONT_MAX_WIDTH): Remove.
17063 (FONT_AVG_WIDTH): New macro.
17065 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17066 redefinition of FONT_WIDTH.
17068 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17069 (w32_cache_char_metrics): Use FONT_WIDTH.
17071 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17073 2008-02-01 Jason Rumney <jasonr@gnu.org>
17075 * w32font.c (w32font_open): Make lfHeight negative.
17077 * w32fns.c (x_default_font_parameter): Use new style font name.
17078 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17080 2008-02-01 Jason Rumney <jasonr@gnu.org>
17082 * w32font.c (QCsubranges): New symbol.
17083 (w32font_open, w32font_has_char): Get subranges from subproperty
17085 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17086 (syms_of_w32font): Define :subranges symbol.
17088 * font.c (font_put_extra): Expose externally.
17090 * font.h (font_put_extra): Move declaration from font.c.
17092 * font.c (Ffont_get): Use font driver to determine otf capability.
17093 (adjust_anchor): Check if driver defines anchor_point before using.
17095 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17096 (w32font_draw): Use options.
17097 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17098 Fix detection of truetype fonts.
17099 (registry_to_w32_charset): Handle charsets other than iso8859-1
17100 expressed as lisp symbols.
17101 (w32_registry): Express charset as lisp symbol.
17102 (fill_in_logfont): Reverse pixel and point height logic.
17103 Don't set width here. Set quality to default.
17105 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17106 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17108 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17109 Remove redundant loop and allocation.
17111 * makefile.w32-in (font.o, w32font.o): New objects.
17112 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17113 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17115 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17116 STORE_XCHARB a valid l-value.
17118 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17119 calculations for non-Truetype fonts.
17120 (x_draw_glyph_string): Sync with xterm.c.
17121 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17122 Remove redundant code.
17123 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17125 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17126 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17128 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17129 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17131 * w32font.c: New file for w32 font backend.
17133 2008-02-01 Kenichi Handa <handa@m17n.org>
17135 * term.c: Don't include "buffer.h" twice.
17137 2008-02-01 Kenichi Handa <handa@m17n.org>
17139 * character.c (Funibyte_string): New function.
17140 (syms_of_character): Defsubr it.
17142 2008-02-01 Jason Rumney <jasonr@gnu.org>
17144 * w32term.c [USE_FONT_BACKEND]:
17145 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17146 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17147 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17148 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17149 (x_free_frame_resources): Sync with xterm.c.
17151 2008-02-01 Andreas Schwab <schwab@suse.de>
17153 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17156 2008-02-01 Kenichi Handa <handa@m17n.org>
17158 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17160 2008-02-01 Kenichi Handa <handa@m17n.org>
17162 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17163 font_otf_gpos, add font_drive_otf.
17165 * fontset.c (fontset_find_font): Pay attention to font size
17166 specified for a font.
17167 (reorder_font_vector): Check contents of font_def.
17169 * font.c (struct otf_list): Delete it.
17170 (otf_list): Make it a lisp variable.
17171 (otf_open): Use lispy otf_list.
17172 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17173 (check_otf_features): New function.
17174 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17176 (font_drive_otf): New function merging font_otf_gsub and
17178 (font_open_for_lface): New arg spec. Change argument order.
17179 (font_load_for_face): Adjust for the change of font_open_for_lface.
17180 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17182 (syms_of_font): Staticpro otf_list. Delete defsubr of
17183 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17185 * xfaces.c (set_font_frame_param): Adjust for the change of
17186 font_open_for_lface.
17188 * font.h (font_open_for_lface): Adjust prototype.
17189 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17191 (font_otf_gsub, font_otf_gpos): Delete externs.
17192 (font_drive_otf): Extern it.
17194 2008-02-01 Kenichi Handa <handa@m17n.org>
17196 * font.c (font_at): If the window W is not on a window system,
17199 * coding.c (produce_chars, encode_coding): Don't call
17200 insert_from_gap if no characters to produce.
17202 2008-02-01 Kenichi Handa <handa@m17n.org>
17204 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17207 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17209 2008-02-01 Miles Bader <miles@gnu.org>
17211 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17212 Parse "--disable-font-backend" option.
17213 (standard_args): Add "--disable-font-backend" option.
17215 2008-02-01 Kenichi Handa <handa@m17n.org>
17217 * fontset.c (fontset_find_font): New function.
17218 (fontset_font): Use fontset_find_font.
17219 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17220 Register the specified font for all Latin characters.
17221 (new_fontset_from_font): Register the specified font for all Latin
17223 (dump_fontset): For a realized fontset, include the base fontset
17224 name in the returned vector.
17226 2008-02-01 Kenichi Handa <handa@m17n.org>
17228 * character.h (CHAR_STRING): Cast C to unsigned on calling
17231 * character.c (char_string): Type of arg C changed to unsigned.
17232 Signal an error if C is an invalid character code.
17234 * editfns.c (general_insert_function, Fchar_to_string):
17235 Use CHARACTERP, not INTEGERP.
17237 2008-02-01 Kenichi Handa <handa@m17n.org>
17239 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17240 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17242 * regex.c (analyse_first): Fix for multibyte characters in "case
17243 charset:" and "case categoryspec:".
17245 2008-02-01 Andreas Schwab <schwab@suse.de>
17247 * Makefile.in (LIBES): Move standard libraries to the end.
17249 2008-02-01 Kenichi Handa <handa@m17n.org>
17251 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17252 nonzero, don't shrink the buffer nextb.
17254 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17256 * coding.c (coding_alloc_by_making_gap): New arg offset.
17257 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17259 (decode_coding_iso_2022): Update coding->safe_charsets.
17260 (decode_coding_gap): Temporarily set
17261 current_buffer->text->inhibit_shrinking to 1.
17263 2008-02-01 Kenichi Handa <handa@m17n.org>
17265 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17266 indexing into elements of s->cmp and s->char2b.
17268 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
17270 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17272 2008-02-01 Kenichi Handa <handa@m17n.org>
17274 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17275 target_multibyte instead of multibyte.
17276 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17277 (bcmp_translate): Change the argument name from multibyte to
17280 2008-02-01 Kenichi Handa <handa@m17n.org>
17282 These changes are to compile a regexp into a pattern that can be
17283 used both for multibyte and unibyte targets.
17285 * Makefile.in (search.o): Depend on charset.h.
17287 * character.c (multibyte_char_to_unibyte_safe): New function.
17289 * search.c: Include "charset.h".
17290 (compile_pattern_1): Delete argument multibyte. Don't set
17291 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17292 (compile_pattern): Don't compare cp->buf.target_multibyte.
17293 Compare cp->buf.charset_unibyte.
17294 (compile_pattern): Set cp->buf.target_multibyte.
17296 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17298 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17300 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17301 multibyte. Change callers.
17302 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17303 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17304 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17305 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17306 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17307 (regex_compile): Make the compiled pattern usable both for
17308 multibyte and unibyte targets.
17309 (analyse_first): Make the fastmap usable both for multibyte and
17311 (TRANSLATE_VIA_MULTIBYTE): Delete.
17312 (re_match_2_internal): Pay attention to the case that the
17313 multibyteness of bufp and target may be different.
17315 2008-02-01 Kenichi Handa <handa@m17n.org>
17317 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17318 empty box occupy at least one column width.
17320 2008-02-01 Miles Bader <miles@gnu.org>
17322 * Makefile.in: Remove redundant HAVE_XFT clause.
17324 2008-02-01 Kenichi Handa <handa@m17n.org>
17326 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17328 2008-02-01 Kenichi Handa <handa@m17n.org>
17330 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17333 2008-02-01 Kenichi Handa <handa@m17n.org>
17335 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17337 2008-02-01 Kenichi Handa <handa@m17n.org>
17339 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17341 2008-02-01 Kenichi Handa <handa@m17n.org>
17343 * search.c (simple_search): Fix previous change.
17345 2008-02-01 Kenichi Handa <handa@m17n.org>
17347 * xftfont.c (ftfont_font_format): Extern declaration.
17349 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17351 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17352 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17354 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17355 (ftfont_font_format): Fix previous change.
17357 * font.h (Ffont_xlfd_name): EXFUN it.
17359 * font.c (font_parse_xlfd): Fix the array size of `f'.
17360 (register_font_driver): Use EQ to compare driver->type.
17362 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17363 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17364 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17366 2008-02-01 Kenichi Handa <handa@m17n.org>
17368 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17369 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17371 2008-02-01 Kenichi Handa <handa@m17n.org>
17373 * xfont.c (xfont_open): Set font->format.
17375 * xftfont.c (xftfont_open): Set font->format.
17377 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17378 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17379 (ftfont_open): Set font->format.
17380 (ftfont_font_format): New function.
17382 * font.h (struct font): New member format.
17384 * font.c (Qopentype): New variable.
17385 (syms_of_font): Defsym it.
17386 (Fquery_font): Change the format of the last element of the return
17389 2008-02-01 Kenichi Handa <handa@m17n.org>
17391 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17394 2008-02-01 Kenichi Handa <handa@m17n.org>
17396 * coding.c (detect_coding_charset): Fix detection of multi-byte
17399 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17401 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17403 2008-02-01 Kenichi Handa <handa@m17n.org>
17405 * xdisp.c (get_next_display_element): Set it->face_id for the
17406 first component of a composition.
17407 (x_produce_glyphs): Check if the font is changed or not for composition.
17409 2008-02-01 Kenichi Handa <handa@m17n.org>
17411 * fontset.c (Qlatin): New variable.
17412 (syms_of_fontset): Define it as a lisp symbol.
17413 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17415 2008-02-01 Kenichi Handa <handa@m17n.org>
17417 * font.c (font_unparse_fcname): Pay attention to the case that
17418 some of font property is a null string.
17420 2008-02-01 Kenichi Handa <handa@m17n.org>
17422 * term.c: Include "composite.h".
17423 (encode_terminal_code): Output all components of composition.
17424 Check the size of encode_terminal_src.
17425 (produce_glyphs): For composition, call produce_composite_glyph.
17426 (append_composite_glyph, produce_composite_glyph): New functions.
17428 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17429 is not found, get font_info from the current ascii face.
17431 2008-02-01 Kenichi Handa <handa@m17n.org>
17433 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17434 buffer-file-name to Qnil before calling insert_from_buffer.
17436 * font.c (font_unparse_fcname): Pay attention to the case that
17437 foundry is a null string.
17439 2008-02-01 Kenichi Handa <handa@m17n.org>
17441 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17443 * font.c (Qunicode_sip): New variable.
17444 (syms_of_font): Declare it as a Lisp symbol.
17446 * font.h (Qunicode_sip): Extern it.
17448 2008-02-01 Kenichi Handa <handa@m17n.org>
17450 * composite.c (get_composition_id): Pay attention to TAB component.
17452 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17453 TAB. Adjust for the change of s->char2b which always points to
17454 the first element of allocated memory.
17456 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17458 * xdisp.c (handle_composition_prop): Set it->c to the first
17460 (fill_composite_glyph_string): Change argument.
17461 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17462 (x_produce_glyphs): Fix handling of left/right padding.
17464 2008-02-01 Kenichi Handa <handa@m17n.org>
17466 * coding.c (detect_coding_system): Fix for handling off
17467 inhibit_iso_escape_detection. Fix for the case that no coding
17468 system is defined for a specific coding category.
17470 2008-02-01 Kenichi Handa <handa@m17n.org>
17472 * font.c (font_matching_entity): Delete unused local var.
17474 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17477 * fileio.c (Finsert_file_contents): On recovering a file, assume
17479 (choose_write_coding_system): On auto-saving a file, force
17482 * coding.c (setup_coding_system): Fix setting of
17483 coding->common_flags based on eol_type.
17484 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17487 2008-02-01 Kenichi Handa <handa@m17n.org>
17489 * alloc.c (NSTATICS): Increas to 0x600.
17491 2008-02-01 Kenichi Handa <handa@m17n.org>
17493 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17494 (ftfont_list): Don't check :name property.
17495 (ftfont_match): New function.
17496 (ftfont_pattern_entity): If the pattern doesn't contain
17497 FC_SPACING, don't assume FC_MONO.
17499 * font.h (struct font_driver): New member `match'.
17500 (font_update_drivers): Adjust prototype.
17502 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17504 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17505 them unconditionally.
17506 (font_matching_entity): New function.
17507 (font_open_by_name): Try font_matching_entity if exact match is
17509 (font_update_drivers): Delete the arg FONT. Return a list of
17510 actually used backends. Don't free faces, font caches here.
17511 Don't store data in frame parameters. Don't call x_set_font.
17512 (Ffont_spec): Store :name property as is.
17513 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17514 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17515 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17516 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17517 Call font->driver->otf_gsub instead of font_otf_gsub.
17519 * frame.c (x_set_font_backend): Do more works that were done in
17520 font_update_drivers before.
17522 * xfont.c (xfont_match): New function.
17523 (xfont_driver): Set xfont_driver.match to xfont_match.
17524 (xfont_draw): Set font in GC if necessary.
17526 * ftxfont.c (ftxfont_match): New function.
17527 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17529 * xftfont.c (xftfont_match): New function.
17530 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17532 2008-02-01 Kenichi Handa <handa@m17n.org>
17534 * font.h (struct font): New member scalable.
17535 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17536 (font_otf_gsub): Adjust prototype.
17538 * font.c (font_otf_capability): Fix handling of the default langsys.
17539 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17540 Check the contents of SPEC.
17541 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17542 (check_gstring): New function.
17543 (REPLACEMENT_CHARACTER): New macro.
17544 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17545 glyph codes of GSTRING.
17546 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17547 (font_prepare_composition): Set cmp->glyph_len.
17548 (font_open_entity): Set font->scalable.
17549 (Ffont_get): Handle :otf property.
17550 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17552 (Fquery_font): Use font->font.full_name.
17553 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17554 Sfont_otf_alternates.
17556 * ftfont.c (ftfont_open): Set font->font.full_name and
17557 font->font.name properly. Fix calculation of font->font.height
17558 and font->min_width.
17560 * ftxfont.c (ftxfont_create_gcs): New function.
17561 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17562 (ftxfont_draw_backgrond): Fix filling region.
17563 (ftxfont_default_fid): New function.
17564 (ftxfont_open): Set xfont->fid to the return value of
17565 ftxfont_default_fid.
17566 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17567 (ftxfont_done_face): Free only GCs that are created by
17568 ftxfont_create_gcs.
17569 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17571 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17572 Clip to src->width, etc (not src->clip_XXX).
17574 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17575 FontBackend frame parameter.
17577 2008-02-01 Kenichi Handa <handa@m17n.org>
17579 * font.h (struct font_driver_list): New member `on'.
17580 (Fclear_font_cache): EXFUN it.
17581 (font_update_drivers): Extern it.
17583 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17584 (font_list_entities): Check driver_list->on.
17585 (register_font_driver): Initalize `on' member to 0.
17586 (font_update_drivers): New function.
17587 (Fclear_font_cache): Check driver_list->on.
17589 * frame.h (Qfont_backend): Extern it.
17590 (x_set_font_backend): Extern it.
17592 * frame.c (Qfont_backend): New variable.
17593 (frame_parms): New element for font-backend.
17594 (x_set_font_backend): New function.
17596 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17597 FontBackend frame parameter.
17598 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17599 x_set_font_backend.
17601 * xfont.c (xfont_list): Don't try listing by :name property if the
17602 name is not for XLFD.
17604 2008-02-01 Kenichi Handa <handa@m17n.org>
17606 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17607 (LGLYPH_SET_TO): New macros.
17608 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17609 element of G is vector or not.
17610 (font_at): Extern it.
17612 * font.c: Include window.h.
17613 (font_lispy_object): New function.
17614 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17615 end of valid glyph.
17616 (font_close_object): Fix getting (struct font *).
17617 (font_at): New function.
17618 (Ffont_get): If FONT is a font-object, get entity from it.
17619 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17620 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17622 (Ffont_at): New function.
17623 (syms_of_font): Defsubr Sfont_at.
17625 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17626 before the entry for Qcomposition.
17627 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17628 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17629 the font in gstring.
17630 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17631 LGLYPH_FORM (g) to detect the end of valid glyph.
17632 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17633 we are composing with gstring.
17635 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17636 Check if adjustment is vector or not.
17638 * Makefile.in (font.o): Make it depends on window.h.
17640 2008-02-01 Kenichi Handa <handa@m17n.org>
17642 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17643 adjustment is vector or not.
17645 2008-02-01 Miles Bader <miles@gnu.org>
17647 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17649 2008-02-01 Kenichi Handa <handa@m17n.org>
17651 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17652 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17653 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17655 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17656 (DEVICE_DELTA): Fix typo.
17657 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17660 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17661 the change of LGLYPH format.
17663 2008-02-01 Kenichi Handa <handa@m17n.org>
17665 * ftfont.c (ftfont_list): Fix typo.
17666 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17668 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17670 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17672 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17673 xftface_info is non-NULL.
17675 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17677 * ftfont.c (ftfont_list): Move misplaced #endif.
17679 2008-02-01 Kenichi Handa <handa@m17n.org>
17681 * ftfont.c (ftfont_list): Pay attention to the case that
17682 FC_CAPABILITY is not defined.
17684 2008-02-01 Kenichi Handa <handa@m17n.org>
17686 * xftfont.c (xftfont_open): Set charset related members to -1.
17688 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17690 (ftfont_open): Set charset related members to -1.
17692 * fontset.c (Votf_script_alist): New variable.
17693 (syms_of_fontset): Initialize it.
17694 (fontset_font): Delete unused variable.
17696 * fontset.h (Votf_script_alist): Extern it.
17698 * font.c (font_find_for_lface): Optimize code.
17700 * font.h (font_close_object, font_merge_old_spec): Extern them.
17702 2008-02-01 Kenichi Handa <handa@m17n.org>
17704 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17705 (syms_of_font): Initialize them.
17706 (font_pixel_size): Allow float value in dpi.
17707 (font_prop_validate_type): Delete.
17708 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17710 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17711 (font_prop_validate_extra): Delete.
17712 (font_prop_validate_spacing): New function.
17713 (font_property_table): Add elements for all known properties.
17714 (get_font_prop_index): Rename from check_font_prop_name. New
17715 argument FROM. Change caller.
17716 (font_prop_validate): Validate all known properties.
17717 (font_put_extra): Delete argument force. Change caller.
17718 (font_expand_wildcards): Make it static. Fix the way of shrinking
17719 the possible range.
17720 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17721 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17723 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17724 (font_parse_fcname): Delete argument merge. Fix parsing of point
17725 size. Don't validate properties values here. Change caller.
17726 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17727 (font_open_by_name): Delete unused variable.
17728 (Ffont_spec): Likewise. Validate property values.
17729 (Ffont_match_p): New function.
17731 * font.h (QCscalable): Extern it.
17732 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17734 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17736 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17737 (xfont_list_pattern): New function.
17738 (xfont_list): Use xfont_list_pattern.
17740 2008-02-01 Kenichi Handa <handa@m17n.org>
17742 * font.h (Flist_fonts): EXFUN it.
17744 2008-02-01 Jason Rumney <jasonr@gnu.org>
17746 * w32term.c (w32_initialize): Add back smoothing_type and
17747 smoothing_enabled definitions.
17749 2008-02-01 Kenichi Handa <handa@m17n.org>
17751 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17752 s->face->font on determining underline position.
17754 2008-02-01 Kenichi Handa <handa@m17n.org>
17756 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17757 (font_has_char): Accept font-object too.
17758 (font_find_for_lface): Try at first with a size specified in face.
17760 2008-02-01 Kenichi Handa <handa@m17n.org>
17762 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17765 2008-02-01 Kenichi Handa <handa@m17n.org>
17767 * font.h (QCspacing, QCdpi): Extern them.
17768 (enum font_spacing): New enum.
17769 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17771 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17772 (QCspacing, QCdpi): New variables.
17773 (syms_of_font): Initialize them.
17774 (font_pixel_size): New function.
17775 (font_put_extra): New function.
17776 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17778 (font_parse_fcname): Handle enumerated values (e.g. bold).
17779 Fix handling font size. Add QCname property that contains only
17780 unknown properties.
17781 (font_score): Change argument. Change caller. Pay attention to
17782 FONT_PIXEL_SIZE_QUANTUM.
17783 (font_sort_entites, font_list_entities, font_find_for_lface)
17784 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17785 (Ffont_spec): Add QCname property that contains only unknown properties.
17787 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17788 include weight in listing pattern, instead check weight of each
17789 listed font. Don't include scalable in pattern. Pay attention to
17790 FONT_PIXEL_SIZE_QUANTUM.
17792 2008-02-01 Kenichi Handa <handa@m17n.org>
17794 * font.c (font_parse_fcname): Fix parsing of point-size.
17795 (font_unparse_fcname): Produce symbolic names for style properties.
17796 (font_list_entities): Handle float size correctly.
17797 (font_open_by_name): Prefer `normal' property values if the name
17798 doesn't specify them.
17800 * fontset.c (Finternal_char_font): Use font_get_name, not
17803 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17804 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17805 pattern. Don't force scalable.
17807 * xftfont.c (xftfont_open): For generating a name, start from
17810 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17812 * frame.h (x_new_fontset2): Fix prototype.
17814 2008-02-01 Kenichi Handa <handa@m17n.org>
17816 * font.h (struct font_driver): Delete member parse_name.
17817 (font_match_p, font_get_spec, font_parse_fcname)
17818 (font_unparse_fcname): Extern them.
17819 (font_get_name): Adjust prototype.
17821 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17822 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17823 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17824 unnecessary checks for weight, slant, and swidth.
17825 (font_parse_fcname): New function.
17826 (font_unparse_fcname): New function.
17827 (font_parse_name): New function.
17828 (font_match_p): New function.
17829 (font_get_name): Change return value to Lisp string.
17830 (font_get_spec): New function.
17831 (Qunspecified, Qignore_defface): Don't extern them.
17832 (font_find_for_lface): Assume that LFACE is fully specified.
17833 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17834 object, use it for FACE.
17835 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17836 driver->parse_name.
17837 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17839 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17842 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17843 argument F. Don't call Fnew_fontset. Instead, directly call
17846 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17848 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17851 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17852 (Qsans__serif): New variables.
17853 (ftfont_generic_family_list): New variable.
17854 (syms_of_ftfont): Initialize the above variables.
17855 (ftfont_pattern_entity): Delete argument NAME.
17856 (ftfont_list_generic_family): New function.
17857 (ftfont_parse_name): Delete this function.
17858 (ftfont_list): Try generic family only when FcFontList found no font.
17859 (ftfont_list_family): Fix args to FcObjectSetBuild.
17861 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17862 object in attrs[LFACE_FONT_INDEX].
17863 (set_lface_from_font_name): Cancel all changes for font-backend.
17864 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17866 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17867 font object in QCfont attribute.
17868 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17869 (realize_default_face) [USE_FONT_BACKEND]: Call
17870 set_lface_from_font_and_fontset.
17872 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17873 "fixed", and signal error here if no suitable font was found.
17875 * xfont.c (xfont_parse_name): Delete this function.
17877 * xftfont.c (xftfont_open): Change coding style of error
17878 handling. Generate fontconfig's fontname pattern.
17880 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17881 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17883 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17884 Both args FONTSET and FONT_OBJECT must be existing ones.
17886 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17888 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17890 2008-02-01 Kenichi Handa <handa@m17n.org>
17892 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17894 * font.h (struct font): Fix typo.
17896 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17898 (enum xlfd_field_mask): New enum.
17899 (intern_font_field): Changed argument. Change caller. If digits
17900 are followed by non-digits, return a symbol.
17901 (font_expand_wildcards): New function.
17902 (font_parse_xlfd): Fix wildcard handling.
17903 (Ffont_spec): If :name is specified, reflect the info in the other
17906 * ftfont.c (ftfont_pattern_entity): Fix typo.
17907 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17910 2008-02-01 Kenichi Handa <handa@m17n.org>
17912 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17914 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17915 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17916 registry doesn't specify encoding part.
17917 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17918 (font_open_by_name): At first try parsing the name.
17919 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17922 * fontset.c (reorder_font_vector): Pay attention to the case that
17923 the 3rd element of font_def is nil.
17924 (fontset_font): For the default fontset, append one more fontset
17925 elements for a script-based font specification. Don't add script
17926 attribute on finding a font.
17927 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17929 (fontset_ascii_font): If a font can't be opened, return nil.
17931 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17932 (ftfont_pattern_entity): New function.
17933 (ftfont_get_cache): Assume that freetype_font_cache is already
17935 (ftfont_list): Handle the case that a file is specified in font
17936 name. Use ftfont_pattern_entity to generate entities.
17937 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17938 (syms_of_ftfont): Initialize freetype_font_cache.
17940 * xftfont.c (xftfont_open): Make the font name fontconfig's
17941 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17942 (xftfont_close): Free font->font.name if not NULL.
17944 * xfont.c (xfont_list): If script is specified for a font, return
17946 (xfont_list_family): Declare argument type.
17948 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17949 name, set LFACE_FONT (lface) to nil.
17951 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17954 2008-02-01 Kenichi Handa <handa@m17n.org>
17956 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17957 (standard_args): Add "-enable-font-backend".
17959 2008-02-01 Kenichi Handa <handa@m17n.org>
17961 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17962 (struct xftdraw_list, xftdraw_list): Delete them.
17963 (register_xftdraw, check_xftdraw): Delete them.
17964 (xftfont_prepare_face): Don't call register_xftdraw.
17965 (xftfont_done_face): Don't call check_xftdraw.
17966 (xftfont_draw): Get background color only when with_background is
17969 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17971 2008-02-01 Kenichi Handa <handa@m17n.org>
17973 These changes are for the new font handling codes.
17975 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17976 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17977 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17978 (FONTSRC, FONTOBJ): New variables.
17979 (obj): Add $(FONTOBJ).
17980 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17981 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17983 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17984 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17986 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17988 * character.h (Vscript_representative_chars): Extern it.
17990 * character.c (Vscript_representative_chars): New variable.
17991 (syms_of_character): Declare it as a Lisp variable.
17993 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17994 enable_font_backend is nonzero, accept the composition method
17995 COMPOSITION_WITH_GLYPH_STRING.
17997 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17998 enumeration COMPOSITION_WITH_GLYPH_STRING.
18000 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18001 members clip_x, clip_y, clip_width, and clip_height.
18002 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18004 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18005 --enable-font-backend. Call syms_of_font.
18007 * fns.c (assoc_no_quit): New function.
18009 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18010 (face_for_font, new_fontset_from_font)
18011 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18013 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18014 (fontset_font, fontset_ascii, face_for_char)
18015 (make_fontset_for_ascii_face, Ffont_info)
18016 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18017 is nonzero, use font-backend mechanism.
18018 (find_font_encoding): Make it non-static.
18019 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18022 * frame.h (struct frame): New members resx and resy.
18023 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18024 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18026 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18027 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18029 * lisp.h (assoc_no_quit): Extern it.
18031 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18032 Through out the file, use FONT_INFO_FROM_FACE instead of
18033 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18034 rif->per_char_metric.
18035 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18036 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18037 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18038 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18039 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18040 nonzero, use font-backend mechanism.
18041 (get_per_char_metric): New function.
18043 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18044 (set_lface_from_font_name)
18045 (set_font_frame_param, free_realized_face)
18046 (prepare_face_for_display, clear_face_gcs)
18047 (Finternal_set_font_selection_order, realize_x_face)
18048 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18049 font-backend mechanism.
18050 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18051 (load_face_font) [USE_FONT_BACKEND]: Abort.
18052 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18053 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18055 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18056 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18057 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18058 nonzero, register all available font drivers. Call
18059 x_default_font_parameter for deciding a font.
18060 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18062 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18063 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18064 (x_set_glyph_string_clipping_exactly)
18065 (x_compute_glyph_string_overhangs)
18066 (x_draw_glyph_string_foreground)
18067 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18068 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18069 enable_font_backend is nonzero, use font-backend mechanism.
18070 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18072 2008-02-01 Kenichi Handa <handa@m17n.org>
18074 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18076 (syms_of_coding): Initialize system_eol_type.
18078 * process.c (Fset_process_coding_system): Inherit system's eol
18079 format if necessary.
18081 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18083 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18085 2008-02-01 Kenichi Handa <handa@m17n.org>
18087 * coding.c (decode_eol): Pay attention to buffer relocation in
18089 (decode_coding): Call decode_eol before restoring undo_list.
18091 2008-02-01 Kenichi Handa <handa@m17n.org>
18093 * charset.c (Fdefine_charset_internal): Fix setting of
18096 2008-02-01 Kenichi Handa <handa@m17n.org>
18098 * keyboard.c (read_char): Check if C is a character or not before
18099 looking up Vkeyboard_translate_table.
18101 2008-02-01 Kenichi Handa <handa@m17n.org>
18103 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18104 condition to terminate the loop.
18106 2008-02-01 Kenichi Handa <handa@m17n.org>
18108 * coding.c (produce_composition): Compare charbuf[i] instead of
18110 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18112 2008-02-01 Kenichi Handa <handa@m17n.org>
18114 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18115 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18116 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18118 (emacs_mule_char): Handle old style (Emacs 20) component character
18120 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18121 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18123 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18125 2008-02-01 Kenichi Handa <handa@m17n.org>
18127 * coding.c (encode_coding_ccl): Allocate destination dynamically
18130 2008-02-01 Kenichi Handa <handa@m17n.org>
18132 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18133 the loop. When quitted, show a proper error message.
18135 2008-02-01 Kenichi Handa <handa@m17n.org>
18137 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18138 src->clip_head and src->clip_tail temporarily instead of src->hl.
18140 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18141 character sequence.
18142 (Fccl_execute_on_string): Use ASET, not XSET.
18144 2008-02-01 Kenichi Handa <handa@m17n.org>
18146 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18148 2008-02-01 Kenichi Handa <handa@m17n.org>
18150 * coding.c (decode_coding): Fix the condition of terminating the
18153 2008-02-01 Kenichi Handa <handa@m17n.org>
18155 * data.c (Faset): On setting a character bigger than 255 in a
18156 unibyte string, signal an error instead of make the string multibyte.
18158 2008-02-01 Kenichi Handa <handa@m17n.org>
18160 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18161 made by a mapping table.
18163 2008-02-01 Kenichi Handa <handa@m17n.org>
18165 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18167 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18168 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18170 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18171 s->face is NULL or not.
18173 2008-02-01 Kenichi Handa <handa@m17n.org>
18175 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18176 (x_draw_glyph_string): Fix drawing of right_overhang and
18177 left_overhang around/on cursor.
18179 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18181 2008-02-01 Kenichi Handa <handa@m17n.org>
18183 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18185 2008-02-01 Kenichi Handa <handa@m17n.org>
18187 * coding.c (Fdefine_coding_system_internal)
18188 (Fdefine_coding_system_alias): Avoid a duplicated element in
18189 Vcoding_system_alist.
18191 2008-02-01 Kenichi Handa <handa@m17n.org>
18193 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18195 * coding.c (Qcoding_system_define_form): New variable.
18196 (syms_of_coding): Intern and staticpro it.
18197 (Fcoding_system_p): Check Qcoding_system_define_form.
18198 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18200 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18202 (CHECK_CODING_SYSTEM): If ID is not available, call
18203 Fcheck_coding_system.
18204 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18205 Try also Fcheck_coding_system.
18207 2008-02-01 Kenichi Handa <handa@m17n.org>
18209 * coding.c (code_conversion_restore): GCPRO arg.
18211 2008-02-01 Kenichi Handa <handa@m17n.org>
18213 * character.c (lisp_string_width): Check multibyteness of STRING.
18215 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18217 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18218 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18219 (decode_mac_font_name): Use decode_coding_c_string instead of
18221 (x_load_font): Initialize fontp->fontset to -1. Set
18222 fontp->encoding_type.
18224 2008-02-01 Kenichi Handa <handa@m17n.org>
18226 * search.c (search_buffer): Give up BM search on case-fold-search
18227 if one of a target character has a case-equivalence of different
18228 byte length even if that target charcter is an ASCII.
18229 (simple_search): Fix calculation of byte length of matched text.
18230 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18232 2008-02-01 Kenichi Handa <handa@m17n.org>
18234 * coding.c (decode_coding): Fix handling of invalid bytes.
18236 2008-02-01 Kenichi Handa <handa@m17n.org>
18238 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18239 Unicode characters.
18241 2008-02-01 Kenichi Handa <handa@m17n.org>
18243 * coding.c (encode_coding_object): If a pre-write-conversion
18244 function makes a new buffer, kill it.
18246 2008-02-01 Kenichi Handa <handa@m17n.org>
18248 * coding.c (QCascii_compatible_p): New variable.
18249 (syms_of_coding): Initialize it.
18250 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18251 calling string_char.
18252 (record_conversion_result): Add `default:' case.
18253 (coding_charset_list): Delete unused variable `coding_type'.
18254 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18255 property in the plist of the coding system.
18256 (Fcoding_system_put): Check QCascii_compatible_p.
18258 2008-02-01 Miles Bader <miles@gnu.org>
18260 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18261 removed calculation of frame `f', as it's now used.
18263 2008-02-01 Kenichi Handa <handa@m17n.org>
18265 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18266 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18267 (UNIDATA): New variable.
18268 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18269 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18270 $(RUN_TEMACS) unconditionally.
18272 2008-02-01 Kenichi Handa <handa@m17n.org>
18274 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18275 (admindir): New variable.
18276 ($(lispsource)international/charprop.el): New target.
18278 2008-02-01 Miles Bader <miles@gnu.org>
18280 * character.c (chars-in-region): Remove obsolete function.
18281 (syms_of_character): Remove its initialization.
18283 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18285 * w32select.c (validate_coding_system)
18286 (setup_windows_coding_system): New functions.
18287 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18288 setup_windows_coding_system.
18289 (setup_config, Fw32_get_clipboard_data): Use
18290 validate_coding_system.
18291 (Fx_selection_exists): Move call to setup_config to a place
18292 where signals are allowed.
18294 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18295 (Fcheck_coding_system): Add declarations.
18297 2008-02-01 Kenichi Handa <handa@m17n.org>
18299 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18301 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18303 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18304 string as the second argument for x_new_fontset.
18306 2008-02-01 Kenichi Handa <handa@m17n.org>
18308 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18309 (encode_coding_object): Use safe_call instead of call2.
18311 2008-02-01 Kenichi Handa <handa@m17n.org>
18313 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18315 * Makefile.in (lisp): Include charprop.el.
18317 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18319 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18320 Not sure if it's unnecessary.
18322 2008-02-01 Steven Tamm <steventamm@mac.com>
18324 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18325 some possibly unnecessary fontset checking code that crashed
18326 when creating a new frame.
18328 2008-02-01 Kenichi Handa <handa@m17n.org>
18330 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18333 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18335 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18337 2008-02-01 Kenichi Handa <handa@m17n.org>
18339 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18340 (coding_charset_list): New function.
18342 * coding.h (coding_charset_list): Extern it.
18344 2008-02-01 Kenichi Handa <handa@m17n.org>
18346 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18347 concatenation of family and registry.
18349 2008-02-01 Kenichi Handa <handa@m17n.org>
18351 * character.h (BYTE8_STRING): Fix typo.
18353 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18354 string to multibyte (sync to HEAD).
18356 * casefiddle.c (casify_region): Handle changes in byte-length
18357 using replace_range_2 (sync to HEAD).
18359 2008-02-01 Andreas Schwab <schwab@suse.de>
18361 * chartab.c (map_char_table): GCPRO table and arg.
18363 2008-02-01 Kenichi Handa <handa@m17n.org>
18365 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18368 2008-02-01 Kenichi Handa <handa@m17n.org>
18370 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18371 instead of fast_c_string_match_ignore_case.
18372 (find_font_encoding): Change argument to Lisp_Object. Use
18373 fast_string_match_ignore_case instead of
18374 fast_c_string_match_ignore_case. Change caller.
18376 2008-02-01 Kenichi Handa <handa@m17n.org>
18378 * xdisp.c (get_next_display_element): In unibyte case, decide to
18379 display in octal form by checking a character by
18380 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18382 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18384 * character.c (unibyte_has_multibyte_table): New variable.
18386 * character.h (unibyte_has_multibyte_table): Extern it.
18387 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18389 2008-02-01 Kenichi Handa <handa@m17n.org>
18391 * coding.c (encode_coding_iso_2022): Fix handling of charset
18394 2008-02-01 Kenichi Handa <handa@m17n.org>
18396 * coding.c (setup_coding_system): If coding_system is nil, use
18398 (Fterminal_coding_system): Return nil if terminal coding system is
18400 (syms_of_coding): Define coding-system `undecided' here. Setup
18401 terminal_coding as `undecided'.
18403 2008-02-01 Kenichi Handa <handa@m17n.org>
18405 * xdisp.c (message_dolog, set_message_1): Call
18406 unibyte_char_to_multibyte with arg type int.
18408 * lread.c (read1): Fix reading of a char-table.
18410 * print.c (print_object): Include sub char-table in circularities
18413 2008-02-01 Kenichi Handa <handa@m17n.org>
18415 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18416 Append the found sequences in car of ARGS instead of prepending.
18418 2008-02-01 Kenichi Handa <handa@m17n.org>
18420 * fileio.c (report_file_error): Make a unibyte string from
18421 strerror (errorno).
18422 (Fsubstitute_in_file_name): Fix the arg to
18423 unibyte_char_to_multibyte. It is evaluated twice.
18425 2008-02-01 Kenichi Handa <handa@m17n.org>
18427 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18429 2008-02-01 Kenichi Handa <handa@m17n.org>
18431 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18433 (detect_coding, detect_coding_system): Optimization for ISO-2022
18434 when no 8-bit data is found.
18436 2008-02-01 Jason Rumney <jasonr@gnu.org>
18438 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18440 2008-02-01 Kenichi Handa <handa@m17n.org>
18442 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18445 2008-02-01 Steven Tamm <steventamm@mac.com>
18447 * macterm.c (mac_encode_char): Add charset argument and update
18448 to use encoding_type.
18449 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18450 switch to pure fontset.
18451 (decode_mac_font_name): Temporarily remove decoding.
18452 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18453 (x_load_font): Temporarily remove encoding.
18455 2008-02-01 Kenichi Handa <handa@m17n.org>
18457 * xfaces.c (Fface_font): If frame is not on a window system,
18458 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18459 refer to face->font.
18460 (split_font_name_into_vector, build_font_name_from_vector)
18461 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18462 when HAVE_WINDOW_SYSTEM is defined.
18464 2008-02-01 Kenichi Handa <handa@m17n.org>
18466 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18467 (x_produce_glyphs): Fix setting of members of cmp in case
18468 cmp->glyph_len is zero.
18470 * fontset.c (Fset_fontset_font): Fix docstring.
18471 (Ffontset_info): Make it backward compatible. New arg ALL.
18473 2008-02-01 Kim F. Storm <storm@cua.dk>
18475 * process.c (read_process_output): Grow decoding_buf when needed;
18476 this could cause a crash in allocate_string and compact_small_strings.
18478 2008-02-01 Kenichi Handa <handa@m17n.org>
18480 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18482 2008-02-01 Kenichi Handa <handa@m17n.org>
18484 * coding.c (setup_coding_system): Set coding->common_flags
18485 correctly for raw-text.
18486 (consume_chars): On encoding unibyte text by raw-text, don't check
18488 (encode_coding): On encoding by raw-text, never use translation tables.
18490 * fileio.c (e_write): Short cut for the case of no encoding.
18492 2008-02-01 Kenichi Handa <handa@m17n.org>
18494 * coding.c (detect_coding, detect_coding_system): Delete unused
18497 2008-02-01 Kenichi Handa <handa@m17n.org>
18499 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18500 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18502 2008-02-01 Kenichi Handa <handa@m17n.org>
18504 * coding.c (Ffind_coding_systems_region_internal): Include
18505 raw-text and no-conversion in the result.
18507 2008-02-01 Kenichi Handa <handa@m17n.org>
18509 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18510 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18512 (font_def_arg, add_arg, from_arg, to_arg): New args.
18513 (set_fontset_font): Change argument.
18514 (Fset_fontset_font): Fix for the case that TARGET is a script
18515 name and charset name.
18516 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18518 2008-02-01 Kenichi Handa <handa@m17n.org>
18520 * fontset.c (fontset_font): Rename from fontset_face. Change return
18522 (face_suitable_for_char_p, face_for_char): Adjust for the change
18524 (make_fontset_for_ascii_face): Fix setting of the fontset element
18526 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18527 to get a font name.
18528 (Ffontset_info): Adjust for the change of fontset_font.
18530 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18532 * character.h (LEADING_CODE_LATIN_1_MIN)
18533 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18535 2008-02-01 Kenichi Handa <handa@m17n.org>
18537 * editfns.c (check_translation): New function.
18538 (Ftranslate_region_internal): Handle M:N mapping.
18540 2008-02-01 Kenichi Handa <handa@m17n.org>
18542 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18544 2008-02-01 Kenichi Handa <handa@m17n.org>
18546 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18548 (decode_coding_iso_2022): Fix handling of invalid designation.
18550 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18551 after calling code_conversion_save.
18553 2008-02-01 Kenichi Handa <handa@m17n.org>
18555 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18557 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18559 * fontset.c: Include "intervals.h".
18560 (fontset_face): Fix comparing of Lisp_Objects.
18561 (free_face_fontset, new_fontset_from_font_name): Fix
18562 Lisp_Object/int mixup.
18564 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18566 * coding.c: Add many prototypes for static functions.
18567 (get_translation_table): Allow max_lookup to be NULL.
18568 (decode_coding, Ffind_coding_systems_region_internal)
18569 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18570 get_translation_table with max_lookup NULL.
18572 2008-02-01 Kenichi Handa <handa@m17n.org>
18574 * coding.c (get_translation_table): Declare it as Lisp_Object.
18575 (LOOKUP_TRANSLATION_TABLE): New macro.
18576 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18577 instead of CHAR_TABLE_REF.
18579 2008-02-01 Kenichi Handa <handa@m17n.org>
18581 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18582 annotation data format.
18583 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18584 Change arguments FROM and TO to single argument NCHARS. Change caller.
18585 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18586 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18587 (decode_coding_ccl, decode_coding_charset): Pay attention to
18588 coding->charbuf_used.
18589 (get_translation): New function.
18590 (produce_chars): New arguments translation_table and last_block.
18591 Translate characters here. Return number of carryover chars.
18593 (produce_composition): New argument pos. Change caller.
18594 Adjust for the change of annotation data format.
18595 (produce_charset, produce_annotation): Likewise.
18596 (decode_coding, encode_coding): Don't call translate_chars.
18597 (consume_chars): New arg translation_table. Change caller.
18598 (translate_chars): Delete.
18599 (syms_of_coding): Make translation-table's number of extra slots 2.
18601 2008-02-01 Kenichi Handa <handa@m17n.org>
18603 * search.c (simple_search): Fix setting this_pos_byte in backward
18606 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18608 (detect_coding_ccl): Fix setting of the variable valids.
18610 2008-02-01 Kenichi Handa <handa@m17n.org>
18612 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18614 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18616 * editfns.c (Ftranslate_region_internal): Rename from
18617 Ftranslate_region. Accept a char-table in TABLE.
18618 (syms_of_editfns): Defsubr Stranslate_region_internal.
18620 * xfaces.c (set_lface_from_font_name): If a font is specified for
18621 a frame, generate a fontset from the font.
18622 (build_scalable_font_name): If the scalable font is requested for
18623 a specific size, don't change that size.
18624 (try_font_list): Try a scalable font also in the case that a
18625 pattern string is specified.
18627 2008-02-01 Kenichi Handa <handa@m17n.org>
18629 * xfaces.c (Fface_font): New optional arg CHARACTER.
18631 2008-02-01 Kenichi Handa <handa@m17n.org>
18633 * charset.h (CHARSET_OFFSET): New macro.
18635 2008-02-01 Kenichi Handa <handa@m17n.org>
18637 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18639 * fontset.c (fontset_face): Handle the case that repertory is a
18641 (find_font_encoding): Return nil for unknown encoding.
18642 (Fset_fontset_font): Ignore a font of unknown encoding.
18644 2008-02-01 Kenichi Handa <handa@m17n.org>
18646 * keymap.c (describe_vector): Handle default value of a char table.
18648 * fontset.c (fontset_face): Handle fallback fonts correctly.
18649 (Ffontset_info): Return infomation about fallback fonts.
18651 2008-02-01 Kenichi Handa <handa@m17n.org>
18653 * fontset.c (FONTSET_DEFAULT): New macro.
18654 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18655 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18656 the case that it is nil.
18657 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18658 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18660 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18661 subset or superset.
18663 2008-02-01 Kenichi Handa <handa@m17n.org>
18665 * emacs.c (main): Call init_charset after syms_of_XXX.
18667 * charset.c (Vcharset_map_directory): Delete.
18668 (Vcharset_map_path): New variable.
18669 (load_charset_map_from_file): Use Vcharset_map_path instead.
18670 (init_charset): Initialize Vcharset_map_path.
18671 (syms_of_charset): Delete declaration of "charset-map-directory",
18672 add declaration of "charset-map-path".
18674 2008-02-01 Kenichi Handa <handa@m17n.org>
18676 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18679 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18681 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18682 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18684 2008-02-01 Kenichi Handa <handa@m17n.org>
18686 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18688 * coding.c (QCmnemonic, QCdefalut_char)
18689 (QCdecode_translation_table, QCencode_translation_table)
18690 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18691 (get_translation_table): Return a list of translation tables if
18693 (decode_coding): Call get_translation_table with ENCODEP 0.
18694 (char_encodable_p): If translation_table is non-nil, always call
18696 (Fdefine_coding_system_internal): Accept list of translation
18697 tables as :encode-translation-table and :decode-translation-table.
18698 (Fcoding_system_put): New function.
18699 (syms_of_coding): Declare new symbols. Defsubr
18700 Scoding_system_put.
18701 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18702 typically JISX0212.
18704 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18705 when the charset is superset type.
18707 * character.c (translate_char): Accept list of translation tables.
18709 2008-02-01 Kenichi Handa <handa@m17n.org>
18711 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18712 (CODING_ATTR_TRANS_TBL): New macro.
18714 * coding.c (get_translation_table): New function.
18715 (translate_chars): Fix the bug of skipping annotation data.
18716 (decode_coding, encode_coding): Utilize get_translation_table.
18717 (char_encodable_p, Funencodable_char_position): Translate char if
18719 (Ffind_coding_systems_region_internal)
18720 (Fcheck_coding_systems_region): Setup translation table for encode
18721 in a coding system attribute vector in advance.
18722 (Fdefine_coding_system_internal): Allow a symbol as translation
18723 table. For shift-jis type coding system, allow 4th charset.
18725 2008-02-01 Kenichi Handa <handa@m17n.org>
18727 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18729 * xdisp.c (get_next_display_element): Pass -1 as POS to
18730 FACE_FOR_CHAR if displaying a C-string.
18732 2008-02-01 Kenichi Handa <handa@m17n.org>
18734 * composite.c (get_composition_id): Handle xoff and yoff in a
18737 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18738 (struct composition): New member lbearing and rbearing.
18740 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18741 (x_get_glyph_overhangs): Handle a composition glyph.
18742 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18744 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18747 2008-02-01 Kenichi Handa <handa@m17n.org>
18749 * print.c: Include charset.h.
18750 (Vprint_charset_text_property): New variable.
18751 (Qdefault): Extern it.
18752 (PRINT_STRING_NON_CHARSET_FOUND)
18753 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18754 (print_check_string_result): New variable.
18755 (print_check_string_charset_prop): New function.
18756 (print_prune_charset_plist): New variable.
18757 (print_prune_string_charset): New function.
18758 (print_object): Call print_prune_string_charset if
18759 Vprint_charset_text_property is not t.
18760 (print_interval): Print nothing if interval->plist is nil.
18761 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18762 variable. Init and staticpro print_prune_charset_plist.
18764 2008-02-01 Kenichi Handa <handa@m17n.org>
18766 * fontset.c (new_fontset_from_font_name): Use the specified font
18767 for all characters in the new fontset.
18769 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18772 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18773 OBJECT args for composition too.
18775 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18778 2008-02-01 Kenichi Handa <handa@m17n.org>
18780 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18782 * fontset.c (reorder_font_vector): Adjust for the change of
18784 (fontset_face): New arg id. Change caller.
18785 (face_for_char): New args pos and object.
18786 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18787 (fs_query_fontset): Check NAME by Fassoc too.
18788 (Fset_fontset_font): Allow non-XLFD font name.
18789 (Ffontset_info): Adjust for the change of FONT_DEF format.
18791 * fontset.h (face_for_char): Adjust prototype.
18793 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18794 (append_space, extend_face_to_end_of_line)
18795 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18796 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18798 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18799 POS and OBJECT args.
18801 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18802 POS and OBJECT args.
18804 2008-02-01 Jason Rumney <jasonr@gnu.org>
18806 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18807 of GlobalAlloc'ed memory.
18809 2008-02-01 Kenichi Handa <handa@m17n.org>
18811 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18813 * charset.h (charset_table_used): Delete extern.
18815 * charset.c (charset_table_used): Make it static.
18816 (map_charset_chars): Fix args to c_function with.
18818 * chartab.c (map_sub_char_table_for_charset): Fix args to
18821 * coding.h (enum coding_result_code): Delete
18822 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18824 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18825 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18826 (Vlast_code_conversion_error): New variables.
18827 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18828 (ONE_MORE_BYTE): Record error if any instead of signaling an
18829 error. If non-ASCII multibyte char is found, return the negative
18830 value of the code. All callers changed to check it.
18831 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18832 (record_conversion_result): New function. Change all codes setting
18833 coding->result to call this function.
18834 (detect_coding_utf_8, decode_coding_utf_8)
18835 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18836 Don't use the local variable incomplete.
18837 (emacs_mule_char): Change the second arg to `const'.
18838 (decode_coding): Fix of flushing out unprocessed data.
18839 (make_conversion_work_buffer): Fix making of a work buffer.
18840 (decode_coding_object): Return coding->dst_object.
18842 * fontset.c (set_fontset_font): Fix args.
18844 * lisp.h (CHARACTERBITS): Define as 22.
18846 * process.c (send_process): Be sure to set coding->src_multibyte.
18848 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18850 2008-02-01 Kenichi Handa <handa@m17n.org>
18852 * xdisp.c (handle_auto_composed_prop): Give limit to
18853 Fnext_single_char_property_change.
18855 2008-02-01 Kenichi Handa <handa@m17n.org>
18857 * composite.c (syms_of_composite): Don't make the composition hash
18860 * fontset.c (Fset_fontset_font): Fix docstring.
18862 * lisp.h (detect_coding_system): Adjust prototype.
18864 * fileio.c (kill_workbuf_unwind): Delete this function.
18865 (Finsert_file_contents): Adjust the call of detect_coding_system.
18866 Get conversion_buffer by code_conversion_save. Use the macro
18867 CODING_MAY_REQUIRE_DECODING. After decoding, update
18870 * coding.h (make_conversion_work_buffer): Delete extern.
18871 (code_conversion_save): Extern it.
18873 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18874 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18875 (decode_coding_utf_8): Don't do eol converion.
18876 (detect_coding_utf_16): Check coding->src_chars, not
18877 coding->src_bytes. Add heuristics for those that have no signature.
18878 (decode_coding_emacs_mule, decode_coding_iso_2022)
18879 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18880 Don't do eol converion.
18881 (adjust_coding_eol_type): Return a new coding system.
18882 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18883 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18885 (decode_coding): Pay attention to undo_list. Do eol conversion for
18886 all types of coding-systems (if necessary).
18887 (Vcode_conversion_work_buf_list): Delete it.
18888 (Vcode_conversion_reused_workbuf): Rename from
18889 Vcode_conversion_reused_work_buf.
18890 (Vcode_conversion_workbuf_name): New variable.
18891 (reused_workbuf_in_use): New variable.
18892 (make_conversion_work_buffer): Delete the arg DEPTH.
18893 (code_conversion_restore): Change argument to cons.
18894 (code_conversion_save): Delete the argument BUFFER. Change callers.
18895 (detect_coding_system): New argument src_chars. Change callers.
18896 Fix for utf-16 detection.
18897 (init_coding_once): Don't use ISO_carriage_return.
18898 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18899 reused_workbuf_in_use.
18901 2008-02-01 Kenichi Handa <handa@m17n.org>
18903 * keymap.c (store_in_keymap): Pay attention to the case that idx
18904 is a cons specifying a character range.
18906 2008-02-01 Kenichi Handa <handa@m17n.org>
18908 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18909 HANDLED_RECOMPUTE_PROPS.
18911 * coding.c (Fdefine_coding_system_internal): Fix checking of
18912 ascii compatibility.
18914 2008-02-01 Kenichi Handa <handa@m17n.org>
18916 * charset.c (find_charsets_in_text): Delete unused locale variable.
18917 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18919 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18920 Resync charset_list to Vemacs_mule_charset_list.
18922 * keymap.c (store_in_keymap): Pay attention to the case that idx
18923 is a cons specifying a character range.
18925 2008-02-01 Kenichi Handa <handa@m17n.org>
18927 * composite.c (update_compositions): Bind inhibit-read-only, etc
18928 to t before calling remove-list-of-text-properties.
18930 * print.c (print_object): Always print ASCII chars as is.
18932 2008-02-01 Kenichi Handa <handa@m17n.org>
18934 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18936 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18939 2008-02-01 Kenichi Handa <handa@m17n.org>
18941 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18943 2008-02-01 Kenichi Handa <handa@m17n.org>
18945 * xfaces.c (set_lface_from_font_name): Fix for the case that
18946 FONTNAME is not fontset name.
18948 2008-02-01 Kenichi Handa <handa@m17n.org>
18950 * fns.c (base64_encode_1): Fix previous change.
18952 2008-02-01 Kenichi Handa <handa@m17n.org>
18954 * fontset.c (set_fontset_font): New function.
18955 (Fset_fontset_font): If a font is specified for a charset, use
18956 map_charset_chars to store the font spec in a fontset.
18958 2008-02-01 Kenichi Handa <handa@m17n.org>
18960 * fontset.c (fontset_face): Create a fallback fontset on demand.
18961 (make_fontset): Don't create a fallback fontset here.
18962 (free_face_fontset): Free a fallback fontset (if any) too.
18963 (n_auto_fontsets): Delete this variable.
18964 (auto_fontset_alist): New variable.
18965 (new_fontset_from_font_name): Check auto_fontset_alist.
18966 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18967 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18968 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18969 Defsubr Sfontset_list_all.
18971 2008-02-01 Kenichi Handa <handa@m17n.org>
18973 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18975 2008-02-01 Kenichi Handa <handa@m17n.org>
18977 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18979 2008-02-01 Kenichi Handa <handa@m17n.org>
18981 * editfns.c (Fgoto_char): Fix docstring.
18983 2008-02-01 Kenichi Handa <handa@m17n.org>
18985 * insdel.c (insert_from_gap): Adjust intervals correctly.
18987 2008-02-01 Jason Rumney <jasonr@gnu.org>
18989 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18990 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18991 (w32_initialize): Try to load it.
18992 (x_get_font_repertory): Use it if available.
18993 (w32_encode_char): Add shortcut for unicode output.
18995 * w32fns.c (w32_load_system_font): Default charset to -1.
18996 (x_to_w32_charset): Match all fonts for unicode.
18997 (w32_to_x_charset): New parameter matching. Don't return partial
18998 or wildcard charsets.
18999 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19000 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19001 (w32_to_x_font): Match charset to real charset.
19002 (enum_font_cb2): Always list unicode versions.
19004 * makefile.w32-in (temacs): Increase EMHEAP.
19006 2008-02-01 Jason Rumney <jasonr@gnu.org>
19008 * w32term.c (w32_encode_char): New charset parameter.
19009 font_info.encoding becomes encoding_type.
19010 (x_get_font_repertory): New function. Warning: stub only!
19011 (x_new_font): Return quickly if font already set.
19012 (x_new_fontset): fontsetname parameter is Lisp_Object.
19013 Use new fs_query_fontset. Try new_fontset_from_font_name.
19014 Use fontset_name for return value.
19016 * w32term.h: Declare x_get_font_repertory.
19018 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19019 place of find_charset_in_text. Use encode_coding_object in place
19021 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19024 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19026 (w32_load_system_font): Initialize charset as unicode.
19027 font_info.encoding becomes encoding_type.
19028 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19029 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19030 (syms_of_w32fns): Set get_font_repertory_func.
19032 * w32console.c: Include character.h. Use terminal_encode_buffer
19034 (write_glyphs): Use new version of encode_terminal_code. Use
19035 encode_coding_object in place of encode_coding.
19037 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19038 encoding becomes encoding_type.
19040 * term.c (terminal_encode_buffer): Make externally visible.
19042 * makefile.w32-in: Add character.h dependancies.
19043 (character.o, chartab.o): New targets.
19045 2008-02-01 Kenichi Handa <handa@m17n.org>
19047 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19048 CODING_ID_EOL_TYPE.
19050 2008-02-01 Andreas Schwab <schwab@suse.de>
19052 * coding.c (produce_chars): Revert last change.
19054 2008-02-01 Kenichi Handa <handa@m17n.org>
19056 * charset.h (charset_unicode): Extern it.
19058 * charset.c (string_xstring_p): Check by (C >= 0x100).
19059 (find_charsets_in_text): Change format of the arc CHARSETS. New
19061 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19062 change of find_charsets_in_text.
19063 (Fsplit_char): Fix doc. Never return unknown.
19065 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19067 * coding.c (Fdefine_coding_system_alias): Update
19068 Vcoding_system_list.
19070 * fontset.c (load_font_get_repertory): Pay attention to the case
19071 that ENCODING of a font is specified by a char-table.
19073 * xterm.c (x_get_font_repertory): Handle the case that the
19074 encoding of font is other than Unicode.
19076 2008-02-01 Kenichi Handa <handa@m17n.org>
19078 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19079 if a character is encodable by the terminal coding system. If
19080 not, produces proper number of `?'s. Update
19081 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19082 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19084 2008-02-01 Kenichi Handa <handa@m17n.org>
19086 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19088 (encode_terminal_code): Change argument. Encode multiple
19089 characters at once. Store the result of encoding in
19090 terminal_encode_buffer.
19091 (write_glyphs, insert_glyphs): Adjust for the change of
19092 encode_terminal_code.
19093 (term_init): Initialize terminal_encode_buffer and
19094 terminal_encode_buf_size.
19096 * coding.c (consume_chars): If coding->src_object is nil, don't
19099 2008-02-01 Kenichi Handa <handa@m17n.org>
19101 * character.c (char_string): Use ASCII_CHAR_P instead of
19102 SINGLE_BYTE_CHAR_P.
19104 2008-02-01 Kenichi Handa <handa@m17n.org>
19106 * xdisp.c (handle_auto_composed_prop): Check if the last
19107 characters of auto-composed region is newly composed with the
19108 following characters.
19109 (handle_composition_prop): Fix checking of point being inside
19112 2008-02-01 Kenichi Handa <handa@m17n.org>
19114 * fns.c (concat): Don't change multibyteness of the result by
19115 concatenating an 8-bit character.
19117 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19118 multibyteness of the result when newelt is an 8-bit character.
19120 2008-02-01 Dave Love <fx@gnu.org>
19122 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19125 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19127 * xfaces.c (face_numeric_value): Declare dim size_t.
19128 (Finternal_lisp_face_equal_p): Remove unused f.
19130 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19131 (MATRIX_ROW): Remove unused vars.
19132 (draw_glyphs, x_insert_glyphs, fast_find_position)
19133 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19136 * regex.c (regex_compile): Remove unused var.
19138 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19140 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19141 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19143 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19145 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19147 * fileio.c (Fwrite_region): Remove unused var.
19149 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19150 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19152 * composite.c (Fremove_list_of_text_properties): Declare.
19154 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19155 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19156 (coding_inherit_eol_type): Remove unused attrs.
19157 (detect_coding): Cast arg of detect_eol.
19159 * charset.c (syms_of_charset): Remove unused var p.
19160 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19163 * casetab.c (set_case_table): Remove unused var.
19165 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19168 2008-02-01 Dave Love <fx@gnu.org>
19170 * xterm.c (x_bitmap_mask): Declare.
19172 2008-02-01 Dave Love <fx@gnu.org>
19174 * xterm.c (x_term_init): Fix type error.
19176 * lisp.h: Add Funibyte_char_to_multibyte.
19178 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19179 (Fset_coding_system_priority): Doc fix.
19181 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19183 * indent.c (check_composition): Make start and end EMACS_INT.
19185 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19187 * xdisp.c (handle_composition_prop, check_point_in_composition):
19188 Make buffer positions EMACS_INT.
19190 * composite.c (find_composition, run_composition_function)
19191 (update_compositions, Ffind_composition_internal): Make buffer
19192 positions EMACS_INT.
19194 * composite.h (find_composition, update_compositions): Make
19195 position args EMACS_INT.
19197 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19199 * intervals.c (get_property_and_range):
19200 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19202 * unexalpha.c: Don't include varargs.h.
19204 2008-02-01 Dave Love <fx@gnu.org>
19206 * coding.h (ENCODE_UTF_8): New.
19208 * Makefile.in (gtkutil.o): Depend on coding.h.
19210 * coding.c (Fset_coding_system_priority): Doc fix.
19212 2008-02-01 Kenichi Handa <handa@m17n.org>
19214 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19215 the case of auto saving.
19217 2008-02-01 Andreas Schwab <schwab@suse.de>
19219 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19222 2008-02-01 Kenichi Handa <handa@m17n.org>
19224 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19226 2008-02-01 Kenichi Handa <handa@m17n.org>
19228 * fileio.c (choose_write_coding_system): Return a decided coding system.
19229 (Fwrite_region): Set Vlast_coding_system_used to the return value
19230 of choose_write_coding_system.
19232 2008-02-01 Kenichi Handa <handa@m17n.org>
19234 * charset.c (Fset_charset_priority): Pay attention to duplicated
19237 * coding.c (QCcategory): New variable.
19238 (syms_of_coding): Defsym it. Set all elements of
19239 Vcoding_category_table and their symbol values.
19240 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19241 coding-category-XXX, and coding-category-list.
19242 (Fdefine_coding_system_internal): Add category in the plist.
19244 2008-02-01 Kenichi Handa <handa@m17n.org>
19246 * callproc.c (Fcall_process): Handle carryover correctly.
19248 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19249 (raw_text_coding_system): Check NILP (coding_system).
19250 (coding_inherit_eol_type): Check NILP (coding_system) and
19252 (consume_chars): Fix for the case of raw-text.
19254 * process.c (read_process_output): Handle carryover correctly.
19256 2008-02-01 Dave Love <fx@gnu.org>
19258 * regex.c (re_search_2): Fix last change.
19260 2008-02-01 Kenichi Handa <handa@m17n.org>
19262 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19263 target_multibyte. Even in a unibyte case, return a converted
19265 (GET_CHAR_AFTER): New macro.
19266 (PATFETCH): Translate via multibyte char.
19267 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19268 (SETUP_MULTIBYTE_RANGE): New macro.
19269 (regex_compile): Setup compiled code so that its multibyteness
19270 matches that of a target. Fix the handling of "[X-YZ]" using
19271 SETUP_MULTIBYTE_RANGE.
19272 (analyse_first) <charset>: For filling fastmap for all multibyte
19273 characters, don't check by BASE_LEADING_CODE_P.
19274 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19275 the same as RE_MULTIBYTE_P (bufp) now.
19276 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19277 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19278 (TRANSLATE_VIA_MULTIBYTE): New macro.
19279 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19280 It is the same as RE_MULTIBYTE_P (bufp) now.
19281 <exactn>: Translate via multibyte.
19282 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19284 <charset, charset_not>: Fetch a character by
19285 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19286 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19287 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19288 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19290 (bcmp_translate): Likewise.
19292 * search.c (compile_pattern): Check the member target_multibyte,
19293 not the member multibyte of buf.
19295 * lread.c (read1): While reading a string, set force_singlebyte
19296 and force_multibyte correctly.
19298 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19299 up of unibyte_to_multibyte_table.
19301 2008-02-01 Kenichi Handa <handa@m17n.org>
19303 * coding.c (setup_coding_system): If coding has
19304 post-read-conversion or pre-write-conversion, set
19305 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19307 (decode_coding_gap): Run post-read-conversion if any.
19309 * fileio.c (Finsert_file_contents): Even if we read into a
19310 unibyte buffer, check if we must decode the result or not.
19312 2008-02-01 Kenichi Handa <handa@m17n.org>
19314 * coding.c (make_conversion_work_buffer): Change the work buffer
19315 name to the same one as that of Emacs 21.
19317 2008-02-01 Kenichi Handa <handa@m17n.org>
19319 * coding.h (make_conversion_work_buffer): Adjust prototype.
19320 (code_conversion_restore): Don't extern it.
19322 * coding.c (detected_mask): Delete unused variable.
19323 (decode_coding_iso_2022): Pay attention to the byte sequence of
19324 CTEXT extended segment, and retain those bytes as is.
19325 (decode_coding_ccl): Delete unused variable `valids'.
19326 (setup_coding_system): Delete unused variable `category'.
19327 (consume_chars): Delete unused variable `category'. Make it work
19328 for non-multibyte case.
19329 (make_conversion_work_buffer): Change argument.
19330 (saved_coding): Delete unused variable.
19331 (code_conversion_restore): Don't check saved_coding->destination.
19332 (code_conversion_save): New function.
19333 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19334 instead of record_unwind_protect.
19335 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19336 (detect_coding_system): Delete unused variable `mask'.
19337 (Fdefine_coding_system_internal): Delete unused variable id.
19339 * fileio.c (kill_workbuf_unwind): New function.
19340 (Finsert_file_contents): On replacing, call
19341 make_conversion_work_buffer with correct args, and call
19342 record_unwind_protect with the first arg kill_workbuf_unwind.
19344 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19346 2008-02-01 Kenichi Handa <handa@m17n.org>
19348 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19349 (fontset_add): Fix for the case that TO is less than TO1.
19350 (Ffontset_info): Don't use fallback fontset on checking the
19352 (dump_fontset): New function for debugging.
19354 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19355 coding_type is Qcharset.
19357 2008-02-01 Kenichi Handa <handa@m17n.org>
19359 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19360 (map_char_table): Don't inherit the value from the parent on
19361 initializing VAL. Adjust for the above change.
19363 2008-02-01 Kenichi Handa <handa@m17n.org>
19365 * coding.c (Qsignature, Qendian): Delete these variables.
19366 (syms_of_coding): Don't initialize them.
19367 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19368 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19369 detect_info->found.
19370 (decode_coding_utf_16): Don't detect BOM here.
19371 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19372 is NOT utf_16_without_bom.
19373 (setup_coding_system): For a coding system of type utf-16, check
19374 if the attribute :endian is Qbig or not (not nil or not), and set
19375 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19376 (detect_coding): If coding type is utf-16 and BOM detection is
19377 required, detect it.
19378 (Fdefine_coding_system_internal): For a coding system of type
19379 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19381 2008-02-01 Kenichi Handa <handa@m17n.org>
19383 * coding.c (coding_set_source): Fix for the case that the current
19384 buffer is different from coding->src_object.
19385 (decode_coding_object): Don't use the conversion work buffer if
19386 DST_OBJECT is a buffer.
19388 2008-02-01 Dave Love <fx@gnu.org>
19390 * lread.c (read_emacs_mule_char) [len==2]: Index
19391 emacs_mule_charset correctly.
19393 2008-02-01 Dave Love <fx@gnu.org>
19395 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19396 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19397 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19398 treated specially.)
19399 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19400 (detected_mask): Remove Big5 bits.
19402 2008-02-01 Kenichi Handa <handa@m17n.org>
19404 The following changes are to make the font rescaling facility
19405 compatible with Emacs 21.
19407 * xfaces.c (Vface_font_rescale_alist): Rename from
19408 Vface_resizing_fonts.
19409 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19410 (font_rescale_ratio): Rename from font_resizing_ratio.
19411 (split_font_name): Set font->rescale_ratio.
19412 (better_font_p): Pay attention to font->rescale_ratio.
19413 (build_scalable_font_name): Likewise. Change RESX, and RESY
19415 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19417 2008-02-01 Kenichi Handa <handa@m17n.org>
19419 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19420 (Qutf_16_le): Remove these variables.
19421 (syms_of_coding): Don't DEFSYM them.
19422 (decode_coding_utf_16): Fix handling of BOM.
19423 (encode_coding_utf_16): Fix handling of BOM.
19425 2008-02-01 Kenichi Handa <handa@m17n.org>
19427 * fileio.c (Finsert_file_contents): On replacing, before decoding
19428 the file into the work buffer, set point of the work buffer to the end.
19430 2008-02-01 Dave Love <fx@gnu.org>
19432 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19434 2008-02-01 Dave Love <fx@gnu.org>
19436 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19439 2008-02-01 Kenichi Handa <handa@m17n.org>
19441 * xdisp.c (SKIP_GLYPHS): New macro.
19442 (set_cursor_from_row): Pay attention to string display properties.
19444 * category.c (copy_category_entry): Fix for the case that RANGE
19447 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19449 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19451 2008-02-01 Kenichi Handa <handa@m17n.org>
19453 * charset.c (Fcharset_id_internal): New function.
19454 (syms_of_charset): Defsubr it.
19456 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19457 with the last arg charset_list acquired from coding.
19458 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19459 the attribute coding_attr_ccl_valids.
19461 * coding.h (enum define_coding_ccl_arg_index): Set the first
19462 member coding_arg_ccl_decoder to coding_arg_max.
19464 * ccl.h (ccl_driver): Adjust prototype.
19466 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19467 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
19468 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
19469 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19472 2008-02-01 Kenichi Handa <handa@m17n.org>
19474 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19477 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19479 2008-02-01 Dave Love <fx@gnu.org>
19481 * composite.c (syms_of_composite): Make composition_hash_table weak.
19483 2008-02-01 Kenichi Handa <handa@m17n.org>
19485 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19486 (font_name_registry): Don't extern them.
19487 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19489 * fontset.h (Qfontset): Don't extern it.
19490 (new_fontset_from_font_name): Extern it.
19492 * fontset.c: Give 8 extra slots to fontset objects.
19493 (Qfontset_info): New variable.
19494 (syms_of_fontset): Defsym it.
19495 (FONTSET_FALLBACK): New macro.
19496 (fontset_face): Try also the default fontset.
19497 (make_fontset): Realize a fallback fontset from the default fontset.
19498 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19499 using split_font_name_into_vector and build_font_name_from_vector.
19500 (Fset_fontset_font): Access the elements of font_spec by enum
19501 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19502 name by using split_font_name_into_vector.
19503 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19504 generate a proper font name from the fontset name. Update
19505 Vfontset_alias_alist.
19506 (n_auto_fontsets): New variable.
19507 (new_fontset_from_font_name): New function.
19508 (Ffont_info): Store the information about fonts generated from the
19509 default fontset in the first extra slot of the returned char-table.
19511 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19512 (font_name_registry): Delete function.
19513 (split_font_name_into_vector): New function.
19514 (build_font_name_from_vector): New function.
19515 (font_list): The argument REGISTRY is now a list of registry names.
19516 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19517 specifies an explicit font name, return the name as is. Make a
19518 list of registy names.
19520 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19522 (Fx_create_frame): Don't call x_new_fontset here. Just use
19523 x_list_fonts to check the existence of fonts.
19525 * xterm.h (x_new_fontset): Adjust prototype.
19527 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19528 string. Use new_fontset_from_font_name to create a fontset from a
19531 2008-02-01 Kenichi Handa <handa@m17n.org>
19533 * syntax.c (Vfind_word_boundary_function_table): New name for
19534 Vnext_word_boundary_function_table.
19535 (find-word-boundary-function-table): New name for
19536 next-word-boundary-function-table.
19538 2008-02-01 Dave Love <fx@gnu.org>
19540 * Makefile.in: Fix some dependencies.
19542 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19543 set it to nil before returning.
19545 * composite.c (update_compositions): Fix type error.
19547 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19549 2008-02-01 Kenichi Handa <handa@m17n.org>
19551 * xterm.c (x_new_font): Optimize for the case that the font is
19552 already set for the frame.
19554 2008-02-01 Kenichi Handa <handa@m17n.org>
19556 * chartab.c (char_table_ascii): Check if the char table contents
19557 is sub-char-table or not.
19558 (char_table_set, char_table_set_range): Fix argument to
19561 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19562 (detect_coding_utf_8, detect_coding_utf_16)
19563 (detect_coding_emacs_mule, detect_coding_iso_2022)
19564 (detect_coding_sjis, detect_coding_big5)
19565 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19566 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19567 sequence is valid in this coding system. Change callers.
19568 (MAX_ANNOTATION_LENGTH): New macro.
19569 (ADD_ANNOTATION_DATA): New macro.
19570 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19571 ADD_ANNOTATION_DATA. Change the format of annotation data.
19572 (ADD_CHARSET_DATA): New macro.
19573 (emacs_mule_char): New argument ID. Change callers.
19574 (decode_coding_emacs_mule, decode_coding_iso_2022)
19575 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19576 Produce charset annotation data in coding->charbuf.
19577 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19578 to charset annotation data in coding->charbuf.
19579 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19580 coding->common_flags if the coding system is iso-2022 based and
19582 (produce_composition): Adjust for the new annotation data format.
19583 (produce_charset): New function.
19584 (produce_annotation): Handle charset annotation.
19585 (handle_composition_annotation, handle_charset_annotation): New
19587 (consume_chars): Handle charset annotation. Utilize the above two
19589 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19590 buffer, get the deleted text as a string and set
19591 coding->src_object to that string.
19592 (detect_coding, detect_coding_system): Use the new struct
19593 coding_detection_info.
19595 * coding.h (struct coding_detection_info): New structure.
19596 (struct coding_system): Adjust prototype of the member `detector'.
19597 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19599 2008-02-01 Kenichi Handa <handa@m17n.org>
19601 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19603 2008-02-01 Dave Love <fx@gnu.org>
19605 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19606 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19607 to new local and nullify apropos_accumulate before returning.
19608 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19610 2008-02-01 Kenichi Handa <handa@m17n.org>
19612 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19615 2008-02-01 Dave Love <fx@gnu.org>
19617 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19619 2008-02-01 Kenichi Handa <handa@m17n.org>
19621 The following changes are to make character composition happen
19622 automatically on displaying.
19624 * Makefile.in (lisp, shortlisp): Add composite.elc.
19626 * composite.h (Qauto_composed, Vauto_composition_function)
19627 (Qauto_composition_function): Extern them.
19629 * composite.c (Vcomposition_function_table)
19630 (Qcomposition_function_table): Delete variables.
19631 (Qauto_composed, Vauto_composition_function)
19632 (Qauto_composition_function): New variables.
19633 (run_composition_function): Don't call
19634 compose-chars-after-function.
19635 (update_compositions): Clear `auto-composed' text property.
19636 (compose_chars_in_text): Delete this function.
19637 (syms_of_composite): Staticpro Qauto_composed and
19638 Qauto_composition_function. Declare Vauto_composition_function as
19641 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19643 * xdisp.c (it_props): Add an entry for Qauto_composed.
19644 (handle_auto_composed_prop): New function.
19646 * xselect.c (selection_data_to_lisp_data): Don't call
19647 compose_chars_in_text.
19649 2008-02-01 Dave Love <fx@gnu.org>
19651 * keyboard.c (read_char): Modify checking around use of
19652 Vkeyboard_translate_table.
19654 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19657 2008-02-01 Kenichi Handa <handa@m17n.org>
19659 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19660 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19661 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19662 the case that the last byte is '\r' correctly.
19663 (decode_coding): Flush out the unprocessed data correctly.
19664 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19666 2008-02-01 Dave Love <fx@gnu.org>
19668 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19669 Add XK_ISO... case.
19670 (xaw_scroll_callback): Revert last change.
19672 2008-02-01 Kenichi Handa <handa@m17n.org>
19674 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19676 2008-02-01 Kenichi Handa <handa@m17n.org>
19678 * xfaces.c (Vface_resizing_fonts): New variable.
19679 (struct font_name): New member `resizing_ratio'.
19680 (font_resizing_ratio): New function.
19681 (split_font_name): Set font->resizing_ratio.
19682 (better_font_p): Pay attention to font->resizing_ratio.
19683 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19684 RESX, and RESY fields.
19685 (try_alternative_families): Try scalable fonts if
19686 Vscalable_fonts_allowed is not Qt.
19687 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19689 2008-02-01 Dave Love <fx@gnu.org>
19691 * xterm.c (xaw_scroll_callback): Cast correctly.
19693 2008-02-01 Dave Love <fx@gnu.org>
19695 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19696 (lispy_kana_keys): Comment out.
19697 (make_lispy_event) [XK_kana_A]: Comment out.
19699 * xterm.c (xaw_scroll_callback): Cast call_data.
19700 (XTread_socket): Deal with ASCII keysyms.
19701 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19703 2008-02-01 Dave Love <fx@gnu.org>
19705 * xterm.c (Vx_keysym_table): New.
19706 (syms_of_xterm): Initialize it.
19707 (XTread_socket): Use it.
19708 From head: Eliminate incorrect optimization that tried to avoid
19709 decoding the output of X*LookupString.
19710 (x_get_font_repertory): Delete charset declaration.
19712 2008-02-01 Kenichi Handa <handa@m17n.org>
19714 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19716 (Fdefine_coding_system_internal): Setup
19717 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19719 2008-02-01 Dave Love <fx@gnu.org>
19721 * coding.c (Fcheck_coding_system): Doc fix.
19723 * editfns.c (Finsert_byte): Return a proper value.
19725 2008-02-01 Kenichi Handa <handa@m17n.org>
19727 * coding.c (decode_coding): Fix args to translate_chars. Pay
19728 attention to Vstandard_translation_table_for_decode.
19729 (encode_coding): Fix args to translate_chars. Pay attention to
19730 Vstandard_translation_table_for_encode.
19732 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19733 SINGLE_BYTE_CHAR_P.
19735 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19736 not by SINGLE_BYTE_CHAR_P.
19738 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19739 SINGLE_BYTE_CHAR_P.
19741 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19742 SINGLE_BYTE_CHAR_P.
19744 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19745 by SINGLE_BYTE_CHAR_P.
19747 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19748 SINGLE_BYTE_CHAR_P.
19750 2008-02-01 Dave Love <fx@gnu.org>
19752 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19754 2008-02-01 Dave Love <fx@gnu.org>
19756 * fns.c (Flanginfo): Fix typo.
19758 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19760 2008-02-01 Kenichi Handa <handa@m17n.org>
19762 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19763 (detect_coding_emacs_mule, detect_coding_iso_2022)
19764 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19765 incomplete byte sequence. Don't update *mask when correctly detected.
19766 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19767 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19768 (detect_coding, detect_coding_system): Adjust for the changes above.
19770 2008-02-01 Kenichi Handa <handa@m17n.org>
19772 * character.c (char_string): Rename from
19773 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19774 (string_char): Rename from string_char.
19776 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19777 if C is greater than MAX_3_BYTE_CHAR.
19778 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19779 string_char instead of string_char_with_unification.
19781 2008-02-01 Dave Love <fx@gnu.org>
19783 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19785 2008-02-01 Kenichi Handa <handa@m17n.org>
19787 * keymap.c (push_key_description): Pay attention to force_multibyte.
19789 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19791 2008-02-01 Dave Love <fx@gnu.org>
19793 * charset.c (define_charset_internal): Rename `supprementary'.
19795 * Makefile.in (lisp, shortlisp): Remove latin-N.
19797 2008-02-01 Dave Love <fx@gnu.org>
19799 * xfns.c (x_window, x_window): Use use_xim.
19801 * xterm.c (use_xim): Initialize.
19802 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19803 (x_term_init): Maybe set use_xim.
19805 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19807 2008-02-01 Kenichi Handa <handa@m17n.org>
19809 * search.c (search_buffer): Fix case-fold-search of multibyte
19811 (boyer_moore): Rename the last argument to char_high_bits.
19813 2008-02-01 Kenichi Handa <handa@m17n.org>
19815 * xdisp.c (display_string): Fix for the case of zero width glyph.
19817 * xfns.c (x_set_font): Change the error message of the case that
19818 x_new_fontset returns Qt.
19820 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19821 (Finternal_set_lisp_face_attribute): Use signal_error for the
19822 error of invalid fontset.
19824 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19825 fontset, return Qt.
19827 2008-02-01 Dave Love <fx@gnu.org>
19829 * unexelf.c (unexec): Make .got handling not SGI-specific.
19831 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19833 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19835 * keyboard.c (read_key_sequence): Fix type error.
19837 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19840 * fontset.c (fontset_add): Return Lisp_Object.
19842 2008-02-01 Dave Love <fx@gnu.org>
19844 * charset.h (charset_ordered_list_tick): Declare extern.
19846 2008-02-01 Kenichi Handa <handa@m17n.org>
19848 The following changes (and some of 2008-02-01 changes of mine) are
19849 for handling syntax, category, and case conversion for unibyte
19850 characters by converting them to multibyte on the fly. With these
19851 changes, we don't have to setup syntax and case tables for unibyte
19852 characters in each language environment.
19854 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19855 multibyte if necessary.
19857 * bytecode.c (Fbyte_code): Likewise.
19859 * character.h (LEADING_CODE_LATIN_1_MIN)
19860 (LEADING_CODE_LATIN_1_MAX): New macros.
19861 (unibyte_to_multibyte_table): Extern it.
19862 (unibyte_char_to_multibyte): New macro.
19863 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19864 (CHAR_LEADING_CODE): New macro.
19865 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19867 * character.c (unibyte_to_multibyte_table): New variable.
19868 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19869 (multibyte_char_to_unibyte): If C is an eight-bit character,
19870 convert it to the corresponding byte value.
19872 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19873 not 1, signals an error. Update the elements of
19874 unibyte_to_multibyte_table.
19875 (init_charset_once): Initialize unibyte_to_multibyte_table.
19876 (syms_of_charset): Define the charset `iso-8859-1'.
19878 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19879 as is without converting it to unibyte. In a unibyte buffer,
19880 convert C to multibyte before checking the syntax.
19882 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19884 * minibuf.c (Fminibuffer_complete_word): Use the macro
19885 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19887 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19889 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19890 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19891 that is zero, convert an eight-bit char to multibyte.
19892 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19894 (PATFETCH): Convert an eight-bit char to multibyte.
19895 (HANDLE_UNIBYTE_RANGE): New macro.
19896 (regex_compile): Setup the compiled pattern for multibyte chars
19897 even if the given regex string is unibyte. Use PATFETCH_RAW
19898 instead of PATFETCH in many places. To handle `charset'
19899 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19900 only for ASCII chars.
19901 (analyse_first) <exactn>: Simplify because the compiled pattern
19903 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19904 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19905 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19906 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19907 multibyte always 1.
19908 (re_search_2): In emacs, set the locale variable multibyte to 1,
19909 otherwise to 0. New local variable target_multibyte. Check it
19910 to decide the multibyteness of STR1 and STR2. If
19911 target_multibyte is zero, convert unibyte chars to multibyte
19912 before translating and checking fastmap.
19913 (TARGET_CHAR_AND_LENGTH): New macro.
19914 (re_match_2_internal): In emacs, set the locale variable multibyte
19915 to 1, otherwise to 0. New local variable target_multibyte. Check
19916 it to decide the multibyteness of STR1 and STR2. Use
19917 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19918 <charset, charset_not>: If multibyte is nonzero, check fastmap
19919 only for ASCII chars. Call bcmp_translate with
19920 target_multibyte, not with multibyte.
19921 <begline>: Declare the local variable C as `unsigned'.
19922 (bcmp_translate): Change the last arg name to target_multibyte.
19924 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19925 the regexp pattern and the matching target. Set cp->buf.multibyte
19926 to the multibyteness of the regexp pattern. Set
19927 cp->but.target_multibyte to the multibyteness of the matching target.
19928 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19929 FETCH_STRING_CHAR_ADVANCE.
19930 (Freplace_match): Convert unibyte chars to multibyte.
19932 * syntax.c (char_quoted, back_comment, scan_words)
19933 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19934 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19935 unibyte chars to multibyte.
19936 (skip_chars): Delete the arg syntaxp, and move the code for
19937 handling syntaxes to skip_syntaxes. Change callers.
19938 Fix the case that the multibyteness of STRING and the current
19939 buffer doesn't match.
19940 (skip_syntaxes): New function.
19941 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19942 SINGLE_BYTE_CHAR_P.
19944 2008-02-01 Kenichi Handa <handa@m17n.org>
19946 * xfaces.c (QCfontset): New variable.
19947 (LFACE_FONTSET): New macro.
19948 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19949 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19950 (Finternal_set_lisp_face_attribute)
19951 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19952 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19953 check also LFACE_FONTSET_INDEX.
19954 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19955 attrs[LFACE_FONT_INDEX].
19956 (syms_of_xfaces): Intern and staticpro QCfontset.
19958 * dispextern.h (enum lface_attribute_index): New member
19959 LFACE_FONTSET_INDEX.
19961 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19963 2008-02-01 Kenichi Handa <handa@m17n.org>
19965 * coding.c (coding_set_destination): Fix coding->destination for
19966 the case converting a region.
19967 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19968 (encode_coding_object): Fix coding->dst_pos and
19969 coding->dst_pos_byte for the case converting a region.
19971 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19973 * character.h (BYTE8_STRING): New macro.
19975 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19977 2008-02-01 Kenichi Handa <handa@m17n.org>
19979 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19980 characters by octal form.
19982 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19984 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19985 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19986 _fetch_multibyte_char_len.
19987 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19989 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19991 * casefiddle.c (casify_object): Simplify. Handle the case that
19992 the case conversion change the byte length.
19993 (casify_region): Likewise.
19995 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19997 * character.c (_fetch_multibyte_char_len): Delete this variable.
19998 (syms_of_character): Setup Vprintable_chars.
20000 * editfns.c (Fchar_equal): Fix for the unibyte case.
20001 (Finsert_byte): New function.
20002 (syms_of_editfns): Defsubr it.
20004 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20005 of direct code 0x3ffff.
20007 * search.c (Freplace_match): Fix for the unibyte case.
20009 2008-02-01 Kenichi Handa <handa@m17n.org>
20011 * lread.c (safe_to_load_p): Fix the logic.
20013 * syntax.c (scan_words): Don't treat characters belonging to
20014 different scripts as constituting a word.
20016 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20018 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20020 * emacs.c (main): In the case of --unibyte, instead of aborting on
20021 finding non-empty buffer, make it unibyte.
20023 2008-02-01 Kenichi Handa <handa@m17n.org>
20025 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20026 to create a fontset.
20028 2008-02-01 Dave Love <fx@gnu.org>
20030 * character.c (Funibyte_char_to_multibyte): Doc fix.
20032 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20034 2008-02-01 Kenichi Handa <handa@m17n.org>
20036 * fontset.c (fontset_add): Make the type `int'.
20037 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20039 * character.c (unibyte_char_to_multibyte)
20040 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20041 charset_unibyte, not charset_primary.
20043 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20045 * charset.c (charset_unibyte): Rename from charset_primary.
20046 (Funibyte_charset): Rename from Fprimary_charset.
20047 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20048 (syms_of_charset): Adjust for the above changes.
20050 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20051 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20052 it->multibyte_p is zero.
20054 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20057 2008-02-01 Kenichi Handa <handa@m17n.org>
20059 * coding.c (Fdefine_coding_system_internal): Fix category setting
20060 for a coding system of type iso-2022.
20062 2008-02-01 Kenichi Handa <handa@m17n.org>
20064 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20066 2008-02-01 Kenichi Handa <handa@m17n.org>
20068 * syntax.c (Vnext_word_boundary_function_table): New variable.
20069 (next-word-boundary-function-table): Declare it as a Lisp variable
20071 (scan_words): Call functions in Vnext_word_boundary_function_table
20074 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20076 * fontset.c (fs_load_font): If fontp->charset is not negative,
20077 return fontp without setting its members.
20079 2008-02-01 Dave Love <fx@gnu.org>
20081 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20083 * m/sparc.h (HAVE_ALLOCA): Delete.
20085 * s/irix6-5.h: Don't include strings.h.
20086 (bcopy, bzero, bcmp): Don't undef.
20088 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20090 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20091 (TIOCSIGSEND): Don't test IRIX6.
20092 (bcopy, bzero, bcmp): Define conditionally.
20094 2008-02-01 Kenichi Handa <handa@m17n.org>
20096 * buffer.c (Qas, Qmake, Qto): New variables.
20097 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20098 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20100 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20101 we are inserting a process output into a multibyte buffer.
20103 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20104 multibyte_char_to_unibyte.
20106 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20107 by the primary charset, make it eight-bit char.
20108 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20110 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20111 (charset_8_bit__control, charset_8_bit_graphic)
20112 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20113 (define_charset_internal): New function.
20114 (syms_of_charset): Call define_charset_internal for pre-defined
20117 * charset.h (charset_8_bit): Extern it.
20119 * coding.c (make_conversion_work_buffer): Adjust for the change
20120 of Fset_buffer_multibyte.
20121 (encode_coding_raw_text): Increment p0 in the loop.
20123 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20125 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20126 for the change of Fset_buffer_multibyte.
20128 * fns.c (Fstring_to_multibyte): New function.
20129 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20131 2008-02-01 Dave Love <fx@gnu.org>
20133 * xfns.c (x_put_x_image): Declare args.
20135 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20136 (try_font_list): Declare an arg.
20138 * xdisp.c (message2_nolog, set_message): Declare an arg.
20140 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20142 * syntax.c (scan_sexps_forward): Declare an arg.
20144 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20147 * lisp.h (Fnew_fontset): Declare.
20149 * keymap.c (push_key_description): Call CHARACTERP correctly.
20151 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20152 (face_for_char): Delete unused vars.
20153 (Fset_fontset_font): Doc fix. Delete unused vars.
20155 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20157 * composite.c (update_compositions): Declare arg.
20159 * cm.c (calccost, cmgoto): Declare args.
20161 * charset.c: Remove `emacs' conditional. Doc fixes.
20162 (map_char_table_for_charset): Declare.
20164 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20166 * ccl.c: Remove `emacs' conditional.
20168 2008-02-01 Kenichi Handa <handa@m17n.org>
20170 The following changes are to allow specifying multiple font
20171 patterns for a character range (specified by script or charset).
20173 * Makefile.in (abbrev.o): Depend on syntax.h.
20174 (xfaces.o): Depend on charset.h.
20176 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20177 SINGLE_BYTE_CHAR_P.
20179 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20181 * character.h (Vchar_script_table): Extern it.
20183 * character.c (Vscript_alist): Delete.
20184 (Vchar_script_table, Qchar_script_table): New variable.
20185 (syms_of_character): Declare Vchar_script_table as a lisp variable
20188 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20189 have property char-table-extra-slots, make no extra slot.
20191 * dispextern.h (struct face): Delete member `charset'.
20192 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20193 SINGLE_BYTE_CHAR_P.
20194 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20196 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20197 (generate_ascii_font_name): Rename from generate_ascii_font.
20199 * fontset.h (get_font_repertory_func): New prototype.
20200 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20201 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20203 * fontset.c (Qprepend, Qappend): New variables.
20204 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20205 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20206 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20207 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20208 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20209 (load_font_get_repertory): New functions.
20210 (fontset_set): Delete.
20211 (fontset_face): New arg FACE. Return face ID, not face.
20212 Complete re-write to handle new fontset structure. Change caller.
20213 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20214 (face_for_char): Don't call lookup_face.
20215 (make_fontset_for_ascii_face): New arg FACE.
20216 (fs_load_font): New arg CHARSET_ID. Don't check
20217 Vfont_encoding_alist here.
20218 (find_font_encoding): New function.
20219 (list_fontsets): Use STRINGP, not ! NILP.
20220 (accumulate_script_ranges): New function.
20221 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20222 re-written to handle new fontset structure.
20223 (Ffontset_font): Return a copy of element.
20224 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20225 docstring of font-encoding-alist.
20227 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20228 (Fset_fotset_font): Fix arguments to 5.
20230 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20232 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20233 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20234 (highlight_trailing_whitespace): Adjust for the change of
20237 * xfaces.c: Include charset.h.
20238 (load_face_font): Delete argument C. Change caller.
20239 (generate_ascii_font_name): Rename from generate_ascii_font.
20240 (font_name_registry): New function.
20241 (cache_face): Store ascii faces before non-ascii faces in buckets.
20242 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20243 Lookup only ascii faces.
20244 (lookup_non_ascii_face): New function.
20245 (lookup_named_face): Delete argument C. Change caller.
20246 (lookup_derived_face): Delete argument C. Change caller.
20247 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20248 a string, just call font_list with it.
20249 (choose_face_font): Delete arguments FACE and C. New arg
20250 FONT_SPEC. Change caller.
20251 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20253 (realize_non_ascii_face): New function.
20254 (realize_x_face): Call load_face_font here.
20255 (realize_tty_face): Delete argument C. Change caller.
20256 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20258 (dump_realized_face): Don't print charset of FACE.
20260 * xfns.c (x_set_font): Always call x_new_fontset and
20261 store_frame_parameter.
20262 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20263 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20265 * xterm.h (x_get_font_repertory): Extern it.
20267 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20268 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20269 it->multibyte_p is zero.
20270 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20271 (x_new_fontset): If FONTSETNAME doesn't match any existing
20272 fontsets, create a new one.
20273 (x_get_font_repertory): New function.
20275 2008-02-01 Kenichi Handa <handa@m17n.org>
20277 * coding.c (Ffind_coding_systems_region_internal): Detect an
20278 ASCII only string correctly.
20280 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20283 2008-02-01 Kenichi Handa <handa@m17n.org>
20285 * lread.c: Include "coding.h".
20286 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20287 (load_each_byte, unread_char): New variables.
20288 (readchar_backlog): Delete.
20289 (readchar): Return a character unless load_each_byte is nonzero.
20290 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20291 cons. If unread_char is not -1, simply return it.
20292 (unreadchar): Handle the case that readcharfun is
20293 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20294 (read_multibyte): Delete.
20295 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20296 (read_emacs_mule_char): New functions.
20297 (Fload): Even if the file doesn't have the extension ".elc", if
20298 safe_to_load_p returns a positive version number, assume that the
20299 file contains bytecompiled code. If the version is less than 22,
20300 load the file while decoding multibyte sequences by emacs-mule.
20301 (readevalloop): Don't use readchar_backlog.
20302 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20303 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20304 (read_escape): Delete the arg BYTEREP.
20305 (read1): Set load_each_byte to 1 temporarily while handling
20306 #@NUMBER. Don't call read_multibyte.
20307 (read_vector): Call Fread with a cons. If readcharfun is
20308 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20309 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20310 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20311 and Qload_force_doc_strings.
20313 2008-02-01 Kenichi Handa <handa@m17n.org>
20315 * xdisp.c (face_before_or_after_it_pos): Call
20316 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20318 2008-02-01 Kenichi Handa <handa@m17n.org>
20320 * character.h (TRAILING_CODE_P): New macro.
20321 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20322 (string_char_with_unification): Fix prototype.
20323 (Vscript_alist): Extern it.
20325 * character.c (Vscript_alist): New variable.
20326 (string_char_with_unification, str_as_unibyte)
20327 (string_escape_byte8): Add `const' to local variables.
20328 (syms_of_character): Declare script-alist as a Lisp variable.
20330 * charset.h (Vcharset_ordered_list): Extern it.
20331 (charset_ordered_list_tick): Extern it.
20332 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20333 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20334 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20335 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20336 (Funify_charset): Adjust for the change of Funify_charset.
20338 * charset.c (charset_ordered_list_tick): New variable.
20339 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20340 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20341 deunify intead of unify a charset.
20342 (string_xstring_p): Add `const' to local variables.
20343 (find_charsets_in_text): Add `const' to arguments and local variables.
20344 (encode_char): Adjust for the change of Funify_charset. Fix
20345 detecting of invalid code.
20346 (Fset_charset_priority): Increment charset_ordered_list_tick.
20347 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20350 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20351 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20352 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20353 (decode_coding_ccl, consume_chars)
20354 (Ffind_coding_systems_region_internal)
20355 (Fcheck_coding_systems_region): Add `const' to local variables.
20357 * print.c (print_object): Use octal form for printing the
20358 contents of a bool vector.
20360 2008-02-01 Dave Love <fx@gnu.org>
20362 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20363 <version == 20>: Refuse to load.
20365 2008-02-01 Dave Love <fx@gnu.org>
20367 * fns.c: Move coding.h.
20368 (Qcodeset, Qdays, Qmonths): New.
20369 (concat): Use CHARACTERP instead of INTEGERP.
20370 (Flocale_codeset): Delete.
20371 (Flanginfo): New function.
20372 (syms_of_fns): Change accordingly.
20374 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20376 2008-02-01 Dave Love <fx@gnu.org>
20378 * casetab.c (init_casetab_once, init_casetab_once): Fix
20379 CHAR_TABLE_SET call.
20381 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20383 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20385 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20386 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20387 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20389 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20391 * coding.c (ENCODE_DESIGNATION, decode_eol)
20392 (make_conversion_work_buffer, code_conversion_restore)
20393 (Fdefine_coding_system_internal): Convert Lisp types.
20394 (code_conversion_restore): Use EQ, not ==.
20395 (Fencode_coding_string): Fix code_convert_string call.
20397 * coding.h (code_convert_region): Fix prototype.
20399 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20401 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20402 (Ffontset_info): Convert Lisp types.
20404 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20406 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20408 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20410 * chartab.c: Include "...h", not <...h> in some cases.
20412 * callproc.c (Fcall_process): Remove unused variables.
20414 2008-02-01 Dave Love <fx@gnu.org>
20416 * coding.c (Fset_coding_system_priority): Allow null arg list.
20418 2008-02-01 Dave Love <fx@gnu.org>
20420 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20421 (Fself_insert_and_exit): Use CHARACTERP.
20423 * callproc.c (Fcall_process): Remove unused vars.
20425 * xterm.c (XTread_socket): Add extra dead keysyms.
20427 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20429 * dispextern.h: Remove prototypes for redraw_frame,
20430 redraw_garbaged_frames.
20432 * cmds.c (Fself_insert_command): Use CHARACTERP.
20434 * chartab.c (make_sub_char_table): Remove unused var.
20435 (Fset_char_table_default, Fmap_char_table): Doc fix.
20437 * keymap.c (access_keymap): Remove generic char code.
20438 (push_key_description): Use CHARACTERP.
20440 2008-02-01 Dave Love <fx@gnu.org>
20442 * charset.c: Doc fixes.
20443 (Funify_charset): Extra checking.
20445 2008-02-01 Dave Love <fx@gnu.org>
20447 * lread.c: Remove some unused variables.
20448 (safe_to_load_p): If safe, return the magic number version byte.
20449 (Fload): Maybe use load-with-code-conversion.
20451 2008-02-01 Kenichi Handa <handa@m17n.org>
20453 * category.c (Fmodify_category_entry): Don't modify the contents
20454 of category_set for characters out of the range. Avoid
20455 unnecessary modification.
20457 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20458 Vchar_unify_table. The default value of the table is now nil.
20460 * character.c (syms_of_character): Setup Vchar_width_table for
20461 eight-bit-control and raw-byte chars.
20463 * charset.h (enum define_charset_arg_index): Delete
20464 charset_arg_parents and add charset_arg_subset and
20465 charset_arg_superset.
20466 (enum charset_attr_index): Delete charset_parents and add
20467 charset_subset and charset_superset.
20468 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20469 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20470 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20471 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20472 (CHARSET_SUPERSET): New macros.
20473 (charset_work): Extern it.
20474 (ENCODE_CHAR): Use charset_work.
20475 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20476 (map_charset_chars): Extern it.
20478 * charset.c (load_charset_map): Set the default value of encoder
20479 and deunifier char-tables to nil.
20480 (map_charset_chars): Change argument. Change callers. Use
20481 map_char_table_for_charset instead of map_char_table.
20482 (Fmap_charset_chars): New optional args from_code and to_code.
20483 (Fdefine_charset_internal): Adjust for the change of
20484 `define-charset' (:parents -> :subset or :superset).
20485 (charset_work): New variable.
20486 (encode_char, syms_of_charset): Adjust for the change of
20487 Fdefine_charset_internal.
20488 (Ffind_charset_string): Setup the vector `charsets' correctly.
20490 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20491 the previous change.
20492 (char_table_ref_and_range): Adjust for the above change.
20493 (map_sub_char_table_for_charset): New function.
20494 (map_char_table_for_charset): New function.
20496 * keymap.c (describe_vector): Handle a char-table directly here.
20497 (describe_char_table): Delete.
20499 * lisp.h (map_charset_chars): Delete.
20501 2008-02-01 Dave Love <fx@gnu.org>
20503 * fns.c (count_combining): Comment out (unused).
20504 (Flocale_codeset): New.
20505 (syms_of_fns): Defsubr it.
20507 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20510 2008-02-01 Dave Love <fx@gnu.org>
20512 * Makefile.in (chartab.o): Depend on charset.h.
20514 2008-02-01 Kenichi Handa <handa@m17n.org>
20516 * character.c (syms_of_character): Set the default value of
20517 Vprintable_chars to Qnil.
20519 2008-02-01 Dave Love <fx@gnu.org>
20521 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20523 2008-02-01 Kenichi Handa <handa@m17n.org>
20525 * charset.c (load_charset_map): Handle the case that from < to
20528 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20529 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20530 Pay attention to raw-8-bit chars.
20532 2008-02-01 Kenichi Handa <handa@m17n.org>
20534 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20535 It is not bytecompiled now.
20537 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20538 (charset_jisx0208): New variables.
20539 (Fdefine_charset_internal): Setup them if appropriate.
20540 (init_charset_once): Initialize them to -1.
20542 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20543 (charset_jisx0208): Extern them.
20545 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20546 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20547 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20548 (setup_iso_safe_charsets): Fix arguments to Fassq.
20549 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20550 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20551 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20552 (encode_coding_iso_2022): Change the 1st arg to
20553 ENCODE_ISO_CHARACTER to a variable.
20555 2008-02-01 Kenichi Handa <handa@m17n.org>
20557 * charset.h (enum define_charset_arg_index): New enums
20558 charset_arg_min_code and charset_arg_max_code.
20559 (struct charset): New member char_index_offset.
20561 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20562 Take charset->char_index_offset into account.
20563 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20564 args[charset_arg_max_code]. Setup charset.char_index_offset.
20565 (syms_of_charset): Fix args to Fdefine_charset_internal.
20567 2008-02-01 Dave Love <fx@gnu.org>
20569 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20571 2008-02-01 Dave Love <fx@gnu.org>
20573 * coding.c: Doc fixes.
20574 (Fcoding_system_aliases): Fix return value.
20575 (Qmac): Remove (duplicated) definition.
20577 2008-02-01 Dave Love <fx@gnu.org>
20579 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20582 * character.c (Fstring): Doc fix.
20584 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20586 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
20587 (font-encoding-alist): Doc fix.
20589 2008-02-01 Dave Love <fx@gnu.org>
20591 * term.c (costs_set): Declare static, non-initialized for pcc.
20592 (encode_terminal_code): Remove unused var.
20594 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20597 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20599 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20600 (suffixes): Move out of make_subsidiaries for K&R.
20602 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20604 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20606 2008-02-01 Dave Love <fx@gnu.org>
20608 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20610 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20612 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
20614 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20616 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20618 2008-02-01 Kenichi Handa <handa@m17n.org>
20620 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20621 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20623 2008-02-01 Kenichi Handa <handa@m17n.org>
20625 * coding.c (decode_coding_charset): Adjust for the change of
20626 Fdefine_coding_system_internal.
20627 (Fdefine_coding_system_internal): For a coding system of
20628 `charset' type, store a list of charset IDs in
20629 `charset_attr_charset_valids' element of coding attributes.
20631 2008-02-01 Kenichi Handa <handa@m17n.org>
20633 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20634 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20635 caller. Handle 2-byte and 3-byte charsets correctly.
20636 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20637 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20638 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20639 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20640 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20642 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20643 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20644 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20645 and alt&rule composition.
20646 (decode_coding_iso_2022): Handle composition correctly.
20647 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20649 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20650 re-defining a charset. If the charset has :emacs-mule-id, setup
20652 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20654 2008-02-01 Kenichi Handa <handa@m17n.org>
20656 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20657 (encode_coding_big5, encode_coding_charset): If coding requires safe
20658 encoding, produce a character specified by
20659 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20661 2008-02-01 Dave Love <fx@gnu.org>
20663 * xterm.c (XSetIMValues): Declare.
20665 * process.c: Conditionally include sys/wait.h, pty.h.
20667 * print.c (print_object): Fix print format for 64-bit systems.
20669 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20671 * buffer.c (emacs_strerror): Declare.
20673 * fontset.c (Fclear_face_cache): Declare.
20674 (accumulate_font_info): Comment-out (unused).
20675 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20678 * character.h (string_escape_byte8): Declare.
20680 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20682 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20683 (Fmap_charset_chars): Doc fix.
20685 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20686 (Fset_coding_system_priority, Fset_coding_system_priority)
20687 (Fdefine_coding_system_internal): Doc fix.
20689 2008-02-01 Dave Love <fx@gnu.org>
20691 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20693 2008-02-01 Kenichi Handa <handa@m17n.org>
20695 * character.c (string_escape_byte8): Make multibyte string with
20698 * charset.c (Fmake_char): Delete unnecessary code.
20700 2008-02-01 Kenichi Handa <handa@m17n.org>
20702 * xfns.c (x_encode_text): Allocate coding.destination here, and
20703 call encode_coding_object with dst_object Qnil.
20705 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20706 multibyte form correctly.
20708 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20709 against Vfont_encoding_alist.
20711 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20712 handling of charset list.
20713 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20714 (decode_coding_object): Move point to coding->dst_pos before
20715 calling post-read-conversion function.
20716 (encode_coding_object): Give correct arguments to
20717 pre-write-conversion. Ignore the return value of
20718 pre-write-conversion function. Pay attention to the case that
20719 pre-write-conversion changes the current buffer. If dst_object is
20720 Qt, even if coding->src_bytes is zero, allocate at least one byte
20721 to coding->destination.
20723 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20725 * charset.c (Fmake_char): Make it more backward compatible.
20726 (Fmap_charset_chars): Fix docstring.
20728 2008-02-01 Dave Love <fx@gnu.org>
20730 * coding.c: Doc fixes.
20731 (Fdefine_coding_system_alias): Use names, not symbols, in
20732 coding-system-alist.
20734 2008-02-01 Kenichi Handa <handa@m17n.org>
20736 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20737 of calling free_realized_face.
20739 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
20741 * charset.c (read_hex): Don't treat SPC as a comment starter.
20742 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20743 (Fdecode_char): Fix typo.
20745 2008-02-01 Kenichi Handa <handa@m17n.org>
20747 * charset.h (struct charset): New member `code_space_mask'.
20749 * coding.c (coding_set_source): Delete the local variable beg_byte.
20750 (encode_coding_charset, Fdefine_coding_system_internal):
20751 Delete the local variable charset.
20752 (Fdefine_coding_system_internal): Setup
20753 attrs[coding_attr_charset_valids] correctly.
20755 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20756 member to check if CODE is valid or not.
20757 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20758 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20759 is within the range of charset->min_code and carset->max_code.
20761 2008-02-01 Dave Love <fx@gnu.org>
20763 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20765 * dispextern.h (generate_ascii_font): Fix return type.
20767 * xfaces.c (generate_ascii_font): Fix arg declaration.
20769 * coding.c (coding_inherit_eol_type)
20770 (Fset_terminal_coding_system_internal)
20771 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20773 2008-02-01 Kenichi Handa <handa@m17n.org>
20775 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20776 multiple charsets correctly.
20778 2008-02-01 Kenichi Handa <handa@m17n.org>
20780 * search.c (boyer_moore): Fix handling of multibyte character
20783 * xdisp.c (display_mode_element): When the variable `elt' is
20784 changed, update `this' and `lisp_string'.
20786 2008-02-01 Kenichi Handa <handa@m17n.org>
20788 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20790 * callproc.c (Fcall_process): Be sure to give the current buffer
20791 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20793 * charset.c (struct charset_map_entries): New struct.
20794 (load_charset_map): Rename from parse_charset_map. New args
20795 entries and n_entries. Change caller.
20796 (load_charset_map_from_file): Rename from load_charset_map.
20797 Change caller. New arg control_flag. Call load_charset_map at
20799 (load_charset_map_from_vector): New function.
20800 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20801 (encode_char): If the charset is compact, change a character index
20804 * coding.c (coding_alloc_by_making_gap): Check the case that the
20805 source and destination are the same correctly.
20806 (decode_coding_raw_text): Set coding->consumed_char and
20807 coding->consumed to 0.
20808 (produce_chars): If coding->chars_at_source is nonzero, update
20809 coding->consumed_char and coding->consumed before calling
20811 (Fdefine_coding_system_alias): Register ALIAS in
20812 Vcoding_system_alist.
20813 (syms_of_coding): Define `no-conversion' coding system at the tail.
20815 * fileio.c (Finsert_file_contents): Set coding_system instead of
20816 val. If the current buffer is multibyte, always call
20819 * xfaces.c (try_font_list): Give higher priority to fontset's
20820 family than face's family.
20822 2008-02-01 Kenichi Handa <handa@m17n.org>
20824 * callproc.c (Fcall_process): Be sure to give the current buffer
20825 to decode_coding_c_string.
20827 * xfaces.c (try_font_list): Give a family specified in a fontset
20828 higher priority than a family specified in a face.
20830 2008-02-01 Kenichi Handa <handa@m17n.org>
20832 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20833 Fix arguments to insert_from_buffer.
20835 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20837 2008-02-01 Kenichi Handa <handa@m17n.org>
20839 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20840 (decode_coding_gap): Set coding->dst_multibyte correctly.
20842 2008-02-01 Kenichi Handa <handa@m17n.org>
20844 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20845 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20846 (encode_coding_utf_16): Substitute coding->default_char for
20847 non-Unicode characters.
20848 (decode_coding): Don't call record_insert here.
20849 (setup_coding_system): Initialize `surrogate' of
20850 coding->spec.utf_16 to 0.
20851 (EMIT_ONE_BYTE): Fix for multibyte case.
20853 * insdel.c (insert_from_gap): Call record_insert.
20855 2008-02-01 Kenichi Handa <handa@m17n.org>
20857 * casefiddle.c (casify_region): Fix multibyte case.
20859 * character.c (c_string_width): Add return type `int'.
20860 (char_string_with_unification): Delete arg ADVANCED.
20862 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20863 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20864 (CHAR_STRING_ADVANCE): Make it do-while statement.
20866 * chartab.c (sub_char_table_set_range): Optimize for the case
20867 DEPTH == 3. Add workaround code for a GCC optimization bug.
20869 * charset.c (parse_charset_map): Remove an unused variable.
20871 * coding.c: Delete unused variables.
20873 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20874 earlier. If inserted is zero and the coding system doesn't
20875 require flushing, don't call decode_coding_gap.
20877 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20879 2008-02-01 Kenichi Handa <handa@m17n.org>
20881 The following changes are for using Unicode as an internal
20882 character model, and use UTF-8 format for buffer/string
20885 * .gdbinit (xchartable): Adjust for the change of char table structure.
20886 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20888 * Makefile.in (obj): Add character.o and chartab.o.
20889 (lisp, shortlisp): Remove utf-8.elc.
20890 (*.o): For many files, change dependency on charset.h to
20891 character.h, and add dependency on character.h.
20892 (character.o, chartab.o): New targets.
20894 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20895 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20896 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20899 * dired.c, filelock.c: Include "character.h".
20901 * alloc.c: Include "character.h" instead of "charset.h".
20902 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20903 (syms_of_alloc): Remove defsubr for Smake_char_table.
20905 * buffer.c: Include "character.h" instead of "charset.h", don't
20906 include "coding.h".
20907 (Fset_buffer_multibyte): Adjust for UTF-8.
20909 * buffer.h: EXFUN Fbuffer_live_p.
20911 * callproc.c: Include "character.h" instead of "charset.h".
20912 (Fcall_process): Big change for the new code-conversion APIs.
20914 * casetab.c: Include "character.h" instead of "charset.h".
20915 (set_canon, set_identity, shuffle): Adjust for the new
20916 map_char_table spec.
20917 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20918 accessing the char table structure.
20920 * chartab.c: New file that implements char table.
20922 * category.c: Include "character.h".
20923 (copy_category_entry): New function.
20924 (copy_category_table): Call map_char_table and copy_category_entry.
20925 (Fmake_category_table): Initialize all top-level slots.
20926 (char_category_set): New function.
20927 (modify_lower_category_set): Delete.
20928 (Fmodify_category_entry): Call char_table_ref_and_range.
20930 * category.h (CATEGORY_SET): Just call char_category_set.
20932 * ccl.c: Include "character.h".
20933 (Qccl, Qcclp): New variables.
20934 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20935 it's less than 256.
20936 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20937 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20939 (ccl_driver): Change types of argument, adjust code accordingly.
20940 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20942 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20944 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20945 New members src_multibyte, dst_multibyte, consumed, and produced.
20946 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20947 (CODING_SPEC_CCL_PROGRAM): New macro.
20948 (ccl_driver): Update prototype.
20949 (Qccl, Qcclp, Fccl_program_p): Extern them.
20950 (CHECK_CCL_PROGRAM): New macro.
20952 * character.c, character.h, chartab.c: New files.
20954 * charset.c: Mostly re-written. Move character and multibyte sequence
20955 handling codes to character.c.
20957 * charset.h: Mostly re-written. Move character and multibyte sequence
20958 handling codes to character.h.
20960 * coding.c, coding.h: Mostly re-written.
20962 * composite.c: Include "character.h" instead of "charset.h".
20963 (CHAR_WIDTH): Move to character.h.
20964 (HASH_KEY, HASH_VALUE): Delete.
20966 * composite.h (enum composition_method): Change order of enumeration
20969 * data.c: Include "character.h" instead of "charset.h".
20970 (Faref): Call CHAR_TABLE_REF for a char table.
20971 (Faset): Call CHAR_TABLE_SET for a char table.
20973 * dispextern.h (free_realized_face, check_face_attribytes)
20974 (generate_ascii_font): Extern them.
20975 (free_realized_multibyte_face): Delete extern.
20977 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20980 * editfns.c: Include "character.h" instead of "charset.h".
20981 (Fchar_to_string): Always call CHAR_STRING.
20983 * emacs.c (main): Call init_charset_once, init_charset,
20984 syms_of_chartab, and syms_of_character.
20986 * fileio.c: Include "character.h" instead of "charset.h".
20987 (Finsert_file_contents): Big change for the new code-conversion API.
20988 (choose_write_coding_system, Fwrite_region): Likewise.
20989 (build_annotations_2): Delete.
20990 (e_write): Big change for the new code-conversion API.
20992 * fns.c: Include "character.h" instead of "charset.h".
20993 (copy_sub_char_table): Move to chartab.c.
20994 (Fcopy_sequence): Call copy_char_table for a char table.
20995 (concat): Delete codes calling count_multibyte.
20996 (string_char_to_byte, string_byte_to_char): Adjust for the new
20998 (internal_equal): Adjust for the change of char table structure.
20999 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21000 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21001 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21002 (char_table_translate, optimize_sub_char_table)
21003 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21005 (char_table_ref_and_index): Delete.
21006 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21007 (Fmd5): Call preferred_coding_system instead of accessing
21008 Vcoding_category_list. Adjust for the new code-conversion API.
21009 (syms_of_fns): Move defsubr for char table related functions to
21012 * fontset.c: Mostly re-written.
21014 * fontset.h (struct font_info): Change type of the member encoding_type.
21015 (enum FONT_SPEC_INDEX): New enum.
21016 (fontset_font_pattern, fs_load_font): Update prototype.
21017 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21019 * indent.c: Include "character.h" instead of "charset.h".
21020 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21022 * insdel.c: Include "character.h" instead of "charset.h".
21023 (copy_text): Don't refer to Vnonascii_translation_table.
21024 (insert_from_gap): New function.
21026 * keyboard.c: Include "character.h" instead of "charset.h".
21027 (command_loop_1): Never call direct_output_forward_char before
21028 a non-ASCII character.
21029 (read_char): If Vkeyboard_translate_table is a char table, always
21030 translate a character.
21032 * keymap.c: Include "character.h".
21033 (store_in_keymap): Handle the case that IDX is a cons.
21034 (Fdefine_key): Handle the case that KEY is a cons and the car part
21035 is also a cons (range).
21036 (push_key_description): Adjust for the new character code.
21037 (describe_vector): Call describe_char_table for a char table.
21038 (describe_char_table): New function.
21040 * keymap.h (describe_char_table): Extern it.
21042 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21043 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21044 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21045 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21047 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21049 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21050 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21051 (CHARTAB_SIZE_BITS_3): New macros.
21052 (chartab_size): Extern it.
21053 (struct Lisp_Char_Table): Re-design.
21054 (struct Lisp_Sub_Char_Table): New structure.
21055 (HASH_KEY, HASH_VALUE): Move from fns.c.
21056 (CHARACTERBITS): Define as 22.
21057 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21058 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21059 (GC_SUB_CHAR_TABLE_P): New macro.
21060 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21061 (code_convert_string_norecord): Deleted extern.
21062 (init_character_once, syms_of_character, init_charset)
21063 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21065 * lread.c: Include "character.h".
21066 (read_multibyte): New arg NBYTES.
21067 (read_escape): Change the meaning of returned *BYTEREP.
21068 (to_multibyte): Delete.
21069 (read1): Adjust the handling of char table and string.
21071 * print.c: Include "character.h" instead of "charset.h".
21072 (print_string): Convert 8-bit raw bytes to octal form by
21073 string_escape_byte8.
21074 (print_object): Adjust for the new multibyte form. Print 8-bit
21075 raw bytes always in octal form. Handle sub char table correctly.
21077 * process.c: Include "character.h" instead of "charset.h".
21078 (read_process_output, send_process): Adjust for the new
21079 code-conversion API.
21081 * puresize.h (BASE_PURESIZE): Increase.
21083 * regex.c: Include "character.h" instead of "charset.h".
21084 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21085 (regex_compile): Accept a range whose starting and ending
21086 character have different leading bytes.
21087 (analyse_first): Adjust for the above change.
21089 * search.c: Include "character.h" instead of "charset.h".
21090 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21091 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21093 * syntax.c: Include "character.h" instead of "charset.h".
21094 (syntax_parent_lookup): Delete.
21095 (Fmodify_syntax_entry): Accept a cons as CHAR.
21096 (skip_chars): Adjust for the new multibyte form.
21097 (init_syntax_once): Call char_table_set_range instead of directly
21098 accessing the structure of a char table.
21100 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21101 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21102 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21103 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21105 * term.c: Include "buffer.h" and "character.h".
21106 (encode_terminal_code, write_glyphs): Adjust for the new
21107 code-conversion API.
21108 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21110 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21112 * xdisp.c: Include "character.h".
21113 (get_next_display_element): Adjust for the new multibyte form.
21114 (disp_char_vector): Adjust for the new char table structure.
21115 (decode_mode_spec_coding): Adjust for the new structure of
21117 (decode_mode_spec): Adjust for the new code-conversion API.
21119 * xfaces.c: Include "character.h" instead of "charset.h".
21120 (load_face_font): Adjust for the change of choose_face_font and
21122 (generate_ascii_font): New function.
21123 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21124 (set_font_frame_param): Adjust for the change of choose_face_font.
21125 (free_realized_face): Make it public.
21126 (free_realized_faces_for_fontset): Rename from
21127 free_realized_multibyte_face. Free also faces realized for ASCII.
21128 (choose_face_font): Change arguments. Adjust for the change of
21129 fontset_font_pattern and FS_LOAD_FONT.
21131 * xfns.c: Include "character.h".
21132 (x_encode_text): Adjust for the new code-conversion API.
21134 * xselect.c: Don't include "charset.h".
21135 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21137 * xterm.c: Include "character.h".
21138 (x_encode_char): New argument CHARSET. Change caller.
21139 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21140 Call ENCODE_CHAR instead of SPLIT_CHAR.
21141 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21142 CHAR_WIDTH instead of CHARSET_WIDTH.
21143 (XTread_socket): Adjust for the new code-conversion API.
21144 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21145 (x_load_font): Adjust for the change of struct font.
21147 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21149 * xfaces.c (face_at_buffer_position): Remove unused vars.
21151 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21153 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21154 Fix overflow checking.
21156 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21158 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21159 Cancel previous change.
21161 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21163 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21164 ccl->eight_bit_control. Fix check for buffer overflow.
21165 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21166 (ccl_driver): Initialize extra_bytes to 0.
21168 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21170 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21171 return it ORed with ctrl_modifier.
21173 2008-01-29 Miles Bader <miles@gnu.org>
21175 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21177 2008-01-28 Jason Rumney <jasonr@gnu.org>
21179 * w32.c (stat): Don't double check for networked drive.
21181 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21183 * window.c (run_window_configuration_change_hook): New function.
21184 Code extracted from set_window_buffer. Set the selected frame.
21185 (set_window_buffer): Use it.
21186 * window.h (run_window_configuration_change_hook): Declare.
21187 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21189 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21191 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21193 * Makefile.in: Remove references to unused macros.
21195 2008-01-26 Eli Zaretskii <eliz@gnu.org>
21197 * w32.c (g_b_init_get_sid_sub_authority)
21198 (g_b_init_get_sid_sub_authority_count): New static variables.
21199 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21200 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21201 (init_user_info): Use them to retrieve uid and gid.
21202 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21203 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21204 st_uid and st_gid of the file.
21206 2008-01-26 Jason Rumney <jasonr@gnu.org>
21208 * w32.c (logon_network_drive): New function.
21211 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
21213 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21214 invisible text covered with an ellipsis.
21216 2008-01-25 Richard Stallman <rms@gnu.org>
21218 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21219 jump back to beginning. Move some other initializations after that.
21220 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21222 (syms_of_xdisp): Init them.
21224 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21226 * buffer.c (reset_buffer_local_variables):
21227 Implement `permanent-local-hook'.
21228 (Qpermanent_local_hook): New variable.
21229 (syms_of_buffer): Init and staticpro it.
21231 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
21233 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21235 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21237 * fns.c (Fclrhash): Return TABLE.
21239 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21241 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21242 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21243 is set even without positional changes.
21244 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21246 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21248 2008-01-23 Jason Rumney <jasonr@gnu.org>
21250 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21252 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21253 the unicode range available in MULE by locale-coding-system.
21254 Improve dbcs lead byte detection. Set event timestamp and modifiers
21257 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21259 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21260 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21261 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21262 when used on child processes.
21264 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
21266 * dbusbind.c (Fdbus_method_return_internal): Rename from
21267 Fdbus_method_return.
21268 (Fdbus_unregister_object): Move to dbus.el.
21269 (Fdbus_call_method, Fdbus_method_return_internal)
21270 (Fdbus_send_signal): Improve debug messages.
21272 2008-01-20 Martin Rudalics <rudalics@gmx.at>
21274 * undo.c (undo_inhibit_record_point): New variable.
21275 (syms_of_undo): Initialize it.
21276 (record_point): Don't record point when undo_inhibit_record_point
21279 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21281 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21283 * xdisp.c (Qauto_hscroll_mode): New var.
21284 (syms_of_xdisp): Initialize it.
21285 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21287 (hscroll_windows): Don't check automatic_hscrolling_p here.
21289 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21290 vscroll if we're setting window-buffer to the value it already has.
21292 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21294 * m/intel386.h: Remove references to XENIX.
21296 2008-01-17 Andreas Schwab <schwab@suse.de>
21298 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21299 instead of HAVE_X86_64_LIB64_DIR.
21300 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21302 2008-01-17 Glenn Morris <rgm@gnu.org>
21304 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21305 to HAVE_X86_64_LIB64_DIR.
21307 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21314 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21316 * sysdep.c: Remove code containing references to symbols defined
21317 by unsupported systems.
21319 2008-01-16 Glenn Morris <rgm@gnu.org>
21321 * coding.c (select-safe-coding-system-function): Doc fix.
21323 2008-01-15 Glenn Morris <rgm@gnu.org>
21325 * config.in: Revert 2008-01-13 change: this is a generated file.
21327 2008-01-13 Tom Tromey <tromey@redhat.com>
21329 * lisp.h: Fix typo.
21331 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21337 * s/ptx4.h: Remove files for systems no longer supported.
21339 * callproc.c (Fcall_process): Fix previous change.
21341 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21343 * unexsunos4.c: Remove file, system not supported anymore.
21363 * alloc.c: Remove code containing references to symbols defined by
21364 unsupported systems.
21366 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21368 * coding.c (detect_coding_mask): Fix previous change.
21370 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21372 * coding.c (detect_coding_iso2022): New arg
21373 latin_extra_code_state. Allow Latin extra codes only
21374 when *latin_extra_code_state is nonzero.
21375 (detect_coding_mask): If there is a NULL byte, detect the encoding
21376 as UTF-16 or binary. If Latin extra codes exist, detect the
21377 encoding as ISO-2022 only when there's no other proper encoding is
21380 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21382 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21385 2008-01-08 Richard Stallman <rms@gnu.org>
21387 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21389 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
21391 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21392 menu bar in parentheses.
21394 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21398 * m/alliant-2800.h:
21406 * m/aviion-intel.h:
21501 * unexsni.c: Remove files for systems no longer supported.
21503 * m/intel386.h: Remove references to unsupported systems.
21505 * w32.c (get_emacs_configuration): Remove reference to i860.
21507 * sysdep.c: Remove dead code.
21509 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21512 * m/masscomp.h: Remove files. Platform is obsolete.
21514 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
21516 * dbusbind.c (Fdbus_method_return): New function.
21517 (xd_read_message): Add the serial number to the event.
21518 (Fdbus_register_method): Activate the function.
21520 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21522 * keyboard.c (read_key_sequence): Fix typo.
21524 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
21526 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21527 (xd_signature, xd_append_arg): Handle element type detection for
21529 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21530 SDATA () calls; this must be solved more general.
21531 (Fdbus_register_signal): Use SBYTES instead of strlen.
21533 2008-01-03 Magnus Henoch <magnus@zemdatav>
21535 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21536 unsigned int for byte values (necessary for big-endian platform).
21537 (Fdbus_call_method): Handle the case of no returned arguments.
21539 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21541 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21543 2007-12-31 Magnus Henoch <mange@freemail.hu>
21545 * dbusbind.c (xd_signature): Signature of variant is just "v".
21547 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
21549 * dbusbind.c: Fix several errors and compiler warnings.
21550 Reported by Tom Tromey <tromey@redhat.com>.
21551 (XD_ERROR, XD_DEBUG_MESSAGE)
21552 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21553 (xd_append_arg): Part for basic D-Bus types rewritten.
21554 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21555 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21557 (xd_read_message): Return Qnil. Don't signal an error; it is not
21558 useful during event reading.
21559 (Fdbus_register_signal): Signal an error if the check for
21561 (Fdbus_register_method): New function. The implementation is not
21562 complete, the call of the function signals an error therefore.
21563 (Fdbus_unregister_object): New function, renamed from
21564 Fdbus_unregister_signal. The initial check signals an error, if
21565 the object is not well formed.
21567 2007-12-30 Richard Stallman <rms@gnu.org>
21569 * textprop.c (get_char_property_and_overlay):
21570 Signal error if POSITION is out of range in a buffer.
21572 2007-12-29 Martin Rudalics <rudalics@gmx.at>
21574 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21575 because the original parameters are in pure storage now.
21577 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21579 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21581 2007-12-22 Eli Zaretskii <eliz@gnu.org>
21583 * callint.c (syms_of_callint) <command-history>: Add reference to
21584 history-length in the doc string.
21586 2007-12-17 Jason Rumney <jasonr@gnu.org>
21588 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21589 before passing as wParam.
21591 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
21593 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21594 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21595 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21596 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21598 (Fdbus_call_method): Fix docstring.
21600 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
21602 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21604 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21605 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21607 (xd_signature): New function.
21608 (xd_append_arg): Compute also signatures. Major rewrite.
21609 (xd_retrieve_arg): Make debug messages friendly.
21610 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21611 Check for signatures of arguments.
21613 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
21615 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21616 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21617 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21618 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21619 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21620 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21621 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21622 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21623 (xd_retrieve_value): Remove. Functionality included in ...
21624 (xd_append_arg): New function.
21625 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21627 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
21629 * dbusbind.c (top): Include <stdio.h>.
21630 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21631 dbus_message_new_method_call and dbus_message_new_signal.
21632 (Fdbus_register_signal): Rename unique_name to uname.
21633 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21634 non-existing unique name. Fix typos in matching rule. Return an
21635 object which is useful in Fdbus_unregister_signal.
21636 (Fdbus_unregister_signal): Reimplementation, in order to remove
21637 only the corresponding entry.
21638 (Vdbus_registered_functions_table): Change the order of entries.
21639 Apply these changes in xd_read_message and Fdbus_register_signal.
21641 2007-12-16 Andreas Schwab <schwab@suse.de>
21643 * fileio.c (Finsert_file_contents): Fix overflow check to not
21644 depend on undefined integer overflow.
21646 2007-12-14 Jason Rumney <jasonr@gnu.org>
21648 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21649 for characters above 127.
21651 2007-12-13 Jason Rumney <jasonr@gnu.org>
21653 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21654 before dereferencing array.
21655 (lookup_vk_code): Remove zero comparison.
21657 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
21659 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21660 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21661 Use `unsigned int' instead of `uint'.
21662 (xd_read_message, Fdbus_register_signal): Split expressions into
21663 multiple lines before operators "&&" and "||", according to the
21664 GNU Coding Standards.
21666 2007-12-14 Eli Zaretskii <eliz@gnu.org>
21668 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21670 2007-12-12 Juri Linkov <juri@jurta.org>
21672 * buffer.c (Frename_buffer): In interactive spec replace
21673 `read-buffer' with `read-string' that uses `buffer-name-history'
21674 as history, and the current buffer's name as default.
21676 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21678 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21679 manipulating the backtrace manually.
21680 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21681 (struct backtrace, backtrace_list): Remove.
21682 (command_loop_1): Remove dead var `no_direct'.
21684 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21685 preserve non-built-in buffer-local variables.
21686 (Fkill_all_local_variables): Don't re-create&re-set permanent
21687 buffer-local variables.
21689 2007-12-09 Juri Linkov <juri@jurta.org>
21691 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21692 Lisp code that uses `read-buffer' with current buffer as default.
21694 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
21696 * dbusbind.c (xd_read_message): Generate an event for every
21697 registered handler. There might be several handlers registered
21698 for the same signal.
21699 (Fdbus_register_signal): Don't overwrite a registration for the
21700 same signal. Add a new registration if handlers are different.
21701 (Vdbus_registered_functions_table): Rework doc string.
21703 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
21705 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21706 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21707 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21708 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21709 Unify argument lists.
21710 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21711 arguments and hash table keys. Use unique name for service.
21712 (Fdbus_unregister_signal): Remove checks.
21713 (Vdbus_registered_functions_table): Fix doc string.
21715 2007-12-05 Magnus Henoch <mange@freemail.hu>
21717 * process.c (make_process): Initialize pty_flag to 0.
21719 2007-12-05 Jason Rumney <jasonr@gnu.org>
21721 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21724 2007-12-05 Richard Stallman <rms@gnu.org>
21726 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21728 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21730 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21732 (mac_try_close_socket) [MAC_OSX]: New function.
21733 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21734 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21736 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21737 Use mac_try_close_socket.
21739 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21741 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21743 (copy_dysymtab): Compute relocation base here.
21744 (rebase_reloc_address) [__ppc64__]: New function.
21745 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21748 2007-12-05 Jason Rumney <jasonr@gnu.org>
21750 * w32proc.c (sys_spawnve): Quote args with wildcards.
21752 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21754 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21756 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21758 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
21760 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21761 Move check for Vdbus_registered_functions_table to
21762 xd_read_queued_messages.
21763 (xd_read_queued_messages): Protect xd_read_message calls by
21764 internal_condition_case_1.
21766 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
21768 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21769 Qdbus_system_bus and Qdbus_session_bus, respectively.
21770 (Vdbus_intern_symbols): Remove.
21771 (Vdbus_registered_functions_table): New hash table.
21772 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21773 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21774 Rewrite in order to manage registered functions by hash table
21775 Vdbus_registered_functions_table.
21777 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21779 * xterm.c: Update URL to Window Manager Specification in comment.
21781 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
21783 * config.in (HAVE_DBUS): Add.
21785 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21786 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21787 (obj): Add $(DBUS_OBJ).
21788 (LIBES): Add $(DBUS_LIBS).
21789 (dbusbind.o): New target.
21791 * dbusbind.c: New file.
21793 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21795 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21796 (Qdbus_event): New Lisp symbol.
21797 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21798 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
21799 (keys_of_keyboard): Define dbus-event.
21801 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21803 2007-12-01 Richard Stallman <rms@gnu.org>
21805 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21807 2007-11-30 Jason Rumney <jasonr@gnu.org>
21809 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21810 (w32con_reset_terminal_modes): Clear screen buffer.
21811 (w32_face_attributes): Don't use color indexes that are out of range.
21812 Only reverse the default colors.
21814 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21817 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21819 2007-11-29 Jason Rumney <jasonr@gnu.org>
21821 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21822 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21823 if the terminal colors are initialized.
21824 (unspecified_fg, unspecified_bg): Remove unused declarations.
21826 2007-11-29 Andreas Schwab <schwab@suse.de>
21828 * keyboard.c (apply_modifiers): Fix typo.
21830 2007-11-29 Richard Stallman <rms@gnu.org>
21832 * keymap.c (Fcurrent_local_map): Doc fix.
21834 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21836 * s/gnu-kfreebsd.h: New file.
21838 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21840 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21841 Don't cast redundantly.
21843 * keyboard.c (KEY_TO_CHAR): New macro.
21844 (parse_modifiers, apply_modifiers): Accept integer arguments.
21845 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21846 for chars and symbol keys.
21847 After doing such remapping, apply function-key-map again.
21849 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21851 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21854 2007-11-26 Andreas Schwab <schwab@suse.de>
21856 * process.c (list_processes_1): Fix indentation level of the
21859 2007-11-23 Andreas Schwab <schwab@suse.de>
21861 * editfns.c (Fformat): Handle %c specially since it requires the
21862 argument to be of type int.
21864 2007-11-23 Markus Triska <markus.triska@gmx.at>
21866 * emacs.c (main): Call init_editfns before init_process, since
21867 init_process sets Vprocess_connection_type depending on OS release.
21869 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21871 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21872 (find_symbol_value): Use do_symval_forwarding.
21874 * data.c (set_internal): Set the value in the `cons-cell' (for
21875 Buffer_Local_values) not only for frame-local variables.
21877 2007-11-22 Andreas Schwab <schwab@suse.de>
21879 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21881 * keymap.c (Fsingle_key_description): Likewise.
21882 * print.c (print_object): Likewise.
21884 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21886 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21887 file for image is nil.
21889 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21891 * term.c: Include stdarg.h.
21892 (fatal): Implement using varargs.
21893 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21895 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21897 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21898 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21899 Update call to buffer_slot_type_mismatch.
21900 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21901 (buffer_slot_type_mismatch): Update.
21902 * buffer.c (buffer_local_types): Remove.
21903 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21904 (defvar_per_buffer): Set the type in the buffer_objfwd.
21906 2007-11-21 Jason Rumney <jasonr@gnu.org>
21908 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21909 CreateFileMapping returns NULL on failure.
21911 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21913 * search.c (Fset_match_data): Remove the `evaporate' feature.
21914 (unwind_set_match_data): Don't use the `evaporate' feature.
21916 2007-11-21 Jason Rumney <jasonr@gnu.org>
21918 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21920 * w32console.c (w32con_write_glyphs): Remove unused variables.
21922 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21924 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21926 * s/darwin.h (MULTI_KBOARD): Remove.
21928 * macfns.c (x_create_tip_frame, Fx_create_frame)
21929 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21931 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21933 * buffer.c (Fbuffer_local_value): Remove redundant test.
21934 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21935 than in `current-buffer' to match the comment.
21936 Do the swap using swap_in_global_binding.
21938 * data.c (store_symval_forwarding, set_internal):
21939 * eval.c (specbind): Remove dead code.
21941 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21942 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21943 Since we do not want to see internal Lisp_*fwd objects here.
21945 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21947 * sysdep.c (init_system_name): Use getaddrinfo if available.
21949 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21950 (x_scroll_bar_note_movement): start, end, with, height in struct
21951 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21953 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21955 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21957 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21959 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21960 This undoes Richard's change of 14-Oct-2002.
21962 * alloc.c (allocate_other_vector):
21963 * lisp.h (allocate_other_vector): Remove.
21965 * window.c (struct save_window_data): Move non-lisp data to the end
21966 and make it `int' rather than Lisp_Object.
21967 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21968 Done wrap/unwrap integer values.
21969 (Fset_window_configuration, compare_window_configurations):
21970 Update use of fields to their new types.
21972 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21973 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21974 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21975 (SET_SCROLL_BAR_X_WINDOW): Remove.
21976 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21977 Access the new x_window field directly.
21978 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21979 Don't wrap/unwrap integers into Lisp_Objects.
21980 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21981 (x_scroll_bar_report_motion):
21982 Don't wrap/unwrap integers into Lisp_Objects.
21983 (x_term_init): Use SDATA.
21984 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21985 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21986 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21987 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21988 * xfns.c (x_set_background_color):
21989 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21990 Access the new x_window field directly.
21992 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21993 (allocate_pseudovector): Make non-static.
21995 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21996 (allocate_pseudovector): Declare.
21997 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21999 2007-11-15 Andreas Schwab <schwab@suse.de>
22001 * editfns.c (Fformat): Correctly format EMACS_INT values.
22002 Also take precision into account when formatting an integer.
22004 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22006 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22008 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22009 (syms_of_keyboard): Defsubr it.
22011 * data.c (swap_in_global_binding): Fix longstanding bug where
22012 store_symval_forwarding was not called with the right second argument,
22013 thus causing objfwd-ing from being dropped.
22015 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22017 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22018 (Fx_display_pixel_height, Fx_display_planes)
22019 (Fx_display_color_cells, Fx_server_max_request_size)
22020 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22021 (Fx_display_visual_class, Fx_display_save_under):
22022 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22023 (Fx_display_pixel_height, Fx_display_planes)
22024 (Fx_display_color_cells, Fx_server_max_request_size)
22025 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22026 (Fx_display_mm_height, Fx_display_mm_width)
22027 (Fx_display_backing_store, Fx_display_visual_class)
22028 (Fw32_select_font, Fx_display_save_under):
22029 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22030 (Fx_display_pixel_height, Fx_display_planes)
22031 (Fx_display_color_cells, Fx_server_max_request_size)
22032 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22033 (Fx_display_save_under): Fix typos in docstrings.
22035 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22037 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22038 corresponding to deleted entries; they are an implementation detail.
22039 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22041 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22042 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22043 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22044 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22045 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22046 (Fw32_define_rgb_color, Fw32_load_color_file)
22047 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22048 Fix typos in docstrings.
22049 (Fx_server_version): Reflow docstring.
22050 (Fw32_shell_execute): Doc fixes.
22052 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
22054 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22055 if w32_parse_hot_key returned nil.
22057 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22059 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22061 2007-11-09 Jason Rumney <jasonr@gnu.org>
22063 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22065 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22067 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22068 Remove W32_SCROLL_BAR_CLICK_EVENT.
22070 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22071 Add MULTIMEDIA_KEY_EVENT.
22073 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22074 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22075 (make_lispy_event) [WINDOWSNT]: Use it to translate
22076 MULTIMEDIA_KEY_EVENT.
22078 * w32term.h (WM_APPCOMMAND): Define if not already.
22079 (GET_APPCOMMAND_LPARAM): Likewise.
22081 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22084 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22085 (syms_of_w32fns): Export and initialize it.
22086 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22088 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
22090 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22093 * xdisp.c (handle_face_prop): Fix last change.
22095 2007-11-09 Richard Stallman <rms@gnu.org>
22097 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22098 not just for after-strings and before-strings.
22099 Call face_for_overlay_string and pass the overlay to it.
22100 (handle_display_prop): Determine whether property came from an overlay.
22101 Pass OVERLAY arg to handle_single_display_spec.
22102 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22103 (load_overlay_strings): Fill in it->string_overlays.
22104 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22106 * xfaces.c (face_for_overlay_string): Function renamed from
22107 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22109 * dispextern.h (struct it): New elt string_overlays.
22110 New elt from_overlay, also in stack.
22111 Rearrange a few elements.
22112 (face_for_overlay_string): Decl renamed from
22113 face_at_buffer_position_no_overlays, and add argument.
22115 2007-11-09 Richard Stallman <rms@gnu.org>
22117 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22118 to get the base face for an overlay string.
22120 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22122 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22124 * xdisp.c (handle_stop): Move some code out of loop.
22126 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22128 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22129 Fix conversion from Lisp object to ATSUFontID.
22131 2007-11-09 Jason Rumney <jasonr@gnu.org>
22133 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22135 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22137 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22138 Don't assume regions are aligned to page boundary.
22139 (print_load_command_name): Add LC_UUID if defined.
22141 2007-11-09 Richard Stallman <rms@gnu.org>
22143 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22145 2007-11-07 Jason Rumney <jasonr@gnu.org>
22147 * s/windows95.h: Remove.
22149 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22151 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22152 abort with a message on unhandled store_type values.
22154 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22156 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22157 Remove HAVE_X11R5 and HAVE_X11R4.
22159 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22161 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22163 2007-11-01 Johan Bockgård <bojohan@gnu.org>
22165 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22166 Don't set s->stippled_p here, since it has already been set by
22167 x_set_glyph_string_gc from x_draw_glyph_string.
22169 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22171 * sunfns.c: Remove file.
22175 * m/sparc.h: Remove Sun windows code.
22177 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22179 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22180 (init_keyboard): Set current_kboard's window-system to nil.
22181 (tty_read_avail_input): Typo.
22182 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22184 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22191 * Makefile.in: Remove all mentions of X10.
22193 * dispnew.c (syms_of_display): Don't mention version 10.
22195 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
22197 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22198 ($(BLD)/abbrev.$(O)): Remove.
22200 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22202 Rewrite abbrev.c in Elisp.
22203 * image.c (Qcount): Don't declare as extern.
22204 (syms_of_image): Initialize and staticpro `Qcount'.
22205 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22206 * emacs.c (main): Don't call syms_of_abbrev.
22207 * Makefile.in (obj): Remove abbrev.o.
22208 (abbrev.o): Remove.
22209 * abbrev.c: Remove.
22211 2007-10-26 Martin Rudalics <rudalics@gmx.at>
22213 * window.c (window_min_size_2): Don't count header-line.
22215 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22217 * frame.h (struct frame): Move all bit fields after the first bit
22218 field to take advantage of the available space. Group all the
22219 chars together to reduce wasted space due to padding.
22221 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
22223 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22225 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22226 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22227 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22228 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22229 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22230 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22231 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22232 (last_marked, mark_object_loop_halt): Make static.
22234 * frame.c (syms_of_frame) <delete-frame-functions>:
22235 Fix typo in docstring.
22237 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
22239 * w32.c (init_environment): Fix tiny memory leak.
22240 (w32_get_resource): Remove unused variable `ok'.
22242 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22244 Make `window-system' into a keyboard-local variable (rather than
22245 frame-local as done originally by multi-tty).
22247 * keyboard.h (struct kboard): Add Vwindow_system.
22248 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22249 (mark_kboards): Mark Vwindow_system.
22251 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22252 (init_display): Don't set the obsolete `window-system' frame-param.
22254 * xterm.c (x_term_init):
22255 * w32term.c (w32_create_terminal):
22256 * term.c (init_tty): Set Vwindow_system.
22257 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22258 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22260 * xfns.c (Fx_create_frame, x_create_tip_frame):
22261 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22262 * macfns.c (Fx_create_frame):
22263 Don't set the obsolete `window-system' frame-param.
22265 * frame.h (Qwindow_system): Remove.
22266 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22267 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22269 2007-10-24 Richard Stallman <rms@gnu.org>
22271 * frame.c (x_figure_window_size): For fullscreen case,
22272 set USPosition | PPosition without clobbering rest of window_prompting.
22274 * keyboard.c (Fcurrent_idle_time): Doc fix.
22276 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22278 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22280 * process.c (unwind_request_sigio): Only define if __ultrix__.
22282 * callproc.c (child_setup): Remove spurious *.
22284 * lisp.h (Fget_text_property): Declare.
22285 (have_menus_p): Declare it here rather than in sys-dep header files.
22286 * macterm.h (have_menus_p):
22287 * msdos.h (have_menus_p):
22288 * xterm.h (have_menus_p): Remove.
22290 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22291 (Fmake_variable_frame_local): Just check the variable's const-ness
22292 rather than checking nil or t.
22294 2007-10-22 Jason Rumney <jasonr@gnu.org>
22296 * w32fns.c: Include math.h.
22297 (w32_abort): Declaration moved to nt/config.nt.
22299 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22300 (abort): Redefinition moved to nt/config.nt.
22302 * m/windowsnt.h: Remove.
22304 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
22306 * emacs.c (Fdump_emacs): Fix typo in message.
22307 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22308 <installation-directory>: Reflow docstring.
22310 2007-10-22 Juri Linkov <juri@jurta.org>
22312 * minibuf.c: Allow minibuffer default to be a list of default values.
22313 With empty input use the first element of this list as returned default.
22315 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22316 (read_minibuf): If defalt is cons, set histstring to its car.
22317 (Fread_string): If default_value is cons, set val to its car.
22318 (Fread_buffer): If def is cons, use its car.
22319 (Fcompleting_read): If defalt is cons, set val to its car.
22321 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
22323 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22325 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
22327 * doc.c (Fdocumentation): Check for advice in all cases.
22329 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
22331 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22333 2007-10-19 Richard Stallman <rms@gnu.org>
22335 * doc.c (Fdocumentation): Check for and handle an advised function.
22337 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
22339 * process.c (Fset_process_filter): Doc fix.
22341 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22343 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22344 which caused key-translation-map to applied repeatedly (thus breaking
22347 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22349 * xselect.c (x_own_selection, x_handle_selection_clear)
22350 (x_clear_frame_selections):
22351 * w32menu.c (list_of_panes, list_of_items):
22352 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22353 * textprop.c (validate_plist, interval_has_all_properties)
22354 (interval_has_some_properties, interval_has_some_properties_list)
22355 (add_properties, text_property_list):
22356 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22357 * minibuf.c (Fassoc_string):
22358 * macselect.c (x_own_selection, x_clear_frame_selections)
22359 (Fx_disown_selection_internal):
22360 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22361 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22363 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
22365 * process.c: Link to libs for calling res_init() if available.
22366 (Fmake_network_process): Call res_init() before getaddrinfo or
22367 gethostbyname, if possible.
22369 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22371 * lread.c (read1): Set pvectype for char_tables.
22373 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22374 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22376 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22378 * alloc.c (free_misc): Use XMISCTYPE.
22379 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22381 2007-10-17 Glenn Morris <rgm@gnu.org>
22383 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22384 (syms_of_minibuf): Add Qcompletion_ignore_case.
22385 * dired.c (Qcompletion_ignore_case): Change to external.
22386 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22387 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22388 (Fread_file_name): Use it rather than intern'ing.
22390 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22391 (Fread_coding_system): Ignore case of user input.
22393 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22395 * xdisp.c (handle_display_prop): Ignore display specs after
22396 replacing one when string text is being replaced.
22397 (handle_single_display_spec): Pretend as if characters with display
22398 property haven't been consumed only when buffer text is being replaced.
22400 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22402 * xfns.c (Fx_create_frame, Fx_display_list):
22403 * window.c (window_fixed_size_p, enlarge_window)
22404 (shrink_window_lowest_first):
22405 * macterm.c (init_font_name_table):
22406 * macfns.c (Fx_create_frame, Fx_display_list):
22407 * lread.c (close_load_descs):
22408 * keyboard.c (read_char_x_menu_prompt):
22409 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22410 * coding.c (code_convert_region_unwind): Test the type of an object
22411 rather than just !NILP before extracting data from it.
22413 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22415 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22416 (XMISCANY): New macro.
22417 (XMISCTYPE): Use it.
22418 (struct Lisp_Misc_Any): New type.
22419 (union Lisp_Misc): Use it.
22420 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22421 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22422 (find_symbol_value, set_internal, default_value, Fset_default)
22423 (Fmake_variable_buffer_local, Fmake_local_variable)
22424 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22425 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22426 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22427 * alloc.c (allocate_buffer): Set the size and tag.
22428 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22430 (die): Follow the GNU convention for error messages.
22431 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22432 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22434 (set_buffer_internal_1):
22435 * frame.c (store_frame_param):
22436 * eval.c (specbind):
22437 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22439 * doc.c (Fsnarf_documentation): Simplify.
22441 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22443 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22444 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22446 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22448 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22450 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22452 * eval.c (do_autoload): Don't save autoloads.
22454 * data.c (Ffset): Save autoload of the function being set.
22456 2007-10-07 John Paul Wallington <jpw@pobox.com>
22458 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22459 parameter before setting up faces.
22461 2007-10-13 Eli Zaretskii <eliz@gnu.org>
22463 * ccl.c (Fregister_code_conversion_map):
22464 * keyboard.c (append_tool_bar_item): Reformat last change.
22466 * lisp.h (eabs): Rename from `abs'. All callers changed.
22468 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22470 * buffer.c (add_overlay_mod_hooklist):
22471 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22472 * fontset.c (make_fontset):
22473 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22474 (append_tool_bar_item):
22475 * macmenu.c (grow_menu_items):
22476 * w32menu.c (grow_menu_items):
22477 * xmenu.c (grow_menu_items): Use larger_vector.
22479 2007-10-13 Eli Zaretskii <eliz@gnu.org>
22481 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22482 selected frame'' on MSDOS).
22484 2007-10-12 Martin Rudalics <rudalics@gmx.at>
22486 * frame.c (Qexplicit_name): New variable.
22487 (x_report_frame_params): Report it in parameter alist.
22488 (syms_of_frame): Intern and staticpro it.
22490 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22492 * macfns.c (x_create_tip_frame): Set terminal for frame.
22494 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22496 * frame.c (Qenvironment): Remove.
22497 (syms_of_frame) <Qenvironment>: Don't initialize.
22498 (Fdelete_frame): Don't treat the `environment' param specially.
22499 * frame.h (Qenvironment): Don't declare.
22500 * callproc.c (set_initial_environment): Don't set unused frame param.
22502 * frame.c (Fframe_with_environment): Remove.
22503 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22505 * lisp.h (Fframe_with_environment): Don't declare.
22507 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
22509 * indent.c (indent_tabs_mode, last_known_column)
22510 (last_known_column_modified): Make static.
22511 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22513 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22515 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22517 2007-10-09 Jason Rumney <jasonr@gnu.org>
22519 * w32term.c (x_set_window_size): Disable code that attempts to tell
22520 Lisp code about a size change before it actually happens.
22522 2007-10-09 Richard Stallman <rms@gnu.org>
22524 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22525 return HANDLED_RETURN.
22527 2007-10-08 Martin Rudalics <rudalics@gmx.at>
22529 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22530 when there's an unread command event.
22532 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22533 window autoselection act appropriately when leaving selected frame.
22534 (syms_of_frame): Initialize focus_follows_mouse.
22535 * frame.h (focus_follows_mouse): Extern it.
22536 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22537 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22538 * msdos.c (dos_rawgetc): Likewise.
22539 * w32term.c (w32_read_socket): Likewise.
22540 * xterm.c (handle_one_xevent): Likewise.
22541 * xdisp.c (syms_of_xdisp): In doc-string of
22542 mouse-autoselect-window mention focus-follows-mouse.
22544 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22546 * macterm.c (mac_load_query_font): Fix missing return value.
22547 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22550 2007-10-08 Richard Stallman <rms@gnu.org>
22552 * xdisp.c (get_window_cursor_type): Implement documented behavior
22553 for cursor-in-non-selected-windows = t.
22555 2007-10-08 Jason Rumney <jasonr@gnu.org>
22557 * w32.c (w32_get_resource): Always close registry keys.
22559 2007-10-08 Jason Rumney <jasonr@gnu.org>
22561 * makefile.w32-in (LIBS): Add COMCTL32.
22563 * w32fns.c (globals_of_w32fns): Init common controls.
22565 2007-10-08 Richard Stallman <rms@gnu.org>
22567 * image.c (our_memory_buffer): Rename from omfib_buffer.
22569 2007-10-08 Richard Stallman <rms@gnu.org>
22571 * buffer.c (Foverlays_at): Doc fix.
22573 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22575 * fns.c (Fplist_put): Preserve uneven tail data.
22577 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22579 * termhooks.h (enum event_kind): Remove trailing comma.
22581 * frame.h (enum): Remove trailing comma.
22583 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22585 * w32proc.c (delete_child): Don't terminate threads of zombies.
22587 2007-10-08 Martin Rudalics <rudalics@gmx.at>
22589 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22591 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22592 last-repeatable-command.
22593 (init_kboard): Initialize Vlast_repeatable_command.
22594 (command_loop_1): Set it to real_this_command unless that was
22595 bound to an input event.
22596 (mark_kboards): Mark it.
22598 2007-10-08 Richard Stallman <rms@gnu.org>
22600 * eval.c (condition-case): Doc fix.
22602 2007-10-08 Masatake YAMATO <jet@gyve.org>
22604 * xfaces.c (tty_supports_face_attributes_p): Fix code
22605 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22606 was copied and not edited.
22608 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22610 Add new `input-decode-map' keymap and use it for terminal
22612 * keyboard.h (struct kboard): Add Vinput_decode_map.
22613 Remove Vlocal_key_translation_map.
22614 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22615 (init_kboard): Init input-decode-map.
22616 Replace local-key-translation-map back with key-translation-map.
22617 (syms_of_keyboard): Declare input-decode-map.
22618 Remove local-key-translation-map. Update docstrings.
22619 (mark_kboards): Mark Vinput_decode_map.
22620 Don't mark Vlocal_key_translation_map.
22621 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22622 Replace local-key-translation-map back with key-translation-map.
22623 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22624 Bind in input-decode-map rather than function-key-map.
22626 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22627 This was made redundant by the previous introduction of XSETPVECTYPE.
22629 2007-10-09 Richard Stallman <rms@gnu.org>
22631 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22633 2007-09-29 Richard Stallman <rms@gnu.org>
22635 * eval.c (internal_condition_case_2, internal_condition_case_1)
22636 (internal_condition_case): Reenable abort if x_catching_errors ()
22637 to see if that really happens and why.
22639 2007-10-06 Andreas Schwab <schwab@suse.de>
22641 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22643 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
22645 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22647 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22649 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22651 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22653 * window.h (struct window):
22654 * window.c (struct save_window_data, struct saved_window):
22655 * termhooks.h (struct terminal):
22656 * process.h (struct Lisp_Process):
22657 * frame.h (struct frame):
22658 * buffer.h (struct buffer):
22659 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22660 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22661 The size field of (pseudo)vectors is now unsigned.
22662 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22664 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22665 Turn `count' into an integer.
22667 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22668 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22669 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22670 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22671 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22673 * alloc.c (allocate_pseudovector): New fun.
22674 (ALLOCATE_PSEUDOVECTOR): New macro.
22675 (allocate_window, allocate_terminal, allocate_frame)
22676 (allocate_process): Use it.
22677 (mark_vectorlike): New function.
22678 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22679 (mark_terminals): Use it.
22680 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22681 (Fmake_byte_code): Use XSETPVECTYPE.
22683 * frame.c (Fframe_parameters): Minor simplification.
22685 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22687 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22689 * buffer.c (Fget_buffer_create, init_buffer_once):
22690 * lread.c (defsubr):
22691 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22693 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22694 defined differently in the m/*.h files.
22695 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22696 (XSETPVECTYPE): New macro.
22697 (XSETPSEUDOVECTOR): Use it.
22699 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22700 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22702 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22703 * lread.c (defvar_per_buffer):
22704 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22706 * window.c (candidate_window_p): Only consider as visible frames that
22707 are on the same terminal.
22709 * m/ibms390x.h (MARKBIT): Remove unused macro.
22711 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
22713 * lread.c (Fload): Fix typo in docstring.
22715 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22717 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22718 of a non-zero value can't yield zero.
22720 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22722 * term.c (term_clear_mouse_face, term_mouse_highlight)
22723 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22725 * print.c (safe_debug_print): Use XHASH.
22727 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22728 Lisp elements such as tags.
22729 (XHASH): New macro.
22731 (SREF, SSET, STRING_COPYIN): Use SDATA.
22732 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22734 * alloc.c (mark_terminal): Remove left-over declaration.
22735 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22736 (allocate_vectorlike): Remove type argument. Adjust callers.
22737 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22738 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22740 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22741 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22742 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22743 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22744 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22747 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22748 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22749 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22751 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22753 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22756 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22758 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22760 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22762 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22764 (handle_one_term_event): Use Gpm_DrawPointer.
22765 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22766 Signal errors instead of returning nil. Always return nil.
22767 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22768 Make it a noop if gpm-mouse was not activated.
22769 (syms_of_term): Update names.
22771 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22773 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22774 (init_sys_modes): Check that gpm_tty is the current tty.
22776 * alloc.c (allocate_terminal): Set the vector size to only count the
22777 lisp fields. Initialize those to nil.
22778 (mark_object): Don't treat terminals specially.
22779 (mark_terminal): Remove.
22780 (mark_terminals): Use mark_object instead.
22782 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22783 the GC to the beginning.
22786 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22788 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22790 2007-09-25 Jason Rumney <jasonr@gnu.org>
22792 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22794 * w32console.c (create_w32cons_output): Remove.
22796 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22798 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22799 (reset_sys_modes): Use reset_terminal_modes_hook.
22801 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22803 * eval.c (do_autoload): Don't output any message.
22805 2007-09-24 Juri Linkov <juri@jurta.org>
22807 * emacs.c (standard_args): Change priority of "--no-splash"
22808 from 40 to 3. Add "--no-desktop" with the same priority.
22810 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22812 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22813 and optimize the case where they are all 1.
22815 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
22817 * lisp.h (abs): Define if not defined.
22818 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22819 Don't define `abs', since it's defined in lisp.h.
22821 2007-09-22 Eli Zaretskii <eliz@gnu.org>
22823 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22824 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22825 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22826 (init_tty): Use DEV_TTY instead of "/dev/tty".
22827 [WINDOWSNT]: No need to protect from NAME arg being null.
22829 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22831 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22834 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22836 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22837 (gpm_tty): Change its type.
22838 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22839 (gpm_tty): Change its type and initialize it.
22840 (Fterm_open_connection): Check the frame is indeed a tty.
22841 Use the new gpm_tty.
22842 (Fterm_close_connection): Use the new gpm_tty.
22843 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22844 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22846 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
22848 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22849 underline_color, to draw strike-through.
22851 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22853 * lisp.h (allocate_terminal): Declare.
22855 * window.c (candidate_window_p): Consider frames that are being placed
22856 by the user as somewhere between visible and iconified.
22857 (window_loop): Prefer windows on the current frame.
22858 (Fselect_window): Move the use of select-frame to the beginning so we
22859 can just delegate all the work (it'll call us back anyway).
22861 * frame.c (Qdisplay_environment_variable):
22862 * frame.h (Qdisplay_environment_variable): Delete.
22864 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22865 of the first arg, since that value may be a union.
22867 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22868 parameter rather than Qdisplay_environment_variable. If all else
22869 fails, look for DISPLAY in initial-environment.
22871 2007-09-21 Glenn Morris <rgm@gnu.org>
22873 * Makefile.in (emacstool): Remove target.
22874 (lisp, shortlisp): Remove termdev.elc.
22876 2007-09-21 Markus Triska <markus.triska@gmx.at>
22878 * xterm.c (x_delete_display): Compile session management conditionally.
22880 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22882 * callproc.c (getenv_internal_1): New function.
22883 (getenv_internal): Use it.
22884 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22886 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22887 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22888 (Fset_terminal_parameter): Work with dead terminals as well.
22889 (Fmodify_terminal_parameters): Remove.
22891 * terminal.c (get_terminal): Handle terminals.
22892 Make sure the terminal returned is live.
22893 (create_terminal): Use allocate_terminal.
22894 (mark_terminals): Move to alloc.c.
22895 (delete_terminal): Use terminal->name as liveness status.
22896 NULL out fields after freeing their contents.
22897 Don't deallocate the object.
22898 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22899 rather than an int.
22900 (Fterminal_live_p): Accept non-integer arguments.
22901 (Fterminal_list): Return terminal objects rather than an ints.
22903 * alloc.c (enum mem_type): New member for `terminal' objects.
22904 (allocate_terminal): New function.
22905 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22907 (mark_terminal): New fun.
22908 (mark_terminals): Move from terminal.c.
22910 * term.c (get_tty_terminal): Don't treat output_initial specially.
22911 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22912 (delete_tty): Use terminal->name as liveness status.
22914 * termhooks.h (struct terminal): Make it into a pseudovector.
22915 Remove `deleted' replaced by checking `name's nullness.
22917 * print.c (print_object): Handle terminals.
22919 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22920 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22922 * frame.c (make_terminal_frame):
22923 * keyboard.c (tty_read_avail_input):
22924 * w32term.c (x_delete_terminal):
22925 * xfns.c (Fx_create_frame, x_create_tip_frame):
22926 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22928 2007-09-20 Glenn Morris <rgm@gnu.org>
22930 * process.c (Fmake_network_process): Doc fix.
22932 2007-09-19 Jason Rumney <jasonr@gnu.org>
22934 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22936 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22938 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22939 Fix a C warning regarding variable constness.
22941 * xterm.c (handle_one_xevent): Fix a C warning.
22943 2007-09-18 Jason Rumney <jasonr@gnu.org>
22945 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22947 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22949 * gtkutil.c (gdpy_def): New variable.
22950 (xg_initialize): Initialize gdpy_def.
22951 (xg_display_close): If no other display exists, set gdpy_def to a
22954 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22956 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22957 when we have no file name for the icon.
22958 (xg_tool_bar_expose_callback): Remove.
22959 (xg_create_tool_bar): Don't connect expose signal to
22960 xg_tool_bar_expose_callback.
22961 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22963 2007-09-16 Andreas Schwab <schwab@suse.de>
22965 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22966 values instead of zapping them.
22968 2007-09-14 Glenn Morris <rgm@gnu.org>
22970 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22971 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22972 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22973 scope and rename to omfib_buffer for clarity.
22974 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22976 2007-09-14 Kenichi Handa <handa@m17n.org>
22978 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22980 2007-09-13 Jason Rumney <jasonr@gnu.org>
22982 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22984 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22986 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22987 (mac_term_init): Call here instead, passing rif.
22989 2007-09-13 Glenn Morris <rgm@gnu.org>
22991 * s/hpux.h: No longer define `static' as nothing.
22993 2007-09-13 Johan Bockgård <bojohan@gnu.org>
22995 * callint.c (Fcall_interactively): Remove unused var `fun'.
22997 2007-09-12 Romain Francoise <romain@orebokech.com>
22999 * window.c (prefer_window_split_horizontally, display_buffer):
23000 Revert 2007-09-08 change.
23002 2007-09-12 Glenn Morris <rgm@gnu.org>
23004 * alloca.c: Remove file.
23005 * Makefile.in (alloca): Do not undef.
23006 (allocaobj, alloca.o): Remove.
23007 (otherobj): Remove allocaobj.
23008 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23009 * regex.c (C_ALLOCA): Remove all references and code that was only
23010 used when this was defined.
23011 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23012 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23013 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23015 * Makefile.in (SOURCES, unlock, relock): Delete.
23017 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23018 (menu_grab_callback): All uses changed.
23020 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23021 (x_reply_selection_request): All uses changed.
23023 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23025 * lread.c (load_warn_old_style_backquotes): Change message to look
23026 better when it appears in the middle of byte-compiler messages.
23028 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23030 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23032 * xterm.c (x_create_terminal): Add comment.
23034 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23036 2007-09-10 Richard Stallman <rms@gnu.org>
23038 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23040 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23042 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23043 (DEFUN): Document `intspec', use it instead of `prompt'.
23045 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23047 * data.c (Finteractive_form): If the interactive specification starts
23048 with a `(', use it as a Lisp form.
23050 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23051 name and file modes.
23053 * callint.c (Fcall_interactively): Comment fixes.
23055 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23057 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23058 and compiled functions.
23060 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23062 * window.c (prefer_window_split_horizontally): New variable.
23063 (display_buffer): Consider splitting window horizontally depending
23064 on prefer_window_split_horizontally.
23066 2007-09-08 Eli Zaretskii <eliz@gnu.org>
23068 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23070 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23072 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23074 * frame.c (x_set_frame_parameters): Check number is positive before
23077 * window.c (freeze_window_start): Don't presume selected_window holds
23079 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23081 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23083 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23085 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23087 * window.c (Vsplit_window_preferred_function): New var.
23088 (Fdisplay_buffer): Use it.
23089 (syms_of_window): Export, and initialize it.
23091 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23093 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23095 2007-09-06 Glenn Morris <rgm@gnu.org>
23097 * gtkutil.c (menu_grab_callback) <cnt>:
23098 * xselect.c (x_reply_selection_request) <cnt>: Move static
23099 variable to file scope.
23101 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23103 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23104 consistent values of selected_frame and selected_window.
23106 2007-09-04 Jason Rumney <jasonr@gnu.org>
23108 * w32console.c (initialize_w32_display): Zero unused hooks.
23110 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23112 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23113 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23115 2007-09-04 Jason Rumney <jasonr@gnu.org>
23117 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23118 in w32console.c. Set up input. Remove XXX comments that have been
23119 confirmed as correct.
23121 * s/ms-w32.h (MULTI_KBOARD): Define.
23123 * w32console.c (one_and_only_w32cons): Remove.
23124 (initialize_w32_display): Take terminal argument.
23126 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23127 initialize_w32_display.
23128 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23130 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23132 * keyboard.c (discard_mouse_events): Discard it.
23133 (make_lispy_event): Translate it to a lisp event.
23134 (lispy_wheel_names): Add wheel-left and right events.
23135 (syms_of_keyboard): Enlarge wheel_syms.
23137 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23138 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23140 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23142 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23143 from WM_MOUSEHWHEEL.
23144 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23146 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23149 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23150 keyboard for the terminal.
23152 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23154 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23155 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23156 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23157 and resume-tty-function to resume-tty-hook.
23158 (Fsuspend_tty, Fresume_tty): Use new names.
23160 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23162 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23163 if it starts with "n:".
23165 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23167 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23169 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23172 * frame.c (Qterm_environment_variable): Remove.
23173 (syms_of_frame): Don't init and staticpro it.
23175 * callproc.c (getenv_internal): Remove special case for $TERM.
23177 * callproc.c (Vinitial_environment): New variable.
23178 (set_initial_environment): Initialize it.
23179 (syms_of_callproc): Declare it.
23180 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23181 TERM under which a process runs is never related to the TERM in which
23184 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23186 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23187 * s/darwin.h: ... do it here.
23189 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23191 * lisp.h (set_initial_environment): Rename from set_global_environment.
23193 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23194 removed by mistake on the multi-tty branch.
23196 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23197 (Fmodify_frame_parameters): Return a value.
23199 * image.c (png_load): Comment-out var only used in commented-out code.
23201 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23202 before passing it to mark_object.
23204 * xfaces.c (internal_resolve_face_name): Return a value.
23205 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23207 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23208 (x_icon): Comment-out var only used in commented-out code.
23210 2007-08-29 Romain Francoise <romain@orebokech.com>
23212 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23213 QUIT hasn't been provided.
23215 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23217 * callproc.c (child_setup, getenv_internal): Use the
23218 display-environment-variable and term-environment-variable frame params.
23219 (set_initial_environment): Initialise Vprocess_environment.
23221 * config.in: Disable multi-keyboard support on a mac.
23223 * frame.c (Qterm_environment_variable)
23224 (Qdisplay_environment_variable): New variables.
23225 (syms_of_frame): Intern and staticpro them.
23226 (Fmake_terminal_frame): Disable output method test.
23228 * frame.h: Declare them here.
23230 * macfns.c (x_set_mouse_color): Get rif from the frame.
23231 (x_set_tool_bar_lines): Don't use updating_frame.
23232 (mac_window): Add 2 new parameters for consistency with other systems.
23233 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23234 frame parameters following what is done in X11 and w32. Don't use
23235 FRAME_MAC_DISPLAY_INFO.
23236 (Fx_open_connection, start_hourglass): Remove window-system check.
23237 (x_create_tip_frame): Get the keyboard from the terminal.
23239 * macmenu.c: Reorder includes.
23240 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23242 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23243 terminal parameter.
23244 (x_clear_frame): Add a frame parameter.
23245 (note_mouse_movement): Get rif from the frame.
23246 (mac_term_init): Initialize the terminal.
23247 (mac_initialize): Make static and move terminal initialization ...
23248 (mac_create_terminal): ... to this new function.
23250 * macterm.h (struct mac_display_info): Add terminal.
23251 (mac_initialize): Delete declaration.
23253 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23255 * sysdep.c: Comment out text after #endif.
23257 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23258 is defined. Better initialize ttys in windows. Use terminal
23259 specific mouse_position_hook.
23261 * termhooks.h (union display_info): Add mac_display_info.
23263 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23264 Set the default minibuffer frame, window_system and the rest of the
23265 frame parameters following what is done in X11.
23267 * w32term.c (w32_initialize): Make static.
23269 * xselect.c (x_handle_selection_clear): Only access
23270 terminal->kboard when MULTI_KBOARD is defined.
23272 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23273 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23275 2007-08-29 Jason Rumney <jasonr@gnu.org>
23277 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23278 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23280 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23281 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23283 * keyboard.c (restore_kboard_configuration): Only define when
23284 MULTI_KBOARD defined.
23286 * makefile.w32-in: Update dependancies from Makefile.in.
23287 (OBJ1): Add terminal.$(O)
23289 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23290 Don't define function body.
23291 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23293 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23295 * w32.c (request_sigio, unrequest_sigio): Remove.
23297 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23298 (w32con_clear_frame, w32con_clear_end_of_line)
23299 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23300 (w32con_delete_glyphs, w32con_set_terminal_window)
23301 (scroll_line, w32_sys_ring_bell): Add frame arg.
23302 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23304 (PICK_FRAME): Remove.
23305 (w32con_write_glyphs): Use frame specific terminal coding.
23306 (one_and_only_w32cons): New global variable.
23307 (initialize_w32_display): Use it for storing hooks.
23308 (create_w32cons_output): New function.
23310 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23313 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23315 (x_set_tool_bar_lines): Don't use updating_frame.
23316 (Fx_create_frame): Set terminal and ref count.
23317 (Fx_open_connection): Remove window-system check.
23319 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23321 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23322 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23323 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23325 (x_delete_terminal, w32_create_terminal): New functions.
23326 (w32_term_init): Create a terminal.
23327 (w32_initialize): Move terminal specific initialization to
23328 w32_create_terminal.
23330 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23331 (w32_clear_rect, w32_clear_area): Use background from frame.
23332 (w32_display_info): Add terminal.
23333 (w32_sys_ring_bell, x_delete_display): Declare here.
23335 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23337 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23339 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23341 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23342 Fix get_named_tty calls for the controlling tty.
23344 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23346 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
23348 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23350 * term.c (tty_insert_glyphs): Add missing first parameter.
23352 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23354 * buffer.c (Fbuffer_list, Fbury_buffer):
23355 Take frame->buried_buffer_list into account.
23357 * cm.c (current_tty): New variable, for cmputc().
23359 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23360 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23361 (cmgoto): Add tty parameter. Pass it on to calccost().
23362 Use emacs_tputs() instead of tputs().
23364 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23366 (current_tty): New variable, for cmputc().
23367 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23369 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23370 (internal_condition_case, internal_condition_case_1)
23371 (internal_condition_case_2): Don't abort when x_catching_errors.
23373 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23374 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23375 prevent crashes caused by bogus longjmps in read_char.
23377 * keymap.h (Fset_keymap_parent): Add EXFUN.
23379 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23380 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23381 Remove redundant definition.
23383 * macfns.c (x_set_mouse_color, x_make_gc):
23384 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23386 * w32term.c (x_free_frame_resources):
23387 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23388 (w32_initialize): Use the accessor macros for terminal characteristics.
23390 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23391 Use the accessor macros for terminal characteristics.
23392 * msdos.c (internal_terminal_init): Use the accessor macros for
23393 terminal characteristics.
23394 (ScreenVisualBell, internal_terminal_init):
23395 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23397 * termopts.h (no_redraw_on_reenter): Declare.
23399 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23400 (mark_terminals, mark_ttys): Declare.
23401 (Fgarbage_collect): Call them.
23402 (mark_object): Mark buried_buffer_list.
23404 * prefix-args.c: Include stdlib.h for exit.
23406 * syssignal.h: Add comment.
23408 * indent.c: Include stdio.h.
23410 * window.h (Vinitial_window_system): Declare.
23411 (Vwindow_system): Delete declaration.
23413 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23415 * image.c (lookup_image): Don't initialize `c' until the xasserts
23418 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23419 FRAME_FOREGROUND_PIXEL.
23421 * print.c (print_preprocess): Don't lose print_depth levels while
23424 * widget.c (update_from_various_frame_slots):
23425 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23427 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23429 (window_internal_height): Remove bogus make_number call.
23430 (init_window_once): Call make_terminal_frame with two zero parameters.
23432 * fileio.c (Fread_file_name): Update comment.
23434 * callint.c (Fcall_interactively):
23435 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23436 Make sure it is correctly unwound.
23438 * xsmfns.c (x_session_close): New function.
23440 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23441 Delete declarations.
23443 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23444 (x_output): Remove background_pixel and foreground_pixel fields.
23445 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23446 (x_delete_device, x_session_close): Declare.
23448 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23449 (read_filtered_event): Call `read_char' with a local
23450 `wrong_kboard_jmpbuf'.
23452 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23453 Don't call single_kboard_state. Use FRAME_RIF.
23455 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23458 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23459 (Fframe_with_environment, Fset_input_meta_mode)
23460 (Fset_quit_char): EXFUN.
23461 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23462 (init_sys_modes, reset_sys_modes): Update prototypes.
23463 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23465 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23466 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23467 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23468 Delete declarations.
23469 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23470 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23473 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23474 already does that during init_display(). Call syms_of_keymap
23475 before syms_of_keyboard. Call `syms_of_terminal'.
23476 Call set_initial_environment, not set_process_environment.
23477 (shut_down_emacs): Call reset_all_sys_modes() instead of
23480 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23481 (internal_resolve_face_name, resolve_face_name_error): New functions.
23482 (resolve_face_name): Protect against loops and errors thrown by Fget.
23483 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23484 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23486 * scroll.c: Replace CURTTY() with local variables throughout the
23487 file (where applicable).
23488 (calculate_scrolling, calculate_direct_scrolling)
23489 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23492 * keymap.c (Vfunction_key_map): Remove.
23493 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23494 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23495 (Vkey_translation_map): Remove.
23496 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23497 (Fdescribe_buffer_bindings)
23498 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23499 Update for terminal-local key-translation-map.
23501 * Makefile.in (callproc.o): Update dependencies.
23502 (lisp, shortlisp): Add termdev.elc.
23503 (obj): Add terminal.o.
23504 (terminal.o): Add dependencies.
23505 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23506 (data.o, fns.o): Add termhooks.h dependency.
23507 (SOME_MACHINE_LISP): Add dnd.elc.
23508 (minibuf.o): Fix typo.
23509 Update dependencies.
23511 * data.c (do_symval_forwarding, store_symval_forwarding)
23512 (find_symbol_value): Use the selected frame's keyboard, not
23515 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23518 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23520 (syms_of_xmenu): Update defsubr.
23521 (mouse_position_for_popup, Fx_popup_menu)
23522 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23523 (set_frame_menubar, free_frame_menubar)
23524 (create_and_show_popup_menu, xmenu_show)
23525 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23528 * xselect.c (x_own_selection): Abort if not an X frame.
23529 (some_frame_on_display): Check if it is an X frame.
23530 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23532 * coding.c: Include frame.h and termhooks.h.
23533 (terminal_coding, keyboard_coding): Delete.
23534 (Fset_terminal_coding_system_internal)
23535 (Fset_keyboard_coding_system_internal)
23536 (Fkeyboard_coding_system)
23537 (Fterminal_coding_system): Add a terminal parameter.
23538 Get terminal_coding from the terminal.
23539 (init_coding_once): Don't call setup_coding_system here.
23541 * dispextern.h (set_scroll_region, turn_off_insert)
23542 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23543 (tty_clear_end_of_line, tty_setup_colors)
23544 (delete_tty, updating_frame)
23545 (produce_special_glyphs, produce_glyphs, write_glyphs)
23546 (insert_glyphs): Remove.
23547 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23548 (tty_turn_off_highlight, get_tty_size): Add declaration.
23549 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23551 * frame.h (enum output_method): Add output_initial.
23552 (struct x_output): Delete.
23553 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23554 Access foreground_pixel and background_pixel directly from the frame.
23555 (tty_display): Delete.
23556 (struct frame): Add buried_buffer_list, foreground_pixel,
23557 background_pixel and terminal. Delete kboard.
23558 (union output_data): Add tty.
23559 (FRAME_KBOARD): Get the kboard from the terminal.
23560 (FRAME_INITIAL_P): New macro.
23561 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23562 (Qterm_environment_variable, Qdisplay_environment_variable)
23563 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23566 * termchar.h (tty_output, tty_display_info): New structures.
23567 (tty_list): Declare.
23568 (FRAME_TTY, CURTTY): New macros.
23569 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23570 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23571 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23572 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23574 * callproc.c: Include frame.h and termhooks.h, for terminal
23576 (add_env): New function.
23577 (child_setup): Use it.
23578 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23579 (getenv_internal): Fix get_terminal_param call.
23580 (Fgetenv_internal, egetenv): Update doc.
23581 (syms_of_callproc): Initialize Vprocess_environment to nil.
23582 Register and initialize them. Remove obsolete defvars. Update doc
23584 (child_setup): Handle Vlocal_environment_variables.
23585 (getenv_internal): Add terminal parameter.
23586 Handle Vlocal_environment_variables.
23587 (Fgetenv_internal): Add terminal parameter.
23588 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23589 environment in a frame (not terminal) parameter. Update doc strings.
23590 (set_initial_environment): Rename from set_global_environment.
23591 Store Emacs environment in initial frame parameter.
23593 * xdisp.c (redisplay_internal): Update references to
23594 `previous_terminal_frame'.
23595 (display_mode_line, Fformat_mode_line): Replace calls to
23596 `push_frame_kboard' with `push_kboard'.
23597 (get_glyph_string_clip_rects): Add extra parentheses and
23598 braces to prevent compiler warnings.
23599 (calc_pixel_width_or_height): Add xassert to check that the
23600 frame is alive. Don't call `lookup_image' on a termcap frame.
23601 (message2_nolog, message3_nolog, redisplay_internal)
23602 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23603 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23604 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23605 (Fx_display_pixel_width, Fx_display_pixel_height)
23606 (Fx_display_planes, Fx_display_color_cells)
23607 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23608 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23609 (Fx_display_backing_store, Fx_display_visual_class)
23610 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23611 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23613 * xfns.c (x_set_foreground_color x_set_background_color)
23614 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23615 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23616 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23617 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23618 terminal that is being deleted.
23619 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23620 frame parameter, and make sure it overrides any user-supplied setting.
23621 (Fx_close_connection, Fx_synchronize): Unify argument names with
23622 the rest of the DEFUNs.
23624 * dispnew.c (Fsend_string_to_terminal): Update call to
23625 `get_tty_terminal'.
23626 (Fredraw_frame, Fsend_string_to_terminal)
23627 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23628 FRAME_TERMCAP_P and FRAME_TTY.
23629 (window_change_signal): Don't believe width/height values that are
23631 (Vinitial_window_system): Rename from Vwindow_system.
23632 (termscript, Wcm, rif): Delete.
23634 * termhooks.h (struct terminal): New struct containing the
23635 previously global text display hooks and new members NAME,
23636 DELETED and PARAM_ALIST.
23637 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23638 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23639 (FRAME_RIF): New macros.
23640 (get_terminal_param, get_device): New declarations.
23641 (termscript): Delete declaration.
23643 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23644 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23645 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23646 FRAME_FOREGROUND_PIXEL.
23647 (x_fully_uncatch_errors): Disable definition.
23648 (x_scroll_bar_expose): Fix reference to foreground pixel.
23649 (XTread_socket): Disable loop on all X displays.
23650 (x_delete_terminal): Don't set terminal->deleted and let
23651 delete_terminal delete the frames on the terminal.
23652 (x_delete_display): Doc update to reflect changes in
23654 (x_display_info) <terminal>: Move member earlier in the struct.
23655 (deleting_tty): Remove old variable.
23656 (Fsuspend_tty): Call clear_tty_hooks.
23657 (Fresume_tty, init_tty): Call set_tty_hooks.
23658 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23659 errors on X frames.
23660 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23661 (handle_one_xevent): Initialize `f' to NULL.
23662 (x_delete_terminal, x_create_terminal): New functions.
23663 (XTset_terminal_modes, XTreset_terminal_modes)
23664 (XTread_socket, x_connection_closed, x_term_init)
23665 (x_term_init, x_delete_display): Add terminal parameter.
23666 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23669 * frame.c: Include termchar.h.
23670 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23671 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23672 (Qdisplay_environment_variable): New vars.
23673 (Fframep): Deal with output_initial.
23674 (Fframe-live-p): Doc fix.
23675 (Fwindow-system): New function.
23676 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23677 (make_terminal_frame): Don't create frames on a terminal that is
23678 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23679 (store_frame_param): Check for found_for_frame before calling XFRAME.
23680 (Fmake_terminal_frame): Handle NULL tty names correctly.
23681 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23682 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23683 frames to refer to a deleted frame in their 'environment parameter.
23684 (Fframe_with_environment): New function.
23685 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23686 (get_future_frame_param): New function.
23687 (Fmake_terminal_frame): Use it.
23688 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23690 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23691 * sysdep.c (reset_sys_modes): Update for renames.
23693 * keyboard.c (tty_read_avail_input): New function.
23694 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23695 (syms_of_keyboard): Defsubr them.
23696 (Fset_input_meta_mode, Fset_quit_char): New functions.
23697 (Fset_input_mode): Split to above functions.
23698 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23699 parameter. Use it in call to `read_char'.
23700 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23701 Set wrong_kboard_jmpbuf correctly in recursive calls.
23702 Use current_kboard to access Vkeyboard_translate_table.
23703 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23704 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23705 Update longjmp invocations. Remember the original current_kboard,
23706 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23707 changes it. Comment out unnecessary calls to
23708 `record_single_kboard_state' and `any_kboard_state'.
23709 Update recursive calls.
23710 (wrong_kboard_jmpbuf): Remove global variable.
23711 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23712 Handle deleted interrupted_kboards correctly; that is a legal
23713 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23714 and read_char calls. Abort if interrupted_kboard died in read_char.
23715 (any_kboard_state, single_kboard_state)
23716 (push_frame_kboard): Remove function.
23717 (pop_kboard): Switch out of single_kboard mode if the kboard has
23718 been deleted. Remove unused variable. Help debugging by not
23719 changing current_kboard unnecessarily. Set current_kboard to the
23720 kboard of the selected frame when the stored kboard object has
23721 been deleted before pop_kboard.
23722 (temporarily_switch_to_single_kboard): Change first parameter to a
23723 frame pointer. Throw an error when caller wants to change kboards
23724 while in single_kboard mode. Don't push_kboard if we weren't in
23725 single kboard state. Don't pop_kboard if we popped into any
23727 (restore_kboard_configuration): Abort if pop_kboard changed the
23728 kboard in single_kboard mode. Call pop_kboard only after setting
23729 up single_kboard mode.
23730 (Frecursive_edit): Switch to single_kboard mode only in nested
23732 (cmd_error, command_loop, command_loop_1, timer_check):
23733 Comment out unnecessary call to `any_kboard_state' and
23734 `record_single_kboard_state'.
23735 (delete_kboard): Exit single_kboard mode if we have just deleted
23736 that kboard. Use FRAME_KBOARD.
23737 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23738 `fatal_error_signal'.
23739 (record_single_kboard_state): Don't push_kboard if we weren't in
23740 single kboard state. Don't pop_kboard if we popped into any
23742 (push_frame_kboard): Rename to push_kboard.
23743 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23744 (read_avail_input): Read input from all terminals.
23745 (mark_kboards): Also mark Vkeyboard_translate_table.
23746 (kbd_buffer_store_event_hold): Simplify condition.
23747 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23748 (Vkeyboard_translate_table): Move to struct kboard.
23749 (init_kboard): Initialize Vkeyboard_translate_table.
23750 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23751 Vkeyboard_translate_table. Update doc strings. Update docs of
23752 local-function-key-map and function-key-map.
23754 * terminal.c: New file.
23756 * term.c: Include errno.h.
23757 (Vring_bell_function, device_list, initial_device)
23758 (next_device_id, ring_bell, update_begin, update_end)
23759 (set_terminal_window, cursor_to, raw_cursor_to)
23760 (clear_to_end, clear_frame, clear_end_of_line)
23761 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23762 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23763 (syms_of_term): Move their initialization to terminal.c.
23764 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23765 (Ftty_display_color_cells)
23766 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23767 (clear_tty_hooks, set_tty_hooks)
23768 (init_tty, maybe_fatal): New functions.
23769 (Ftty_type): Return nil if terminal is not on a tty instead of
23770 throwing an error. Doc update.
23771 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23772 Doc update. Initialize new subrs and variables.
23773 (delete_tty): Use terminal->deleted.
23774 (tty_set_terminal_modes): Rename from set_terminal_modes.
23775 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23776 (set_scroll_region): Rename to `tty_set_scroll_region'.
23777 (turn_on_insert): Rename to `tty_turn_on_insert'.
23778 (turn_off_insert): Rename to `tty_turn_off_insert'.
23779 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23780 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23781 (toggle_highligh): Rename to `tty_toggle_highlight'.
23782 (background_highlight): Rename to `tty_background_highlight'.
23783 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23784 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23785 (tty_set_scroll_region, tty_background_highlight)
23786 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23787 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23788 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23789 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23790 Add static modifier.
23791 (tty_reset_terminal_modes, tty_set_terminal_window)
23792 (tty_set_scroll_region, tty_background_highlight)
23793 (tty_highlight_if_desired, tty_cursor_to)
23794 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23795 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23796 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23799 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23801 * keyboard.c: Qrtl is new.
23802 (parse_tool_bar_item): Handle :rtl keyword.
23803 (syms_of_keyboard): Intern :rtl keyword.
23805 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23807 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23808 so no Lisp code is executed.
23809 (file_for_image, find_rtl_image): New functions.
23810 (xg_get_image_for_pixmap): Use file_for_image.
23811 (update_frame_tool_bar): If direction is RTL, use RTL image if
23812 defined. Use Gtk stock images if defined.
23814 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23816 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23817 for nonexistent or zero-width glyph in composition glyph.
23819 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23821 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23823 * xdisp.c (Finvisible_p): New function.
23824 (syms_of_xdisp): defsubr it.
23826 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
23828 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23831 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23833 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23835 2007-08-24 Martin Rudalics <rudalics@gmx.at>
23837 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23838 whether decoding has modified buffer contents.
23840 2007-08-24 Jason Rumney <jasonr@gnu.org>
23842 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23843 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23844 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23845 (init_svg_functions) [HAVE_NTGUI]: New function.
23846 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23847 (svg_load_image): Use them.
23848 (svg_load_image) [HAVE_NTGUI]: Implement background.
23850 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23852 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23853 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23854 (LIBX): Remove @RSVG_LIBS@.
23855 (LIBES): Add $(RSVG_LIBS).
23857 * image.c (svg_load_image): Blend with specified background if exists.
23858 Use IMAGE_BACKGROUND. Add Mac OS Support.
23860 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23861 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23863 [MAC_OSX] (socket_callback): Do nothing.
23864 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23866 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23868 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23870 2007-08-22 Glenn Morris <rgm@gnu.org>
23872 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23874 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23876 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23878 * image.c: Add support for SVG images. Some additional comments
23879 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23880 (svg_image_p): New function to test for SVG image.
23881 (svg_load): New function to load SVG image.
23882 (svg_load_image): New function, helper for svg_load.
23883 (Qsvg): New Lisp_object.
23884 (svg_keyword_index): New enum.
23885 (svg_format): New static `image_keyword' struct.
23886 (svg_type): New static `image_type' struct.
23887 (librsvg/rsvg.h): Include it.
23889 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23891 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23893 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23895 * lread.c (Qold_style_backquotes): New var.
23896 (syms_of_lread): Init and staticpro it.
23897 (load_warn_old_style_backquotes): New fun.
23898 (Fload): Use them to warn about old style backquotes.
23899 (end_of_file_error, Fload): Remove unused vars.
23901 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23903 * lread.c (Vold_style_backquotes): New var.
23904 (syms_of_lread): Init and export it to Elisp.
23905 (read1): Set it when we find an old-style (back)quote.
23907 2007-08-22 Jason Rumney <jasonr@gnu.org>
23909 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23911 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23913 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23915 2007-08-19 Richard Stallman <rms@gnu.org>
23917 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23919 2007-08-19 Andreas Schwab <schwab@suse.de>
23921 * alloc.c (pure): Round PURESIZE up.
23923 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23925 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23928 2007-08-16 Richard Stallman <rms@gnu.org>
23930 * eval.c (Fcommandp): Add parens to clarify.
23932 * minibuf.c (Fall_completions): Use enum for type of table.
23934 * emacs.c (USAGE2): Improve text.
23936 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23938 * term.c (tty_default_color_capabilities): Declare static
23939 variables in file scope, to avoid HPUX compiler problem.
23941 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23943 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23944 to gtk_toolbar_insert.
23946 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23948 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23950 * insdel.c (reset_var_on_error): New fun.
23951 (signal_before_change, signal_after_change):
23952 Use it to reset (after|before)-change-functions to nil in case of error.
23953 Bind inhibit-modification-hooks to t.
23954 Don't bind (after|before)-change-functions to nil while they run.
23956 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23958 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23959 filling pixmap with stippled background.
23961 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23963 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23964 Don't use invisible frame as parent window for repositioning.
23966 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23968 * print.c (new_backquote_output): Rename from old_backquote_output.
23969 (print): Inverse its logic (according to its name) so as to match the
23970 behavior of new_backquote_flag in lread.c.
23972 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23974 * gmalloc.c (posix_memalign): New function.
23976 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23977 ActivateControl/DeactivateControl here.
23978 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23979 frame-notice-user-settings is non-nil.
23980 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23981 for kEventParamFMFontStyle.
23982 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23983 mac_pass_command_to_system and mac_pass_control_to_system here.
23984 (XTread_socket): Call ActivateControl/DeactivateControl here.
23985 (XTread_socket) [TARGET_API_MAC_CARBON]:
23986 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23987 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23988 for window repositioning.
23990 2007-08-08 Glenn Morris <rgm@gnu.org>
23992 * Replace `iff' in doc-strings and comments.
23994 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
23996 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23998 2007-08-07 Martin Rudalics <rudalics@gmx.at>
24000 * fileio.c (Finsert_file_contents): Run format-decode and
24001 after_insert_file_functions on entire buffer when REPLACE is
24002 non-nil and inhibit modification_hooks and point_motion_hooks.
24003 For consistency, run after_insert_file_functions iff something
24004 got inserted. Move signal_after_change and update_compositions
24005 after code running after_insert_file_functions. Make sure that
24006 undo_list doesn't record intermediate steps of the decoding process.
24008 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24011 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24012 Call malloc_enable_thread on interactive startup.
24014 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24015 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24016 [USE_PTHREAD]: Conditionalize with it.
24017 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24018 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24021 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
24023 * xdisp.c (redisplay_window): When restoring original buffer
24024 position, make sure it is still valid.
24026 * image.c (png_load): Ignore png-supplied background color.
24028 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24030 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24031 Use kCFAbsoluteTimeIntervalSince1970.
24033 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24035 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24036 event loop should be quit.
24037 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24038 Quit dialog event loop if quit_dialog_event_loop is set.
24040 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24041 (Selection): New typedef. Use instead of ScrapRef.
24042 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24043 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24044 (mac_clear_selection): Rename from clear_scrap.
24045 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24046 scrap_has_target_type. All uses changed.
24047 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24048 (mac_selection_has_target_p): New functions.
24049 (mac_put_selection_value): Rename from put_scrap_string.
24050 (mac_get_selection_value): Rename from get_scrap_string.
24051 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24052 (put_scrap_private_timestamp, scrap_has_target_type)
24053 (get_scrap_private_timestamp): Remove functions.
24054 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24055 (x_own_selection, x_get_local_selection):
24056 Use mac_valid_selection_value_p.
24057 (x_own_selection): Don't use put_scrap_private_timestamp.
24058 Record OWNERSHIP-INFO into Vselection_alist instead.
24059 (x_get_local_selection): Don't check type if request is local.
24060 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24061 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24063 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24065 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24066 add comment explaining why.
24068 2007-08-03 Richard Stallman <rms@gnu.org>
24070 * fileio.c (Fvisited_file_modtime): Use make_time.
24072 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24074 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24077 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24079 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24081 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24083 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24085 2007-07-30 Richard Stallman <rms@gnu.org>
24087 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24089 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24091 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24093 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
24095 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24096 remote default-directory.
24098 * buffer.c (mode-line-format): Update doc string.
24100 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24102 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24104 (x_scroll_bar_create): Set bar->fringe_extended_p.
24105 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24106 on frame edge. Check fringe background extension. Don't clear
24107 extended fringe background area.
24109 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24110 (w32_fill_area): Enclose multiple statements with do ... while (0).
24112 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24113 Extend fringe background to scroll bar gap.
24114 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24115 Set bar->fringe_extended_p.
24116 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24117 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24118 background extension. Don't clear extended fringe background area.
24120 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24121 New member fringe_extended_p.
24123 2007-07-25 Glenn Morris <rgm@gnu.org>
24125 * Relicense all FSF files to GPLv3 or later.
24127 * COPYING: Switch to GPLv3.
24129 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24131 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24133 * data.c (Finteractive_form): Check for the presence of an
24134 `interactive-form' symbol property more thoroughly.
24136 * data.c (Finteractive_form): Use an `interactive-form' property if
24137 present, analogous to the function-documentation property.
24139 2007-07-24 Jason Rumney <jasonr@gnu.org>
24141 * w32fns.c (x_real_positions): Get real position from OS instead of
24144 2007-07-23 Jason Rumney <jasonr@gnu.org>
24146 * filelock.c (current_lock_owner): Allow for @ sign in username.
24148 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
24150 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24151 remote default-directory.
24153 * buffer.c (mode-line-format): Describe above case in doc string.
24155 2007-07-20 Eli Zaretskii <eliz@gnu.org>
24157 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24158 Define if not defined.
24160 2007-07-18 Jason Rumney <jasonr@gnu.org>
24162 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24164 2007-07-18 Richard Stallman <rms@gnu.org>
24166 * data.c (Fsetq_default): Doc fix.
24168 * eval.c (Fsetq): Doc fix.
24170 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
24172 * coding.c (Ffind_operation_coding_system):
24173 * eval.c (For, Fand): Doc fixes.
24174 Reported by Johan Bockgård.
24176 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24178 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24180 * xterm.h: Declare x_ewmh_activate_frame.
24182 * xterm.c (x_ewmh_activate_frame): New function.
24183 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24185 2007-07-17 Martin Rudalics <rudalics@gmx.at>
24187 * window.c (Fdisplay_buffer): If largest or LRU window is the
24188 only window, split it even if it is not eligible for splitting.
24189 This restores the original behavior broken by the 2007-07-15
24192 2007-07-17 Glenn Morris <rgm@gnu.org>
24194 * abbrev.c (abbrev_check_chars): New function.
24195 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24196 Call abbrev_check_chars to check abbrev characters are word
24197 constituents. Doc fix.
24199 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24201 * process.c (Fstart_process, Fmake_network_process)
24202 (read_process_output): Fix up last changes.
24204 2007-07-16 Eli Zaretskii <eliz@gnu.org>
24206 * makefile.w32-in (clean): Don't delete *~.
24208 2007-07-16 Andreas Schwab <schwab@suse.de>
24210 * window.c (Fdisplay_buffer): Use NILP.
24211 (Fset_window_scroll_bars): Likewise.
24213 2007-07-15 Martin Rudalics <rudalics@gmx.at>
24215 * window.c (window_min_size_2): New function.
24216 (window_min_size_1, size_window, Fdisplay_buffer)
24217 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24218 windows without mode- or header-lines when window-min-height is
24220 (size_window): Reset nodelete_p after testing it, following an
24221 earlier note by Kim F. Storm.
24222 (display_buffer): Do not set split_height_threshold to twice the
24223 value of window_min_height to avoid changing the value of a
24224 customizable variable. Rather explicitly check whether the
24225 height of the window that shall be splitted is at least as large
24226 as split_height_threshold.
24227 (Fwindow_full_width_p): New defun.
24228 (syms_of_window): Defsubr it.
24230 * window.h: Add EXFUN for Fwindow_full_width_p.
24232 2007-07-14 Jason Rumney <jasonr@gnu.org>
24234 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24236 2007-07-14 Richard Stallman <rms@gnu.org>
24238 * eval.c (maybe_call_debugger): New function.
24239 (find_handler_clause): Use maybe_call_debugger.
24240 Call it when the handler says `debug'.
24241 Eliminate DEBUGGER_VALUE_PTR.
24242 (Fsignal): Eliminate debugger_value.
24243 (Qdebug): New variable.
24244 (syms_of_eval): Initialize it.
24246 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
24249 * keyboard.c (Ftrack_mouse):
24250 * print.c (Fwith_output_to_temp_buffer):
24251 * window.c (Fsave_window_excursion): Doc fix.
24253 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24255 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24257 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24259 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24260 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24261 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24262 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24263 Remove unused encoding_carryover.
24264 * process.c: Adjust all functions accordingly.
24266 2007-07-12 Richard Stallman <rms@gnu.org>
24268 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24270 2007-07-11 Jason Rumney <jasonr@gnu.org>
24272 * makefile.w32-in (LIBS): Include OLE32.
24274 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24275 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24277 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24279 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24280 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24281 from a Lisp_Object into a bare pointer.
24282 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24283 Adjust the code correspondingly.
24285 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24287 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24288 (term_show_mouse_face): Remove unused var `j'.
24289 (handle_one_term_event): Remove unused vars `i' and `j'.
24290 Don't cast return value of ttyname since it's not necessary.
24292 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24294 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24295 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24297 * fns.c (map_char_table): Use an array of int for `indices' rather than
24298 an array of Lisp_Objects (which are only ever integers anyway).
24299 (Fmap_char_table): Update caller.
24300 * lisp.h: Update prototype.
24301 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24302 * fontset.c (Ffontset_info):
24303 * casetab.c (set_case_table): Update callers.
24305 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24307 * keymap.c (struct accessible_keymaps_data)
24308 (struct where_is_internal_data): New structures.
24309 (accessible_keymaps_1, where_is_internal_1): Use them to change
24310 interface to adhere to the one used by map_keymap.
24311 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24312 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24314 * keymap.h (map_keymap_function_t): More informative prototype.
24316 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24318 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24319 (looking_at_1): Don't change search_regs and last_thing_searched
24320 if `inhibit-changing-match-data' is non-nil.
24321 (string_match_1, search_buffer, set_search_regs): Likewise.
24322 (syms_of_search): Add Lisp level definition for
24323 `inhibit-changing-match-data' and set it to nil.
24324 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24325 start and end of the match, instead of using values in search_regs.
24327 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24329 * minibuf.c (Fcompleting_read): New value `confirm-only'
24330 for `require-match'.
24332 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24334 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24335 part of the 2007-06-27 change to syms_of_fileio.
24337 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24339 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24340 Check WINDOWP before using XWINDOW. Consolidate return statements.
24342 2007-06-27 Richard Stallman <rms@gnu.org>
24344 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24346 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
24348 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24350 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24352 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24353 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24354 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24355 (_free_internal, memalign): Use them.
24356 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24357 Initialize to PTHREAD_MUTEX_INITIALIZER.
24358 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24359 (morecore_nolock): Rename from morecore. All uses changed.
24360 Use only nolock versions of internal allocation functions.
24361 (_malloc_internal_nolock, _realloc_internal_nolock)
24362 (_free_internal_nolock): New functions created from
24363 _malloc_internal, _realloc_internal, and _free_internal.
24364 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24365 Copy hook value to automatic variable before its use.
24366 (memalign): Copy hook value to automatic variable before its use.
24368 2007-06-26 Kenichi Handa <handa@m17n.org>
24370 * coding.c (Ffind_operation_coding_system): Docstring improved.
24371 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24373 2007-06-25 David Kastrup <dak@gnu.org>
24375 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24376 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24377 cater for additional parameter.
24379 * keymap.h: Adjust number of parameters to `current-active-maps'.
24381 * doc.c (Fsubstitute_command_keys): Adjust call of
24382 `current-active-maps'.
24384 2007-06-25 David Kastrup <dak@gnu.org>
24386 * callint.c (Fcall_interactively): Make the parsing of interactive
24387 specs somewhat more readable.
24389 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24391 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24392 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24393 if extended background has already been filled.
24395 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24397 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24398 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24400 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24401 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24402 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24403 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24404 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24405 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24406 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24407 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24408 Run timers during dialog popup.
24409 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24411 2007-06-21 Jason Rumney <jasonr@gnu.org>
24413 * image.c (convert_mono_to_color_image): Swap fore and background.
24415 2007-06-20 Jason Rumney <jasonr@gnu.org>
24417 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24418 (w32_free_bdf_font): Unmap memory not handle.
24420 2007-06-20 Sam Steingold <sds@gnu.org>
24422 * gmalloc.c (__morecore): Fix the declaration to comply with the
24425 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
24427 * w32term.c (w32_delete_display): Remove leftover declaration.
24428 (w32_define_cursor, w32_initialize): Make static.
24430 * w32.c (_wsa_errlist): Fix typo in error message.
24431 (init_environment): Ignore any environment variable from the
24432 registry having a null value.
24434 2007-06-20 Glenn Morris <rgm@gnu.org>
24436 * Makefile.in (LIBGIF): Default to -lgif.
24438 2007-06-17 Jason Rumney <jasonr@gnu.org>
24440 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24443 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
24445 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24446 Fix typo in docstring.
24448 2007-06-16 Eli Zaretskii <eliz@gnu.org>
24450 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24451 and their keybindings.
24453 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
24455 * composite.c (update_compositions): Fix last fix.
24457 2007-06-14 Jason Rumney <jasonr@gnu.org>
24459 * w32.c (get_process_times_fn): New function pointer.
24460 (globals_of_w32): Intialize it if present in kernel32.dll.
24461 (w32_get_internal_run_time): New function.
24463 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24465 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24467 * composite.c (update_compositions): Check the validness of
24470 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24472 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24473 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24475 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24476 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24478 * macgui.h (USE_MAC_TOOLBAR): New define.
24480 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24481 Return immediately unless popup is activated.
24483 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24484 background to scroll bar gap.
24485 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24486 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24487 scroll bars on frame edge. Check fringe background extension.
24488 Don't clear extended fringe background area.
24489 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24490 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24491 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24492 [USE_MAC_TOOLBAR]: New macros.
24493 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24494 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24495 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24496 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24497 [USE_MAC_TOOLBAR]: New functions.
24498 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24499 manually if previous repositioning has failed.
24500 (mac_handle_keyboard_event): Use precomputed event kind.
24501 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24502 as tool bar item click. Handle mouse movement over tool bar items.
24504 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24505 toolbar_win_gravity.
24506 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24507 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24510 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24511 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24513 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
24515 * image.c (search_image_cache): Remove unused variable.
24517 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
24519 * xfns.c, xmenu.c: Link to xaw3d if available.
24521 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24523 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24524 frame_foreground and frame_background.
24526 * image.c (lookup_image): Save frame foreground and background colors.
24527 (search_image_cache): Check if saved and current frame colors match.
24529 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24531 * regex.c (regex_compile): Remove the `regnum' counter.
24532 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24534 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24536 * term.c: Include intervals.h to declare Fget_text_property.
24538 2007-06-10 Jason Rumney <jasonr@gnu.org>
24540 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24542 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
24544 * callint.c (Fcall_interactively):
24545 * editfns.c (Fdelete_and_extract_region):
24546 * fileio.c (Fread_file_name):
24547 * fns.c (Fmapconcat):
24548 * keyboard.c (cmd_error_internal):
24549 * keymap.c (Fkey_description):
24551 * minibuf.c (read_minibuf):
24552 * search.c (wordify):
24553 * sunfns.c (sel_read):
24554 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24555 * xfns.c (x_default_scroll_bar_color_parameter):
24556 * xmenu.c (menu_help_callback):
24557 * xselect.c (Fx_get_atom_name):
24558 * xterm.c (x_term_init): Use empty_unibyte_string.
24560 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24562 * alloc.c (init_strings): Initialize canonical empty strings.
24563 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24564 canonical empty string when the requested size is 0.
24566 * emacs.c (empty_unibyte_string): Rename from empty_string.
24567 (empty_multibyte_string): New canonical empty string.
24568 (syms_of_emacs): Don't initialize empty_string.
24570 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24571 string, if appropriate.
24572 (empty_unibyte_string, empty_multibyte_string): New externs.
24573 (empty_string): Remove extern.
24575 * lread.c (syms_of_lread): Use empty_unibyte_string.
24577 2007-06-07 Jason Rumney <jasonr@gnu.org>
24579 * s/ms-w32.h: Don't define HAVE_TZNAME.
24581 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24583 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24585 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24587 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24588 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24590 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24591 Don't call next handler.
24592 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24593 Remove argument. Install handler to application.
24594 (set_frame_menubar): Don't change deep_p.
24595 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24596 FRAME_OUTER_TO_INNER_DIFF_Y.
24597 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24598 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24599 [HAVE_DIALOGS]: New macros.
24600 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24602 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24604 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24605 init_service_handler. All callers changed. Return OSStatus value.
24607 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24608 All callers changed so as not to call SetPortWindowPort.
24609 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24610 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24611 mac_draw_string_common.
24612 (mac_draw_image_string_qd): Likewise.
24613 (mac_draw_string_common): Use them. Add INLINE.
24614 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24615 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24617 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24618 and FRAME_OUTER_TO_INNER_DIFF_Y.
24619 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24620 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24621 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24622 repositioning window to mac_handle_window_event.
24623 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24624 saving window location to mac_handle_window_event
24625 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24626 (install_menu_target_item_handler): Remove argument in extern.
24627 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24628 Also accept command events.
24629 (do_keystroke): New function created from XTread_socket.
24630 (init_command_handler): Remove functions.
24631 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24632 and save window location by kEventWindowShowing and kEventWindowHiding
24633 handlers here. Don't call next handler for window state change and
24635 (mac_handle_application_event, mac_handle_keyboard_event)
24636 [TARGET_API_MAC_CARBON]: New functions.
24637 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24638 kEventWindowShowing and kEventWindowHiding events. Move installation
24639 of mouse, font, text input and menu target item handlers to
24640 install_application_handler.
24641 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24642 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24644 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24646 (XTread_socket) [TARGET_API_MAC_CARBON]:
24647 Consolidate SendEventToEventTarget calls.
24648 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24649 Move application activation handler to mac_handle_application_event.
24650 Move keyboard handler to mac_handle_keyboard_event.
24651 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24652 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24653 init_command_handler. Call install_application_handler.
24655 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24656 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24658 2007-06-07 Glenn Morris <rgm@gnu.org>
24660 * emacs.c (main): Use `emacs-copyright' in --version output.
24662 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
24664 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24666 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24668 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24670 * macgui.h: Replace WindowPtr with WindowRef.
24672 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24673 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24674 Replace ControlHandle with ControlRef.
24675 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24677 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24678 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24679 Replace ControlHandle with ControlRef.
24680 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24681 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24683 * macterm.h (struct scroll_bar): Rename member control_handle_low
24684 and control_handle_high to control_ref_low and control_ref_high.
24686 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24687 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24688 respectively. All uses changed.
24689 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24690 (install_window_handler, remove_window_handler): Replace WindowPtr
24691 with WindowRef in externs.
24693 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
24695 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24697 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
24699 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24701 * frame.c (Fmouse_position, Fmouse_pixel_position):
24702 Condition on HAVE_GPM too.
24704 * term.c (term_mouse_highlight): Remove unused variables.
24705 (Fterm_open_connection): Set gpm_zerobased to 1.
24706 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24707 Use zero based co-ordinates.
24708 (handle_one_term_event): Report a drag as mouse movement too.
24710 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24712 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
24714 * image.c (search_image_cache): New function. Require background
24715 color match if background color is unspecified in the image spec.
24716 (uncache_image, lookup_image): Use it.
24718 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
24720 * window.c (Fshrink_window): Reflow docstring.
24722 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
24724 * Version 22.1 released.
24726 2007-06-01 Richard Stallman <rms@gnu.org>
24728 * xfns.c (x_encode_text): Add GCPRO.
24730 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24732 * xfns.c (x_set_name_internal): Save encoded name before
24733 x_encode_text in case string data is relocated.
24735 2007-05-31 Richard Stallman <rms@gnu.org>
24737 * buffer.c (syms_of_buffer): Doc fix.
24739 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
24741 * sysdep.c (init_sys_modes): Add rather than replace with
24744 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24747 * termhooks.h (term_mouse_moveto): New extern.
24749 * term.c (mouse_face_window): Rename...
24750 (Qmouse_face_window): ...to this.
24751 (term_show_mouse_face, term_clear_mouse_face)
24752 (term_mouse_highlight): Use Qmouse_face_window.
24753 (term_mouse_moveto): New function.
24754 (term_mouse_position): Make it work.
24755 (syms_of_term): Uncomment assignment to mouse_position_hook.
24756 Staticpro Qmouse_face_window.
24758 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24760 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24761 around current_column call.
24763 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24765 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24766 * xdisp.c (next_element_from_buffer):
24767 * window.c (delete_window):
24768 * term.c (term_mouse_highlight):
24769 * msdos.c (getdefdir):
24770 * macterm.c (mac_create_bitmap_from_bitmap_data)
24771 (init_font_name_table):
24773 * data.c (Fmake_local_variable):
24774 * ccl.c (ccl_driver): Likewise.
24776 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24778 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24779 Call mac_wakeup_from_rne on window size change.
24781 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
24783 * image.c (uncache_image): Fix typo.
24785 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24787 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24789 2007-05-22 Richard Stallman <rms@gnu.org>
24791 * xterm.c (x_connection_closed): Remove NO_RETURN.
24793 2007-05-22 Martin Rudalics <rudalics@gmx.at>
24795 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24797 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
24799 * image.c (uncache_image): New function.
24800 (Fimage_refresh): New function.
24802 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24804 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24806 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24808 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24809 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24811 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24813 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24814 conditional on [HAVE_GPM_H].
24816 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24818 * syntax.c (skip_chars): Update syntax-table only after we checked that
24819 the new location is valid.
24821 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24823 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24824 mac_get_window_bounds.
24826 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24828 * Makefile.in (LIBGPM): Allow it to be set from configure.
24829 If set then link Emacs with it.
24831 * config.in: Regenerate.
24833 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24836 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24838 (handle_one_term_event, term_gpm): New externs.
24840 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24841 and allow it to be interrupted by SIGIO.
24843 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24844 (wait_reading_process_output): Wait on gpm_fd too.
24845 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24846 (add_gpm_wait_descriptor_called_flag): New variable.
24847 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24849 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24850 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24851 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24852 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24853 (make_lispy_event): Add case GPM_CLICK_EVENT.
24854 (read_avail_input): Handle mouse input.
24856 * term.c (write_glyphs_with_face): New function.
24857 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24858 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24859 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24860 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24861 (last_mouse_x, last_mouse_y): New variables.
24862 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24863 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24864 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24865 (Fterm_close_connection): New functions.
24866 (term_init): Initialise mouse_face_window.
24868 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
24870 * xdisp.c (redisplay_window): If first window line is a
24871 continuation line, recompute the new window start instead of
24874 2007-05-18 Glenn Morris <rgm@gnu.org>
24876 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24877 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24879 2007-05-17 Glenn Morris <rgm@gnu.org>
24881 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24883 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24885 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24886 dead key repeat and up events.
24888 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
24890 * image.c (pbm_load): Check image size for monochrome pbm.
24892 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
24894 * xterm.c (XTread_socket): Revert last change.
24896 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
24898 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24900 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24902 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24904 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24907 2007-05-07 Andreas Schwab <schwab@suse.de>
24909 * keymap.c (Flookup_key): Fix typo in last change.
24911 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24913 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24914 mapping for unibyte strings.
24916 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24918 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24919 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24921 2007-04-29 Richard Stallman <rms@gnu.org>
24923 * insdel.c (replace_range): For undo, record insertion first.
24925 2007-04-29 Andreas Schwab <schwab@suse.de>
24927 * lisp.h (VECSIZE): Use OFFSETOF.
24929 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24931 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24934 2007-04-28 Richard Stallman <rms@gnu.org>
24936 * lread.c (read_escape): In a string, \s is always space.
24938 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24940 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24942 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24943 submenu for menu bar items.
24945 See ChangeLog.10 for earlier changes.
24947 ;; Local Variables:
24949 ;; add-log-time-zone-rule: t
24952 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
24954 This file is part of GNU Emacs.
24956 GNU Emacs is free software: you can redistribute it and/or modify
24957 it under the terms of the GNU General Public License as published by
24958 the Free Software Foundation, either version 3 of the License, or
24959 (at your option) any later version.
24961 GNU Emacs is distributed in the hope that it will be useful,
24962 but WITHOUT ANY WARRANTY; without even the implied warranty of
24963 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24964 GNU General Public License for more details.
24966 You should have received a copy of the GNU General Public License
24967 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24969 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40