1 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
3 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4 (font_parse_name): font_open_by_name):
5 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6 (font_parse_name): font_open_by_name): Remove const.
8 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
10 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
13 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
14 * m/amdx86-64.h: Likewise.
16 * m/hp800.h: Likewise.
18 * m/ibmrs6000.h: Likewise.
19 * m/ibms390.h: Likewise.
20 * m/intel386.h: Likewise.
21 * m/iris4d.h: Likewise.
23 * m/macppc.h: Likewise.
26 * m/sparc.h: Likewise.
27 * m/template.h: Likewise.
29 * m/xtensa.h: Likewise.
30 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
34 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
36 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
38 Use const char* instead of char*.
39 Reduce the number of warnings with -Wwrite-strings.
40 * xrdb.c (get_environ_db, get_system_name):
41 * unexelf.c (find_section):
42 * term.c (string_cost, string_cost_one_line, per_line_cost)
43 (get_named_tty, init_tty):
44 * sysdep.c (sys_subshell):
45 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
46 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
47 * search.c (Freplace_match):
48 * process.c (Fmake_network_process, send_process, init_process):
49 * lread.c (Fload, init_lread):
50 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
51 * keyboard.c (parse_tool_bar_item, struct event_head):
52 * gtkutil.h (xg_get_font_name):
53 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
54 (make_widget_for_menu_item, make_menu_item, create_menus)
56 * font.c (parse_matrix, font_parse_name):
57 * floatfns.c (rounding_driver, float_error_fn_name):
58 * filelock.c (get_boot_time_1, lock_file_1):
59 * fileio.c (barf_or_query_if_file_exists, check_writable):
60 * editfns.c (get_system_name, get_operating_system_release)
61 (Fencode_time, Fset_time_zone_rule):
62 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
63 * buffer.c (defvar_per_buffer): Use const.
65 2010-08-08 Kenichi Handa <handa@m17n.org>
67 * charset.c: Include <stdlib.h>
68 (struct charset_sort_data): New struct.
69 (charset_compare): New function.
70 (Fsort_charsets): New funciton.
71 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
73 * coding.c (decode_coding_iso_2022): Fix checking of dimension
74 number in CTEXT extended segment.
76 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
78 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
79 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
81 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
83 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
84 (Fhash_table_size): Fix typos in docstrings.
85 (Fmake_hash_table): Doc fix.
87 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
89 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
92 2010-08-08 Ken Brown <kbrown@cornell.edu>
94 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
97 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
99 Use const char* instead of char*.
100 * xterm.c (x_create_toolkit_scroll_bar):
101 * xfont.c (xfont_list_pattern):
102 * xfns.c (x_default_scroll_bar_color_parameter)
103 (xic_create_fontsetname, x_default_font_parameter)
105 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
106 (store_mode_line_string, decode_mode_spec, display_string):
107 * menu.c (digest_single_submenu):
108 * keymap.h (initial_define_key, initial_define_lispy_key):
109 * keymap.c (initial_define_key, initial_define_lispy_key):
110 * image.c (image_error, image_keyword):
111 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
112 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
113 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
114 (ftfont_list, ftfont_match):
115 * frame.c (frame_parm_table):
116 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
117 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
118 (font_add_log, font_deferred_log):
119 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
120 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
121 (font_add_log, font_deferred_log):
122 * emacs.c (argmatch):
123 * dispextern.h (struct it):
124 * coding.c (ENCODE_DESIGNATION):
125 * charset.c (define_charset_internal): Use const.
127 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
129 * xrdb.c: Remove include guard. Remove
130 DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
131 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
132 realloc->xrealloc instead of using #defines.
134 2010-08-08 Eli Zaretskii <eliz@gnu.org>
136 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
137 * editfns.c (Fline_beginning_position, Fline_end_position): State
138 in the doc strings that start and end of line are in the logical
141 * xdisp.c (display_line): Move the handling of overlay arrow after
142 the call to find_row_edges. (Bug#6699)
144 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
146 * keyboard.c (command_loop_1):
147 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
149 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
151 * insdel.c (prepare_to_modify_buffer): Save active region text to
152 Vsaved_region_selection.
154 * xselect.c (QPRIMARY): Move to keyboard.c.
156 * keyboard.c (Vselect_active_regions): Move from simple.el.
157 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
158 (command_loop_1): Set window selection prior to deactivating the mark.
160 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
162 * alloc.c (lisp_malloc):
163 * buffer.c (set_buffer_internal, set_buffer_internal_1):
164 * charset.h (emacs_mule_charset):
165 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
166 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
168 * lisp.h (Fcheck_coding_system, Fget_text_property)
169 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
170 Remove duplicate declarations.
172 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
174 * process.c: Simplify include logic.
176 * keyboard.h (quit_char): Add declaration.
177 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
178 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
181 * w32.c: Remove the above declarations.
183 Remove extern declarations in .c files, .h files have them.
190 * eval.c: Remove declarations.
192 * frame.c (frame_params): Make const.
194 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
196 * emacs.c (emacs_copyright, emacs_version): Make static.
197 (Vinitial_window_system, Vauto_save_list_file_name)
198 (Vinhibit_redisplay): Remove declarations.
199 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
202 Use const for some arrays and functions.
203 * xterm.h (xg_set_icon_from_xpm_data):
204 * xfns.c (xg_set_icon_from_xpm_data):
206 * keyboard.c (lispy_accent_keys, lispy_function_keys)
207 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
208 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
209 (frame.c frame_parms):
210 * emacs-icon.h (gnu_xpm_bits):
211 * callint.c (callint_argfuns): Use const.
213 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
215 * sysdep.c: Move include term.h last of includes (Bug#6812).
217 2010-08-06 Eli Zaretskii <eliz@gnu.org>
219 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
221 * msdos.c (IT_display_cursor): Log cursor position on termscript.
223 * .gdbinit (pgx): Display the avoid_cursor_p flag.
225 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
227 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
229 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
231 * xterm.h (x_get_focus_frame): Declare.
233 * keyboard.h (poll_for_input_1): Unconditionally declare.
235 * nsterm.h (x_set_menu_bar_lines): Declare.
237 * window.c: Don't include menu.h, it depends on lots of other .h-files.
239 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
241 * window.c: Include menu.h.
243 * unexmacosx.c (print_region_list, print_regions)
244 (build_region_list, find_emacs_zone_regions)
245 (unexec_regions_merge, read_load_commands, dump_it)
246 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
248 * term.c: Check HAVE_SYS_IOCTL_H.
250 * sysdep.c: Check HAVE_TERM_H.
252 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
254 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
255 (ns_ring_bell, ns_defined_color, hide_hourglass)
256 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
257 Convert to ANSI C prototypes.
258 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
261 * nsterm.h : Include sysselect.h.
262 (x_sync, x_get_focus_frame, x_set_mouse_position)
263 (x_set_mouse_pixel_position, x_make_frame_visible)
264 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
265 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
266 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
267 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
270 * nsmenu.m (popup_activated, name_is_separator)
271 (syms_of_nsmenu): Convert to ANSI C prototypes.
272 (runMenuAt): Prototypes and move declarations before code.
274 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
276 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
279 * nsfns.m (have_menus_p, ns_display_info_for_name)
280 (x_set_cursor_type, ns_appkit_version_str)
281 (ns_appkit_version_int, ns_do_applescript)
282 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
283 (syms_of_nsfns): Convert to ANSI C prototypes.
285 * menu.h (x_set_menu_bar_line): Declare.
286 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
288 * lisp.h (fmod_float): Declare.
290 * image.c (xpm_scan, xpm_make_color_table_v)
291 (xpm_put_color_table_v, xpm_get_color_table_v)
292 (xpm_make_color_table_h, xpm_put_color_table_h)
293 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
294 (xpm_load): Convert to ANSI C prototypes.
296 * emacs.c: Include nsterm.h if HAVE_NS.
298 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
300 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
302 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
303 subprocesses, only MSDOS does not define HAVE_SOCKETS.
304 (socket_options): Use const char* for name.
306 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
308 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
310 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
311 Don't declare xmalloc_widget_value and digest_single_submenu.
313 * w32font.c (Qlatin): Remove declaration.
315 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
317 * dired.c (compile_pattern): Restore declaration.
319 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
321 Remove extern declarations in .c files, .h files have them.
348 * xterm.c: Remove declarations.
351 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
352 (main_thread): Move down to remove #ifdef.
353 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
354 Remove conditional definition following unconditional ones.
356 * lisp.h: Remove HAVE_SHM code, unused.
357 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
358 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
359 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
360 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
361 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
362 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
363 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
364 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
365 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
366 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
367 (Qwindow_scroll_functions, Vafter_load_alist)
368 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
369 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
370 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
371 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
372 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
373 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
374 (initial_argv, last_nonmenu_event, load_in_progress)
375 (noninteractive_need_newline, scroll_margin): Add declarations.
377 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
378 declarations, menu.h has them.
379 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
380 (Vinput_method_function, Qinput_method_function)
381 (Qevent_symbol_element_mask, last_event_timestamp):
382 * dispextern.h (Voverflow_newline_into_fringe):
383 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
384 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
385 (syms_of_w32font, syms_of_nsfont):
386 * fontset.h (find_font_encoding, Qlatin):
387 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
388 (Vtool_bar_mode, set_frame_menubar):
389 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
390 * xterm.h (Qx_gtk_map_stock):
391 * keymap.h (meta_prefix_char): Add declarations.
393 * term.c: Remove dead code.
395 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
396 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
397 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
398 which is what was there before BSD_PGRPS was removed.
400 2010-08-05 Eli Zaretskii <eliz@gnu.org>
402 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
404 * unexcoff.c: Renamed from unexec.c.
406 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
408 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
410 2010-08-03 Johan Bockgård <bojohan@gnu.org>
412 * data.c (Flocal_variable_p): Handle variable aliases correctly.
415 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
417 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
418 to TRUE if depth of screen is < 16.
420 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
422 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
423 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
424 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
426 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
428 * xterm.h (USE_GTK_TOOLTIP): New define.
429 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
431 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
432 to Control-D (Bug#6771).
434 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
436 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
437 Wording by Drew Adams <drew.adams@oracle.com>.
439 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
441 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
444 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
445 calling gtk_widget_queue_draw.
446 (x_free_frame_resources): Call xg_free_frame_widgets.
448 * xfns.c (x_gtk_use_system_tooltips): New variable.
449 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
450 new gtkutil tooltip functions to show the tooltip.
451 (Fx_hide_tip): Call xg_hide_tooltip.
452 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
454 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
455 (xg_show_tooltip, xg_hide_tooltip): Declare.
457 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
458 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
460 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
461 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
462 Remove code that is commented out.
464 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
466 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
468 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
470 * xselect.c (x_own_selection): Use list4.
472 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
474 * buffer.c (Qwindow): Do not define, already defined in data.c.
475 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
477 2010-07-29 Chad Brown <yandros@mit.edu>
479 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
480 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
481 * config.in: Undef HAVE_DIRENT_H.
482 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
483 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
485 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
487 Rename s/usg5-4.h -> s/usg5-4-common.h.
488 * s/usg5-4.h: Rename file to ...
489 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
492 * s/irix6-5.h: Update includes accordingly.
494 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
496 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
498 * xterm.h (struct x_output): Add toolbar_top_height,
499 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
500 Remove toolbar_height.
501 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
502 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
503 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
504 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
506 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
508 * xfns.c (x_set_tool_bar_position): New function.
509 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
510 (x_frame_parm_handlers): Add x_set_tool_bar_position.
511 (syms_of_xfns): If USE_GTK, provide move-toolbar.
513 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
514 and FRAME_TOOLBAR_LEFT_WIDTH.
516 * gtkutil.h (xg_change_toolbar_position): Declare.
518 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
519 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
520 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
521 (xg_create_frame_widgets): Create a hobox for placing widgets
522 vertically. Use gtk_box_pack_start.
523 (xg_height_or_width_changed): Renamed from xg_height_changed.
524 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
525 (xg_update_frame_menubar, free_frame_menubar): Change to
526 xg_height_or_width_changed.
527 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
528 size correctly. Remove hardcoded 4, instead use handlebox size -
530 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
531 size correctly. Use handlebox size + toolbar size as additional size.
532 (xg_pack_tool_bar): POS is a new parameter.
533 Set orientation of tool bar based on pos.
534 Only make handlebox_widget if NULL.
535 Check if tool bar goes to vbox or hbox depending on pos.
536 (xg_update_tool_bar_sizes): New function.
537 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
538 height, call xg_update_tool_bar_sizes instead.
539 (free_frame_tool_bar): Remove from hbox or vbox depending on
540 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
541 (xg_change_toolbar_position): New function.
543 * frame.h (struct frame): Add tool_bar_position.
546 * frame.c (Qtool_bar_position): New variable.
547 (make_frame): Set tool_bar_position to Qtop.
548 (frame_parms): Add tool-bar-position.
549 (x_report_frame_params): Store tool_bar_position.
550 (x_set_fringe_width): Reset wm size hint after fringe changes.
552 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
554 Make lisp_time_argument declaration work on all systems.
555 * lisp.h (lisp_time_argument): Move declaration ...
556 * systime.h (lisp_time_argument): ... here
557 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
559 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
561 * vm-limit.c (POINTER): Add typedef for it.
562 (start_of_data): Change return type from POINTER to char *.
564 * frame.h (Qtty_color_mode): Move declaration out of ifdef
567 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
569 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
570 Remove reference to __osf__, unused.
572 * mem-limits.h: Remove duplicated includes.
573 (NULL): Remove definition, unused.
574 (POINTER): Remove definition.
575 (start_of_data): Use char* in prototype, as the function
578 Remove extern declarations from .c files, and them to .h files.
579 * keyboard.h (Qhelp_echo, waiting_for_input)
580 (input_available_clear_time, ignore_mouse_drag_p)
581 (Vdouble_click_time, real_this_command, Vthis_original_command):
582 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
583 (Voverriding_local_map_menu_flag):
584 * lisp.h (Qinteractive_form, use_file_dialog)
585 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
586 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
587 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
588 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
589 (Qfunction, debug_on_next_call, Qfield)
590 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
591 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
592 (Qfile_directory_p, Qinsert_file_contents)
593 (Qcompletion_ignore_case, Qcompletion_ignore_case)
594 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
595 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
596 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
598 (Vtemporary_file_directory,char_ins_del_vector, Qface):
599 * xterm.h (gray_bitmap_width, gray_bitmap_height)
600 (gray_bitmap_bits, xic_create_fontsetname):
601 * coding.h (Vtranslation_table_for_input): Add extern declarations.
603 * xsmfns.c (Vuser_login_name):
604 * xrdb.c (Vdouble_click_time):
605 * xfaces.c (xic_create_fontsetname):
606 * w32select.c (waiting_for_input):
607 * print.c (minibuffer_auto_raise):
608 * msdos.c (Qhelp_echo):
609 * macros.c (real_this_command):
610 * keymap.c (Voverriding_local_map):
611 * xterm.c (poll_for_input_1, gray_bitmap_width)
612 (gray_bitmap_height, gray_bitmap_bits;
613 * xmenu.c ( Voverriding_local_map)
614 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
615 (use_file_dialog, Xt_app_con):
616 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
617 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
618 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
619 (Qtool_bar_lines, ignore_mouse_drag_p):
620 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
621 (Qrear_nonsticky, nconc2):
622 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
623 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
624 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
625 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
626 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
627 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
629 * doc.c (Voverriding_local_map, Qremap):
630 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
631 (Vcompletion_regexp_list):
632 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
633 (Qcompletion_ignore_case):
634 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
635 (Vhistory_length, Vthis_original_command, real_this_command)
636 (Qface, Qminibuffer_prompt, history_delete_duplicates):
637 * image.c (Qrisky_local_variable):
638 * fontset.c (QCname):
639 * fns.c (minibuffer_auto_raise, QCname):
640 * dispnew.c (char_ins_del_cost):
641 * composite.c (font_fill_lglyph_metrics):
642 * cmds.c (Qface, Vtranslation_table_for_input):
643 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
644 * ccl.c (charset_unicode):
645 * callproc.c (Vtemporary_file_directory):
646 * buffer.c (emacs_strerror): Remove extern declarations.
648 * data.c (Qwindow): Make non-static, used from other files too.
649 * frame.c (validate_x_resource_name): Remove shadow definition for i.
651 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
652 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
655 * s/msdos.h (COFF, NO_REMAP):
656 * s/ms-w32.h (NO_REMAP):
657 * s/hpux10-20.h (NO_REMAP):
658 * m/sparc.h (SEGMENT_MASK):
659 * m/m68k.h (NO_REMAP):
660 * m/intel386.h (SEGMENT_MASK):
661 * m/arm.h (NO_REMAP):
663 * m/template.h: Remove references to unused defines.
665 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
667 * xsettings.c (Ftool_bar_get_system_style): Also check for
670 * xdisp.c (Qtext_image_horiz): Define.
671 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
672 to documentation of tool-bar-style.
674 * lisp.h (Qtext_image_horiz): Declare.
676 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
677 style text_image_horiz.
679 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
681 * emacs.c (Fkill_emacs): Remove return statement.
683 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
684 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
685 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
686 local extern declarations.
688 * xmenu.c: Do not included lwlib.h, not needed.
690 * m/iris4d.h (XUINT, XSET): Remove, not needed.
692 * process.c: Move definitions earlier to minimize #ifdefs.
694 * xterm.h (x_get_customization_string, x_load_resources)
695 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
696 (x_check_errors, x_property_data_to_lisp, defined_color)
697 (xic_set_xfontset, x_defined_color): Use const.
699 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
700 (x_text_icon, x_check_errors, x_connection_closed): Use const.
702 * xselect.c (selection_data_to_lisp_data)
703 (x_property_data_to_lisp):
704 * xrdb.c (x_get_string_resource, file_p)
705 (x_get_customization_string, magic_file_p, search_magic_path)
706 (get_system_app, get_user_app, x_load_resources, x_get_resource)
707 (x_get_string_resource): Use const.
709 * xfns.c: Include xlwmenu.h when USE_LUCID.
710 (x_defined_color, xic_set_xfontset): Use const.
711 (Fx_hide_tip): Remove local extern declaration.
713 * xfaces.c (Qmouse_face): Remove declaration.
714 (face_color_gray_p, tty_defined_color, defined_color)
715 (face_color_gray_p, face_color_supported_p): Add const.
717 * xdisp.c (do_mouse_tracking): Remove declaration.
718 (add_to_log): Use const.
720 * minibuf.c (Qmouse_face): Remove declaration.
722 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
724 * keyboard.h (do_mouse_tracking): Add declaration.
726 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
727 (QCdata, QCtype, Qcenter): Remove declarations.
729 * frame.c (x_get_resource_string, x_get_string_resource)
730 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
731 (x_default_parameter): Use const.
733 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
734 (QCheight, QCsize, QCname): Remove declarations.
736 * emacs.c (main): Remove local extern declaration.
738 * editfns.c (region_limit, syms_of_editfns): Remove local extern
741 * dispnew.c: Remove duplicate #include <unistd.h>.
742 (update_window, update_frame_1, init_display): Remove local extern
745 * dispextern.h (add_to_log): Remove declaration.
746 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
747 (x_frame_get_and_record_arg, x_default_parameter): Add const.
749 * dired.c (scmp): Add const.
750 (directory_files_internal): Remove local extern declaration.
752 * data.c (Finteractive_form): Use const.
754 * composite.c (syms_of_composite): Remove local extern declarations.
756 * charset.c (add_to_log): Remove declaration.
758 * character.c (strwidth, parse_str_to_multibyte): Add const.
760 * character.h (strwidth, parse_str_to_multibyte): Likewise.
762 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
764 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
765 (Lisp_Subr): Make doc and intspec constant.
766 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
767 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
768 (QCheight, QCsize, QCname, QCwidth, QCforeground)
769 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
770 (display_arg): Add declarations.
772 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
774 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
776 * window.c (Fwindow_height): Doc fix (bug#6518).
778 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
780 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
782 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
784 * keyboard.c (Ftop_level, Fexit_recursive_edit)
785 (Fabort_recursive_edit): Remove return statements in NO_RETURN
788 * frame.h (Qtty_color_mode): Add declaration.
790 * lisp.h (Ftop_level, Fexit_recursive_edit)
791 (Fabort_recursive_edit): Mark as NO_RETURN.
793 2010-07-26 Kenichi Handa <handa@m17n.org>
795 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
796 number of glyphs gets smaller than the original length. (Bug#6621)
798 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
800 * lread.c (unreadpure, mapatoms_1): Make static.
802 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
804 * terminfo.c (tparam): Fix prototype of tparm.
806 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
808 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
809 find start of text segment.
810 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
813 * callproc.c (set_initial_environment): Avoid unbalanced braces.
815 2010-07-25 Ken Brown <kbrown@cornell.edu>
817 * vm-limit.c (check_memory_limits): Fix previous change;
818 accidentally reverted an earlier change.
820 2010-07-25 Ken Brown <kbrown@cornell.edu>
822 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
823 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
825 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
827 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
828 * dired.c (opendir, readdir): Fix prototypes.
829 * editfns.c (w32_get_internal_run_time): Fix prototypes.
830 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
831 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
832 (telldir): Remove declaration.
833 * ralloc.c (real_morecore, __morecore): Fix prototypes.
834 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
835 * syssignal.h (strsignal): Fix prototype.
836 * term.c (tparam): Fix prototype.
837 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
838 (term_get_fkeys): Set inside "#ifndef DOS_NT".
839 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
841 * w32gui.h (XParseGeometry): Fix prototype.
842 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
843 * w32term.c (my_set_focus): Declare inside #if 0.
844 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
845 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
846 (drain_message_queue, get_next_msg, post_msg, parse_button)
847 (ClipboardSequence_Proc): Fix prototypes.
848 (wait_for_sync): Remove declaration.
850 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
852 * w32fns.c (w32_to_x_color): Remove, unused.
854 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
856 * lisp.h: Remove leftover P_.
858 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
860 * ecrt0.c, unexalpha.c: Remove files, unused.
862 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
864 * cmds.c (internal_self_insert): Make static.
865 * lisp.h (internal_self_insert): Remove declaration.
867 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
869 * alloc.c (free_float):
870 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
871 * frame.c (delete_frame_handler):
872 * ralloc.c (reorder_bloc):
873 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
874 Remove unused static functions.
876 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
877 it is called only from NS code.
879 * w32term.c (my_set_focus): #ifdef away; it is called only from
882 * w32fns.c (x_edge_detection):
883 * xfaces.c (may_use_scalable_font_p):
884 Remove obsolete static declarations.
886 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
888 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
889 (emacs_blocked_realloc, uninterrupt_malloc):
890 * fringe.c (w32_reset_fringes):
891 * image.c (convert_mono_to_color_image, lookup_rgb_color)
892 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
893 * sound.c (be2hs, do_play_sound):
894 * vm-limit.c (get_lim_data, ret_lim_data):
895 * w32term.c (x_free_frame_resources):
896 * xfaces.c (x_create_gc, x_free_gc):
897 Convert definitions to standard C.
899 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
901 * eval.c (Feval, Ffuncall): Use the new names.
903 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
904 (DEFUN): Add braces around the union initialisation and use ## to
905 specify the right union alternative and avoid a cast.
907 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
909 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
911 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
913 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
915 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
917 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
918 is related to the menu bar (Bug#6499).
919 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
921 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
923 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
925 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
927 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
928 i.e. don't put back ButtonRelease (Bug#6608).
930 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
931 instead of Window. Call xg_event_is_for_menubar when
934 * gtkutil.h (xg_event_is_for_menubar): Declare.
936 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
938 2010-07-16 Eli Zaretskii <eliz@gnu.org>
940 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
941 when it's the same as the old foreground. (Bug#6609)
943 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
945 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
946 widget is non-null (Bug#6645).
948 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
950 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
951 Convert old-style definition.
953 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
956 2010-07-15 Eli Zaretskii <eliz@gnu.org>
958 * fringe.c (update_window_fringes): Restore mistakenly reverted
959 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
961 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
963 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
964 (SET_SAVED_KEY_EVENT): Remove (not used).
965 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
966 remove size parameter.
967 (handle_one_xevent): Check popup_activated () for menu for Xt also.
968 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
969 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
971 (x_set_window_size_1): scroll_bar_actual_width is always
972 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
974 * xdisp.c (pending_menu_activation): Remove extern declaration.
975 (prepare_menu_bars): Remove setting of pending_menu_activation.
977 * xmenu.c (pending_menu_activation): Remove.
978 (x_activate_menubar): Set popup_activated_flag for Xt also.
979 Remove setting of pending_menu_activation.
980 (set_frame_menubar): Remove check of pending_menu_activation.
981 Declare menubar_size before code. Correct spelling in comment.
983 2010-07-14 Kenichi Handa <handa@m17n.org>
985 * font.c (font_open_entity): Cancel previous change.
986 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
988 2010-07-13 Eli Zaretskii <eliz@gnu.org>
990 Remove subprocesses #ifdefs.
991 * process.c <inhibit_sentinels>: Move to the common part.
992 (Fwaiting_for_user_input_p): Move to the common part; return nil
993 if async subprocesses aren't supported.
994 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
995 MS-DOS. Remove "#ifdef subprocesses".
996 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
997 (gettimeofday): Remove "#ifdef subprocesses".
998 (wait_without_blocking): Remove function.
999 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1000 Remove "#ifdef subprocesses".
1001 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1003 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1004 wait_for_termination on MS-DOS.
1005 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1006 initialization of inhibit_sentinels.
1007 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1008 subprocesses" conditional.
1009 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1010 wait_for_termination, since `buffer' cannot be an integer when
1011 async subprocesses are not supported
1012 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1013 for ifdefing away the call to Fprocess_status.
1015 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1016 away the entire body of the function.
1018 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1020 Remove subprocesses #ifdefs from term.c.
1021 * process.c (add_keyboard_wait_descriptor)
1022 (delete_keyboard_wait_descriptor): Move to common section, do
1023 nothing when subprocesses is not defined.
1024 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1025 Remove subprocesses #ifdefs.
1027 Convert maybe_fatal to standard C.
1028 * lisp.h (verror): Declare.
1029 * eval.c (verror): New function containing the code from ...
1030 (error): ... this. Call verror.
1031 * term.c (vfatal): New function containing the code from ...
1032 (fatal): ... this. Call vfatal.
1033 (maybe_fatal): Convert to standard C, use variable number of
1034 arguments. Declare as non-return.
1035 (init_tty): Fix maybe_fatal call.
1037 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1039 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1040 (_scroll_bar_note_movement): Convert definitions to standard C.
1041 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1042 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1044 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1046 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1047 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1048 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1049 (xaw_jump_callback, xaw_scroll_callback)
1050 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1051 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1052 definitions to standard C.
1053 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1054 (popup_activate_callback, popup_deactivate_callback)
1055 (menu_highlight_callback, menubar_selection_callback)
1056 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1057 (free_frame_menubar, popup_selection_callback, as)
1058 (create_and_show_popup_menu, dialog_selection_callback)
1059 (create_and_show_dialog):
1060 * xfns.c (hack_wm_protocols, x_window):
1061 * xfaces.c (x_update_menu_appearance):
1062 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1063 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1064 (set_frame_size, update_wm_hints, setup_frame_gcs)
1065 (update_various_frame_slots, update_from_various_frame_slots)
1066 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1067 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1068 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1070 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1072 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
1074 2010-07-12 Eli Zaretskii <eliz@gnu.org>
1076 * process.c (setup_process_coding_systems): Move to the part
1077 shared by non-subprocesses systems, and make its body empty when
1078 subprocesses is not defined.
1079 (close_process_descs): Move to the part shared by non-subprocesses
1081 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1084 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1086 * editfns.c (transpose_markers): Convert old-style definition.
1087 * emacs.c (abort, shut_down_emacs, fixup_locale)
1088 (synchronize_system_time_locale)
1089 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1090 * floatfns.c (extract_float, matherr, init_floatfns)
1091 (syms_of_floatfns): Likewise.
1092 * fns.c (make_hash_table): Likewise.
1093 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1094 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1095 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1096 (ftfont_variation_glyphs): Likewise.
1097 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1098 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1099 * lread.c (read_filtered_event): Likewise.
1100 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1101 * process.c (wait_reading_process_output): Likewise.
1102 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1103 * search.c (search_buffer, boyer_moore): Likewise.
1104 * syntax.c (scan_sexps_forward): Likewise.
1105 * xdisp.c (try_scrolling): Likewise.
1106 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1107 (face_at_string_position): Likewise.
1108 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1109 * xselect.c (x_get_window_property, receive_incremental_selection)
1110 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1112 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1114 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1116 * callproc.c (child_setup): Remove subprocesses conditional.
1117 Remove code dealing with SET_EMACS_PRIORITY, unused.
1119 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
1120 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1122 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1123 (__do_global_dtors, __main): Use void in definition.
1124 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1125 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1126 the only users from ...
1127 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1128 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1129 (HAVE_VOLATILE): Remove, unused.
1131 Convert more function definitions to standard C.
1132 * xdisp.c (window_box_edges, handle_single_display_spec)
1133 (display_string): Convert definition to standard C.
1134 * scroll.c (do_direct_scrolling, scrolling_1):
1135 * dispnew.c (allocate_matrices_for_frame_redisplay)
1136 (mirrored_line_dance):
1137 * coding.c (code_convert_string):
1138 * charset.c (map_charset_chars):
1139 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1140 (Fregister_ccl_program, Fregister_code_conversion_map):
1141 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1142 (head_table): Make static and const.
1144 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1146 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1147 (PROFILING_LDFLAGS): Set from substitution.
1148 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1151 2010-07-12 Kenichi Handa <handa@m17n.org>
1153 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1154 (shortlisp): Likewise.
1156 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1158 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1159 of FONT_ENTITY_INDEX.
1160 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1161 property, get the property value dynamically.
1162 (Ffont_put): Accept font-entity and font-object too.
1163 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1164 return value changed.
1165 (syms_of_font): Adjusted for the above change.
1167 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1169 * blockinput.h: Remove obsolete comment.
1171 * lisp.h: Include <stddef.h>.
1172 (OFFSETOF): Don't define.
1173 (VECSIZE): Use offsetof instead of OFFSETOF.
1174 (PSEUDOVECSIZE): Likewise.
1175 * process.c (conv_sockaddr_to_lisp): Likewise.
1176 * alloc.c: Don't include <stddef.h>.
1177 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1179 * process.c: Remove obsolete comment.
1181 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1183 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1185 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1187 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1189 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1190 * editfns.c (Fuser_full_name, Fformat): Likewise.
1191 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1192 * fileio.c (Ffile_symlink_p): Likewise.
1193 * filelock.c (current_lock_owner): Likewise.
1194 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1195 * fontset.c (fontset_pattern_regexp): Likewise.
1196 * lread.c (read1): Likewise.
1197 * sysdep.c (init_system_name): Likewise.
1198 * xfns.c (select_visual): Likewise.
1199 * s/hpux10-20.h (index, rindex): Don't define.
1200 * s/ms-w32.h (index): Likewise.
1201 * s/usg5-4.h: Likewise.
1203 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1205 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1206 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1207 (egetenv): Likewise.
1208 * doprnt.c (doprnt): Likewise.
1209 * editfns.c (set_time_zone_rule, format2): Likewise.
1210 * emacs.c (decode_env_path): Likewise.
1211 * eval.c (signal_error, error): Likewise.
1212 * insdel.c (replace_range_2): Likewise.
1213 * keyboard.c (cmd_error_internal): Likewise.
1214 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1215 * print.c (write_string, write_string_1, print_error_message):
1217 * vm-limit.c (warn_function, memory_warnings): Likewise.
1218 * xdisp.c (message1, message1_nolog, message_with_string)
1219 (vmessage, message, message_nolog): Likewise.
1220 * emacs.c: Remove duplicate declaration.
1221 * keyboard.h: Likewise.
1222 * lisp.h: Update prototypes.
1224 * eval.c: Fix indentation problem.
1226 * keyboard.c: Include "process.h"
1228 * eval.c: Remove obsolete noinline declaration.
1231 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1233 * doprnt.c (doprnt): Take a va_list argument instead of count and
1235 * eval.c (error): Change to a standard-C variadic function.
1236 * xdisp.c (vmessage): Renamed from message, made static, and
1237 changed to take a va_list argument.
1238 (message): New variadic wrapper.
1239 (message_nolog): Now a variadic function, calling vmessage.
1240 * lisp.h: Include stdarg.h for va_list.
1241 (doprnt, error, message, message_nolog): Decls updated.
1243 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1245 * process.c (syms_of_process) <delete-exited-processes>: Define
1246 even if !subprocesses.
1247 (delete_exited_processes): Ditto.
1249 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1250 (delete_exited_processes): Don't define.
1252 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1254 * frame.c (make_frame): Initialize menu_bar_lines and
1255 tool_bar_lines members.
1256 (make_initial_frame, make_terminal_frame): Initialize
1257 menu_bar_lines using value of menu-bar-mode.
1259 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1261 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1263 * process.c: Reshuffle #include's. Condition some of the global
1264 and static variables on `subprocesses'.
1265 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1266 Leave only one implementation.
1267 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1268 (kill_buffer_processes, Flist_system_processes)
1269 (Fprocess_attributes, init_process, syms_of_process): Unify the
1270 implementations for with subprocesses and without them.
1272 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1274 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1275 correct size for Motif.
1276 (free_frame_menubar): Call x_set_window_size to update frame size.
1278 * xfns.c (x_window): Set borderWidth to 0 for pane and
1279 EmacsFrame. Frame size calculation is wrong otherwise.
1281 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1283 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1284 allows to suppress errors when polling in Emacs' main loop.
1285 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1286 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1287 (Fdbus_method_error_internal, Fdbus_send_signal)
1288 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1289 (Fdbus_register_method): Use it. (Bug#6579)
1291 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1293 * alloc.c: Convert DEFUNs to standard C.
1361 * xsmfns.c: Likewise.
1363 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1365 * process.c (kbd_is_on_hold, hold_keyboard_input)
1366 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1368 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1370 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1371 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1374 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1376 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1379 Clean up include guards.
1380 * tparam.c: Remove include guards for config.h, string.h and code
1381 that assumes #ifndef emacs.
1389 Remove prefix-args.c
1390 * prefix-args.c: Remove file.
1391 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1392 * Makefile.in (temacs${EXEEXT}): Remove references to
1393 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1394 (mostlyclean): Remove reference to prefix-args.
1395 (prefix-args): Remove.
1397 Simplify cstart_of_data, start_of_code and related code.
1398 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1399 (start_of_data): Merge into start_of_data function.
1400 * sysdep.c (start_of_text): Remove. Move simplified versions of
1401 it in the only users: unexaix.c and unexec.c.
1402 (read_input_waiting): Remove local declaration of quit_char.
1403 (start, etext): Remove declarations.
1404 (start_of_data): Merge with the version in mem-limits.h and move
1406 * vm-limit.c (start_of_data): Merged and simplified version of the
1407 code formerly in mem-limits.h and sysdep.c.
1408 * unexec.c (start): New declaration, moved from sysdep.c.
1409 (start_of_text): Simplified version of the code formerly in sysdep.c.
1410 * unexaix.c (start_of_text): Simplified version of the code
1411 formerly in sysdep.c.
1412 * m/alpha.h (HAVE_TEXT_START): Remove.
1413 (TEXT_START): Move ...
1414 * unexalpha.c (TEXT_START): ... here.
1415 * s/hpux10-20.h (TEXT_START): Remove.
1416 * s/darwin.h (TEXT_START):
1417 * m/mips.h (TEXT_START):
1418 * m/macppc.h (HAVE_TEXT_START):
1419 * m/m68k.h (TEXT_START):
1420 * m/iris4d.h (TEXT_START):
1421 * m/intel386.h (TEXT_START):
1422 * m/ibmrs6000.h (TEXT_START):
1423 * m/ia64.h (HAVE_TEXT_START):
1424 * s/msdos.h (TEXT_START): Likewise.
1426 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1428 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1429 (overrun_check_free, xstrdup, allocate_string)
1430 (allocate_string_data, compact_small_strings, Fmake_string)
1431 (make_unibyte_string, make_multibyte_string)
1432 (make_string_from_bytes, make_specified_string, make_float)
1433 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1434 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1435 memcpy, memmove, memset, memcmp.
1436 * atimer.c (start_atimer, set_alarm): Likewise.
1437 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1438 (mmap_realloc, init_buffer_once): Likewise.
1439 * callint.c (Fcall_interactively): Likewise.
1440 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1441 (getenv_internal_1): Likewise.
1442 * casefiddle.c (casify_object): Likewise.
1443 * ccl.c (ccl_driver): Likewise.
1444 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1445 * charset.c (load_charset_map_from_file)
1446 (load_charset_map_from_file, load_charset_map_from_vector)
1447 (Fdefine_charset_internal): Likewise.
1448 * cm.c (Wcm_clear): Likewise.
1449 * coding.c (decode_eol, decode_coding_object)
1450 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1451 * data.c (Faset): Likewise.
1452 * dired.c (directory_files_internal, file_name_completion_stat):
1454 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1455 (clear_glyph_row, copy_row_except_pointers)
1456 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1457 (save_current_matrix, restore_current_matrix)
1458 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1459 (mirror_line_dance, scrolling_window): Likewise.
1460 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1462 * doprnt.c (doprnt): Likewise.
1463 * editfns.c (Fuser_full_name, make_buffer_string_both)
1464 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1465 * emacs.c (sort_args): Likewise.
1466 * eval.c (Fapply, Ffuncall): Likewise.
1467 * fileio.c (Ffile_name_directory, make_temp_name)
1468 (Fexpand_file_name, search_embedded_absfilename)
1469 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1470 (auto_save_error): Likewise.
1471 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1472 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1473 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1474 (Fmake_hash_table): Likewise.
1475 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1476 * ftfont.c (ftfont_text_extents): Likewise.
1477 * getloadavg.c (getloadavg): Likewise.
1478 * image.c (define_image_type, make_image, make_image_cache)
1479 (x_create_x_image_and_pixmap, xbm_image_p)
1480 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1481 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1482 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1483 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1484 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1485 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1487 * indent.c (scan_for_column, compute_motion): Likewise.
1488 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1489 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1490 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1491 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1492 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1493 (store_user_signal_events, menu_bar_items, tool_bar_items)
1494 (process_tool_bar_item, append_tool_bar_item)
1495 (read_char_minibuf_menu_prompt, read_key_sequence)
1496 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1498 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1500 * lisp.h (STRING_COPYIN): Likewise.
1501 * lread.c (Fload, read1, oblookup): Likewise.
1502 * msdos.c (Frecent_doskeys): Likewise.
1503 * nsfns.m (Fx_create_frame): Likewise.
1504 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1506 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1507 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1509 * nsmenu.m (ns_update_menubar): Likewise.
1510 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1511 * print.c (print_unwind, printchar, strout, print_string)
1512 (print_error_message): Likewise.
1513 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1514 (Fmake_network_process, Fnetwork_interface_list)
1515 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1516 (init_process): Likewise.
1517 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1518 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1520 * scroll.c (do_scrolling, do_direct_scrolling)
1521 (scrolling_max_lines_saved): Likewise.
1522 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1523 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1524 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1525 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1526 (emacs_set_tty): Likewise.
1527 * term.c (encode_terminal_code, calculate_costs)
1528 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1530 * termcap.c (tgetst1, gobble_line): Likewise.
1531 * termhooks.h (EVENT_INIT): Likewise.
1532 * tparam.c (tparam1): Likewise.
1533 * unexalpha.c (unexec): Likewise.
1534 * unexec.c (write_segment): Likewise.
1535 * unexmacosx.c (unexec_write_zero): Likewise.
1536 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1537 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1538 * w32font.c (w32font_list_family, w32font_text_extents)
1539 (w32font_list_internal, w32font_match_internal)
1540 (w32font_open_internal, compute_metrics, Fx_select_font):
1542 * w32menu.c (set_frame_menubar, add_menu_item)
1543 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1544 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1545 * w32uniscribe.c (uniscribe_list_family): Likewise.
1546 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1547 * window.c (make_window, replace_window, set_window_buffer)
1548 (Fsplit_window): Likewise.
1549 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1550 (add_to_log, message3, x_consider_frame_title)
1551 (append_space_for_newline, extend_face_to_end_of_line)
1552 (decode_mode_spec_coding, init_glyph_string): Likewise.
1553 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1554 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1555 (face_attr_equal_p, make_realized_face, make_face_cache)
1556 (free_realized_faces, lookup_named_face, smaller_face)
1557 (face_with_height, lookup_derived_face)
1558 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1559 (Finternal_set_font_selection_order, realize_default_face)
1560 (compute_char_face, face_at_buffer_position)
1561 (face_for_overlay_string, face_at_string_position, merge_faces):
1563 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1564 (Fx_window_property, x_create_tip_frame)
1565 (Fx_backspace_delete_keys_p): Likewise.
1566 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1567 (xfont_text_extents): Likewise.
1568 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1569 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1570 * xselect.c (x_queue_event, x_get_window_property)
1571 (receive_incremental_selection): Likewise.
1572 * xsmfns.c (x_session_check_input): Likewise.
1573 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1574 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1576 * character.h (BCOPY_SHORT): Removed.
1577 * config.in: Regenerate.
1578 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1579 * emacs.c (main) [PROFILING]: Don't declare
1580 dump_opcode_frequencies.
1581 * lisp.h (safe_bcopy): Remove declaration.
1582 (memset) [!HAVE_MEMSET]: Declare.
1583 (memcpy) [!HAVE_MEMCPY]: Likewise.
1584 (memmove) [!HAVE_MEMMOVE]: Likewise.
1585 (memcmp) [!HAVE_MEMCMP]: Likewise.
1586 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1587 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1589 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1590 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1591 (BCOPY_DOWNWARD_SAFE): Don't define.
1592 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1593 (memcpy) [!HAVE_MEMCPY]: Define.
1594 (memmove) [!HAVE_MEMMOVE]: Define.
1595 (memcmp) [!HAVE_MEMCMP]: Define.
1597 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1599 * process.c (kbd_is_on_hold): New variable.
1600 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1602 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1603 select on empty input mask.
1604 (init_process): Initialize kbd_is_on_hold to 0.
1606 * process.h (hold_keyboard_input, unhold_keyboard_input)
1607 (kbd_on_hold_p): Declare.
1609 * keyboard.c (input_available_signal): Declare.
1610 (kbd_buffer_nr_stored): New function.
1611 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1612 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1613 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1614 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1615 (tty_read_avail_input): If input is on hold, return.
1616 Don't read more that free slots in kbd_buffer (Bug#6571).
1618 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1623 * w16select.c: Convert function definitions to ANSI C.
1625 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1626 Remove unused prototypes.
1628 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1630 * coding.c, sysdep.c: Convert some more functions to standard C.
1632 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1634 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1635 (encode_coding_object): Use SPECPDL_INDEX.
1636 (syms_of_coding): Use DOS_NT.
1638 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1640 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1642 Make the function member of Lisp_Subr use standard C prototypes.
1643 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1644 (DECL_ALIGN): Add a cast for the function.
1645 * eval.c (Feval, Ffuncall): Use the proper type for each type
1648 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1650 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1651 fringe face id, so face-remapping-alist works (Bug#6091).
1653 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1655 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1656 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1657 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1659 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1661 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1662 * lisp.h: Declare x_get_keysym_name.
1663 * keyboard.c (modify_event_symbol): Don't declare
1664 x_get_keysym_name here.
1666 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1668 * ecrt0.c: Revert conversion to standard C.
1670 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1672 * vm-limit.c (memory_warnings):
1673 * keyboard.c (modify_event_symbol):
1674 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1675 (round2, emacs_rint):
1676 * process.c (send_process, old_sigpipe): Convert function
1677 definitions and declarations to standard C.
1679 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1681 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1682 * xdisp.c: Convert function definitions to standard C.
1684 * cm.c (cmputc): Arg C is now int, not char.
1685 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1687 2010-07-05 James Cloos <cloos@jhcloos.com>
1689 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1691 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1692 _NET_WM_ICON_NAME atoms.
1694 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1695 and _NET_WM_ICON_NAME properties, too, matching what is
1696 done in the Gtk+ case.
1698 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1700 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1702 * xsmfns.c (SSDATA): New macro.
1703 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1704 passed to strlen/strcpy/strcat.
1705 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1706 7:th arg to XChangeProperty to (unsigned char *)
1708 * xsettings.c (something_changedCB, parse_settings)
1709 (apply_xft_settings): Reformat prototype.
1710 (something_changedCB, init_gconf): Remove unused variable i.
1711 (read_settings): Remove unused variable long_len.
1713 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1714 (xg_get_image_for_pixmap, create_dialog)
1715 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1716 (menuitem_highlight_callback, make_menu_item)
1717 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1718 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1719 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1720 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1721 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1722 (xg_tool_bar_item_expose_callback): Reformat prototype.
1723 (xg_update_menubar): GList *group => GSList *group.
1724 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1726 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1727 to GTK_IMAGE (wimage).
1729 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1731 * atimer.c: Use "" instead of <> for local includes for
1732 consistency with the rest of the code.
1734 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1735 * xrdb.c (get_system_name):
1736 * window.c (shrink_windows):
1737 * syntax.c (forw_comment):
1738 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1740 * mem-limits.h (start_of_data):
1741 * lread.c (readevalloop):
1742 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1743 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1744 * frame.c (x_get_focus_frame):
1745 * floatfns.c (fmod_float):
1746 * fileio.c (choose_write_coding_system):
1747 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1748 (malloc_initialize_hook, sort_args, synchronize_locale):
1749 * doprnt.c (doprnt):
1750 * dired.c (compile_pattern):
1751 * data.c (fmod_float):
1752 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1753 (map_char_table_for_charset):
1754 * charset.c (define_charset_internal):
1755 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1758 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1759 Stefan Monnier <monnier@iro.umontreal.ca>
1761 * lread.c (read1): Fix up last change to not mess up `c'.
1763 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1765 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1767 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1771 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
1772 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
1773 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1774 arg, as required by internal_condition_case_1.
1775 * print.c (strout): Use const char* for arg PTR.
1776 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1777 (analyse_first): Fix "const const".
1778 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
1779 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
1780 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
1782 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1784 * alloc.c: Convert function definitions to standard C.
1858 * xterm.c: Likewise.
1860 2010-07-03 Eli Zaretskii <eliz@gnu.org>
1862 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1863 frames other than the initial one. Fix reversal of colors when
1864 `reverse' is specified in the frame parameters. Call
1865 update_face_from_frame_parameter instead of
1866 internal-set-lisp-face-attribute. Initialize screen colors from
1867 initial_screen_colors[] when f->default_face_done_p is zero,
1868 instead of depending on being called with default-frame-alist as
1871 * xfaces.c (update_face_from_frame_parameter): Move out of
1872 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1873 with HAVE_WINDOW_SYSTEM.
1875 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1876 to menu-bar-mode, if not set in the frame parameters or in
1877 default-frame-alist.
1879 * w32console.c (sys_tputs): Adjust argument list to prototype in
1882 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1884 * lisp.h (memory_warnings): Fix prototype.
1886 * cm.h (evalcost): Fix prototype.
1888 * cm.c (evalcost): Fix arg type.
1890 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1892 * term.c (term_clear_mouse_face, Fidentity):
1893 * syssignal.h (signal_handler_t):
1894 * lisp.h (memory_warnings):
1895 * coding.h (preferred_coding_system):
1897 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1899 2010-07-02 Eli Zaretskii <eliz@gnu.org>
1901 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1904 * msdos.h (load_pixmap): Don't define away.
1906 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1909 * atimer.h: Remove define for P_.
1911 * alloc.c: Remove __P and P_ from .c and .m files.
1973 * xterm.c: Likewise.
1975 Remove P_ and __P macros.
1976 * atimer.h: Remove P_ and __P macros.
2014 * xterm.h: Likewise.
2016 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2018 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2021 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2022 * syssignal.h: Remove code for Lynx, not supported anymore.
2023 * vm-limit.c: Remove unused code the depends on emacs not being
2024 defined and NO_LIM_DATA being defined.
2025 * mem-limits.h: Remove dead code.
2027 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2029 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2031 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2032 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2034 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2035 parameters, they are already absolute.
2037 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2038 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2040 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2042 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2043 Update FRAME_TOOLBAR_HEIGHT.
2045 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2046 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2048 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
2050 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2051 check default-frame-alist.
2053 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2055 * process.c (create_process): Avoid using invalid file descriptors.
2057 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2059 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2061 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2062 Improve documentation. Return font regardless of use_system_font.
2063 (syms_of_xsettings): Improve documentation for font-use-system-font.
2065 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2067 * xfaces.c (realize_face): Garbage the frame if a face is removed
2070 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2072 * keyboard.c: Remove duplicate <setjmp.h>.
2073 (read_key_sequence): Remove volatile qualifiers.
2075 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2077 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2078 (struct glyph_row): New members left_fringe_offset and
2079 right_fringe_offset.
2081 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2083 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2084 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2086 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
2087 Take account of bitmap offset.
2088 (draw_window_fringes): Take account of window vscroll.
2089 (update_window_fringes): Likewise. Extend top-aligned top indicator
2090 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2091 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2092 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2094 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2096 * w32fns.c (Qtooltip): Declare.
2097 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2099 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2101 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2102 grab on just Press (Bug#6499).
2104 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
2106 * frame.c (Qtooltip): New var.
2107 (delete_frame): Use it. Fix faulty if statement. Don't update
2108 mode line for tooltip frames. Suggested by Martin Rudalics.
2110 * xfns.c (x_create_tip_frame):
2111 * w32fns.c (x_create_tip_frame): Use it.
2113 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
2115 * xftfont.c (xftfont_open): Check font width one by one also when
2118 * ftfont.c (ftfont_open): Ditto.
2120 2010-06-30 Glenn Morris <rgm@gnu.org>
2122 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2124 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2126 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2127 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2128 * s/darwin.h (SYSTEM_MALLOC):
2129 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2131 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2133 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2134 (ns_get_screen): Don't assign integer to f.
2135 (Fx_display_color_cells): Declarations before statements.
2137 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2139 * xfns.c (x_default_font_parameter): Remove got_from_system
2142 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2143 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2144 defines based on what configure finds.
2146 * xterm.c (XTflash): Use gtk_widget_get_window.
2147 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2148 gtk_adjustment_get_page_size.
2149 (handle_one_xevent): Use gtk_widget_get_mapped.
2150 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2153 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2155 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2156 HAVE_GTK_FILE_SELECTION_NEW.
2158 * gtkutil.c (xg_display_open, xg_display_close): Remove
2159 HAVE_GTK_MULTIDISPLAY, it is always defined.
2160 (xg_display_open): Return type is void.
2161 (gtk_widget_set_has_window)
2162 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2163 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2164 (gtk_adjustment_set_page_increment)
2165 (gtk_adjustment_get_step_increment): #define these if not found
2167 (remove_submenu): New define based on Gtk+ version.
2168 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2169 gtk_widget_get_window.
2170 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2171 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2172 (create_dialog): Use gtk_dialog_get_action_area and
2173 gtk_dialog_get_content_area.
2174 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2175 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2176 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2177 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2178 g_object_ref and g_object_unref.
2179 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2180 gtk_widget_get_sensitive.
2181 (xg_update_submenu): Use remove_submenu.
2182 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2183 properties instead to get old x and y position.
2184 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2185 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2186 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2187 (xg_get_tool_bar_widgets): New function.
2188 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2189 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2190 (toolbar_set_orientation): New #define based on if configure
2191 finds gtk_orientable_set_orientation.
2192 (xg_create_tool_bar): Call toolbar_set_orientation.
2193 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2194 instead of gtk_box_pack_start_defaults.
2196 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2198 * cmds.c (Fdelete_backward_char): Move into Lisp.
2200 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2202 * s/freebsd.h (BSD4_2): Remove redundant definition.
2203 bsd-common.h defines it already.
2205 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2207 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2208 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2209 tool-bar-mode, which are now set using these X resources at
2210 startup, to determine the defaults (Bug#2249).
2212 * w32fns.c (Fx_create_frame):
2213 * nsfns.m (Fx_create_frame): Likewise.
2215 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2217 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2219 * gtkutil.c (xg_update_scrollbar_pos):
2220 Avoid C99 mid-block variable declaration.
2222 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2224 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2226 * gtkutil.h (xg_show_scroll_bar): Remove.
2228 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2229 if height is less than scroll bar min size.
2230 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2232 * xfns.c (x_default_font_parameter): Try to open font from system
2233 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2235 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2237 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2239 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2241 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2242 most-positive-fixnum, be extra accurate when scrolling window
2243 start, to avoid missing the cursor line.
2245 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2247 * xdisp.c (try_scrolling): Compute the limit for searching point
2248 in forward scroll from scroll_max, instead of an arbitrary limit
2249 of 10 screen lines. See
2250 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2252 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2255 2010-06-16 Glenn Morris <rgm@gnu.org>
2257 * editfns.c (Fbyte_to_string): Pacify compiler.
2259 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2261 * lread.c (read1): Phase out old-style backquotes a bit more.
2263 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2265 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2268 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2270 * bidi.c (bidi_initialize): Remove explicit initialization of
2271 bidi_type_table; include biditype.h instead. Don't support
2272 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2273 (bidi_mirror_char): Use bidi_mirror_table.
2275 * biditype.h: New file.
2277 * bidimirror.h: New file.
2279 * window.c (syms_of_window): Doc fix (bug#6409).
2281 2010-06-12 Romain Francoise <romain@orebokech.com>
2283 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2286 2010-06-10 Glenn Morris <rgm@gnu.org>
2288 * editfns.c (Fbyte_to_string): Pacify compiler.
2290 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2292 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2294 * alloc.c (Fmake_byte_code): Don't access undefined argument
2297 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2299 * xdisp.c (next_element_from_image): Ensure that after-strings are
2300 read the next time we hit handle_stop (Bug#1336).
2302 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2304 * lread.c (read1): Signal error if #s is not followed by paren.
2306 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2308 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2310 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2312 2010-06-15 Glenn Morris <rgm@gnu.org>
2314 * editfns.c (Fbyte_to_string): Pacify compiler.
2316 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2318 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2319 Check `object's type before accessing its guts.
2321 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2323 * s/usg5-4.h: Fix previous change.
2324 Suggested by Lawrence Mitchell <wence@gmx.li>
2326 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2328 * minibuf.c (Fall_completions): Add more checks.
2330 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2332 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2334 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2336 * lread.c (X_OK): Remove, unused.
2338 * dispnew.c: Remove obsolete comment.
2340 Remove INCLUDED_FCNTL.
2341 * xterm.c (INCLUDED_FCNTL):
2342 * callproc.c (INCLUDED_FCNTL):
2343 * alloc.c (INCLUDED_FCNTL):
2344 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2345 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2347 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2349 * window.c (Fselect_window): Move `record_buffer' up to the
2350 beginning of this function, so the buffer gets recorded
2351 even if the selected window does not change.
2352 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2354 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2356 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2357 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2359 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2361 Remove BSTRING related code, all platforms define it.
2362 * s/usg5-4.h (BSTRING): Remove definition.
2363 * s/template.h (BSTRING):
2364 * s/msdos.h (BSTRING):
2365 * s/ms-w32.h (BSTRING):
2366 * s/hpux10-20.h (BSTRING):
2367 * s/gnu-linux.h (BSTRING):
2368 * s/darwin.h (BSTRING):
2369 * s/cygwin.h (BSTRING):
2370 * s/bsd-common.h (BSTRING):
2371 * s/aix4-2.h (BSTRING): Likewise.
2372 * sysdep.c: Remove code depending on BSTRING not being defined.
2374 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2376 Remove obsolete macro BASE_LEADING_CODE_P.
2377 * character.h (BASE_LEADING_CODE_P): Remove.
2378 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2379 * buffer.c (Fset_buffer_multibyte):
2380 * indent.c (scan_for_column, compute_motion):
2381 * insdel.c (count_combining_before, count_combining_after):
2382 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2384 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2386 Turn `directory-sep-char' into a noop.
2388 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2389 (DIRECTORY_SEP): Define unconditionally.
2391 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2393 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2394 call dostounix_filename directly.
2396 * fileio.c (CORRECT_DIR_SEPS): Remove.
2397 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2398 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2399 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2400 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2402 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2403 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2405 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2407 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2410 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2412 * ccl.c (Fccl_program_p): Fix typo in docstring.
2414 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2416 Move UNEXEC definition to autoconf.
2417 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2418 * s/sol2-10.h (UNEXEC):
2419 * s/irix6-5.h (UNEXEC):
2420 * s/hpux10-20.h (UNEXEC):
2421 * s/gnu-linux.h (UNEXEC):
2422 * s/darwin.h (UNEXEC):
2423 * s/cygwin.h (UNEXEC):
2424 * s/bsd-common.h (UNEXEC):
2425 * s/aix4-2.h (UNEXEC):
2426 * m/alpha.h (UNEXEC): Likewise.
2427 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2429 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2431 Remove obsolete pre-unicode2 macros.
2432 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2433 * composite.c (composition_reseat_it):
2435 * fns.c (Ffillarray):
2436 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2437 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2439 2010-06-03 Juri Linkov <juri@jurta.org>
2441 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2442 (Fswitch_to_buffer): Remove unused variable `err'.
2444 2010-06-03 Glenn Morris <rgm@gnu.org>
2446 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2448 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2449 now that AH_BOTTOM does it.
2451 * m/hp800.h (HAVE_ALLOCA):
2452 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2454 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2455 Remove NOT_C_CODE tests, it is always true now.
2457 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2459 Fix config.h includes.
2467 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2470 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2472 * s/sol2-6.h: Remove obsolete comments.
2474 Remove unnecessary alloca.h includes.
2475 * keymap.c: Do not include alloca.h, config.h does that.
2476 * sysdep.c: Likewise. Do not define fwrite, not used.
2478 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2480 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2481 the HAVE_TERMIO where it belongs (bug#6149).
2483 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2485 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2488 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2490 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2491 state is always cached (bug#6306).
2493 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2495 Fix cursor motion in bidi-reordered continued lines.
2496 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2497 only after finding point's row. Fix the logic. Rewrite the loop
2498 over continuation lines in bidi-reordered buffers. Return
2499 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2500 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2502 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2504 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2506 2010-05-28 Kenichi Handa <handa@m17n.org>
2508 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2509 Don't sheck SPEC if it is nil.
2510 (font_list_entities): Call font_delete_unmatched if
2511 Vface_ignored_fonts is non-nil. (Bug#6287)
2513 2010-05-28 Glenn Morris <rgm@gnu.org>
2515 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2517 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2519 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2521 (internal_delete_file, Frename_file): Callers changed.
2522 (delete_by_moving_to_trash): Doc fix.
2523 (Fdelete_directory_internal): Don't move to trash.
2525 * callproc.c (delete_temp_file):
2526 * buffer.c (Fkill_buffer): Callers changed.
2528 * lisp.h: Update prototype.
2530 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2532 * xdisp.c (redisplay_window): After redisplay, check if point is
2533 still valid before setting it (Bug#6177).
2535 2010-05-27 Glenn Morris <rgm@gnu.org>
2537 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2538 Convert comments to Makefile format.
2540 * Makefile.in (bootstrap-clean): No more Makefile.c.
2542 2010-05-26 Glenn Morris <rgm@gnu.org>
2544 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2545 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2547 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2549 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2551 2010-05-26 Kenichi Handa <handa@m17n.org>
2553 * composite.c (composition_compute_stop_pos): Fix condition for
2556 2010-05-25 Glenn Morris <rgm@gnu.org>
2558 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2559 Move before TEMACS_LDFLAGS.
2560 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2561 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2563 * Makefile.in (NOT_C_CODE): No longer define.
2564 (config.h): No longer include.
2566 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2567 variables it may reference.
2569 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2570 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2572 2010-05-25 Kenichi Handa <handa@m17n.org>
2574 * dispextern.h (struct composition_it): New members rule_idx and
2577 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2578 that the character positions of IT point the last character of the
2579 current grapheme cluster.
2580 (next_element_from_composition): Don't change character positions
2582 (append_composite_glyph): Set glyph->charpos to
2585 * composite.c (autocmp_chars): Change the first argument to RULE,
2586 and try composition with RULE only.
2587 (composition_compute_stop_pos): Record the index number of the
2588 composition rule in CMP_IT->rule_idx.
2589 (composition_reseat_it): Call autocmp_chars repeatedly until the
2590 correct rule of the composition is found.
2591 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2592 is at the last character of the current grapheme cluster when
2593 CMP_IT->reversed_p is nonzero.
2595 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2597 * editfns.c (Fbyte_to_string): New function.
2599 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2601 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2602 Suggested by Masatake YAMATO <yamato@redhat.com>.
2604 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2606 * dispextern.h (init_iterator): Sync prototype with changed definition.
2608 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2610 * s/netbsd.h: If terminfo is found, use it in preference to
2611 termcap. (Bug#6190) [Backport from trunk]
2613 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2615 Redesign and reimplement bidi-aware edge positions of glyph rows.
2617 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2618 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2619 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2620 and maxpos members instead of start.pos and end.pos, respectively.
2622 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2623 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2624 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2625 (try_window_reusing_current_matrix, try_window_id):
2626 Use ROW->minpos rather than ROW->start.pos.
2627 (init_from_display_pos, init_iterator): Use EMACS_INT for
2628 character and byte positions.
2629 (find_row_edges): Rename from find_row_end. Accept additional
2630 arguments for minimum and maximum buffer positions seen by
2631 display_line for this row. Don't use iterator to find the
2632 position following the maximum one; instead, increment the
2633 position found by display_line directly. Fix logic; eol_pos
2634 should be tested before the rest. Handle the case of characters
2635 delivered from display vector (bug#6036). Fix tests related to
2636 it->method. Handle the truncated_on_right_p rows.
2637 (RECORD_MAX_MIN_POS): New macro.
2638 (display_line): Use it to record the minimum and maximum buffer
2639 positions for glyphs in the row being assembled. Record the
2640 position of the newline that terminates the line. If word wrap is
2641 in effect, restore minimum and maximum positions seen up to the
2642 wrap point, when iterator returns to it.
2643 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2644 row and cursor not already at point. Restore original pre-bidi
2645 code for unidirectional buffers.
2647 * dispnew.c (increment_row_positions, check_matrix_invariants):
2648 Increment and check row->start.pos and row->end.pos, in addition
2649 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2651 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2652 Display truncated_on_left_p and truncated_on_right_p flags.
2654 (pmtxrows): Display the ordinal number of each row. Don't display
2655 rows beyond the last one.
2657 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2658 it is not copied by bidi_copy_it.
2660 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2662 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2665 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2667 * image.c (Fimage_flush): Rename from image-refresh.
2669 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2671 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2674 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2675 (clear_image_cache): If the number of cached images is unusually
2676 large, decrease the cache eviction delay (Bug#6230).
2678 2010-05-21 Glenn Morris <rgm@gnu.org>
2680 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2681 Move these rules to ns.mk.
2684 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2686 * Makefile.in (CANNOT_DUMP): New, set by configure.
2687 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2689 2010-05-20 Juri Linkov <juri@jurta.org>
2691 * fileio.c (Fdelete_file): Change interative spec to use
2692 `read-file-name' like in `find-file-read-args' where the default
2693 value is `default-directory' instead of `buffer-file-name'.
2694 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2696 2010-05-20 Kevin Ryde <user42@zip.com.au>
2698 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2699 (Voverriding_terminal_local_map, Vsystem_key_alist)
2700 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2702 2010-05-20 Glenn Morris <rgm@gnu.org>
2704 * Makefile.in (DEPDIR): New constant.
2705 (DEPFLAGS): Set with configure, not cpp.
2706 (MKDEPDIR): New, set by configure.
2707 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2708 (clean): Use $DEPDIR.
2709 (deps_frag): Include from configure.
2710 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2711 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2713 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2714 reallocation of the cache. (Bug#6210)
2716 2010-05-19 Glenn Morris <rgm@gnu.org>
2718 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2720 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2721 (GNULIB_VAR): Remove.
2722 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2724 * m/ibms390x.h (LINKER):
2725 * m/macppc.h (LINKER) [GNU_LINUX]:
2726 * s/aix4-2.h (ORDINARY_LINK):
2727 * s/cygwin.h (LINKER):
2728 * s/darwin.h (ORDINARY_LINK):
2729 * s/gnu.h (ORDINARY_LINK):
2730 * s/netbsd.h (LINKER):
2731 * s/usg5-4.h (ORDINARY_LINK):
2734 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2736 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
2738 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2739 prevent stack overflow if number of arguments is too large
2742 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
2744 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2746 2010-05-18 Glenn Morris <rgm@gnu.org>
2748 * s/gnu-linux.h: Combine two conditionals.
2750 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
2753 * Makefile.in (RALLOC_OBJ): New, set by configure.
2754 (rallocobj): Replace with the previous variable.
2755 (otherobj): Use $RALLOC_OBJ.
2757 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2758 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2760 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2761 (gmallocobj, vmlimitobj): Replace with previous two variables.
2762 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2764 2010-05-17 Glenn Morris <rgm@gnu.org>
2766 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2767 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2769 2010-05-16 Glenn Morris <rgm@gnu.org>
2771 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2773 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2775 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2778 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2779 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2781 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2782 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2783 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2784 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2785 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2787 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2788 Remove ${STARTFLAGS}, nothing ever sets it.
2790 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2792 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2794 2010-05-16 Glenn Morris <rgm@gnu.org>
2796 * Makefile.in (LIBX_BASE): Always define.
2798 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2800 * Makefile.in (LIBXT): Always define.
2802 2010-05-15 Glenn Morris <rgm@gnu.org>
2804 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
2806 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2807 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2809 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
2811 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
2812 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2814 * emacs.c (main): Initialize initial-environment and
2815 process-environment before generating from env, not after.
2817 Handle --version reasonably in CANNOT_DUMP configuration.
2818 * emacs.c (emacs_version, emacs_copyright): New string variables.
2819 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2820 (syms_of_emacs): Defvar them, and initialize them from the C
2822 (main): If initialization hasn't been done, print initial version
2823 info from the C strings, instead of starting an interactive session.
2825 2010-05-15 Eli Zaretskii <eliz@gnu.org>
2827 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2828 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2829 (bidi_paragraph_init): Remove redundant assertion that we are at
2830 the beginning of a line after call to bidi_find_paragraph_start.
2832 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2833 (syms_of_xdisp): Defsubr it.
2835 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2837 * Makefile.in: Fix MSDOS-related comments.
2839 2010-05-15 Glenn Morris <rgm@gnu.org>
2841 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2842 (really-lwlib, really-oldXMenu): Always define.
2843 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2845 * Makefile.in: Simplify cpp conditional.
2847 * Makefile.in (${ns_appdir}): Simplify using umask.
2849 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2851 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2853 * eval.c (specbind): Remove left-over duplicate test.
2854 Disallow let-binding frame-local vars. Add comment.
2856 2010-05-14 Eli Zaretskii <eliz@gnu.org>
2858 Make the cache of bidi iterator states dynamically allocated.
2859 * bidi.c (bidi_cache_shrink): New function.
2860 (bidi_init_it): Call it.
2861 (bidi_cache_iterator_state): Enlarge the cache if needed.
2863 * bidi.c (bidi_move_to_visually_next): Rename from
2864 bidi_get_next_char_visually. All callers changed.
2866 2010-05-14 Kenichi Handa <handa@m17n.org>
2868 * dispextern.h (struct composition_it): New member reversed_p.
2870 * composite.c (composition_compute_stop_pos): Search backward if
2872 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2873 Set CMP_IT->reversed_p.
2874 (composition_update_it): Pay attention to CMP_IT->reversed_p.
2876 * xdisp.c (set_iterator_to_next):
2877 Call composition_compute_stop_pos with negative ENDPOS if we are
2878 scanning backward. Call composition_compute_stop_pos if scan
2879 direction is changed.
2880 (next_element_from_buffer): Call composition_compute_stop_pos with
2881 negative ENDPOS if we are scanning backward.
2882 (next_element_from_composition): Pay attention to
2883 IT->cmp_it.reversed_p.
2885 2010-05-14 Kenichi Handa <handa@m17n.org>
2887 * font.c (font_range): Return the range for the font found at first.
2889 2010-05-14 Glenn Morris <rgm@gnu.org>
2891 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2893 * Makefile.in (mktime, X11, register): Move undefs to configure.
2895 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2896 (MSDOS_X_OBJ): New variable.
2897 (MSDOS_SUPPORT_REAL): New constant.
2898 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2899 (obj): Use MSDOS_X_OBJ.
2900 (lisp): Use MSDOS_SUPPORT as a variable.
2902 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2903 (GPM_MOUSE_SUPPORT): Now it's a constant.
2904 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2907 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
2908 (ns_appresdir): Remove, unused.
2910 * Makefile.in (SHELL): Move outside cpp section.
2912 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2914 2010-05-13 Glenn Morris <rgm@gnu.org>
2916 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2917 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2919 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2920 HAVE_WINDOW_SYSTEM must be too.
2922 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2923 (lisp): Remove WINNT_SUPPORT.
2925 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2926 Let configure set these variables (to empty) in this case as well.
2928 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2929 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2931 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2932 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2933 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2934 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2935 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2936 the values output by configure.
2937 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2939 2010-05-12 Glenn Morris <rgm@gnu.org>
2941 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2942 (LINKER_WAS_SPECIFIED): Remove.
2944 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2945 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2946 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2947 * s/cygwin.h (LIB_GCC):
2948 * s/freebsd.h (LIB_GCC):
2949 * s/gnu-linux.h (LIB_GCC):
2950 * s/msdos.h (LIB_GCC):
2951 * s/netbsd.h (LIB_GCC):
2954 2010-05-11 Karel Klic <kklic@redhat.com>
2956 * ftfont.c: Fix incorrect parentheses of #if condition for
2957 definining M17N_FLT_USE_NEW_FEATURE.
2959 2010-05-11 Glenn Morris <rgm@gnu.org>
2961 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2962 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2964 2010-05-10 Eli Zaretskii <eliz@gnu.org>
2966 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2967 unibyte buffers. See
2968 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2970 2010-05-10 Glenn Morris <rgm@gnu.org>
2972 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2973 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2974 (LIBES): Use LIBS_SYSTEM as a variable.
2975 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2976 * s/aix4-2.h (LIBS_SYSTEM):
2977 * s/freebsd.h (LIBS_SYSTEM):
2978 * s/hpux10-20.h (LIBS_SYSTEM):
2979 * s/sol2-6.h (LIBS_SYSTEM):
2980 * s/unixware.h (LIBS_SYSTEM):
2983 * s/aix4-2.h (MAIL_USE_LOCKF):
2984 * s/bsd-common.h (MAIL_USE_FLOCK):
2985 * s/darwin.h (MAIL_USE_FLOCK):
2986 * s/gnu-linux.h (MAIL_USE_FLOCK):
2987 * s/irix6-5.h (MAIL_USE_FLOCK):
2988 * s/template.h (MAIL_USE_FLOCK):
2991 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
2993 * Version 23.2 released.
2995 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
2997 * composite.c (autocmp_chars): Save point as marker before calling
2998 auto-composition-function (Bug#5984).
3000 * lisp.h (restore_point_unwind): Add prototype.
3002 * fileio.c (restore_point_unwind): Remove static attribute.
3004 2010-05-08 Kenichi Handa <handa@m17n.org>
3006 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3007 new feature of libotf and m17n-flt.
3008 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3009 Call OTF_check_features even if no specific feature is given.
3010 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3011 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3012 that OUT is NULL. Use OTF_drive_gsub_with_log and
3013 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3015 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3016 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3017 Setup mflt_enable_new_feature and mflt_try_otf.
3019 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3021 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3023 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3024 box and toolbar (Bug #6139).
3025 (xg_create_tool_bar): Remove comment (Bug #6139).
3026 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3027 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3029 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3031 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3032 Update dependencies.
3034 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3036 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3039 2010-05-08 Glenn Morris <rgm@gnu.org>
3041 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3043 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3044 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3045 (termcapobj): Replace with TERMCAP_OBJ.
3046 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3047 (LIBES): Use LIBS_TERMCAP as a variable.
3049 * s/freebsd.h (osreldate.h): No longer include, since this file
3050 does not use __FreeBSD_version any more.
3052 * s/aix4-2.h (TERMINFO):
3053 * s/cygwin.h (TERMINFO):
3054 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3055 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3056 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3057 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3058 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3059 * s/irix6-5.h (TERMINFO):
3060 * s/netbsd.h (LIBS_TERMCAP):
3061 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3062 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3063 * s/usg5-4.h (TERMINFO):
3066 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3068 * eval.c (unbind_to): Don't unbind a local binding into the global
3069 binding when the local binding disappeared. Inversely, don't unbind
3070 a global binding into a newly created local binding.
3071 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3072 can specify the frame to use, when applicable. Adjust callers.
3074 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
3075 Stefan Monnier <monnier@iro.umontreal.ca>
3077 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3079 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3081 * w32fns.c: Include w32.h.
3082 (Fw32_shell_execute): Decode the error message before passing it
3083 to `error'. (Bug#6126)
3085 * msdos.c (dos_set_window_size):
3086 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3087 instead of `XSYMBOL (foo)->value'.
3089 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3091 Fix the MS-DOS build, broken by autoconfiscation.
3093 * Makefile.in: Don't use Make-style comments past the "start of
3095 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3097 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3098 edited directly by msdos/sed1v2.inp).
3100 2010-05-07 Glenn Morris <rgm@gnu.org>
3102 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3103 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3104 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3105 move out of cpp section.
3106 * s/freebsd.h (LD_SWITCH_SYSTEM):
3107 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3108 * s/netbsd.h (LD_SWITCH_SYSTEM):
3109 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3111 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3113 Define LIB_STANDARD and START_FILES using autoconf.
3114 * s/usg5-4.h (LIB_STANDARD):
3115 * s/netbsd.h (START_FILES):
3116 * s/irix6-5.h (LIB_STANDARD):
3117 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3118 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3119 * s/freebsd.h (START_FILES):
3120 * s/darwin.h (START_FILES):
3121 * s/cygwin.h (START_FILES):
3122 * s/aix4-2.h (LIB_STANDARD):
3123 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3124 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3127 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3129 Remove NEED_BSDTTY and NEED_UNISTD_H.
3130 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3131 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3132 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3133 <sys/ptyio.h> and <unistd.h>.
3135 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3137 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3138 * s/gnu.h (START_FILES): Remove empty definition.
3140 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3142 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3144 2010-05-06 Glenn Morris <rgm@gnu.org>
3146 * Makefile.in (CPP, LN_S): Remove unused variables.
3148 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3150 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3152 2010-05-05 Lawrence Mitchell <wence@gmx.li>
3154 * m/sparc.h: Fix typo in earlier change.
3156 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3159 * eval.c (Fdefvaralias): Remove unintended nested if.
3160 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3162 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
3164 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3166 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3169 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3170 * s/gnu-linux.h (BSD_PGRPS): Remove.
3171 * term.c (dissociate_if_controlling_tty):
3172 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3173 (init_sys_modes, reset_sys_modes):
3175 * callproc.c (Fcall_process, child_setup): Remove code depending
3178 Remove POSIX_SIGNALS.
3179 * s/usg5-4.h (POSIX_SIGNALS):
3180 * s/netbsd.h (POSIX_SIGNALS):
3181 * s/msdos.h (POSIX_SIGNALS):
3182 * s/ms-w32.h (POSIX_SIGNALS):
3183 * s/hpux11.h (POSIX_SIGNALS):
3184 * s/gnu.h (POSIX_SIGNALS):
3185 * s/gnu-linux.h (POSIX_SIGNALS):
3186 * s/freebsd.h (POSIX_SIGNALS):
3187 * s/darwin.h (POSIX_SIGNALS):
3188 * s/cygwin.h (POSIX_SIGNALS):
3189 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3191 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3192 * process.c (create_process):
3194 * sysdep.c (wait_for_termination, init_signals):
3195 * process.c (create_process):
3196 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3197 remove all code that assumes the contrary.
3199 2010-05-04 Glenn Morris <rgm@gnu.org>
3201 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3203 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3204 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3205 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3206 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3207 LD_SWITCH_SYSTEM_tmp.
3208 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3209 New variables, set by configure.
3211 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3212 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3213 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3214 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3215 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3217 * s/aix4-2.h (C_SWITCH_SYSTEM):
3218 * m/alpha.h (C_SWITCH_MACHINE):
3219 Move to configure.in.
3220 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3221 New variables, set by configure.
3222 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3223 $c_switch_machine and $c_switch_system.
3225 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3227 * s/hpux10-20.h (LIB_STANDARD): New definition.
3228 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3229 on it, not used anymore.
3231 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3233 * eval.c (internal_condition_case_n): Rename from
3234 internal_condition_case_2.
3235 (internal_condition_case_2): New function.
3237 * xdisp.c (safe_call): Use internal_condition_case_n.
3239 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3240 (internal_delete_file, Frename_file): Callers changed.
3242 * buffer.c (Fkill_buffer):
3243 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3245 * lisp.h: Update prototypes.
3247 2010-05-03 Glenn Morris <rgm@gnu.org>
3249 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3250 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3251 (LIBXT): Set with configure, not cpp.
3253 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3255 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3257 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3258 The FreeBSD is not needed, the default works, Solaris version is
3259 not needed, and the remaining case is not supported by configure.
3261 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3263 * xsmfns.c (CHDIR_OPT): New define.
3264 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3267 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3270 * emacs.c (USAGE1): Mention --chdir.
3271 (main): Handle --chdir.
3272 (standard_args): Add --chdir.
3273 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3276 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3278 Remove LD_SWITCH_MACHINE.
3279 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3280 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3283 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3284 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3287 * m/ibmrs6000.inp: Remove file, unused.
3288 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3289 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3291 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3293 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3296 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3298 Emulate POSIX_SIGNALS on MS-Windows.
3300 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3301 (SIG_SETMASK, SIG_UNBLOCK): Define.
3303 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3304 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3305 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3307 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3310 Miscellaneous fixes of bidi display.
3312 * xdisp.c (find_row_end): New function, refactored from display_line.
3313 (display_line): Use it.
3314 (extend_face_to_end_of_line): In almost-filled rows, extend only
3315 if the row is R2L and not continued.
3316 (display_line): Fix prepending of truncation glyphs to R2L rows.
3317 Preserve overlay and string info in row->end.
3318 (insert_left_trunc_glyphs): Support addition of left truncation
3320 (set_cursor_from_row): Don't place cursor on the vertical border
3321 glyph between adjacent windows. Fix a crash when a display string
3322 is continued to the next line. Don't return zero if cursor was
3323 found by `cursor' property of a display string.
3324 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3325 test for that explicitly.
3327 2010-05-01 Glenn Morris <rgm@gnu.org>
3329 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3331 (OTHER_OBJ): Remove.
3332 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3333 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3335 2010-05-01 Karel Klíč <kklic@redhat.com>
3337 * fileio.c (Ffile_selinux_context): Context functions may return null.
3339 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3341 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3343 2010-04-30 Glenn Morris <rgm@gnu.org>
3345 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3346 (OTHER_OBJ): Define as a separate variable, for clarity.
3348 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3350 * xsettings.c: include limits.h and update file comment.
3352 2010-04-30 Glenn Morris <rgm@gnu.org>
3354 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3355 Set with configure, not cpp.
3356 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3358 * Makefile.in (mallocobj): Remove.
3359 (otherobj): Simplify using @OTHER_OBJ@.
3361 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3362 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3363 Don't bother making nsgui.h dependency platform-specific.
3365 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3367 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3369 * process.c (read_process_output, exec_sentinel): Don't burp if the
3370 sentinel/filter kills the current buffer (bug#6060).
3372 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3373 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3374 Remove unused var `args'.
3375 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3376 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3377 * doc.c (store_function_docstring): Use XSETCAR.
3379 2010-04-28 Glenn Morris <rgm@gnu.org>
3381 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3382 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3384 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3386 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3387 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3389 * Makefile.in (FONT_OBJ): New, set by configure.
3390 (FONT_DRIVERS): Use $FONT_OBJ.
3392 * Makefile.in (LIBXMU): Set with configure, not cpp.
3393 * s/aix4-2.h (LIBXMU):
3394 * s/hpux10-20.h (LIBXMU):
3395 Remove definition, now set in configure.
3397 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3399 * m/amdx86-64.h [i386]: Move this test to configure.in.
3401 2010-04-27 Glenn Morris <rgm@gnu.org>
3403 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3404 * s/unixware.h (NEED_LIBW): Remove definition.
3406 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3407 (TOOLKIT_LIBW): New, set by configure.
3408 (@X_TOOLKIT_TYPE@): No longer define it.
3410 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3411 (MOTIF_LIBW): Set with configure, not cpp.
3412 * s/aix4-2.h (LIB_MOTIF):
3413 * s/gnu-linux.h (LIB_MOTIF):
3414 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3416 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3419 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3420 (obj): Use autoconf for unexec instead of cpp.
3421 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3422 definitions and undefs. Inline definitions in the only user.
3423 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3425 2010-04-27 Glenn Morris <rgm@gnu.org>
3427 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3428 since the defaults (set by the system file) are fine in most cases.
3429 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3430 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3431 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3432 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3433 Remove definitions, since they are set correctly in s/gnu-linux.h.
3434 * s/freebsd.h (START_FILES, LIB_STANDARD):
3435 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3436 * s/hpux10-20.h (START_FILES):
3437 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3438 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3440 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3441 (MOTIF_LIBW): Use $LIBXP.
3442 (otherobj): Use $WIDGET_OBJ.
3444 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3446 * Makefile.in (LIBS_MACHINE): Remove, unused.
3448 Use autoconf instead of cpp for LIB_MATH.
3449 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3450 * s/cygwin.h (LIB_MATH): Likewise.
3451 * Makefile.in (LIB_MATH): Do not define with cpp.
3452 (LIBES): Use autoconf for LIB_MATH.
3454 2010-04-26 Kenichi Handa <handa@m17n.org>
3456 * composite.c (Ffind_composition_internal): Fix the return value
3457 for an automatic composition.
3459 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3461 Remove all NO_ARG_ARRAY uses.
3462 * fns.c (concat2, concat3, nconc2):
3463 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3464 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3465 * m/xtensa.h (NO_ARG_ARRAY):
3466 * m/template.h (NO_ARG_ARRAY):
3467 * m/sparc.h (NO_ARG_ARRAY):
3468 * m/sh3.h (NO_ARG_ARRAY):
3469 * m/mips.h (NO_ARG_ARRAY):
3470 * m/macppc.h (NO_ARG_ARRAY):
3471 * m/iris4d.h (NO_ARG_ARRAY):
3472 * m/intel386.h (NO_ARG_ARRAY):
3473 * m/ibms390x.h (NO_ARG_ARRAY):
3474 * m/ibms390.h (NO_ARG_ARRAY):
3475 * m/ibmrs6000.h (NO_ARG_ARRAY):
3476 * m/ia64.h (NO_ARG_ARRAY):
3477 * m/hp800.h (NO_ARG_ARRAY):
3478 * m/arm.h (NO_ARG_ARRAY):
3479 * m/amdx86-64.h (NO_ARG_ARRAY):
3480 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3482 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3484 * xdisp.c (display_line): Don't assume 2nd call to
3485 get_next_display_element cannot return zero. (Bug#6030)
3486 (iterate_out_of_display_property): New function, body from pop_it.
3489 2010-04-24 Glenn Morris <rgm@gnu.org>
3491 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3492 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3493 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3494 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3496 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3498 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3499 use `get_next_display_element' and `set_iterator_to_next' to
3500 advance to the next character, when looking for the character that
3501 begins the next row.
3503 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3504 definition of "struct Lisp_Symbol".
3506 2010-04-24 Glenn Morris <rgm@gnu.org>
3508 * Makefile.in (CRT_DIR): New variable, set by configure.
3509 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3510 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3512 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3514 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3516 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3518 Remove redundant flags.
3519 * s/freebsd.h (C_SWITCH_SYSTEM):
3520 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3521 * s/netbsd.h (C_SWITCH_SYSTEM):
3522 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3525 Simplify m/intel386.h.
3526 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3528 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3529 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3530 the only user: s/unixware.h.
3531 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3533 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3534 moved here from m/intel386.h.
3536 * m/mips.h: Remove #if 0 code.
3538 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3540 Fix display of composed characters from L2R scripts in bidi buffers.
3541 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3542 After advancing IT past the composition, resync the bidi iterator
3543 with IT's position. (Bug#5977)
3545 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3547 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3548 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3550 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3552 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3554 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3556 Support `display' text properties and overlay strings in bidi buffers.
3557 * xdisp.c (pop_it): When the stack is popped after displaying
3558 from a string, bidi-iterate to exit from the text portion covered
3559 by the `display' property or overlay. (Bug#5988, bug#5920)
3561 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3563 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3564 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3566 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3567 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3569 Simplify STARTFILES definition.
3570 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3571 relying on Makefile.in to define it.
3572 * s/cygwin.h (START_FILES): Likewise.
3573 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3575 Clean up Solaris code.
3576 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3577 (LIB_MOTIF): Remove, configure takes care of this.
3578 (NOT_USING_MOTIF): Remove, unused.
3579 * xrdb.c: Remove #if 0-ed #include.
3580 (SYSV): Remove conditional for old SysV.
3581 * sysdep.c (closedir): Remove conditional code for Solaris,
3582 Solaris has closedir.
3584 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3586 * xsettings.c (read_and_apply_settings): Check if current_font is
3587 NULL before strcmp (Bug#6001).
3589 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3591 Clean up HP-UX files.
3592 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3593 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3594 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3595 * s/hpux10-20.h: ... to the only user, here.
3597 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3599 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3600 use buffer-local values of paragraph-start and paragraph-separate.
3601 <paragraph_start_re, paragraph_separate_re>: Rename from
3602 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3605 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3607 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3608 current_tool_bar_style are new.
3609 (store_config_changed_event): Rename from store_font_changed_event.
3610 (XSETTINGS_TOOL_BAR_STYLE): New define.
3611 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3612 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3614 (something_changedCB): store_font_changed_event is now
3615 store_config_changed_event.
3616 (parse_settings): Rename from parse_xft_settings. Read
3617 non-xft xsettings outside #ifdef HAVE_XFT.
3618 (read_settings): Renamed from read_xft_settings.
3619 (apply_xft_settings): Take current settings as parameter. Do not
3620 call read_(xft)_settings.
3621 (read_and_apply_settings): New function.
3622 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3623 read_and_apply_settings if there are settings to be read.
3624 (init_xsettings): Renamed from init_xfd_settings.
3625 Call read_and_apply_settings unconditionally.
3626 (xsettings_initialize): Call init_xsettings.
3627 (Ftool_bar_get_system_style): New function.
3628 (syms_of_xsettings): Define Qmonospace_font_name and
3629 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3630 defsubr Stool_bar_get_system_style. Fprovide on
3632 Move misplaced HAVE_GCONF
3634 * xsettings.h (Ftool_bar_get_system_style): Declare.
3636 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3637 Qtext, Qboth, Qboth_horiz are new.
3638 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3639 Vtool_bar_style, tool_bar_max_label_size.
3641 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3643 * keyboard.c: QClabel is new.
3644 (parse_tool_bar_item): Take out QClabel from tool bar items.
3645 Try to construct a label if ther is no QClabel.
3646 (syms_of_keyboard): Intern :label as QClabel.
3648 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3649 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3652 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3655 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3656 (xg_make_tool_item, xg_show_toolbar_item): New function.
3657 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3658 Call xg_make_tool_item to make a tool bar item.
3659 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3661 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3662 into account for toolbars.
3664 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3666 * data.c (make_blv): Declarations before code (Bug#5993).
3668 2010-04-21 Glenn Morris <rgm@gnu.org>
3670 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3671 Define using autoconf, not cpp.
3672 (LIBXSM): New variable, set by autoconf.
3673 (LIBXT): Use $LIBXSM.
3675 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3677 Remove NOMULTIPLEJOBS, unused.
3678 * s/template.h (NOMULTIPLEJOBS):
3679 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3681 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3682 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3683 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3684 detects -znocombreloc and passes it to the linker
3685 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3687 2010-04-21 Glenn Morris <rgm@gnu.org>
3689 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3691 2010-04-21 Karel Klíč <kklic@redhat.com>
3693 * Makefile.in (LIBSELINUX_LIBS): New.
3694 (LIBES): Add $LIBSELINUX_LIBS.
3695 * eval.c, lisp.h (call7): New function.
3696 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3697 (Ffile_selinux_context, Fset_file_selinux_context):
3699 (Fcopy_file): New parameter preserve-selinux-context.
3700 (Frename_file): Preserve selinux context when renaming by copy-file.
3702 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3703 Eli Zaretskii <eliz@gnu.org>
3705 Don't depend on cm.c or termcap.c on Windows, use stubs.
3706 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3707 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3708 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3709 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3710 (sys_tputs, sys_tgetstr): New stubs.
3711 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3712 (tputs, tgetstr): New; define to sys_*.
3714 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3716 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3718 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3720 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3721 Just signal a warning rather than an error when inside a let.
3722 (Fmake_variable_frame_local): Add the same test.
3724 * font.c (syms_of_font): Make the style table vars read-only.
3726 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3727 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3729 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3731 2010-04-20 Eli Zaretskii <eliz@gnu.org>
3733 Fix R2L paragraph display on TTY.
3735 * xdisp.c (unproduce_glyphs): New function.
3736 (display_line): Use it when produced glyphs are discarded from R2L
3738 (append_composite_glyph): In R2L rows, prepend the glyph rather
3741 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3742 rather than append it. Set up the resolved_level and bidi_type
3743 attributes of the appended glyph.
3744 (produce_special_glyphs): Mirror the backslash continuation
3745 character in R2L lines.
3747 Implement display of R2L paragraphs in GUI sessions.
3749 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3750 append_stretch_glyph.
3751 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3752 off-by-one error in computing x at end of text in the row.
3753 (append_stretch_glyph): In reversed row, prepend the glyph rather
3754 than append it. Set resolved_level and bidi_type of the glyph.
3755 (extend_face_to_end_of_line): If the row is reversed, prepend a
3756 stretch glyph whose width is such that the rightmost glyph will be
3757 drawn at the right margin of the window. Fix off-by-one error on
3758 TTY frames in testing whether a line needs face extension. Fix
3759 face extension at ZV. If this is the last glyph row, use
3760 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3762 (set_cursor_from_row, display_line): Use
3763 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3764 row->continuation_lines_width.
3765 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3766 are at ZV. Fixes a crash when reseated to ZV by
3767 try_window_reusing_current_matrix.
3768 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3769 which happens with R2L glyph rows. Fixes a crash when inserting a
3770 character at end of an R2L line.
3771 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3772 treat them as having zero-width characters. Improve comments.
3773 Don't reverse pos_before and pos_after for reversed glyph rows.
3774 Set cursor.x to negative value when the cursor might be on the
3776 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3777 left fringe, not the right one.
3778 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3779 (erase_phys_cursor): For reversed cursor_row, support cursor on
3782 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3783 of continuation indicators on the fringes.
3784 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3787 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3788 draw cursor on the left fringe.
3790 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3791 cursor on the left fringe.
3793 * dispnew.c (update_text_area): Handle reversed desired rows when
3794 the cursor is on the left fringe.
3795 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3796 below, not by 0, for when the cursor is on the left fringe.
3798 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3800 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3801 widget is a scrollbar.
3803 2010-04-20 Kenichi Handa <handa@m17n.org>
3805 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3806 only when the arg CHARSET_LIST is nil.
3808 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3810 Make variable forwarding explicit rather the using special values.
3811 Basically, this makes the structure of buffer-local values and object
3812 forwarding explicit in the type of Lisp_Symbols rather than use
3813 special Lisp_Objects for that. This tends to lead to slightly more
3814 verbose code, but is more C-like, simpler, and makes it easier to make
3815 sure we handled all cases, among other things by letting the compiler
3817 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3818 Removing forwarding objects.
3819 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3820 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3821 explicit rather than hiding them inside Lisp_Object "values".
3822 (XFWDTYPE): New macro.
3823 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3824 (XBUFFER_LOCAL_VALUE): Remove.
3825 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3826 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3827 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3828 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3829 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3830 Remove the Lisp_Misc_* header.
3831 (struct Lisp_Buffer_Local_Value): Redefine.
3832 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3833 (struct Lisp_Misc_Any): Add filler to get the right size.
3834 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3836 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3837 (DEFVAR_KBOARD): Allocate a forwarding object.
3838 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3839 (let_shadows_global_binding_p): New function.
3840 (union Lisp_Val_Fwd): New type.
3841 (make_blv): New function.
3842 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3843 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3844 (swap_in_symval_forwarding, find_symbol_value, Fset)
3845 (let_shadows_buffer_binding_p, set_internal, default_value)
3846 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3847 (Fkill_local_variable, Fmake_variable_frame_local)
3848 (Flocal_variable_p, Flocal_variable_if_set_p)
3849 (Fvariable_binding_locus):
3850 * xdisp.c (select_frame_for_redisplay):
3851 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3852 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3853 * frame.c (store_frame_param):
3854 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3855 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3857 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3858 (clone_per_buffer_values): Only adjust markers into the current buffer.
3859 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3860 (Fbuffer_local_value, set_buffer_internal_1)
3861 (swap_out_buffer_local_variables):
3862 Adapt to the new symbol value structure.
3863 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3864 (defvar_per_buffer): Take a new arg for the fwd object.
3865 (buffer_lisp_local_variables): Return a proper alist (different fix
3867 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3868 (Fgarbage_collect): Don't handle buffer_defaults specially.
3869 (mark_object): Handle new symbol value structure rather than the old
3870 special Lisp_Misc_* objects.
3871 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3872 * term.c (set_tty_color_mode):
3873 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3874 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3875 a buffer_local_flags.
3876 * print.c (print_object): Get rid of impossible forwarding objects.
3878 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3880 * bidi.c (bidi_get_type, bidi_get_category)
3881 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
3882 (bidi_type_of_next_char, bidi_level_of_next_char):
3883 Declare static. Use `INLINE' rather than `inline'.
3885 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
3887 * dired.c (Ffile_attributes): Fix typo in docstring.
3889 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3891 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3892 NSInteger (Bug#5811).
3894 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3896 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3897 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3899 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3901 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3903 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
3905 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3906 terminal frames (Bug#5837).
3908 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3910 * .gdbinit (xsubchartable): New command.
3912 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3914 * xdisp.c (display_line): Don't write beyond the last glyph row in
3915 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
3916 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3918 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3920 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3922 * alloc.c (Fpurecopy): Hash-cons if requested.
3923 (syms_of_alloc): Update purify-flag docstring.
3925 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3927 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3928 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3930 2010-04-17 Eli Zaretskii <eliz@gnu.org>
3932 Fix a crash when an NSM character is inserted at BEGV.
3934 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3935 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3936 NEUTRAL_B or UNKNOWN_BT.
3938 2010-04-16 Eli Zaretskii <eliz@gnu.org>
3940 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3941 other rows with cursor unless they are different from this row and
3942 this row is part of a continued line. (Bug#5943)
3944 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3946 * s/freebsd.h: Restore osreldate.h include.
3947 Suggested by Naohiro Aota.
3949 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3951 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3953 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3955 * s/cygwin.h: Avoid linking against static libgcc.
3957 2010-04-15 Juri Linkov <juri@jurta.org>
3959 * window.c: Add Qscroll_command.
3960 Remove Vscroll_preserve_screen_position_commands.
3961 (window_scroll_pixel_based, window_scroll_line_based): Check the
3962 `scroll-command' property on the last command instead of searching
3963 the last command in Vscroll_preserve_screen_position_commands.
3964 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3965 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3966 (scroll-preserve-screen-position): Doc fix.
3967 (Vscroll_preserve_screen_position_commands): Remove variable.
3969 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3971 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3973 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3975 Reduce cpp use in Makefile.in.
3976 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3977 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3978 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3979 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3980 (CRT0_COMPILE): Remove, inline it in the only user.
3982 2010-04-14 Juri Linkov <juri@jurta.org>
3984 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3985 `scroll-up-command' and `M-v' from `scroll-down' to
3986 `scroll-down-command'.
3988 2010-04-14 Juri Linkov <juri@jurta.org>
3990 * window.c (Vscroll_preserve_screen_position_commands): New variable
3991 with the default value as the list of Qscroll_down and Qscroll_up.
3992 (window_scroll_pixel_based, window_scroll_line_based): Search the
3993 last command in the list Vscroll_preserve_screen_position_commands
3994 instead of comparing with Qscroll_up and Qscroll_down.
3996 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3998 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3999 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4002 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4005 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4007 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4009 Try to solve the problem of spurious EOF chars in long lines of text
4010 sent to interactive subprocesses.
4011 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4012 (system_process_attributes): Remove unused var `ttotal'.
4013 * process.c (send_process): Don't bother breaking long line with EOF
4014 chars when talking to ttys any more.
4015 (wait_reading_process_output): Output a warning when called in such
4016 a way that it could block without being interruptible.
4018 Try to detect file modification within the same second.
4019 * buffer.h (struct buffer): New field modtime_size.
4020 * buffer.c (reset_buffer): Initialize it.
4021 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4022 (Fverify_visited_file_modtime): Check it.
4023 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4024 (Fset_visited_file_modtime): Set (or clear) it.
4026 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4028 * process.c (status_notify): Remove unused var `ro'.
4030 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4032 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4033 more than one visual (Bug#5938).
4035 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4037 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4040 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4042 Remove C_SWITCH_SYSTEM_TEMACS.
4043 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4044 (malloc, realloc, free): Use emacs, not temacs for conditional
4047 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4048 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4050 Use autoconf, not cpp for some variables.
4051 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4052 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4053 (ALL_CFLAGS): Use them as make variables.
4054 (really-lwlib, really-oldXMenu): Do not pass them.
4056 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4058 * xmenu.c (apply_systemfont_to_dialog): New.
4059 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4061 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4063 * process.c (exec_sentinel): Preserve current-buffer.
4065 * process.c (read_process_output): Move the save-current-buffer to
4066 apply to both the filter and the non-filter branches.
4068 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4070 * s/msdos.h (UNEXEC): New definition.
4072 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4074 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4075 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4077 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4078 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4079 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4080 TRY_WINDOW_CHECK_MARGINS.
4082 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
4083 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4084 width only when it is for padding.
4086 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4088 * xfns.c (Fx_show_tip): Call try_window in a loop until
4089 fonts_changed_p is zero (Bug#2423).
4091 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4093 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4094 the end of TEXT_AREA. (Bug#5856)
4096 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4098 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4101 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4103 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4104 prev.orig_type, for resolving type of NSM. (Bug#5858)
4106 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4108 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4109 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4111 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
4112 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4114 (syms_of_xsettings): Initialize current_font.
4115 defsubr Sfont_get_system_normal_font.
4117 * xsettings.h (Ffont_get_system_normal_font)
4118 (xsettings_get_system_normal_font): Declare.
4120 * xfns.c (extern xlwmenu_default_font): Remove.
4121 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4124 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4125 menu items in UTF-8.
4127 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4128 (apply_systemfont_to_menu): New function.
4129 (set_frame_menubar, create_and_show_popup_menu): Call
4130 apply_systemfont_to_menu.
4132 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4134 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4135 FRAME_LINE_TO_PIXEL_Y.
4137 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4140 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4142 Simplify code for HP machines.
4143 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4144 for GNU_LINUX, not needed.
4145 (UNEXEC, NEED_BSDTTY): Move definitions...
4146 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4148 * m/iris4d.h (UNEXEC): Move definition ...
4149 * s/irix6-5.h (UNEXEC): ... here.
4151 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4153 * xfns.c (set_machine_and_pid_properties): New function.
4154 (Fx_create_frame): Call set_machine_and_pid_properties.
4156 2010-04-03 Eli Zaretskii <eliz@gnu.org>
4158 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4159 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4160 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4162 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4163 in this function. (Bug#5703)
4165 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
4167 * nsterm.h: Fix last change.
4169 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4171 * m/intel386.h (NO_REMAP): Move definition ...
4172 * s/msdos.h (NO_REMAP): ... here.
4174 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4176 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4177 used on those platforms.
4179 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4181 Remove extern errno declarations.
4198 * buffer.c: Remove errno extern declarations.
4199 * s/netbsd.h (NEED_ERRNO): Remove.
4201 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4203 Remove all uses of LIBX11_SYSTEM.
4204 * Makefile.in (LIBX11_SYSTEM): Remove.
4205 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4208 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4210 Remove support for DJGPP v1.x (bug#5813).
4212 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4214 * unexec.c (make_hdr, copy_text_and_data):
4215 * sysdep.c (wait_for_termination, sys_subshell):
4216 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4217 (IT_set_terminal_modes, __write, _rename, gethostname)
4218 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4219 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4220 the value of __DJGPP__.
4221 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4224 * gmalloc.c (memalign):
4225 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4227 * dosfns.c (init_dosfns):
4228 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4230 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4232 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4233 string with `cursor' property comes from an `after-string'
4236 2010-04-01 Glenn Morris <rgm@gnu.org>
4238 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4239 Define as Makefile variables.
4240 (LIBX): Use above variables rather than directly using autoconf.
4242 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4244 Clean up BSD_SYSTEM use.
4247 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4248 for including <sys/ioctl.h>.
4249 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4250 code is only used for MSDOS.
4252 2010-03-31 Juri Linkov <juri@jurta.org>
4254 * image.c: Add `Qextension_data'.
4255 (syms_of_image): Initialize and staticpro `Qextension_data'.
4256 (Fimage_metadata): Rename from `Fimage_extension_data'.
4257 (gif_load): Put GIF extension data to the property
4260 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4262 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4263 * nsterm.h: Fix prototype.
4265 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4267 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4268 trailing whitespace in right-to-left rows.
4270 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4272 Get rid of the direct_output optimizations.
4273 * keyboard.c (nonundocount): Remove extern declaration.
4274 (command_loop_1): Remove brittle optimisation for cheap and
4276 * xdisp.c (redisplay_internal): Don't bother checking
4277 redisplay_performed_directly_p any more.
4278 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4280 * dispnew.c (redisplay_performed_directly_p)
4281 (direct_output_for_insert, direct_output_forward_char):
4282 * dispextern.h (redisplay_performed_directly_p)
4283 (direct_output_for_insert, direct_output_forward_char): Remove.
4284 * cmds.c (nonundocount): Make it static.
4286 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4288 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4290 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4292 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4293 invisible (Bug#5766).
4295 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4297 * xdisp.c (x_consider_frame_title, update_window_cursor):
4298 Remove HAVE_NS conditionals.
4299 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4301 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4302 filename for the title.
4303 (ns_set_doc_edited): Do nothing if the selected window is a
4306 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4309 * nsterm.m: Remove unneeded prototype.
4311 2010-03-31 Glenn Morris <rgm@gnu.org>
4313 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4314 in the DOC file. (Bug#5336)
4316 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4318 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4320 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4322 * window.c (keys_of_window): Remove redundant/overridden bindings.
4324 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4326 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4327 Restore original behavior when the iterator is not bidi_p.
4329 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4331 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4333 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4335 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4336 are outside the range of cached character positions.
4338 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4340 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4342 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4344 Initial support for bidirectional editing.
4346 * Makefile.in (obj): Include bidi.o.
4347 (bidi.o): New target.
4349 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4350 ($(BLD)/bidi.$(O)): New target.
4354 * buffer.h (struct buffer): New members bidi_display_reordering
4355 and bidi_paragraph_direction.
4357 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4358 and bidi_paragraph_direction.
4359 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4360 and bidi-paragraph-direction.
4361 (Fbuffer_swap_text): Swap the values of
4362 bidi_display_reordering and bidi_paragraph_direction.
4364 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4365 (bidi_type_t, bidi_dir_t): New types.
4366 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4367 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4368 prev_stop, base_level_stop, and eol_pos.
4369 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4370 (IT_STACK_SIZE): Enlarge to 5.
4371 (struct glyph_row): New member reversed_p.
4372 <string_buffer_position>: Update prototype.
4373 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4374 glyph_row if bidi_it.paragraph_dir == R2L.
4375 (struct glyph): New members resolved_level and bidi_type.
4377 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4378 processing or buffer's direction is right-to-left.
4379 (prepare_desired_row): Preserve the reversed_p flag.
4380 (row_equal_p): Compare the reversed_p attributes as well.
4382 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4383 bidi_init_it and set it->paragraph_embedding from the current
4384 buffer's value of bidi_paragraph_direction.
4385 (reseat_1): Initialize bidi_it.first_elt.
4386 (set_iterator_to_next, next_element_from_buffer): Use the value of
4387 paragraph_embedding to determine the paragraph direction.
4388 (set_iterator_to_next): Under bidi reordering, call
4389 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4390 new_paragraph flag is set in the bidi iterator.
4391 (next_element_from_buffer): If bidi_it.first_elt is set,
4392 initialize paragraph direction and find the first character to
4393 display in the visual order. If reseated to a middle of a line,
4394 prime the bidi iterator starting at the line's beginning. Handle
4395 the situation where we overstepped stop_charpos due to
4396 non-linearity of the bidi iteration. Likewise for when we back up
4397 beyond the previous stop_charpos. When moving across stop_charpos,
4398 record it in prev_stop.
4399 (display_line): Set row->end and it->start for the next row to the
4400 next character in logical order. Always extend reversed_p rows to
4401 the end of line, even if they end at ZV. Copy the reversed_p flag
4402 to the next glyph row. Keep calling set_cursor_from_row for
4403 bidi-reordered rows even if we already have a possible candidate
4404 for cursor position. Set row_end after all the row's glyphs have
4405 been produced, by looping over the glyphs. Record the position
4406 after EOL in it->eol_pos, and use it to set end_pos of the last
4407 row produced for a continued line.
4408 <Qright_to_left, Qleft_to_right>: New variables.
4409 (syms_of_xdisp): Initialize and staticpro them.
4410 (string_buffer_position_lim): New function.
4411 (string_buffer_position): Most of code moved to
4412 string_buffer_position_lim. Last argument and return value are
4413 now EMACS_INT; all callers changed.
4414 (set_cursor_from_row): Rewritten to support bidirectional text and
4415 reversed glyph rows.
4416 (text_outside_line_unchanged_p, try_window_id): Disable
4417 optimizations if we are reordering bidirectional text and the
4418 paragraph direction can be affected by the change.
4419 (append_glyph, append_composite_glyph)
4420 (produce_image_glyph, append_stretch_glyph): Set the
4421 resolved_level and bidi_type members of each glyph.
4422 (append_glyph): If the glyph row is reversed, prepend the glyph
4423 rather than appending it.
4424 (handle_stop_backwards): New function.
4425 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4426 (reseat): call handle_stop_backwards to recompute prev_stop and
4427 base_level_stop for the new position.
4428 (handle_invisible_prop): Under bidi iteration, skip invisible text
4429 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4430 paragraph direction. Update IT->prev_stop after skipping
4432 (move_it_in_display_line_to): New variables prev_method
4433 and prev_pos. Compare for strict equality in
4434 BUFFER_POS_REACHED_P.
4435 (try_cursor_movement): Examine all the candidate rows that occlude
4436 point, to return the best match. If rows are bidi-reordered
4437 and point moved backwards, back up to the row that is not a
4438 continuation line, and start looking for a suitable row from
4441 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4442 rather than appending, if the glyph_row's reversed_p flag is set.
4443 Set the resolved_level and bidi_type members of each glyph.
4445 * .gdbinit (pbiditype): New command.
4446 (pgx): Use it to display bidi level and type of the glyph.
4447 (pitx): Display some bidi information about the iterator.
4448 (prowlims, pmtxrows): New commands.
4450 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4452 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4453 * s/usg5-4.h (LIBS_DEBUG):
4454 * s/irix6-5.h (C_DEBUG_SWITCH):
4455 * s/gnu-linux.h (LIBS_DEBUG):
4456 * s/darwin.h (LIBS_DEBUG):
4457 * s/bsd-common.h (LIBS_DEBUG):
4458 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4459 * m/iris4d.h (LIBS_DEBUG):
4460 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4462 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4463 (LIBS_DEBUG): Remove definition.
4465 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4467 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4470 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4472 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4473 `connect' (Bug#5723).
4475 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4477 * process.c (Fmake_network_process): Call `select' for interrupted
4478 `connect' rather than creating new socket (Bug#5173).
4480 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4482 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4484 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4486 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4488 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4490 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4493 2010-03-24 Kenichi Handa <handa@m17n.org>
4495 * coding.c (decode_coding_ccl): Fix previous change for the
4497 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4498 case that the output buffer is fullfilled.
4499 (encode_coding): Setup ccl program here.
4501 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4503 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4505 Simplify LIBS_MACHINE definitions.
4506 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4507 * m/iris4d.h (LIBS_MACHINE): Likewise.
4508 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4509 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4510 * s/netbsd.h: Remove commented out code.
4512 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4514 Remove dead code dealing with POSIX_SIGNALS.
4515 * atimer.c (set_alarm): Remove dead code, all USG systems define
4517 * data.c (arith_error): Likewise.
4518 * keyboard.c (input_available_signal, handle_user_signal)
4519 (interrupt_signal): Likewise.
4520 * process.c (sigchld_handler): Likewise.
4521 (create_process): Remove if 0 code. Remove HPUX conditional when
4522 !defined (POSIX_SIGNALS), it cannot be true.
4523 * syssignal.h: Remove USG5_4 and USG conditionals when
4524 !POSIX_SIGNALS, they cannot be true.
4526 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4527 NO_SOCK_SIGIO, not used anymore.
4529 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4531 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4532 support vax on BSDs.
4534 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4535 * s/aix4-2.h (ORDINARY_LINK): ... here.
4537 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4539 * Makefile.in (abs_builddir): Define.
4540 (bootstrap_exe): Use it.
4541 (VPATH): Use $(srcdir) instead of @srcdir@.
4543 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4545 * Makefile.in (bootstrap_exe): Use an absolute name.
4547 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4549 Remove support for old GNU/Linux using libc version 5.
4550 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4551 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4553 Consolidate redundant definitions in s/bsd-common.h.
4554 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4555 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4556 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4557 doing it in all files that include this one.
4558 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4559 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4560 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4561 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4562 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4563 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4564 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4565 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4566 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4568 Consolidate redundant definitions.
4569 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4570 it's undefined in all files that include this one.
4571 (POSIX_SIGNALS): Define here instead of doing it in all files that
4573 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4574 (POSIX_SIGNALS): Do not define.
4575 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4576 (POSIX_SIGNALS): Do not define.
4577 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4578 (POSIX_SIGNALS): Do not define.
4580 Remove support for old UNIX System V systems.
4581 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4582 * s/usg-5-4-2.h: Remove.
4584 Remove support for Solaris on PPC and for old versions.
4585 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4586 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4587 that cancel each other.
4590 * s/sol2-5.h: Remove.
4591 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4592 (NO_REMAP): Remove, unused.
4593 (UNEXEC): Move definition ...
4594 * s/aix4-2.h (UNEXEC): ... here.
4596 * s/openbsd.h: Remove support for non-ELF and for systems that do
4597 not support shared libraries.
4599 * s/freebsd.h: Likewise.
4601 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4603 Remove non-working support for lynxos 3.0.
4604 * s/lynxos.h: Remove file.
4606 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4607 COFF_BSD_SYMBOLS, nothing defines it anymore.
4609 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4611 Remove obsolete uses of HAVE_SHM.
4612 * emacs.c (standard_args):
4614 (syms_of_emacs): Remove code depending on HAVE_SHM.
4616 * alloc.c: Remove HAVE_SHM dependent definition.
4618 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4620 2010-03-18 Glenn Morris <rgm@gnu.org>
4622 * emacs.c (USAGE4): Hard-code bug address.
4623 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4624 (bug_reporting_address): Remove.
4625 (main): Don't call bug_reporting_address.
4627 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4628 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4630 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4632 * xfns.c (Fx_create_frame):
4633 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4636 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4638 * editfns.c (Fformat): Account for string precision when computing
4639 field width (Bug#5710).
4641 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4643 * xfns.c (Fx_create_frame): Set default to Qright.
4645 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4648 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4650 These changes remove termcap.c from the build on Posix platforms.
4651 * Makefile.in (termcapobj): Move termcap.o from here...
4652 (MSDOS_OBJ): ...to here.
4653 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4654 now identical to when LIBS_TERMCAP is defined.
4656 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4658 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4660 * config.in: Regenerated. (See top-level ChangeLog.)
4662 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4666 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4668 Cleanup setup of gl_state in various parts of the code.
4669 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4670 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4671 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4673 * regex.c (regex_compile): Use it.
4674 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4675 it's now set in regex_compile when/if we need it.
4677 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4679 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4680 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4681 (QUIT): Use it to consolidate code and remove redundancy.
4682 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4684 * regex.c (regex_compile): Setup gl_state as well.
4686 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4687 (in_classes): Use CONSP before XCAR/XCDR.
4689 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4691 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4692 definitions, so that keyboard macros are correctly handled
4695 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4697 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4698 text that could be relocated inside the call to emacs_mule_char.
4699 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4700 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4702 2010-03-02 Kenichi Handa <handa@m17n.org>
4704 * character.c (parse_str_as_multibyte): Fix handling of the
4705 multibyte form of raw-bytes.
4706 (str_as_multibyte): Likewise.
4708 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4711 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4713 * charset.c (load_charset_map_from_file)
4714 (load_charset_map_from_vector): Zero out allocated
4715 charset_map_entries before using them.
4717 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4719 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4721 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
4723 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4724 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4726 2010-02-26 Kenichi Handa <handa@m17n.org>
4728 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4730 * xdisp.c (reseat_to_string): Fix previous change.
4732 2010-02-26 David Reitter <david.reitter@gmail.com>
4734 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4735 Lisp_Object (Bug#4736).
4737 2010-02-25 Kenichi Handa <handa@m17n.org>
4739 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4741 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4743 * xterm.c (XTflash): Move declarations before statements.
4745 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4746 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4747 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4748 (xg_create_tool_bar): Remove unused variables.
4749 (x_wm_set_size_hint): Move declarations before statements.
4750 (xg_create_frame_widgets): Remove variable grav.
4752 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
4754 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4756 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4758 * term.c (fatal): Add a final \n if needed (bug#5596).
4760 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
4762 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4764 2010-02-18 Glenn Morris <rgm@gnu.org>
4766 * callint.c (Finteractive): Doc fix.
4768 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4770 * coding.c (record_conversion_result):
4771 Handle CODING_RESULT_INSUFFICIENT_DST.
4772 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4773 memory allocation error.
4775 2010-02-17 Kenichi Handa <handa@m17n.org>
4777 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4778 Fix for the case that the output buffer is fullfilled.
4779 (decode_coding): Setup ccl program here. Keep looping when the
4780 decoder stopped because the output buffer is
4781 fullfilled (bug#5534).
4783 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4785 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4787 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
4789 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
4792 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4794 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4795 doing_interact here.
4796 (ice_connection_closed): New function.
4797 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4798 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4799 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4801 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4804 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
4806 * nsfont.m (nsfont_open): The system's value for the font descent
4807 is negative, so round it down to avoid clipping.
4809 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
4811 * charset.c (load_charset_map_from_file)
4812 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
4813 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
4815 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
4817 * charset.c (load_charset_map_from_file): Allocate large
4818 charset_map_entries structure on the heap rather than the stack.
4821 2010-01-31 Kenichi Handa <handa@m17n.org>
4823 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4824 size in NAME is invalid, return -1 (Bug#5396).
4826 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
4828 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4829 <deactivated@gmail.com> (Bug#3605).
4831 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
4833 * fileio.c (Frename_file): Correctly rename symlinks to
4834 directories (Bug#5496).
4836 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4838 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4840 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4842 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4844 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
4846 * frame.c (DEFAULT_ROWS): Change default to 35.
4848 * xfns.c (x_default_font_parameter): Change default XFT font to
4849 monospace-10 (Bug#3643).
4851 2010-01-29 Eli Zaretskii <eliz@gnu.org>
4853 * w32inevt.c (key_event): Remove unnecessary comparison of
4854 event->uChar.AsciiChar with 128.
4856 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
4858 * fileio.c (Frename_file): Fix last change (Bug#5487).
4860 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4862 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4864 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4866 * xfns.c (Fx_create_frame): Remove window size matching code from
4868 (x_get_current_desktop, x_get_desktop_workarea): Remove.
4870 2010-01-27 Jason Rumney <jasonr@gnu.org>
4872 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
4873 (key_event): Use unicode for characters 128 and higher (Bug#4567).
4875 2010-01-27 Kenichi Handa <handa@m17n.org>
4877 * regex.c (analyse_first): Fix setting of fastmap for unibyte
4878 pattern string (Bug#4209).
4880 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
4882 * fileio.c (Frename_file): Call copy-directory and
4883 delete-directory for directories, in order to handle cross-device
4884 renaming (Bug#3353).
4886 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4888 * xfns.c (Fx_create_frame): If frame height is too big, try
4889 sizes 24 and 10. Bug #3643.
4891 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4893 Try and fix bug#788, hopefully for real this time.
4894 * keymap.c (shadow_lookup): Add `remap' arg.
4895 (describe_map, describe_vector): Update calls to shadow_lookup.
4896 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4897 `remapped' so this flag is applicable to `sequence'. Be careful to
4898 perform remapping during shadow_lookup check of remapped_sequences.
4900 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4902 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4903 png_check_sig, which has been removed in libpng 1.4.
4905 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4907 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4908 lacks this header file).
4910 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4912 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4915 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4917 * lisp.h (make_pure_string): String pointer arg now points to const.
4919 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4920 args now point to const.
4922 2010-01-22 Eli Zaretskii <eliz@gnu.org>
4924 * lread.c (Fload): Don't treat files without .elc extension as
4925 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4928 2010-01-20 Kenichi Handa <handa@m17n.org>
4930 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4931 treat the source as actual byte sequence.
4933 2010-01-19 Alan Mackenzie <acm@muc.de>
4935 Fix spurious before-change-functions invocation from (insert ?\n).
4936 * textprop.c (set_text_properties): Rename parameter
4937 `signal_after_change_p' to `coherent_change_p', and make the
4938 invocation of `modify_region' conditional on it.
4940 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4942 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4944 (syms_of_xsettings): Declare xft-settings.
4946 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
4948 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4950 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4952 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4954 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
4956 * emacs.c (standard_args): Adjust arg priorities to reflect how
4957 they are processed in startup.el.
4959 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4961 * Makefile.in (lisp, shortlisp): Update.
4963 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4965 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4966 code, link the new kboard into all_kboard before running Lisp code,
4967 and protect the new terminal with GCPRO (Bug#5365).
4968 (x_term_init): Remove unused var `atom'.
4969 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4971 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4973 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4974 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4975 to find out usable size of the desktop. Don't make frames larger than
4978 2010-01-15 Kenichi Handa <handa@m17n.org>
4980 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4982 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
4984 * nsterm.m (Qnone): Define.
4986 * nsfns.m (Qnone): Move definition to nsterm.m.
4988 2010-01-14 Kenichi Handa <handa@m17n.org>
4990 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4993 2010-01-14 Kenichi Handa <handa@m17n.org>
4995 Make auto-composition work on all buffers even if they are
4998 * composite.c (Vauto_composition_mode): New variable.
4999 (composition_compute_stop_pos): Check Vauto_composition_mode
5000 instead of Vauto_composition_function.
5001 (composition_adjust_point, Ffind_composition_internal): Likewise.
5002 (syms_of_composite): Declare Lisp variable
5003 "auto-composition-mode" here.
5005 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5007 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5008 during call to vendor-specific-keysyms (Bug#5365).
5010 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5012 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5013 Call SIGNAL_THREAD_CHECK (Bug#5333).
5015 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5016 Call SIGNAL_THREAD_CHECK.
5018 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5020 Try to fix bug#5314. This is probably not the final word, tho.
5021 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5022 recent-auto-save-p as a side-effect.
5023 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5024 * buffer.c (Fkill_buffer, reset_buffer):
5025 * editfns.c (Fsubst_char_in_region):
5026 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5027 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5029 2010-01-13 Kenichi Handa <handa@m17n.org>
5031 Display buffer name, etc. in mode line by composing correctly.
5033 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5035 (display_mode_element): Adjust for the change of
5036 decode_mode_spec and display_line.
5037 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5038 (display_string): Handle the case that STRING is non-null and
5039 LISP_STRING is not nil.
5041 * xterm.c (x_draw_composite_glyph_string_foreground):
5042 Pay attention to s->face->overstrike.
5044 * composite.c (composition_reseat_it): Don't check PT if STRING is
5047 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5049 * keyboard.c (read_char): Don't apply previous change when current
5050 buffer is unchanged by command execution.
5052 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5054 * keyboard.c (read_char): Return after executing from special map.
5056 2010-01-12 Glenn Morris <rgm@gnu.org>
5058 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5059 bug-gnu-emacs rather than emacs-pretest-bug.
5061 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
5063 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5064 initializing the Lisp variables that depend on them.
5066 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5068 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5069 Clear areas that will not be updated after change of menu bar lines.
5070 Clear the menu bar window's current matrix when the window gets empty.
5072 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
5074 * intervals.h, textprop.c (extend_property_ranges): Return value
5075 and args changed. Discard properties that begin at or after the
5078 * editfns.c (Fformat): Caller changed.
5080 * nsterm.m (ns_set_default_prefs): Delete function.
5081 (syms_of_nsterm): Initialize ns_command_modifier,
5082 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5083 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5085 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5086 position (Bug#4040).
5088 2010-01-09 Eli Zaretskii <eliz@gnu.org>
5090 * editfns.c (Ffloat_time): Doc fix.
5092 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5094 * xfns.c (Fx_create_frame): Don't create frame larger than display
5095 by default bug#3643.
5097 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5099 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5100 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5101 windows above internal border.
5103 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5104 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5105 windows above internal border.
5107 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5108 tool bar windows specially.
5110 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5112 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5114 (XTflash): Take account of menu bar height.
5116 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5119 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5121 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5122 also be true before we can return early (bug #5339).
5124 2010-01-06 David Reitter <david.reitter@gmail.com>
5126 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5127 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5130 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5132 * font.c (font_open_entity): Enable chache and call cached_font_ok
5133 for the driver if defined.
5134 (QCuser_spec): New symbol.
5135 (font_spec_from_name): Save name as user-spec.
5136 (font_load_for_lface): Keep user-spec instead of name.
5137 (font_open_by_name): Save name as user-spec.
5138 (syms_of_font): Initialize QCuser_spec.
5139 (font_clear_prop): Clear name if it exists in font (bug#5157).
5141 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5142 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5143 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5145 * font.h (struct font_driver): Add cached_font_ok.
5147 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5149 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5151 * xterm.c (x_new_font): Move code for setting rows/cols before
5153 (x_set_window_size): ... to here. Bug #2568.
5155 * gtkutil.c (xg_clear_under_internal_border): New function.
5156 (xg_frame_resized, xg_frame_set_char_size):
5157 Call xg_clear_under_internal_border.
5158 (xg_update_scrollbar_pos): Clear under old scroll bar position.
5160 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
5162 * keyboard.c (read_key_sequence): Catch keyboard switch after
5163 making a new tty frame (Bug#5095).
5165 2010-01-05 Kenichi Handa <handa@m17n.org>
5167 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5169 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5171 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5172 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5173 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5175 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
5177 * dbusbind.c (xd_add_watch): Improve debug message.
5178 (xd_remove_watch): Improve debug message. If DATA is the session
5179 bus, unset D-Bus session environment.
5180 (Fdbus_init_bus): Pass the bus as argument to
5181 dbus_connection_set_watch_functions. (Bug#5283)
5183 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5185 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5187 * lread.c (syms_of_lread): Make it clearer that these are the
5188 names of loaded files (Bug#5068).
5190 * eval.c (run_hook_with_args): Handle the case where the global
5191 value has the obsolete single-function form (Bug#5026).
5193 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5195 * minibuf.c (Fall_completions): Minor optimization.
5197 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5199 * .gdbinit (pgx): Fix display of composite glyphs.
5200 Display cmp.from and cmp.to as well.
5201 (pitx): Fix last change.
5203 2009-12-25 Kenichi Handa <handa@m17n.org>
5205 * composite.h (composition_adjust_point): Update prototype.
5207 * composite.c (composition_reseat_it): Don't make a composition
5208 spanning over point.
5209 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5210 composable characters.
5211 (composition_adjust_point): New arg NEW_PT. Callers changed.
5213 * keyboard.c (command_loop_1): Force redisplay if the last point
5214 was within a composition.
5215 (adjust_point_for_property): Don't adjust point for automatic
5216 composition when called after buffer modification.
5218 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5220 * .gdbinit (pitx): Don't use enum names, use their values.
5221 Remove reference to non-existing value GET_FROM_COMPOSITION.
5222 (pgx): Don't use enum names, use their values.
5223 (pitmethod): New helper command.
5224 (pitx): Use it to display iteration method.
5225 (pgrowit): New command.
5227 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5229 Update dependencies in Makefile.in.
5231 * Makefile.in (alloc.o): Depend on termhooks.h.
5232 (atimer.o): Depend on blockinput.h.
5233 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5235 (callint.o): Depend on systime.h, coding.h, and composite.h.
5236 (callproc.o): Depend on buffer.h.
5237 (casefiddle.o): Don't depend on charset.h.
5238 (casetab.o): Depend on character.h.
5239 (ccl.o): Depend on composite.h.
5240 (chartab.o): Depend on ccl.h.
5241 (cm.o): Depend on dispextern.h.
5242 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5243 (coding.o): Don't depend on $(INTERVALS_H).
5244 (composite.o): Don't depend on dispextern.h explicitly (it's in
5245 $(INTERVALS_H)). Depend on ccl.h.
5246 (data.o): Depend on systime.h, coding.h, composite.h,
5247 dispextern.h, font.h, and ccl.h.
5248 (dired.o): Depend on composite.h.
5249 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5250 composite.h (it's in $(INTERVALS_H)).
5251 (doc.o): Depend on systime.h, coding.h, and composite.h.
5252 (editfns.o): Don't depend explicitly on dispextern.h.
5253 (emacs.o): Depend on frame.h and coding.h.
5254 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5255 (fileio.o): Depend on frame.h and commands.h. Don't depend
5256 explicitly on dispextern.h.
5257 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5259 (fns.o): Don't depend on termhooks.h.
5260 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5261 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5262 coding.h, $(INTERVALS_H), window.h, xterm.h.
5263 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5264 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5265 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5266 fontset.h, ccl.h, and ftfont.h.
5267 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5268 (gtkutil.o): Depend on dispextern.h and composite.h.
5269 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5270 termhooks.h, and ccl.h.
5271 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5272 (intervals.o): Depend on systime.h and coding.h.
5273 (keyboard.o): Depend on composite.h and coding.h.
5274 (keymap.o): Depend on coding.h and frame.h.
5275 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5276 (macros.o): Depend on systime.h, coding.h, and composite.h.
5277 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5279 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5280 dispextern.h explicitly.
5281 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5282 Don't depend explicitly on dispextern.h and composite.h.
5283 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5284 (regex.o): Don't depend on charset.h.
5285 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5286 (search.o): Don't depend explicitly on composite.h.
5287 (sound.o): Depend on atimer.h and systime.h.
5288 (syntax.o): Don't depend explicitly on composite.h.
5289 (sysdep.o): Depend on coding.h and composite.h.
5290 (term.o): Depend on xterm.h and buffer.h.
5291 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5292 (textprop.o): Don't depend on dispextern.h explicitly.
5293 (undo.o): Depend on dispextern.h.
5294 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5295 dispextern.h and composite.h explicitly.
5296 (xdisp.o): Depend on ccl.h.
5297 (xfaces.o): Depend on coding.h and ccl.h.
5298 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5299 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5300 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5302 (xgselect.o): New dependency.
5303 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5304 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5305 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5306 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5307 (xsmfns.o): Depend on frame.h and dispextern.h.
5308 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5311 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5313 * font.c (Fclear_font_cache): Pass correct cache argument to
5316 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5318 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5321 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5323 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5324 calling file-remote-p. Reported by Jim Meyering.
5326 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5328 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5329 avoid compiler warnings. (Bug #5217)
5331 2009-12-14 Kenichi Handa <handa@m17n.org>
5333 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5336 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5338 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5341 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5343 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5344 Xatom_net_window_type.
5346 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5347 Xatom_net_window_type.
5349 * xterm.c (my_log_handler): New function.
5350 (x_term_init): Set my_log_handler as log handler during gtk_init
5351 so we can filter out buggy messages. (Bug #5120).
5353 * xterm.c (xg_scroll_callback): Parameter list changed,
5354 use parameter GtkScrollType to determine scroll/line/page.
5355 Only allow dragging if a button < 4 is grabbed (bug #5177).
5356 (xg_end_scroll_callback): New function.
5357 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5358 xg_create_scroll_bar.
5360 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5361 (scroll_end_callback): Remove.
5362 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5363 button-release-event. Replace value-changed event with change-value,
5365 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5368 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5369 (xg_create_scroll_bar): Add GCallback end_callback.
5371 * xftfont.c (QClcdfilter): New variable.
5372 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5373 (syms_of_xftfont): Initialize QClcdfilter.
5375 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5377 * xsettings.c (struct xsettings): Add member seen.
5378 (parse_xft_settings): Update member seen with what we have read.
5379 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5380 (apply_xft_settings): Only update Xft settings with what member seen
5383 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5385 * dispextern.h (struct text_pos): Use EMACS_INT.
5386 (struct glyph): Use EMACS_INT for charpos.
5387 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5388 region_beg_charpos, region_end_charpos,
5389 redisplay_end_trigger_charpos, and also for
5390 iterator_stack_entry.end_charpos and
5391 iterator_stack_entry.stop_charpos.
5393 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5395 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5396 (xg_create_scroll_bar): Call scroll_end_callback on button release
5398 (xg_event_is_for_scrollbar): != replaced with ==.
5400 2009-12-12 Kenichi Handa <handa@m17n.org>
5402 * ftfont.c (struct ftfont_info): New member matrix.
5403 (ftfont_open): Setup xftfont_info->matrix.
5404 (MFLTFontFT): New member matrix.
5405 (FLOOR, CEIL, ROUND): New macros.
5406 (ftfont_get_metrics): Handle matrix transformation.
5407 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5409 * xftfont.c (struct xftfont_info): New member matrix.
5410 (xftfont_open): Setup xftfont_info->matrix.
5412 2009-12-10 Kenichi Handa <handa@m17n.org>
5414 * xdisp.c (append_space_for_newline): Consider face-remapping.
5416 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5418 * xsettings.c: Include "keyboard.h".
5420 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5422 Fix implicit function declarations.
5423 * cmds.c: Include "frame.h".
5424 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5425 * frame.h: Move declaration of delete_frame outside of
5428 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5430 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5432 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5435 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5437 * unexelf.c (unexec): Don't search for .data twice.
5439 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5441 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5443 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5444 of push_display_prop (Bug#5000).
5446 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5447 value of font_list_entities (Bug#5085).
5449 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5451 Fix `string-to-number' to deal consistently with integers and floats.
5452 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5453 trailing characters, not just whitespace.
5454 (read1): Pass new arg 0 to keep old behavior.
5455 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5456 trailing chars, as it is already done for integers. Doc fixes.
5457 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5459 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5461 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5462 Delete unused enumeration value.
5464 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5466 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5468 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5470 * process.c (Fmake_network_process): Fix up the tests for
5471 "connectionless socket", so they DTRT for seqpacket sockets as well.
5473 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5475 * process.c (Qseqpacket): New symbol.
5476 (HAVE_SEQPACKET): New macro.
5477 (Fmake_network_process): Accept new :type `seqpacket'.
5478 (init_process): Add `seqpacket' feature when applicable.
5479 (syms_of_process): Initialize Qseqpacket.
5481 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5483 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5486 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5488 * print.c (print_preprocess): Preprocess the key_and_value table of
5489 hashtables, even tho they're "hidden" (bug#5082).
5491 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5493 * frame.c (frame_make_pointer_invisible)
5494 (frame_make_pointer_visible): Declare f before statements.
5496 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5498 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5499 omitted dependencies on lisp.h.
5501 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5503 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5506 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5508 * frame.c (frame_make_pointer_invisible)
5509 (frame_make_pointer_visible): Just return if there isn't any selected
5512 * search.c (simple_search): Remove warning by making *p const.
5514 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5516 * xdisp.c (power_letter): Remove duplicate const.
5518 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5520 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5522 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5523 defaults (bug #5025).
5525 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5527 * insdel.c (adjust_markers_for_delete): Move it in the
5528 right direction! (bug#4803)
5530 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5532 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5534 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5536 2009-11-24 Glenn Morris <rgm@gnu.org>
5538 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5540 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5542 * Makefile.in: Must create deps for ecrt0.o in its rule.
5544 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5545 because that is what Gtk+ font dialog understands.
5547 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5549 (font_open_by_name): Put name given into QCname for font-object returned.
5551 * frame.c (x_set_font): Save original font name as frame parameter
5554 * xsettings.c (set_default_xft_settings): New function.
5555 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5558 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5560 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5561 searching backwards through multibyte buffer.
5563 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5565 * xterm.c: #include xgselect.h.
5566 (x_initialize): Call xgselect_initialize.
5568 * xsettings.c (something_changedCB): C++ comments => C comments.
5569 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5572 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5573 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5574 (scroll_bar_button_cb): Remove.
5575 (create_menus): C++ comments => C comments. Don't bind grab-notify
5577 (xg_create_scroll_bar): Don't bind button-press-event and
5578 button-release-event.
5580 * process.c: Include xgselect.h if defined (USE_GTK) ||
5581 defined (HAVE_GCONF).
5582 (wait_reading_process_output): Call xg_select for the same condition.
5584 * xgselect.c (xg_select): New function to better integrate with
5585 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5587 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5589 * Makefile.in (XOBJ): Add xgselect.o.
5591 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5593 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5594 Remove ignored second argument. All callers changed.
5595 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5596 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5597 * xdisp.c (string_char_and_length): Likewise.
5599 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5601 * xterm.c (x_new_font):
5602 * print.c (print_object):
5603 * cmds.c (Fself_insert_command): Move declarations before statements.
5605 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5607 * s/cygwin.h: Remove unneeded linker flags.
5609 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5611 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5613 * xsettings.h: Declare xsettings_get_system_font.
5615 * xsettings.c (xsettings_get_system_font): New function.
5616 (init_gconf): No use initiating gconf unless we have Xft also.
5617 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5620 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5621 add a blank entry so it doesn't collapse into nothing.
5623 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5625 * lread.c (Funintern): Comment out last change.
5627 2009-11-19 Richard Stallman <rms@gnu.org>
5629 * lread.c (Funintern): Error if symbol is t or nil.
5631 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5633 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5634 representation of Lisp integers.
5635 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5637 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5639 * lisp.h: Remove declaration of Ffont_get_system_font.
5640 * xfns.c: Move include of "xsettings.h".
5641 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5643 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5645 * xsettings.c (something_changedCB, Ffont_get_system_font):
5646 Check use_system_font.
5647 (syms_of_xsettings): DEFVAR font-use-system-font.
5649 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5651 * xfns.c (x_default_font_parameter): Remove dead assignment.
5653 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5655 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5657 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5658 not have FC_LCD_*. #define them if not there.
5660 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5662 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5664 * xterm.c (handle_one_xevent): Call xft_settings_event for
5665 ClientMessage, PropertyNotify and DestroyNotify.
5666 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5667 Call xsettings_initialize.
5669 * xftfont.c (xftfont_fix_match): New function.
5670 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5671 Call xftfont_fix_match after XftFontMatch.
5673 * xfont.c (xfont_driver): Initialize all members.
5675 * xfns.c (x_default_font_parameter):
5676 Try font from Ffont_get_system_font.
5677 Do not get font from x_default_parameter if we got one from
5678 Ffont_get_system_font.
5679 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5681 * w32font.c (w32font_driver): Initialize all members.
5683 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5685 * lisp.h: Declare syms_of_xsettings.
5687 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5688 Handle CONFIG_CHANGED_EVENT.
5690 * ftfont.c (ftfont_filter_properties): New function.
5692 * frame.c (x_set_font): Remove unused variable lval.
5694 * font.h (struct font_driver): Add filter_properties.
5696 * font.c (font_put_extra): Don't return if val is nil, it means
5697 boolean option is off.
5698 (font_parse_fcname): Collect all extra properties in extra_props
5699 and call filter_properties for all drivers with extra_props and
5701 (font_open_entity): Do not use cache, it does not pick up new
5702 fontconfig settings like hinting.
5703 (font_load_for_lface): If spec had a name in it, store it in entity.
5705 * emacs.c (main): Call syms_of_xsettings.
5707 * config.in: HAVE_GCONF is new.
5709 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5712 2009-11-17 Kenichi Handa <handa@m17n.org>
5714 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5715 back to the default font in case that no suitable font is found.
5717 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5719 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5720 Suggested by Chad Brown <yandros@mit.edu>.
5721 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5723 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5725 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5727 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5729 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5731 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5733 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5736 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5737 dependency files in deps/. Include those files into Makefile.
5739 * config.in: Generated (AUTO_DEPEND).
5741 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
5743 * dbusbind.c (Vdbus_registered_objects_table): Rename from
5744 Vdbus_registered_functions_table, because it contains also
5745 properties. Fix docstring.
5746 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
5748 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5750 * alloc.c (mark_object): Don't reprocess marked strings.
5751 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5752 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5754 2009-11-13 Kenichi Handa <handa@m17n.org>
5756 * category.c (word_boundary_p): Adjust for the change of the
5757 semantics of Vword_combining_categories.
5758 (Vword_combining_categories): Describe the slight change of the
5761 2009-11-13 Eli Zaretskii <eliz@gnu.org>
5763 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5765 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5767 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5769 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5771 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
5773 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5775 2009-11-11 David Reitter <david.reitter@gmail.com>
5777 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5778 variables to fix 2009-11-09 change.
5780 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5782 * process.c (ifflag_def): Make flag_sym constant.
5783 (Fnetwork_interface_info): Use a constant pointer.
5785 * xfns.c (cursor_bits):
5786 * xdisp.c (power_letter):
5787 * termcap.c (speeds, esctab):
5788 * sysdep.c (baud_convert):
5789 * keyboard.c (lispy_accent_codes, modifier_names):
5790 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5791 (jpeg_format, tiff_format, gif_format, svg_format)
5792 (interlace_start, interlace_increment, gs_format):
5793 * gtkutil.c (separator_names):
5794 * fringe.c (swap_nibble):
5795 * fns.c (base64_value_to_char, base64_char_to_value):
5796 * fileio.c (make_temp_name_tbl):
5797 * coding.c (suffixes): Make constant.
5799 * frame.c (make_initial_frame):
5800 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5802 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5805 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5807 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5808 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5810 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5811 * xterm.c (syms_of_xterm):
5812 * xfaces.c (syms_of_xfaces):
5813 * xdisp.c (syms_of_xdisp):
5814 * lread.c (syms_of_lread):
5815 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5818 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5820 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5822 * fns.c (Fplist_get): Merge the active and the commented out code.
5824 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5826 * keyboard.h: Declare timer_check.
5828 * keyboard.c (timer_check_2): New function that does what the old
5830 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5831 returned, i.e. don't return -1 with timers pending.
5833 * process.c: Remove extern declaration of timer_check.
5835 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5836 even if timer_check returned -1.
5838 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5840 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5842 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5843 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5844 Destroy the dialog after xg_dialog_run.
5846 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5848 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5850 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5852 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5854 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
5856 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5858 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5860 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5861 w32menu.c, and nsmenu.m.
5862 Simplify the obsolete case where position is nil.
5863 (cleanup_popup_menu): New function, moved from nsmenu.m.
5864 (struct skp): Remove slot `notreal'.
5865 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5867 (single_menu_item): Adjust call to parse_menu_item.
5868 (syms_of_menu): Defsubr x-popup-menu.
5869 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5870 (keymap_panes): Don't export any more.
5871 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5872 (xmenu_show): Declare.
5873 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5874 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5875 * keyboard.h (parse_menu_item): Update declaration.
5876 * xmenu.c (Fx_popup_menu): Remove.
5877 (syms_of_xmenu): Don't defsubr x-popup-menu.
5878 * w32menu.c (Fx_popup_menu): Remove.
5879 (syms_of_w32menu): Don't defsubr x-popup-menu.
5880 * nsmenu.m (cleanup_popup_menu): Remove.
5881 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5882 moved to menu.c's Fx_popup_menu.
5883 (Fx_popup_menu): Remove.
5884 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5885 menu_items (it's done in menu.c already).
5887 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5889 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5890 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5892 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
5894 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
5895 xmenu_show. Hide any tooltip before opening a menu.
5896 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5897 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5899 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5901 Let integers use up 2 tags to give them one extra bit and thus double
5903 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5904 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5906 (enum Lisp_Type): Use them. Give explicit values.
5907 (Lisp_Type_Limit): Remove.
5908 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5909 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5910 Pay attention to USE_2_TAGS_FOR_INTS.
5911 (INTEGERP): Use LISP_INT_TAG_P.
5912 * fns.c (internal_equal): Simplify the default case.
5913 (sxhash): Use case_Lisp_Int.
5914 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5916 (Ftype_of): Use case_Lisp_Int.
5917 (store_symval_forwarding): Take into account the fact that Ints can
5918 now have more than one tag.
5919 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5920 (buffer_slot_type_mismatch):
5921 * xfaces.c (face_attr_equal_p):
5922 * print.c (print_object):
5923 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5926 2009-11-06 Eli Zaretskii <eliz@gnu.org>
5928 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5930 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5933 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5935 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5937 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5939 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5940 ButtonPressRelease and MotionNotify (bug#4870).
5942 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5944 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5946 * xterm.c (syms_of_xterm):
5947 * xselect.c (syms_of_xselect):
5948 * xmenu.c (syms_of_xmenu):
5949 * xfns.c (syms_of_xfns):
5950 * xfaces.c (syms_of_xfaces):
5951 * xdisp.c (syms_of_xdisp):
5952 * window.c (syms_of_window):
5953 * w32fns.c (syms_of_w32fns):
5954 * undo.c (syms_of_undo):
5955 * textprop.c (syms_of_textprop):
5956 * terminal.c (syms_of_terminal):
5957 * syntax.c (syms_of_syntax):
5958 * sound.c (syms_of_sound):
5959 * search.c (syms_of_search):
5960 * print.c (syms_of_print):
5961 * minibuf.c (syms_of_minibuf):
5962 * macros.c (syms_of_macros):
5963 * keymap.c (syms_of_keymap, initial_define_key)
5964 (initial_define_lispy_key):
5965 * keyboard.c (syms_of_keyboard):
5966 * insdel.c (syms_of_insdel):
5967 * image.c (syms_of_image):
5968 * fringe.c (syms_of_fringe):
5969 * frame.c (syms_of_frame):
5970 * fontset.c (syms_of_fontset):
5971 * fns.c (syms_of_fns):
5972 * fns.c (syms_of_fns):
5973 * fileio.c (syms_of_fileio):
5974 * fileio.c (syms_of_fileio):
5975 * eval.c (syms_of_eval):
5976 * doc.c (syms_of_doc):
5977 * dispnew.c (syms_of_display):
5978 * dired.c (syms_of_dired):
5979 * dbusbind.c (syms_of_dbusbind):
5980 * data.c (syms_of_data):
5981 * composite.c (syms_of_composite):
5982 * coding.c (syms_of_coding):
5983 * cmds.c (syms_of_cmds):
5984 * charset.c (define_charset_internal, syms_of_character):
5985 * ccl.c (syms_of_ccl):
5986 * category.c (syms_of_category, init_category_once):
5987 * casetab.c (syms_of_casetab):
5988 * casefiddle.c (syms_of_casefiddle):
5989 * callint.c (syms_of_callint):
5990 * bytecode.c (syms_of_bytecode):
5991 * buffer.c (keys_of_buffer, syms_of_buffer):
5992 * alloc.c (syms_of_alloc):
5993 * process.c (syms_of_process, init_process):
5994 * lread.c (syms_of_lread, init_obarray):
5995 * font.c (build_style_table):
5996 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5997 intern_c_string, calls to make_pure_string with
5998 make_pure_c_string. Use pure_cons instead of Fcons.
6000 * process.c (socket_options): Make it const.
6001 (set_socket_option, init_process): Use a const pointer.
6003 * lread.c (intern_c_string): New function.
6004 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6005 (defvar_int): Uset it. Make the name const char*.
6007 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6008 (defvar_int): Update prototypes.
6009 (DEFUN, EXFUN): Support for prototypes is now required.
6010 (intern_c_string): New prototype.
6011 (struct Lisp_Subr): Make symbol_name constant.
6013 * font.c (struct table_entry): Remove unused member. Make NAMES
6015 (weight_table, slant_table, width_table): Make constant.
6017 * emacs.c (struct standard_args): Make name and longname constant.
6019 * character.h (DEFSYM): Use intern_c_string.
6021 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6023 * alloc.c (make_pure_c_string): New function.
6025 * eval.c (Fautoload): Purecopy all arguments.
6027 2009-11-05 Kenichi Handa <handa@m17n.org>
6029 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6030 the buffer in case of replace.
6032 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6034 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6036 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6038 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6039 when applicable (bug#4851).
6041 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6042 (P_): Support for prototypes is now required.
6044 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
6046 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6049 2009-10-30 Eli Zaretskii <eliz@gnu.org>
6051 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
6053 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6055 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6057 * lread.c (Fload): Purecopy the file name when building
6058 Vpreloaded_file_list.
6060 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6062 * w32fns.c (syms_of_w32fns): Change default value of
6063 w32-scroll-lock-modifier to nil. (Bug#2827)
6065 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6067 * minibuf.c (Fall_completions): Fix typos in docstring.
6069 2009-10-26 Andreas Schwab <schwab@redhat.com>
6071 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6073 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6075 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6076 For delta < 0, skip check that only makes sense when the mini-window
6077 is going to be enlarged. (Bug#4534)
6079 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
6081 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6082 string in menu maps (Bug#4471).
6084 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
6086 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6087 FRAME_NS_VIEW on terminal frames (Bug#4765).
6089 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6091 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6092 DBUS_TYPE_UINTnn separately to get proper sign extension.
6094 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6095 can properly handle unsigned types.
6096 (make_uid, make_gid): Remove.
6098 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6101 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
6102 (system_process_attributes): Likewise.
6104 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6106 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6108 * eval.c (Fautoload): Purecopy the filename. Simplify.
6110 * category.c (Fdefine_category): Purecopy docstring.
6112 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6114 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6116 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6118 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
6120 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6121 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6124 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6126 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6128 * lisp.h (init_fileio_once): Remove.
6129 * emacs.c (main): Don't call init_fileio_once.
6131 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6133 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6135 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6137 * doprnt.c (doprnt): Fix overflow check.
6139 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6141 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6143 * xterm.h (x_wait_for_event): Declare it.
6145 * xterm.c (pending_event_wait): New variable.
6146 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6147 see pending_event_wait.eventtype.
6148 (handle_one_xevent): Don't change gravity when parent changes.
6149 (x_new_font): Call change_frame_size with new rows/columns before we
6150 try to resize the frame.
6151 (x_wait_for_event): New function.
6152 (x_set_window_size_1): Don't change gravity unless change_gravity
6154 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6155 don't change frame size, instead wait for the ConfigureNotify.
6156 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6157 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6158 (x_initialize): Initialize pending_event_wait.
6160 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6163 * widget.c (EmacsFrameSetValues): Add comment.
6164 (EmacsFrameSetCharSize): Just call x_set_window_size.
6166 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6168 (flush_and_sync): Remove again.
6169 (xg_get_font_name): Suggest monospace if no previous font is known.
6171 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6173 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
6174 8th bit, since that only made sense in the ASCII world (bug#4751).
6176 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6178 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6179 processing pending events when event is filtered for input method.
6182 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6184 * fns.c: Add #endif accidentally removed in previous change.
6186 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6188 * fns.c: Remove code for unsupported system: MAC_OS.
6189 * image.c: Likewise. Include setjmp.h.
6191 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6193 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6194 pixel -1 (bug #4742).
6196 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6198 * process.c (create_pty): Remove conditionals for no longer
6199 supported systems: UNIPLUS and RTU.
6202 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6204 * alloc.c: Do not define struct catchtag.
6205 * eval.c: Move struct catchtag definition ...
6208 * image.c: Move png.h #include earlier to avoid warnings.
6309 * atimer.c: Include setjmp.h. (Bug#4643)
6311 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6313 Remove leftover table unibyte_to_multibyte_table.
6314 * character.c (unibyte_to_multibyte_table): Remove.
6315 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6316 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6317 * character.h (UNIBYTE_TO_CHAR): New macro.
6318 (MAKE_CHAR_MULTIBYTE): Use it.
6319 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6320 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6321 (message_dolog, set_message_1):
6322 * search.c (Freplace_match):
6323 * editfns.c (Fcompare_buffer_substrings):
6324 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6326 * insdel.c (copy_text, count_size_as_multibyte):
6327 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6328 * term.c (produce_glyphs):
6329 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6330 * regex.c (RE_CHAR_TO_MULTIBYTE):
6331 * cmds.c (internal_self_insert):
6332 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6334 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6336 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6338 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6340 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6342 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6344 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6346 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6347 still needed under Tiger.
6349 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6351 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6354 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6356 2009-10-15 Kenichi Handa <handa@m17n.org>
6358 * print.c (print_object): Escape a symbol like "2E10" too.
6360 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6362 Cleanups and changes for 64-bit compile under Snow Leopard.
6363 Based on suggestions by Erik Charlebois.
6365 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6367 * nsfont.m (ns_char_width): Replace deprecated call.
6368 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6370 (nsfont_open): Use ns_char_width() everywhere.
6371 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6373 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6375 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6378 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6380 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6381 Use stringWithUTF8String.
6382 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6384 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6385 Add formal protocol mention to inheritance.
6386 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6388 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6390 (ns_query_color): Use CGFloat where appropriate.
6391 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6392 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6395 * config.in (NS_HAVE_NSINTEGER): Drop.
6397 * dbusbind.c (dbus-method-return-internal)
6398 (dbus-method-error-internal): Use long format in printf, and cast
6401 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6402 in printf, and cast argument.
6404 * process.c (list_processes_1): Use long format in printf, and
6407 2009-10-11 Glenn Morris <rgm@gnu.org>
6409 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6411 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6413 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6414 menu bar with a small width so it doesn't enlarge the frame.
6416 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6418 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6420 2009-10-06 Glenn Morris <rgm@gnu.org>
6422 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6423 SOME_MACHINE_LISP (this enters indirectly via DOC).
6425 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6427 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6429 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6431 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6434 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6436 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6438 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6440 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6441 used anymore outside fileio.c.
6443 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6445 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6447 * lisp.h (Qdelete_directory_internal):
6448 Declare, instead of Qdelete_directory.
6450 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6452 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6454 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6456 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6458 * fileio.c (Fdelete_directory_internal): Rename from
6459 Fdelete_directory. It is not a command anymore. It has no file
6462 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6464 * xdisp.c (get_next_display_element): Use an enum in last change.
6466 2009-09-28 Kenichi Handa <handa@m17n.org>
6468 * xdisp.c (get_next_display_element): Pay attention to
6469 unibyte_display_via_language_environment in handling
6470 Vnobreak_char_display.
6472 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6474 * nsterm.h (ns_app_name): New extern variable.
6476 * nsterm.m (ns_app_name): New variable.
6477 (ns_term_init): Set and use it.
6478 (ns_term_shutdown): Use it.
6480 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6481 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6483 * nsfns.m (ns_set_name_iconic, ns_set_name)
6484 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6485 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6487 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6488 Remove double-casting in client_data comparison.
6490 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6492 * keyboard.c (make_lispy_event): Remember last wheel direction.
6493 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6495 2009-09-26 Glenn Morris <rgm@gnu.org>
6497 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6498 internal.elc. Add term/pc-win.elc.
6499 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6501 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6504 (lisp): Add NS_SUPPORT.
6505 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6507 2009-09-25 David Reitter <david.reitter@gmail.com>
6509 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6510 on Mac OS X 10.6+ (bug#4513).
6512 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6514 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6515 some parts of Emacs code (like font selection) don't grok them.
6516 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6518 2009-09-24 Andreas Schwab <schwab@redhat.com>
6520 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6522 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6524 * dired.c (Fdirectory_files): Fix typo in docstring.
6526 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6528 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6529 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6530 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6532 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6534 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6537 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6539 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6540 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6542 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6543 deleted (bug #4492).
6545 * nsfont.m (Vns_reg_to_script): New lisp variable.
6546 (syms_of_nsfont): Declare it.
6547 (ns_registry_to_script): New function.
6548 (ns_get_req_script): Call it.
6549 (ns_findfonts): Don't give up on non-unicode registry.
6551 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6553 2009-09-20 Tom Tromey <tromey@redhat.com>
6555 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6556 batch mode (bug#4228).
6558 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6560 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6561 carefully. (Bug #4339)
6563 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6565 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6567 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6569 * emacs.c (inhibit_x_resources): Update doc string for NS.
6570 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6571 legacy code for -NXHost. Fix error printf in daemon case.
6573 * nsterm.h (ns_no_defaults): Remove.
6575 * nsterm.m (ns_no_defaults): Remove.
6576 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6577 (ns_use_qd_smoothing): Remove legacy variable.
6578 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6579 don't update the NSWindow itself.
6580 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6581 state detection and store user rect ourselves. (Bug #3581)
6583 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6584 ns_use_qd_smoothing.
6586 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6587 platform versions. Drop support for emacs-20-style face specs.
6588 (x-close-connection): Drop PSFlush() under OS X.
6589 (x-focus-frame): Activate the app first. (Bug #4180)
6591 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6593 * emacs.c (inhibit_x_resources): New variable.
6594 (main) [HAVE_NS]: Don't process --quick command line option.
6595 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6597 * lisp.h (inhibit_x_resources): Declare it extern.
6599 * w32reg.c (x_get_string_resource):
6600 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6602 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6604 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6605 Add lisp/term/internal.elc.
6607 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6609 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6612 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6614 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6616 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6617 (OBJECTS_MACHINE): Remove, unused.
6619 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6621 * frame.c (x_get_resource_string): Remove unused.
6623 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6625 * xterm.c (x_new_font): Call change_frame_size before calling
6626 x_set_window_size, in case frame size won't change.
6628 * frame.c (x_set_font): Remove dead code.
6630 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6632 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6634 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6636 * lread.c (Fload): Don't output a message after loading an obsolete
6637 package any more (done in Lisp now).
6639 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6641 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6643 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6645 * keymap.c (Fwhere_is_internal): Use nconc2.
6647 2009-09-11 Alan Mackenzie <acm@muc.de>
6649 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6652 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6654 * xdisp.c (display_mode_element): Detect cycles.
6656 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6658 * keymap.c (where_is_internal): Don't erroneously return nil right after
6660 (where_is_internal_1): Fix up typo.
6662 2009-09-11 Glenn Morris <rgm@gnu.org>
6664 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6665 share a common doc-string.
6667 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6669 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6670 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6672 * keymap.c (QCadvertised_binding): New constant.
6673 (syms_of_keymap): Initialize it.
6674 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6677 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6679 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6680 (parse_menu_item): Streamline since bindings are recomputed all the
6681 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6682 more and don't support lmenu's menu-alias any more either.
6684 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6685 (where_is_internal): Strip it down to only traverse the keymaps.
6686 Move the cache handling from Fwhere_is_internal to here.
6687 (Fwhere_is_internal): Move the handling of remapping and the choice of
6688 the best binding from where_is_internal to here.
6689 Unify the cached/noncached paths, so remapping is also handled
6690 correctly when the cache is used, and so the cache can be used to
6691 speed up remap-handling when applicable.
6692 Give preference to non-remapped bindings.
6693 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6694 non-remapped bindings.
6695 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6698 * xdisp.c (display_mode_element): Move list length limit from 50 to
6699 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6701 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6703 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6705 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6707 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6710 * keymap.c (where_is_internal): Filter out shadowed remappings.
6711 Assume that where_is_internal returns unshadowed bindings to simplify
6712 the code and get rid of the gotos. Use ASIZE.
6714 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6716 * xterm.c (x_focus_changed): If we get a focusout and pointer
6717 is invisible, make it visible.
6719 * xterm.h: Remove condition for declaration of
6720 x_*_window_to_frame.
6722 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6724 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6725 initial terminal as well.
6727 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6729 * xterm.h: Rename x_non_menubar_window_to_frame to
6730 x_menubar_window_to_frame.
6732 * xterm.c: Remove declarations also in xterm.h.
6733 (XTmouse_position): Do not return valid positions
6734 for clicks in the menubar and the toolbar for Gtk+.
6736 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6737 if the widget for the event has the same top level as a frame,
6739 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6740 internal windows, bug #4122.
6741 (x_non_menubar_window_to_frame): Remove.
6743 2009-09-02 Glenn Morris <rgm@gnu.org>
6745 * buffer.c (default-major-mode): Move most of the doc from here...
6746 (major-mode): ... to here.
6748 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
6750 * process.c (wait_reading_process_output): Keep the descriptor
6751 when pty is used by a non-child process, e.g., in I/O buffer of
6752 GDB this allows inferior to be restarted.
6754 2009-08-29 Eli Zaretskii <eliz@gnu.org>
6756 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6757 both branches into one.
6759 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6761 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6762 (main): Use enable-multibyte-characters rather than
6763 default-enable-multibyte-characters. Output a warning message when
6764 running a unibyte session.
6766 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6768 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6769 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6770 (copy_data_segment): Also copy __program_vars section.
6771 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6772 (dump_it) [LC_DYLD_INFO]: Use it.
6774 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6776 2009-08-28 Eli Zaretskii <eliz@gnu.org>
6778 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6780 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6781 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6783 (clean): Add buildobj.h.
6785 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6787 * print.c (print_object): Set escapeflag to 1 when printing
6788 hashtable keys and values.
6790 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6792 * lread.c (read_integer): Use doubles (and potentially return a float
6793 number) as we do in string-to-number.
6794 (read1): Use strtol to read integers, signal errors on strtol's
6795 overflow and use floats if strtol's output is too large for
6798 2009-08-27 Eli Zaretskii <eliz@gnu.org>
6800 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6801 (make-buildobj-SH): Fix last change.
6802 (SRC): Move to before where it's first used.
6804 2009-08-27 Kenichi Handa <handa@m17n.org>
6806 * process.c (send_process): Use encode_coding_object instead of
6807 encode_coding_string to perform eol-conversion even if the string
6810 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6813 * cmds.c (Fself_insert_command): Avoid unnecessay
6814 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
6816 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6818 * callproc.c (Fcall_process): Remove always true #if.
6820 * lisp.h: Replace #if 0 code for checking with text pointing to
6821 the --enable-checking configure flag.
6823 * emacs.c (main): Mention the --enable-profiling configure flag
6824 instead of using CFLAGS.
6826 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
6828 * Makefile.in (buildobj.h): New target.
6829 (doc.o): Depend on it.
6830 (temacs${EXEEXT}): Don't generate buildobj.lst.
6831 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6832 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6833 ($(BLD)/doc.$(O)): Depend on it.
6834 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6835 provided by Eli Zaretskii.)
6836 ($(TEMACS)): Don't generate buildobj.lst.
6837 * doc.c: Include buildobj.h.
6838 (buildobj): New static variable.
6839 (Fsnarf_documentation): Use it, instead of opening and reading
6842 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
6844 * dbusbind.c (Fdbus_call_method)
6845 (Fdbus_call_method_asynchronously): Use English numeric format for
6846 timeout values in doc string.
6848 2009-08-25 Kenichi Handa <handa@m17n.org>
6850 * alloc.c (mark_char_table): New function.
6851 (mark_object): Use mark_char_table for a char-table.
6853 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6854 (CHAR_TABLE_REF): Use it.
6856 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
6858 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6859 before invoking the newly build emacs to check for load-path
6862 2009-08-22 Glenn Morris <rgm@gnu.org>
6864 * Makefile.in (bootstrap_exe): New variable.
6865 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6866 Use ${bootstrap_exe}.
6868 2009-08-22 Eli Zaretskii <eliz@gnu.org>
6870 * coding.h (encode_coding_string): Don't encode unibyte strings.
6873 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
6875 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6877 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6878 intended as hotfix only.
6879 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6881 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6883 * nsterm.m (ns_get_color): Update documentation properly for last
6884 change, and clean up loose ends in the code left by it. Fix
6885 longstanding bug with 16-bit hex parsing, and add support for
6886 yet another X11 format (rgb:r/g/b) for compatibility.
6887 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6888 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6890 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6892 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6894 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
6896 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6897 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6898 (xd_initialize, xd_pending_messages): Check, whether
6899 $DBUS_SESSION_BUS_ADDRESS is set.
6901 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6903 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6905 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6907 2009-08-20 Glenn Morris <rgm@gnu.org>
6909 * emacs.c (system-type): Doc fix.
6911 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6913 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6914 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6916 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
6918 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6920 (xd_initialize): Revert change from 2009-08-16.
6922 2009-08-18 Kenichi Handa <handa@m17n.org>
6924 * fontset.c (Ffontset_font): If a nil element is found in a
6925 font-group vector, return nil.
6927 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
6929 * process.c (status_notify): Don't perform redisplay.
6930 (Fdelete_process, list_processes_1, process_send_signal):
6931 Expliticly perform redisplay.
6932 (wait_reading_process_output): Always check process status, but
6933 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6935 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
6937 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6938 (XFLOAT_INIT): New macro for storing a float value.
6939 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6940 * fns.c (sxhash): Copy out the value of a float in order to
6942 * dbusbind.c (xd_append_arg): Likewise.
6944 * emacs.c (main): Don't call syms_of_data twice.
6946 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
6948 * dbusbind.c (xd_initialize): Add connection file descriptor to
6949 input_wait_mask, in order to let select() detect, whether a new
6950 message has been arrived.
6951 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6953 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
6955 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6958 * lisp.h (xd_pending_messages): Declare.
6960 * keyboard.c (readable_events): Call xd_pending_messages.
6962 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
6964 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6966 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6968 * buffer.c (set_buffer_internal_1)
6969 (swap_out_buffer_local_variables): Check for unbound local
6970 variables (Bug#4138).
6972 2009-08-14 Eli Zaretskii <eliz@gnu.org>
6974 * process.c (create_pty): Fix last change.
6976 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
6978 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6979 (xbm_load_image): Caller changed.
6980 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6982 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
6984 * process.c (create_pty): New function.
6985 (Fstart_process): Use it to allow Emacs to just associate a pty
6986 with the buffer. See associated change in gdb-mi.el.
6987 (list_processes_1): Deal with no program name.
6988 (start_process_unwind): Use pid == -2 to mean no process.
6990 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6992 * cmds.c (nonundocount): New global variable.
6993 (keys_of_cmds): Initialize it.
6994 (Fself_insert_command): Use it to combine upto 20 sequential chars
6995 into a single undo entry, just like the Qself_insert_command code in
6997 Call frame_make_pointer_invisible, also like the Qself_insert_command
6998 code in keyboard.c does.
6999 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7000 than its own local replacement for it.
7002 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7004 * fns.c (concat): Don't re-set string length to its current value.
7006 * coding.h (decode_coding_string, encode_coding_string):
7009 * doprnt.c (doprnt_lisp): Delete unused function.
7010 (doprnt): Merge with doprnt1, discarding lispstrings code.
7011 * lisp.h (doprnt_lisp): Don't declare.
7013 2009-08-07 Juri Linkov <juri@jurta.org>
7015 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7017 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7019 * print.c (syms_of_print): Undo previous change.
7021 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7023 * lread.c (read1, syms_of_lread): Read hashtables back from the
7026 * print.c (print_preprocess, print_object): Print hashtables fully
7028 (syms_of_print): Provide 'hashtable-print-readable.
7030 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7032 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7034 (nsfont_open): Handle case when entity has no family.
7036 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7038 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7039 element, not a list, for match case.
7041 2009-07-28 Kenichi Handa <handa@m17n.org>
7043 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7046 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7047 font_parse_xlfd. Check font properties more rigidly.
7049 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7051 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7054 2009-07-27 Kenichi Handa <handa@m17n.org>
7056 * xfaces.c (face_with_height): Call font_clear_prop.
7058 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
7060 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7062 * xterm.c (x_term_init): Use Qx.
7064 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7066 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
7067 (ns_get_color): Revert 2009-07-16 change.
7069 2009-07-25 Eli Zaretskii <eliz@gnu.org>
7071 * lread.c (syms_of_lread) <force_load_messages>: New variable.
7072 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
7074 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
7076 * coding.h (decode_coding_string, encode_coding_string):
7079 * lread.c: Rewrite 2009-07-21 changes.
7080 (load_depth): Delete.
7081 (Qload_in_progress): New variable.
7082 (load_unwind): Don't reference load_depth or load_in_progress.
7083 (Fload): Likewise; specbind Qload_in_progress instead.
7084 (init_lread): Don't initialize load_depth.
7085 (syms_of_lread): Initialize and protect Qload_in_progress.
7087 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7089 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7091 2009-07-23 Yavor Doganov <yavor@gnu.org>
7093 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7095 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7097 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7098 Bugs 3792, 3720, 2402.
7099 (ns_lookup_indexed_color): Check for bad index.
7100 (ns_index_color): Init unused slot to 0.
7101 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7102 Bug 3714, possibly 3082.
7104 2009-07-22 Jason Rumney <jasonr@gnu.org>
7106 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7107 Position IME window at cursor (Bug#2570).
7108 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7109 (globals_of_w32fns): Dynamically load functions required above.
7111 * w32term.c (w32_draw_window_cursor): Send message to reposition
7114 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7116 * fileio.c: Revert 2009-07-16 changes.
7117 (Vauto_save_include_big_deletions): New variable.
7118 (Fdo_auto_save): Disable auto-save only if
7119 auto-save-include-big-deletions is nil.
7121 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7123 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7124 the overflowed pixels into account (Bug#3879).
7126 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
7128 * lread.c (load_depth): New variable.
7129 (Fload, load_unwind, init_lread): Set it to the load recursion
7130 depth; set load_in_progress as a simple boolean based on the
7131 current load_depth. (Bug#3892)
7133 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7135 * nsfont.m (ns_has_attribute): Remove.
7136 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7138 2009-07-18 Juri Linkov <juri@jurta.org>
7140 * process.c (Fset_process_query_on_exit_flag): Mention killing
7141 a buffer in docstring.
7143 2009-07-17 Kenichi Handa <handa@m17n.org>
7145 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7147 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7149 * nsfns.m (Fns_set_alpha): Remove function.
7150 (syms_of_nsfns): Don't defsubr it.
7152 * nsterm.m (ns_get_color): Remove incompatible color formats.
7153 (ns_color_to_lisp): Generate #rrggbb color format string.
7155 2009-07-16 Richard Stallman <rms@gnu.org>
7157 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7158 (Fset_buffer_auto_saved): Handle save_length = -2.
7160 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
7162 * xterm.c (Qx_gtk_map_stock): New var.
7164 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7165 of calling intern each time.
7167 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7169 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7172 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7174 2009-07-14 Kenichi Handa <handa@m17n.org>
7176 * font.c (font_vconcat_entity_vectors): New function.
7177 (struct font_sort_data): New member font_driver_preference.
7178 (font_compare): Check font_driver_preference.
7179 (font_sort_entities): The format of the first argument changed.
7180 (font_delete_unmatched): Likewise.
7181 (font_list_entities): The return type changed.
7182 (font_select_entity): The format of the second argument changed.
7183 (font_find_for_lface): Adjuste for the above changes.
7184 Don't suppress the checking of C even if the repertory supports it.
7185 (Flist_fonts): Adjust for the above changes.
7187 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7188 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7189 Reject a font who has adstyle property that is different from a
7190 langname derived from registry property.
7191 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7193 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7195 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7196 local copy of dirfilename.
7198 2009-07-13 Kenichi Handa <handa@m17n.org>
7200 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7203 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7204 calling XSYMBOL (sym).
7206 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7208 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7210 (directory_files_internal) [WINDOWSNT]:
7211 Bind w32-get-true-file-attributes to either t or nil, depending whether
7212 the filesystem of the directory is fast or slow.
7214 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7216 (is_slow_fs): New function.
7217 (stat): Use it to determine whether to issue more system calls to
7218 get accurate file attributes, when w32-get-true-file-attributes is
7221 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7223 * xfns.c (Fx_select_font): Remember last font selected in
7224 x_last_font_name and use that the next time. Also try the frame
7225 parameter font-parameter as default to the font dialog.
7227 2009-07-10 Kenichi Handa <handa@m17n.org>
7229 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7231 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7233 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7235 * w32.c (stat): Treat UNC file names as residing on remote
7238 2009-07-09 Kenichi Handa <handa@m17n.org>
7240 * fontset.c (fontset_find_font): Fix previous change.
7242 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7244 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7245 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7248 2009-07-08 Kenichi Handa <handa@m17n.org>
7250 * fontset.c (fontset_find_font): Fix the logic of handling
7252 (font_for_char): Delete unused var.
7253 (generate_ascii_font_name): Delete it.
7255 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7257 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7258 (encode_coding_sjis): Fix the code range check.
7260 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7262 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7263 (Fexpand_file_name): Copy string data properly (Bug#3772).
7265 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7267 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7270 2009-07-07 Kenichi Handa <handa@m17n.org>
7272 * character.h (unibyte_has_multibyte_table): Delete extern.
7273 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7275 * charset.c (Fset_charset_priority): Update charset_unibyte.
7276 (syms_of_charset): Initialize charset_unibyte.
7278 * character.c (unibyte_has_multibyte_table): Delete it.
7279 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7281 (multibyte_char_to_unibyte_safe): Likewise.
7282 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7284 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7285 (x_produce_glyphs): Likewise.
7287 * .gdbinit (xcharset): Fix the treating $arg0.
7289 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7291 Emulation of `getloadavg' on MS-Windows.
7292 * w32.c: Include float.h.
7293 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7294 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7295 (get_native_system_info, get_system_times): New functions.
7296 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7297 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7298 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7299 g_b_init_get_system_times, and num_of_processors.
7301 2009-07-03 Jason Rumney <jasonr@gnu.org>
7303 * w32term.c (w32_initialize): Use standard types.
7305 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7307 * dired.c (Ffile_attributes): Decode user and group names by the
7308 locale's encoding. (Bug#3443)
7310 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7312 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7313 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7315 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7317 * term.c (init_tty): Remove spurious #ifdef.
7319 * m/mips.h: Mention this file is also used for netbsd.
7320 * m/pmax.h: Remove file.
7322 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7324 * xterm.h (struct x_display_info): Add invisible_cursor.
7325 (struct x_output): Add current_cursor.
7327 * xterm.c (XTtoggle_invisible_pointer): New function.
7328 (x_define_frame_cursor): Don't define cursor if invisible or the
7329 same as before. Set current_cursor.
7330 (x_create_terminal): Set toggle_invisible_pointer_hook.
7332 * xfns.c (make_invisible_cursor): New function.
7333 (x_set_mouse_color): Call make_invisible_cursor.
7335 (x_window): Set current_cursor.
7337 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7339 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7340 inserting a character.
7341 (read_avail_input): Call frame_make_pointer_visible.
7343 * frame.c (Vmake_pointer_invisible): New variable.
7344 (frame_make_pointer_invisible, frame_make_pointer_visible):
7346 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7348 * frame.h: Declare frame_make_pointer_invisible and
7349 frame_make_pointer_visible.
7350 (struct frame): Add pointer_invisible.
7352 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7354 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7355 frame isn't visible.
7356 (xg_frame_resized): If width/height is -1, get size of window
7359 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7362 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7363 here or call change_frame_size. Just call flush_and_sync.
7364 (flush_and_sync): Reintroduce.
7366 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7368 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7370 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7371 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7373 * frame.h: Declare Qsticky.
7375 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7377 * nsfns.m (ns_frame_parm_handlers): Ditto.
7379 * frame.c: Declare Qsticky.
7380 (frame_parms): Add sticky.
7382 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7384 * xterm.h: Declare x_set_sticky.
7386 * xterm.c (x_set_sticky): New function.
7388 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7389 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7390 xg_tool_bar_proxy_help_callback.
7392 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7394 * frame.c: Qmaximized is new.
7395 (x_set_frame_parameters): Do not handle fullscreen specially.
7396 Only set width and height if explicitly set.
7397 (x_set_fullscreen): Handle Qmaximized.
7398 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7399 (syms_of_frame): Initialize Qmaximized.
7401 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7402 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7404 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7405 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7406 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7407 set gravity to NorthWestGravity when USE_GTK.
7408 (set_wm_state): New function.
7409 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7410 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7411 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7412 or the case when no window manager is running. That means remove calls
7413 to x_real_positions and x_fullscreen_adjust.
7415 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7416 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7418 (xg_height_changed): New function.
7419 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7420 and gtk_window_set_policy. Set frame gravity after parsing the
7422 (xg_update_frame_menubar, free_frame_menubar)
7423 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7424 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7425 Remove calls to xg_frame_set_char_size.
7427 2009-07-01 Kenichi Handa <handa@m17n.org>
7429 * keyboard.c (decode_keyboard_code): New function.
7430 (tty_read_avail_input): Decode the input bytes if necessary.
7432 * coding.c (setup_coding_system):
7433 Initialize coding->carryover_bytes to 0.
7434 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7437 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7439 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7441 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7443 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7445 2009-06-30 Jason Rumney <jasonr@gnu.org>
7447 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7449 Set user model ID if supported (bug#1849).
7451 2009-06-29 Jim Meyering <meyering@redhat.com>
7453 Remove useless if-before-xfree test.
7454 * nsfont.m (nsfont_close): Remove useless test.
7455 * term.c (delete_tty): Likewise.
7456 * w32.c (system_process_attributes): Likewise.
7457 * w32font.c (w32font_close): Likewise.
7458 * xfaces.c (x_free_gc): Likewise.
7459 * xselect.c (buffer): Likewise.
7461 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7463 * process.c (send_process): Keep decoded string in a local
7464 variable and protect it from GC. (Bug#3521)
7466 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7468 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7469 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7471 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7473 * xdisp.c (start_display, handle_face_prop)
7474 (move_it_vertically_backward, cursor_row_fully_visible_p)
7475 (redisplay_window, try_window_id, produce_image_glyph):
7476 Delete some #ifdef-ed out code chunks that are now obsolete.
7478 * xterm.c (x_update_window_begin, x_new_focus_frame)
7479 (x_scroll_bar_handle_click, handle_one_xevent)
7480 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7481 (x_make_frame_visible, x_make_frame_invisible)
7482 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7483 code chunks that are now obsolete.
7485 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7487 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7488 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7489 for hours, when optimzation is enabled.
7490 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7491 (xd_read_message): Make them static.
7493 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7495 * term.c (turn_on_face): Allow simultaneously bold and dim
7496 terminal faces (Bug#3530).
7498 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7500 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7502 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7503 truncation glyphs (Bug#3686).
7505 2009-06-27 Glenn Morris <rgm@gnu.org>
7507 * m/pmax.h: Restore file, with only netbsd portions.
7509 2009-06-26 David Reitter <david.reitter@gmail.com>
7511 * nsterm.m (keydown): Avoid infinite loop.
7513 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7515 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7516 the arg FORCE_SYMBOL.
7518 2009-06-25 Kenichi Handa <handa@m17n.org>
7520 * fontset.c (fontset_find_font): When a usable rfont_def is found
7521 in a fallback font-group, make it the first element of the group.
7523 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7525 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7527 2009-06-24 Kenichi Handa <handa@m17n.org>
7529 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7531 (fontset_font): Record the availability of a font for C both in
7532 the realized fontsets of the current one and the default one.
7534 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7536 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7537 conditional, it is always defined on AIX.
7539 2009-06-23 Miles Bader <miles@gnu.org>
7541 * window.c (Vrecenter_redisplay): New variable.
7542 (syms_of_window): Initialize it.
7543 (Qtty): New extern declaration.
7544 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7546 2009-06-23 Jim Meyering <meyering@redhat.com>
7548 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7549 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7550 pointer dereferences are guaranteed to be valid.
7552 2009-06-23 Kenichi Handa <handa@m17n.org>
7554 * emacs.c (main): Call init_font ().
7556 * font.h (Vfont_log): Extern it.
7557 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7559 * font.c (font_sort_entities, font_list_entities)
7560 (font_matching_entity, font_open_entity)
7561 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7562 (Vfont_log): Delete static.
7563 (font_log_env_checked): Delete this variable.
7564 (font_add_log): Don't check font_log_env_checked.
7565 (font_deferred_log): Check Vfont_log.
7566 (init_font): New function.
7568 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7570 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7572 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7574 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7576 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7577 (face_for_char): Don't call font_deferred_log here.
7578 (font_for_char): Likewise.
7580 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7582 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7583 rather than its background_width for drawing the overline and
7584 underline (Bug#489).
7586 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7587 rather than its background_width for drawing the overline and
7588 underline (Bug#489).
7589 (xg_default_icon_file): New variable.
7590 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7591 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7593 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7594 (load_overlay_strings): Remove externs.
7595 (fast_find_position): Function deleted.
7596 (mouse_face_from_buffer_pos): New function, based on
7597 fast_find_position. Correctly handle before-strings,
7598 display-strings, and after-strings (Bug#1220).
7599 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7601 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7603 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7604 (move_it_in_display_line_to, move_it_in_display_line_to)
7605 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7607 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7611 2009-06-21 Jason Rumney <jasonr@gnu.org>
7613 * w32term.c (keyboard_codepage): New static variable.
7614 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7615 (w32_read_socket) [WM_CHAR]: Use it to decode character
7617 (w32_initialize): Initialize it.
7618 (codepage_for_locale): New function.
7620 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7622 * process.c (status_message): Pass Faset index argument as a lisp
7623 object, so as to work with USE_LISP_UNION_TYPE.
7625 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7627 * coding.c (Ffind_coding_systems_region_internal):
7628 Cache checked characters.
7630 2009-06-18 Kenichi Handa <handa@m17n.org>
7632 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7634 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7636 * xdisp.c (redisplay_internal): Check that the frame is still
7637 live after redisplay of its windows.
7638 (redisplay_windows): Check that the window is still live.
7640 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7642 * coding.c (detect_coding_utf_16): Fix previous change.
7644 2009-06-16 Kenichi Handa <handa@m17n.org>
7646 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7647 UTF-16 by checking the dispersion of Eth and Oth bytes.
7649 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7651 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7653 2009-06-15 Kenichi Handa <handa@m17n.org>
7655 * process.c (status_message): Fix previous change. Be sure to
7656 decode a localized string.
7658 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7660 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7661 add comment explaining why.
7663 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7665 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7667 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7669 * nsfont.m (ns_attribute_value): Remove.
7670 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7671 (ns_has_attribute): Shrink the normal range.
7672 (ns_findfonts): Don't worry about requested spec in determining
7674 (ns_get_covering_families): Retain scriptToFamilies.
7676 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7678 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7680 2009-06-11 Kenichi Handa <handa@m17n.org>
7682 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7683 overhang for the static composition case.
7685 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7687 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7688 overhang for the automatic composition case.
7690 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7693 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7695 * xdisp.c (get_next_display_element): When handling wrap-prefix
7696 and line-prefix, treat \n as a control character (bug#3502).
7698 2009-06-10 Kenichi Handa <handa@m17n.org>
7700 * font.c (font_parse_family_registry): Fix for one-char foundry.
7701 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7703 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7705 * process.c (status_message): Fix handling of multibyte signal
7708 2009-06-09 Jim Meyering <meyering@redhat.com>
7710 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7711 color name is missing.
7713 2009-06-09 Kenichi Handa <handa@m17n.org>
7715 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7716 FROM-CODE and TO-CODE are codepoints of CHARSET.
7718 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7720 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7722 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7724 Changes to support :script/:lang/:otf in NS font driver.
7725 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7726 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7727 indicate not part of font driver interface, and change callers.
7728 (ns_get_family): Remove pointless null check.
7729 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7730 ns_spec_to_descriptor, ns_descriptor_to_entity.
7731 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7732 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7733 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7734 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7735 (ns_get_req_script, ns_accumulate_script_ranges)
7736 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7738 (nsfont_list, nsfont_match): Use ns_findfonts.
7739 (nsfont_open): Use font descriptor instead of traits.
7740 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7741 (dump_glyphstring): Rename to ns_dump_glyphstring.
7743 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7745 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7747 * fontset.c (fontset_from_font): Remove NS-specific code.
7749 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
7751 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7754 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
7756 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
7758 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7760 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7762 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
7764 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7765 account for the overflowing of newlines into the last glyph on the
7766 display line (Bug#3482).
7768 2009-06-05 David Reitter <david.reitter@gmail.com>
7770 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7771 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
7772 Fns_selection_exists_p, Fns_selection_owner_p.
7774 2009-06-03 Jason Rumney <jasonr@gnu.org>
7776 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7777 available. (Bug#3379)
7779 2009-05-29 Kenichi Handa <handa@m17n.org>
7781 * coding.c (get_translation_table):
7782 Check Venable_character_translation.
7784 2009-05-26 David Reitter <david.reitter@gmail.com>
7786 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7787 (x_make_frame_visible): Move frame to front rather than calling
7789 (keyDown:): Do not swallow events that aren't re-sent if frame
7791 (drawRect:): Do not set visibility/iconified flags because
7792 drawRect may be called by NSView even if the frame is hidden.
7794 * nsfns.m (Fx_create_frame): Follow other ports in
7795 determining visibility; default to t. Ensure async_visible is set.
7797 2009-05-23 Eli Zaretskii <eliz@gnu.org>
7799 * dired.c (Ffile_attributes): Doc fix.
7801 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
7803 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7805 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7807 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7808 and xfont_scratch_props.
7809 (syms_of_xfont): Do it here instead.
7810 (xfont_find_ccl_program): Delete, unused.
7811 (xfont_open): Delete unused var `i'.
7813 2009-05-21 Kenichi Handa <handa@m17n.org>
7815 * fontset.c (Qlatin): Don't make it static.
7817 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7819 (xfont_scripts_cache, xfont_scratch_props): New variables.
7820 (Qlatin, Vscalable_fonts_allowed): Extern it.
7821 (xfont_list_pattern): Argument changed. Callers changed.
7822 Check Vscalable_fonts_allowed. Check the support of a script.
7823 (xfont_list): Don't reject a font spec with :script property.
7824 (xfont_has_char): Fix setting of encoding.
7825 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7826 xfont_scratch_props.
7828 2009-05-19 Kenichi Handa <handa@m17n.org>
7830 * font.c (font_sort_entities): Rename from font_sort_entites.
7833 2009-05-18 Kenichi Handa <handa@m17n.org>
7835 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7837 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7839 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7840 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7842 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7844 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7845 (x_delete_terminal): Dissociate resource database from display and
7846 then call XrmDestroyDatabase before closing display.
7848 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7850 * nsterm.m (ns_read_socket): Remove unused variable.
7851 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7852 whether selected frame is viable before raising it (based on patch
7853 by David Reitter), and improve commentary.
7854 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
7856 2009-05-15 Kenichi Handa <handa@m17n.org>
7858 * font.c (Ffont_spec): Check arguments.
7860 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
7862 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7863 weight when testing attributes (Bug#3282).
7865 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7867 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7868 what we expect to get in the next ConfigureNotify event.
7870 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7871 before Xft one (Bug#1696).
7873 2009-05-07 David Reitter <david.reitter@gmail.com>
7875 * nsfns.m (Fx_display_planes): Compute bitplanes using
7876 NSBitsPerPixelFromDepth (Bug#3207).
7878 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
7880 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7882 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
7884 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7886 2009-05-07 David Reitter <david.reitter@gmail.com>
7888 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7889 Respect mouse face background.
7891 2009-05-07 David Reitter <david.reitter@gmail.com>
7893 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7894 Mouse movement/highlight: bracket drawing operations
7895 in ns_update_begin and ns_update_end.
7897 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7899 * nsfns.m (ns_get_screen): Rewrite.
7900 Don't presume selected-frame is of type `ns'.
7902 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7905 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7907 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7909 * keyboard.h (add_user_signal): Fix typo in extern.
7911 * lisp.h (add_user_signal): Remove extern.
7913 * unexelf.c (unexec): Consider a section to precede the .bss section
7914 if its addresses overlap that of .bss.
7915 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7916 instead of dumping process.
7918 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7920 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7922 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7924 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7926 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7928 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7931 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7933 * process.c (read_process_output): Make sure the current buffer is
7936 * coding.c (record_conversion_result): Don't modify
7937 Vlast_code_conversion_error for successful result.
7938 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7940 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7942 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7943 (load_charset_map): Remove unnecessary code.
7945 2009-04-30 David Reitter <david.reitter@gmail.com>
7947 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7950 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
7952 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7954 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7955 face_at_buffer_position.
7956 (face_before_or_after_it_pos, get_next_display_element)
7957 (note_mouse_highlight): Update face_at_buffer_position call.
7959 * term.c (term_mouse_highlight):
7960 * msdos.c (IT_note_mouse_highlight):
7961 * fontset.c (Finternal_char_font):
7962 * font.c (font_at, font_range): Update face_at_buffer_position call.
7964 * dispextern.h (face_at_buffer_position): Update prototype.
7966 2009-04-30 Kenichi Handa <handa@m17n.org>
7968 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7970 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7972 * callproc.c (Fcall_process): Fix GC protection. Make sure
7973 current buffer is always restored.
7975 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7977 * atimer.c (init_atimer): Also clear stopped_atimers.
7979 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7981 * process.c (create_process): Clean up merger residues of
7984 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
7986 * lread.c (Vread_circle): New variable.
7987 (read1): Disable recursive read if Vread_circle is nil.
7989 2009-04-29 Kenichi Handa <handa@m17n.org>
7991 * fontset.h (set_default_ascii_font): Delete extern.
7993 * fontset.c (set_default_ascii_font): Delete this unused function.
7995 * frame.c (x_set_font): When ARG is a font-object, check if the
7996 font-object matches with the ASCII font-spec of the frame's
7997 fontset. If not, create a new fontset for the frame. (Bug #3075)
7999 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8001 * fns.c (Flocale_info): Protect vector from GC during decoding.
8003 * process.c (Fstart_process): Protect argv strings from GC during
8006 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8008 * sysdep.c: Include <ctype.h>.
8010 2009-04-27 David Reitter <david.reitter@gmail.com>
8012 * nsfont.m (nsfont_open): Remove unused variable shrink.
8013 Remove commented-out code.
8015 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8017 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8019 2009-04-25 Jason Rumney <jasonr@gnu.org>
8021 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8023 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8025 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8026 Swap bytes in short integer if fringe bitmap width > 8.
8028 2009-04-23 Kenichi Handa <handa@m17n.org>
8030 * xfaces.c (Fx_list_fonts): If a font size is specified in
8031 PATTERN, set it in returned scalable fonts.
8033 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8035 * keyboard.c (Fset_input_meta_mode): Doc fix.
8037 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8039 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
8041 * coding.c (Fterminal_coding_system): Doc fix.
8043 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8044 (Fx_display_pixel_height, Fx_display_planes)
8045 (Fx_display_color_cells, Fx_server_max_request_size)
8046 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8047 (Fx_display_mm_height, Fx_display_mm_width)
8048 (Fx_display_backing_store, Fx_display_visual_class)
8049 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8050 Doc fixes, replacing "terminal id" with "terminal object".
8051 (check_x_display_info): Handle terminal objects instead of
8054 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8055 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
8056 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8057 Doc fixes, replacing "terminal id" with "terminal object".
8059 2009-04-21 Kenichi Handa <handa@m17n.org>
8061 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
8062 (font_score): Check AVGWIDTH too.
8064 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8066 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8067 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
8069 2009-04-19 Jason Rumney <jasonr@gnu.org>
8071 The following changes fix Bug#3005 for wide glyphs on each platform,
8072 without reintroducing Bug#1258 for stretch glyphs.
8074 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8075 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8076 get_phys_cursor_geometry.
8078 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
8079 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8080 using get_phys_cursor_geometry.
8082 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8083 correctly calculated.
8085 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8087 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8088 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
8089 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8092 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8094 * font.c (font_put_frame_data): Use xfree instead of free.
8096 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
8098 * w32font.c (Qja, Qko): Remove declarations.
8099 (syms_of_w32font): Don't DEFSYM them.
8101 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
8103 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8105 * font.h (Qja, Qko): Extern them.
8107 * ftfont.c (Qja, Qko): Remove declarations.
8109 * xfont.c (Qja, Qko): Remove declarations.
8111 2009-04-17 Kenichi Handa <handa@m17n.org>
8113 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8114 string from a vector to handle Latin-1 characters correctly.
8116 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8117 entity even if the cache hits.
8119 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8121 * search.c (boyer_moore): Use zero as marker value for a possible
8122 match instead of depending on overflow behavior. (Bug#2844)
8124 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8125 * lisp.h: Adjust prototypes.
8127 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
8129 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8132 2009-04-16 Kenichi Handa <handa@m17n.org>
8134 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
8136 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8139 * ftfont.c (Qja, Qko): Don't make them static.
8140 (enum ftfont_cache_for): New enum.
8141 (fc_charset_table): Undo the previous change.
8142 (ftfont_get_latin1_charset): Delete it.
8143 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8144 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
8145 non-scarable font, try to get AVERAGE_WIDTH.
8146 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8147 Change ft_face_cache from a list of a hash-table. Don't check
8148 `ja' and `ko' adstyle here.
8149 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8150 FTFONT_CACHE_FOR_CHARET.
8151 (ftfont_get_charset): Undo the previous change.
8152 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
8153 (ftfont_close): Likewise.
8154 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8156 * font.c (font_sort_entites): Change the meaning of the arg
8157 BEST-ONLY. Don't optimize for VEC of lenght 1.
8158 (font_select_entity): Just return the value of font_sort_entites.
8160 * xfaces.c (merge_face_vectors): Reflect font properties in
8161 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8162 font_clear_prop if a face attribute doesn't change.
8164 * charset.h (charset_ksc5601): Extern it.
8166 * charset.c (charset_ksc5601): New variable.
8167 (Fdefine_charset_internal): Set charset_ksc5601.
8168 (init_charset_once): Initialize charset_ksc5601 to -1.
8170 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8172 * fileio.c (history_delete_duplicates): Remove unused declaration.
8174 * callint.c (history_delete_duplicates): New declaration.
8175 (Fcall_interactively): Remove command history duplicates when
8176 history_delete_duplicates is true.
8178 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8180 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8182 2009-04-14 Kenichi Handa <handa@m17n.org>
8184 * font.c (Ffont_info): Fix docstring. Fix the second element of
8185 the returned value (bug#2949).
8187 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8189 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8191 2009-04-14 Kenichi Handa <handa@m17n.org>
8193 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8194 encoding charset is ascii_compatible.
8196 * charset.c (Fdefine_charset_internal): Make charset
8197 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8198 code_offset is 0, and covers all ASCII characters.
8200 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8202 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8203 (ns_string_to_pasteboard_internal):
8204 * nsmenu.m (process_dialog):
8205 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8206 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8207 * lisp.h (Fx_load_color_file): Declare.
8209 2009-04-13 Kenichi Handa <handa@m17n.org>
8211 * font.c (font_delete_unmatched): Preserve the order of list elements.
8212 (font_select_entity): Suppress the code to optimize for the same
8214 (font_load_for_lface): Get a font that supports at least ASCII
8217 * ftfont.c (Qja, Qko): New variables.
8218 (fc_charset_table): Delete uniquifier data for iso8859-1.
8219 (ftfont_get_latin1_charset): New function.
8220 (get_adstyle_property): New function.
8221 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8223 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8224 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8226 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8227 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8228 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8230 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8231 (syms_of_ftfont): DEFSYM Qja and Qko.
8233 2009-04-09 Kenichi Handa <handa@m17n.org>
8235 * charset.c (map_charset_chars): For a charset of `superset'
8236 method, fix calculation of code range.
8238 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8239 from the list of extra properties.
8240 (font_clear_prop): Be sure to delete `:name' font property.
8242 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8244 * dispnew.c (redraw_overlapping_rows): Fix detection of
8245 overlapping for topmost and bottommost rows.
8247 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8249 2009-04-06 Jason Rumney <jasonr@gnu.org>
8251 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8253 2009-04-06 Kenichi Handa <handa@m17n.org>
8255 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8257 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8259 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8261 * ftfont.c (ftfont_open): Fix checking of the return value of
8262 FT_Load_Char. Fix setting font->underline_thickness.
8264 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8266 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8267 (Fterminal_parameters, Fterminal_parameter)
8268 (Fset_terminal_parameter): In doc string, refer to terminal
8269 objects rather than terminal ids.
8271 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8273 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8274 ret_lim_data. (Bug#2867)
8276 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8278 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8279 so they don't get wider than the window, matching 2006-01-23
8280 change to the partner function in xdisp.c (Bug#2800).
8282 2009-04-03 Kenichi Handa <handa@m17n.org>
8284 * print.c (print_object): Make each lowest sub_char_table start a
8285 new line (Bug#2866).
8287 2009-04-02 Kenichi Handa <handa@m17n.org>
8289 * fontset.c (fontset_font): Record no-font when a fontset
8290 explicitly tells not to try another font-specs.
8292 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8294 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8296 2009-03-30 Kenichi Handa <handa@m17n.org>
8298 * fontset.c (fontset_from_font): Specify only registry in a
8299 font-spec for all characters supported by that registry.
8301 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8302 even if HAVE_M17N_FLT is not defined.
8304 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8306 * ftfont.c: Conditionalize prototyping and use of
8307 ftfont_variation_glyphs.
8309 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8311 * frame.c (delete_frame): Work around compiler bug.
8313 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8314 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8315 Some more EMACS_INT.
8316 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8318 * xdisp.c (dump_glyph): Fix typo.
8320 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8321 (adjust_markers_gap_motion, adjust_markers_for_delete)
8322 (adjust_markers_for_insert, adjust_point)
8323 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8324 (make_gap, copy_text, count_size_as_multibyte, insert)
8325 (insert_and_inherit, insert_before_markers)
8326 (insert_before_markers_and_inherit, insert_1)
8327 (count_combining_before, count_combining_after, insert_1_both)
8328 (insert_from_string, insert_from_string_before_markers)
8329 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8330 (insert_from_buffer_1, adjust_after_replace)
8331 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8332 (replace_range_2, del_range, del_range_1, del_range_byte)
8333 (del_range_both, del_range_2, modify_region)
8334 (prepare_to_modify_buffer, signal_before_change)
8335 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8336 for buffer positions and sizes.
8337 * lisp.h: Adjust prototypes accordingly.
8339 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8340 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8341 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8343 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8345 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8347 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8348 lines and columns so we keep the same pixel height and width.
8350 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8351 the property _NET_WM_STATE has changed.
8352 (x_handle_net_wm_state): New function to update frame parameter
8354 (x_term_init): Initialize atoms for _NET_WM_STATE.
8356 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8358 2009-03-27 Kevin Ryde <user42@zip.com.au>
8360 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8361 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8362 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8363 (Fgpm_mouse_stop): Pass that new parameter.
8364 * termhooks.h (close_gpm): Adjust prototype.
8366 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8368 * lisp.h (Fx_focus_frame): Declare.
8370 * callint.c (Fcall_interactively): For '^' just delegate the work to
8371 handle-shift-selection.
8372 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8374 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8376 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8378 * data.c (Qinteractive_form): New variable.
8379 (Finteractive_form): Use it.
8381 * eval.c (Fcommandp): Use Qinteractive_form.
8383 2009-03-24 Jason Rumney <jasonr@gnu.org>
8385 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8386 Calculate total size precisely. Decode environment variables
8387 before substituting. (Bug#38)
8389 2009-03-24 Kenichi Handa <handa@m17n.org>
8391 * font.c (find_font_encoding): Return Qnil for unsupported
8392 encoding (Bug#2722).
8394 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8396 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8399 2009-03-22 Alan Mackenzie <acm@muc.de>
8401 * callint.c (Finteractive): Clarify the doc string - even
8402 promptless elements need \n separators.
8404 2009-03-22 Jason Rumney <jasonr@gnu.org>
8406 * w32term.c (syms_of_w32term): Doc fix for
8407 x-use-underline-position-properties.
8409 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8411 * w32.c (getpwuid): Change argument type to unsigned.
8412 (struct w32_id): Change type of `rid' member to unsigned.
8413 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8414 argument ID to unsigned. All callers changed.
8415 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8417 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8419 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8420 negative, produce a float value.
8422 * dired.c (make_uid, make_gid): New functions.
8423 (Ffile_attributes): Use them to avoid negative UID and GID.
8425 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8427 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8428 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8429 Fix typos in docstrings.
8431 2009-03-19 Kenichi Handa <handa@m17n.org>
8433 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8434 changed, use font_load_for_lface to get a new font object.
8435 Call free_realized_fontset after handling ASCII font change.
8437 * frame.c (x_set_font): Handle the case that ARG is a cons.
8439 2009-03-19 Glenn Morris <rgm@gnu.org>
8441 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8443 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8445 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8447 2009-03-19 Kenichi Handa <handa@m17n.org>
8449 * charset.c (load_charset_map_from_file): When a mapfile can't be
8450 loaded, signal an error.
8452 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8454 * dired.c (Ffile_attributes): Make sure UID and GID are always
8455 positive, even if the value is too large for a positive EMACS_INT.
8458 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8460 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8462 * xmenu.c (xdialog_show): Move Fredisplay call ...
8463 (Fx_popup_dialog): ... here.
8465 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8467 * dired.c (file_name_completion): Disable the first optimization just
8468 installed, since it is not implemented correctly.
8470 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8472 * dired.c (file_name_completion): Check completion-ignored-extensions
8473 only if the entry can affect bestmatch.
8474 Stop the search early, as Ftry_completion already does.
8476 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8478 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8480 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8482 * keyboard.c (parse_menu_item): Don't display remappings as menu
8483 equivalent bindings (Bug#788).
8485 2009-03-15 Jason Rumney <jasonr@gnu.org>
8487 * w32term.h (WM_EMACS_PAINT): New message.
8488 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8489 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8490 before passing to lisp thread. (Bug#950)
8492 2009-03-14 David Reitter <david.reitter@gmail.com>
8494 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8495 variable as it was never reset.
8496 (ns_term_init): Remove initialization of Lisp-settable defaults
8497 and ns_expand_space.
8498 (-setPanelFromDefaultValues): Remove ns_expand_space.
8499 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8500 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8501 i.e. no additional spacing, similar to Carbon port.
8503 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8504 * nsfns.m (ns-popup-prefs-panel): Remove.
8506 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8508 * sound.c (alsa_configure): Remove call to deprecated
8509 snd_pcm_sw_params_set_xfer_align.
8511 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8513 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8514 after clicking in a detached tool bar.
8515 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8517 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8519 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8520 int/Lisp_Object mixup).
8522 2009-03-13 Kenichi Handa <handa@m17n.org>
8524 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8525 Handle NAME nil and t correctly. Callers changed.
8526 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8527 (set_fontset_font): Change ARG to a vector. Handle range_list in
8529 (Fset_fontset_font): Fix the case that TARGET is both a script
8530 name and charset name. Adjust the arg to set_fontset_font for
8532 (fontset_from_font): Fix previous change.
8533 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8534 entry. If FONTSET is the default fontset, don't set the extra
8535 slot of the returning char-table.
8537 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8539 * nsfns.m (Fx_close_connection): Doc fix.
8540 (Fns_do_applescript): Reflow docstring.
8541 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8542 (Fx_display_pixel_width, Fx_display_pixel_height)
8543 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8544 Fix typos in docstrings.
8545 (Fns_set_alpha): Fix typos in error messages.
8547 2009-03-12 David Reitter <david.reitter@gmail.com>
8549 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8550 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8551 were used for such events.
8553 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8554 (toggleToolbar, performDragOperation, runHelp): Use it.
8556 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8557 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8559 2009-03-11 Kenichi Handa <handa@m17n.org>
8561 * font.h (font_open_by_spec): Extern it.
8563 * font.c (font_open_by_spec): New function.
8564 (font_open_by_name): Use font_open_by_spec.
8566 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8567 fontset of the frame.
8569 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8570 modify the default font of frames that use this fontset.
8571 (num_auto_fontsets): New variable.
8572 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8573 name. Be sure to set FONTSET_ASCII to the correct font name.
8574 (update_auto_fontset_alist): New function.
8576 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8578 * makefile.w32-in: Update dependencies.
8580 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8582 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8584 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8586 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8588 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8590 * lread.c (Feval_buffer): Doc fix.
8592 2009-03-09 Kenichi Handa <handa@m17n.org>
8594 * charset.c (Qfile_name_handler_alist): Extern it.
8595 (load_charset_map_from_file): Temporarily bind
8596 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8598 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8600 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8601 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8603 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8605 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8606 (x_set_window_size): Change back to calculated method of setting
8607 toolbar height under Cocoa. (Bug#2546)
8608 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8609 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8611 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8613 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8614 accelerator in parens under GNUstep.
8616 2009-03-06 Kenichi Handa <handa@m17n.org>
8618 These changes are to detect incorrect composition sequence without
8619 looking ahead the source. (Bug#2370)
8621 * coding.h: Include "composite.h".
8622 (enum compisition_state): New enum.
8623 (struct compisition_status): New struct.
8624 (struct iso_2022_spec): New member cmp_status.
8625 (struct emacs_mule_spec): New struct.
8626 (struct coding_system): New members ctext_extended_segment_len and
8627 embedded_utf_8. Change the union member
8628 spec.emacs_mule_full_support to spec.emacs_mule.
8630 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8631 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8632 (MAX_ANNOTATION_LENGTH): Define to 5.
8633 (ADD_COMPOSITION_DATA): New arg nbytes.
8634 (emacs_mule_char): New arg cmp_status.
8635 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8636 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8637 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8638 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8639 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8640 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8641 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8642 (EMACS_MULE_COMPOSITION_END): New macro.
8643 (emacs_mule_finish_composition): New function.
8644 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8645 (decode_coding_emacs_mule): Avoid long looking ahead while
8646 handling composition.
8647 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8648 (ENCODE_COMPOSITION_RULE): New macro.
8649 (finish_composition): New function.
8650 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8651 (DECODE_COMPOSITION_START): New implementation.
8652 (DECODE_COMPOSITION_END): Likewise.
8653 (STORE_COMPOSITION_RULE): New macro.
8654 (decode_coding_iso_2022): Avoid long looking ahead while handling
8655 composition, CTEXT extended segment, and embedded UTF-8.
8656 (setup_coding_system): For a coding of type iso-2022, reset
8657 CODING_ISO_EXTSEGMENT_LEN (coding) and
8658 CODING_ISO_EMBEDDED_UTF_8 (coding).
8659 (get_translation): Delete arguments last_block, from_nchars,
8660 to_nchars. Callers changed.
8661 (produce_chars): Don't modify charbuf. Adjusted for the change of
8663 (produce_composition): Adjust for the new annotation sequence.
8664 (handle_composition_annotation): Likewise.
8665 (consume_chars): Adjust for the change of get_translation.
8667 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8669 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8671 2009-03-05 Kenichi Handa <handa@m17n.org>
8673 * font.c (font_select_entity): New function.
8674 (font_find_for_lface): Use font_select_entity to select a font.
8676 * fontset.c (fontset_find_font): If a font found without
8677 restricting to the characters C doesn't support C, try to find a
8678 font with C restriction.
8680 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8682 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8684 2009-03-04 Jason Rumney <jasonr@gnu.org>
8686 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8687 characters that have already been read. (Bug#2569)
8689 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8690 Log an error message if check_image_size failed.
8691 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8692 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8694 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8696 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8697 when decoding process output.
8699 2009-03-01 Richard M Stallman <rms@gnu.org>
8701 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8703 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8705 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8707 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8708 (decode_coding_emacs_mule, decode_coding_iso_2022)
8709 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8710 (decode_coding_raw_text, decode_coding_charset)
8711 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8712 Honor inhibit-eol-conversion. (Bug #2186)
8714 2009-02-28 Jason Rumney <jasonr@gnu.org>
8716 * coding.c (detect_coding_charset): If not checking latin extra,
8717 fail on characters between 0x80 and 0xA0. (Bug#2354)
8719 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8721 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8722 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
8724 2009-02-27 Glenn Morris <rgm@gnu.org>
8726 * callint.c (Finteractive): Doc fix.
8728 2009-02-27 Kenichi Handa <handa@m17n.org>
8730 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8732 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
8734 * font.c (font_style_to_value): Set value for unknown symbols to
8736 (weight_table, slant_table, width_table): Treat "unspecified" as
8739 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
8741 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8743 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
8745 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8746 error as soon as a recursive load is detected.
8748 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8750 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8753 2009-02-24 Kenichi Handa <handa@m17n.org>
8755 * fontset.c (fontset_find_font): Fix the condition for checking
8758 2009-02-24 Glenn Morris <rgm@gnu.org>
8760 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8761 whitespace that confuses documentation.
8763 2009-02-23 Miles Bader <miles@gnu.org>
8765 * process.c (Flist_system_processes, Fprocess_attributes)
8766 (syms_of_process): Rename `system-process-attributes' to
8767 `process-attributes'.
8769 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8771 * coding.h (struct coding_system): Make safe_charsets a pointer to
8773 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8775 (SAFE_CHARSET_P): Likewise.
8776 (setup_iso_safe_charsets): Properly setup safe_charsets.
8777 (Fdefine_coding_system_internal): Likewise.
8778 (setup_coding_system): Likewise. Remove unneeded casts.
8779 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8780 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8783 * insdel.c (del_range_2): Don't modify gap contents when called
8784 from decode_coding_object. (Bug#1809)
8786 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
8788 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8790 (Ftype_of): Recognize font objects.
8792 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8794 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8797 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8799 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8800 async_iconified. Based on a patch by Christian Lynbech
8801 <christian.lynbech@tieto.com>.
8802 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8804 2009-02-20 Glenn Morris <rgm@gnu.org>
8806 * syntax.c (Fskip_chars_forward): Fix doc typo.
8808 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
8810 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8812 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
8814 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8816 2009-02-19 Kenichi Handa <handa@m17n.org>
8818 * coding.c (detect_coding): Preserve coding->mode.
8819 Don't overflow coding->carryover. (Bug#2370)
8821 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8823 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8825 2009-02-18 Kenichi Handa <handa@m17n.org>
8827 * font.c (font_check_otf_features): Fix handling of `nil' element.
8828 (Ffont_spec): Describe :lang and :otf in the docstring.
8830 2009-02-16 Andreas Schwab <schwab@suse.de>
8832 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8835 2009-02-16 Kenichi Handa <handa@m17n.org>
8837 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
8840 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
8842 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8844 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8845 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8847 2009-02-14 Eli Zaretskii <eliz@gnu.org>
8849 * msdos.c (MAX_SCREEN_BUF): New macro.
8850 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8851 Encode the entire run of glyphs sharing the same face, instead of
8852 doing that one glyph at a time (fixes a bug with displaying
8853 double-size characters).
8855 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8857 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8859 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8860 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
8861 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
8863 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
8864 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
8866 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8868 * keyboard.c (adjust_point_for_property): Allow stopping between two
8871 2009-02-12 Jason Rumney <jasonr@gnu.org>
8873 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8874 (add_font_entity_to_list): Call check_face_name even when family
8877 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8878 Release DC when finished. Use NULL window to refer to desktop.
8879 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
8881 * w32font.c (add_font_entity_to_list): Fix check for substituted
8882 raster fonts. (Bug#2219)
8884 2009-02-12 Kenichi Handa <handa@m17n.org>
8886 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8887 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8888 (autocmp_chars): Use fast_looking_at. Don't compose more
8889 characters than MAX_COMPOSITION_COMPONENTS.
8890 (find_automatic_composition): While looking forward and backward,
8891 check static composition. Fix where to stop looking forward.
8892 (composition_adjust_point): Fix checking of static composition.
8893 (Fcomposition_get_gstring): Pay attention to
8894 MAX_COMPOSITION_COMPONENTS.
8896 * lisp.h (fast_looking_at): Extern it.
8898 * search.c (fast_looking_at): New function.
8900 * term.c (encode_terminal_code): Adjust for the change of
8901 <struct glyph>.u.cmp.to.
8902 (append_composite_glyph): Likewise.
8904 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
8905 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8907 (append_composite_glyph): Adjust for the change of
8908 <strcut glyph>.u.cmp.to.
8910 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
8912 * casetab.c (init_casetab_once):
8913 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8914 * font.c (font_update_lface):
8915 * fontset.c (Fnew_fontset):
8916 * ftfont.c (ftfont_drive_otf):
8917 * xfont.c (xfont_open):
8918 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8920 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8922 * fileio.c (Fwrite_region): !NILP -> CONSP.
8924 2009-02-10 Andreas Schwab <schwab@suse.de>
8926 * process.c (send_process): Properly relocate pointer into data
8927 when using encoded data. (Bug#2272)
8929 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8931 * coding.c (detect_coding_charset): Fix previous change.
8933 2009-02-08 Jason Rumney <jasonr@gnu.org>
8935 * w32fns.c (w32_hide_hourglass): Handle case where frame
8936 disappeared while hourglass was displayed. (Bug #2193)
8938 2009-02-07 Andreas Schwab <schwab@suse.de>
8940 * unexelf.c (unexec): Fix error message.
8942 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8944 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8945 when modal window is active. (Bug #2152)
8946 (applicationShouldTerminate:): Remove now-unneeded while loop
8947 around NSRunAlertPanel.
8949 * nsmenu.m (popupSession): New file-global variable.
8950 (pop_down_menu): End the popupSession before closing dialog.
8951 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8952 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8953 don't query NSApp for events (just sleep instead).
8955 2009-02-07 Eli Zaretskii <eliz@gnu.org>
8957 * coding.c (syms_of_coding) <translation-table-for-input>:
8958 Modify doc string to discourage use for character code unification.
8960 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8962 * atimer.c (run_timers): Update pending_atimers.
8964 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
8966 * image.c (svg_load_image): Fix last change.
8968 * xfns.c (Fx_create_frame): Signal an error if no font is
8971 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
8973 * character.c (syms_of_character) <script-representative-chars>:
8974 Fix typo in docstring.
8976 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8978 * nsmenu.m (pop_down_menu): New function.
8979 (ns_popup_dialog): Call it on unwind.
8980 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8981 call timer_check() (Bug#2154).
8982 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8983 handling_signal is set.
8984 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8986 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8988 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8990 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8992 * keyboard.c (poll_for_input_1, handle_async_input):
8993 Set handling_signal under HAVE_NS.
8995 2009-02-04 Glenn Morris <rgm@gnu.org>
8997 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8999 2009-02-04 Kenichi Handa <handa@m17n.org>
9001 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9003 * charset.c (Fchar_charset): New optional arg restriction.
9005 * coding.h (coding_system_charset_list): Extern it.
9007 * coding.c (coding_system_charset_list): New function.
9009 * composite.c: Include coding.h and termhooks.h.
9010 (composition_gstring_p): Fix for the terminal case.
9011 (composition_gstring_width): Likewise.
9012 (fill_gstring_body): Likewise.
9013 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9015 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9016 is within a composition.
9017 (Fcomposition_get_gstring): Fix the terminal case.
9019 * term.c (encode_terminal_code): Fix handling of composition.
9020 (produce_composite_glyph): For static composition, get pixel_width
9021 from struct composition.
9023 2009-02-02 Andreas Schwab <schwab@suse.de>
9025 * unexelf.c (unexec): Handle unaligned bss offset.
9027 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9029 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9030 XT,w32read_socket changes to ns_read_socket.
9032 * keyboard.c (handle_interrupt): Don't call
9033 quit_throw_to_read_char() under NS.
9035 * blockinput.h: Remove NS-specific code.
9037 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9039 * dispnew.c (window_change_signal): Don't try to get the size of a
9040 suspended tty frame.
9041 * term.c (Fresume_tty): Resize if the size has changed while the
9044 * alloc.c (mark_stack): Properly conditionalize previous change.
9046 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9048 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9049 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9050 Remove; this code is not used on Windows.
9052 2009-01-30 Eli Zaretskii <eliz@gnu.org>
9054 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9055 EOLs that also has stray ^M characters.
9057 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9059 * atimer.c (run_timers, alarm_signal_handler):
9060 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9061 * w32inevt.c (w32_console_read_socket):
9062 * w32term.c (w32_read_socket):
9063 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9065 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
9067 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9068 Initialize it as a relative filename pattern.
9069 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9070 (Fcall_process_region): Simplify temp file creation using
9071 temporary-file-directory.
9073 2009-01-29 Eli Zaretskii <eliz@gnu.org>
9075 * msdos.c: Rename pending_signals to msdos_pending_signals.
9076 (sig_suspender, sigprocmask): Adjust.
9078 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
9080 * keyboard.c (pending_signals): New var.
9081 (poll_for_input, input_available_signal, init_keyboard): Set it.
9082 (process_pending_signals): New function.
9084 * lisp.h (QUIT): Check pending_signals instead of
9085 interrupt_input_pending. Use process_pending_signals.
9087 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
9089 * process.c (wait_reading_process_output): Use process_pending_signals.
9091 * sysdep.c (emacs_write): Use process_pending_signals.
9093 * xterm.c (XTread_socket): Update pending_signals.
9095 * w32term.c (w32_read_socket): Update pending_signals.
9097 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9099 2009-01-29 Kenichi Handa <handa@m17n.org>
9101 * xftfont.c (xftfont_has_char): New function.
9102 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9104 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9106 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9108 (ns_query_color): New declaration.
9110 * nsterm.m (ns_confirm_quit): New variable.
9111 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9112 (EmacsApp-applicationShouldTerminate:): Use it.
9113 (EmacsPrefsController): Let user set it.
9114 (ns_query_color): New function.
9115 (ns_defined_color): Use it.
9116 (ns_initialize): Drop.
9117 (ns_term_init): Add two lines from ns_initialize(), and set
9118 input_interrupt_mode to nil.
9120 * image.c (svg_load_image): Don't right-shift background RGB when
9121 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
9123 2009-01-28 Kenichi Handa <handa@m17n.org>
9125 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9126 (fontset_get_font_group): Remember that no font-group is specified
9129 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
9131 * fns.c (concat): Check for string overflow (bug#1787).
9133 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9134 Quadruple undo limits (bug#1501).
9136 2009-01-27 Kenichi Handa <handa@m17n.org>
9138 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9139 directly use GT_Get_Char_index.
9141 * xftfont.c (struct xftfont_info): New member `index'.
9143 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9144 (Ffontset_font): Adjust for the change of fontset entry.
9146 2009-01-26 Kenichi Handa <handa@m17n.org>
9148 * fontset.c (fontset_find_font): Fix handling of non-cons return
9149 value of fontset_get_font_group.
9150 (fontset_font): Revert last change.
9152 2009-01-26 Jason Rumney <jasonr@gnu.org>
9154 * w32font.c (w32font_list_internal): Return quickly if registry is
9155 unknown. Simplify final return.
9156 (add_font_entity_to_list): Break complex logic down into more
9157 manageable chunks. Move unknown registry check to
9158 w32font_list_internal.
9160 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9162 Changes to remove Feval calls from GUI under NS.
9164 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9165 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
9166 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9168 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9169 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9170 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9171 instead of NON_ASCII_KEYSTROKE_EVENT.
9172 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9173 (EmacsApp-applicationShouldTerminate:): Query user.
9174 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9177 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9179 * keyboard.c (kbd_buffer_get_event): Check for it.
9180 (keys_of_keyboard): Define lispy keys for
9181 ns-put/unput-working-text.
9183 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9185 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9187 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9189 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9190 setting current_buffer directly. (Bug#2044)
9192 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9194 * fontset.c (fontset_font): If we know there is no font, don't do
9195 any work. (Bug#1952, bug#1990).
9197 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9199 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9201 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9202 (ns_no_defaults): New declaration.
9205 * nsterm.h (ns_no_defaults): New declaration.
9207 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9209 * nsterm.m (ns_no_defaults): New variable.
9210 (ns_initialize): Don't read defaults when ns_no_defaults.
9211 (EmacsView-readSelectionFromPasteboard:)
9212 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9213 NSServicesRequests protocol. (Bug#1435)
9214 (ns_dumpglyphs_stretch): New function.
9215 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9216 of 2008-11-15 to other terms. (Bug#615)
9218 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9220 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9222 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9225 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9232 * nsterm.m: Remove '23' comments that indicated code added during
9233 update from emacs-20 -> emacs-23.
9235 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9237 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9238 ns_alternate_modifier. (Bug#1217)
9240 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9241 Display all shortcuts, including those w/o super modifier.
9243 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9245 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9247 * fileio.c (Vwrite_region_post_annotation_function)
9248 (Vwrite_region_annotation_buffers): New vars.
9249 (build_annotations_unwind): Just reset
9250 Vwrite_region_annotation_buffers.
9251 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9252 Call write-region-post-annotation-function.
9253 (build_annotations): Add to Vwrite_region_annotation_buffers if
9256 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9258 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9260 * nsfns.m (ns_do_applescript):
9261 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9263 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9265 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9267 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9269 * nsmenu.m (NSMENUPROFILE): Change #if style.
9271 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9273 * nsterm.m (x_set_frame_alpha): Add prototype.
9274 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9275 handle Ctrl-tab. (Bug#1841)
9276 (ns_get_color): Use unsigned long long for scanned hex string value.
9277 (ns_term_shutdown): Abort on non SIGTERM signals.
9278 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9279 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9280 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9281 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9282 (ns_defined_color): Fix settings of the XColor variable fields:
9283 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9285 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9287 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9288 values in onTiger section.
9290 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9292 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9293 Check return value of font_spec_from_name.
9294 (Fx_list_fonts): Doc fix. (Bug#1951)
9296 * font.c (font_spec_from_name): Return Qnil if font name could not
9298 (font_parse_name): Treat a `?' character as part of an XLFD.
9300 * fns.c (Fsubstring): Doc fix.
9302 2009-01-19 Kenichi Handa <handa@m17n.org>
9304 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9305 (ftfont_list): Likewise.
9307 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9309 * dbusbind.c (Fdbus_register_signal):
9310 * process.c (conv_sockaddr_to_lisp):
9311 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9313 * callproc.c (Fgetenv_internal): Doc fix.
9315 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9317 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9318 it is not even used.
9320 2009-01-16 Glenn Morris <rgm@gnu.org>
9322 * font.c (Ffont_variation_glyphs): Silence compiler.
9324 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9326 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9327 Reported by David Robinow <drobinow@gmail.com>.
9329 2009-01-15 Kenichi Handa <handa@m17n.org>
9331 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9333 2009-01-14 Jason Rumney <jasonr@gnu.org>
9335 * frame.c (x_set_font): Always store a font to the font parameter,
9336 never a fontset. (Bug#1562)
9338 2009-01-14 Kenichi Handa <handa@m17n.org>
9340 * coding.c (TWO_MORE_BYTES): New macro.
9341 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9343 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9345 * font.c (font_clear_prop): If clearing the family, clear the font
9348 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9350 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9352 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9353 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9354 functions, use sizeof.
9356 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9358 * keyboard.c (read_char): Fix case where last_nonmenu_event
9359 returned a bad value with submenus. (Bug#447)
9361 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9363 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9364 family, clear the font width index too.
9366 2009-01-11 Jason Rumney <jasonr@gnu.org>
9368 * keyboard.c (cmd_error_internal): Exit when errors occur before
9369 frame creation and not in daemon mode. (Bug#1836)
9371 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9373 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9374 of a display vector, backtrack.
9375 (try_window_reusing_current_matrix): Check glyph type before
9376 referencing charpos member.
9378 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9382 * coding.c (inhibit_null_byte_detection): New variable.
9383 (detect_coding, detect_coding_system): Don't pay attention to null
9384 bytes if inhibit_null_byte_detection is non-zero.
9385 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9386 <inhibit-iso-escape-detection>: Doc fix.
9388 2009-01-09 Jason Rumney <jasonr@gnu.org>
9390 * w32font.c (add_font_entity_to_list): Don't report unknown
9391 Windows charset as any unrecognized registry. (Bug#1548)
9392 Only report Unicode Plane 2 fonts as unicode-sip.
9394 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9396 * xfaces.c (Fx_font_family_list): Delete function.
9397 Move compatibility version to faces.el.
9399 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9401 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9403 * frame.c (x_set_frame_parameters): Remember requested value for
9404 fullscreen before it's reset by the parameter handler.
9406 2009-01-09 Glenn Morris <rgm@gnu.org>
9408 * keyboard.c (last_command_char): For clarity, rename to...
9409 (last_command_event): ... and update all users.
9410 (last_input_char): For clarity, rename to...
9411 (last_input_event): ... and update all users.
9412 (last-command-char, last-input-char): Move to subr.el as aliases.
9413 * cmds.c, commands.h: Update for last_command_char rename.
9415 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9417 * font.c (font_open_for_lface): Handle unspecified height attribute.
9419 2009-01-08 Jason Rumney <jasonr@gnu.org>
9421 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9422 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9423 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9425 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9426 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9428 2009-01-07 Kenichi Handa <handa@m17n.org>
9430 * fileio.c (Finsert_file_contents): In the case of replace,
9431 remember the coding system used for decoding in
9432 coding_system (Bug#1039).
9434 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9435 breaking the loop. (Bug#870)
9436 (decode_coding_utf_16, decode_coding_emacs_mule)
9437 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9438 (decode_coding_charset): Likewise.
9440 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9442 * frame.c (x_set_frame_parameters): Make sure height (width) get
9443 applied when fullwidth (fullheight) is set. (Bug#1522)
9445 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9447 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9448 (utc_base): Declare as ULONGLONG, not long double.
9449 (convert_time_raw): Delete.
9450 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9451 (initialize_utc_base): New function.
9452 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9453 (convert_from_time_t): Use initialize_utc_base; compute result with
9455 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9457 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9459 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9460 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9461 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9462 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9463 [!subprocesses]: Define.
9464 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9465 (Flist_system_processes, Fsystem_process_attributes)
9466 [!subprocesses]: Call list_system_processes and
9467 system_process_attributes instead of returning Qnil.
9469 * dosfns.c (system_process_attributes, list_system_processes):
9472 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9474 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9475 Don't use the default (no-op) implementation.
9477 2009-01-03 Jason Rumney <jasonr@gnu.org>
9479 * keyboard.c (parse_modifiers_uncached): Wheel events are
9482 * w32term.c (x_query_colors, x_query_color): New functions.
9484 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9485 (svg_load_image): Cast returned pointers from dynamically loaded
9486 functions. Eliminate W32 specific code.
9488 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9490 * nsfns.m (x_set_foreground_color, x_set_background_color)
9491 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9492 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9493 x_ prefix instead of ns_. Update references.
9494 (syms_of_nsfns): Add a FIXME comment.
9496 * nsterm.m (x_set_cursor_type): New prototype.
9497 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9499 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9500 for Solaris instead of incorrectly providing Qutime and Qcutime.
9502 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9504 * w32.c (process_times): Compute sum of utime and stime.
9505 (system_process_attributes): Add Qtime to the alist.
9507 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9508 and add them to the alist.
9510 * process.c (top level) <Qtime, Qctime>: New variables.
9511 (syms_of_process): staticpro them.
9512 (Fsystem_process_attributes): Add their documentation to the doc
9515 * process.h: Declare Qtime and Qctime.
9517 2009-01-02 Jason Rumney <jasonr@gnu.org>
9519 * image.c (Qgobject): New symbol.
9520 (syms_of_image): Initialize it.
9521 (init_svg_functions): Load some functions from gobject library.
9523 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9525 * frame.c (make_terminal_frame): Remove redundant code and useless
9528 2009-01-01 Andreas Schwab <schwab@suse.de>
9530 * process.c (conv_sockaddr_to_lisp): Add workaround for
9531 getsockname bug on BSD.
9533 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9535 * xfns.c (x_create_tip_frame): Set border width of the X window.
9537 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9539 2009-01-01 Jason Rumney <jasonr@gnu.org>
9541 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9542 Don't block input, as per earlier xterm.c changes.
9544 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9546 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9547 (ns_appkit_version_int): New function.
9548 (x-server-version): Use ns_appkit_version_int and follow 21+
9549 convention of returning 3 integers.
9551 2008-12-30 Kenichi Handa <handa@m17n.org>
9553 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9554 (CHAR_SURROGATE_PAIR_P): New macro.
9556 * font.h (struct font_driver): New member get_variation_glyphs.
9558 * font.c (font_range): Don't require a font for a variation selector.
9559 (Ffont_variation_glyphs): New function.
9560 (syms_of_font): Defsubr it.
9562 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9563 ftfont_variation_glyphs.
9564 (setup_otf_gstring): New function.
9565 (ftfont_drive_otf): Use it.
9566 (ftfont_shape_by_flt): Handle variation selector.
9567 (ftfont_variation_glyphs): New function.
9569 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9571 * frame.c (Vemacs_iconified): Remove.
9573 2008-12-30 Jason Rumney <jasonr@gnu.org>
9575 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9576 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9578 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9580 * indent.c (Fvertical_motion): Don't advance iterator if we have
9581 reseated to the desired position.
9583 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9584 checking for pos match.
9586 2008-12-30 Kenichi Handa <handa@m17n.org>
9588 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9589 just get the low 8-bit of the code.
9591 * font.c (font_intern_prop): Validate str as multibyte.
9593 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9595 * dispextern.h (struct face): Move lface and hash from the middle
9598 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9600 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9602 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9603 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9604 instead of intervals.h.
9606 2008-12-26 Andreas Schwab <schwab@suse.de>
9608 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9611 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9613 * textprop.c (Qminibuffer_prompt): New variable.
9614 (syms_of_textprop): Initialize it.
9615 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9616 in minibuffer-prompt face. (Bug#1662)
9618 2008-12-25 Jason Rumney <jasonr@gnu.org>
9620 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9622 2008-12-24 Jason Rumney <jasonr@gnu.org>
9624 * ralloc.c (r_alloc_reset_variable): New function.
9626 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9627 record of what points where. (Bug#716)
9629 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9631 * minibuf.c (read_minibuf): Follow the non-interactive case when
9632 running as a daemon, before detaching.
9634 2008-12-22 Andreas Schwab <schwab@suse.de>
9636 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9637 * gtkutil.c (free_widget_value): Use xfree instead of free.
9639 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9641 * frame.c (delete_frame): New function derived from
9642 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9643 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9644 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9645 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9646 * frame.h: Extern delete_frame.
9647 * window.c (window_loop):
9648 * terminal.c (delete_terminal):
9649 * xterm.c (x_connection_closed):
9650 * xfns.c (Fx_hide_tip):
9651 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9653 2008-12-21 Jason Rumney <jasonr@gnu.org>
9655 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9656 when character maps to .notdef character.
9658 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9660 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9662 2008-12-20 Jason Rumney <jasonr@gnu.org>
9664 * frame.c (Fmake_terminal_frame): Raise an error when called from
9665 a graphical frame on Windows. (Bug#1325)
9667 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9669 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9671 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9673 * minibuf.c (Fread_buffer): Doc fix.
9675 2008-12-20 Jason Rumney <jasonr@gnu.org>
9677 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9678 server name in UNC paths. (Bug#719)
9680 * coding.c (decode_coding): Clear chars_at_source flag when using
9683 2008-12-19 Daniel Engeler <engeler@gmail.com>
9685 * sysdep.c (serial_configure): Fix typo.
9687 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9689 * sysdep.c: Include alloca.h.
9690 (system_process_attributes): Add implementation for Solaris.
9692 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9694 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9696 Reorganize implementation of Flist_system_processes and
9697 Fsystem_process_attributes. No functional changes.
9698 * process.c: Don't #include pwd.h, grp.h and limits.h.
9699 (Flist_system_processes): Just call list_system_processes.
9700 (Fsystem_process_attributes): Just call system_process_attributes.
9701 (procfs_list_system_processes, time_from_jiffies)
9702 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9703 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9705 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9706 (list_system_processes): Rename from
9707 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9708 Provide a do nothing implementation.
9709 (system_process_attributes): Rename from
9710 procfs_list_system_processes.
9711 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9712 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9714 * w32.c (list_system_processes): Rename from
9715 w32_list_system_processes.
9716 (system_process_attributes): Rename from
9717 w32_system_process_attributes.
9719 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9721 * process.h (w32_list_system_processes)
9722 (w32_system_process_attributes): Remove.
9723 (list_system_processes, system_process_attributes):
9726 2008-12-19 Kenichi Handa <handa@m17n.org>
9728 * xfont.c (xfont_decode_coding_xlfd): New function.
9729 (xfont_encode_coding_xlfd): New function.
9730 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9731 (xfont_list): Decode and encode XLFD by iso-8859-1.
9732 (xfont_match): Likewise.
9733 (xfont_list_family): Likewise.
9734 (xfont_open): Likewise.
9736 * ftfont.c (ftfont_open): Generate a multibyte string if given
9739 * xftfont.c (xftfont_open): Generate a multibyte string if given
9742 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9744 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9746 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9747 clicked on a detached tool bar button.
9749 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9751 * emacs.c (main): Print and error and exit when no data is read
9754 2008-12-17 Jason Rumney <jasonr@gnu.org>
9756 * w32font.c (w32font_has_char): Always return -1.
9758 2008-12-16 Kenichi Handa <handa@m17n.org>
9760 * font.c (font_open_entity): Fix previous change.
9762 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9764 * process.c: Include <limits.h>.
9766 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
9768 * font.c (font_update_drivers): Fix mistake in reconstructing the
9771 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
9773 * font.c (font_clear_cache): Fix format of font cache data.
9775 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
9777 * xftfont.c (xftfont_open): Free Xft font pattern if
9778 XftFontOpenPattern fails.
9780 * xterm.c (x_free_frame_resources): Remove extraneous call to
9783 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9785 * xterm.c (x_delete_display): Move xim_close_dpy call to
9787 (x_delete_terminal): Call xim_close_dpy.
9789 2008-12-13 Jason Rumney <jasonr@gnu.org>
9791 * w32font.c (intern_font_name): New function.
9792 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9793 (w32font_open_internal, Fx_select_font): Decode font name.
9794 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9796 * w32font.h (intern_font_name): Declare new function.
9798 * w32uniscribe.c (add_opentype_font_name_to_list):
9799 Use intern_font_name.
9801 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9803 * frame.c (Fdelete_frame): Call free_font_driver_list.
9805 * font.c (free_font_driver_list): Implement missing function.
9807 * w32term.c (w32_term_init): Don't initialize the image cache
9808 here; it will be done in init_frame_faces.
9810 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9811 (struct x_display_info): Remove unused member null_pixel. New
9812 member xim_callback_data.
9814 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9815 (xim_initialize): Save pointer to callback function data.
9816 (xim_close_dpy): Free callback function data. Call XCloseIM,
9817 reverting 2008-11-04 change by David Smith.
9818 (x_term_init): Don't initialize the image cache here; it will be
9819 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9820 (x_delete_display): Free x_dnd_atoms member.
9822 2008-12-13 Kenichi Handa <handa@m17n.org>
9824 * font.c (font_rescale_ratio): Moved from xfaces.c.
9825 Argument type changed. Handle a font-spec too.
9826 (font_score): Check Vface_font_rescale_alist.
9827 (font_open_entity): Likewise. (Bug#1547)
9829 * xfaces.c (font_rescale_ratio): Moved to font.c.
9831 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9833 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9835 2008-12-12 Jason Rumney <jasonr@gnu.org>
9837 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9838 Vwindow_system_version to the real w32 major version.
9840 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9842 * term.c (init_tty): Move setting the terminal name before the
9843 potential user: maybe_fatal.
9845 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
9847 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9848 all callers changed. Call free_frame_faces to free the face cache.
9850 2008-12-11 Jason Rumney <jasonr@gnu.org>
9852 * w32font.c (fill_in_logfont): Don't assume symbol script means
9853 SYMBOL_CHARSET. (Bug#547)
9855 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9856 size for surrogates. (Bug#1096, bug#872)
9858 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9860 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9862 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9864 * process.c (Fsystem_process_attributes, syms_of_process):
9865 Fix typo in name of Ssystem_process_attributes.
9866 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9868 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9870 * syntax.c (Fmodify_syntax_entry): Doc fix.
9872 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9874 * font.c (Ffont_spec): Move usage to end of docstring.
9876 2008-12-10 Jason Rumney <jasonr@gnu.org>
9878 * w32font.c (Qcham): New symbol.
9879 (font_supported_scripts): Add cham, and comments for other new
9880 scripts in bitfield from OpenType spec.
9881 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9882 contain characters beyond the bmp.
9884 2008-12-10 Kenichi Handa <handa@m17n.org>
9886 * ftfont.c (fc_charset_table): Add "unicode-sip".
9887 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9890 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9892 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9893 (Fcoding_system_put): Use QCdefault_char.
9894 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9896 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
9898 * xftfont.c (syms_of_xftfont): Fix typo.
9900 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9902 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9904 * emacs.c (main): Close daemon_pipe on exec.
9906 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
9908 * termchar.h (struct tty): New members termcap_term_buffer and
9909 termcap_strings_buffer.
9911 * term.c (encode_terminal_code): Free any previous memory blocks
9912 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
9913 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9914 All callers changed.
9915 (init_tty): Store termcap data and string buffers in new struct
9916 tty members termcap_term_buffer and termcap_strings_buffer.
9917 (delete_tty): Free them.
9918 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9920 2008-12-07 Seiji Zenitani <zenitani@mac.com>
9922 * nsfns.m (ns_set_background_color): Remove code duplication.
9923 It was a substitute for face-transparency on OS X 10.3.
9925 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
9927 * coding.c (make_conversion_work_buffer): Disable buffer
9928 modification hooks in the work buffer.
9930 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9932 * process.c (procfs_system_process_attributes): If `nread' has a
9933 negative value, assign zero to it.
9935 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
9937 * eval.c (Vdebug_on_error): Doc fix.
9939 2008-12-05 Kenichi Handa <handa@m17n.org>
9941 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9942 second character is a combining character.
9944 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9946 * process.c (procfs_system_process_attributes): Don't use cmd,
9947 cmdsize, and q without initializing them first.
9949 2008-12-04 Jason Rumney <jasonr@gnu.org>
9951 * w32font.c (w32font_draw): Initialize orig_clip before getting
9952 it, and delete it when finished.
9954 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9956 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9957 case when running as a daemon before detaching.
9959 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
9961 * w32.c (init_environment): Don't unload library shell32.dll.
9963 2008-12-03 Kenichi Handa <handa@m17n.org>
9965 * font.c (font_at): Set `multibyte' at first.
9967 * coding.c (decode_coding_charset): Check type of an element of
9969 (encode_coding_emacs_mule): Be sure to set `code'.
9971 * fontset.c (face_for_char): Handle invalid charset property correctly.
9972 (font_for_char): Likewise.
9974 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
9976 * font.c (Fopen_font): Compute pixel size correctly.
9977 (font_update_lface): Handle fonts with corrupted size specs,
9978 i.e. non-int and non-float.
9980 * ftfont.c (ftfont_match): Initialize entity variable.
9981 (ftfont_resolve_generic_family): Avoid using uninitialized var.
9982 (ftfont_list_family): Initialize list var earlier.
9984 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9986 * xterm.c (x_draw_glyph_string): Fall back on
9987 underline_minimum_offset for underline position.
9989 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9991 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9993 * character.c (c_string_width): Specify the type for LEN.
9995 2008-12-03 Kenichi Handa <handa@m17n.org>
9997 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9998 (decode_coding_utf_8): Likewise.
9999 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10000 (produce_chars): Initialize consumed_chars to 0.
10002 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10004 * keyboard.c (make_lispy_position): Only use PT if the selected
10007 2008-12-02 Andreas Schwab <schwab@suse.de>
10009 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10011 * doprnt.c (doprnt1): Fix size of charbuf.
10013 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10015 * keyboard.c (timer_check): Revert last change.
10017 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10019 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10021 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10023 * makefile.w32-in: Update dependencies.
10024 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10026 2008-12-01 Andreas Schwab <schwab@suse.de>
10028 * font.c (register_font_driver): Use xmalloc.
10029 (font_put_frame_data): Likewise.
10031 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10033 * xfaces.c (realize_x_face): Make abort condition clearer.
10035 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10037 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10039 * keyboard.c (timer_check): After a timer runs, ensure that the
10040 selected window's buffer is current.
10042 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
10044 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10045 It was accidentally restored by the Unicode merge.
10047 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10049 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
10051 * w32proc.c: Include "coding.h".
10052 (Fw32_short_file_name): Encode filename passed to Windows API.
10053 (Fw32_long_file_name): Encode filename passed to Windows API and
10054 decode back the result. (Bug#1433)
10056 2008-11-29 Kenichi Handa <handa@m17n.org>
10058 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10059 not before accessing it.
10061 * charset.c (Fdefine_charset_internal): After calculating
10062 min_char, max_char, and fastmap, copy the charset structure again.
10063 (encode_char): Fix the previous change.
10065 2008-11-28 Seiji Zenitani <zenitani@mac.com>
10067 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10069 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10071 * nsterm.m (x_set_frame_alpha): New function.
10073 2008-11-27 Eli Zaretskii <eliz@gnu.org>
10075 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10077 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
10079 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10080 pointer to check_face_name.
10082 2008-11-27 Kenichi Handa <handa@m17n.org>
10084 * category.h (SET_CATEGORY_SET): Call set_category_set.
10085 (set_category_set): Extern it.
10087 * category.c (hash_get_category_set): New function.
10088 (Fmodify_category_entry): Adjusted for the change of
10089 char_table_ref_and_range. Call hash_get_category_set to get a
10090 category set to store in the table.
10092 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10095 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
10096 (DECODE_CHAR): Check if the decoder vector is ready.
10097 (ENCODE_CHAR): Check if the encoder char-table is ready.
10098 (maybe_unify_char): Extern it.
10100 * charset.c (Vchar_unified_charset_table): Delete it.
10101 (inhibit_load_charset_map): New variable.
10102 (temp_charset_work): New variable.
10103 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10104 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10106 (load_charset_map): Meaning of control_flag changed. If
10107 inhibit_load_charset_map is nonzero, setup a table in
10109 (load_charset): New argument control_flag.
10110 (map_charset_for_dump): New function.
10111 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10112 map_charset_for_dump.
10113 (Fdefine_charset_internal): If the charset method is MAP, load
10114 mapping tables by calling load_charset.
10115 (Funify_charset): Don't load a mapping table but directly set
10117 (maybe_unify_char): New function.
10118 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10119 Handle the case of inhibit_load_charset_map being nonzero.
10120 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10121 Handle the case of inhibit_load_charset_map being nonzero.
10122 (Fclear_charset_maps): Just free temp_charset_work.
10123 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10126 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10127 change of char_table_ref_and_range.
10128 (char_table_ref_and_range): Change the meaning of argument FROM
10129 and TO. Now the caller must provide initial values for *FROM
10132 * fontset.c (fontset_add): Adjusted for the change of
10133 char_table_ref_and_range.
10134 (fontset_get_font_group): Likewise.
10135 (Ffontset_info): Likewise.
10137 * keymap.c (describe_vector): Adjusted for the change of
10138 char_table_ref_and_range. For char-table, put boundary between
10139 non-ASCII and 8-bit characters.
10141 * print.c (print_object): For bool-vector, delete unnecessary
10142 check of ASCII_BYTE_P.
10144 2008-11-26 Jason Rumney <jasonr@gnu.org>
10146 * w32font.c (w32font_open_internal): Don't include external
10147 leading in font height. (Bug#879)
10149 2008-11-26 Glenn Morris <rgm@gnu.org>
10151 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10152 redefinition with ifdef. (Bug#1383)
10154 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10156 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10158 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10160 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10161 New EmacsView methods.
10162 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10163 Fixes bug #1048,1357,1414.
10165 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10168 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10169 is not an indexed color.
10170 * nsterm.m (free_indexed_color): Add argument checking.
10171 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10173 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
10175 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10176 Document confirm-after-completion value for
10177 minibuffer-completion-confirm.
10179 2008-11-24 Jason Rumney <jasonr@gnu.org>
10181 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10184 2008-11-23 Jason Rumney <jasonr@gnu.org>
10186 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10187 restored before returning.
10189 * w32font.c (check_face_name): New function.
10190 (add_font_entity_to_list): Use it to filter out common substituted
10193 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10195 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10196 confirm-nonexistent-file-or-buffer in doc-string.
10198 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10200 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10201 Fix copy/paste typo. Add checks.
10203 2008-11-21 Kenichi Handa <handa@m17n.org>
10205 * coding.c (detect_coding_iso_2022): Reject invalid composition
10207 (DECODE_COMPOSITION_START): If the current source is the last
10208 block, and the current composition doesn't end, regard this
10209 sequence as invalid.
10210 (decode_coding_iso_2022): Handle invalid composition sequence.
10212 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10214 * window.c (coordinates_in_window): Don't return
10215 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10216 line when the window is not the rightmost one. (Bug#1372)
10218 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10220 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10222 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10224 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10225 and bright_bg if noninteractive is non-zero.
10227 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10229 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10230 x_draw_glyph_string_background.
10232 * w32term.c (x_draw_glyph_string): Likewise.
10234 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10236 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10237 the next glyph string once past the overhang width.
10239 * nsterm.m (ns_draw_glyph_string): Likewise.
10241 * w32term.c (x_draw_glyph_string): Likewise.
10243 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10245 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10248 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10250 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10251 dedicated status of window before attempting to display another
10254 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10256 * msdos.c (Fmsdos_long_file_names):
10257 (syms_of_msdos) <dos-unsupported-char-glyph>:
10258 * dosfns.c (Fint86): Fix typos in docstrings.
10260 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10262 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10264 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10266 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10268 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10270 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10272 * frame.h: Negative alpha means "don't touch".
10274 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10276 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10278 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10282 * acldef.h: Remove files used only for systems no longer supported.
10284 * Makefile.in: Fix .o alphabetical ordering.
10285 (hftctl.o): Remove dependency, file removed.
10286 (keymap.o, print.o): Depend on charset.h.
10288 2008-11-10 Kenichi Handa <handa@m17n.org>
10290 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10292 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10294 * dired.c (file_name_completion): If completion_ignore_case is
10295 enabled, ignore case when checking completion-regexp-list.
10297 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10299 * vm-limit.c (get_lim_data): Fix last change.
10301 2008-11-08 Kenichi Handa <handa@m17n.org>
10303 * character.c (Fget_byte): New function.
10304 (syms_of_character): Defsubr Fget_byte.
10306 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10308 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10309 cursor position is valid after scrolling.
10311 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10313 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10315 2008-11-06 Glenn Morris <rgm@gnu.org>
10317 * xterm.c (handle_one_xevent): Don't let popup menus cause
10318 mouse-autoselect-window related window switching. (Bug#1261)
10320 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10322 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10324 2008-11-04 Andreas Schwab <schwab@suse.de>
10326 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10328 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10330 * xfns.c (Fx_wm_set_size_hint): New function.
10332 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10334 * textprop.c (Fprevious_single_char_property_change): Return 0
10335 when there's no change in a string. (Bug#1301)
10337 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10339 * frame.c (do_switch_frame): New argument NORECORD passed to
10341 (Fselect_frame): New argument NORECORD passed to
10343 (Fset_frame_selected_window): New argument NORECORD passed to
10345 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10346 in call of do_switch_frame.
10347 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10348 Handle NORECORD argument in call of Fselect_frame.
10349 * lisp.h (do_switch_frame, Fselect_frame)
10350 (Fset_frame_selected_window): Adjust declarations.
10351 * window.c (select_frame_norecord): New function.
10352 (run_window_configuration_change_hook): Use it and call
10353 Fselect_frame with NORECORD set.
10354 (Fselect_window): Pass NORECORD to Fselect_frame.
10355 (Fset_window_configuration): Handle NORECORD argument in call of
10357 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10358 Fset_frame_selected_window.
10359 * keyboard.c (command_loop_1): Handle NORECORD in call of
10360 Fselect_frame (currently ifdefd).
10362 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10364 * emacs.c (USAGE2): Untabify.
10366 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10368 * composite.c (fill_gstring_header): Fix copy/paste typo.
10370 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10372 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10373 (Fother_window): Rename argument and rewrite doc-string.
10374 (select_window_norecord): Fix return value. (Bug#1276)
10376 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10378 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10379 new frames overriding foreground for tooltips. Based on similar patch
10380 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10382 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10384 * emacs.c (Fdaemon_initialized): Initialize nfd.
10386 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10388 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10389 (Fwindow_text_height): Clarify doc-strings.
10390 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10391 doc-string of window-scroll-functions.
10393 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10395 * category.c (syms_of_category): Fix typo in docstring.
10397 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10399 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10400 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10401 Fix typos in docstrings.
10403 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10405 * emacs.c (daemon_pipe): Make non-static.
10406 (IS_DAEMON): Move definition ...
10407 * lisp.h (IS_DAEMON): ... here.
10408 (daemon_pipe): Declare.
10409 (is_daemon): Remove.
10410 * dispnew.c (init_display): Use IS_DAEMON.
10412 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10414 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10415 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10417 * emacs.c (is_daemon): Remove.
10418 (main): Don't set is_daemon.
10419 (IS_DAEMON): New macro.
10420 (Fdaemonp, Fdaemon_initialized): Use it.
10421 (Fdaemon_initialized): Write a char into the pipe to make sure the
10423 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10425 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10427 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10428 over-sized glyph, draw it with the default glyph width.
10430 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10431 glyph, draw it with the default glyph width.
10433 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10434 glyph, draw it with the default glyph width.
10436 * xdisp.c (try_scrolling): When computing the distance from the
10437 scroll margin to PT, try moving some distance past the window
10438 bottom before giving up.
10440 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10442 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10443 (Fset_window_buffer): Explain in doc-string that a window can be
10444 "strongly" dedicated to its buffer.
10446 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10448 * emacs.c (daemon_name): New variable.
10449 (main): Deal with --daemon=SERVER_NAME.
10450 (Fdaemonp): Return a name if one was passed to --daemon.
10452 2008-10-26 Romain Francoise <romain@orebokech.com>
10454 * emacs.c (daemon_pipe): New variable.
10455 (main): Create a pipe before forking, make the parent exit only after
10456 the child has closed its end of the pipe. Move closing the
10458 (Fdaemon_initialized): ... here. New function.
10460 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10462 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10463 the previous unoptimized table.
10465 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10466 the distinction between non-nil and non-t value of `dedicated'.
10468 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10470 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10471 read_char_minibuf_menu_text is large enough to hold the menu string.
10473 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10475 * window.c (Fget_buffer_window, Fdelete_windows_on)
10476 (Freplace_buffer_in_windows): Make buffer argument optional and
10477 rename to buffer_or_name.
10479 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10481 * xdisp.c (handle_single_display_spec, handle_display_prop):
10482 Undo 2005-05-16 change.
10483 (handle_stop): Pop iterator if it's loaded with an empty string.
10484 (get_overlay_strings_1): Don't save iterator if it's loaded with
10485 an empty string (bug#1201).
10487 2008-10-24 Kenichi Handa <handa@m17n.org>
10489 * ftfont.c (ftfont_otf_features): Fix previous change.
10490 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10491 calling ftfont_otf_features.
10493 2008-10-24 Kenichi Handa <handa@m17n.org>
10495 * font.c (font_match_p): Fix for the case that a vector of
10496 characters is in script-representative-chars.
10498 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10500 * dbusbind.c (xd_in_read_queued_messages): New variable.
10501 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10502 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10503 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10506 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10508 * s/sol2-10.h: New file.
10510 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10512 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10513 poor beast has survived 9+ years and the jump from xterm.c!).
10515 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10517 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10519 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10521 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10523 * character.c (syms_of_character) <script-representative-chars>:
10524 <unicode-category-table>: Doc fixes.
10526 2008-10-23 Noah Friedman <friedman@splode.com>
10528 * coding.c (make_conversion_work_buffer): Check that
10529 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10530 Fget_buffer_create.
10532 2008-10-23 Kenichi Handa <handa@m17n.org>
10534 * font.c (font_add_log): Check the values of extra properties.
10536 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10538 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10540 (Fset_window_parameter): Use NILP.
10541 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10542 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10544 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10546 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10548 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10550 * nsfns.m (ns_appkit_version): New function.
10551 (x-server-version): Use it.
10552 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10553 (x-server-vendor): Don't check_ns().
10555 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10557 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10559 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10560 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10562 2008-10-22 Kenichi Handa <handa@m17n.org>
10564 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10567 * category.c (word_boundary_p): Check scripts instead of charset.
10568 Handle nil value in word-separating-categories and
10569 word-combining-categories.
10570 (syms_of_category): Fix docstrings of word-separating-categories
10571 and word-combining-categories.
10573 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10575 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10576 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10578 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10580 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10581 Rename arg "buffer" to "buffer_or_name".
10582 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10584 (no_switch_window): Remove since the return value is not used.
10585 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10586 Consider window as dedicated when Fwindow_dedicated_p returns a
10588 * lisp.h: Remove prototype for no_switch_window.
10590 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10592 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10593 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10595 2008-10-21 Kenichi Handa <handa@m17n.org>
10597 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10598 check Vlatin_extra_code_table.
10600 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10602 * fileio.c (Fset_file_modes): Doc fix.
10604 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10606 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10609 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10611 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10612 Mention kill-buffer in doc-string.
10613 (Fset_window_buffer): Reinsert tem check removed in last commit.
10614 (Fenlarge_window, Fshrink_window): Have argument names and
10615 doc-string follow Elisp manual more closely.
10617 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10619 * fileio.c (Fset_file_modes): Doc fix.
10621 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10623 * window.c (Fwindow_width, Fset_window_start)
10624 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10625 (Fdelete_windows_on, Freplace_buffer_in_windows):
10626 Make doc-strings follow code and Elisp manual more closely.
10627 (Fwindow_dedicated_p): Make window argument optional.
10628 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10629 (Fset_window_buffer): Respect any non-nil dedicated value for
10630 window. Rename "buffer" argument to "buffer_or_name".
10632 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10634 * m/sh3.h: New file, machine description for SuperH.
10636 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10638 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10640 2008-10-17 Kenichi Handa <handa@m17n.org>
10642 * ftfont.c (ftfont_otf_features): Fix indexing
10643 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10645 2008-10-16 Magnus Henoch <mange@freemail.hu>
10647 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10648 (Fdbus_call_method_asynchronously): Ditto.
10649 This change makes C-h f display the argument list.
10651 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10653 * fileio.c (Fexpand_file_name): Doc fix.
10655 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10656 of :foreground and :background equivalent to unspecified (20.x
10659 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10661 * buffer.c (syms_of_buffer): Doc fix.
10663 2008-10-14 Kenichi Handa <handa@m17n.org>
10665 * font.c (font_clear_prop): When clearing font width, clear the
10666 average width field too.
10668 2008-10-12 Andreas Schwab <schwab@suse.de>
10670 * ftfont.c (ftfont_shape_by_flt): Make static.
10671 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10673 * font.c: Don't include <m17n-flt.h>.
10675 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10677 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10679 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10681 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10684 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10686 * dispnew.c (update_text_area): Avoid looping due to large glyph
10687 overhangs (bug#1070).
10689 2008-10-09 Kenichi Handa <handa@m17n.org>
10691 * fontset.c (face_for_char): If face->fontset is negative, just
10694 * font.c (font_delete_unmatched): Fix previous change.
10695 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10697 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10699 * frame.c (Fraise_frame): On text-only terminals select frame in
10700 order to make it visible. (Bug#1061)
10702 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10704 * fontset.c (fontset_find_font): Check frame validity.
10706 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10708 * gtkutil.c (xg_display_open): Reset default display if none exists.
10709 (xg_display_close): Allow Emacs to close all displays (bug#985).
10711 2008-10-06 Andreas Schwab <schwab@suse.de>
10713 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10715 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10717 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10719 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10721 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10722 during initialization.
10724 2008-10-04 Eli Zaretskii <eliz@gnu.org>
10726 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10727 whole thing on MSDOS frames as well as on a TTY.
10729 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10731 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10734 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10735 as well as for TTY.
10737 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10739 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10740 MSDOS frames as well.
10742 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10744 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10746 * menu.c (find_and_return_menu_selection): Add cast.
10748 2008-10-03 Glenn Morris <rgm@gnu.org>
10750 * emacs.c (USAGE1): Add --daemon.
10752 2008-10-02 Eli Zaretskii <eliz@gnu.org>
10754 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10755 100, so it's in percents as advertised.
10757 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10759 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10760 (ns_output.current_cursor, ns_output.desired_cursor)
10761 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10762 (FRAME_NEW_CURSOR_COLOR): Remove.
10764 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
10765 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
10766 enumeration (HOLLOW_BOX_CURSOR, etc.).
10768 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10769 (draw_window_cursor): Simplify code.
10770 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10771 Don't change cursor type. In latter, call rehighlight instead of doing
10773 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10774 Use core Emacs cursor types.
10776 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
10778 2008-10-02 Martin Rudalics <rudalics@gmx.at>
10780 * process.c (Faccept_process_output): Fix doc-string.
10782 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10784 * gmalloc.c (__sbrk): Also define for uClibc.
10786 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10789 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10791 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10793 (nsfont_open): Reenable the cache.
10795 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10797 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10798 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10800 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10802 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10803 a suspended terminal.
10805 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
10807 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10809 2008-09-30 Eli Zaretskii <eliz@gnu.org>
10811 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10813 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
10815 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10816 in a continued line coincides with a line beginning.
10818 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10820 * nsfont.m (nsfont_trait_distance): Fix bug.
10821 (nsfont_list): Return a list rather than a vector (syncs with Handa
10822 changes of 2008-05-14).
10823 (nsfont_open): Improve logging.
10825 2008-09-29 Andreas Schwab <schwab@suse.de>
10827 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10829 2008-09-28 Martin Rudalics <rudalics@gmx.at>
10831 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10832 name as char-resolve-modifiers.
10833 Reported by: Markus Triska <markus.triska@gmx.at>
10835 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10837 * dispnew.c (init_display): Return earlier when running as a daemon.
10839 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10841 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10843 2008-09-27 Eli Zaretskii <eliz@gnu.org>
10845 * composite.c (Fcomposition_get_gstring)
10846 (Fcompose_region_internal, Fcompose_string_internal)
10847 (Ffind_composition_internal): Doc fix.
10848 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10849 (syms_of_composite) <auto-composition-function>: Doc fix.
10850 (syms_of_composite) <composition-function-table>: Doc fix.
10852 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
10854 * search.c (wordify): New argument for lax word-ends.
10855 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10857 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10859 * lisp.h (is_daemon): Declare.
10860 * dispnew.c (init_display): Do not try to initialize the terminal
10861 when running as a daemon.
10863 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
10865 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10866 x_display_pixel_height.
10868 2008-09-22 Martin Rudalics <rudalics@gmx.at>
10870 * undo.c (record_point): Don't call Fundo_boundary for first
10873 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
10875 * emacs.c (Fdaemonp): Doc fix.
10877 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10879 * emacs.c (main): Place #ifdef in the proper place.
10881 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10883 * emacs.c (standard_args): Add --daemon.
10884 (main): Disconnect from the terminal when --daemon is passed.
10885 (is_daemon): New variable.
10886 (Fdaemonp): New function.
10887 (syms_of_emacs): Defsubr it.
10889 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
10891 * xdisp.c (get_next_display_element): Handle string display
10892 correctly when checking for the end of a box run.
10894 2008-09-20 Glenn Morris <rgm@gnu.org>
10896 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10897 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10898 (Frename_file): Avoid copying to trash if a rename involves
10899 a delete. (Bug#964).
10901 2008-09-20 Eli Zaretskii <eliz@gnu.org>
10903 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10904 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10905 frames as well as termcap frames.
10906 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10909 2008-09-19 Eli Zaretskii <eliz@gnu.org>
10911 * process.c (procfs_system_process_attributes): Fix cmdline in
10912 case /proc/PID/cmdline is empty.
10914 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10915 x_display_pixel_height.
10917 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
10919 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10921 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10922 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10924 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10926 * dispextern.h (struct it): Move line_wrap away from the middle of
10927 bitfields. Move voffset in struct iterator_stack_entry after the
10928 bitfields. Move tab_width near after another short.
10930 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10932 * frame.h (struct frame): Move alpha from the middle of bitfields.
10934 * window.h (struct window): Move frozen_window_start_p after the
10935 rest of the bitfields to reduce padding.
10937 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
10939 * xterm.h (x_display_info): Remove `height' and `width' members.
10941 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10943 * w32term.h (w32_display_info): Remove `height', `width',
10944 `height_in', and `width_in' members.
10946 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10948 (x_calc_absolute_position): Use them.
10949 (x_term_init): Omit removed `height' and `width' members.
10951 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10953 (w32_read_socket, x_calc_absolute_position): Use them.
10954 (w32_initialize_display_info, w32_term_init): Omit removed members
10955 of w32_display_info.
10957 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10959 (ns_initialize_display_info): Omit removed members of ns_display_info.
10961 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10963 (x_calc_absolute_position): Use them.
10964 (x_term_init): Omit removed `height' and `width' members.
10966 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10968 * frame.c (x_fullscreen_adjust):
10969 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10970 x_display_pixel_width.
10972 2008-09-18 Kenichi Handa <handa@m17n.org>
10974 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10975 (composition_compute_stop_pos): Fix handling of static composition.
10976 (Fcomposition_get_gstring): Check FROM and TO at first.
10978 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10980 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10983 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
10985 * indent.c (Fvertical_motion): Use position reported by iterator
10986 instead of PT for determining screen motion (bug#943).
10988 2008-09-17 Romain Francoise <romain@orebokech.com>
10990 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10992 2008-09-17 Kenichi Handa <handa@m17n.org>
10994 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10996 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10999 2008-09-16 Kenichi Handa <handa@m17n.org>
11001 * coding.c (make_conversion_work_buffer): Avoid calling
11002 Fget_buffer_create if it is not necessary.
11004 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11006 * window.c (Fselect_window): Don't update window_select_count and
11007 use_time when norecord is not nil.
11009 2008-09-14 Kenichi Handa <handa@m17n.org>
11011 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11014 2008-09-12 Kenichi Handa <handa@m17n.org>
11016 * indent.c (scan_for_column): Don't handle automatic composition
11017 if the current buffer is not associated with a window.
11019 * composite.c (composition_reseat_it): If the current buffer is
11020 not associated with a window, ignore the automatic composition.
11021 (find_automatic_composition): Likewise.
11023 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11025 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11026 (Fgpm_mouse_stop): Use it.
11027 * termhooks.h (close_gpm): Declare.
11028 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11029 connection if Gpm_GetEvent fails.
11031 * window.c (set_window_buffer): Always preserve current-buffer.
11033 2008-09-12 Glenn Morris <rgm@gnu.org>
11035 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11037 2008-09-11 Glenn Morris <rgm@gnu.org>
11039 * charset.c (charset-map-path): Doc fix.
11041 2008-09-10 Kenichi Handa <handa@m17n.org>
11043 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11045 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11046 compose a grapheme cluster with the preceding base glyph.
11048 * composite.c (composition_compute_stop_pos): Fix previous change.
11049 Reset cmp_it->id to -1 at first.
11051 2008-09-10 Glenn Morris <rgm@gnu.org>
11053 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11055 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
11057 * keyboard.c (read_key_sequence): Reapply translation maps when
11058 switching keyboards.
11060 2008-09-09 Kenichi Handa <handa@m17n.org>
11062 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11065 * composite.c (FORWARD_CHAR): Fix calculation
11066 of (POSITION).pos_byte.
11067 (composition_compute_stop_pos): Limit the search of composition to
11068 at most 500 characters ahead. If we reach the limit or find a
11069 newline, set cmp_it->ch to -2 and return 0.
11070 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11072 2008-09-08 Kenichi Handa <handa@m17n.org>
11074 * indent.c (Fvertical_motion): Be sure to set
11075 it_overshoot_expected if it.cmp_it.id is non-negative.
11077 2008-09-07 Andreas Schwab <schwab@suse.de>
11079 * callproc.c (Fcall_process): Don't hold references to string data
11080 across garbage collection. Move initialisation of new_argv down
11081 to avoid compiler bug.
11083 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11085 * process.c (Fsystem_process_attributes): Doc fix.
11087 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
11089 * callproc.c (Fcall_process): Canonicalize current directory name.
11091 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11092 iterator advances to the next line if the current line ends in a
11095 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11097 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11098 member to point to cmp_from.
11100 * xdisp.c: Doc fix for references to gidx data member.
11102 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11104 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11106 2008-09-07 Kenichi Handa <handa@m17n.org>
11108 * composite.c (FORWARD_CHAR): Check STOP after
11109 incrementing (POSITION).pos.
11111 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11113 * process.c (Fsystem_process_attributes): Doc fix.
11115 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
11117 * keyboard.c (Ftop_level): Doc fix.
11119 2008-09-06 Eli Zaretskii <eliz@gnu.org>
11121 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11122 minibuffer, don't let lower part of menu invade the echo area.
11124 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11125 "char *q" to access menu text and advance through it. Revert the
11126 change that displayed ">" instead of ASCII character 0x10.
11128 2008-09-05 Eli Zaretskii <eliz@gnu.org>
11130 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11131 toggle boxes and radio buttons on MS-DOS as well.
11133 2008-09-05 Kenichi Handa <handa@m17n.org>
11135 * composite.c (autocmp_chars): Check lookback count.
11136 (composition_compute_stop_pos): Set cmp_it->lookback.
11137 (composition_reseat_it): Check lookback count.
11138 (struct position_record): New struct.
11139 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11140 (find_automatic_composition): New function.
11141 (composition_adjust_point): Use find_automatic_composition.
11143 * dispextern.h (struct composition_it): New member lookback.
11145 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
11147 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11148 if moving by a single line.
11150 2008-09-02 Andreas Schwab <schwab@suse.de>
11152 * xterm.c (x_delete_display): Fix merge error.
11154 * fileio.c (Fexpand_file_name): Remove unused variables.
11156 2008-09-02 Eli Zaretskii <eliz@gnu.org>
11158 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11159 storage on all platforms, not just on DOS_NT.
11161 2008-09-02 Jason Rumney <jasonr@gnu.org>
11163 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11164 Ensure mouse is not grabbed after menu is finished.
11166 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
11168 * xfaces.c (Finternal_set_alternative_font_family_alist)
11169 (Finternal_set_alternative_font_registry_alist): Properly copy
11170 entire alist structure.
11172 2008-09-01 Kenichi Handa <handa@m17n.org>
11174 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
11175 representative chars of the script is a vector.
11176 (ftfont_list): Handle the case where the representative chars of
11177 the script is a vector.
11179 * character.c (syms_of_character): Docstring of
11180 script-representative-chars fixed.
11182 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11184 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11185 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11186 the menu. Allocate larger buffer for `text', to account for
11187 possible ^C characters.
11189 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11191 * xdisp.c (prepare_menu_bars): Don't call
11192 Vwindow_size_change_functions with arg Qt.
11194 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11196 * font.h (font_range):
11197 * fileio.c (report_file_error):
11198 * composite.c (composition_update_it): Yet another int/Lisp_Object
11201 2008-08-30 Glenn Morris <rgm@gnu.org>
11203 * data.c (Fmake_variable_frame_local): Doc fix.
11205 * frame.c (Fmodify_frame_parameters): Doc fix.
11207 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11209 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11210 needed by GetTokenInformation.
11211 (w32_system_process_attributes): Check return values of all system
11214 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11215 only when the state changes.
11216 (IT_update_begin, IT_update_end): Add termscript trace.
11218 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11219 clipboard is unavailable. Set dst to NULL if it doesn't point to
11221 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11222 passing random values to xfree.
11224 * dispnew.c (init_display): Set `tty's association in frame's
11225 parameters alist to the name of the terminal device, if that is known.
11227 2008-08-29 Jason Rumney <jasonr@gnu.org>
11229 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11231 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11233 * composite.c (fill_gstring_body): Avoid compiler warnings.
11235 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11236 LGLYPH_SET_CODE to avoid compiler warnings.
11238 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11240 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11242 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11245 2008-08-29 Kenichi Handa <handa@m17n.org>
11247 * fileio.c (report_file_error): Don't downcase the first character
11248 of errstring if it is still unibyte.
11250 2008-08-29 Kenichi Handa <handa@m17n.org>
11252 These changes are to re-implement the automatic composition so
11253 that it doesn't use text properties.
11255 * Makefile.in (ftfont.o): Depend on composite.h.
11256 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11258 * character.h (Vunicode_category_table): Extern it.
11260 * character.c (Vunicode_category_table): New variable.
11261 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11263 * chartab.c (optimize_sub_char_table): Perform more greedy
11266 * composite.h (enum composition_method):
11267 Delete COMPOSITION_WITH_GLYPH_STRING.
11268 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11269 (Vcomposition_function_table): Extern it.
11270 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11271 (composition_gstring_put_cache, composition_gstring_from_id)
11272 (composition_gstring_p, composition_gstring_width)
11273 (composition_compute_stop_pos, composition_reseat_it)
11274 (composition_update_it, composition_adjust_point): Extern them.
11275 (Fcomposition_get_gstring): EXFUN it.
11277 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11278 (Vcomposition_function_table)
11279 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11280 (gstring_hash_table, gstring_work, gstring_work_headers):
11282 (gstring_lookup_cache, composition_gstring_put_cache)
11283 (composition_gstring_from_id, composition_gstring_p)
11284 (composition_gstring_width, fill_gstring_header)
11285 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11286 (composition_reseat_it, composition_update_it)
11287 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11288 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11289 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11290 Defsubr composition_get_gstring.
11292 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11294 (struct glyph_string): Delete the member gidx. New members
11295 cmp_id, cmp_from, and cmp_to.
11296 (enum it_method): Delete GET_FROM_COMPOSITION.
11297 (struct composition_it): New struct.
11298 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11299 Delete c, len, cmp_id, cmp_len in u.comp.
11301 * font.h (enum lgstring_indices): Delete it.
11302 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11303 (enum lglyph_indices): Likewise.
11304 (font_range): Adjust extern.
11305 (font_fill_lglyph_metrics): Extern it.
11307 * font.c (QCf): New variable.
11308 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11309 (font_prepare_composition): Delete this function.
11310 (font_range): Type and arguments changed.
11311 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11312 (font_fill_lglyph_metrics): New function.
11313 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11314 (syms_of_font): DEFSYM QCf. Delete defsubr for
11315 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11316 Defsubr Sfont_shape_gstring.
11318 * fontset.h (font_for_char): Extern it.
11320 * fontset.c (font_for_char): New function.
11322 * ftfont.c: Include composite.h.
11323 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11324 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11326 * indent.c: Include composite.h and dispextern.h.
11327 (check_composition): Delete this function.
11328 (scan_for_column): Handle composition by
11329 composition_compute_stop_pos, composition_reseat_it, and
11330 composition_update_it.
11331 (compute_motion): Likewise.
11332 (Fvertical_motion): Fix checking of composition.
11334 * keyboard.c (adjust_point_for_property): Check composition by
11335 composition_adjust_point.
11337 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11338 struct glyph_string.
11340 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11341 (append_composite_glyph): Adjust for the change of struct it and
11343 (produce_composite_glyph): Likewise.
11345 * w32term.c (x_draw_composite_glyph_string_foreground):
11346 Adjust for the change of struct glyph_string.
11347 (x_draw_glyph_string): Likewise.
11349 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11350 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11352 * xdisp.c: Include font.h.
11353 (it_props): Delete the entry for Qauto_composed.
11354 (init_iterator): Initialize it->cmp_it.id to -1.
11355 (compute_stop_pos): Call composition_compute_stop_pos.
11356 (face_before_or_after_it_pos): Adjust for the change of struct it.
11357 (handle_auto_composed_prop): Delete it.
11358 (handle_composition_prop): Handle only static composition.
11359 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11360 from xassert. Initialize it->cmp_it.stop_pos.
11361 (push_it): Adjust for the change of struct it.
11362 (pop_it): Likewise.
11363 (get_next_element): Delete next_element_from_composition.
11364 (CHAR_COMPOSED_P): New macro.
11365 (get_next_display_element): For automatic composition, get a face
11366 from the font in the glyph-string.
11367 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11368 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11369 (next_element_from_string): Check if the character at the current
11370 position is composed by CHAR_COMPOSED_P.
11371 (next_element_from_buffer): Likewise.
11372 (next_element_from_composition): Adjust for the change of struct it.
11374 (dump_glyph): Adjust for the change of struct glyph.
11375 (fill_composite_glyph_string): Adjust for the change of struct
11376 it and struct glyph. Don't handle automatic composition here.
11377 (fill_gstring_glyph_string): New function.
11378 (x_get_glyph_overhangs): Handle automatic composition.
11379 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11380 (BUILD_GSTRING_GLYPH_STRING): New macro.
11381 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11382 automatic composition.
11383 (append_composite_glyph): Adjust for the change of struct it and
11385 (x_produce_glyphs): Adjust for the change of struct it.
11387 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11388 the change of struct glyph_string.
11389 (x_draw_glyph_string): Likewise.
11391 2008-08-29 Glenn Morris <rgm@gnu.org>
11393 * buffer.c (word-wrap): Doc fix.
11394 * xdisp.c (truncate-partial-width-windows): Doc fix.
11395 Increase default to 50.
11397 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11399 * xdisp.c (update_tool_bar_unwind): New function.
11400 (update_tool_bar): Temporarily set selected frame before building
11403 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11405 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11406 snprintf, respectively.
11407 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11409 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11411 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11412 LDFLAGS to GNUstep CC invocation.
11414 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11416 * indent.c (Fvertical_motion): Revert last change. Handle the
11417 general case where we are moving forward, and PT spans multiple
11420 * eval.c (find_handler_clause): Temporarily increase
11421 max-lisp-eval-depth while printing the backtrace buffer, to
11422 guarantee that help-mode code can run.
11424 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11426 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11428 (IT_set_frame_parameters): Don't swap foreground and background
11429 colors if `(reverse . t)' is present in the frame properties.
11430 (internal_terminal_init): Call init_frame_faces only for the
11433 2008-08-27 Andreas Schwab <schwab@suse.de>
11435 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11437 2008-08-27 Andreas Schwab <schwab@suse.de>
11439 * search.c (search_buffer): Set char_base to zero only at the end.
11441 2008-08-27 Kenichi Handa <handa@m17n.org>
11443 * fileio.c (report_file_error): Fix handling of multibyte error string.
11445 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11447 * xterm.c (x_term_init): Temporarily hide the partially
11448 initialized terminal while calling vendor-specific-keysyms.
11450 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11452 * msdos.c (internal_terminal_init): Most initializations done only
11453 once, especially initial_screen_colors[] and termscript open.
11455 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11457 * eval.c (Fcondition_case): Doc fix.
11459 * widgetprv.h (EmacsFramePart): Change font member to the new font
11462 * widget.c: Include character.h and font.h for XSETFONT.
11463 (setup_frame_gcs): Compute X font id from font struct, just once.
11465 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11467 * term.c (get_named_tty): Fix last change.
11469 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11471 * indent.c (Fvertical_motion): If moving forward starting from a
11472 multi-line string, move the iterator to the last line of that string.
11474 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11476 * frame.c (do_switch_frame): Mark previously displayed frame as
11477 obscured for FRAME_MSDOS_P frames as well.
11479 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11481 * frame.c (make_terminal_frame): Initialize f->terminal,
11482 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11483 Set the top frame to newly created frame.
11484 (Fmake_terminal_frame): Reuse the_only_display_info.
11486 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11487 estimating available memory.
11489 2008-08-23 David Reitter <david.reitter@gmail.com>
11491 * nsterm.m (ns_draw_window_cursor): Don't call
11492 NSDisableScreenUpdates and NSEnableScreenUpdates on
11493 non-NS_IMPL_COCOA systems.
11495 2008-08-23 Andreas Schwab <schwab@suse.de>
11497 * process.c (procfs_system_process_attributes): Fix use of
11498 uninitialized variables.
11500 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11502 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11504 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11505 calling tty-set-up-initial-frame-faces.
11507 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11508 Allow MSDOS frames along with X frames.
11510 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11511 addition to output_termcap.
11513 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11515 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11516 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11519 * process.c [!subprocesses]: Define QCname.
11520 (syms_of_process): Intern and staticpro it.
11522 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11523 Adjust for changes in encoding/decoding routines.
11524 Use encode_coding_object and decode_coding_object instead of
11525 encode_coding and decode_coding.
11527 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11529 * dosfns.c: Include frame.h before termhooks.h.
11530 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11531 variable termscript.
11533 * s/msdos.h (USER_FULL_NAME): Define.
11534 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11536 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11537 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11540 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11541 SELECTED_FRAME as additional (1st) argument.
11542 (tty_read_avail_input): Handle output_msdos_raw in
11543 addition to output_termcap.
11545 * msdos.c: Include frame.h before termhooks.h.
11546 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11547 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11548 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11549 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11550 (IT_set_terminal_modes, IT_reset_terminal_modes)
11551 (IT_set_frame_parameters): Use tty->termscript instead of a global
11552 variable termscript.
11553 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11554 global variable terminal_coding. Don't refer to
11555 Vnonascii_translation_table.
11556 (internal_terminal_init): Set Vwindow_system in current_kboard.
11557 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11558 Announce date and time of session start, if termscript is open.
11559 Don't zero out the_only_display_info (it is done in
11560 term.c:init_tty). Open termscript only of not already open.
11561 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11562 here instead of dos_ttraw. Don't initialize display if this is an
11563 initial tty. Don't set FRAME_FONT.
11564 (Vwindow_system_version): Bump to 23.
11565 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11566 is available, set up mouse_position_hook.
11567 (dos_ttraw, IT_set_terminal_modes): If called with initial
11568 terminal, do nothing.
11569 (IT_set_frame_parameters): Handle the Qtty_type frame
11570 parameter by calling internal_terminal_init.
11571 (dos_set_window_size, show_mouse_face)
11572 (clear_mouse_face, IT_note_mode_line_highlight)
11573 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11574 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11575 (initialize_msdos_display): New function.
11576 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11577 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11578 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11579 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11580 Accept additional argument: a pointer to a frame. Update all callers.
11581 (request_sigio, unrequest_sigio): Don't define, now defined on
11583 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11585 * term.c [MSDOS]: Include msdos.h.
11586 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11587 conditional to DOS_NT. Allow only one call to this function in a
11588 session. Don't allocate a new struct tty_display_info; instead,
11589 reuse the_only_display_info. Call get_tty_size to get screen
11590 dimensions. Call init_baud_rate to set bad_rate.
11591 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11592 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11593 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11594 (get_tty_terminal, get_named_tty, Ftty_type)
11595 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11597 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11598 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11599 only when subprocesses are supported.
11601 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11603 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11606 * msdos.h: Remove definition of struct x_display_info and struct
11608 (FRAME_FONT): Use output_data.tty.
11609 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11610 (struct x_display_info): Rename from display_info. Update all users in
11612 (struct x_output): Remove background_pixel and foreground_pixel.
11613 (the_only_display_info): Rename from the_only_x_display.
11614 (dos_ttraw): Update prototype.
11616 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11617 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11619 2008-08-23 Jason Rumney <jasonr@gnu.org>
11621 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11622 (fn_TIFFSetDirectory): New library function used.
11623 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11624 (tiff_load): Use :index to select among multiple images. Set count
11625 property when multiple images exist.
11626 (gif_format): Use :index, not :image.
11628 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11630 * xdisp.c (try_scrolling): Check INT_MAX instead of
11631 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11634 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11636 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11638 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11640 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11641 GNUstep library location.
11643 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11645 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11648 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11650 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11652 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11653 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11654 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11655 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11656 (EmacsApp-cursor_blink_handler): Remove declaration.
11657 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11658 match 01 Feb 2008 changes in xterm.c.
11659 (ns_read_socket): Add cast to avoid warning.
11660 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11663 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11665 * xselect.c (x_get_foreign_selection): Return nil if desired
11666 selection could not be obtained, instead of signalling an error.
11668 2008-08-20 David Reitter <david.reitter@gmail.com>
11670 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11671 * nsterm.m: Remove ns-specific code for cursor blinking.
11672 (ns_draw_window_cursor): Clear cursor properly rather than
11673 redrawing the area. Respect width of bar cursors.
11674 These changes enable the use of generic blink-cursor-mode and
11675 generic cursor types in NS and support smooth cursor movements (do
11676 not blink off after command).
11677 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11680 2008-08-19 Kenichi Handa <handa@m17n.org>
11682 * font.c (Vfont_log_deferred): New variable.
11683 (font_add_log): Check Vfont_log_deferred.
11684 (font_deferred_log): New function.
11686 * font.h (font_deferred_log): Extern it.
11688 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11690 (face_for_char): Use deferred log.
11692 2008-08-18 Kenichi Handa <handa@m17n.org>
11694 * fontset.c (face_for_char): Add font log.
11696 * font.c (font_add_log): Add the font properties :script, :lang,
11697 and :otf in the log.
11699 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11701 * xdisp.c: Remove dead code.
11702 (handle_invisible_prop, next_overlay_string): Defer call to
11703 setup_for_ellipsis.
11704 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11706 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11708 * xfaces.c (lookup_derived_face): Properly handle possible zero
11709 return value of get_lface_attributes.
11710 (merge_faces): Don't tell lookup_derived_face to signal an error
11711 if face is not found.
11713 * dired.c (Fdirectory_files): Doc fix.
11715 * process.c (make_process): Initialize kill_without_query struct
11718 2008-08-15 Eli Zaretskii <eliz@gnu.org>
11720 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11721 Alternative calculation of totphys for Visual Studio 6.
11723 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11725 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11726 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11728 (stat): Only root directory passed to GetDriveType. Allow RAM
11729 disk as well as local fixed disk when w32-get-true-file-attributes
11731 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11732 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11733 (w32_cached_id, w32_add_to_cache): New functions.
11734 (get_name_and_id): Look account names in the cache before calling
11735 lookup_account_sid.
11736 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11737 New initialization flags.
11738 (globals_of_w32): Initialize them to zero.
11739 (w32_system_process_attributes): Use w32_cached_id and
11742 2008-08-14 Lawrence Mitchell <wence@gmx.li>
11744 * lread.c (Fread_char, Fread_char_exclusive): If no character
11745 event is read before timeout is reached, return nil, rather than
11746 converting to a number.
11748 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
11750 * fns.c (use_dialog_box): Doc fix.
11752 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11755 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
11757 * frame.c (Qns_parse_geometry): New var.
11758 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11760 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
11762 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11763 space character in calculating tabs.
11765 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11767 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11769 2008-08-10 Glenn Morris <rgm@gnu.org>
11771 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11772 silence gcc "limited range of data type" warnings in some
11773 make_fixnum_or_float calls.
11775 2008-08-09 Eli Zaretskii <eliz@gnu.org>
11777 * w32.c (w32_system_process_attributes): If the process does not
11780 * w32.c: Include thelp32.h, psapi.h and coding.h.
11781 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11783 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11784 (Process32Next_Proc): New typedefs.
11785 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11786 (g_b_init_process32_next, g_b_init_open_thread_token)
11787 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11788 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11789 (g_b_init_get_process_working_set_size)
11790 (g_b_init_global_memory_status_ex): New static variables.
11791 (globals_of_w32): Initialize them.
11792 (create_toolhelp32_snapshot, process32_first, process32_next)
11793 (open_thread_token, impersonate_self, revert_to_self)
11794 (get_process_memory_info, get_process_working_set_size)
11795 (global_memory_status, global_memory_status_ex): New wrapper
11797 (w32_list_system_processes, w32_system_process_attributes)
11798 (enable_privilege, restore_privilege, ltime, process_times):
11800 (convert_time_raw): New function.
11801 (convert_time): Remove conversion of FILETIME into time in 100
11802 nsec units, call convert_time_raw instead.
11804 * process.h (w32_list_system_processes, w32_system_process_attributes):
11806 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11807 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11808 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11809 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11811 * process.c (Fsystem_process_attributes): Doc fix.
11813 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
11815 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11816 a continued multi-char glyph; if so, advance to the actual glyph.
11818 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11820 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11822 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11824 * config.in: Regenerate.
11826 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
11828 * xdisp.c (redisplay_window): Revert last change.
11829 (try_window): Check bottom scroll margin too.
11831 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11833 * config.in: Regenerate.
11835 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11836 -list-load-path-shadows'.
11837 (nsgui.h): Reduce number of things depending on it.
11839 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
11841 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11842 instead of window-end which does the wrong thing at eob.
11843 (try_cursor_movement): Minor optimization.
11844 (redisplay_window): If scroll margin is defined, don't assume
11845 window doesn't need scrolling.
11847 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11849 * config.in: Regenerate.
11851 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11852 (mostlyclean): Don't delete *.d under NS.
11854 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11856 2008-08-06 Kenichi Handa <handa@m17n.org>
11858 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11860 2008-08-06 Andreas Schwab <schwab@suse.de>
11862 * config.in: Regenerate.
11864 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
11866 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11867 forcing a window start.
11869 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11870 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11872 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11874 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11877 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
11879 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11880 <scroll-down-aggressively, before-change-functions>:
11881 <after-change-functions>: Reflow docstrings.
11883 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11884 Ken Raeburn <raeburn@gnu.org>
11886 Dock menu customization, based on a patch by Ken Raeburn, plus some
11888 * nsmenu.m (dockMenu): New variable.
11889 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11891 * nsterm.h (dockMenu): Declare.
11893 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11894 (ns_term_init): Initialize dockMenu.
11895 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11896 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11899 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11901 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11903 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11905 * config.in: Regenerate.
11907 2008-08-04 Seiji Zenitani <zenitani@mac.com>
11909 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11911 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11913 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11915 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11917 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11919 * keyboard.h: Comment an #endif.
11921 * lisp.h (have_menus_p): Adjust comment.
11923 * menu.c (find_and_return_menu_selection): Fix comparison with
11926 * nsmenu.m (popup_activated_flag): New variable.
11927 (popup_activated): New function.
11928 (menu-or-popup-active-p): New exported lisp definition.
11929 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11931 (ns_popup_dialog): Set popup_activated_flag.
11933 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11934 version for GNUstep (handled by conditional typedef in nsterm.m).
11935 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11938 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11940 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11942 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11944 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11945 shortcircuit if popup_activated like GTK and X toolkit.
11947 * m/inter386.h: Change DARWIN to DARWIN_OS.
11949 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11950 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11951 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11952 comment on NO_SOCK_SIGIO.
11954 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
11956 * nsterm.m (windowDidResize): Remove stopModal call.
11958 2008-08-03 Andreas Schwab <schwab@suse.de>
11960 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11961 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11963 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
11965 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11966 Don't use uninitialized pointer variable when using getrlimit.
11968 2008-08-02 Jason Rumney <jasonr@gnu.org>
11970 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11972 2008-08-02 Eli Zaretskii <eliz@gnu.org>
11974 * alloc.c (NSTATICS): Bump to 0x640.
11976 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11978 * lisp.h: Add prototype for directory_files_internal.
11980 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11982 (syms_of_process): Defsubr them. Add initializations for various
11983 Q* symbols used in procfs_system_process_attributes.
11984 (procfs_list_system_processes, procfs_system_process_attributes)
11985 [HAVE_PROCFS]: New functions.
11986 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11987 (procfs_get_total_memory): New functions.
11989 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11991 * xfaces.c (Fx_load_color_file): Fix previous change;
11992 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11994 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
11996 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11998 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12000 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12002 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12004 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12006 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12007 define NSApplicationDelegateReplySuccess.
12008 (EmacsView -converstationIdentifier): Use long instead of
12009 NSInteger for GNUstep, since it doesn't have NSInteger.
12011 * xmenu.c: Revert last change.
12013 * keyboard.h: Fix last change.
12015 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12017 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12020 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12022 Warning clearing and clean-up in NS port.
12023 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12025 * nsgui.h (FACE_DEFAULT): Remove, unused.
12026 (XGCValues): Change colors to unsigned long.
12027 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12029 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12030 (ns_list_fonts): Remove, unused.
12031 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12032 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12033 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12034 (nsfont_draw): Compare face colors to 0, not nil.
12035 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12036 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12037 (-addSubmenuWithTitle:): Use NSMenuItem class.
12038 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12039 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12040 (ns_clip_to_row): Make gc arg a BOOL.
12041 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12042 ns_clip_to_row() call.
12043 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12044 used). Cast FRAME_FONT assignments.
12045 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12046 (ns_string_to_lispmod): Change arg to const char.
12047 (ns_term_init): Use NSMenuItem class.
12048 (EmacsApp -openFile:): Move to different section of file.
12049 (EmacsApp -application:openFiles:): Don't return a value, call
12050 -replyToOpenOrPrint:.
12051 (EmacsView -keyDown:): Fix up cast.
12052 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12053 (EmacsView -menuDown:): Cast tag in call to
12054 find_and_call_menu_selection().
12055 (ns_list_fonts): Remove, unused.
12056 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12057 (ns_fontname_to_xlfd): Make static.
12058 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12059 Remove prototypes (now in keyboard.h).
12060 (next_menubar_widget_id): Remove, unused.
12061 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12062 Remove prototypes (now in keyboard.h).
12063 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12065 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12067 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12068 (floatfns.o): Depend on syssignal.h.
12069 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12071 * systty.h: Fix previous change that removed BSD_TERMIOS.
12072 Add comments to #ifdefs.
12074 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12076 * w32fns.c (w32-load-color-file): Remove.
12077 (x-open-connection): Use renamed Fx_load_color_file.
12078 * xfaces.c (x-load-color-file): Add.
12079 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12081 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12083 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
12085 * dbusbind.c (Fdbus_call_method_asynchronously)
12086 (Fdbus_method_error_internal): New defuns.
12087 (xd_read_message): Handle also reply messages.
12088 (Vdbus_registered_functions_table): Extend docstring.
12090 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
12092 * keyboard.c (gobble_input): Fix previous change.
12094 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12125 * m/vax.h: Remove VMS support.
12131 * ioctl.h: Remove file.
12133 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12135 * s/ms-w32.h (MULTI_KBOARD): Remove.
12150 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12151 * config.in: Regenerate.
12153 2008-07-30 Jason Rumney <jasonr@gnu.org>
12155 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12157 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12158 (w32font_open_internal): Get unicode version of textmetrics.
12159 Don't enable or disable glyph indices here.
12160 (w32font_open): Disable use of glyph indices.
12162 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12164 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
12166 * minibuf.c (Vread_buffer_function): Doc fix.
12168 2008-07-30 John Paul Wallington <jpw@pobox.com>
12170 * minibuf.c (read_buffer_completion_ignore_case): New var.
12171 (Fread_buffer): Use it.
12173 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12175 * systty.h (sensemode): Remove empty #if. Remove reference to
12176 BSD_TERMIOS, unused.
12178 * sysdep.c: Remove reference to DGUX.
12179 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12181 * config.in: Regenerate.
12183 2008-07-30 Jason Rumney <jasonr@gnu.org>
12185 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12187 2008-07-29 Jason Rumney <jasonr@gnu.org>
12189 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12191 (uniscribe_encode_char): Always use uniscribe.
12192 Avoid using context if cache is populated.
12194 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12196 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12199 * gtkutil.c (menu_nav_ended): Remove.
12200 (create_menus): Remove signal connect for menu_nav_ended.
12202 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12204 * xdisp.c (redisplay_window): Check return value of
12205 compute_window_start_on_continuation_line before forcing a window
12208 2008-07-28 Jason Rumney <jasonr@gnu.org>
12210 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12212 * w32term.c (w32_enable_unicode_output, cleartype_active):
12213 Remove obsolete display options.
12214 (x_draw_glyph_string_background): Don't use old cleartype_active
12216 (w32_initialize): Remove cleartype_active initialization.
12217 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12219 2008-07-28 Andreas Schwab <schwab@suse.de>
12221 * lisp.h (init_weak_hash_tables, syms_of_font)
12222 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12223 (remove_hash_entry): Don't declare.
12224 * eval.c (maybe_call_debugger): Make static and move before use.
12225 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12226 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12227 * xterm.h (x_set_frame_alpha): Declare.
12229 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12231 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12232 (create_menus): Connect selection-done to menu_nav_ended.
12234 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12236 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12237 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12238 parameter with read of 'alpha' one.
12239 (Qns_frame_parameter): Remove.
12240 * nsselect.m (selection-coding-system)
12241 (next-selection-coding-system, Vselection_coding_system)
12242 (Vnext_selection_coding_system): Drop.
12244 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12246 * nsfns.m (do-applescript, do_applescript): Rename to
12247 ns-do-applescript, ns_do_applescript, and move within file.
12249 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12251 Remove support for Mac Carbon.
12259 * mac.c: Remove file.
12290 * Makefile.in: Remove code for Carbon.
12292 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12294 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12296 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12298 * macterm.h (kCGBitmapByteOrder32Host): New define for
12299 non-universal SDKs.
12301 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12302 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12304 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12305 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12307 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12309 * w32inevt.c: Include dispextern.h.
12311 2008-07-26 Andreas Schwab <schwab@suse.de>
12313 * print.c (print_object): Fix off-by-one in last change.
12315 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12317 * term.c (syms_of_term): Don't initialize default_orig_pair,
12318 default_set_foreground and default_set_background on Windows.
12320 2008-07-25 Jason Rumney <jasonr@gnu.org>
12322 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12323 ScriptItemize. Clean up return value checking. Remove unused
12325 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12328 * w32font.c (w32font_has_char): Handle the case where we can't
12329 determine the script for a character.
12331 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12333 * term.c (syms_of_term): Initialize default_orig_pair,
12334 default_set_foreground, and default_set_background.
12336 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12338 (getloadavg): Callers changed.
12340 * image.c (svg_load_image): Fix last change.
12341 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12342 image size is valid. Use g_object_unref instead of deprecated
12343 rsvg_handle_free to free rsvg handle.
12344 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12346 2008-07-25 Jason Rumney <jasonr@gnu.org>
12348 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12349 surrogates before looking up glyph index.
12350 (w32font_text_extents): Encode as surrogates if falling back to
12351 functions that need UTF-16 wide chars.
12353 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12354 BMP as surrogates before looking up glyph index.
12356 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12358 * image.c (svg_load_image): Check for failure in return value of
12359 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12361 2008-07-25 Jason Rumney <jasonr@gnu.org>
12363 * w32font.c (Fx_select_font): Reverse sense of second arg.
12365 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12367 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12368 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12370 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12371 (PURESIZE): Use it.
12373 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12375 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12376 * m/alpha.h (TEXT_END):
12377 * m/ibmrs6000.h (TEXT_END):
12378 * m/macppc.h (TEXT_END):
12379 * s/darwin.h (TEXT_END):
12380 * s/msdos.h (TEXT_END): Remove, unused.
12381 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12382 * s/cygwin.h: Remove comment.
12384 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12385 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12386 * m/intel386.h (DOT_GLOBAL_START):
12387 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12388 (USG): Remove, file not used on USG platforms.
12390 * Makefile.in (HAVE_X11): Remove empty #else.
12392 2008-07-24 Andreas Schwab <schwab@suse.de>
12394 * fileio.c (Finsert_file_contents): Properly adjust undo list
12395 after format conversion.
12397 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12399 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12400 (menu_nav_ended): Remove.
12401 (create_menus): Remove signal connect for menu_nav_ended.
12402 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12404 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12406 2008-07-23 Jason Rumney <jasonr@gnu.org>
12408 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12410 (w32font_open): Set font type to gdi.
12412 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12414 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12416 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12417 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12419 * unexec.c (ADDR_CORRECT): Define unconditionally.
12421 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12423 * unexec.c: Remove code depending on !COFF and USG, the file is
12424 not used for such systems.
12426 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12427 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12428 (LD_SWITCH_SYSTEM_1): Remove, update users.
12430 * s/darwin.h (DATA_END):
12431 * m/intel386.h (DATA_END):
12432 * m/ibmrs6000.h (DATA_END):
12433 * m/alpha.h (DATA_END): Remove, unused.
12435 * config.in: Regenerate.
12436 * s/ms-w32.h (subprocesses): Define unconditionally.
12437 * s/template.h (subprocesses): Update comment.
12438 * s/vms.h (subprocesses):
12439 * s/usg5-4.h (subprocesses):
12440 * s/hpux10-20.h (subprocesses):
12441 * s/gnu-linux.h (subprocesses):
12442 * s/cygwin.h (subprocesses):
12443 * s/bsd-common.h (subprocesses):
12444 * s/aix4-2.h (subprocesses):
12445 * s/darwin.h (subprocesses): Do not define, defined by default now.
12447 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12448 Remove all references.
12449 (temacs): Add GNUstep specific ld flags.
12451 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12452 similarly to what X does.
12454 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12456 * nsfns.m (x-list-fonts): Remove.
12457 (syms_of_nsfns): Drop the x-list-fonts declaration.
12458 * nsterm.m: Get rid of remaining "//" comments.
12460 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12462 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12464 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12465 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12466 (Fns_own_selection_internal, Fx_disown_selection_internal)
12467 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12469 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12470 ... */' style of docstrings. Doc fixes.
12472 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12474 * terminfo.c (UP, BC, PC): Undo previous change.
12476 * nsfns.m: Rename ns prefixed functions/variables to the
12477 corresponding x versions. Update references.
12479 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12481 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12483 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12485 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12486 Remove forwarding functions.
12487 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12489 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12491 (ns_frame_parm_handlers): Use the new names.
12492 (syms_of_nsfns): Move to the end of file.
12494 * nsterm.m (syms_of_nsterm): Move to the end of file.
12496 * dispnew.c (init_display): Remove code for X10.
12498 2008-07-22 Jason Rumney <jasonr@gnu.org>
12500 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12503 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12505 * nsterm.m (syms_of_nsterm): Remove debugging println.
12507 2008-07-22 David Reitter <david.reitter@gmail.com>
12509 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12510 Carbon implementation of the same functionality: execute arbitrary
12513 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12515 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12516 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12517 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12518 (Fx_display_mm_height, Fx_display_mm_width)
12519 (Fx_display_backing_store, Fx_display_visual_class)
12520 (Fx_display_save_under, Fx_open_connection)
12521 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12522 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12523 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12524 (Fx_display_pixel_width, Fx_display_pixel_height)
12525 (Fx_display_usable_bounds, Fx_display_planes)
12526 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12527 ... */' style of docstrings.
12529 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12531 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12534 * m/iris4d.h (mips): Do not define.
12535 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12537 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12543 * nsterm.m: Rename ns prefixed functions/variables to the
12544 corresponding x versions. Update references.
12546 * m/ibms390x.h (NO_REMAP): Do not undefine.
12548 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12550 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12552 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12553 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12554 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12555 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12556 (Fns_display_mm_height, Fns_display_mm_width)
12557 (Fns_display_backing_store, Fns_display_visual_class)
12558 (Fns_display_save_under, Fns_open_connection)
12559 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12560 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12561 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12562 (Fns_display_pixel_width, Fns_display_pixel_height)
12563 (Fns_display_usable_bounds, Fx_display_planes)
12564 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12566 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12568 * print.c (print_object): Check print_depth before searching for
12571 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12573 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12576 2008-07-21 Kenichi Handa <handa@m17n.org>
12578 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12580 2008-07-20 Andreas Schwab <schwab@suse.de>
12582 * syntax.c (find_start_pos, find_start_value)
12583 (find_start_value_byte, find_start_begv, find_defun_start)
12584 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12586 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12588 * s/sol2-3.h: Insert contents of s/sol2.h.
12589 (LD_SWITCH_SYSTEM): Remove redundant definition.
12590 * s/sol2.h: Remove, unused.
12592 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12594 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12596 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12598 * Makefile.in (ns_appdir): Fix typo in find command.
12600 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12602 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12604 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12605 added not supported anymore.
12607 * s/usg5-4-2.h (LIBS_SYSTEM):
12608 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12610 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12611 * s/lynxos.h (GETPGRP_NO_ARG):
12612 * s/hpux10-20.h (NO_SIOCTL_H):
12613 * s/gnu.h (GETPGRP_NO_ARG):
12614 * s/gnu-linux.h (NO_SIOCTL_H):
12615 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12616 * s/cygwin.h (GETPGRP_NO_ARG):
12617 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12618 (C_DEBUG_SWITCH): Remove duplicate definition.
12620 * m/ibms390.h: Remove boilerplate comments.
12622 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12624 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12625 (wait_reading_process_output): Remove code for SunOS, platform not
12626 supported anymore. Use SOLARIS2 instead of sun.
12628 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12630 * font.c (font_open_by_name): Under NS, default lface height to zero.
12631 (font_open_for_lface): Under NS, set size based on frame fontsize.
12632 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12633 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12635 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12637 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12638 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12639 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12641 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12642 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12643 * Makefile.in (clean): Clear out build destination dir.
12645 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12647 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12649 * lisp.h: Remove declaration of hash_remove.
12650 * nsgui.h: Remove redefinitions of hash_remove.
12651 * fns.c (hash_remove): Rename to hash_remove_from_table.
12653 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12655 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12656 strdup() the family UTF8String before modifying it.
12658 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12660 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12661 NS_FACE_BACKGROUND with 0 instead of nil.
12662 * nsfont.m (nsfont_draw): Same.
12664 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12666 * nsfns.m (ns_set_background_color): Fix crash.
12668 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12670 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12672 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12674 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12676 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12678 * gtkutil.c: Include <config.h> instead of "config.h".
12680 * lisp.h (Foverlay_buffer): Add EXFUN.
12682 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12683 child process to complete child_setup. Undo 2005-09-21 change.
12685 * s/darwin.h: Mention setsid after vfork.
12687 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12689 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12690 Depend on macgui.h.
12692 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12693 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12695 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12697 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12699 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12700 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12701 Remove enumerators.
12703 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12704 Check if FACE_FROM_ID returns NULL.
12706 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12708 * w32inevt.c (change_frame_size): Remove extern declaration.
12709 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12712 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12714 * getloadavg.c: Revert last change (2008-07-15).
12716 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12718 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12719 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12722 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12725 * s/sol2-4.h: Reorganize conditionals.
12727 * ecrt0.c: Remove code depending on m68000, not used anymore.
12729 * fns.c (hash_remove): Make static.
12730 * lisp.h (hash_remove): Don't prototype.
12734 * m/macppc.h: Remove boilerplate comments.
12736 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12737 Solaris, which does not need them.
12739 * m/vax.h: Remove comments about unsupported systems.
12741 * s/darwin.h: Reorganize ifdefs.
12743 2008-07-17 Andreas Schwab <schwab@suse.de>
12745 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12747 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12749 Use SDATA. Follow coding convention of placing operators at
12750 beginning of next line rather than end of previous line, and placing
12751 spaces around infix operators.
12753 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12754 in case it was defined already.
12755 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12756 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12758 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12760 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12761 (ns_defined_color, ns_color_to_lisp): Declare.
12762 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12763 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12764 it's accepted even with USE_LISP_UNION_TYPE.
12765 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12766 (update_frame_tool_bar): Remove apparently obsolete tests for
12767 non-integerness of f->tool_bar_lines.
12768 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12769 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12770 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12771 (nsfont_open): Don't confuse NULL for Qnil.
12772 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12773 * menu.h (find_and_call_menu_selection):
12774 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12775 (find_and_return_menu_selection): Always return something.
12776 * frame.h: Include dispextern.h for Display_Info.
12777 (display_x_get_resource): Declare.
12779 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12781 * syntax.c: Remove stdio.h include accidentally introduced in
12783 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12785 * keyboard.c (handle_async_input, input_available_signal): Remove
12786 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12788 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12790 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12791 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12792 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12795 * keymap.c: Remove all NS-specific code.
12796 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12797 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12798 where_is_preferred_modifier, return a different value depending on how
12799 preferred is the binding.
12800 (where_is_internal): Adjust accordingly.
12801 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12802 Adjust to new preferred_sequence_p.
12803 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12804 * keyboard.c (parse_solitary_modifier): Not static any more.
12805 * keyboard.h (parse_solitary_modifier): Declare.
12807 2008-07-16 Andreas Schwab <schwab@suse.de>
12809 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12812 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
12814 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12815 that we don't move off the line.
12817 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12819 * keyboard.c (Qsuper): Remove.
12820 (parse_menu_item): Don't call where_is_internal specially for NS.
12822 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12824 * s/gnu-linux.h: Remove boilerplate comments.
12826 * m/alpha.h (__ELF__): Consolidate conditions.
12828 * m/m68k.h (linux): Use GNU_LINUX instead.
12829 Remove boilerplate comments.
12831 * m/intel386.h: Undo refactoring from previous change.
12832 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12833 too, remove dead code.
12834 (linux): Use GNU_LINUX instead.
12836 2008-07-16 Jason Rumney <jasonr@gnu.org>
12838 * w32gui.h: Repeat 26 June changes lost by last change.
12840 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12842 * systty.h: Remove code for Aix on 386, unsupported platform.
12844 * s/ms-w32.h: Remove boilerplate comments.
12845 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12847 * s/gnu-linux.h (TERM): Remove support.
12848 (HAVE_SYSVIPC): Remove, unused.
12849 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12852 * process.c: Remove support for IRIS, unused.
12853 Remove support for TERM, not relevant anymore.
12855 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12856 used with the definition.
12858 * s/aix4-2.h (static): Do not undef.
12860 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12862 (HAVE_SYSVIPC): Remove, unused.
12864 * m/hp800.h (CANNOT_DUMP): Do not undef.
12866 * m/alpha.h: Fix comment.
12868 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12869 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12870 used by this configuration.
12871 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12872 * unexec.c: Remove code depending on HPUX and
12873 USG_SHARED_LIBRARIES, not used with this file. Remove code
12874 depending on IRIS, unused. Remove if 0-ed code.
12876 * s/template.h: Remove comments about static.
12878 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12879 Remove if 0-ed code.
12880 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12881 were the same as the default.
12882 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12883 Remove boilerplate comments.
12884 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12885 (HAVE_SYSVIPC): Remove, unused.
12886 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12888 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12889 Remove boilerplate comments.
12890 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12891 Remove boilerplate comments.
12892 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12893 Remove boilerplate comments.
12894 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12896 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12897 USG systems which do not use DATA_SEG_BITS.
12898 Refactor code. Remove boilerplate comments.
12907 * s/msdos.h: Remove boilerplate comments.
12909 * m/iris4d.h: Remove boilerplate comments and code for systems that
12910 do not use this file.
12911 (IRIS_4D): Remove, unused.
12913 * m/mips.h: Remove boilerplate comments and code for systems that
12914 do not use this file.
12915 (SIGN_EXTEND_CHAR):
12916 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12917 * unexmips.c: Remove file, unused.
12919 * editfns.c (Fuser_full_name): Replace the only use of
12920 USER_FULL_NAME with its value.
12921 * config.in: Regenerate.
12923 2008-07-16 David Reitter <david.reitter@gmail.com>
12925 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12926 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12928 2008-07-16 Glenn Morris <rgm@gnu.org>
12930 * emacs.c (system-type): Doc fix.
12932 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12934 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12935 If the cache doesn't work, let's fix it, rather than work around it.
12937 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12939 * Makefile.in: Correct additions for nsfont.o in last commit.
12940 * nsfont.m: New file (forgot last commit).
12942 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12944 * callproc.c (set_initial_environment): Initialize
12945 Vprocess_environment under CANNOT_DUMP (fixes crash when
12946 batch-compiling for bootstrap).
12948 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12949 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12951 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12952 CANNOT_DUMP case -- fix crash due to different init order.
12954 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12956 Changes and additions for NeXTstep windowing system (Cocoa and
12960 * config.in: Support defines and build commands for NS port.
12961 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12962 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12963 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12965 (struct face): Add synth_ital field.
12966 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12967 (init_display): Initialize Vinitial_window_system to "ns" when so
12969 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12970 (display_arg): Use under NS.
12971 (main): Under NS, allocate autorelease pool and handle command line
12972 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12973 (standard_args): Add NS-specific args.
12974 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12975 * font.c (DEFAULT_ENCODING): New variable.
12976 (font_find_for_lface): Use it.
12977 (syms_of_font): Load syms_of_nsfont under NS.
12978 * font.h: Declare nsfont_driver when compiled under NS.
12979 * fontset.c: When compiling under NS, include nsterm.h.
12980 (fontset_from_font): Autoconstruct fontset under NS.
12981 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12982 symbol, document and use it.
12983 (do_switch_frame): When for_deletion under Cocoa, add
12984 Fraise_frame(Qnil).
12985 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12986 (x_get_arg): Allow "yes" and "no" as boolean values.
12987 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12988 Qright under Cocoa.
12989 (focus-follows-mouse): Default to 0 under NS.
12990 * frame.h (enum output_method): Add output_ns.
12991 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12992 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12993 (FRAME_WINDOW_P): NS-specific definition.
12994 * fringe.c (max_used_fringe_bitmap): Make public.
12995 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12996 (getloadavg): Use NeXT code under descendant OS's.
12997 * image.c (includes and header section, x_create_bitmap_from_data)
12998 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12999 (image_background_transparent, x_clear_image_1)
13000 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13001 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13002 (x_to_xcolors, x_from_xcolors, x_disable_image)
13003 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13004 other GUIs, including XPM support using code originally written for
13006 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13008 (image_ascent): Use font metrics macros instead of direct struct field
13010 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13011 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13012 Also, handle NS as GTK for menu bar purposes.
13013 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13014 toolkit where they differ.
13015 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13016 use cachelist, still needed under NS.
13017 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13018 (struct widget_value): Define it here for menu.c.
13019 * keymap.c (includes): Include modifier internals.
13020 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13022 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13023 support for preferring sequences using certain modifiers, specified by
13024 the FIRSTONLY argument.
13025 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13026 under NS GNUstep implementation.
13027 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13028 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13029 * menu.c: Include nsterm.h under NS.
13030 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13031 (free_menubar_widget_tree_value, update_submenu_strings)
13032 (find_and_call_menu_selection): Treat NS as X and NT.
13033 (find_and_return_menu_selection): New function, used for popup menus.
13040 * nsterm.m: New files.
13041 * process.c (wait_reading_process_output): Under NS, call ns_select()
13042 instead of plain select().
13043 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13044 beginning of buffer.
13045 * sysselect.h (init_process): Rename when compiling under Cocoa to
13046 avoid name conflict.
13047 * termhooks.h (display_info): Add ns_display_info to union.
13048 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13049 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13051 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13052 unexec() signature. (Note, this will dump, but the resulting file
13053 crashes; unexosx is used instead; keeping around for reference and
13054 possible aid in getting dump working under GNUstep.)
13055 * w32gui.h (button_type, widget_value): Remove definitions (now in
13057 * window.c: Include nsterm.h when compiling under NS.
13058 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13059 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13060 other GUI windowing systems.
13061 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13063 (x_consider_frame_title): Under NS, set icon type and frame
13064 modified-state indicator; use ns_set_name_as_filename() when using
13066 (update_window_cursor): Make public when compiling under NS.
13067 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13068 (hourglass_atimer, Vhourglass_delay
13069 * xfaces.c (header section, init_frame_faces, clear_font_table)
13070 (defined_color, unload_color, x_face_list_fonts)
13071 (prepare_face_for_display): Add NS support parallel to other GUIs.
13072 Emulate GCs like other non-X GUIs.
13073 (split_font_name): Don't lowercase font name under NS.
13074 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13076 * s/darwin.h: Add support for compilation under NS.
13078 2008-07-15 Jason Rumney <jasonr@gnu.org>
13080 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13081 (w32_show_hourglass): Rename from show_hourglass.
13082 (w32_hide_hourglass): Rename from hide_hourglass.
13083 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13084 (Vhourglass_delay): Declare extern.
13085 (hourglass_started): Remove.
13087 * xdisp.c (Vhourglass_delay): Remove static.
13088 (hourglass_started, start_hourglass, cancel_hourglass):
13089 Don't include these versions on WINDOWSNT.
13091 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13093 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13094 variables (formerly in xfns.c).
13095 (show_hourglass, hide_hourglass): New prototypes (same).
13096 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13097 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13099 (syms_of_xdisp): Declare/initialize display-hourglass,
13100 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13101 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13102 formerly in xfns.c.
13103 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13104 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13105 (start_hourglass, cancel_hourglass): Remove.
13106 (show_hourglass, hide_hourglass): Remove prototypes and static
13108 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13109 hourglass_atimer, hourglass_shown_p declaration/initialization.
13110 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13111 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13112 (start_hourglass, cancel_hourglass): Remove.
13113 (show_hourglass, hide_hourglass): Remove prototypes and static
13115 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13116 hourglass_atimer, hourglass_shown_p declaration/initialization.
13117 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13118 (DEFAULT_HOURGLASS_DELAY): Remove.
13119 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13120 hourglass_shown_p declaration/initialization.
13122 2008-07-14 Jason Rumney <jasonr@gnu.org>
13124 * w32fns.c (w32_get_arg): Remove wrapper function.
13125 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13127 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13129 2008-07-14 Kenichi Handa <handa@m17n.org>
13131 * xfont.c (xfont_open): Add workaround for X's bug.
13133 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13135 * fontset.c: Include <stdio.h> unconditionally.
13137 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
13139 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13142 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13144 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13147 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13149 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
13150 (SPECIAL_EMACS_INT):
13151 * m/ia64.h (SPECIAL_EMACS_INT):
13152 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13153 * s/gnu.h (NLIST_STRUCT):
13154 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13155 * s/gnu-linux.h (LINUX):
13156 * s/msdos.h (HAVE_FACES):
13157 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13160 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13163 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13165 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13166 always defined as int.
13168 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13169 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13170 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13171 * s/freebsd.h (HAVE_WAIT_HEADER):
13172 * s/bsd-common.h (HAVE_UNION_WAIT):
13173 * s/aix4-2.h (HAVE_WAIT_HEADER):
13174 * m/mips.h (HAVE_UNION_WAIT):
13175 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13176 (COFF, static): Do not define, they are undefined later in the file.
13178 * process.c (update_status): Don't use a union.
13180 (sigchld_handler): Use int instead of WAITTYPE.
13182 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13184 * indent.c (Fvertical_motion): Restore hscroll before moving to
13187 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13189 * lisp.h: Remove left over code.
13191 2008-07-11 Andreas Schwab <schwab@suse.de>
13193 * lisp.h: Fix logic in last change.
13195 * menu.h: New file.
13196 * menu.c: Include it.
13197 * xmenu.c: Likewise.
13198 * Makefile.in: Update dependencies.
13200 2008-07-11 Kenichi Handa <handa@m17n.org>
13202 * fontset.c (fontset_from_font): Cancel the previous change.
13204 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13209 * alloc.c: Replace all references of NO_UNION_TYPE with
13210 USE_LISP_UNION_TYPE.
13212 * m/xtensa.h (NO_UNION_TYPE):
13213 * m/vax.h (NO_UNION_TYPE):
13214 * m/template.h (NO_UNION_TYPE):
13215 * m/sparc.h (NO_UNION_TYPE):
13216 * m/mips.h (NO_UNION_TYPE):
13217 * m/macppc.h (NO_UNION_TYPE):
13218 * m/m68k.h (NO_UNION_TYPE):
13219 * m/iris4d.h (NO_UNION_TYPE):
13220 * m/intel386.h (NO_UNION_TYPE):
13221 * m/ibms390x.h (NO_UNION_TYPE):
13222 * m/ibms390.h (NO_UNION_TYPE):
13223 * m/ibmrs6000.h (NO_UNION_TYPE):
13224 * m/ia64.h (NO_UNION_TYPE):
13225 * m/hp800.h (NO_UNION_TYPE):
13226 * m/arm.h (NO_UNION_TYPE):
13227 * m/amdx86-64.h (NO_UNION_TYPE):
13228 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13229 defining it the same.
13231 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13233 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13235 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13252 * s/vms.h: Remove references to unused variables.
13254 2008-07-10 Andreas Schwab <schwab@suse.de>
13256 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13257 pattern before matching the generic family.
13259 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13266 * s/darwin.h: Remove dead code.
13279 * m/amdx86-64.h: Remove dead code and references to unused
13280 and compiler defined symbols.
13283 * unexelf.c: Remove references to desupported systems.
13285 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13287 * m/powermac.h: Remove boilerplate comments.
13288 (NO_REMAP): Remove unused definition.
13290 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13293 2008-07-10 Kenichi Handa <handa@m17n.org>
13295 * xfont.c (xfont_open): Log the reason of failure.
13297 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13299 * fontset.c (fontset_get_font_group):
13300 * font.c (font_check_otf): Specify argument types.
13302 2008-07-09 Kenichi Handa <handa@m17n.org>
13304 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13305 non-ASCII char is found.
13307 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13308 (reorder_font_vector): Change the arg preferred_family to font.
13309 Prefer the spec matching with font.
13310 (fontset_get_font_group): New function.
13311 (fontset_find_font): Change the format of an element of a realized
13312 fontset. Use fontset_get_font_group.
13313 (fontset_font): Try the current fontset, the default fontset, the
13314 fallbacks of the current fontset, and the fallbacks of the default
13315 fontset in this order.
13316 (face_for_char): Delete the shortcut to use the current font.
13317 (fontset_from_font): Don't set fonts for Latin in the fontset.
13319 * font.h (font_make_object, font_match_p): Adjust prototypes.
13321 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13323 * font.c (font_make_object): New arg entity and pixelsize.
13324 (font_check_otf_features, font_check_otf): New functions.
13325 (font_match_p): Check :lang, :script, and :otf properties.
13327 * xfont.c (xfont_open): Adjust it for the change of
13329 (xfont_text_extents): Fix initial setting of metrics.
13331 * ftfont.c (struct ftfont_info): New member index, delete member
13332 fc_charset_idx. Make the member order compatible with struct
13334 (fc_charset_table): Change charset names to registry names.
13335 (ftfont_pattern_entity): Delete the args registry and
13336 fc_charset_idx. Change the value of :font-entity property
13337 to (FONTNAME . INDEX). Always set :registry property to
13339 (struct ftfont_cache_data): New struct.
13340 (ftfont_lookup_cache): New arg for_face.
13341 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13342 (ftfont_driver): Set the member otf_capability.
13343 (ftfont_get_charset): Adjust it for the change of
13345 (OTF_TAG_SYM): New macro.
13346 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13347 for the change of fc_charset_table.
13348 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13349 ftfont_pattern_entity. Add FC_INDEX to objset.
13350 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13351 and ftfont_pattern_entity.
13352 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13353 font_make_object, struct ftfont_info.
13354 (ftfont_has_char): Use ftfont_get_fc_charset.
13355 (ftfont_otf_features, ftfont_otf_capability): New functions.
13356 (ftfont_shape): Use ftfont_get_otf.
13357 (ftfont_text_extents): Fix initial setting of metrics.
13359 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13360 member order compatible with struct ftfont_info.
13361 (xftfont_open): Add FC_CHARSET to the pattern. Set
13362 xftfont_info->ft_size. Don't unlock the face. Check BDF
13363 properties if appropriate.
13364 (xftfont_close): Unlock the face.
13365 (xftfont_anchor_point, xftfont_shape): Deleted.
13366 (syms_of_xftfont): Don't set members anchor_point and shape of
13369 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13372 * w32font.c (w32font_open): Adjust it for the change of
13374 (w32font_open_internal): Don't set properties of font_object here.
13376 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13378 * macfns.c (x_create_tip_frame):
13379 * w32fns.c (x_create_tip_frame):
13380 * xfns.c (x_create_tip_frame): Pass parameter argument to
13381 face-set-after-frame-default.
13383 * xfaces.c (Finternal_merge_in_global_face): Save merged
13384 attributes for the default face back into the face vector.
13386 2008-07-08 Andreas Schwab <schwab@suse.de>
13388 * fontset.h: Declare fontset_from_font. Don't declare
13389 new_fontset_from_font and fontset_from_font_name.
13390 * xterm.c: Include "fontset.h".
13391 * Makefile.in (xterm.o): Update dependencies.
13393 2008-07-08 Glenn Morris <rgm@gnu.org>
13395 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13396 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13398 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13400 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13401 (x_set_frame_parameters): Don't bind it.
13403 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13405 * w32fns.c (map_w32_filename): Declare extern.
13407 2008-07-07 Jason Rumney <jasonr@gnu.org>
13409 * w32term.c (WS_EX_LAYERED): Define if not already.
13411 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13413 * xfaces.c (set_font_frame_param): Don't try to set the font
13414 parameter if it is still unspecified in the lface.
13416 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13418 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13419 face if it didn't already exist.
13421 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13423 2008-07-05 Andreas Schwab <schwab@suse.de>
13425 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13427 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13429 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13431 (IT_DISPLAYING_WHITESPACE): New macro.
13432 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13433 when word-wrapping. Simplify word-wrapping logic. Use correct
13434 pixel positions when saving copies of the iterator.
13435 (display_line): Use proper wrap point if the last character on a
13436 line was preceded by whitespace.
13438 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13440 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13442 2008-07-04 Kenichi Handa <handa@m17n.org>
13444 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13446 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13448 2008-07-02 Jason Rumney <jasonr@gnu.org>
13450 * xfns.c (syms_of_xfns): Only define x-select-font when both
13451 HAVE_FREETYPE and USE_GTK.
13453 * xdisp.c (next_element_from_display_vector): Move assignment out
13456 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13458 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13460 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13461 (syms_of_fileio): Initialize and export them.
13462 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13464 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13465 (Fsystem_move_file_to_trash): New function.
13466 (syms_of_w32fns): Export it to lisp.
13468 2008-07-01 Jason Rumney <jasonr@gnu.org>
13470 * w32font.c (w32font_text_extents): Don't count overhang as part
13473 2008-06-30 Miles Bader <miles@gnu.org>
13475 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13476 Add `avoid_cursor_p' field.
13478 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13479 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13480 (append_glyph, append_composite_glyph, produce_image_glyph)
13481 (append_stretch_glyph): Initialize avoid_cursor_p.
13482 (get_it_property): Rename from `get_line_height_property'.
13483 (x_produce_glyphs): Use get_it_property.
13484 (handle_line_prefix, push_display_prop): New functions.
13485 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13486 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13488 (syms_of_xdisp): Initialize them.
13490 2008-06-30 Kenichi Handa <handa@m17n.org>
13492 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13493 XftDefaultSubstitute (they are called in XftFontMatch).
13494 (xftfont_open): Fix args to ftfont_font_format.
13496 * ftfont.c (fc_charset_table): New member lang.
13497 (ftfont_resolve_generic_family): New arg pattern.
13498 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13499 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13500 (ftfont_open): Fix args to ftfont_font_format.
13501 (ftfont_font_format): New arg filename.
13503 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13505 * xfaces.c (Finternal_merge_in_global_face): If default face was
13506 modified, realize it again. Update the font face attribute.
13508 2008-06-29 Jason Rumney <jasonr@gnu.org>
13510 * w32term.c (x_set_frame_alpha): Fix logic.
13512 2008-06-29 Kenichi Handa <handa@m17n.org>
13514 * fontset.c (Finternal_char_font): Return font-object instead of
13517 * composite.c (get_composition_id): Fix the width calculation for TAB.
13519 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13521 * indent.c (Fvertical_motion): Properly handle float column arg.
13523 2008-06-28 Jason Rumney <jasonr@gnu.org>
13525 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13526 (pfnSetLayeredWindowAttributes): New function pointer.
13527 (w32_initialize): Initialize it when supported.
13528 (x_set_frame_alpha): New function.
13530 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13531 (w32_frame_parm_handlers): Set alpha handler.
13533 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13535 2008-06-27 Jason Rumney <jasonr@gnu.org>
13537 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13538 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13539 (w32_to_x_charset, x_to_w32_charset)
13540 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13541 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13542 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13543 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13544 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13545 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13546 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13547 (Qw32_charset_unicode): Remove.
13548 (syms_of_w32fns): Update for above changes.
13550 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13551 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13552 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13553 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13554 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13555 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13556 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13557 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13558 (syms_of_w32font): Update for above changes.
13560 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13562 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13564 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13566 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13567 Eli Zaretskii <eliz@gnu.org>
13569 * makefile.w32-in (LOCAL_FLAGS):
13570 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13572 * sysdep.c (_spawnlp, _getpid):
13573 Declare with explicit _cdecl instead of _CRTAPI1.
13575 * editfns.c (Fget_internal_run_time):
13576 Check for WINDOWSNT with #ifdef, not #if.
13578 2008-06-26 Jason Rumney <jasonr@gnu.org>
13580 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13582 * w32term.c (x_draw_glyph_string_foreground)
13583 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13584 Use FONT_HANDLE macro.
13585 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13587 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13588 (uniscribe_encode_char): Use FONT_HANDLE macro.
13590 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13591 (w32font_text_extents): Use precast w32_font.
13592 (w32font_close): Free cached metrics.
13593 (w32font_open_internal): Allocate space for name on stack.
13595 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13597 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13599 2008-06-26 Jason Rumney <jasonr@gnu.org>
13601 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13602 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13604 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13606 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13608 2008-06-26 Jason Rumney <jasonr@gnu.org>
13610 * w32bdf.c, w32bdf.h: Remove obsolete files.
13612 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13614 * w32gui.h: Don't include w32bdf.h.
13615 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13616 Remove obsolete font support.
13618 * w32font.h (struct w32font_info): Remove compat_w32_font.
13620 (FONT_COMPAT): Remove obsolete macro.
13622 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13623 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13624 (w32font_open_internal): Remove compat code. Set new hfont member.
13625 (Fx_select_font): Use new hfont member.
13627 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13628 (uniscribe_encode_char): Use new hfont member.
13630 * w32term.c (x_draw_glyph_string_foreground)
13631 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13632 (x_draw_glyph_string): Use metrics in w32font_info.
13634 2008-06-26 Kenichi Handa <handa@m17n.org>
13636 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13638 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13644 * m/mips-siemens.h:
13666 * s/uxpv.h: Remove support for obsolete systems.
13667 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13668 Remove, insert contents in s/hpux10-20.h.
13669 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13670 Remove, insert contents in s/aix4-2.h.
13671 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13672 * s/bsd4-3.h: Rename to ...
13673 * s/bsd-common.h: ... this.
13702 * s/template.h: Remove references to obsolete variables.
13704 * Makefile.in: Add dependencies for all unexec files.
13705 (admindir): Remove unused variable.
13706 (UNEXEC_SRC): Remove references.
13708 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13710 * xfns.c (x_default_font_parameter): If Xft is available, first
13711 try Monospace-12 for the default font.
13713 2008-06-25 Jason Rumney <jasonr@gnu.org>
13715 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13717 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13719 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13721 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13723 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
13725 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13726 <scroll-conservatively>: Fix typo in docstring.
13728 * xselect.c (Fx_send_client_event): Doc fix.
13730 2008-06-25 Kenichi Handa <handa@m17n.org>
13732 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13734 * font.c (font_parse_fcname): Remove unused variables.
13735 (font_sort_entites): Delete the arg SPEC. Caller changed.
13736 Fix for the case of ! best_only.
13737 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13739 * lisp.h (Fstring_to_unibyte): EXFUN it.
13741 * character.h (str_to_unibyte): Extern it.
13743 * character.c (str_to_unibyte): New function.
13745 * fns.c (Fstring_to_unibyte): New function.
13746 (syms_of_fns): Defsubr it.
13748 2008-06-24 Kenichi Handa <handa@m17n.org>
13750 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13752 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13754 2008-06-24 Andreas Schwab <schwab@suse.de>
13756 * Makefile.in (${lispsource}loaddefs.el): Rename from
13757 ../lisp/loaddefs.el.
13758 (bootstrap-clean): Do what distclean does but don't remove
13760 (distclean): Depend on bootstrap-clean and remove Makefile.
13762 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
13764 * buffer.h (struct buffer): New member word_wrap.
13766 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13768 (init_buffer_once): Initialize them.
13770 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13771 line_wrap enum possessing three possible values.
13773 * termopts.h: Replace truncate_partial_width_windows with
13774 Vtruncate_partial_width_windows.
13776 * dispnew.c (direct_output_for_insert): Avoid direct output when
13777 inserting a space with word wrap on.
13779 * indent.c (compute_motion): Obey integer values of
13780 truncate-partial-width-windows.
13782 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13783 replacing truncate_partial_width_windows.
13784 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13785 truncate only if the window width is below that integer.
13786 (start_display, resize_mini_window, produce_stretch_glyph)
13787 (display_string, move_it_in_display_line_to): Use line_wrap.
13788 (back_to_previous_visible_line_start, reseat_1): Reset
13789 string_from_display_prop_p.
13790 (display_line): Extend default face to end of line when wrapping.
13792 2008-06-24 Kim F. Storm <storm@cua.dk>
13794 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13795 to wrap continued lines at word boundaries.
13797 2008-06-24 Jason Rumney <jasonr@gnu.org>
13799 * font.c (Ffont_face_attributes): Multiply pixel size before point
13800 conversion to avoid multiplying rounding error.
13802 2008-06-23 Jason Rumney <jasonr@gnu.org>
13804 * w32term.c (x_draw_glyph_string_background)
13805 (x_draw_glyph_string): Remove old bdf font code.
13807 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13809 2008-06-22 Kenichi Handa <handa@m17n.org>
13811 * font.c (font_find_for_lface): Try the adstyle specified in
13812 the property of LFACE_FONT of LFACE (if any).
13814 2008-06-21 Seiji Zenitani <zenitani@mac.com>
13815 Ryo Yoshitake <ryo@shiftmode.net>
13817 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13819 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13821 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13822 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13823 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13824 (witness-emacs): Remove.
13825 (lisp, shortlisp): Move loaddefs.el earlier.
13826 (mostlyclean): Forget about witness-emacs.
13828 2008-06-22 Glenn Morris <rgm@gnu.org>
13830 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13831 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13833 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13835 * Makefile.in (PRECOMP): Remove.
13836 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13837 (witness-emacs): Run `compile-first'.
13838 (.el.elc): Use the new compile-onefile target.
13840 2008-06-21 Kenichi Handa <handa@m17n.org>
13842 * xftfont.c (xftfont_open): Handle QCembolden only when
13843 FC_EMBOLDEN is defined.
13845 2008-06-21 Andreas Schwab <schwab@suse.de>
13847 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13848 (.el.elc): Likewise.
13850 2008-06-21 Miles Bader <miles@gnu.org>
13852 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13853 build dir, not the lisp source dir.
13855 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13857 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13858 (bootstrapclean): Remove.
13859 (.el.elc): New rule.
13860 (PRECOMP): New var.
13861 (../lisp/subdirs.el): Remove.
13862 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13863 (witness-emacs): New target.
13864 (mostlyclean): Remove witness-emacs as well.
13865 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13866 Add witness-emacs dependency.
13868 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
13870 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13871 defined by the font.
13873 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13875 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13876 (bootstrap-clean): New target that keeps TAGS around.
13877 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13878 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13880 2008-06-20 Jason Rumney <jasonr@gnu.org>
13882 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13883 Remove obsolete font code.
13885 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13886 to determine language support.
13888 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13890 * sysdep.c (cfsetspeed): New fun extracted from the code.
13891 (cfmakeraw): Move before first use.
13893 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13895 * sysdep.c (cfmakeraw): Provide fallback implementation.
13896 (serial_configure): Provide fallback implementation of cfsetspeed.
13898 2008-06-20 Kenichi Handa <handa@m17n.org>
13900 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13903 * fontset.c (fontset_from_font): Copy font_spec before changing
13906 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13908 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13910 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13911 for explicit `font' parameters.
13913 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13915 2008-06-19 Kenichi Handa <handa@m17n.org>
13917 * frame.c: Include <ctype.h>.
13918 (x_set_font_backend): Allow spacing characters in the X resource
13921 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13923 * w32fns.c, xfns.c (Qfont_param): New var.
13924 (syms_of_w32fns): Initialize it.
13925 (x_default_font_parameter): Record explicit `font' into
13928 2008-06-18 Kenichi Handa <handa@m17n.org>
13930 * font.c (font_parse_xlfd): Fix previous change.
13931 (font_parse_fcname): Don't use :fc-unknown-spec.
13932 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13933 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13934 (font_add_log): Prepend the driver name to the resulting fonts.
13936 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13937 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13938 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13940 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13941 (QCembolden): New variables.
13942 (syms_of_xftfont): DEFSYM them.
13943 (xftfont_open): Call XftFontMatch. Don't trust the result of
13944 XftTextExtents8 if the pixel_size is less than 5.
13946 2008-06-18 Andreas Schwab <schwab@suse.de>
13948 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13949 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13951 2008-06-18 Jason Rumney <jasonr@gnu.org>
13953 * w32font.c (w32font_list, w32font_match): Add logging.
13955 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13957 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
13959 * font.c (font_parse_fcname): Store divider characters for
13960 unknown-spec list. For known key symbols, intern using correct
13963 2008-06-17 Kenichi Handa <handa@m17n.org>
13965 * xfaces.c (realize_default_face): If the frame is not on window
13966 system, set the fontset of face to nil.
13968 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13970 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13972 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13974 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13975 (build_font_name_from_vector): Delete externs.
13977 * xfaces.c (struct font_name): Don't declare.
13979 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13981 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13983 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13985 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13987 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13989 * font.c (Ffont_spec): Fix usage in docstring.
13990 (Ffont_face_attributes): Doc fix.
13992 2008-06-16 Andreas Schwab <schwab@suse.de>
13994 * font.c (Ffont_face_attributes): Fix definition.
13996 2008-06-16 Jason Rumney <jasonr@gnu.org>
13998 * font.h (font_style_symbolic_from_value): Remove.
14000 * font.c (font_style_symbolic_from_value): Remove.
14001 (font_style_symbolic): Revert to pre 2008-06-13 version.
14003 * w32font.c (w32_to_fc_weight): New function.
14004 (w32font_full_name, logfont_to_fcname): Use it.
14006 2008-06-16 Kenichi Handa <handa@m17n.org>
14008 * font.c (font_check_object): Delete it.
14009 (font_clear_cache): Check if a font-object is alive.
14010 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14011 font-object to nil.
14012 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14013 (font_at): Don't call font_check_object.
14014 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14016 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14018 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14020 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14022 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14024 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14026 * font.c (font_parse_fcname): Only one decimal point.
14027 (font_unparse_fcname): Handle data in family and foundry indices
14028 as symbols, not strings.
14029 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14031 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14033 * font.h (font_unparse_gtkname): Add prototype.
14035 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14037 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14039 2008-06-15 Andreas Schwab <schwab@suse.de>
14041 * font.c (font_update_drivers): Fix crash when no drivers match.
14043 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14045 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14046 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14048 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14050 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14052 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14054 * process.c (Fserial_process_configure, Fprocess_send_eof):
14055 Use EQ to compare Lisp_Objects.
14057 2008-06-13 Jason Rumney <jasonr@gnu.org>
14059 * w32fns.c (Fw32_select_font): Remove old font API function.
14061 * w32font.c (logfont_to_fcname): New function.
14062 (Fx_select_font): New font dialog function compatible with
14063 GTK/fontconfig version.
14065 * font.c (font_style_symbolic_from_value): New function.
14066 (font_style_symbolic): Use it.
14068 * font.h (font_style_symbolic_from_value): Declare new function.
14070 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
14072 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14073 <font-width-table>: Fix typos in docstrings.
14075 2008-06-13 Daniel Engeler <engeler@gmail.com>
14077 These changes add serial port access.
14078 * process.c: Add HAVE_SERIAL.
14079 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14080 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14081 (list_processes_1, select_wrapper, Fstop_process)
14082 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14083 (status_notify): Modify to handle serial processes.
14084 [HAVE_SERIAL] (Fserial_process_configure)
14085 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14087 * process.h (struct Lisp_Process): Add `type'.
14088 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14090 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14092 (serial_open, serial_configure): New functions.
14093 * w32.h: Add FILE_SERIAL.
14094 (struct _child_process): Add ovl_read, ovl_write.
14096 2008-06-13 Kenichi Handa <handa@m17n.org>
14098 * dispextern.h (enum lface_attribute_index): New member
14099 LFACE_FOUNDRY_INDEX.
14101 * font.c (font_score): Delete arg alternate_families. Check only
14102 weight, slant, width, and size. Ignore the difference of alias
14104 (font_sort_entites): Adjust for the above change. Reflect the
14105 order of font-driver to scores.
14106 (font_list_entities): Don't check alternate_familes here.
14107 (font_clear_prop): Handle foundry.
14108 (font_update_lface): Don't parse "foundry-family" form here.
14109 Handle FONT_FOUNDRY_INDEX.
14110 (font_find_for_lface): Likewise. Handle alternate families here.
14111 If registry is nil, try iso8859-1 and ascii-0.
14112 (font_open_for_lface): Pay attention to size in ENTITY.
14113 (font_open_by_name): Simplify by calling font_load_for_lface.
14114 (free_font_driver_list): Delete it.
14115 (font_update_drivers): Preserve the order of backends.
14116 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14117 of font_score and font_sort_entites.
14118 (font_update_sort_order): Likewise.
14120 * xfaces.c (LFACE_FOUNDRY): New macro.
14121 (check_lface_attrs): Check foundry.
14122 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14123 (merge_face_vectors): Check foundry.
14124 (merge_face_ref): Likewise.
14125 (Finternal_set_lisp_face_attribute): Likewise.
14126 (x_update_menu_appearance): Likewise.
14127 (Finternal_get_lisp_face_attribute): Likewise.
14128 (lface_hash): Likewise.
14129 (lface_same_font_attributes_p): Likewise.
14130 (x_supports_face_attributes_p): Likewise.
14131 (tty_supports_face_attributes_p): Likewise.
14132 (Finternal_set_alternative_font_family_alist): Intern strings.
14133 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14134 (realize_default_face): Set LFACE_FOUNDRY (lface).
14136 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14137 font-driver at first.
14139 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14141 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14143 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14145 2008-06-12 Jim Meyering <meyering@redhat.com>
14147 Make unexec_free handle NULL the same way free does.
14148 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14150 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14152 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14153 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14154 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14155 (WEAK_ALIAS): Simplify.
14156 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14157 when searching a unibyte buffer.
14159 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
14161 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14163 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
14165 * w32font.c: Include ctype.h.
14167 2008-06-11 Jason Rumney <jasonr@gnu.org>
14169 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14170 misreported as space.
14171 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14172 as aliases for registry iso10646-1.
14174 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14176 * buffer.c (clone_per_buffer_values): Skip `name'.
14178 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14180 * font.c (font_parse_fcname): Fix last change; accept decimal
14181 points in font size.
14183 2008-06-10 Jason Rumney <jasonr@gnu.org>
14185 * w32uniscribe.c (add_opentype_font_name_to_list):
14186 Skip non unicode fonts.
14188 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14190 * xfns.c (Fx_font_dialog): New function.
14192 * gtkutil.c (xg_dialog_response_cb): Rename from
14193 xg_file_response_callback.
14194 (pop_down_dialog): Rename from pop_down_file_dialog.
14195 (xg_get_file_name): Callers changed.
14196 (xg_get_font_name): New function.
14198 * gtkutil.h (xg_get_font_name): Insert prototype.
14200 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14202 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14203 x_underline_minimum_display_offset.
14204 (syms_of_xdisp): Declare it here rather than in xterm.c.
14205 * dispextern.h (underline_minimum_offset): Declare it.
14206 * w32term.c (x_draw_glyph_string): Use it.
14207 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14208 (syms_of_xterm): Don't declare it any more.
14209 (x_draw_glyph_string): Adjust to the new name.
14211 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14213 * xterm.c (x_underline_minimum_display_offset): New var.
14214 (x_draw_glyph_string): Use it.
14215 (syms_of_xterm): Declare it.
14217 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14219 * font.c (font_parse_fcname): Accept GTK-style font names too.
14221 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14223 * dired.c (file_name_completion): Don't return t if the match is exact
14224 but with different capitalization.
14225 * minibuf.c (Ftry_completion): Simplify.
14227 * window.c (Vwindow_point_insertion_type): New var.
14228 (set_window_buffer): Use it.
14229 (syms_of_window): Init and export it to Lisp.
14231 2008-06-10 Kenichi Handa <handa@m17n.org>
14233 * font.h (font_intern_prop): Prototype adjusted.
14235 * font.c (font_intern_prop): New arg force_symbol.
14236 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14237 Adjust for the change of font_intern_prop.
14239 * ftfont.c (ftfont_pattern_entity):
14240 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14242 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14243 the change of font_intern_prop.
14245 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14247 * w32menu.c (digest_single_submenu): Declare extern.
14249 2008-06-09 Jason Rumney <jasonr@gnu.org>
14251 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14253 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14254 (parse_single_submenu): Remove.
14255 (digest_single_submenu): Remove.
14256 (syms_of_w32menu): Don't initialise variables that have moved
14258 (set_frame_menubar): Sync with version in xmenu.c.
14259 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14261 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14264 2008-06-09 Jason Rumney <jasonr@gnu.org>
14266 Changes to w32 files related to the move of common menu code
14267 to menu.c on 2008-06-08 by Chong Yidong.
14269 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14271 (single_keymap_panes, push_menu_item, push_menu_pane):
14272 Make globally visible.
14274 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14275 (local_free, malloc_widget_value, free_widget_value)
14276 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14277 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14278 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14279 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14280 (menu_items, menu_items_allocated, menu_items_used)
14281 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14282 (init_menu_items, finish_menu_items, discard_menu_items)
14283 (grow_menu_items, push_submenu_start, push_submenu_end)
14284 (push_left_right_boundary, push_menu_pane, push_menu_item)
14285 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14286 (free_menubar_widget_tree_value, parse_single_submenu)
14287 (update_submenu_strings): Remove functions.
14288 (xmalloc_widget_value): Remove and declare extern.
14290 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14293 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14294 (local_heap, local_alloc, local_free, malloc_widget_value)
14295 (free_widget_value): Define here.
14297 2008-06-09 Kenichi Handa <handa@m17n.org>
14299 * font.h (Qascii_0): Extern it.
14301 * font.c (Qascii_0): New variable.
14302 (syms_of_font): DEFSYM it.
14303 (font_open_by_name): If the registry "iso8859-1" fails, try also
14306 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14308 2008-06-08 Kenichi Handa <handa@m17n.org>
14310 * .gdbinit (xfont): New command.
14312 2008-06-08 Andreas Schwab <schwab@suse.de>
14314 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14315 * Makefile.in (menu.o): Update dependencies.
14317 * Makefile.in (obj): Always add menu.o.
14318 * emacs.c (main): Always call syms_of_menu.
14319 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14321 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14323 * Makefile.in: Compile menu.c.
14325 * lisp.h: Declare syms_of_menu.
14327 * emacs.c (main): Call syms_of_menu.
14329 * keyboard.h: Relocate platform-independent menu definitions from
14332 * menu.c: New file. Relocate platform-independent menu
14333 definitions from xmenu.c. Suggested by Adrian Robert.
14335 * xmenu.c: Remove platform-independent menu definitions.
14336 (menu_items, menu_items_inuse, menu_items_allocated)
14337 (menu_items_used, menu_items_n_panes)
14338 (menu_items_submenu_depth): Move to keyboard.h.
14339 (init_menu_items, finish_menu_items, unuse_menu_items)
14340 (discard_menu_items, restore_menu_items, save_menu_items)
14341 (grow_menu_items, push_submenu_start, push_submenu_end)
14342 (push_left_right_boundary, push_menu_pane, push_menu_item)
14343 (keymap_panes, single_keymap_panes, single_menu_item)
14344 (list_of_panes, list_of_items, find_and_call_menu_selection)
14345 (xmalloc_widget_value, free_menubar_widget_value_tree)
14346 (parse_single_submenu, digest_single_submenu)
14347 (update_submenu_strings): Move to menu.c.
14349 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14351 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14353 2008-06-06 Miles Bader <miles@gnu.org>
14355 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14356 face, not frame default.
14358 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14360 * window.c (pop_up_windows, pop_up_frames)
14361 (display_buffer_reuse_frames, Vpop_up_frame_function)
14362 (Vdisplay_buffer_function, Veven_window_heights)
14363 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14364 (Vspecial_display_function, Vsame_window_buffer_names)
14365 (Vsame_window_regexps, split_height_threshold)
14366 (Vsplit_window_preferred_function): Move those vars to window.el.
14367 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14368 (Fdisplay_buffer): Move those functions to window.el.
14369 (syms_of_window): Remove corresponding declarations.
14370 (display_buffer): New function.
14371 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14372 * dispnew.c (Flast_nonminibuf_frame): New function.
14373 * buffer.c (Fpop_to_buffer): Move to window.el.
14375 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14377 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14379 2008-06-05 Kenichi Handa <handa@m17n.org>
14381 * coding.c (detect_coding): Fix previous change.
14382 (detect_coding_system): Likewise.
14384 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14386 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14388 * keymap.c (Vminibuffer_local_filename_must_match_map):
14389 Rename from Vminibuffer_local_must_match_filename_map.
14391 * minibuf.c (Fcompleting_read): Adjust accordingly.
14392 * commands.h: Rename declaration as well.
14394 2008-06-05 Kenichi Handa <handa@m17n.org>
14396 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14398 (Ffont_put): Likewise.
14400 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14403 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14406 * xfaces.c (realize_x_face): If the font-related face attributes
14407 are the same as those of default face, realize a new fontset from
14409 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14411 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14413 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14414 (move_it_in_display_line): New wrapper.
14416 * window.c (window_scroll_pixel_based_preserve_x)
14417 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14418 (window_scroll_pixel_based, window_scroll_line_based):
14419 Use them to preserve column positions.
14420 (syms_of_window): Initialize them.
14422 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14423 (HPOS . VPOS) pair.
14425 * dispextern.h (move_it_in_display_line): Declare.
14427 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14429 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14430 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14431 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14433 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14435 * window.c (Fset_window_parameter): Doc fix.
14436 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14438 2008-06-04 Joakim Verona <joakim@verona.se>
14440 * window.h (struct window): Add new member window_parameters.
14442 * window.c (Fwindow_parameters, Fwindow_parameter)
14443 (Fset_window_parameter): New defuns.
14444 (syms_of_window): Defsubr the new defuns.
14445 (make_window): Initialize window_parameters to nil.
14447 2008-06-04 John Paul Wallington <jpw@pobox.com>
14449 * eval.c (Fdefmacro): Doc fix.
14451 2008-06-04 Kenichi Handa <handa@m17n.org>
14453 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14454 Be sure to call setup_coding_system when we find a proper coding system.
14455 (detect_coding_system): Fix handling of coding->head_ascii.
14457 2008-06-03 Andreas Schwab <schwab@suse.de>
14459 * font.c (font_prop_validate_spacing): Fix last change.
14461 2008-06-03 Kenichi Handa <handa@m17n.org>
14463 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14464 (font_parse_fcname): Fix handling of unknown key.
14466 * xfont.c (xfont_list): Try an alias.
14468 * charset.c (char_charset): Return NULL if the arg charset_list is
14469 specified and C doesn't belong to any of them.
14471 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14473 * font.c (font_pixel_size): Don't take cdr of an integer.
14475 2008-06-02 Jim Meyering <meyering@redhat.com>
14477 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14478 * alloc.c (xfree): Return right away for a NULL arg.
14479 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14480 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14481 * mac.c (create_apple_event_from_event_ref): Likewise.
14482 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14484 * doprnt.c (doprnt1): Likewise.
14485 * frame.c (frame): Likewise.
14486 * keyboard.c (wipe_kboard): Likewise.
14487 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14488 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14489 * term.c (tty_default_color_capabilities, maybe_fatal)
14490 (delete_tty): Likewise.
14491 * w16select.c (string): Likewise.
14492 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14493 * w32bdf.c (w32_free_bdf_font): Likewise.
14494 * w32fns.c (w32_unload_font): Likewise.
14495 * w32font.c (w32font_close): Likewise.
14496 * window.c (size_window): Likewise.
14497 * xselect.c (receive_incremental_selection): Likewise.
14498 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14499 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14500 * w32.c (stat): Likewise.
14502 Remove useless if-before-free tests.
14503 * editfns.c (Fset_time_zone_rule): Likewise.
14504 * lread.c (nosuffix): Likewise.
14505 * ralloc.c (get_bloc): Likewise.
14506 * regex.c (reg_free): Likewise.
14507 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14508 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14509 * xsmfns.c (smc_save_yourself_CB): Likewise.
14511 2008-06-02 Kenichi Handa <handa@m17n.org>
14513 * font.c (font_find_for_lface): Handle float font size.
14514 (font_open_for_lface): Likewise.
14516 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14517 comparing the properties.
14519 2008-06-01 Jason Rumney <jasonr@gnu.org>
14521 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14522 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14523 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14524 Don't add empty script list.
14525 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14527 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14529 * Makefile.in (dot, dotdot): Remove, update users.
14530 ".." has been used elsewhere in the file for a long time.
14531 (LIBXT_STATIC): Remove conditional based on unused variable.
14533 2008-06-01 Miles Bader <miles@gnu.org>
14535 * xfaces.c (Vface_remapping_alist): New variable.
14536 (syms_of_xfaces): Initialize it.
14537 (enum named_merge_point_kind): New type.
14538 (struct named_merge_point): Add `named_merge_point_kind' field.
14539 (push_named_merge_point): Make cycle detection respect different
14540 named-merge-point kinds.
14541 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14542 Remove face-name alias resolution.
14543 (lface_from_face_name): New definition using
14544 `lface_from_face_name_no_resolve'.
14545 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14546 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14547 (get_lface_attributes): New definition that layers face-remapping on
14548 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14549 (lookup_basic_face): New function.
14550 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14551 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14552 `get_lface_attributes'.
14553 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14554 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14555 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14557 * xdisp.c (init_iterator): Pass base_face_id through
14558 `lookup_basic_face' when we actually use it as a face-id.
14559 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14562 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14563 lookup the initial face-id.
14565 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14567 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14569 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14570 (Fremove_text_properties): Fix typos in docstrings.
14572 2008-05-31 Kenichi Handa <handa@m17n.org>
14574 * font.c (font_list_entities): Fix the car part of data to be
14575 stored in the cache.
14577 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14579 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14581 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14582 Add a `test' argument so another predicate than `equal' can be used.
14583 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14584 (map_char_table): Remove unused vars `c' and `i'.
14585 * lisp.h (Foptimize_char_table): Adjust declaration.
14586 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14588 2008-05-30 Kenichi Handa <handa@m17n.org>
14590 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14591 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14594 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14596 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14597 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14598 frame-local settings for the same variable.
14600 2008-05-30 Kenichi Handa <handa@m17n.org>
14602 * fontset.c (Ffont_info): Move to font.c.
14603 (syms_of_fontset): Delete defsubr of Sfont_info.
14605 * font.c (font_style_to_value, font_score): Delete casting of the
14606 args to xstcasecmp.
14607 (register_font_driver): Increment num_font_drivers only when
14608 registering the driver globally.
14609 (Ffont_info): Move from fontset.c. Handle a font object too.
14610 (syms_of_font): Defsubr Sfont_info.
14612 2008-05-29 Kenichi Handa <handa@m17n.org>
14614 * coding.h (enum define_coding_utf8_arg_index): New enum.
14615 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14616 coding_attr_utf_bom.
14617 (enum utf_bom_type): Rename from utf_16_bom_type.
14618 (struct utf_16_spec): Adjust for the above change.
14619 (struct coding_system): Add utf_8_bom in `spec' union.
14621 * coding.c (CODING_UTF_8_BOM): New macro.
14622 (enum coding_category): Delete coding_category_utf_8, add
14623 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14624 coding_category_utf_8_sig.
14625 (CATEGORY_MASK_UTF_8): Delete it.
14626 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14627 (CATEGORY_MASK_UTF_8_SIG): New macros.
14628 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14629 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14630 CATEGORY_MASK_UTF_8_SIG.
14631 (CATEGORY_MASK_UTF_8): New macro.
14632 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14633 (detect_coding_utf_8): Check BOM.
14634 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14635 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14636 (encode_coding_utf_16): Likewise.
14637 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14638 (detect_coding, detect_coding_system): Handle utf-8-auto.
14639 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14640 (syms_of_coding): Fix setting up of Vcoding_category_table.
14642 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14644 * process.c (Faccept_process_output): If `millisec' is non-nil,
14645 `seconds' default to 0.
14646 (wait_reading_process_output): Also return non-nil if we read output
14647 from a non-running process.
14649 2008-05-29 Jason Rumney <jasonr@gnu.org>
14651 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14652 `raster' specified.
14653 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14654 in the uniscribe backend, but disallow any font that has no
14655 unicode subrange support.
14657 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14659 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14660 Fix typos in docstrings.
14662 2008-05-29 Kenichi Handa <handa@m17n.org>
14664 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14665 (Fx_family_fonts): Set frame correctly.
14667 2008-05-28 Jason Rumney <jasonr@gnu.org>
14669 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14671 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14673 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14674 calling build_annotations.
14676 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14678 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14679 (Fencode_coding_string):
14680 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14681 <latin-extra-code-table>: Fix typos in docstrings.
14682 (syms_of_coding) <coding-system-alist>: Doc fix.
14683 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14685 2008-05-28 Kenichi Handa <handa@m17n.org>
14687 * fontset.c (Ffont_info): Don't call font_close_object.
14689 * font.c (font_parse_family_registry): Use Ffont_put to validate
14690 foundry and family.
14691 (font_delete_unmatched): Don't check spacing.
14692 (font_list_entities): Add spacing to the spec to list fonts.
14694 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14695 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14697 * coding.c (encode_coding_raw_text): Fix previous change.
14698 (encode_coding_object): When the dst_object is a buffer and is
14699 different from src_object, move gap to PT.
14701 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14703 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14705 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14707 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14708 all branches. Compute it differently.
14710 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14712 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14714 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14715 into "else if () ... else ...".
14717 2008-05-27 Jason Rumney <jasonr@gnu.org>
14719 * w32font.c (w32font_open_internal): Determine if glyph indices
14720 are likely to work here.
14722 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14724 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14725 draw overlap glyphs with appropriate highlighting.
14727 2008-05-27 Kenichi Handa <handa@m17n.org>
14729 * xfont.c (xfont_open): Fix calculation of font->average_width.
14731 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14733 * casefiddle.c (casify_object): Try to guess better whether the
14734 argument is a byte or a char.
14736 2008-05-26 Andreas Schwab <schwab@suse.de>
14738 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14739 Always send multiples of format size.
14741 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14743 2008-05-26 Jason Rumney <jasonr@gnu.org>
14745 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14746 (compute_metrics): Don't set failure if we just cleared the cache.
14747 (w32_weight_table): Remove unused variable.
14748 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14749 backwards compatibility.
14751 2008-05-25 Kenichi Handa <handa@m17n.org>
14753 * w32term.c (x_draw_glyph_string):
14754 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14756 * xfaces.c: Delete unused function prototypes.
14757 (xstrlwr, font_frame): Delete them.
14758 (clear_face_cache): Delete unused variable.
14760 * xftfont.c (xftfont_open): Delete unused variable.
14761 If underline_thickness is not 1, adjust underline_position.
14763 * ftxfont.c (ftxfont_open): Delete unused variable.
14765 * fontset.c (face_for_char): Optimize for the case of no charset
14768 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14769 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14770 (otf_open, font_otf_capability, generate_otf_features)
14771 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14772 Comment out by surrounding "#if 0" and "#endif" for the moment.
14773 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14774 (syms_of_font): Codes for accessing above commented out.
14776 2008-05-24 Eli Zaretskii <eliz@gnu.org>
14778 * w32proc.c: Include dispextern.h.
14780 * w32.c: Include dispextern.h.
14782 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
14784 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14785 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14786 Fix typos in docstrings.
14788 2008-05-23 Jason Rumney <jasonr@gnu.org>
14790 * xsmfns.c: Remove includes that are already included by config.h.
14792 2008-05-23 Kenichi Handa <handa@m17n.org>
14794 * charset.c (Qemacs, charset_emacs): New variables.
14795 (char_charset): Fix for non-Unicode characters.
14796 (syms_of_charset): Define charset_emacs.
14798 * w32term.c (x_draw_glyph_string): Be sure to update
14799 s->underline_thickness and s->underline_position. Be sure to draw
14800 underline within the current line area.
14802 * xterm.c (x_draw_glyph_string): Be sure to update
14803 s->underline_thickness and s->underline_position. Be sure to draw
14804 underline within the current line area.
14806 * fontset.c: Delete unused variables and add casting for char *
14807 throughout the file.
14808 (fontset_font): Try the fallback fonts of the current fontset
14809 before consulting the default fontset.
14811 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14813 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14815 2008-05-22 Jason Rumney <jasonr@gnu.org>
14817 * font.c: Don't include strings.h.
14819 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14821 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14822 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14823 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14824 to call xstrcasecmp.
14826 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14828 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14830 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14832 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14834 2008-05-22 Kenichi Handa <handa@m17n.org>
14836 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14838 * font.c (font_prop_validate_style): Adjust for the format
14839 change of font_style_table.
14841 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14844 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14847 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14849 * minibuf.c (keys_of_minibuf): Delete.
14850 * lisp.h (keys_of_minibuf): Delete.
14851 * emacs.c (main): Don't call keys_of_minibuf.
14853 2008-05-22 Kenichi Handa <handa@m17n.org>
14855 * ftfont.c (ftfont_resolve_generic_family): Rename from
14856 ftfont_list_generic_family. Return a single family for each
14858 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14859 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14861 (ftfont_match): Call font_add_log.
14863 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14864 (FONT_DEBUG): Define it.
14865 (font_add_log): Extern it.
14866 (font_assert): Rename from xassert.
14868 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14869 (xfont_list_family): Call font_add_log.
14870 (xfont_match): Likewise.
14871 (memq_no_quit): Delete.
14873 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14874 call of Ffont_xlfd_name.
14876 * xfaces.c (struct table_entry, slant_table, weight_table)
14877 (swidth_table): Move to font.c.
14879 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14880 xassert are changed to font_assert. Delete many unused variables.
14881 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14883 (struct table_entry): Move from xfaces.c and modified.
14884 (weight_table, slant_table, width_table): Move from xfaces.c and
14885 contents adjusted for the change of struct table_entry.
14886 (font_style_to_value, font_style_symbolic): Adjust for the
14887 format change of font_style_table.
14888 (font_parse_family_registry): Don't overwrite existing foundry and
14889 family of font_spec.
14890 (font_score): Fix calculation of diff for sizes.
14891 (font_sort_entites): Call font_add_log.
14892 (font_delete_unmatched): Return a newly created list.
14893 (font_list_entities): Fix previous change. Call font_add_log.
14894 (font_matching_entity, font_open_entity, font_close_entity):
14896 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14897 (Finternal_set_font_style_table): Delete.
14898 (BUILD_STYLE_TABLE): New macro.
14899 (build_style_table): New function.
14900 (Vfont_log, font_log_env_checked): New variables.
14901 (font_add_log): New function.
14902 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14903 Declare Lisp variables "font-weight-table", "font-slant-table",
14904 "font-width-table", and "font-log". Initialize font_style_table.
14906 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14908 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14910 2008-05-21 Seiji Zenitani <zenitani@mac.com>
14911 Ryo Yoshitake <ryo@shiftmode.net>
14913 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14914 (Vframe_alpha_lower_limit): New variable.
14915 (x_set_alpha): New function.
14917 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14919 * xfns.c (x-create-frame, Qalpha):
14920 Initialize the frame parameter `alpha'.
14921 * xterm.c (OPAQUE, OPACITY): New.
14922 (x_set_frame_alpha): New function.
14923 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14925 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14926 * w32fns.c (w32_frame_parm_handlers): Likewise.
14928 2008-05-20 Jason Rumney <jasonr@gnu.org>
14930 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14931 truetype fonts to opentype list.
14933 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
14935 * fontset.c (Ffontset_info): Doc fix.
14936 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14937 <ignore-relative-composition>: Fix typos in docstrings.
14939 * font.c (syms-of-font) <font-encoding-alist>:
14940 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14941 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14942 (Ffont_otf_alternates): Doc fixes.
14944 2008-05-20 Kenichi Handa <handa@m17n.org>
14946 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14947 font.h through out the file.
14948 (FONT_DRIVERS): Rename from FONTOBJ.
14949 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14950 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14952 * emacs.c (main): Call syms_of_font unconditionally.
14954 * font.h (find_font_encoding): Extern it.
14956 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14958 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14959 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14960 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14961 only when HAVE_WINDOW_SYSTEM is defined.
14962 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14963 when HAVE_WINDOW_SYSTEM is defined.
14965 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14966 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14968 * xfaces.c: Include font.h unconditionally.
14969 (merge_face_ref, merge_face_vectors)
14970 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14972 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14974 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14976 * eval.c (lisp_indirect_variable): New fun.
14977 (Fuser_variable_p): Use it.
14979 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14981 * lisp.h (indirect_variable):
14982 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14983 Use Lisp_Symbol pointers rather than Lisp_Object.
14985 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14986 To this end, change calling-convention.
14988 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14989 if some non-hidden buffers are selected by string&pred.
14991 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
14993 * process.c (wait_reading_process_output): Always check status
14994 when in batch mode.
14996 2008-05-19 Kenichi Handa <handa@m17n.org>
14998 * font.c (font_list_entities): Fix handling of cache.
14999 (font_matching_entity): Likewise.
15001 * ftfont.c (cs_iso8859_1): Delete.
15002 (ft_face_cache): New variable.
15003 (struct ftfont_info): New member fc_charset_idx.
15004 (ftfont_build_basic_charsets): Delete.
15005 (fc_charset_table): New variable.
15006 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15007 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15009 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15010 (ftfont_spec_pattern): New argument fc_charset_idx.
15011 Check registry more rigidly. Change callers.
15012 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15013 change of :font-entity property of the font.
15015 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15016 property of the font.
15018 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15020 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15021 (Funencodable_char_position, Fcheck_coding_systems_region)
15022 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15023 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15024 (Ffind_operation_coding_system, Fset_coding_system_priority)
15025 (Fcoding_system_eol_type): Doc fixes.
15027 2008-05-17 Glenn Morris <rgm@gnu.org>
15029 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15031 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15033 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15036 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15037 HAVE_WINDOW_SYSTEM is not defined.
15039 * xfaces.c (merge_face_ref, merge_face_vectors)
15040 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15041 HAVE_WINDOW_SYSTEM is defined.
15042 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15044 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15046 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15048 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15050 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15052 2008-05-15 Kenichi Handa <handa@m17n.org>
15054 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15057 2008-05-15 Glenn Morris <rgm@gnu.org>
15059 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15061 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
15063 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15064 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15066 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15068 2008-05-15 Kenichi Handa <handa@m17n.org>
15070 * ftfont.c (ftfont_list): Downcase family name to check generic
15073 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15074 font-spec for QCfont value.
15076 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15077 buffer. Check the return value of it.
15079 2008-05-14 Jason Rumney <jasonr@gnu.org>
15081 * w32term.c (w32_get_glyph_overhangs): Remove.
15082 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15084 2008-05-14 Kenichi Handa <handa@m17n.org>
15086 * font.c (font_prop_validate): Make nil a valid value.
15087 (font_clear_cache): Check if the cached vector of entities is nil
15090 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15092 * emacs.c (main_thread): Conditionalize on
15093 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15094 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15096 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15097 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15098 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15100 2008-05-14 Kenichi Handa <handa@m17n.org>
15102 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15103 has no corresponding coding system.
15105 2008-05-14 Jason Rumney <jasonr@gnu.org>
15107 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15109 * w32font.h (w32font_open_internal): Update declaration.
15111 * w32font.c (w32font_open_internal): Change last argument from
15112 w32font_info struct to font object. Fill in font object from
15113 font_entity. Get Outline metrics if possible. Use them to
15114 calculate underline position and thickness. Use xlfd name as name
15115 property. Don't set codepage.
15116 (w32font_open): Pass font_object to w32font_open_internal. Don't
15117 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15118 (w32font_draw): Use s->font.
15119 (clear_cached_metrics): Don't clear non-existent blocks.
15121 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15122 font was not found.
15123 (x_draw_glyph_string): Use underline position and thickness from font.
15125 * w32uniscribe.c (uniscribe_open): Pass font_object to
15126 w32font_open_internal.
15128 2008-05-14 Kenichi Handa <handa@m17n.org>
15130 These changes are to delete all legacy font-handling codes, and
15131 make Emacs use only font-backends.
15133 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15134 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15136 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15138 * charset.h (Vcharset_non_preferred_head)
15139 (Vcurrent_iso639_language): Extern them.
15141 * charset.c (Vcharset_non_preferred_head): New variable.
15142 (Vcurrent_iso639_language): New variable.
15143 (syms_of_charset): Declare it as a Lisp variable.
15144 (char_charset): Don't check non preferred charsets. As a last
15145 resort, return charset_unicode.
15146 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15148 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15149 conditionals. Don't check enable_font_backend. Delete all codes
15150 used only when USE_FONT_BACKEND is not defined.
15152 * dispextern.h (struct glyph_string): Change type of `font' to
15154 (struct glyph_string): New member underline_position and
15155 underline_thickness.
15156 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15157 (struct face): Change type of `font' to `struct font *'. Remove
15158 members `font_name', `font_info_id'.
15159 (per_char_metric, encode_char): Delete externs.
15160 (calc_pixel_width_or_height): Adjust the prototype.
15162 * emacs.c (enable_font_backend): Delete extern.
15163 (main): Don't set enable_font_backend. Don't check the command
15164 line argument "-disable-font-backend".
15166 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15167 (enum font_property_index): New members FONT_DPI_INDEX,
15168 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15169 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15170 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15171 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15172 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15173 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15174 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15175 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15176 (struct font_spec, struct font_entity): New structs.
15177 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15178 (struct font): Many members from old "struct font_info" moved to
15179 here. Members font and entity deleted.
15180 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15181 the new font-related objects.
15182 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15183 (CHECK_FONT_GET_OBJECT): Likewise.
15184 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15185 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15186 (struct font_driver): New members case_sensitive anc check. Type
15187 of the member list and open changed.
15188 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15189 (font_symbolic_width, font_find_object, font_get_spec)
15190 (font_set_lface_from_name): Delete extern.
15191 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15193 * font.c: Include <strings.h>.
15194 (enable_font_backend): Delete it.
15195 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15196 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15197 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15198 (null_string): Delete it.
15199 (null_vector): Make it static.
15200 (font_family_alist): Delete it.
15201 (Qnormal): Extern it.
15202 (QCextra, QClanguage): Delete it.
15203 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15204 (font_make_spec, font_make_entity, font_make_object)
15205 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15206 the string. Callers changed.
15207 (font_pixel_size): Adjusted for the format change of font-related
15209 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15210 (font_style_to_value, font_style_symbolic): New function.
15211 (build_font_family_alist): Delete it.
15212 (font_registry_charsets): Use Fassoc_string instead of
15214 (font_prop_validate_symbol): Don't return null_string.
15215 (font_prop_validate_style): Adjusted for the change of
15216 style-related values in a font vector.
15217 (font_property_table): Delete entries for QClanguage and
15218 QCantialias, add entries for QCavgwidth.
15219 (get_font_prop_index): Delete the 2nd argument FROM.
15220 (font_prop_validate): Arguments changed.
15221 (font_put_extra): Adjusted for the change of font-related objects.
15222 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15223 (font_parse_fcname, font_unparse_fcname)
15224 (font_prepare_composition): Likewise.
15225 (font_parse_family_registry): Renamed from font_merge_old_spec.
15226 (otf_open): Delete the 1st arg entity.
15227 (font_otf_capability): Adjusted for the above change.
15228 (font_score): New arg alternate_families. Adjusted for the change
15229 of font-related objects.
15230 (font_sort_entites): New arg best_only.
15231 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15233 (font_match_p): Check alternate families.
15234 (font_find_object): Delete it.
15235 (font_check_object): New function.
15236 (font_clear_cache): Adjusted for the change of font-related objects.
15237 (font_delete_unmatched): New arg.
15238 (font_list_entities): Call font_driver->list with a spec that
15239 doesn't specify style-related properties.
15240 (font_matching_entity): Arguments changed. Caller changed.
15241 (font_open_entity): Adjusted for the change of font-related objects.
15242 (font_close_object, font_has_char, font_encode_char)
15243 (font_get_name, font_get_spec): Likewise.
15244 (font_spec_from_name, font_clear_prop, font_update_lface):
15246 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15247 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15248 (font_at): Adjusted for the change of font-related objects.
15249 (font_range): New function.
15250 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15251 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15252 (Fcopy_font_spec, Fmerge_font_spec): New function.
15253 (Ffont_family_list): Renamed from list-families.
15254 (Finternal_set_font_style_table): Arguments changed.
15255 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15256 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15257 change of font-related objects.
15258 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15260 * fontset.h (struct font_info): Delete it. Most members go to
15262 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15263 (enum FONT_SPEC_INDEX): Delete it.
15264 (font_info, list_fonts_func, load_font_func, query_font_func)
15265 (set_frame_fontset_func, find_ccl_program_func)
15266 (get_font_repertory_func, new_fontset_from_font_name): Delete
15268 (fontset_from_font_name): Extern it.
15269 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15270 (FONT_INFO_FROM_FACE): Deleted.
15271 (face_for_font): Adjust prototype.
15273 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15274 conditionals. Don't check enable_font_backend. Delete all codes
15275 used only when USE_FONT_BACKEND is not defined.
15276 (get_font_info_func, list_font_func, load_font_func)
15277 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15278 (get_font_repertory_func): Delete them.
15279 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15280 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15281 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15282 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15283 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15284 (fontset_compare_rfontdef): New function.
15285 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15286 rfont-defs by qsort. Adjusted for the change of font-group vector.
15287 (load_font_get_repertory): Deleted.
15288 (fontset_find_font): Use new macros to ref/set elements of
15289 font-def and rfont-def.
15290 (fontset_font): Fix the timing of remembering that no font for C.
15291 (free_face_fontset): Do nothing if the face has no fontset.
15292 (face_suitable_for_char_p): Use new macros to ref/set elements of
15294 (face_for_char): Likewise. Call face_for_char with font_object.
15295 (fs_load_font): Delete. Delete #pragma surrounding it.
15296 (fs_query_fontset): Use strcasecmp instead of strcmp.
15297 (generate_ascii_font_name): Adjusted for the format change of
15299 (Fset_fontset_font): Likewise. Use new macros to set elements of
15301 (Fnew_fontset): Use font_unparse_xlfd to generate
15302 FONTSET_ASCII (fontset).
15303 (new_fontset_from_font_name): Deleted.
15304 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15305 a fontset is already created for the font. FIx updating of
15306 Vfontset_alias_alist.
15307 (fontset_ascii_font): Deleted.
15308 (Ffont_info): Adjusted for the format change of font-spec.
15309 (Finternal_char_font): Likewise.
15310 (Ffontset_info): Likewise.
15311 (syms_of_fontset): Don't check load_font_func.
15313 * fns.c (internal_equal): Handle PREV_FONT.
15315 * frame.h: Delete USE_FONT_BACKEND conditional.
15317 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15318 conditionals. Don't check enable_font_backend. Delete all codes
15319 used only when USE_FONT_BACKEND is not defined.
15320 (x_set_font): Call x_new_font, not x_new_fontset2.
15321 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15322 already set for the frame.
15324 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15325 a font-entity by font_make_entity. Use font_intern_prop instead
15326 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15327 font property. If a font is scalable, set avgwidth property to 0.
15328 Set font-entity property by font_put_extra.
15329 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15330 (ffont_driver): Adjusted for the change of struct font_driver.
15331 (ftfont_spec_pattern): New function.
15332 (ftfont_list): Return a list, not vector.
15333 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15334 (ftfont_list_family): Don't downcase names.
15335 (ftfont_free_entity): Deleted.
15336 (ftfont_open): Return a font-object. Adjusted for the change of
15337 struct font. Get underline_thickness and underline_position from
15338 font property. Don't update dpyinfo->smallest_font_height and
15339 dpyinfo->smallest_char_width.
15340 (ftfont_close): Don't free `struct font'.
15341 (ftfont_has_char): Adjusted for the format change of font-entity.
15342 (ftfont_encode_char, ftfont_text_extents): Likewise.
15344 * ftxfont.c (ftxfont_list): Return a list, not vector.
15345 (ftxfont_open): Return a font-object. Adjusted for the change of
15346 struct font. Get underline_thickness and underline_position from
15347 font property. Don't update dpyinfo->smallest_font_height and
15348 dpyinfo->smallest_char_width.
15349 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15350 (ftxfont_draw): Adjusted for the change of struct font.
15352 * image.c (image_ascent): Don't include "charset.h". Include
15353 "character.h" and "font.h".
15355 * lisp.h (enum pvec_type): New member PREV_FONT.
15356 (Fassoc_string): EXFUN it.
15358 * print.c: Include font.h.
15359 (print_object): Handle font-related objects.
15361 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15362 conditionals. Don't check enable_font_backend. Delete all codes
15363 used only when USE_FONT_BACKEND is not defined.
15364 (handle_auto_composed_prop): Do nothing if it->f is not on a
15365 window system. Check how many following characters can be
15366 displayed by the same font.
15367 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15369 (get_char_face_and_encoding): Assign the whole encoding task to
15370 the `encode-char' method of a font driver.
15371 (fill_composite_glyph_string): Adjusted for the change of `struct
15372 face' and `struct glyph_string'.
15373 (fill_glyph_string): Likewise.
15374 (get_per_char_metric): Arguments changed.
15375 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15376 and `struct glyph_string'.
15377 (produce_stretch_glyph, calc_line_height_property)
15378 (x_produce_glyphs): Likewise.
15380 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15381 conditionals. Don't check enable_font_backend. Delete all codes
15382 used only when USE_FONT_BACKEND is not defined. Use
15383 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15384 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15386 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15388 (struct font_name): Deleted.
15389 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15390 (compare_fonts_by_sort_order): New function.
15391 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15392 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15394 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15395 compare_fonts_by_sort_order.
15396 (Fx_font_family_list): Call Ffont_family_list.
15397 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15398 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15399 (face_symbolic_slant, face_symbolic_swidth)
15400 (split_font_name_into_vector, build_font_name_from_vector)
15401 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15402 (font_rescale_ratio, split_font_name, build_font_name)
15403 (free_font_names, sort_fonts, x_face_list_fonts)
15404 (face_font_available_p, sorted_font_list, cmp_font_names)
15405 (font_list_1, concat_font_list, font_list, remove_duplicates):
15407 (Fx_list_fonts): Use Ffont_list.
15408 (LFACE_AVGWIDTH): Deleted.
15409 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15411 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15412 (set_lface_from_font_name): Delete it.
15413 (set_lface_from_font): Renamed from
15414 set_lface_from_font_and_fontset. Caller changed. Don't set
15415 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15417 (merge_face_vectors): Copy font-spec if necessary.
15418 Clear properties of the font-spec if necessary.
15419 (merge_face_ref): Clear properties of the font-spec if necessary.
15420 (Finternal_set_lisp_face_attribute): Likewise.
15421 (set_font_frame_param): Use font_load_for_lface to load a
15422 font-object, and call Fmodify_frame_parameters with it.
15423 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15424 font name by Ffont_xlfd_name.
15425 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15426 QCslant, and QCwidth.
15427 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15428 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15429 Compare fonts by EQ.
15430 (lookup_non_ascii_face): Deleted.
15431 (face_for_font): The 2nd argument changed.
15432 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15433 Check atomic font properties by case insensitive.
15434 (realize_non_ascii_face): Set face->overstrike correctly.
15435 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15436 (dump_realized_face): Get font name from
15437 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15439 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15440 conditionals. Don't check enable_font_backend. Delete all codes
15441 used only when USE_FONT_BACKEND is not defined.
15442 (xic_create_xfontset): Original code deleted and renamed from
15443 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15444 (x_make_gc): Don't set GCFont in GCs.
15445 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15447 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15448 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15449 get_font_repertory_func.
15451 * xfont.c: Include <stdlib.h> and "ccl.h".
15452 (struct xfont_info): New structure.
15453 (xfont_query_font): Deleted.
15454 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15455 moved from xterm.c.
15456 (xfont_driver): Adjusted for the change of struct font_driver.
15457 (compare_font_names): New function.
15458 (xfont_list_pattern): Sort font names case insensitively. Make
15459 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15460 (xfont_list): Return a list, not vector.
15461 (xfont_match): If the font doesn't have QCname property, generate
15462 a name from the other font properties.
15463 (xfont_open): Return a font-object. Adjusted for the change of
15464 struct font. Get underline_thickness and underline_position from
15465 font property. Don't update dpyinfo->smallest_font_height and
15466 dpyinfo->smallest_char_width.
15467 (xfont_close): Don't free struct font.
15468 (xfont_prepare_face): Adjusted for the change of struct font.
15469 (xfont_done_face): Deleted.
15470 (xfont_has_char): Adjusted for the change of struct font.
15471 (xfont_encode_char, xfont_draw): Likewise.
15472 (xfont_check): New function.
15474 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15476 (xftfont_match): Adjusted for the format change of font-entity.
15477 (xftfont_open): Adjusted for the format change of font-entity and
15478 font-object. Adjusted for the change of struct font. Return a
15479 font-object. Don't update dpyinfo->smallest_font_height and
15480 dpyinfo->smallest_char_width.
15481 (xftfont_close): Block input while calling XftFontClose.
15482 (xftfont_prepare_face): Don't block input while calling
15483 xftfont_get_colors. Adjusted for the change of struct font.
15484 (xftfont_shape): Return value of error case fixed.
15486 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15488 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15490 (FONT_WIDTH): Return (f)->max_width.
15491 (struct x_display_info): Delete member `font'.
15492 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15493 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15494 (struct x_output): Change type of `font' to `struct font *'.
15496 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15497 conditionals. Don't check enable_font_backend. Delete all codes
15498 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15499 (x_per_char_metric, x_encode_char): Deleted.
15500 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15501 (x_compute_glyph_string_overhangs): Adjusted for the change of
15503 (x_draw_glyph_string_foreground)
15504 (x_draw_composite_glyph_string_foreground): Likewise.
15505 (x_draw_glyph_string): Likewise. Use font->underline_position and
15506 font->underline_thickness.
15507 (x_new_font): Renamed from x_new_fontset2.
15508 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15509 (x_check_font): Call `check' method of a font driver.
15510 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15511 (x_query_font, x_get_font_repertory): Deleted.
15512 (x_find_ccl_program): Renamed and moved to xfont.c.
15513 (x_redisplay_interface): Adjusted for the change of `struct
15514 redisplay_interface'.
15516 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15517 conditionals. Don't check enable_font_backend. Delete all codes
15518 used only when USE_FONT_BACKEND is not defined. Surround non-used
15519 code by "#ifdef OLD_FONT" and "endif".
15520 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15522 * w32font.h (struct w32font_info): New member.
15523 (FONT_COMPAT): New macro.
15524 (w32font_open_internal): Prototype adjusted.
15526 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15527 OLD_FONT" and "endif".
15529 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15530 conditionals. Don't check enable_font_backend. Delete all codes
15531 used only when USE_FONT_BACKEND is not defined.
15532 (w32font_open): Return a font-object. Make a font-object by
15533 font_make_object. Adjusted for the change of struct w32font_info.
15534 (w32font_close): Don't free struct font. Adjusted for the change
15535 of struct w32font_info.
15536 (w32font_encode_char, w32font_text_extents, w32font_draw):
15537 Adjusted for the change of struct w32font_info.
15538 (w32font_draw): Likewise.
15539 (w32font_list_internal): Return a list, not vector.
15540 (w32font_open_internal): Change the 4th arg to font-object.
15541 Adjusted for the change of struct w32font_info and font-object format.
15542 (add_font_name_to_list): Don't downcase names.
15543 (w32_enumfont_pattern_entity): Make a font-entity by
15544 font_make_entity. Adjusted for the format change of font-entity.
15545 Use FONT_SET_STYLE to set a style-related font property. If a
15546 font is scalable, set avgwidth property to 0. Set font-entity
15547 property by font_put_extra.
15548 (font_matches_spec): Adjusted for the format change of font-entity.
15549 (w32_weight_table, w32_decode_weight): New variables.
15550 (w32_encode_weight): New function.
15551 (fill_in_logfont): Adjusted for the format change of font-spec.
15552 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15554 (w32font_driver): Adjusted for the change of struct font_driver.
15556 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15557 conditionals. Don't check enable_font_backend. Surround non-used
15558 code by "#ifdef OLD_FONT" and "endif".
15559 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15560 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15562 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15563 conditionals. Don't check enable_font_backend. Delete all codes
15564 used only when USE_FONT_BACKEND is not defined. Surround non-used
15565 code by "#ifdef OLD_FONT" and "endif".
15567 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15568 (uniscribe_open): Return value changed to font-object.
15569 Adjusted for the format change of font-object.
15570 (uniscribe_otf_capability): Adjusted for the change of struct font.
15571 (add_opentype_font_name_to_list): Don't downcase names.
15572 (uniscribe_font_driver): Adjusted for the change of struct
15575 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15577 * dispnew.c (update_frame_1): Check if tty output is still valid
15578 before flushing it.
15580 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15582 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15585 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15587 * dired.c (file_name_completion): Tweak the code so as to always do it
15588 in a single pass. Tighten the scope of some variables.
15590 * dired.c (Qdefault_directory): New var.
15591 (file_name_completion): Use it instead of Fexpand_file_name.
15592 (syms_of_dired): Initialize it.
15594 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15596 * fileio.c (double_dollars): Remove dead code.
15598 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15600 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15601 Mention w32-get-true-file-attributes in doc string.
15603 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15605 2008-05-09 Glenn Morris <rgm@gnu.org>
15607 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15610 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15612 Support for reporting owner and group of each file on MS-Windows:
15613 * dired.c (stat_uname, stat_gname): New functions, with special
15614 implementation for w32.
15615 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15617 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15618 (dflt_group_name): New static variable.
15619 (dflt_group): Rename from the_group.
15620 (init_user_info): Init dflt_group fields. Get user's group name
15621 from LookupAccountSid.
15622 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15623 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15624 New initialization states.
15625 (globals_of_w32): Initialize them to zero. Initialize the default
15626 group name to "None".
15627 (GetFileSecurity_Name): New global var, the name of the function
15628 to call for GetFileSecurity.
15629 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15630 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15631 (get_file_security, get_security_descriptor_owner)
15632 (get_security_descriptor_group, is_valid_sid)
15633 (get_file_security_desc, get_rid, get_name_and_id)
15634 (get_file_owner_and_group): New functions.
15635 (stat): Use get_file_security_desc and get_file_owner_and_group to
15636 report the owner and primary group of each file. Don't ignore the
15637 high 32 bits of file's size, now that st_size is 64-bit wide.
15638 Fix test when to get true file attributes.
15639 (init_user_info): Use get_rid instead of equivalent inline code.
15640 (fstat): Don't ignore the high 32 bits of file's size.
15642 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15644 * image.c (png_load): Use correct bit-depth for setting background
15647 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15649 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15652 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15654 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15656 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15658 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15659 because the original parameters are in pure storage now.
15660 (mac_window): Remove unused params. Update callers.
15662 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15664 * lread.c (substitute_object_recurse): Use lower-level primitives.
15665 Don't signal errors when traversing sub-char-tables.
15666 Don't loop over all the possible characters when traversing char-tables.
15668 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15669 just like we do in print.c.
15671 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15673 * minibuf.c (Ftry_completion): Remove code left over from when we used
15674 scmp instead of Fcompare_strings.
15676 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15678 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15680 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15682 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15683 Create bitmap context in native byte order.
15685 * macterm.c (XDrawLine)
15686 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15687 context in native byte order.
15689 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15691 * config.in: Regenerate.
15693 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15694 New definitions for Image I/O support.
15695 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15696 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15697 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15698 (mac_data_provider_release_data, image_load_image_io)
15699 [USE_MAC_IMAGE_IO]: New functions.
15700 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15701 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15702 (init_image_func_pointer) [MAC_OSX]: Remove function.
15703 (image_load_quartz2d) [MAC_OSX]: Check availability of
15704 CGImageCreateWithPNGDataProvider at compile time.
15705 Use lowercase `false' for boolean constant.
15706 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15707 Use image_load_image_io.
15708 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15709 Don't check MyCGImageCreateWithPNGDataProvider.
15710 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15711 Don't call init_image_func_pointer.
15713 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15715 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15716 Make variable non-static.
15717 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15718 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15720 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15721 (RED_FROM_ULONG): Mask off higher bits.
15722 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15724 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15725 Include AvailabilityMacros.h.
15726 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15727 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15729 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15731 * chartab.c (Fset_char_table_range): If range is t, really set all
15732 chars to that value.
15734 2008-05-03 Eli Zaretskii <eliz@gnu.org>
15736 * dired.c (Ffile_attributes): Don't allow the device number become
15739 2008-05-02 Daiki Ueno <ueno@unixuser.org>
15741 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15743 2008-05-02 Juri Linkov <juri@jurta.org>
15745 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15746 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15747 DEFAULT argument as a list of default values in docstrings.
15749 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
15751 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15753 2008-05-01 Martin Rudalics <rudalics@gmx.at>
15755 * dispnew.c (change_frame_size_1): Preserve small windows when
15756 shrinking frames by calling set_window_height|width with third
15759 * window.h (struct window): Replace field too_small_ok by field
15760 resize_proportionally.
15762 * window.c (make_window): Initialize resize_proportionally.
15763 (enlarge_window): Temporarily set resize_proportionally to make
15764 sure that shrink_windows does scale the window proportionally.
15765 (shrink_windows): When window has resize_proportionally set try
15766 to shrink it proportionally by stealing from other windows.
15767 (struct saved_window, Fset_window_configuration)
15768 (compare_window_configurations): Handle resize_proportionally.
15769 (WINDOW_TOTAL_SIZE): New macro.
15770 (window_min_size, shrink_windows, size_window): Use it.
15771 (check_min_window_sizes): Remove. Invalid values of
15772 window-min-height|width are handled by window_min_size_2 now.
15773 (size_window, Fsplit_window, enlarge_window)
15774 (adjust_window_trailing_edge, grow_mini_window): Don't call
15775 check_min_window_sizes.
15776 (window_min_size_2, window_min_size_1, window_min_size):
15777 New argument safe_p for retrieving "safe" minimum sizes.
15778 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15779 (adjust_window_trailing_edge, grow_mini_window):
15780 Adjust arguments of window_min_size... functions.
15781 (shrink_windows): Argument min_size removed. New argument
15782 safe_p allows shrinking windows to their safe minimum sizes.
15783 Calculate minimum size and decide whether a window shall be
15784 deleted for each window individually.
15785 (size_window): When nodelete_p equals 2, tell shrink_windows to
15786 delete windows only if their new minimum size is no more safe.
15787 (shrink_window_lowest_first): Call window_min_size_1 to make
15788 sure to preserve modeline of bottom-most window when resizing
15790 (Fset_window_configuration, Fcurrent_window_configuration)
15791 (compare_window_configurations): Do not handle
15792 window-min-height|width any more.
15793 (syms_of_window): Clarify window-min-height|width doc-strings.
15795 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15797 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15798 some more. Copy some of the code from Ftry_completions.
15799 Remove special case code that dates back to initial revision when the
15800 slash was only added when necessary and that can't trigger nowadays.
15802 2008-04-27 Kenichi Handa <handa@m17n.org>
15804 * font.c (font_prop_validate): Signal `error' instead of `font'.
15806 2008-04-29 Jason Rumney <jasonr@gnu.org>
15808 * w32fns.c (Fw32_battery_status): New defun.
15809 (syms_of_w32fns): Defsubr it.
15811 2008-04-28 Andreas Schwab <schwab@suse.de>
15813 * dired.c (file_name_completion): Fix another mixing of encoded
15816 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
15818 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15820 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
15822 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15824 2008-04-27 Andreas Schwab <schwab@suse.de>
15826 * dired.c (file_name_completion): Fix inappropriate mixing of
15827 encoded and decoded names.
15829 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15831 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15833 2008-04-26 Eli Zaretskii <eliz@gnu.org>
15835 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15836 2008-03-31, it's not needed anymore with `struct stat' definition
15837 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15838 for the same reasons.
15840 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15842 * m/sparc.h: Additional redefinitions for GNU/Linux.
15844 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15846 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15847 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15848 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15849 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15850 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15851 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15852 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15855 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15856 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15857 (mac_ax_number_of_characters): Add externs.
15858 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15859 [USE_MAC_TSM]: Likewise.
15860 (mac_handle_text_input_event) [MAC_OSX]:
15861 Handle kEventTextInputOffsetToPos for no active input area case.
15862 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15863 (mac_handle_document_access_event)
15864 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15865 (install_application_handler) [MAC_OSX]: Register handlers for
15866 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15867 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15868 Register mac_handle_document_access_event.
15870 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15871 Make functions non-static.
15873 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15875 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15876 (read_file_name_completion_ignore_case, insert_default_directory)
15877 (Qdefault_directory): Move to minibuffer.el.
15878 (Fread_file_name): Call the new `read-file-name' instead.
15880 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15882 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15883 Make function non-static.
15884 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15886 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15887 Move to mactoolbox.c.
15888 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15890 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15891 (mac_rect_make): New macro.
15893 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15895 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15896 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15897 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15898 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15900 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15901 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15902 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15903 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15904 instead of WindowRef in argument type.
15905 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15906 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15907 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15908 instead of DISPLAY. All uses changed.
15909 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15910 (x_calc_absolute_position): Simplify so as not to use
15911 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15913 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15914 instead of WindowRef in argument type.
15915 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15916 [TARGET_API_MAC_CARBON]: Remove externs.
15917 (create_apple_event, mac_event_parameters_to_lisp)
15918 [TARGET_API_MAC_CARBON]: Add externs.
15920 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15921 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15922 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15924 (x_activate_menubar): Remove extern for saved_menu_event_location.
15925 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15928 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15930 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15931 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15933 2008-04-23 Jason Rumney <jasonr@gnu.org>
15935 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15936 attributes only for local files.
15938 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15941 2008-04-22 Juri Linkov <juri@jurta.org>
15943 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15944 read-buffer-to-switch instead of using the letter "B".
15946 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15948 * fileio.c (Qdefault_directory): New variable.
15949 (Fread_file_name): Use it to pass `dir' to the completion functions.
15951 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
15953 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15955 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15957 * keyboard.c (Vpre_help_message): Remove.
15958 (show_help_echo): Remove default C code.
15960 * dired.c (directory_files_internal, file_name_completion):
15961 Only call ENCODE_FILE if the string is indeed decoded.
15963 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15965 * Makefile.in (TOOLKIT_DEFINES): Remove.
15966 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15968 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15970 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15971 (mactoolbox.o): New target.
15973 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15974 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15976 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15977 Use mac_set_frame_window_background instead of XSetWindowBackground.
15978 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15979 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15980 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15981 instead of SetWindowTitleWithCFString.
15982 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15983 Move function to mactoolbox.c.
15984 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15985 Use mac_set_window_modified instead of SetWindowModified.
15986 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15987 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15988 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15989 FrontNonFloatingWindow. Use mac_activate_window instead of
15990 ActivateWindow. Use mac_active_non_floating_window instead of
15991 ActiveNonFloatingWindow.
15992 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15993 Use mac_show_hourglass and mac_hide_hourglass.
15994 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15995 instead of GetGlobalMouse.
15996 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15997 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15998 Use mac_bring_window_to_front instead of BringToFront.
15999 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16001 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16002 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16003 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16006 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16007 (XtPointer): Move typedef from macmenu.c.
16008 (enum button_type): Move enum from macmenu.c.
16009 (widget_value): Move typedef from macmenu.c.
16010 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16011 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16012 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16013 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16014 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16015 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16016 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16017 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16018 (Selection): Move typedef from macselect.c.
16019 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16021 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16022 (mac_is_window_collapsed, mac_bring_window_to_front)
16023 (mac_send_window_behind, mac_hide_window, mac_show_window)
16024 (mac_collapse_window, mac_front_non_floating_window)
16025 (mac_active_non_floating_window, mac_activate_window)
16026 (mac_move_window_structure, mac_move_window, mac_size_window)
16027 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16029 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16030 (enum mac_menu_kind): Move enum to mactoolbox.c.
16031 (min_menu_id): Move variable to mactoolbox.c.
16032 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16033 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16034 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16035 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16036 [TARGET_API_MAC_CARBON]: Likewise.
16037 (XtPointer): Move typedef to macgui.h.
16038 (enum button_type): Move enum to macgui.h.
16039 (widget_value): Move typedef to macgui.h.
16040 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16041 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16042 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16043 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16044 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16045 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16046 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16047 (popup_activated_flag): Make variable non-static.
16048 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16049 (add_menu_item, fill_menu, dispose_menus):
16050 Move functions to mactoolbox.c.
16051 (restore_show_help_function, menu_target_item_handler)
16052 (install_menu_target_item_handler, mac_handle_dialog_event)
16053 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16054 [TARGET_API_MAC_CARBON]: Likewise.
16055 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16056 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16057 (find_and_call_menu_selection, name_is_separator): Make function
16059 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16061 (set_frame_menubar): Don't call install_menu_quit_handler.
16062 (menu_item_selection): New variable.
16063 (mac_menu_show): Use create_and_show_popup_menu.
16064 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16065 selection but set variable menu_item_selection. All uses changed.
16066 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16067 Call install_menu_quit_handler. Move to mactoolbox.c.
16069 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16070 (Selection): Move typedef to macgui.h.
16071 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16072 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16073 Make variables non-static.
16074 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16075 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16076 Make functions non-static.
16077 (Vmac_service_selection) [MAC_OSX]: Likewise.
16078 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16079 (mac_valid_selection_target_p, mac_clear_selection)
16080 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16081 (mac_put_selection_value, mac_selection_has_target_p)
16082 (mac_get_selection_value, mac_get_selection_target_list)
16083 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16084 Move functions to mactoolbox.c.
16085 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16087 (copy_scrap_flavor_data, mac_handle_service_event)
16088 (install_service_handler) [MAC_OSX]: Likewise.
16089 (syms_of_macselect) <Vmac_dnd_known_types>:
16090 Use mac_dnd_default_known_types.
16092 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16093 Move to mactoolbox.c.
16094 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16095 (Fx_selection_owner_p): Add EXFUN.
16096 (install_window_handler, remove_window_handler, XSetWindowBackground):
16098 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16099 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16100 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16101 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16102 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16103 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16104 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16105 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16106 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16107 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16108 (mac_valid_selection_target_p, mac_clear_selection)
16109 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16110 (mac_put_selection_value, mac_selection_has_target_p)
16111 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16112 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16113 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16114 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16115 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16116 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16117 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16118 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16119 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16121 * mactoolbox.c: New file.
16123 2008-04-18 Jason Rumney <jasonr@gnu.org>
16125 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16127 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16129 * character.c (Fmultibyte_char_to_unibyte):
16130 Return latin1 chars unchanged.
16132 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16133 relocated if it points to `name'.
16135 2008-04-17 Kenichi Handa <handa@m17n.org>
16137 * data.c (Faset): Allow setting a multibyte character in an
16138 ASCII-only unibyte string.
16140 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16142 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16144 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16147 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
16149 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16150 (Fchar_direction): Add usage in the docstring.
16152 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
16154 * keyboard.c (read_key_sequence): Remove always-true checks.
16156 2008-04-14 Jason Rumney <jasonr@gnu.org>
16158 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16159 compatibility struct, for better underline positioning.
16161 2008-04-13 David Hansen <david.hansen@gmx.net>
16163 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16166 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16168 * m/hp800.h (XUINT, XSET): Remove.
16170 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
16172 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16175 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16177 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16178 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16180 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16182 * keymap.h (map_keymap_canonical): Declare.
16183 * xmenu.c (single_keymap_panes): Use it.
16185 2008-04-11 Glenn Morris <rgm@gnu.org>
16187 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16188 set the target's value to that of the alias.
16190 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16192 * term.c (set_tty_color_mode): Left over typo.
16194 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16196 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16197 only after check for file name handler functions. Signal, when
16198 native functionality is not supported.
16199 (syms_of_fileio): Declare it unconditionally.
16201 2008-04-10 Jason Rumney <jasonr@gnu.org>
16203 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16204 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16206 * w32.c (logon_network_drive): Also logon to remote drives that
16207 are mapped to drive letters.
16209 2008-04-10 Glenn Morris <rgm@gnu.org>
16211 * xdisp.c (truncate-partial-width-windows): Doc fix.
16213 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16215 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16216 Move functions to minibuffer.el.
16217 (syms_of_fileio): Don't declare them.
16219 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16221 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16222 (syms_of_minibuf): Remove its initialization.
16224 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16226 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16228 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16230 2008-04-09 Jason Rumney <jasonr@gnu.org>
16232 * makefile.w32-in (distclean): Delete makefile too.
16233 (maintainer-clean): New target.
16235 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16237 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16238 for new font backend and composite cases.
16240 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16242 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16243 Most of the code moved to run_timers.
16244 (do_pending_atimers): Call run_timers.
16245 (run_timers): New function.
16247 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16250 * process.c (wait_reading_process_output): The same as above.
16252 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16254 * minibuf.c (last_exact_completion): Remove variable.
16255 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16256 (complete_and_exit_1, complete_and_exit_2)
16257 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16258 (Fdisplay_completion_list, display_completion_list_1)
16259 (Fminibuffer_completion_help, Fself_insert_and_exit)
16260 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16262 (syms_of_minibuf): Remove corresponding initializations.
16264 * keyboard.c (Qdeactivate_mark): New var.
16265 (command_loop_1): Use it to call `deactivate-mark'.
16266 (syms_of_keyboard): Initialize it.
16268 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16270 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16271 Don't call set_tty_color_mode.
16272 (store_frame_param): Reset previous_frame rather than call
16273 set_tty_color_mode.
16274 * term.c (set_tty_color_mode): Rewrite.
16275 * dispextern.h (set_tty_color_mode): New type.
16276 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16278 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16280 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16281 for generic chars, which do not exist any more in emacs-unicode.
16283 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16285 * coding.c (detect_coding_emacs_mule)
16286 (Ffind_operation_coding_system): Fix typo.
16288 2008-04-08 Jason Rumney <jasonr@gnu.org>
16290 * w32uniscribe.c (SNAME): Extract only symbol name.
16292 * w32font.h (struct w32_metric_cache): New struct.
16293 (w32font_info): Use it.
16294 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16295 (CACHE_BLOCKSIZE): New constants.
16297 * w32font.c (Qja, Qko, Qzh): New symbols.
16298 (syms_of_w32font): Initialise them.
16299 (font_matches_spec): Use them to filter by language.
16300 (recompute_cached_metrics): Remove function.
16301 (compute_metrics, clear_cached_metrics): New functions.
16302 (w32font_encode_char): Use them to manage metric cache.
16303 (w32font_text_extents): Cache metrics for all glyphs on demand.
16304 Delay converting glyph indices to WORD until needed.
16305 (w32font_open_internal): Initialize metric cache to empty.
16306 (registry_to_w32_charset): Charset should always be a symbol.
16307 (fill_in_logfont, list_all_matching_fonts): Family should
16308 always be a symbol.
16310 2008-04-06 Jason Rumney <jasonr@gnu.org>
16312 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16313 Give up if glyph indices not supported. Use uniscribe obtained
16314 ABC widths for individual metrics. Map glyph clusters back to
16315 characters using fClusterStart flag. Return number of glyphs
16316 produced, not chars processed.
16317 (uniscribe_shape): Map char at FROM to current glyph.
16319 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16321 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16322 Use SetMenuItemHierarchicalMenu.
16324 2008-04-05 Jason Rumney <jasonr@gnu.org>
16326 * image.c (pbm_load): Allow color values up to 65535.
16327 Throw an error if max_color_idx is outside the supported range.
16328 Report an error when image size is invalid.
16329 Read two bytes at a time when raw images have max_color_idx above 255.
16331 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16333 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16334 append "CCL: Quitted" when the CCL program is quitted.
16335 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16337 * ccl.h (struct ccl_program): New member quit_silently.
16339 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16341 * search.c (compile_pattern_1): Treat non-nil and non-string of
16342 search-spaces-regexp as nil.
16344 * minibuf.c (Fassoc_string): Tweak docstring.
16346 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16348 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16349 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16350 2008-03-14 to force inode be positive.
16352 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16353 _S_* ones, since we now use our own sys/stat.h.
16354 (stat, fstat): Don't mangle the inode number.
16355 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16357 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16359 * frame.h (struct frame): Give one more bit to `visible' since we use
16360 values larger than 1 to indicate obscured frames on ttys.
16362 * keymap.c (Qkeymap_canonicalize): New var.
16363 (Fmap_keymap_internal): New fun.
16364 (describe_map): Use keymap-canonicalize.
16366 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16367 (Fundo_boundary): Set them.
16368 (syms_of_undo): Initialize them.
16369 (record_point): Use them instead of last_point_position*.
16370 (last_undo_buffer): Change type.
16372 2008-04-04 Jason Rumney <jasonr@gnu.org>
16374 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16375 (recompute_cached_metrics): Don't set ascent and descent per char.
16377 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16378 (uniscribe_check_otf): Add GC protection before consing.
16379 Rearrange loop for counting features.
16381 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16383 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16384 buffer with byte-size of source buffer.
16386 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16388 * callint.c (Fcall_interactively): Handle temporary region even
16389 when shift-select-mode is off.
16391 2008-04-03 Jason Rumney <jasonr@gnu.org>
16393 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16395 2008-04-03 Kenichi Handa <handa@m17n.org>
16397 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16398 (CATEGORY_MASK_UTF_16): Likewise.
16399 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16401 (detect_coding): Add null-byte detection for a binary file.
16402 (detect_coding_system): Likewise.
16404 2008-04-03 Jason Rumney <jasonr@gnu.org>
16406 * w32uniscribe.c: New file.
16408 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16410 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16412 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16413 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16414 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16415 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16416 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16417 (Qphonetic): New symbols.
16418 (syms_of_w32font): Initialize them.
16419 (font_supported_scripts): Use them.
16420 (w32font_list_family): List all charsets.
16421 (w32font_text_extents, recompute_cached_metrics): Fix metric
16423 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16424 Give opentype fonts their own format.
16425 (font_matches_spec): New arguments backend and logfont.
16426 Handle :otf spec for uniscribe backend.
16427 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16428 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16430 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16432 (globals_of_w32fns): Initialize uniscribe font backend.
16434 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16436 (w32uniscribe.$(O)): New file to build.
16437 (FONT_OBJ): Include w32uniscribe.$(O).
16438 (LIBS): Add uniscribe libraries.
16440 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16442 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16444 * callint.c (Vshift_select_mode): New var.
16445 (Finteractive): Document new ^ spec.
16446 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16449 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16450 (command_loop_1): Avoid running the direct display versions of
16451 forward-char and backward-char if shift-selection may occur.
16452 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16453 shift-translation takes place.
16455 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16456 avoid clobbering by define-minor-mode.
16458 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16459 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16461 * syntax.c (Fforward_word): Add ^ interactive spec.
16463 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16464 (Fscroll_right): Add ^ interactive spec.
16466 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16468 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16470 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16472 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16474 2008-03-31 Juri Linkov <juri@jurta.org>
16476 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16478 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16480 * gtkutil.c (xg_set_geometry): Fix indentation.
16481 (xg_resize_outer_widget): Remove.
16482 (x_wm_size_hint_off): Fix indentation.
16483 (xg_frame_set_char_size): Call flush_and_sync after
16485 (x_wm_set_size_hint): Pass NULL as geometry window to
16486 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16487 Add menu bar and tool bar height to base height.
16488 (xg_update_frame_menubar, free_frame_menubar)
16489 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16490 (update_frame_tool_bar, free_frame_tool_bar):
16491 Change xg_resize_outer_widget to xg_frame_set_char_size.
16493 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16495 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16496 (Fdbus_call_method): New parameter TIMEOUT.
16497 (dbus-send-signal): Optimize UNGCPRO call.
16499 2008-03-29 Juri Linkov <juri@jurta.org>
16501 * window.c (Fdisplay_buffer): Move call to
16502 Vsplit_window_preferred_function out of conditions that check
16503 if window is eligible for vertical splitting.
16504 When Vsplit_window_preferred_function is non-nil, call it and use
16505 its non-nil return value as window. Otherwise, continue doing
16506 vertical splitting using Fsplit_window with arg horflag=nil.
16507 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16508 default value from `split-window' to nil.
16510 2008-03-29 Juri Linkov <juri@jurta.org>
16512 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16513 for interactive code letters 'b' and 'B'.
16515 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16517 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16520 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16522 * keyboard.c (pending_funcalls): New var.
16523 (timer_check): Run it.
16524 (syms_of_keyboard): Initialize it.
16525 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16526 (Vdelete_terminal_functions): New vars.
16527 (syms_of_terminal): Initialize them.
16528 (Fdelete_terminal): Run delete-terminal-functions.
16529 * xdisp.c (safe_eval): Rewrite.
16530 (safe_call2): New fun.
16531 * frame.c (Qdelete_frame_functions): New var.
16532 (syms_of_frame): Initialize it.
16533 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16534 * lisp.h (safe_call2, pending_funcalls): Declare.
16536 2008-03-28 Andreas Schwab <schwab@suse.de>
16538 * indent.c (Fmove_to_column): Move declaration before statements.
16540 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16542 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16543 (struct frame): Use bit fields for boolean vars.
16545 * process.c (server_accept_connection): Simplify naming.
16546 (emacs_get_tty_pgrp): Use SDATA.
16548 * coding.c (decode_coding_object): Fix last change.
16550 2008-03-27 Jason Rumney <jasonr@gnu.org>
16552 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16554 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16556 * charset.c (Fdefine_charset_internal): Change the way of
16557 registering charsets in Vcharset_order_list.
16558 (syms_of_charset): Make the charset `eight-bit' supplementary.
16560 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16562 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16563 operations, to avoid having the difference between pointers
16566 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16568 * indent.c (check_display_width): New fun.
16569 (scan_for_column): Use it.
16571 * data.c (syms_of_data): Mark most-positive-fixnum and
16572 most-negative-fixnum as constants.
16574 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16576 * indent.c (scan_for_column): Extract from current_column_1.
16577 Merge with the same code from Fmove_to_column.
16578 (current_column_1, Fmove_to_column): Use it.
16580 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16582 * keymap.c (map_keymap_internal): New fun.
16583 (map_keymap): Use it.
16584 (Fmap_keymap_internal): New fun.
16585 (Fmap_keymap): Remove left-out test from before make_save_value.
16587 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16589 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16592 * process.h (struct Lisp_Process): Remove filter_multibyte.
16593 * process.c (QCfilter_multibyte): Remove.
16594 (setup_process_coding_systems): Don't use filter_multibyte.
16595 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16596 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16597 (Fset_process_filter_multibyte): Change the coding-system to
16598 approximate the previous behavior.
16599 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16602 * coding.c (decode_coding_object): When not decoding into a buffer,
16603 obey the coding system's preference of (uni|multi)byte.
16605 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16607 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16608 every char is changed and has a different byte-length.
16609 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16610 Fix int -> EMACS_INT.
16612 2008-03-23 David Hansen <david.hansen@gmx.net>
16614 * dbusbind.c (xd_read_message): Remove extra copying of message
16615 strings. Check for NULL `interface' or `member'.
16617 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16619 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16620 cFileName a file name that includes `?' characters, use the 8+3
16621 alias in cAlternateFileName instead.
16623 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16625 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16627 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16629 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16630 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16631 work on current_buffer only instead (that was already the case
16632 for some of the code anyway).
16633 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16634 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16635 (SET_PT, SET_PT_BOTH): Adjust.
16636 * intervals.h (set_point, temp_set_point, set_point_both)
16637 (temp_set_point_both): Remove redundant declarations.
16639 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16641 * fileio.c (Finsert_file_contents):
16642 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16643 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16644 when buffer != current_buffer anyway.
16646 2008-03-20 Andreas Schwab <schwab@suse.de>
16648 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16651 2008-03-19 Jason Rumney <jasonr@gnu.org>
16653 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16654 (syms_of_w32fns): Initialize them.
16655 (HOURGLASS_ID): New constant.
16656 (x_window_to_frame): Don't check hourglass_window.
16657 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16658 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16659 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16660 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16661 Only change the cursor if hourglass is not active.
16662 (Fx_create_frame): Initialize frame's current_cursor.
16663 (hourglass_atimer): Remove.
16664 (hourglass_started): New function.
16665 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16666 (show_hourglass): Adapt to w32, changing argument to frame.
16668 * w32term.h (struct w32_output): Remove hourglass_window.
16669 Add current_cursor.
16671 * eval.c (call_debugger, Fsignal):
16672 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16673 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16674 (Fexecute_extended_command, cancel_hourglass_unwind):
16675 * minibuf.c (read_minibuf):
16676 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16678 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16680 * window.c (run_funs): New fun.
16681 (run_window_configuration_change_hook): Use it to run the buffer-local
16682 and the global part of the hook.
16684 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16685 (unwind_format_mode_line): Restore selected window.
16686 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16688 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16690 * editfns.c (Fchar_equal): Check they are valid characters.
16692 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16694 2008-03-17 Andreas Schwab <schwab@suse.de>
16696 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16699 * lisp.h (Fbuffer_list): Declare.
16701 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16703 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16704 handlebox_widget is != 0.
16706 2008-03-16 Juri Linkov <juri@jurta.org>
16708 * callint.c (Fcall_interactively): For interactive code letters
16709 'b' and 'B' put the buffer list into the list of default "future"
16710 values of the minibuffer.
16712 2008-03-16 Andreas Schwab <schwab@suse.de>
16714 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16717 * regex.c (re_match_2_internal): Correct matching of a charset
16718 against latin-1 characters.
16720 2008-03-16 Kenichi Handa <handa@m17n.org>
16722 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16723 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16724 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16725 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16726 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16727 CHAR_STRING_ADVANCE.
16728 (produce_chars): Fix for the case that the source and the
16729 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16730 instead of CHAR_STRING_ADVANCE.
16731 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16732 STRING_CHAR_ADVANCE.
16734 2008-03-15 Andreas Schwab <schwab@suse.de>
16736 * regex.c (re_match_2_internal): Correct matching of eight bit
16737 characters in unibyte strings.
16739 2008-03-15 Martin Rudalics <rudalics@gmx.at>
16741 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16742 at end of range when it coincides with the end of the buffer.
16744 2008-03-14 Eli Zaretskii <eliz@gnu.org>
16746 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16748 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16750 2008-03-14 Jason Rumney <jasonr@gnu.org>
16752 * editfns.c (initial_tz): New variable.
16753 (syms_of_editfns): Initialize it.
16754 (Fset_time_zone_rule): Set it when first called.
16755 Use it when TZSTRING is nil.
16757 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16758 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16759 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16760 (globals_of_w32fns): Initialize them.
16761 (compute_tip_xy): Use them to position tooltips.
16763 2008-03-14 Glenn Morris <rgm@gnu.org>
16765 * emacs.c (main): Revert previous change.
16766 (standard_args): Revert -internal-script back to -scriptload,
16767 and remove the long-option form.
16769 2008-03-13 Glenn Morris <rgm@gnu.org>
16771 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16772 Remove option -enable-font-backend.
16774 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16776 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16778 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16780 * xterm.c (x_connection_closed): For GTK: If this is the last
16781 terminal just exit without closing the display.
16783 2008-03-11 Jason Rumney <jasonr@gnu.org>
16785 * w32font.c (w32font_full_name): Use floor to round.
16787 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16789 * sound.c (alsa_configure): Declare vol at beginning of block.
16791 * fontset.c (Ffontset_info): Remove extra semicolon.
16793 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16795 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16796 size of resulting string.
16798 2008-03-10 Jason Rumney <jasonr@gnu.org>
16800 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16802 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16804 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16805 Don't pretend as if characters with display property haven't been
16806 consumed for string-replacing-string case.
16808 2008-03-08 Kim F. Storm <storm@cua.dk>
16810 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16811 (get_next_display_element, next_element_from_string)
16812 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16814 2008-03-08 Andreas Schwab <schwab@suse.de>
16816 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16818 2008-03-06 Jason Rumney <jasonr@gnu.org>
16820 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16821 when charset not specified. Only translate ANSI to unicode when
16822 font_type is truetype.
16823 (w32font_coverage_ok): New function.
16824 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16826 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16828 * lread.c (Fread_char): Resolve modifiers.
16829 (Fread_char_exclusive): Likewise.
16831 * character.c (char_resolve_modifier_mask): New function.
16832 (char_string): Use char_resolve_modifier_mask.
16833 (Fchar_resolve_modifiers): New function.
16834 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16837 2008-03-04 Jason Rumney <jasonr@gnu.org>
16839 * makefile.w32-in: Always include w32font.c in the build.
16840 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16842 2008-03-04 Andreas Schwab <schwab@suse.de>
16844 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16845 (versionclean): Likewise.
16847 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
16849 * .cvsignore: Add oo.
16851 2008-03-03 Andreas Schwab <schwab@suse.de>
16853 * coding.c (decode_coding_object): Inhibit gap shrinking while
16856 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16858 * w32term.c: Remove unused include "gnu.h".
16859 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16861 * gnu.h: Rename to ...
16862 * emacs-icon.h: ... this.
16863 * xterm.c: Use emacs-icon.h instead of gnu.h.
16864 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16866 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
16868 * w32font.c: Include math.h.
16870 2008-03-03 Jason Rumney <jasonr@gnu.org>
16872 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16873 Compute options separately.
16874 (w32font_open_internal): Set glyph_idx before caching metrics.
16876 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16877 Define if system headers don't.
16878 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16879 (w32font_encode_char): Don't declare here.
16881 * w32font.c (Quniscribe, QCformat): New symbols.
16882 (syms_of_w32font): Define them.
16883 (w32font_has_char): Indicate uncertainty.
16884 (w32font_encode_char): Encode as glyph point. Make static.
16885 (recompute_cached_metrics): New function.
16886 (w32font_open_internal): Use it. Set font to use glyph points
16887 initially. Set format based on type of font.
16888 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16889 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16890 on it. Set format based on information available here.
16891 (add_font_entity_to_list): Identify backend based on opentype_only.
16893 2008-03-02 Andreas Schwab <schwab@suse.de>
16895 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16897 * coding.c (decode_coding_big5, produce_chars):
16898 Fix typos in last change.
16900 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16904 2008-03-02 Kenichi Handa <handa@m17n.org>
16906 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16907 `dos', don't decode '\r' if that is the last in the source.
16908 (decode_coding_utf_16, decode_coding_emacs_mule)
16909 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16910 (decode_coding_raw_text, decode_coding_charset): Likewise.
16911 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16913 2008-03-01 Jason Rumney <jasonr@gnu.org>
16915 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16917 2008-03-01 Kim F. Storm <storm@cua.dk>
16919 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16921 2008-03-01 Jason Rumney <jasonr@gnu.org>
16923 * w32font.c (w32font_full_name): New function.
16924 (w32font_open_internal): Use it.
16926 2008-03-01 Kim F. Storm <storm@cua.dk>
16928 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16930 2008-03-01 Jason Rumney <jasonr@gnu.org>
16932 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16934 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16936 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16937 xg_frame_resized when the event is for the edit widget.
16939 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16941 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16943 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16944 operations on widgets here. Just set frame size if needed.
16945 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16946 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16947 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16949 (xg_create_tool_bar): Move attachment of the tool bar to
16950 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16951 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16953 2008-03-01 Jason Rumney <jasonr@gnu.org>
16955 * w32fns.c (w32_msg_pump): Disable debug code.
16957 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16959 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16961 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16963 * xdisp.c (next_overlay_string): Don't set
16964 overlay_strings_at_end_processed_p if we're currently reading from
16967 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16969 * xdisp.c (get_overlay_strings_1): Fix typo.
16971 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16973 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16975 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16977 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16979 * xdisp.c (display_mode_element): Cancel the previous change.
16980 (decode_mode_spec): Likewise.
16981 (handle_auto_composed_prop): Don't make composition if it->string
16984 2008-02-27 Kim F. Storm <storm@cua.dk>
16986 * lisp.h (GLYPH): Change type from int to struct with separate char
16987 and face_id members.
16988 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16989 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16990 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16991 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16992 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16993 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16994 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16995 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16996 handle new Lisp glyph code encoding, either an integer or a cons.
16998 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16999 (GLYPH_ALIAS): Delete.
17000 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17001 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17002 (GLYPH_FROM_CHAR): Replace macro by ...
17003 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17005 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17006 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17007 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17008 (GLYPH_INVALID_P): New macro.
17009 (spec_glyph_lookup_face): Update prototype.
17011 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17012 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17013 new glyph code encoding.
17014 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17015 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17017 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17018 Adapt to new glyph type and new glyph code encoding.
17020 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17022 * indent.c (current_column, current_column_1, Fmove_to_column)
17023 (compute_motion): Adapt to new glyph code encoding.
17025 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17027 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17029 * process.c (wait_reading_process_output): Check for window
17030 changes caused by timers.
17031 Suggested by Johan Bockgård.
17033 2008-02-27 Glenn Morris <rgm@gnu.org>
17035 * emacs.c (USAGE1): Add `--disable-font-backend'.
17037 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17039 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17040 is made to the buffer.
17042 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17044 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17045 (face_at_string_position):
17046 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17047 (face_at_string_position):
17048 * xdisp.c (display_string, next_overlay_change):
17049 * buffer.h (overlays_at):
17050 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17053 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
17055 * editfns.c (Fformat): Doc fix.
17057 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
17059 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17060 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17061 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17063 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17065 * buffer.c (Fbuffer_swap_text): New function.
17066 (syms_of_buffer): Defsubr it.
17068 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
17070 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17072 2008-02-25 Jason Rumney <jasonr@gnu.org>
17074 * w32font.c (w32font_draw): Draw one character at a time when padding.
17076 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17078 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17079 Handle a nil arg. Use run_window_configuration_change_hook.
17080 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17081 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17082 Use run_window_configuration_change_hook.
17084 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17086 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17089 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17091 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17092 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17093 if the glyph in the font is zero pixel with.
17095 * dispextern.h (struct glyph_string): New member padding_p.
17097 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17099 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17101 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17103 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17105 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17107 2008-02-25 Jason Rumney <jasonr@gnu.org>
17109 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17111 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17113 Allow fine-grained image-cache flushing.
17114 * dispextern.h (struct image): Add `dependencies' field.
17115 (clear_image_caches): Change arg to Lisp_Object.
17116 * image.c (make_image): Initialize `dependencies' field.
17117 (clear_image_cache): Change arg to allow fine-grained flushing.
17118 Perform the flush even if image-cache-eviction-delay is nil.
17119 (clear_image_caches): Change arg to Lisp_Object.
17120 (Fclear_image_cache): Expand meaning of the argument.
17121 (mark_image): Mark `dependencies' field.
17122 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17123 (lface_hash): Use XHASH rather than XFASTINT.
17124 (face_at_buffer_position): Fix int -> EMACS_INT position.
17125 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17126 (select_frame_for_redisplay): Remove code duplication.
17127 (redisplay_internal): Adapt arg to call to clear_image_caches.
17129 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17134 * s/vms5-5.h: Remove, unused.
17140 * m/mips4.h: Remove files for obsolete systems.
17153 * s/usg5-3.h: Remove references to obsolete variables.
17155 * s/irix5-0.h: Remove, move all the contents ...
17156 * s/irix6-5.h: ... here. Simplify.
17157 * config.in: Regenerate.
17159 2008-02-24 Jason Rumney <jasonr@gnu.org>
17161 * w32term.c (x_draw_glyph_string_background): Clear the background
17162 manually when cleartype is in use.
17163 (x_draw_glyph_string_foreground): Draw text transparently when
17164 cleartype is in use.
17166 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17167 a font into it unless we have to.
17169 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17171 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17172 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
17174 2008-02-18 Jason Rumney <jasonr@gnu.org>
17176 * w32fns.c (Fw32_shell_execute): Encode parameters.
17178 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17180 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17182 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17184 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17186 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17188 * xterm.c (x_set_offset): Don't change the gravity if
17189 CHANGE_GRAVITY is -1.
17191 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17193 * fileio.c (auto_save_error_occurred): New var.
17194 (auto_save_error): Set it.
17195 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17198 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17200 * w32.c (globals_of_w32): Add initializations for
17201 g_b_init_get_sid_sub_authority and
17202 g_b_init_get_sid_sub_authority_count.
17204 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17206 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17207 (font_parse_xlfd): Use them for sanity check.
17208 (Finternal_set_font_style_table): Make sure the table is bijective.
17210 Consolidate the image_cache to the terminal struct.
17211 * termhooks.h (P_): Remove redundant def.
17212 (struct terminal): New field `image_cache'.
17213 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17214 of FRAME_X_IMAGE_CACHE.
17215 * xterm.h (struct x_display_info): Remove image_cache field.
17216 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17217 * w32term.h (struct w32_display_info): Remove image_cache field.
17218 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17219 * macterm.h (struct mac_display_info): Remove image_cache field.
17220 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17221 * xterm.c (x_term_init):
17222 * w32term.c (w32_term_init):
17223 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17224 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17225 Remove declarations.
17226 (clear_image_caches, mark_image_cache): New declarations.
17227 * xfaces.c (clear_face_cache):
17228 * xdisp.c (redisplay_internal): Use clear_image_caches.
17229 * image.c (clear_image_cache): Don't check that a frame is on
17230 a window-system before checking if it shares the same cache.
17231 (clear_image_caches): New function.
17232 (Fclear_image_cache): Use it.
17233 (mark_image): Move from allo.c.
17234 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17235 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17236 (mark_object): Don't call mark_image_cache for frames.
17237 (mark_terminals): Call mark_image_cache.
17239 * lisp.h (Fdelete_terminal): Declare.
17241 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17242 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17243 wrong_type_argument.
17245 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17247 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17248 malayalam.el, and tamil.el. Add sinhala.el.
17250 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17252 * xterm.c (x_connection_closed): Consolidate identical tests.
17253 (x_delete_terminal): Don't crash if called via x_connection_closed.
17255 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17257 * xdisp.c (decode_mode_spec): New arg string.
17258 (display_mode_element): Adjust for the above change.
17260 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17262 * callint.c (Fcall_interactively): Use AREF.
17264 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17266 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17268 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17270 * xfns.c (Fx_show_tip): Set string to " " if empty.
17272 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17274 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17277 2008-02-17 Kenichi Handa <handa@m17n.org>
17279 * ftfont.c (ftfont_shape): Return Lispy number.
17281 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17283 (Finternal_set_font_selection_order): Call font_update_sort_order
17284 only when enable_font_backend is set.
17285 (realize_x_face): Set face->font_info to that of default face only
17286 when enable_font_backend is set.
17288 * xdisp.c (handle_composition_prop): Set it->c to the fist
17289 character of the composed region.
17290 (fill_composite_glyph_string): Set base_face->font_info to
17291 s->font_info. Get a face for ascii from base_face->ascii_face.
17292 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17293 with a face already decided.
17294 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17296 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17297 call font_prepare_composition unconditionally.
17299 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17301 * xterm.h (struct x_display_info): New member font.
17303 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17304 (x_set_mouse_face_gc, x_new_font): Likewise.
17305 (x_term_init): Setup display_info->font.
17306 (x_delete_terminal): Free display_info->font.
17308 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17310 * ftxfont.c (ftxfont_default_fid): Delete it.
17311 (ftxfont_open): Set xfont->fid to 0.
17312 (ftxfont_end_for_frame): Clear data specific to the frame and the
17315 * xftfont.c (xftfont_default_fid): Delete it.
17316 (xftfont_open): Set xfont->fid to 0.
17318 * fontset.c (FONTSET_OBJLIST): New macro.
17319 (fontset_find_font): Update font-object list of the fontset.
17320 (free_realized_fontset): New function.
17321 (free_face_fontset): Call free_realized_fontset.
17322 (Ffont_info): Call font_close_object only when enable_font_backend
17325 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17326 [HAVE_NTGUI]: Include w32term.h.
17327 [MAC_OS]: Include macterm.ch.
17328 (font_otf_ValueRecord): Use make_number.
17329 (font_finish_cache): Fix handling of reference count.
17330 (font_clear_cache): Update num_fonts.
17331 (font_open_entity): Update smallest_char_width and
17332 smallest_font_height of the frame.
17333 (font_close_object): Update num_fonts.
17334 (Fclear_font_cache): Fix finding the target cache data.
17336 2008-02-16 Glenn Morris <rgm@gnu.org>
17338 * fontset.c (Finternal_char_font): Fix compilation warning.
17340 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17342 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17343 instead of char arrays. Enlarge the size of array passed to
17344 get_token_information.
17346 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17349 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17351 * .gdbinit: Don't set `args', it breaks gdb --args.
17353 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17355 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17356 within a narrowed buffer.
17358 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17360 * coding.c (decode_coding_object, encode_coding_object):
17361 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17363 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17365 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17367 (detect_coding_system):
17368 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17369 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17370 * insdel.c (insert_from_gap):
17371 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17372 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17373 (string_to_multibyte):
17374 * character.c (chars_in_text, multibyte_chars_in_text):
17375 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17377 * character.h (FETCH_STRING_CHAR_ADVANCE)
17378 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17379 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17380 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17382 * casefiddle.c (casify_region): Only call after-change and composition
17383 functions on the part of the region that was changed.
17385 * keyboard.c (read_avail_input):
17386 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17388 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17390 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17391 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17393 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17395 * w32menu.c (push_submenu_start, push_submenu_end)
17396 (push_left_right_boundary, push_menu_pane, push_menu_item):
17397 * keyboard.c (read_key_sequence): Don't pass args with side effects
17398 to AREF, it fails when compiling with -DENABLE_CHECKING.
17400 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17402 * Makefile.in (${lispsource}international/charprop.el):
17403 Delete this target.
17405 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17408 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17410 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17412 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17414 * frame.c (Qnoelisp): New symbol.
17415 (syms_of_frame): Initialize it.
17416 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17417 harmless Elisp code, from a strong `force' from x_connection_closed.
17418 * frame.h (Qnoelisp): Declare.
17419 * xterm.c (x_connection_closed): Pass `noelisp'.
17421 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17422 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17423 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17424 rather than `int' for the type of `type'.
17426 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17428 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17430 * Makefile.in (GNUC): Remove support for gcc-1.x.
17432 2008-02-10 Richard Stallman <rms@gnu.org>
17434 * lisp.h (ASET): Use AREF, not ASLOT.
17436 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17438 * lisp.h (ASET): Check bounds.
17440 2008-02-10 Glenn Morris <rgm@gnu.org>
17442 * buffer.c (mode-name): Doc fix.
17444 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17461 * xterm.c: Remove code that deals with obsolete variables.
17463 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17465 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17466 nothing else needs it anymore.
17468 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17470 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17471 instead of unibyte_char_to_multibyte.
17473 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17475 * s/gnu-linux.h: Remove commented out code.
17477 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17479 * Makefile.in: Update what RMS says about using autoconf.
17480 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17481 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17482 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17483 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17485 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17487 * keymap.c (Fkey_description): Move side effect outside of macro call.
17489 * xfaces.c (Finternal_make_lisp_face):
17490 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17492 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17493 (syms_of_fontset): Use ASET.
17495 * fns.c (concat): Move side effect outside of macro call.
17496 (hash_clear): Use ASET.
17498 2008-02-08 Richard Stallman <rms@gnu.org>
17500 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17501 If FORCE, and frame has a surrogate minibuffer for another frame,
17502 delete the other frame first.
17504 2008-02-07 Timo Savola <timo.savola@iki.fi>
17506 * xterm.c (x_detect_focus_change): Handle embed client message.
17507 (handle_one_xevent): Ditto.
17508 (handle_one_xevent): If embedded and we get a button press/release,
17510 (xembed_set_info, xembed_send_message): New functions.
17511 (x_make_frame_visible): Call xembed_set_info if embedded.
17512 (x_make_frame_invisible): Call xembed_set_info if embedded.
17513 (x_term_init): Initialize Xatom_XEMBED.
17514 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17515 (x_iconify_frame): Ditto.
17517 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17518 (enum xembed_info, enum xembed_message, enum xembed_focus)
17519 (enum xembed_modifier, enum xembed_accelerator): New.
17520 (xembed_set_info, xembed_send_message): Declare.
17521 (FRAME_X_EMBEDDED_P): New.
17523 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17526 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17527 window ID of a frame.
17528 (x_window): Reparent frame if embedded.
17529 (Fx_create_frame): Don't set border width if embedded.
17531 * emacs.c (USAGE3): Add --parent-id.
17532 (standard_args): Ditto.
17534 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17536 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17538 2008-02-07 Jim Meyering <meyering@redhat.com>
17540 Use "do...while (0)", not "if (1)...else" in macro definitions.
17541 The latter provokes a warning from gcc about the empty else, when
17542 followed by ";". Also, without that trailing semicolon, it would
17543 silently swallow up any following statement.
17544 * syntax.h (SETUP_SYNTAX_TABLE)
17545 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17546 * buffer.h (DECODE_POSITION): Likewise.
17547 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17548 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17549 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17550 (FETCH_CHAR_ADVANCE): Likewise.
17551 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17553 2008-02-07 Jim Meyering <meyering@redhat.com>
17555 * lread.c [lint]: Don't include <sys/inode.h>.
17557 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17559 * xselect.c (x_handle_dnd_message):
17560 * xmenu.c (digest_single_submenu, xmenu_show):
17561 * xdisp.c (with_echo_area_buffer_unwind_data)
17562 (format_mode_line_unwind_data, unwind_format_mode_line)
17563 (display_menu_bar):
17564 * eval.c (Ffetch_bytecode):
17565 * doc.c (store_function_docstring):
17566 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17567 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17568 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17570 2008-02-07 Kenichi Handa <handa@m17n.org>
17572 * ftxfont.c (ftxfont_open): Don't set
17573 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17575 * ftfont.c (ftfont_open): Fix previous change.
17577 2008-02-06 Jason Rumney <jasonr@gnu.org>
17579 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17580 Use cached metrics for ASCII characters.
17581 (w32font_open_internal): Don't set font's owning_frame.
17582 Cache metrics for ASCII characters.
17584 * w32font.h (struct w32font_info): Add ascii_metrics.
17585 Remove owning_frame.
17587 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17589 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17592 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17594 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17596 * charset.c (syms_of_charset): Set QCtest and Qeq.
17598 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17600 * process.c (Fstart_process):
17601 * callproc.c (Fcall_process): Handle the case where
17602 Funhandled_file_name_directory returns nil.
17604 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17605 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17606 * font.c (check_gstring): Use them and AREF to access the vector before
17607 we know it's really a gstring.
17608 (Ffont_shape_text): Fix typo.
17609 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17611 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17614 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17616 2008-02-05 Jason Rumney <jasonr@gnu.org>
17618 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17619 Set smallest_font_height and smallest_char_width in display info.
17621 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17623 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17625 2008-02-05 Miles Bader <miles@gnu.org>
17627 * xfaces.c (get_lface_attributes, merge_named_face)
17628 (lookup_named_face, lookup_derived_face, realize_named_face):
17629 Revert 2008-02-01 change by cyd@stupidchicken.com.
17631 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17633 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17635 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17637 2008-02-04 Jason Rumney <jasonr@gnu.org>
17639 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17641 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17643 2008-02-03 Jason Rumney <jasonr@gnu.org>
17645 * makefile.w32-in (OBJ1): Include font.o here.
17646 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17648 2008-02-02 Jason Rumney <jasonr@gnu.org>
17650 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17652 2008-02-01 Jason Rumney <jasonr@gnu.org>
17654 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17656 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17658 2008-02-01 Andreas Schwab <schwab@suse.de>
17660 * Makefile.in (shortlisp, lisp): Update for rename of
17661 ../lisp/language/myanmar.el.
17663 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17665 * xfaces.c (get_lface_attributes): Delete function.
17666 (merge_named_face, lookup_named_face, lookup_derived_face)
17667 (realize_named_face): Call lface_from_face_name directly, and use
17668 the fact that merge_face_vectors does not alter its FROM argument.
17670 2008-02-01 Jason Rumney <jasonr@gnu.org>
17672 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17673 input in the default locale. Handle non-Unicode multibyte input.
17675 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17677 * fontset.c (reorder_font_vector): Exclude nil elements from the
17678 font group. Don't try multiple fonts.
17679 (fontset_font): Adjust for the above change.
17680 (Finternal_char_font): Return nil if the found font doesn't
17681 contain the character ch.
17683 * Makefile.in (lisp, shortlisp): Add cham.el.
17685 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17687 * font.h (FONTP): Make it return 1 also for a font-object.
17689 * .gdbinit (xfontset): New function.
17691 * font.c (font_find_for_lface): Check if the character C is
17692 supported or not only for the first font.
17694 * fontset.c (reorder_font_vector): Fix typo.
17695 (fontset_find_font): Don't add a font-spec specifying a script.
17696 Use 0 (not Qt) for the indication of empty font-group. Change the
17697 format of RFONT-DEF. Return Qt if no font in the font-group
17698 support the character.
17699 (fontset_font): Adjust for the above change. If no font was
17700 found the character, remember that.
17701 (face_for_char): Adjust for the change of RFONT-DEF.
17702 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17703 no font for the target.
17704 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17706 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17708 * font.c (font_load_for_face): Handle the case that the font in
17709 face->lface is a string.
17711 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17713 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17715 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17717 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17718 Fix previous change. If the frame is not on a window system,
17721 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17723 * coding.c (decode_coding_object, encode_coding_object): Adjust
17724 marker positions after conversion.
17726 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17728 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17730 * font.c (font_find_for_lface): Fix the handling of the return
17731 value of font_has_char.
17732 (Ffont_shape_text): Fix previous change.
17734 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17735 (fontset_ref_and_range): Delete it.
17736 (fontset_find_font): Call char_table_ref_and_range instead of
17737 FONTSET_REF_AND_RANGE.
17738 (make_fontset): Don't setup font groups of Latin here.
17739 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17740 (new_fontset_from_font): Make the specified font the default for
17741 all Latin characters.
17743 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17745 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17746 is on a window system before accessing the fontset of the frame.
17748 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17750 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17752 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17753 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17755 * font.c (Ffont_shape_text): If the font driver doesn't have a
17756 shaper function, make zero-width glyphs to have at least one-pixel
17757 width. Fix setting of `to' field of glyphs.
17759 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17761 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17764 * font.h (struct font_driver): Improve docstring of member `shape'.
17766 2008-02-01 Kenichi Handa <handa@m17n.org>
17768 * composite.c (syms_of_composite): Fix docstring of
17769 auto-composition-function.
17771 * font.h (LGLYPH_SIZE): New macro.
17773 * font.c (Ffont_fill_gstring): Stop filling when a character not
17774 supported by the font is found.
17775 (Ffont_shape_text): When a shape callback function returns nil,
17776 try at most two more times with larger gstring.
17777 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17779 * xdisp.c (handle_auto_composed_prop): Change the argument to
17780 auto-composition-function.
17782 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17783 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17784 Lispy glyph and store it in the lgstring.
17786 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17788 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17790 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17792 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17794 * fontset.c (Vfont_encoding_charset_alist): New variable.
17795 (syms_of_fontset): DEFVAR it.
17796 (reorder_font_vector, fontset_find_font): Optimize for the case of
17797 no need of reordering.
17798 (face_for_char): Map the charset property by
17799 Vfont_encoding_charset_alist.
17801 2008-02-01 Jason Rumney <jasonr@gnu.org>
17803 * w32font.c (logfonts_match): Don't check adstyle here.
17804 (font_matches_spec): Check here against physical font instead.
17805 (add_font_entity_to_list): Avoid some substitutions.
17807 * font.c (font_parse_fcname): Default weight and slant to normal.
17808 (font_score): Prefer normal fonts if weight or slant unspecified.
17809 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17810 match freetype scores.
17812 2008-02-01 Jason Rumney <jasonr@gnu.org>
17814 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17815 font, as it may have been deleted.
17816 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17817 most common hyphenless variation.
17818 (logfonts_match): Check generic family.
17819 (font_matches_spec): Don't check generic family here.
17820 (fill_in_logfont): Set generic family based on adstyle.
17822 * w32font.h (w32font_get_cache): Update declaration.
17824 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17826 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17828 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17829 If none of the new drivers are available, call font_update_drivers
17830 with the old drivers.
17832 * w32font.c (w32font_get_cache): Adjust the argument type.
17834 * xfont.c (xfont_get_cache): Adjust the argument type.
17836 * font.h (struct font_driver): Change argument type of get_cache.
17838 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17840 * font.c (Ffont_get): Fix arguments to Fassoc.
17841 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17842 (font_clear_cache): New function.
17843 (font_list_entities, font_matching_entity): Use font_get_cache.
17844 (font_update_drivers): Call font_clear_cache when finishing a driver.
17846 * fontset.c (fontset_find_font): Fix previous change.
17848 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17850 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17851 dpyinfo->font_table.
17852 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17853 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17855 * font.c (font_at): Handle the case that the arg C is negative.
17856 Handle the unibyte case.
17857 (Ffont_at): Call font_at with the arg C -1.
17859 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17860 the position here, and call font_at with the arg C -1.
17861 Don't check the range of the existing composition at the point.
17863 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17865 * fontset.c (fontset_add): New args charset_id and family.
17867 (load_font_get_repertory, fontset_find_font): Assume that
17868 font_spec is always a font-spec object.
17869 (Fset_fontset_font): Always store a font-spec object in a fontset.
17871 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17872 instead of get_property_and_range.
17874 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17876 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17877 (xftfont_open): Don't keep locking face.
17878 (xftfont_close): Don't unlock face.
17879 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17881 * fontset.c (fontset_find_font): Don't prefer a font of
17882 supplementary charset.
17884 2008-02-01 Kenichi Handa <handa@m17n.org>
17886 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17887 script, langsys_tag to langsys, new member script.
17888 (OTF_TAG_STR): Terminate by '\0'.
17889 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17890 listing to the script specified in that property. Fix arg to
17891 OTF_check_features.
17893 2008-02-01 Jason Rumney <jasonr@gnu.org>
17895 * w32font.h: New file.
17897 * w32font.c: Include it.
17898 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17899 (w32font_open): Set owning_frame.
17900 (w32font_text_extents): Use owning_frame.
17901 (struct font_callback_data): Add opentype_only field.
17902 (add_font_entity_to_list): Use it to filter fonts.
17903 Don't check against full name.
17904 (w32font_list_internal): New function.
17905 (w32font_list): Use it.
17906 (w32font_match_internal): New function.
17907 (w32font_match): Use it.
17908 (w32font_open_internal): New function.
17909 (w32font_open): Use it.
17910 (w32font_get_cache, w32font_close, w32font_has_char)
17911 (w32font_encode_char, w32font_text_extents, w32font_draw):
17914 * makefile.w32-in (w32font.o): Depend on w32font.h.
17916 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17918 * charset.c (Fdefine_charset_internal): Record a supplementary
17919 charset at the tail of Vcharset_order_list.
17921 * font.c (Ffont_shape_text): Fix the return value.
17923 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17925 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17927 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17929 * ftfont.c (struct OpenTypeSpec): New struct.
17930 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17931 (ftfont_get_open_type_spec): New function.
17932 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17934 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17936 2008-02-01 Jason Rumney <jasonr@gnu.org>
17938 * w32font.c (add_font_entity_to_list): Compare only the beginning
17941 2008-02-01 Kenichi Handa <handa@m17n.org>
17943 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17944 Never return HANDLED_RECOMPUTE_PROPS.
17946 2008-02-01 Kenichi Handa <handa@m17n.org>
17948 * font.c (font_gstring_produce): Delete it.
17950 * composite.h (COMPOSITION_METHOD):
17951 Handle COMPOSITION_WITH_GLYPH_STRING.
17953 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17955 * xfont.c (Qx): Delete.
17956 (syms_of_xfont): Don't initialize Qx.
17958 * composite.h (enum composition_method):
17959 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17961 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17963 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17964 (choose_face_font): Accept new form of font-spec.
17966 * frame.h (font_driver_list): Declare it unconditionally.
17967 (struct frame): Define members font_driver_list and font_data_list
17970 * fontset.c: Include "font.h" unconditionally.
17971 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17972 (Fset_fontset_font): Accept a font-spec object.
17974 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17975 PIXEL_SIZE part a wild card.
17977 * dispextern.h (struct glyph_string): Define members clip and
17978 num_clips unconditionally.
17979 (struct face): Define members font_info and extra unconditionally.
17981 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17982 ftfont_info only when HAVE_LIBOTF is defined.
17984 2008-02-01 Andreas Schwab <schwab@suse.de>
17986 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17989 2008-02-01 Jason Rumney <jasonr@gnu.org>
17991 * w32font.c (w32font_driver): Add new fields.
17993 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17995 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17996 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17997 (LIBES): Add @M17N_FLT_CFLAGS@.
17999 * composite.c (compose_text): Don't treat the new style
18000 composition specially.
18002 * emacs.c (main): Call syms_of_font unconditionally.
18004 * font.h (FONT_ENTITY_NOT_LOADABLE)
18005 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18006 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18007 (struct font_driver): New member shape.
18008 (font_registry_charsets): Extern it.
18009 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18010 (font_otf_capability, font_drive_otf): Delete their externs.
18012 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18013 (font_charset_alist, font_registry_charsets): Move from xfont.c
18015 (font_prop_validate_otf): New function.
18016 (font_property_table): Register it for QCotf.
18017 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18018 (font_drive_otf): Delete.
18019 (font_prepare_composition): New arg F. Adjust for the change of
18021 (font_find_for_lface): New arg C.
18022 (font_load_for_face): Adjust for the change of font_find_for_lface.
18023 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18025 (Ffont_shape_text): New function.
18026 (Fopen_font): If the font size is not given, use 12-pixel.
18027 (Ffont_at): New arg STRING.
18028 (syms_of_font): Initalize font_charset_alist.
18029 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18032 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18033 fonts of the same font-spec. Change the format of RFONT-DEF.
18034 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18035 Adjust for the change of RFONT-DEF.
18036 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18038 * ftfont.h: New file.
18040 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18041 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18042 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18043 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18044 font_otf_capability and font_drive_otf, set ftfont_shape.
18045 (ftfont_list): Adjust for the change of :otf property value.
18046 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18047 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18048 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18049 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18050 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18051 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18053 * w32term.c (x_draw_composite_glyph_string_foreground):
18054 Adjust for the change of lispy gstring.
18056 * xdisp.c (handle_composition_prop): Adjust for the change of
18057 lispy gstring. Call a function for auto-composition with the
18058 third arg it->window.
18059 (fill_composite_glyph_string): Adjust for the change of lispy string.
18060 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18062 * xfaces.c (set_font_frame_param): Adjust for the change of
18063 font_find_for_lface.
18065 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18066 (xfont_registry_charsets): Likewise. Change caller.
18067 (syms_of_xfont): Don't handle x_font_charset_alist.
18069 * xftfont.c: Include "ftfont.h".
18070 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18071 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18072 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18073 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18074 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18075 Set xftfont_driver.shape to xftfont_shape.
18077 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18078 the change of lispy gstring.
18080 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18082 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18084 2008-02-01 Jason Rumney <jasonr@gnu.org>
18086 * w32font.c (w32font_draw): Fill background manually.
18088 2008-02-01 Jason Rumney <jasonr@gnu.org>
18090 * font.c (Qfontp): Remove unused symbol.
18091 (QCantialias): New symbol.
18092 (syms_of_font): Define it.
18093 (font_property_table): Set a validator for QCantialias.
18095 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18096 Define if not already.
18097 (QCfamily): Share with xfaces.c.
18098 (Qstandard, Qsubpixel, Qnatural): New symbols.
18099 (syms_of_w32font): Define them. Don't define QCfamily here.
18100 (w32_antialias_type, lispy_antialias_type): New functions.
18101 (w32_enumfont_pattern_entity): New arg requested_font.
18102 Set antialias parameter if non-default was requested.
18103 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18105 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18107 * lread.c (read1): Undo the previous change.
18109 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18111 * frame.c (Fdelete_frame): Call font_update_drivers only when
18112 USE_FONT_BACKEND is defined.
18114 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18116 * font.h (struct font_bitmap): New member bits_per_pixel.
18117 (struct font_driver): New members start_for_frame and end_for_frame.
18118 (struct font_data_list): New struct.
18119 (font_put_frame_data, font_get_frame_data): Extern them.
18121 * frame.h (struct frame): New member font_data_list.
18123 * font.c (font_update_drivers): Call driver->start_for_frame and
18124 driver->end_for_frame at proper timings.
18125 (font_put_frame_data, font_get_frame_data): New functions.
18126 (Ffont_spec): Add usage in the docstring.
18128 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18129 (Fdelete_frame): Call font_update_drivers.
18131 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18132 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18133 (xftfont_get_xft_draw): New function.
18134 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18135 (xftfont_end_for_frame): New function.
18136 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18138 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18139 Change argument. Cache GCs in the per-frame data.
18140 (struct ftxfont_frame_data): New struct.
18141 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18142 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18143 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18144 (ftxfont_end_for_frame): New function.
18145 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18147 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18149 2008-02-01 Kenichi Handa <handa@m17n.org>
18151 * xselect.c (Vselection_coding_system)
18152 (Vnext_selection_coding_system): Delete them.
18153 (syms_of_xselect): Don't declare selection-coding-system and
18154 next-selection-coding-system. They are declared in select.el.
18156 2008-02-01 Jason Rumney <jasonr@gnu.org>
18158 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18160 * w32fns.c: Include imm.h.
18161 (get_composition_string_fn, get_ime_context_fn): New optional
18163 (globals_of_w32fns): Load them from imm32.dll.
18164 (ignore_ime_char): New flag.
18165 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18166 WM_IME_ENDCOMPOSITION messages.
18168 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18169 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18171 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18173 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18174 (READCHAR_REPORT_MULTIBYTE): New macro.
18175 (readchar): New 2nd arg MULTIBYTE.
18176 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18177 Make symbol's name multibyte according to the multibyteness of the
18180 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18182 * xfaces.c (face_for_overlay_string): Call lookup_face with
18183 correct arguments (fix of synching with the trunk).
18185 2008-02-01 Kenichi Handa <handa@m17n.org>
18187 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18188 (font_prop_validate_non_neg, font_prop_validate_spacing):
18189 Delete argument prop_index.
18190 (font_property_table): Change arguments to validater. Change Callers.
18191 (font_lispy_object): Delete.
18192 (font_at): Use font_find_object instead fo font_lispy_object.
18194 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18196 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18199 2008-02-01 Jason Rumney <jasonr@gnu.org>
18201 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18202 (font_matches_spec): Remove debug output.
18203 (add_font_entity_to_list): Avoid using substituted fonts.
18205 2008-02-01 Jason Rumney <jasonr@gnu.org>
18207 * doc.c (Fsnarf_documentation):
18208 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18210 2008-02-01 Miles Bader <miles@gnu.org>
18212 * dispextern.h (struct glyph_row): Only define "clip" field if
18213 HAVE_WINDOW_SYSTEM is defined.
18215 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18217 Fix up multi-tty merge.
18219 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18222 * xfaces.c (free_realized_face, clear_face_gcs):
18223 Include font_done_for_face in the input_blocked section, just in case.
18225 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18226 (get_char_face_and_encoding): Undo last change and remove the *other*
18227 duplicate definition (i.e. keep the one that's better scoped and that
18228 includes code for the font-backend).
18230 * terminal.c (create_terminal): Default keyboard_coding to
18231 `no-conversion' and terminal_coding to `undecided'.
18233 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18235 * fontset.c (free_realized_fontsets): Check that the table entry does
18236 contain a fontset before trying to compare it to `base'.
18238 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18239 syms_of_charset, and syms_of_coding earlier because init_window_once
18240 now needs Vcoding_system_hash_table to be setup.
18242 * coding.h (default_buffer_file_coding): Remove.
18244 * coding.c (default_buffer_file_coding): Remove.
18245 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18246 than ->symbol, and use the terminal-local coding system.
18247 (syms_of_coding): Don't setup the coding-systems that are not
18249 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18251 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18252 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18254 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18255 in chartab.c and were re-added here by mistake.
18256 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18258 * doc.c (Fsnarf_documentation):
18259 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18262 * ChangeLog.10: Add mistakenly removed entry.
18264 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18266 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18268 2008-02-01 Miles Bader <miles@gnu.org>
18270 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18271 Add extra args to FACE_FOR_CHAR.
18273 2008-02-01 Kenichi Handa <handa@m17n.org>
18275 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18278 * chartab.c (map_sub_char_table, map_char_table): If the range
18279 contains just one character, call the function with that character
18280 even if the depth is not 3.
18282 2008-02-01 Jason Rumney <jasonr@gnu.org>
18284 * w32font.c (w32font_text_extents): Calculate metrics for the
18287 2008-02-01 Jason Rumney <jasonr@gnu.org>
18289 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18291 2008-02-01 Jason Rumney <jasonr@gnu.org>
18293 * w32term.c (x_set_glyph_string_clipping): Use
18294 get_glyph_string_clip_rects.
18295 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18296 Adjust for the change of struct glyph_string.
18298 * w32font.c (w32font_draw): Do clipping here.
18300 2008-02-01 Kenichi Handa <handa@m17n.org>
18302 * xftfont.c (xftfont_draw): Adjust for the change of struct
18305 * xterm.c (x_set_glyph_string_clipping): Use
18306 get_glyph_string_clip_rects.
18307 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18308 Adjust for the change of struct glyph_string.
18310 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18311 the resulting clip(s}.
18312 (expose_overlaps): Add arg r. Change callers. Set it to
18313 row->clip temporarily.
18314 (expose_window): Redraw rows overlapping the exposed area.
18316 * dispextern.h (struct glyph_row): New member clip.
18317 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18318 clip_height, new member clip, and num_clips.
18320 2008-02-01 Kenichi Handa <handa@m17n.org>
18322 * data.c (Fchar_or_string_p): Fix docstring.
18324 2008-02-01 Kenichi Handa <handa@m17n.org>
18326 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18327 create a temporary XftDraw object.
18329 2008-02-01 Kenichi Handa <handa@m17n.org>
18331 * font.c (Ffontp): Fix docstring.
18333 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18334 strong evidence of ISO-2022.
18336 2008-02-01 Kenichi Handa <handa@m17n.org>
18338 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18339 SYNTAX_ENTRY_FOLLOW_PARENT.
18341 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18343 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18345 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18346 Update to the new type of weak_hash_tables and next_weak.
18348 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18349 a plain C pointer to Lisp_Hash_Table.
18351 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18352 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18353 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18354 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18355 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18356 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18357 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18358 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18359 (GC_EQ): Remove since they've been identical to their non-GC_
18360 alter-egos ever since the markbit was eradicated.
18379 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18381 2008-02-01 Kenichi Handa <handa@m17n.org>
18383 * chartab.c (map_sub_char_table): Make it work for the top-level
18384 char-table. Fix handling of parent char-table.
18385 (map_char_table): Adjust for the above change.
18387 2008-02-01 Jason Rumney <jasonr@gnu.org>
18389 * w32font.c (Qgdi): Rename from Qw32.
18391 2008-02-01 Jason Rumney <jasonr@gnu.org>
18393 * w32bdf.c (get_quoted_string): Make function static.
18395 2008-02-01 Kenichi Handa <handa@m17n.org>
18397 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18398 bigger ascent and descent than those of the font, use them as
18399 font's ascent and descent.
18401 2008-02-01 Kenichi Handa <handa@m17n.org>
18403 * Makefile.in (${lispsource}international/charprop.el): Move this
18404 target within "#ifdef HAVE_UNIDATA" and "#endif".
18406 2008-02-01 Kenichi Handa <handa@m17n.org>
18408 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18409 (shortlisp): Add ../lisp/language/tai-viet.el.
18411 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18413 * Makefile.in (${lispsource}international/charprop.el): Depend on
18416 2008-02-01 Jason Rumney <jasonr@gnu.org>
18418 * w32font.c (w32font_close): Delete the GDI font object.
18420 * w32menu.c: Include character.h.
18422 * w32proc.c: Likewise.
18424 * w32select.c: Likewise.
18426 * makefile.w32-in (w32proc.o): Depend on character.h.
18428 2008-02-01 Jason Rumney <jasonr@gnu.org>
18430 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18432 * w32menu.c (syms_of_w32menu): Likewise.
18434 * w32proc.c (syms_of_ntproc): Likewise.
18436 * w32select.c (syms_of_w32select): Likewise.
18438 * w32term.c (syms_of_w32term): Likewise.
18440 2008-02-01 Jason Rumney <jasonr@gnu.org>
18442 * w32font.c (w32font_draw): Delete brush after using it.
18444 2008-02-01 Jason Rumney <jasonr@gnu.org>
18446 * w32font.c (w32font_open): Don't set font_idx.
18447 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18449 (w32font_draw): Fill background explicitly.
18451 2008-02-01 Jason Rumney <jasonr@gnu.org>
18453 * w32term.c (w32_initialize): Don't call w32font_initialize.
18455 * w32font.c (w32font_info): Remove subranges.
18456 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18457 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18458 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18459 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18460 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18461 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18462 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18463 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18464 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18465 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18467 (font_callback_data): New struct.
18468 (w32font_list, w32font_match): Use it.
18469 (w32font_open): Don't populate subranges.
18470 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18471 (w32font_encode_char): Always return unicode code-point as-is.
18472 (w32font_text_extents): Supply a transformation matrix to
18473 GetGlyphOutline. Never look up by glyph index. Avoid looping
18474 twice. Use unicode version of GetTexExtentPoint32 instead of
18475 glyph index version.
18476 (set_fonts_frame): Remove.
18477 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18478 set frame parameter. Use backward compatible fake foundries.
18479 Save generic family in extra slot under QCfamily. Make width slot
18480 constant. Save QCspacing value. Save list of scripts instead of
18482 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18483 (add_font_entity_to_list): Use font_callback_data struct. Filter
18485 (add_one_font_entity_to_list): Use font_callback_data struct.
18486 (w32_registry): Default to iso10646_1.
18487 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18488 string font registries. Don't fill in font name if it is a generic
18489 family name, fill family instead. Use spacing, family and script
18490 extra info to fill pitch, family and charset fields.
18491 (list_all_matching_fonts): Use font_callback_data struct.
18492 (unicode_range_for_char): Remove.
18493 (font_supported_scripts): New function.
18494 (w32font_initialize): Remove.
18495 (syms_of_w32font): Update which symbols are defined.
18497 2008-02-01 Jason Rumney <jasonr@gnu.org>
18499 * font.c (font_pixel_size): Reverse assq_no_quit args.
18501 * w32term.h (FONT_WIDTH): Report max width, not average.
18502 (FONT_MAX_WIDTH): Remove.
18503 (FONT_AVG_WIDTH): New macro.
18505 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18506 redefinition of FONT_WIDTH.
18508 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18509 (w32_cache_char_metrics): Use FONT_WIDTH.
18511 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18513 2008-02-01 Jason Rumney <jasonr@gnu.org>
18515 * w32font.c (w32font_open): Make lfHeight negative.
18517 * w32fns.c (x_default_font_parameter): Use new style font name.
18518 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18520 2008-02-01 Jason Rumney <jasonr@gnu.org>
18522 * w32font.c (QCsubranges): New symbol.
18523 (w32font_open, w32font_has_char): Get subranges from subproperty
18525 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18526 (syms_of_w32font): Define :subranges symbol.
18528 * font.c (font_put_extra): Expose externally.
18530 * font.h (font_put_extra): Move declaration from font.c.
18532 * font.c (Ffont_get): Use font driver to determine otf capability.
18533 (adjust_anchor): Check if driver defines anchor_point before using.
18535 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18536 (w32font_draw): Use options.
18537 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18538 Fix detection of truetype fonts.
18539 (registry_to_w32_charset): Handle charsets other than iso8859-1
18540 expressed as lisp symbols.
18541 (w32_registry): Express charset as lisp symbol.
18542 (fill_in_logfont): Reverse pixel and point height logic.
18543 Don't set width here. Set quality to default.
18545 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18546 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18548 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18549 Remove redundant loop and allocation.
18551 * makefile.w32-in (font.o, w32font.o): New objects.
18552 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18553 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18555 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18556 STORE_XCHARB a valid l-value.
18558 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18559 calculations for non-Truetype fonts.
18560 (x_draw_glyph_string): Sync with xterm.c.
18561 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18562 Remove redundant code.
18563 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18565 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18566 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18568 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18569 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18571 * w32font.c: New file for w32 font backend.
18573 2008-02-01 Kenichi Handa <handa@m17n.org>
18575 * term.c: Don't include "buffer.h" twice.
18577 2008-02-01 Kenichi Handa <handa@m17n.org>
18579 * character.c (Funibyte_string): New function.
18580 (syms_of_character): Defsubr it.
18582 2008-02-01 Jason Rumney <jasonr@gnu.org>
18584 * w32term.c [USE_FONT_BACKEND]:
18585 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18586 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18587 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18588 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18589 (x_free_frame_resources): Sync with xterm.c.
18591 2008-02-01 Andreas Schwab <schwab@suse.de>
18593 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18596 2008-02-01 Kenichi Handa <handa@m17n.org>
18598 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18600 2008-02-01 Kenichi Handa <handa@m17n.org>
18602 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18603 font_otf_gpos, add font_drive_otf.
18605 * fontset.c (fontset_find_font): Pay attention to font size
18606 specified for a font.
18607 (reorder_font_vector): Check contents of font_def.
18609 * font.c (struct otf_list): Delete it.
18610 (otf_list): Make it a lisp variable.
18611 (otf_open): Use lispy otf_list.
18612 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18613 (check_otf_features): New function.
18614 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18616 (font_drive_otf): New function merging font_otf_gsub and
18618 (font_open_for_lface): New arg spec. Change argument order.
18619 (font_load_for_face): Adjust for the change of font_open_for_lface.
18620 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18622 (syms_of_font): Staticpro otf_list. Delete defsubr of
18623 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18625 * xfaces.c (set_font_frame_param): Adjust for the change of
18626 font_open_for_lface.
18628 * font.h (font_open_for_lface): Adjust prototype.
18629 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18631 (font_otf_gsub, font_otf_gpos): Delete externs.
18632 (font_drive_otf): Extern it.
18634 2008-02-01 Kenichi Handa <handa@m17n.org>
18636 * font.c (font_at): If the window W is not on a window system,
18639 * coding.c (produce_chars, encode_coding): Don't call
18640 insert_from_gap if no characters to produce.
18642 2008-02-01 Kenichi Handa <handa@m17n.org>
18644 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18647 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18649 2008-02-01 Miles Bader <miles@gnu.org>
18651 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18652 Parse "--disable-font-backend" option.
18653 (standard_args): Add "--disable-font-backend" option.
18655 2008-02-01 Kenichi Handa <handa@m17n.org>
18657 * fontset.c (fontset_find_font): New function.
18658 (fontset_font): Use fontset_find_font.
18659 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18660 Register the specified font for all Latin characters.
18661 (new_fontset_from_font): Register the specified font for all Latin
18663 (dump_fontset): For a realized fontset, include the base fontset
18664 name in the returned vector.
18666 2008-02-01 Kenichi Handa <handa@m17n.org>
18668 * character.h (CHAR_STRING): Cast C to unsigned on calling
18671 * character.c (char_string): Type of arg C changed to unsigned.
18672 Signal an error if C is an invalid character code.
18674 * editfns.c (general_insert_function, Fchar_to_string):
18675 Use CHARACTERP, not INTEGERP.
18677 2008-02-01 Kenichi Handa <handa@m17n.org>
18679 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18680 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18682 * regex.c (analyse_first): Fix for multibyte characters in "case
18683 charset:" and "case categoryspec:".
18685 2008-02-01 Andreas Schwab <schwab@suse.de>
18687 * Makefile.in (LIBES): Move standard libraries to the end.
18689 2008-02-01 Kenichi Handa <handa@m17n.org>
18691 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18692 nonzero, don't shrink the buffer nextb.
18694 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18696 * coding.c (coding_alloc_by_making_gap): New arg offset.
18697 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18699 (decode_coding_iso_2022): Update coding->safe_charsets.
18700 (decode_coding_gap): Temporarily set
18701 current_buffer->text->inhibit_shrinking to 1.
18703 2008-02-01 Kenichi Handa <handa@m17n.org>
18705 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18706 indexing into elements of s->cmp and s->char2b.
18708 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18710 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18712 2008-02-01 Kenichi Handa <handa@m17n.org>
18714 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18715 target_multibyte instead of multibyte.
18716 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18717 (bcmp_translate): Change the argument name from multibyte to
18720 2008-02-01 Kenichi Handa <handa@m17n.org>
18722 These changes are to compile a regexp into a pattern that can be
18723 used both for multibyte and unibyte targets.
18725 * Makefile.in (search.o): Depend on charset.h.
18727 * character.c (multibyte_char_to_unibyte_safe): New function.
18729 * search.c: Include "charset.h".
18730 (compile_pattern_1): Delete argument multibyte. Don't set
18731 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18732 (compile_pattern): Don't compare cp->buf.target_multibyte.
18733 Compare cp->buf.charset_unibyte.
18734 (compile_pattern): Set cp->buf.target_multibyte.
18736 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18738 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18740 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18741 multibyte. Change callers.
18742 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18743 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18744 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18745 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18746 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18747 (regex_compile): Make the compiled pattern usable both for
18748 multibyte and unibyte targets.
18749 (analyse_first): Make the fastmap usable both for multibyte and
18751 (TRANSLATE_VIA_MULTIBYTE): Delete.
18752 (re_match_2_internal): Pay attention to the case that the
18753 multibyteness of bufp and target may be different.
18755 2008-02-01 Kenichi Handa <handa@m17n.org>
18757 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18758 empty box occupy at least one column width.
18760 2008-02-01 Miles Bader <miles@gnu.org>
18762 * Makefile.in: Remove redundant HAVE_XFT clause.
18764 2008-02-01 Kenichi Handa <handa@m17n.org>
18766 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18768 2008-02-01 Kenichi Handa <handa@m17n.org>
18770 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18773 2008-02-01 Kenichi Handa <handa@m17n.org>
18775 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18777 2008-02-01 Kenichi Handa <handa@m17n.org>
18779 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18781 2008-02-01 Kenichi Handa <handa@m17n.org>
18783 * search.c (simple_search): Fix previous change.
18785 2008-02-01 Kenichi Handa <handa@m17n.org>
18787 * xftfont.c (ftfont_font_format): Extern declaration.
18789 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18791 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18792 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18794 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18795 (ftfont_font_format): Fix previous change.
18797 * font.h (Ffont_xlfd_name): EXFUN it.
18799 * font.c (font_parse_xlfd): Fix the array size of `f'.
18800 (register_font_driver): Use EQ to compare driver->type.
18802 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18803 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18804 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18806 2008-02-01 Kenichi Handa <handa@m17n.org>
18808 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18809 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18811 2008-02-01 Kenichi Handa <handa@m17n.org>
18813 * xfont.c (xfont_open): Set font->format.
18815 * xftfont.c (xftfont_open): Set font->format.
18817 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18818 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18819 (ftfont_open): Set font->format.
18820 (ftfont_font_format): New function.
18822 * font.h (struct font): New member format.
18824 * font.c (Qopentype): New variable.
18825 (syms_of_font): Defsym it.
18826 (Fquery_font): Change the format of the last element of the return
18829 2008-02-01 Kenichi Handa <handa@m17n.org>
18831 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18834 2008-02-01 Kenichi Handa <handa@m17n.org>
18836 * coding.c (detect_coding_charset): Fix detection of multi-byte
18839 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18841 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18843 2008-02-01 Kenichi Handa <handa@m17n.org>
18845 * xdisp.c (get_next_display_element): Set it->face_id for the
18846 first component of a composition.
18847 (x_produce_glyphs): Check if the font is changed or not for composition.
18849 2008-02-01 Kenichi Handa <handa@m17n.org>
18851 * fontset.c (Qlatin): New variable.
18852 (syms_of_fontset): Define it as a lisp symbol.
18853 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18855 2008-02-01 Kenichi Handa <handa@m17n.org>
18857 * font.c (font_unparse_fcname): Pay attention to the case that
18858 some of font property is a null string.
18860 2008-02-01 Kenichi Handa <handa@m17n.org>
18862 * term.c: Include "composite.h".
18863 (encode_terminal_code): Output all components of composition.
18864 Check the size of encode_terminal_src.
18865 (produce_glyphs): For composition, call produce_composite_glyph.
18866 (append_composite_glyph, produce_composite_glyph): New functions.
18868 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18869 is not found, get font_info from the current ascii face.
18871 2008-02-01 Kenichi Handa <handa@m17n.org>
18873 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18874 buffer-file-name to Qnil before calling insert_from_buffer.
18876 * font.c (font_unparse_fcname): Pay attention to the case that
18877 foundry is a null string.
18879 2008-02-01 Kenichi Handa <handa@m17n.org>
18881 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18883 * font.c (Qunicode_sip): New variable.
18884 (syms_of_font): Declare it as a Lisp symbol.
18886 * font.h (Qunicode_sip): Extern it.
18888 2008-02-01 Kenichi Handa <handa@m17n.org>
18890 * composite.c (get_composition_id): Pay attention to TAB component.
18892 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18893 TAB. Adjust for the change of s->char2b which always points to
18894 the first element of allocated memory.
18896 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18898 * xdisp.c (handle_composition_prop): Set it->c to the first
18900 (fill_composite_glyph_string): Change argument.
18901 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18902 (x_produce_glyphs): Fix handling of left/right padding.
18904 2008-02-01 Kenichi Handa <handa@m17n.org>
18906 * coding.c (detect_coding_system): Fix for handling off
18907 inhibit_iso_escape_detection. Fix for the case that no coding
18908 system is defined for a specific coding category.
18910 2008-02-01 Kenichi Handa <handa@m17n.org>
18912 * font.c (font_matching_entity): Delete unused local var.
18914 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18917 * fileio.c (Finsert_file_contents): On recovering a file, assume
18919 (choose_write_coding_system): On auto-saving a file, force
18922 * coding.c (setup_coding_system): Fix setting of
18923 coding->common_flags based on eol_type.
18924 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18927 2008-02-01 Kenichi Handa <handa@m17n.org>
18929 * alloc.c (NSTATICS): Increas to 0x600.
18931 2008-02-01 Kenichi Handa <handa@m17n.org>
18933 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18934 (ftfont_list): Don't check :name property.
18935 (ftfont_match): New function.
18936 (ftfont_pattern_entity): If the pattern doesn't contain
18937 FC_SPACING, don't assume FC_MONO.
18939 * font.h (struct font_driver): New member `match'.
18940 (font_update_drivers): Adjust prototype.
18942 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18944 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18945 them unconditionally.
18946 (font_matching_entity): New function.
18947 (font_open_by_name): Try font_matching_entity if exact match is
18949 (font_update_drivers): Delete the arg FONT. Return a list of
18950 actually used backends. Don't free faces, font caches here.
18951 Don't store data in frame parameters. Don't call x_set_font.
18952 (Ffont_spec): Store :name property as is.
18953 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18954 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18955 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18956 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18957 Call font->driver->otf_gsub instead of font_otf_gsub.
18959 * frame.c (x_set_font_backend): Do more works that were done in
18960 font_update_drivers before.
18962 * xfont.c (xfont_match): New function.
18963 (xfont_driver): Set xfont_driver.match to xfont_match.
18964 (xfont_draw): Set font in GC if necessary.
18966 * ftxfont.c (ftxfont_match): New function.
18967 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18969 * xftfont.c (xftfont_match): New function.
18970 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18972 2008-02-01 Kenichi Handa <handa@m17n.org>
18974 * font.h (struct font): New member scalable.
18975 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18976 (font_otf_gsub): Adjust prototype.
18978 * font.c (font_otf_capability): Fix handling of the default langsys.
18979 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18980 Check the contents of SPEC.
18981 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18982 (check_gstring): New function.
18983 (REPLACEMENT_CHARACTER): New macro.
18984 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18985 glyph codes of GSTRING.
18986 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18987 (font_prepare_composition): Set cmp->glyph_len.
18988 (font_open_entity): Set font->scalable.
18989 (Ffont_get): Handle :otf property.
18990 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18992 (Fquery_font): Use font->font.full_name.
18993 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18994 Sfont_otf_alternates.
18996 * ftfont.c (ftfont_open): Set font->font.full_name and
18997 font->font.name properly. Fix calculation of font->font.height
18998 and font->min_width.
19000 * ftxfont.c (ftxfont_create_gcs): New function.
19001 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19002 (ftxfont_draw_backgrond): Fix filling region.
19003 (ftxfont_default_fid): New function.
19004 (ftxfont_open): Set xfont->fid to the return value of
19005 ftxfont_default_fid.
19006 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19007 (ftxfont_done_face): Free only GCs that are created by
19008 ftxfont_create_gcs.
19009 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19011 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19012 Clip to src->width, etc (not src->clip_XXX).
19014 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19015 FontBackend frame parameter.
19017 2008-02-01 Kenichi Handa <handa@m17n.org>
19019 * font.h (struct font_driver_list): New member `on'.
19020 (Fclear_font_cache): EXFUN it.
19021 (font_update_drivers): Extern it.
19023 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19024 (font_list_entities): Check driver_list->on.
19025 (register_font_driver): Initalize `on' member to 0.
19026 (font_update_drivers): New function.
19027 (Fclear_font_cache): Check driver_list->on.
19029 * frame.h (Qfont_backend): Extern it.
19030 (x_set_font_backend): Extern it.
19032 * frame.c (Qfont_backend): New variable.
19033 (frame_parms): New element for font-backend.
19034 (x_set_font_backend): New function.
19036 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19037 FontBackend frame parameter.
19038 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19039 x_set_font_backend.
19041 * xfont.c (xfont_list): Don't try listing by :name property if the
19042 name is not for XLFD.
19044 2008-02-01 Kenichi Handa <handa@m17n.org>
19046 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19047 (LGLYPH_SET_TO): New macros.
19048 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19049 element of G is vector or not.
19050 (font_at): Extern it.
19052 * font.c: Include window.h.
19053 (font_lispy_object): New function.
19054 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19055 end of valid glyph.
19056 (font_close_object): Fix getting (struct font *).
19057 (font_at): New function.
19058 (Ffont_get): If FONT is a font-object, get entity from it.
19059 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19060 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19062 (Ffont_at): New function.
19063 (syms_of_font): Defsubr Sfont_at.
19065 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19066 before the entry for Qcomposition.
19067 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19068 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19069 the font in gstring.
19070 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19071 LGLYPH_FORM (g) to detect the end of valid glyph.
19072 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19073 we are composing with gstring.
19075 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19076 Check if adjustment is vector or not.
19078 * Makefile.in (font.o): Make it depends on window.h.
19080 2008-02-01 Kenichi Handa <handa@m17n.org>
19082 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19083 adjustment is vector or not.
19085 2008-02-01 Miles Bader <miles@gnu.org>
19087 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19089 2008-02-01 Kenichi Handa <handa@m17n.org>
19091 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19092 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19093 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19095 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19096 (DEVICE_DELTA): Fix typo.
19097 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19100 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19101 the change of LGLYPH format.
19103 2008-02-01 Kenichi Handa <handa@m17n.org>
19105 * ftfont.c (ftfont_list): Fix typo.
19106 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19108 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19110 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19112 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19113 xftface_info is non-NULL.
19115 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19117 * ftfont.c (ftfont_list): Move misplaced #endif.
19119 2008-02-01 Kenichi Handa <handa@m17n.org>
19121 * ftfont.c (ftfont_list): Pay attention to the case that
19122 FC_CAPABILITY is not defined.
19124 2008-02-01 Kenichi Handa <handa@m17n.org>
19126 * xftfont.c (xftfont_open): Set charset related members to -1.
19128 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19130 (ftfont_open): Set charset related members to -1.
19132 * fontset.c (Votf_script_alist): New variable.
19133 (syms_of_fontset): Initialize it.
19134 (fontset_font): Delete unused variable.
19136 * fontset.h (Votf_script_alist): Extern it.
19138 * font.c (font_find_for_lface): Optimize code.
19140 * font.h (font_close_object, font_merge_old_spec): Extern them.
19142 2008-02-01 Kenichi Handa <handa@m17n.org>
19144 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19145 (syms_of_font): Initialize them.
19146 (font_pixel_size): Allow float value in dpi.
19147 (font_prop_validate_type): Delete.
19148 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19150 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19151 (font_prop_validate_extra): Delete.
19152 (font_prop_validate_spacing): New function.
19153 (font_property_table): Add elements for all known properties.
19154 (get_font_prop_index): Rename from check_font_prop_name. New
19155 argument FROM. Change caller.
19156 (font_prop_validate): Validate all known properties.
19157 (font_put_extra): Delete argument force. Change caller.
19158 (font_expand_wildcards): Make it static. Fix the way of shrinking
19159 the possible range.
19160 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19161 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19163 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19164 (font_parse_fcname): Delete argument merge. Fix parsing of point
19165 size. Don't validate properties values here. Change caller.
19166 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19167 (font_open_by_name): Delete unused variable.
19168 (Ffont_spec): Likewise. Validate property values.
19169 (Ffont_match_p): New function.
19171 * font.h (QCscalable): Extern it.
19172 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19174 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19176 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19177 (xfont_list_pattern): New function.
19178 (xfont_list): Use xfont_list_pattern.
19180 2008-02-01 Kenichi Handa <handa@m17n.org>
19182 * font.h (Flist_fonts): EXFUN it.
19184 2008-02-01 Jason Rumney <jasonr@gnu.org>
19186 * w32term.c (w32_initialize): Add back smoothing_type and
19187 smoothing_enabled definitions.
19189 2008-02-01 Kenichi Handa <handa@m17n.org>
19191 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19192 s->face->font on determining underline position.
19194 2008-02-01 Kenichi Handa <handa@m17n.org>
19196 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19197 (font_has_char): Accept font-object too.
19198 (font_find_for_lface): Try at first with a size specified in face.
19200 2008-02-01 Kenichi Handa <handa@m17n.org>
19202 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19205 2008-02-01 Kenichi Handa <handa@m17n.org>
19207 * font.h (QCspacing, QCdpi): Extern them.
19208 (enum font_spacing): New enum.
19209 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19211 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19212 (QCspacing, QCdpi): New variables.
19213 (syms_of_font): Initialize them.
19214 (font_pixel_size): New function.
19215 (font_put_extra): New function.
19216 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19218 (font_parse_fcname): Handle enumerated values (e.g. bold).
19219 Fix handling font size. Add QCname property that contains only
19220 unknown properties.
19221 (font_score): Change argument. Change caller. Pay attention to
19222 FONT_PIXEL_SIZE_QUANTUM.
19223 (font_sort_entites, font_list_entities, font_find_for_lface)
19224 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19225 (Ffont_spec): Add QCname property that contains only unknown properties.
19227 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19228 include weight in listing pattern, instead check weight of each
19229 listed font. Don't include scalable in pattern. Pay attention to
19230 FONT_PIXEL_SIZE_QUANTUM.
19232 2008-02-01 Kenichi Handa <handa@m17n.org>
19234 * font.c (font_parse_fcname): Fix parsing of point-size.
19235 (font_unparse_fcname): Produce symbolic names for style properties.
19236 (font_list_entities): Handle float size correctly.
19237 (font_open_by_name): Prefer `normal' property values if the name
19238 doesn't specify them.
19240 * fontset.c (Finternal_char_font): Use font_get_name, not
19243 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19244 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19245 pattern. Don't force scalable.
19247 * xftfont.c (xftfont_open): For generating a name, start from
19250 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19252 * frame.h (x_new_fontset2): Fix prototype.
19254 2008-02-01 Kenichi Handa <handa@m17n.org>
19256 * font.h (struct font_driver): Delete member parse_name.
19257 (font_match_p, font_get_spec, font_parse_fcname)
19258 (font_unparse_fcname): Extern them.
19259 (font_get_name): Adjust prototype.
19261 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19262 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19263 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19264 unnecessary checks for weight, slant, and swidth.
19265 (font_parse_fcname): New function.
19266 (font_unparse_fcname): New function.
19267 (font_parse_name): New function.
19268 (font_match_p): New function.
19269 (font_get_name): Change return value to Lisp string.
19270 (font_get_spec): New function.
19271 (Qunspecified, Qignore_defface): Don't extern them.
19272 (font_find_for_lface): Assume that LFACE is fully specified.
19273 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19274 object, use it for FACE.
19275 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19276 driver->parse_name.
19277 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19279 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19282 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19283 argument F. Don't call Fnew_fontset. Instead, directly call
19286 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19288 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19291 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19292 (Qsans__serif): New variables.
19293 (ftfont_generic_family_list): New variable.
19294 (syms_of_ftfont): Initialize the above variables.
19295 (ftfont_pattern_entity): Delete argument NAME.
19296 (ftfont_list_generic_family): New function.
19297 (ftfont_parse_name): Delete this function.
19298 (ftfont_list): Try generic family only when FcFontList found no font.
19299 (ftfont_list_family): Fix args to FcObjectSetBuild.
19301 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19302 object in attrs[LFACE_FONT_INDEX].
19303 (set_lface_from_font_name): Cancel all changes for font-backend.
19304 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19306 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19307 font object in QCfont attribute.
19308 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19309 (realize_default_face) [USE_FONT_BACKEND]: Call
19310 set_lface_from_font_and_fontset.
19312 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19313 "fixed", and signal error here if no suitable font was found.
19315 * xfont.c (xfont_parse_name): Delete this function.
19317 * xftfont.c (xftfont_open): Change coding style of error
19318 handling. Generate fontconfig's fontname pattern.
19320 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19321 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19323 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19324 Both args FONTSET and FONT_OBJECT must be existing ones.
19326 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19328 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19330 2008-02-01 Kenichi Handa <handa@m17n.org>
19332 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19334 * font.h (struct font): Fix typo.
19336 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19338 (enum xlfd_field_mask): New enum.
19339 (intern_font_field): Changed argument. Change caller. If digits
19340 are followed by non-digits, return a symbol.
19341 (font_expand_wildcards): New function.
19342 (font_parse_xlfd): Fix wildcard handling.
19343 (Ffont_spec): If :name is specified, reflect the info in the other
19346 * ftfont.c (ftfont_pattern_entity): Fix typo.
19347 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19350 2008-02-01 Kenichi Handa <handa@m17n.org>
19352 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19354 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19355 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19356 registry doesn't specify encoding part.
19357 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19358 (font_open_by_name): At first try parsing the name.
19359 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19362 * fontset.c (reorder_font_vector): Pay attention to the case that
19363 the 3rd element of font_def is nil.
19364 (fontset_font): For the default fontset, append one more fontset
19365 elements for a script-based font specification. Don't add script
19366 attribute on finding a font.
19367 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19369 (fontset_ascii_font): If a font can't be opened, return nil.
19371 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19372 (ftfont_pattern_entity): New function.
19373 (ftfont_get_cache): Assume that freetype_font_cache is already
19375 (ftfont_list): Handle the case that a file is specified in font
19376 name. Use ftfont_pattern_entity to generate entities.
19377 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19378 (syms_of_ftfont): Initialize freetype_font_cache.
19380 * xftfont.c (xftfont_open): Make the font name fontconfig's
19381 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19382 (xftfont_close): Free font->font.name if not NULL.
19384 * xfont.c (xfont_list): If script is specified for a font, return
19386 (xfont_list_family): Declare argument type.
19388 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19389 name, set LFACE_FONT (lface) to nil.
19391 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19394 2008-02-01 Kenichi Handa <handa@m17n.org>
19396 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19397 (standard_args): Add "-enable-font-backend".
19399 2008-02-01 Kenichi Handa <handa@m17n.org>
19401 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19402 (struct xftdraw_list, xftdraw_list): Delete them.
19403 (register_xftdraw, check_xftdraw): Delete them.
19404 (xftfont_prepare_face): Don't call register_xftdraw.
19405 (xftfont_done_face): Don't call check_xftdraw.
19406 (xftfont_draw): Get background color only when with_background is
19409 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19411 2008-02-01 Kenichi Handa <handa@m17n.org>
19413 These changes are for the new font handling codes.
19415 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19416 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19417 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19418 (FONTSRC, FONTOBJ): New variables.
19419 (obj): Add $(FONTOBJ).
19420 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19421 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19423 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19424 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19426 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19428 * character.h (Vscript_representative_chars): Extern it.
19430 * character.c (Vscript_representative_chars): New variable.
19431 (syms_of_character): Declare it as a Lisp variable.
19433 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19434 enable_font_backend is nonzero, accept the composition method
19435 COMPOSITION_WITH_GLYPH_STRING.
19437 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19438 enumeration COMPOSITION_WITH_GLYPH_STRING.
19440 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19441 members clip_x, clip_y, clip_width, and clip_height.
19442 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19444 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19445 --enable-font-backend. Call syms_of_font.
19447 * fns.c (assoc_no_quit): New function.
19449 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19450 (face_for_font, new_fontset_from_font)
19451 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19453 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19454 (fontset_font, fontset_ascii, face_for_char)
19455 (make_fontset_for_ascii_face, Ffont_info)
19456 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19457 is nonzero, use font-backend mechanism.
19458 (find_font_encoding): Make it non-static.
19459 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19462 * frame.h (struct frame): New members resx and resy.
19463 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19464 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19466 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19467 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19469 * lisp.h (assoc_no_quit): Extern it.
19471 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19472 Through out the file, use FONT_INFO_FROM_FACE instead of
19473 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19474 rif->per_char_metric.
19475 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19476 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19477 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19478 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19479 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19480 nonzero, use font-backend mechanism.
19481 (get_per_char_metric): New function.
19483 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19484 (set_lface_from_font_name)
19485 (set_font_frame_param, free_realized_face)
19486 (prepare_face_for_display, clear_face_gcs)
19487 (Finternal_set_font_selection_order, realize_x_face)
19488 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19489 font-backend mechanism.
19490 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19491 (load_face_font) [USE_FONT_BACKEND]: Abort.
19492 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19493 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19495 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19496 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19497 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19498 nonzero, register all available font drivers. Call
19499 x_default_font_parameter for deciding a font.
19500 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19502 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19503 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19504 (x_set_glyph_string_clipping_exactly)
19505 (x_compute_glyph_string_overhangs)
19506 (x_draw_glyph_string_foreground)
19507 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19508 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19509 enable_font_backend is nonzero, use font-backend mechanism.
19510 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19512 2008-02-01 Kenichi Handa <handa@m17n.org>
19514 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19516 (syms_of_coding): Initialize system_eol_type.
19518 * process.c (Fset_process_coding_system): Inherit system's eol
19519 format if necessary.
19521 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19523 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19525 2008-02-01 Kenichi Handa <handa@m17n.org>
19527 * coding.c (decode_eol): Pay attention to buffer relocation in
19529 (decode_coding): Call decode_eol before restoring undo_list.
19531 2008-02-01 Kenichi Handa <handa@m17n.org>
19533 * charset.c (Fdefine_charset_internal): Fix setting of
19536 2008-02-01 Kenichi Handa <handa@m17n.org>
19538 * keyboard.c (read_char): Check if C is a character or not before
19539 looking up Vkeyboard_translate_table.
19541 2008-02-01 Kenichi Handa <handa@m17n.org>
19543 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19544 condition to terminate the loop.
19546 2008-02-01 Kenichi Handa <handa@m17n.org>
19548 * coding.c (produce_composition): Compare charbuf[i] instead of
19550 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19552 2008-02-01 Kenichi Handa <handa@m17n.org>
19554 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19555 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19556 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19558 (emacs_mule_char): Handle old style (Emacs 20) component character
19560 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19561 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19563 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19565 2008-02-01 Kenichi Handa <handa@m17n.org>
19567 * coding.c (encode_coding_ccl): Allocate destination dynamically
19570 2008-02-01 Kenichi Handa <handa@m17n.org>
19572 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19573 the loop. When quitted, show a proper error message.
19575 2008-02-01 Kenichi Handa <handa@m17n.org>
19577 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19578 src->clip_head and src->clip_tail temporarily instead of src->hl.
19580 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19581 character sequence.
19582 (Fccl_execute_on_string): Use ASET, not XSET.
19584 2008-02-01 Kenichi Handa <handa@m17n.org>
19586 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19588 2008-02-01 Kenichi Handa <handa@m17n.org>
19590 * coding.c (decode_coding): Fix the condition of terminating the
19593 2008-02-01 Kenichi Handa <handa@m17n.org>
19595 * data.c (Faset): On setting a character bigger than 255 in a
19596 unibyte string, signal an error instead of make the string multibyte.
19598 2008-02-01 Kenichi Handa <handa@m17n.org>
19600 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19601 made by a mapping table.
19603 2008-02-01 Kenichi Handa <handa@m17n.org>
19605 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19607 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19608 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19610 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19611 s->face is NULL or not.
19613 2008-02-01 Kenichi Handa <handa@m17n.org>
19615 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19616 (x_draw_glyph_string): Fix drawing of right_overhang and
19617 left_overhang around/on cursor.
19619 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19621 2008-02-01 Kenichi Handa <handa@m17n.org>
19623 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19625 2008-02-01 Kenichi Handa <handa@m17n.org>
19627 * coding.c (Fdefine_coding_system_internal)
19628 (Fdefine_coding_system_alias): Avoid a duplicated element in
19629 Vcoding_system_alist.
19631 2008-02-01 Kenichi Handa <handa@m17n.org>
19633 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19635 * coding.c (Qcoding_system_define_form): New variable.
19636 (syms_of_coding): Intern and staticpro it.
19637 (Fcoding_system_p): Check Qcoding_system_define_form.
19638 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19640 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19642 (CHECK_CODING_SYSTEM): If ID is not available, call
19643 Fcheck_coding_system.
19644 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19645 Try also Fcheck_coding_system.
19647 2008-02-01 Kenichi Handa <handa@m17n.org>
19649 * coding.c (code_conversion_restore): GCPRO arg.
19651 2008-02-01 Kenichi Handa <handa@m17n.org>
19653 * character.c (lisp_string_width): Check multibyteness of STRING.
19655 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19657 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19658 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19659 (decode_mac_font_name): Use decode_coding_c_string instead of
19661 (x_load_font): Initialize fontp->fontset to -1. Set
19662 fontp->encoding_type.
19664 2008-02-01 Kenichi Handa <handa@m17n.org>
19666 * search.c (search_buffer): Give up BM search on case-fold-search
19667 if one of a target character has a case-equivalence of different
19668 byte length even if that target charcter is an ASCII.
19669 (simple_search): Fix calculation of byte length of matched text.
19670 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19672 2008-02-01 Kenichi Handa <handa@m17n.org>
19674 * coding.c (decode_coding): Fix handling of invalid bytes.
19676 2008-02-01 Kenichi Handa <handa@m17n.org>
19678 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19679 Unicode characters.
19681 2008-02-01 Kenichi Handa <handa@m17n.org>
19683 * coding.c (encode_coding_object): If a pre-write-conversion
19684 function makes a new buffer, kill it.
19686 2008-02-01 Kenichi Handa <handa@m17n.org>
19688 * coding.c (QCascii_compatible_p): New variable.
19689 (syms_of_coding): Initialize it.
19690 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19691 calling string_char.
19692 (record_conversion_result): Add `default:' case.
19693 (coding_charset_list): Delete unused variable `coding_type'.
19694 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19695 property in the plist of the coding system.
19696 (Fcoding_system_put): Check QCascii_compatible_p.
19698 2008-02-01 Miles Bader <miles@gnu.org>
19700 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19701 removed calculation of frame `f', as it's now used.
19703 2008-02-01 Kenichi Handa <handa@m17n.org>
19705 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19706 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19707 (UNIDATA): New variable.
19708 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19709 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19710 $(RUN_TEMACS) unconditionally.
19712 2008-02-01 Kenichi Handa <handa@m17n.org>
19714 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19715 (admindir): New variable.
19716 ($(lispsource)international/charprop.el): New target.
19718 2008-02-01 Miles Bader <miles@gnu.org>
19720 * character.c (chars-in-region): Remove obsolete function.
19721 (syms_of_character): Remove its initialization.
19723 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19725 * w32select.c (validate_coding_system)
19726 (setup_windows_coding_system): New functions.
19727 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19728 setup_windows_coding_system.
19729 (setup_config, Fw32_get_clipboard_data): Use
19730 validate_coding_system.
19731 (Fx_selection_exists): Move call to setup_config to a place
19732 where signals are allowed.
19734 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19735 (Fcheck_coding_system): Add declarations.
19737 2008-02-01 Kenichi Handa <handa@m17n.org>
19739 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19741 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19743 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19744 string as the second argument for x_new_fontset.
19746 2008-02-01 Kenichi Handa <handa@m17n.org>
19748 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19749 (encode_coding_object): Use safe_call instead of call2.
19751 2008-02-01 Kenichi Handa <handa@m17n.org>
19753 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19755 * Makefile.in (lisp): Include charprop.el.
19757 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19759 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19760 Not sure if it's unnecessary.
19762 2008-02-01 Steven Tamm <steventamm@mac.com>
19764 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19765 some possibly unnecessary fontset checking code that crashed
19766 when creating a new frame.
19768 2008-02-01 Kenichi Handa <handa@m17n.org>
19770 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19773 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19775 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19777 2008-02-01 Kenichi Handa <handa@m17n.org>
19779 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19780 (coding_charset_list): New function.
19782 * coding.h (coding_charset_list): Extern it.
19784 2008-02-01 Kenichi Handa <handa@m17n.org>
19786 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19787 concatenation of family and registry.
19789 2008-02-01 Kenichi Handa <handa@m17n.org>
19791 * character.h (BYTE8_STRING): Fix typo.
19793 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19794 string to multibyte (sync to HEAD).
19796 * casefiddle.c (casify_region): Handle changes in byte-length
19797 using replace_range_2 (sync to HEAD).
19799 2008-02-01 Andreas Schwab <schwab@suse.de>
19801 * chartab.c (map_char_table): GCPRO table and arg.
19803 2008-02-01 Kenichi Handa <handa@m17n.org>
19805 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19808 2008-02-01 Kenichi Handa <handa@m17n.org>
19810 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19811 instead of fast_c_string_match_ignore_case.
19812 (find_font_encoding): Change argument to Lisp_Object. Use
19813 fast_string_match_ignore_case instead of
19814 fast_c_string_match_ignore_case. Change caller.
19816 2008-02-01 Kenichi Handa <handa@m17n.org>
19818 * xdisp.c (get_next_display_element): In unibyte case, decide to
19819 display in octal form by checking a character by
19820 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19822 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19824 * character.c (unibyte_has_multibyte_table): New variable.
19826 * character.h (unibyte_has_multibyte_table): Extern it.
19827 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19829 2008-02-01 Kenichi Handa <handa@m17n.org>
19831 * coding.c (encode_coding_iso_2022): Fix handling of charset
19834 2008-02-01 Kenichi Handa <handa@m17n.org>
19836 * coding.c (setup_coding_system): If coding_system is nil, use
19838 (Fterminal_coding_system): Return nil if terminal coding system is
19840 (syms_of_coding): Define coding-system `undecided' here. Setup
19841 terminal_coding as `undecided'.
19843 2008-02-01 Kenichi Handa <handa@m17n.org>
19845 * xdisp.c (message_dolog, set_message_1): Call
19846 unibyte_char_to_multibyte with arg type int.
19848 * lread.c (read1): Fix reading of a char-table.
19850 * print.c (print_object): Include sub char-table in circularities
19853 2008-02-01 Kenichi Handa <handa@m17n.org>
19855 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19856 Append the found sequences in car of ARGS instead of prepending.
19858 2008-02-01 Kenichi Handa <handa@m17n.org>
19860 * fileio.c (report_file_error): Make a unibyte string from
19861 strerror (errorno).
19862 (Fsubstitute_in_file_name): Fix the arg to
19863 unibyte_char_to_multibyte. It is evaluated twice.
19865 2008-02-01 Kenichi Handa <handa@m17n.org>
19867 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19869 2008-02-01 Kenichi Handa <handa@m17n.org>
19871 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19873 (detect_coding, detect_coding_system): Optimization for ISO-2022
19874 when no 8-bit data is found.
19876 2008-02-01 Jason Rumney <jasonr@gnu.org>
19878 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19880 2008-02-01 Kenichi Handa <handa@m17n.org>
19882 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19885 2008-02-01 Steven Tamm <steventamm@mac.com>
19887 * macterm.c (mac_encode_char): Add charset argument and update
19888 to use encoding_type.
19889 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19890 switch to pure fontset.
19891 (decode_mac_font_name): Temporarily remove decoding.
19892 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19893 (x_load_font): Temporarily remove encoding.
19895 2008-02-01 Kenichi Handa <handa@m17n.org>
19897 * xfaces.c (Fface_font): If frame is not on a window system,
19898 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19899 refer to face->font.
19900 (split_font_name_into_vector, build_font_name_from_vector)
19901 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19902 when HAVE_WINDOW_SYSTEM is defined.
19904 2008-02-01 Kenichi Handa <handa@m17n.org>
19906 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19907 (x_produce_glyphs): Fix setting of members of cmp in case
19908 cmp->glyph_len is zero.
19910 * fontset.c (Fset_fontset_font): Fix docstring.
19911 (Ffontset_info): Make it backward compatible. New arg ALL.
19913 2008-02-01 Kim F. Storm <storm@cua.dk>
19915 * process.c (read_process_output): Grow decoding_buf when needed;
19916 this could cause a crash in allocate_string and compact_small_strings.
19918 2008-02-01 Kenichi Handa <handa@m17n.org>
19920 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19922 2008-02-01 Kenichi Handa <handa@m17n.org>
19924 * coding.c (setup_coding_system): Set coding->common_flags
19925 correctly for raw-text.
19926 (consume_chars): On encoding unibyte text by raw-text, don't check
19928 (encode_coding): On encoding by raw-text, never use translation tables.
19930 * fileio.c (e_write): Short cut for the case of no encoding.
19932 2008-02-01 Kenichi Handa <handa@m17n.org>
19934 * coding.c (detect_coding, detect_coding_system): Delete unused
19937 2008-02-01 Kenichi Handa <handa@m17n.org>
19939 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19940 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19942 2008-02-01 Kenichi Handa <handa@m17n.org>
19944 * coding.c (Ffind_coding_systems_region_internal): Include
19945 raw-text and no-conversion in the result.
19947 2008-02-01 Kenichi Handa <handa@m17n.org>
19949 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19950 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19952 (font_def_arg, add_arg, from_arg, to_arg): New args.
19953 (set_fontset_font): Change argument.
19954 (Fset_fontset_font): Fix for the case that TARGET is a script
19955 name and charset name.
19956 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19958 2008-02-01 Kenichi Handa <handa@m17n.org>
19960 * fontset.c (fontset_font): Rename from fontset_face. Change return
19962 (face_suitable_for_char_p, face_for_char): Adjust for the change
19964 (make_fontset_for_ascii_face): Fix setting of the fontset element
19966 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19967 to get a font name.
19968 (Ffontset_info): Adjust for the change of fontset_font.
19970 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19972 * character.h (LEADING_CODE_LATIN_1_MIN)
19973 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19975 2008-02-01 Kenichi Handa <handa@m17n.org>
19977 * editfns.c (check_translation): New function.
19978 (Ftranslate_region_internal): Handle M:N mapping.
19980 2008-02-01 Kenichi Handa <handa@m17n.org>
19982 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19984 2008-02-01 Kenichi Handa <handa@m17n.org>
19986 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19988 (decode_coding_iso_2022): Fix handling of invalid designation.
19990 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19991 after calling code_conversion_save.
19993 2008-02-01 Kenichi Handa <handa@m17n.org>
19995 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19997 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19999 * fontset.c: Include "intervals.h".
20000 (fontset_face): Fix comparing of Lisp_Objects.
20001 (free_face_fontset, new_fontset_from_font_name): Fix
20002 Lisp_Object/int mixup.
20004 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20006 * coding.c: Add many prototypes for static functions.
20007 (get_translation_table): Allow max_lookup to be NULL.
20008 (decode_coding, Ffind_coding_systems_region_internal)
20009 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20010 get_translation_table with max_lookup NULL.
20012 2008-02-01 Kenichi Handa <handa@m17n.org>
20014 * coding.c (get_translation_table): Declare it as Lisp_Object.
20015 (LOOKUP_TRANSLATION_TABLE): New macro.
20016 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20017 instead of CHAR_TABLE_REF.
20019 2008-02-01 Kenichi Handa <handa@m17n.org>
20021 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20022 annotation data format.
20023 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20024 Change arguments FROM and TO to single argument NCHARS. Change caller.
20025 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20026 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20027 (decode_coding_ccl, decode_coding_charset): Pay attention to
20028 coding->charbuf_used.
20029 (get_translation): New function.
20030 (produce_chars): New arguments translation_table and last_block.
20031 Translate characters here. Return number of carryover chars.
20033 (produce_composition): New argument pos. Change caller.
20034 Adjust for the change of annotation data format.
20035 (produce_charset, produce_annotation): Likewise.
20036 (decode_coding, encode_coding): Don't call translate_chars.
20037 (consume_chars): New arg translation_table. Change caller.
20038 (translate_chars): Delete.
20039 (syms_of_coding): Make translation-table's number of extra slots 2.
20041 2008-02-01 Kenichi Handa <handa@m17n.org>
20043 * search.c (simple_search): Fix setting this_pos_byte in backward
20046 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20048 (detect_coding_ccl): Fix setting of the variable valids.
20050 2008-02-01 Kenichi Handa <handa@m17n.org>
20052 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20054 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20056 * editfns.c (Ftranslate_region_internal): Rename from
20057 Ftranslate_region. Accept a char-table in TABLE.
20058 (syms_of_editfns): Defsubr Stranslate_region_internal.
20060 * xfaces.c (set_lface_from_font_name): If a font is specified for
20061 a frame, generate a fontset from the font.
20062 (build_scalable_font_name): If the scalable font is requested for
20063 a specific size, don't change that size.
20064 (try_font_list): Try a scalable font also in the case that a
20065 pattern string is specified.
20067 2008-02-01 Kenichi Handa <handa@m17n.org>
20069 * xfaces.c (Fface_font): New optional arg CHARACTER.
20071 2008-02-01 Kenichi Handa <handa@m17n.org>
20073 * charset.h (CHARSET_OFFSET): New macro.
20075 2008-02-01 Kenichi Handa <handa@m17n.org>
20077 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20079 * fontset.c (fontset_face): Handle the case that repertory is a
20081 (find_font_encoding): Return nil for unknown encoding.
20082 (Fset_fontset_font): Ignore a font of unknown encoding.
20084 2008-02-01 Kenichi Handa <handa@m17n.org>
20086 * keymap.c (describe_vector): Handle default value of a char table.
20088 * fontset.c (fontset_face): Handle fallback fonts correctly.
20089 (Ffontset_info): Return infomation about fallback fonts.
20091 2008-02-01 Kenichi Handa <handa@m17n.org>
20093 * fontset.c (FONTSET_DEFAULT): New macro.
20094 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20095 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20096 the case that it is nil.
20097 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20098 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20100 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20101 subset or superset.
20103 2008-02-01 Kenichi Handa <handa@m17n.org>
20105 * emacs.c (main): Call init_charset after syms_of_XXX.
20107 * charset.c (Vcharset_map_directory): Delete.
20108 (Vcharset_map_path): New variable.
20109 (load_charset_map_from_file): Use Vcharset_map_path instead.
20110 (init_charset): Initialize Vcharset_map_path.
20111 (syms_of_charset): Delete declaration of "charset-map-directory",
20112 add declaration of "charset-map-path".
20114 2008-02-01 Kenichi Handa <handa@m17n.org>
20116 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20119 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20121 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20122 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20124 2008-02-01 Kenichi Handa <handa@m17n.org>
20126 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20128 * coding.c (QCmnemonic, QCdefalut_char)
20129 (QCdecode_translation_table, QCencode_translation_table)
20130 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20131 (get_translation_table): Return a list of translation tables if
20133 (decode_coding): Call get_translation_table with ENCODEP 0.
20134 (char_encodable_p): If translation_table is non-nil, always call
20136 (Fdefine_coding_system_internal): Accept list of translation
20137 tables as :encode-translation-table and :decode-translation-table.
20138 (Fcoding_system_put): New function.
20139 (syms_of_coding): Declare new symbols. Defsubr
20140 Scoding_system_put.
20141 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20142 typically JISX0212.
20144 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20145 when the charset is superset type.
20147 * character.c (translate_char): Accept list of translation tables.
20149 2008-02-01 Kenichi Handa <handa@m17n.org>
20151 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20152 (CODING_ATTR_TRANS_TBL): New macro.
20154 * coding.c (get_translation_table): New function.
20155 (translate_chars): Fix the bug of skipping annotation data.
20156 (decode_coding, encode_coding): Utilize get_translation_table.
20157 (char_encodable_p, Funencodable_char_position): Translate char if
20159 (Ffind_coding_systems_region_internal)
20160 (Fcheck_coding_systems_region): Setup translation table for encode
20161 in a coding system attribute vector in advance.
20162 (Fdefine_coding_system_internal): Allow a symbol as translation
20163 table. For shift-jis type coding system, allow 4th charset.
20165 2008-02-01 Kenichi Handa <handa@m17n.org>
20167 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20169 * xdisp.c (get_next_display_element): Pass -1 as POS to
20170 FACE_FOR_CHAR if displaying a C-string.
20172 2008-02-01 Kenichi Handa <handa@m17n.org>
20174 * composite.c (get_composition_id): Handle xoff and yoff in a
20177 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20178 (struct composition): New member lbearing and rbearing.
20180 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20181 (x_get_glyph_overhangs): Handle a composition glyph.
20182 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20184 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20187 2008-02-01 Kenichi Handa <handa@m17n.org>
20189 * print.c: Include charset.h.
20190 (Vprint_charset_text_property): New variable.
20191 (Qdefault): Extern it.
20192 (PRINT_STRING_NON_CHARSET_FOUND)
20193 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20194 (print_check_string_result): New variable.
20195 (print_check_string_charset_prop): New function.
20196 (print_prune_charset_plist): New variable.
20197 (print_prune_string_charset): New function.
20198 (print_object): Call print_prune_string_charset if
20199 Vprint_charset_text_property is not t.
20200 (print_interval): Print nothing if interval->plist is nil.
20201 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20202 variable. Init and staticpro print_prune_charset_plist.
20204 2008-02-01 Kenichi Handa <handa@m17n.org>
20206 * fontset.c (new_fontset_from_font_name): Use the specified font
20207 for all characters in the new fontset.
20209 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20212 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20213 OBJECT args for composition too.
20215 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20218 2008-02-01 Kenichi Handa <handa@m17n.org>
20220 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20222 * fontset.c (reorder_font_vector): Adjust for the change of
20224 (fontset_face): New arg id. Change caller.
20225 (face_for_char): New args pos and object.
20226 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20227 (fs_query_fontset): Check NAME by Fassoc too.
20228 (Fset_fontset_font): Allow non-XLFD font name.
20229 (Ffontset_info): Adjust for the change of FONT_DEF format.
20231 * fontset.h (face_for_char): Adjust prototype.
20233 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20234 (append_space, extend_face_to_end_of_line)
20235 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20236 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20238 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20239 POS and OBJECT args.
20241 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20242 POS and OBJECT args.
20244 2008-02-01 Jason Rumney <jasonr@gnu.org>
20246 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20247 of GlobalAlloc'ed memory.
20249 2008-02-01 Kenichi Handa <handa@m17n.org>
20251 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20253 * charset.h (charset_table_used): Delete extern.
20255 * charset.c (charset_table_used): Make it static.
20256 (map_charset_chars): Fix args to c_function with.
20258 * chartab.c (map_sub_char_table_for_charset): Fix args to
20261 * coding.h (enum coding_result_code): Delete
20262 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20264 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20265 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20266 (Vlast_code_conversion_error): New variables.
20267 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20268 (ONE_MORE_BYTE): Record error if any instead of signaling an
20269 error. If non-ASCII multibyte char is found, return the negative
20270 value of the code. All callers changed to check it.
20271 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20272 (record_conversion_result): New function. Change all codes setting
20273 coding->result to call this function.
20274 (detect_coding_utf_8, decode_coding_utf_8)
20275 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20276 Don't use the local variable incomplete.
20277 (emacs_mule_char): Change the second arg to `const'.
20278 (decode_coding): Fix of flushing out unprocessed data.
20279 (make_conversion_work_buffer): Fix making of a work buffer.
20280 (decode_coding_object): Return coding->dst_object.
20282 * fontset.c (set_fontset_font): Fix args.
20284 * lisp.h (CHARACTERBITS): Define as 22.
20286 * process.c (send_process): Be sure to set coding->src_multibyte.
20288 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20290 2008-02-01 Kenichi Handa <handa@m17n.org>
20292 * xdisp.c (handle_auto_composed_prop): Give limit to
20293 Fnext_single_char_property_change.
20295 2008-02-01 Kenichi Handa <handa@m17n.org>
20297 * composite.c (syms_of_composite): Don't make the composition hash
20300 * fontset.c (Fset_fontset_font): Fix docstring.
20302 * lisp.h (detect_coding_system): Adjust prototype.
20304 * fileio.c (kill_workbuf_unwind): Delete this function.
20305 (Finsert_file_contents): Adjust the call of detect_coding_system.
20306 Get conversion_buffer by code_conversion_save. Use the macro
20307 CODING_MAY_REQUIRE_DECODING. After decoding, update
20310 * coding.h (make_conversion_work_buffer): Delete extern.
20311 (code_conversion_save): Extern it.
20313 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20314 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20315 (decode_coding_utf_8): Don't do eol converion.
20316 (detect_coding_utf_16): Check coding->src_chars, not
20317 coding->src_bytes. Add heuristics for those that have no signature.
20318 (decode_coding_emacs_mule, decode_coding_iso_2022)
20319 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20320 Don't do eol converion.
20321 (adjust_coding_eol_type): Return a new coding system.
20322 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20323 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20325 (decode_coding): Pay attention to undo_list. Do eol conversion for
20326 all types of coding-systems (if necessary).
20327 (Vcode_conversion_work_buf_list): Delete it.
20328 (Vcode_conversion_reused_workbuf): Rename from
20329 Vcode_conversion_reused_work_buf.
20330 (Vcode_conversion_workbuf_name): New variable.
20331 (reused_workbuf_in_use): New variable.
20332 (make_conversion_work_buffer): Delete the arg DEPTH.
20333 (code_conversion_restore): Change argument to cons.
20334 (code_conversion_save): Delete the argument BUFFER. Change callers.
20335 (detect_coding_system): New argument src_chars. Change callers.
20336 Fix for utf-16 detection.
20337 (init_coding_once): Don't use ISO_carriage_return.
20338 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20339 reused_workbuf_in_use.
20341 2008-02-01 Kenichi Handa <handa@m17n.org>
20343 * keymap.c (store_in_keymap): Pay attention to the case that idx
20344 is a cons specifying a character range.
20346 2008-02-01 Kenichi Handa <handa@m17n.org>
20348 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20349 HANDLED_RECOMPUTE_PROPS.
20351 * coding.c (Fdefine_coding_system_internal): Fix checking of
20352 ascii compatibility.
20354 2008-02-01 Kenichi Handa <handa@m17n.org>
20356 * charset.c (find_charsets_in_text): Delete unused locale variable.
20357 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20359 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20360 Resync charset_list to Vemacs_mule_charset_list.
20362 * keymap.c (store_in_keymap): Pay attention to the case that idx
20363 is a cons specifying a character range.
20365 2008-02-01 Kenichi Handa <handa@m17n.org>
20367 * composite.c (update_compositions): Bind inhibit-read-only, etc
20368 to t before calling remove-list-of-text-properties.
20370 * print.c (print_object): Always print ASCII chars as is.
20372 2008-02-01 Kenichi Handa <handa@m17n.org>
20374 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20376 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20379 2008-02-01 Kenichi Handa <handa@m17n.org>
20381 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20383 2008-02-01 Kenichi Handa <handa@m17n.org>
20385 * xfaces.c (set_lface_from_font_name): Fix for the case that
20386 FONTNAME is not fontset name.
20388 2008-02-01 Kenichi Handa <handa@m17n.org>
20390 * fns.c (base64_encode_1): Fix previous change.
20392 2008-02-01 Kenichi Handa <handa@m17n.org>
20394 * fontset.c (set_fontset_font): New function.
20395 (Fset_fontset_font): If a font is specified for a charset, use
20396 map_charset_chars to store the font spec in a fontset.
20398 2008-02-01 Kenichi Handa <handa@m17n.org>
20400 * fontset.c (fontset_face): Create a fallback fontset on demand.
20401 (make_fontset): Don't create a fallback fontset here.
20402 (free_face_fontset): Free a fallback fontset (if any) too.
20403 (n_auto_fontsets): Delete this variable.
20404 (auto_fontset_alist): New variable.
20405 (new_fontset_from_font_name): Check auto_fontset_alist.
20406 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20407 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20408 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20409 Defsubr Sfontset_list_all.
20411 2008-02-01 Kenichi Handa <handa@m17n.org>
20413 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20415 2008-02-01 Kenichi Handa <handa@m17n.org>
20417 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20419 2008-02-01 Kenichi Handa <handa@m17n.org>
20421 * editfns.c (Fgoto_char): Fix docstring.
20423 2008-02-01 Kenichi Handa <handa@m17n.org>
20425 * insdel.c (insert_from_gap): Adjust intervals correctly.
20427 2008-02-01 Jason Rumney <jasonr@gnu.org>
20429 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20430 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20431 (w32_initialize): Try to load it.
20432 (x_get_font_repertory): Use it if available.
20433 (w32_encode_char): Add shortcut for unicode output.
20435 * w32fns.c (w32_load_system_font): Default charset to -1.
20436 (x_to_w32_charset): Match all fonts for unicode.
20437 (w32_to_x_charset): New parameter matching. Don't return partial
20438 or wildcard charsets.
20439 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20440 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20441 (w32_to_x_font): Match charset to real charset.
20442 (enum_font_cb2): Always list unicode versions.
20444 * makefile.w32-in (temacs): Increase EMHEAP.
20446 2008-02-01 Jason Rumney <jasonr@gnu.org>
20448 * w32term.c (w32_encode_char): New charset parameter.
20449 font_info.encoding becomes encoding_type.
20450 (x_get_font_repertory): New function. Warning: stub only!
20451 (x_new_font): Return quickly if font already set.
20452 (x_new_fontset): fontsetname parameter is Lisp_Object.
20453 Use new fs_query_fontset. Try new_fontset_from_font_name.
20454 Use fontset_name for return value.
20456 * w32term.h: Declare x_get_font_repertory.
20458 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20459 place of find_charset_in_text. Use encode_coding_object in place
20461 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20464 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20466 (w32_load_system_font): Initialize charset as unicode.
20467 font_info.encoding becomes encoding_type.
20468 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20469 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20470 (syms_of_w32fns): Set get_font_repertory_func.
20472 * w32console.c: Include character.h. Use terminal_encode_buffer
20474 (write_glyphs): Use new version of encode_terminal_code. Use
20475 encode_coding_object in place of encode_coding.
20477 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20478 encoding becomes encoding_type.
20480 * term.c (terminal_encode_buffer): Make externally visible.
20482 * makefile.w32-in: Add character.h dependancies.
20483 (character.o, chartab.o): New targets.
20485 2008-02-01 Kenichi Handa <handa@m17n.org>
20487 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20488 CODING_ID_EOL_TYPE.
20490 2008-02-01 Andreas Schwab <schwab@suse.de>
20492 * coding.c (produce_chars): Revert last change.
20494 2008-02-01 Kenichi Handa <handa@m17n.org>
20496 * charset.h (charset_unicode): Extern it.
20498 * charset.c (string_xstring_p): Check by (C >= 0x100).
20499 (find_charsets_in_text): Change format of the arc CHARSETS. New
20501 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20502 change of find_charsets_in_text.
20503 (Fsplit_char): Fix doc. Never return unknown.
20505 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20507 * coding.c (Fdefine_coding_system_alias): Update
20508 Vcoding_system_list.
20510 * fontset.c (load_font_get_repertory): Pay attention to the case
20511 that ENCODING of a font is specified by a char-table.
20513 * xterm.c (x_get_font_repertory): Handle the case that the
20514 encoding of font is other than Unicode.
20516 2008-02-01 Kenichi Handa <handa@m17n.org>
20518 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20519 if a character is encodable by the terminal coding system. If
20520 not, produces proper number of `?'s. Update
20521 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20522 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20524 2008-02-01 Kenichi Handa <handa@m17n.org>
20526 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20528 (encode_terminal_code): Change argument. Encode multiple
20529 characters at once. Store the result of encoding in
20530 terminal_encode_buffer.
20531 (write_glyphs, insert_glyphs): Adjust for the change of
20532 encode_terminal_code.
20533 (term_init): Initialize terminal_encode_buffer and
20534 terminal_encode_buf_size.
20536 * coding.c (consume_chars): If coding->src_object is nil, don't
20539 2008-02-01 Kenichi Handa <handa@m17n.org>
20541 * character.c (char_string): Use ASCII_CHAR_P instead of
20542 SINGLE_BYTE_CHAR_P.
20544 2008-02-01 Kenichi Handa <handa@m17n.org>
20546 * xdisp.c (handle_auto_composed_prop): Check if the last
20547 characters of auto-composed region is newly composed with the
20548 following characters.
20549 (handle_composition_prop): Fix checking of point being inside
20552 2008-02-01 Kenichi Handa <handa@m17n.org>
20554 * fns.c (concat): Don't change multibyteness of the result by
20555 concatenating an 8-bit character.
20557 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20558 multibyteness of the result when newelt is an 8-bit character.
20560 2008-02-01 Dave Love <fx@gnu.org>
20562 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20565 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20567 * xfaces.c (face_numeric_value): Declare dim size_t.
20568 (Finternal_lisp_face_equal_p): Remove unused f.
20570 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20571 (MATRIX_ROW): Remove unused vars.
20572 (draw_glyphs, x_insert_glyphs, fast_find_position)
20573 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20576 * regex.c (regex_compile): Remove unused var.
20578 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20580 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20581 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20583 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20585 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20587 * fileio.c (Fwrite_region): Remove unused var.
20589 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20590 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20592 * composite.c (Fremove_list_of_text_properties): Declare.
20594 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20595 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20596 (coding_inherit_eol_type): Remove unused attrs.
20597 (detect_coding): Cast arg of detect_eol.
20599 * charset.c (syms_of_charset): Remove unused var p.
20600 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20603 * casetab.c (set_case_table): Remove unused var.
20605 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20608 2008-02-01 Dave Love <fx@gnu.org>
20610 * xterm.c (x_bitmap_mask): Declare.
20612 2008-02-01 Dave Love <fx@gnu.org>
20614 * xterm.c (x_term_init): Fix type error.
20616 * lisp.h: Add Funibyte_char_to_multibyte.
20618 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20619 (Fset_coding_system_priority): Doc fix.
20621 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20623 * indent.c (check_composition): Make start and end EMACS_INT.
20625 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20627 * xdisp.c (handle_composition_prop, check_point_in_composition):
20628 Make buffer positions EMACS_INT.
20630 * composite.c (find_composition, run_composition_function)
20631 (update_compositions, Ffind_composition_internal): Make buffer
20632 positions EMACS_INT.
20634 * composite.h (find_composition, update_compositions): Make
20635 position args EMACS_INT.
20637 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20639 * intervals.c (get_property_and_range):
20640 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20642 * unexalpha.c: Don't include varargs.h.
20644 2008-02-01 Dave Love <fx@gnu.org>
20646 * coding.h (ENCODE_UTF_8): New.
20648 * Makefile.in (gtkutil.o): Depend on coding.h.
20650 * coding.c (Fset_coding_system_priority): Doc fix.
20652 2008-02-01 Kenichi Handa <handa@m17n.org>
20654 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20655 the case of auto saving.
20657 2008-02-01 Andreas Schwab <schwab@suse.de>
20659 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20662 2008-02-01 Kenichi Handa <handa@m17n.org>
20664 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20666 2008-02-01 Kenichi Handa <handa@m17n.org>
20668 * fileio.c (choose_write_coding_system): Return a decided coding system.
20669 (Fwrite_region): Set Vlast_coding_system_used to the return value
20670 of choose_write_coding_system.
20672 2008-02-01 Kenichi Handa <handa@m17n.org>
20674 * charset.c (Fset_charset_priority): Pay attention to duplicated
20677 * coding.c (QCcategory): New variable.
20678 (syms_of_coding): Defsym it. Set all elements of
20679 Vcoding_category_table and their symbol values.
20680 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20681 coding-category-XXX, and coding-category-list.
20682 (Fdefine_coding_system_internal): Add category in the plist.
20684 2008-02-01 Kenichi Handa <handa@m17n.org>
20686 * callproc.c (Fcall_process): Handle carryover correctly.
20688 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20689 (raw_text_coding_system): Check NILP (coding_system).
20690 (coding_inherit_eol_type): Check NILP (coding_system) and
20692 (consume_chars): Fix for the case of raw-text.
20694 * process.c (read_process_output): Handle carryover correctly.
20696 2008-02-01 Dave Love <fx@gnu.org>
20698 * regex.c (re_search_2): Fix last change.
20700 2008-02-01 Kenichi Handa <handa@m17n.org>
20702 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20703 target_multibyte. Even in a unibyte case, return a converted
20705 (GET_CHAR_AFTER): New macro.
20706 (PATFETCH): Translate via multibyte char.
20707 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20708 (SETUP_MULTIBYTE_RANGE): New macro.
20709 (regex_compile): Setup compiled code so that its multibyteness
20710 matches that of a target. Fix the handling of "[X-YZ]" using
20711 SETUP_MULTIBYTE_RANGE.
20712 (analyse_first) <charset>: For filling fastmap for all multibyte
20713 characters, don't check by BASE_LEADING_CODE_P.
20714 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20715 the same as RE_MULTIBYTE_P (bufp) now.
20716 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20717 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20718 (TRANSLATE_VIA_MULTIBYTE): New macro.
20719 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20720 It is the same as RE_MULTIBYTE_P (bufp) now.
20721 <exactn>: Translate via multibyte.
20722 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20724 <charset, charset_not>: Fetch a character by
20725 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20726 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20727 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20728 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20730 (bcmp_translate): Likewise.
20732 * search.c (compile_pattern): Check the member target_multibyte,
20733 not the member multibyte of buf.
20735 * lread.c (read1): While reading a string, set force_singlebyte
20736 and force_multibyte correctly.
20738 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20739 up of unibyte_to_multibyte_table.
20741 2008-02-01 Kenichi Handa <handa@m17n.org>
20743 * coding.c (setup_coding_system): If coding has
20744 post-read-conversion or pre-write-conversion, set
20745 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20747 (decode_coding_gap): Run post-read-conversion if any.
20749 * fileio.c (Finsert_file_contents): Even if we read into a
20750 unibyte buffer, check if we must decode the result or not.
20752 2008-02-01 Kenichi Handa <handa@m17n.org>
20754 * coding.c (make_conversion_work_buffer): Change the work buffer
20755 name to the same one as that of Emacs 21.
20757 2008-02-01 Kenichi Handa <handa@m17n.org>
20759 * coding.h (make_conversion_work_buffer): Adjust prototype.
20760 (code_conversion_restore): Don't extern it.
20762 * coding.c (detected_mask): Delete unused variable.
20763 (decode_coding_iso_2022): Pay attention to the byte sequence of
20764 CTEXT extended segment, and retain those bytes as is.
20765 (decode_coding_ccl): Delete unused variable `valids'.
20766 (setup_coding_system): Delete unused variable `category'.
20767 (consume_chars): Delete unused variable `category'. Make it work
20768 for non-multibyte case.
20769 (make_conversion_work_buffer): Change argument.
20770 (saved_coding): Delete unused variable.
20771 (code_conversion_restore): Don't check saved_coding->destination.
20772 (code_conversion_save): New function.
20773 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20774 instead of record_unwind_protect.
20775 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20776 (detect_coding_system): Delete unused variable `mask'.
20777 (Fdefine_coding_system_internal): Delete unused variable id.
20779 * fileio.c (kill_workbuf_unwind): New function.
20780 (Finsert_file_contents): On replacing, call
20781 make_conversion_work_buffer with correct args, and call
20782 record_unwind_protect with the first arg kill_workbuf_unwind.
20784 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20786 2008-02-01 Kenichi Handa <handa@m17n.org>
20788 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20789 (fontset_add): Fix for the case that TO is less than TO1.
20790 (Ffontset_info): Don't use fallback fontset on checking the
20792 (dump_fontset): New function for debugging.
20794 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20795 coding_type is Qcharset.
20797 2008-02-01 Kenichi Handa <handa@m17n.org>
20799 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20800 (map_char_table): Don't inherit the value from the parent on
20801 initializing VAL. Adjust for the above change.
20803 2008-02-01 Kenichi Handa <handa@m17n.org>
20805 * coding.c (Qsignature, Qendian): Delete these variables.
20806 (syms_of_coding): Don't initialize them.
20807 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20808 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20809 detect_info->found.
20810 (decode_coding_utf_16): Don't detect BOM here.
20811 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20812 is NOT utf_16_without_bom.
20813 (setup_coding_system): For a coding system of type utf-16, check
20814 if the attribute :endian is Qbig or not (not nil or not), and set
20815 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20816 (detect_coding): If coding type is utf-16 and BOM detection is
20817 required, detect it.
20818 (Fdefine_coding_system_internal): For a coding system of type
20819 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20821 2008-02-01 Kenichi Handa <handa@m17n.org>
20823 * coding.c (coding_set_source): Fix for the case that the current
20824 buffer is different from coding->src_object.
20825 (decode_coding_object): Don't use the conversion work buffer if
20826 DST_OBJECT is a buffer.
20828 2008-02-01 Dave Love <fx@gnu.org>
20830 * lread.c (read_emacs_mule_char) [len==2]: Index
20831 emacs_mule_charset correctly.
20833 2008-02-01 Dave Love <fx@gnu.org>
20835 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20836 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20837 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20838 treated specially.)
20839 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20840 (detected_mask): Remove Big5 bits.
20842 2008-02-01 Kenichi Handa <handa@m17n.org>
20844 The following changes are to make the font rescaling facility
20845 compatible with Emacs 21.
20847 * xfaces.c (Vface_font_rescale_alist): Rename from
20848 Vface_resizing_fonts.
20849 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20850 (font_rescale_ratio): Rename from font_resizing_ratio.
20851 (split_font_name): Set font->rescale_ratio.
20852 (better_font_p): Pay attention to font->rescale_ratio.
20853 (build_scalable_font_name): Likewise. Change RESX, and RESY
20855 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20857 2008-02-01 Kenichi Handa <handa@m17n.org>
20859 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20860 (Qutf_16_le): Remove these variables.
20861 (syms_of_coding): Don't DEFSYM them.
20862 (decode_coding_utf_16): Fix handling of BOM.
20863 (encode_coding_utf_16): Fix handling of BOM.
20865 2008-02-01 Kenichi Handa <handa@m17n.org>
20867 * fileio.c (Finsert_file_contents): On replacing, before decoding
20868 the file into the work buffer, set point of the work buffer to the end.
20870 2008-02-01 Dave Love <fx@gnu.org>
20872 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20874 2008-02-01 Dave Love <fx@gnu.org>
20876 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20879 2008-02-01 Kenichi Handa <handa@m17n.org>
20881 * xdisp.c (SKIP_GLYPHS): New macro.
20882 (set_cursor_from_row): Pay attention to string display properties.
20884 * category.c (copy_category_entry): Fix for the case that RANGE
20887 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20889 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20891 2008-02-01 Kenichi Handa <handa@m17n.org>
20893 * charset.c (Fcharset_id_internal): New function.
20894 (syms_of_charset): Defsubr it.
20896 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20897 with the last arg charset_list acquired from coding.
20898 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20899 the attribute coding_attr_ccl_valids.
20901 * coding.h (enum define_coding_ccl_arg_index): Set the first
20902 member coding_arg_ccl_decoder to coding_arg_max.
20904 * ccl.h (ccl_driver): Adjust prototype.
20906 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20907 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
20908 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
20909 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20912 2008-02-01 Kenichi Handa <handa@m17n.org>
20914 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20917 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20919 2008-02-01 Dave Love <fx@gnu.org>
20921 * composite.c (syms_of_composite): Make composition_hash_table weak.
20923 2008-02-01 Kenichi Handa <handa@m17n.org>
20925 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20926 (font_name_registry): Don't extern them.
20927 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20929 * fontset.h (Qfontset): Don't extern it.
20930 (new_fontset_from_font_name): Extern it.
20932 * fontset.c: Give 8 extra slots to fontset objects.
20933 (Qfontset_info): New variable.
20934 (syms_of_fontset): Defsym it.
20935 (FONTSET_FALLBACK): New macro.
20936 (fontset_face): Try also the default fontset.
20937 (make_fontset): Realize a fallback fontset from the default fontset.
20938 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20939 using split_font_name_into_vector and build_font_name_from_vector.
20940 (Fset_fontset_font): Access the elements of font_spec by enum
20941 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20942 name by using split_font_name_into_vector.
20943 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20944 generate a proper font name from the fontset name. Update
20945 Vfontset_alias_alist.
20946 (n_auto_fontsets): New variable.
20947 (new_fontset_from_font_name): New function.
20948 (Ffont_info): Store the information about fonts generated from the
20949 default fontset in the first extra slot of the returned char-table.
20951 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20952 (font_name_registry): Delete function.
20953 (split_font_name_into_vector): New function.
20954 (build_font_name_from_vector): New function.
20955 (font_list): The argument REGISTRY is now a list of registry names.
20956 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20957 specifies an explicit font name, return the name as is. Make a
20958 list of registy names.
20960 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20962 (Fx_create_frame): Don't call x_new_fontset here. Just use
20963 x_list_fonts to check the existence of fonts.
20965 * xterm.h (x_new_fontset): Adjust prototype.
20967 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20968 string. Use new_fontset_from_font_name to create a fontset from a
20971 2008-02-01 Kenichi Handa <handa@m17n.org>
20973 * syntax.c (Vfind_word_boundary_function_table): New name for
20974 Vnext_word_boundary_function_table.
20975 (find-word-boundary-function-table): New name for
20976 next-word-boundary-function-table.
20978 2008-02-01 Dave Love <fx@gnu.org>
20980 * Makefile.in: Fix some dependencies.
20982 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20983 set it to nil before returning.
20985 * composite.c (update_compositions): Fix type error.
20987 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20989 2008-02-01 Kenichi Handa <handa@m17n.org>
20991 * xterm.c (x_new_font): Optimize for the case that the font is
20992 already set for the frame.
20994 2008-02-01 Kenichi Handa <handa@m17n.org>
20996 * chartab.c (char_table_ascii): Check if the char table contents
20997 is sub-char-table or not.
20998 (char_table_set, char_table_set_range): Fix argument to
21001 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21002 (detect_coding_utf_8, detect_coding_utf_16)
21003 (detect_coding_emacs_mule, detect_coding_iso_2022)
21004 (detect_coding_sjis, detect_coding_big5)
21005 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21006 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21007 sequence is valid in this coding system. Change callers.
21008 (MAX_ANNOTATION_LENGTH): New macro.
21009 (ADD_ANNOTATION_DATA): New macro.
21010 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21011 ADD_ANNOTATION_DATA. Change the format of annotation data.
21012 (ADD_CHARSET_DATA): New macro.
21013 (emacs_mule_char): New argument ID. Change callers.
21014 (decode_coding_emacs_mule, decode_coding_iso_2022)
21015 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21016 Produce charset annotation data in coding->charbuf.
21017 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21018 to charset annotation data in coding->charbuf.
21019 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21020 coding->common_flags if the coding system is iso-2022 based and
21022 (produce_composition): Adjust for the new annotation data format.
21023 (produce_charset): New function.
21024 (produce_annotation): Handle charset annotation.
21025 (handle_composition_annotation, handle_charset_annotation): New
21027 (consume_chars): Handle charset annotation. Utilize the above two
21029 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21030 buffer, get the deleted text as a string and set
21031 coding->src_object to that string.
21032 (detect_coding, detect_coding_system): Use the new struct
21033 coding_detection_info.
21035 * coding.h (struct coding_detection_info): New structure.
21036 (struct coding_system): Adjust prototype of the member `detector'.
21037 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21039 2008-02-01 Kenichi Handa <handa@m17n.org>
21041 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21043 2008-02-01 Dave Love <fx@gnu.org>
21045 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21046 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21047 to new local and nullify apropos_accumulate before returning.
21048 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21050 2008-02-01 Kenichi Handa <handa@m17n.org>
21052 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21055 2008-02-01 Dave Love <fx@gnu.org>
21057 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21059 2008-02-01 Kenichi Handa <handa@m17n.org>
21061 The following changes are to make character composition happen
21062 automatically on displaying.
21064 * Makefile.in (lisp, shortlisp): Add composite.elc.
21066 * composite.h (Qauto_composed, Vauto_composition_function)
21067 (Qauto_composition_function): Extern them.
21069 * composite.c (Vcomposition_function_table)
21070 (Qcomposition_function_table): Delete variables.
21071 (Qauto_composed, Vauto_composition_function)
21072 (Qauto_composition_function): New variables.
21073 (run_composition_function): Don't call
21074 compose-chars-after-function.
21075 (update_compositions): Clear `auto-composed' text property.
21076 (compose_chars_in_text): Delete this function.
21077 (syms_of_composite): Staticpro Qauto_composed and
21078 Qauto_composition_function. Declare Vauto_composition_function as
21081 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21083 * xdisp.c (it_props): Add an entry for Qauto_composed.
21084 (handle_auto_composed_prop): New function.
21086 * xselect.c (selection_data_to_lisp_data): Don't call
21087 compose_chars_in_text.
21089 2008-02-01 Dave Love <fx@gnu.org>
21091 * keyboard.c (read_char): Modify checking around use of
21092 Vkeyboard_translate_table.
21094 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21097 2008-02-01 Kenichi Handa <handa@m17n.org>
21099 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21100 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21101 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21102 the case that the last byte is '\r' correctly.
21103 (decode_coding): Flush out the unprocessed data correctly.
21104 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21106 2008-02-01 Dave Love <fx@gnu.org>
21108 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21109 Add XK_ISO... case.
21110 (xaw_scroll_callback): Revert last change.
21112 2008-02-01 Kenichi Handa <handa@m17n.org>
21114 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21116 2008-02-01 Kenichi Handa <handa@m17n.org>
21118 * xfaces.c (Vface_resizing_fonts): New variable.
21119 (struct font_name): New member `resizing_ratio'.
21120 (font_resizing_ratio): New function.
21121 (split_font_name): Set font->resizing_ratio.
21122 (better_font_p): Pay attention to font->resizing_ratio.
21123 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21124 RESX, and RESY fields.
21125 (try_alternative_families): Try scalable fonts if
21126 Vscalable_fonts_allowed is not Qt.
21127 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21129 2008-02-01 Dave Love <fx@gnu.org>
21131 * xterm.c (xaw_scroll_callback): Cast correctly.
21133 2008-02-01 Dave Love <fx@gnu.org>
21135 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21136 (lispy_kana_keys): Comment out.
21137 (make_lispy_event) [XK_kana_A]: Comment out.
21139 * xterm.c (xaw_scroll_callback): Cast call_data.
21140 (XTread_socket): Deal with ASCII keysyms.
21141 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21143 2008-02-01 Dave Love <fx@gnu.org>
21145 * xterm.c (Vx_keysym_table): New.
21146 (syms_of_xterm): Initialize it.
21147 (XTread_socket): Use it.
21148 From head: Eliminate incorrect optimization that tried to avoid
21149 decoding the output of X*LookupString.
21150 (x_get_font_repertory): Delete charset declaration.
21152 2008-02-01 Kenichi Handa <handa@m17n.org>
21154 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21156 (Fdefine_coding_system_internal): Setup
21157 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21159 2008-02-01 Dave Love <fx@gnu.org>
21161 * coding.c (Fcheck_coding_system): Doc fix.
21163 * editfns.c (Finsert_byte): Return a proper value.
21165 2008-02-01 Kenichi Handa <handa@m17n.org>
21167 * coding.c (decode_coding): Fix args to translate_chars. Pay
21168 attention to Vstandard_translation_table_for_decode.
21169 (encode_coding): Fix args to translate_chars. Pay attention to
21170 Vstandard_translation_table_for_encode.
21172 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21173 SINGLE_BYTE_CHAR_P.
21175 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21176 not by SINGLE_BYTE_CHAR_P.
21178 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21179 SINGLE_BYTE_CHAR_P.
21181 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21182 SINGLE_BYTE_CHAR_P.
21184 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21185 by SINGLE_BYTE_CHAR_P.
21187 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21188 SINGLE_BYTE_CHAR_P.
21190 2008-02-01 Dave Love <fx@gnu.org>
21192 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21194 2008-02-01 Dave Love <fx@gnu.org>
21196 * fns.c (Flanginfo): Fix typo.
21198 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21200 2008-02-01 Kenichi Handa <handa@m17n.org>
21202 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21203 (detect_coding_emacs_mule, detect_coding_iso_2022)
21204 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21205 incomplete byte sequence. Don't update *mask when correctly detected.
21206 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21207 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21208 (detect_coding, detect_coding_system): Adjust for the changes above.
21210 2008-02-01 Kenichi Handa <handa@m17n.org>
21212 * character.c (char_string): Rename from
21213 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21214 (string_char): Rename from string_char.
21216 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21217 if C is greater than MAX_3_BYTE_CHAR.
21218 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21219 string_char instead of string_char_with_unification.
21221 2008-02-01 Dave Love <fx@gnu.org>
21223 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21225 2008-02-01 Kenichi Handa <handa@m17n.org>
21227 * keymap.c (push_key_description): Pay attention to force_multibyte.
21229 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21231 2008-02-01 Dave Love <fx@gnu.org>
21233 * charset.c (define_charset_internal): Rename `supprementary'.
21235 * Makefile.in (lisp, shortlisp): Remove latin-N.
21237 2008-02-01 Dave Love <fx@gnu.org>
21239 * xfns.c (x_window, x_window): Use use_xim.
21241 * xterm.c (use_xim): Initialize.
21242 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21243 (x_term_init): Maybe set use_xim.
21245 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21247 2008-02-01 Kenichi Handa <handa@m17n.org>
21249 * search.c (search_buffer): Fix case-fold-search of multibyte
21251 (boyer_moore): Rename the last argument to char_high_bits.
21253 2008-02-01 Kenichi Handa <handa@m17n.org>
21255 * xdisp.c (display_string): Fix for the case of zero width glyph.
21257 * xfns.c (x_set_font): Change the error message of the case that
21258 x_new_fontset returns Qt.
21260 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21261 (Finternal_set_lisp_face_attribute): Use signal_error for the
21262 error of invalid fontset.
21264 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21265 fontset, return Qt.
21267 2008-02-01 Dave Love <fx@gnu.org>
21269 * unexelf.c (unexec): Make .got handling not SGI-specific.
21271 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21273 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21275 * keyboard.c (read_key_sequence): Fix type error.
21277 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21280 * fontset.c (fontset_add): Return Lisp_Object.
21282 2008-02-01 Dave Love <fx@gnu.org>
21284 * charset.h (charset_ordered_list_tick): Declare extern.
21286 2008-02-01 Kenichi Handa <handa@m17n.org>
21288 The following changes (and some of 2008-02-01 changes of mine) are
21289 for handling syntax, category, and case conversion for unibyte
21290 characters by converting them to multibyte on the fly. With these
21291 changes, we don't have to setup syntax and case tables for unibyte
21292 characters in each language environment.
21294 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21295 multibyte if necessary.
21297 * bytecode.c (Fbyte_code): Likewise.
21299 * character.h (LEADING_CODE_LATIN_1_MIN)
21300 (LEADING_CODE_LATIN_1_MAX): New macros.
21301 (unibyte_to_multibyte_table): Extern it.
21302 (unibyte_char_to_multibyte): New macro.
21303 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21304 (CHAR_LEADING_CODE): New macro.
21305 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21307 * character.c (unibyte_to_multibyte_table): New variable.
21308 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21309 (multibyte_char_to_unibyte): If C is an eight-bit character,
21310 convert it to the corresponding byte value.
21312 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21313 not 1, signals an error. Update the elements of
21314 unibyte_to_multibyte_table.
21315 (init_charset_once): Initialize unibyte_to_multibyte_table.
21316 (syms_of_charset): Define the charset `iso-8859-1'.
21318 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21319 as is without converting it to unibyte. In a unibyte buffer,
21320 convert C to multibyte before checking the syntax.
21322 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21324 * minibuf.c (Fminibuffer_complete_word): Use the macro
21325 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21327 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21329 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21330 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21331 that is zero, convert an eight-bit char to multibyte.
21332 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21334 (PATFETCH): Convert an eight-bit char to multibyte.
21335 (HANDLE_UNIBYTE_RANGE): New macro.
21336 (regex_compile): Setup the compiled pattern for multibyte chars
21337 even if the given regex string is unibyte. Use PATFETCH_RAW
21338 instead of PATFETCH in many places. To handle `charset'
21339 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21340 only for ASCII chars.
21341 (analyse_first) <exactn>: Simplify because the compiled pattern
21343 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21344 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21345 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21346 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21347 multibyte always 1.
21348 (re_search_2): In emacs, set the locale variable multibyte to 1,
21349 otherwise to 0. New local variable target_multibyte. Check it
21350 to decide the multibyteness of STR1 and STR2. If
21351 target_multibyte is zero, convert unibyte chars to multibyte
21352 before translating and checking fastmap.
21353 (TARGET_CHAR_AND_LENGTH): New macro.
21354 (re_match_2_internal): In emacs, set the locale variable multibyte
21355 to 1, otherwise to 0. New local variable target_multibyte. Check
21356 it to decide the multibyteness of STR1 and STR2. Use
21357 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21358 <charset, charset_not>: If multibyte is nonzero, check fastmap
21359 only for ASCII chars. Call bcmp_translate with
21360 target_multibyte, not with multibyte.
21361 <begline>: Declare the local variable C as `unsigned'.
21362 (bcmp_translate): Change the last arg name to target_multibyte.
21364 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21365 the regexp pattern and the matching target. Set cp->buf.multibyte
21366 to the multibyteness of the regexp pattern. Set
21367 cp->but.target_multibyte to the multibyteness of the matching target.
21368 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21369 FETCH_STRING_CHAR_ADVANCE.
21370 (Freplace_match): Convert unibyte chars to multibyte.
21372 * syntax.c (char_quoted, back_comment, scan_words)
21373 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21374 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21375 unibyte chars to multibyte.
21376 (skip_chars): Delete the arg syntaxp, and move the code for
21377 handling syntaxes to skip_syntaxes. Change callers.
21378 Fix the case that the multibyteness of STRING and the current
21379 buffer doesn't match.
21380 (skip_syntaxes): New function.
21381 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21382 SINGLE_BYTE_CHAR_P.
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21386 * xfaces.c (QCfontset): New variable.
21387 (LFACE_FONTSET): New macro.
21388 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21389 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21390 (Finternal_set_lisp_face_attribute)
21391 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21392 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21393 check also LFACE_FONTSET_INDEX.
21394 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21395 attrs[LFACE_FONT_INDEX].
21396 (syms_of_xfaces): Intern and staticpro QCfontset.
21398 * dispextern.h (enum lface_attribute_index): New member
21399 LFACE_FONTSET_INDEX.
21401 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21403 2008-02-01 Kenichi Handa <handa@m17n.org>
21405 * coding.c (coding_set_destination): Fix coding->destination for
21406 the case converting a region.
21407 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21408 (encode_coding_object): Fix coding->dst_pos and
21409 coding->dst_pos_byte for the case converting a region.
21411 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21413 * character.h (BYTE8_STRING): New macro.
21415 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21417 2008-02-01 Kenichi Handa <handa@m17n.org>
21419 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21420 characters by octal form.
21422 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21424 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21425 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21426 _fetch_multibyte_char_len.
21427 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21429 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21431 * casefiddle.c (casify_object): Simplify. Handle the case that
21432 the case conversion change the byte length.
21433 (casify_region): Likewise.
21435 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21437 * character.c (_fetch_multibyte_char_len): Delete this variable.
21438 (syms_of_character): Setup Vprintable_chars.
21440 * editfns.c (Fchar_equal): Fix for the unibyte case.
21441 (Finsert_byte): New function.
21442 (syms_of_editfns): Defsubr it.
21444 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21445 of direct code 0x3ffff.
21447 * search.c (Freplace_match): Fix for the unibyte case.
21449 2008-02-01 Kenichi Handa <handa@m17n.org>
21451 * lread.c (safe_to_load_p): Fix the logic.
21453 * syntax.c (scan_words): Don't treat characters belonging to
21454 different scripts as constituting a word.
21456 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21458 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21460 * emacs.c (main): In the case of --unibyte, instead of aborting on
21461 finding non-empty buffer, make it unibyte.
21463 2008-02-01 Kenichi Handa <handa@m17n.org>
21465 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21466 to create a fontset.
21468 2008-02-01 Dave Love <fx@gnu.org>
21470 * character.c (Funibyte_char_to_multibyte): Doc fix.
21472 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21474 2008-02-01 Kenichi Handa <handa@m17n.org>
21476 * fontset.c (fontset_add): Make the type `int'.
21477 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21479 * character.c (unibyte_char_to_multibyte)
21480 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21481 charset_unibyte, not charset_primary.
21483 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21485 * charset.c (charset_unibyte): Rename from charset_primary.
21486 (Funibyte_charset): Rename from Fprimary_charset.
21487 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21488 (syms_of_charset): Adjust for the above changes.
21490 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21491 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21492 it->multibyte_p is zero.
21494 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21497 2008-02-01 Kenichi Handa <handa@m17n.org>
21499 * coding.c (Fdefine_coding_system_internal): Fix category setting
21500 for a coding system of type iso-2022.
21502 2008-02-01 Kenichi Handa <handa@m17n.org>
21504 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21506 2008-02-01 Kenichi Handa <handa@m17n.org>
21508 * syntax.c (Vnext_word_boundary_function_table): New variable.
21509 (next-word-boundary-function-table): Declare it as a Lisp variable
21511 (scan_words): Call functions in Vnext_word_boundary_function_table
21514 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21516 * fontset.c (fs_load_font): If fontp->charset is not negative,
21517 return fontp without setting its members.
21519 2008-02-01 Dave Love <fx@gnu.org>
21521 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21523 * m/sparc.h (HAVE_ALLOCA): Delete.
21525 * s/irix6-5.h: Don't include strings.h.
21526 (bcopy, bzero, bcmp): Don't undef.
21528 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21530 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21531 (TIOCSIGSEND): Don't test IRIX6.
21532 (bcopy, bzero, bcmp): Define conditionally.
21534 2008-02-01 Kenichi Handa <handa@m17n.org>
21536 * buffer.c (Qas, Qmake, Qto): New variables.
21537 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21538 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21540 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21541 we are inserting a process output into a multibyte buffer.
21543 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21544 multibyte_char_to_unibyte.
21546 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21547 by the primary charset, make it eight-bit char.
21548 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21550 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21551 (charset_8_bit__control, charset_8_bit_graphic)
21552 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21553 (define_charset_internal): New function.
21554 (syms_of_charset): Call define_charset_internal for pre-defined
21557 * charset.h (charset_8_bit): Extern it.
21559 * coding.c (make_conversion_work_buffer): Adjust for the change
21560 of Fset_buffer_multibyte.
21561 (encode_coding_raw_text): Increment p0 in the loop.
21563 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21565 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21566 for the change of Fset_buffer_multibyte.
21568 * fns.c (Fstring_to_multibyte): New function.
21569 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21571 2008-02-01 Dave Love <fx@gnu.org>
21573 * xfns.c (x_put_x_image): Declare args.
21575 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21576 (try_font_list): Declare an arg.
21578 * xdisp.c (message2_nolog, set_message): Declare an arg.
21580 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21582 * syntax.c (scan_sexps_forward): Declare an arg.
21584 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21587 * lisp.h (Fnew_fontset): Declare.
21589 * keymap.c (push_key_description): Call CHARACTERP correctly.
21591 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21592 (face_for_char): Delete unused vars.
21593 (Fset_fontset_font): Doc fix. Delete unused vars.
21595 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21597 * composite.c (update_compositions): Declare arg.
21599 * cm.c (calccost, cmgoto): Declare args.
21601 * charset.c: Remove `emacs' conditional. Doc fixes.
21602 (map_char_table_for_charset): Declare.
21604 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21606 * ccl.c: Remove `emacs' conditional.
21608 2008-02-01 Kenichi Handa <handa@m17n.org>
21610 The following changes are to allow specifying multiple font
21611 patterns for a character range (specified by script or charset).
21613 * Makefile.in (abbrev.o): Depend on syntax.h.
21614 (xfaces.o): Depend on charset.h.
21616 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21617 SINGLE_BYTE_CHAR_P.
21619 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21621 * character.h (Vchar_script_table): Extern it.
21623 * character.c (Vscript_alist): Delete.
21624 (Vchar_script_table, Qchar_script_table): New variable.
21625 (syms_of_character): Declare Vchar_script_table as a lisp variable
21628 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21629 have property char-table-extra-slots, make no extra slot.
21631 * dispextern.h (struct face): Delete member `charset'.
21632 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21633 SINGLE_BYTE_CHAR_P.
21634 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21636 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21637 (generate_ascii_font_name): Rename from generate_ascii_font.
21639 * fontset.h (get_font_repertory_func): New prototype.
21640 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21641 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21643 * fontset.c (Qprepend, Qappend): New variables.
21644 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21645 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21646 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21647 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21648 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21649 (load_font_get_repertory): New functions.
21650 (fontset_set): Delete.
21651 (fontset_face): New arg FACE. Return face ID, not face.
21652 Complete re-write to handle new fontset structure. Change caller.
21653 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21654 (face_for_char): Don't call lookup_face.
21655 (make_fontset_for_ascii_face): New arg FACE.
21656 (fs_load_font): New arg CHARSET_ID. Don't check
21657 Vfont_encoding_alist here.
21658 (find_font_encoding): New function.
21659 (list_fontsets): Use STRINGP, not ! NILP.
21660 (accumulate_script_ranges): New function.
21661 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21662 re-written to handle new fontset structure.
21663 (Ffontset_font): Return a copy of element.
21664 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21665 docstring of font-encoding-alist.
21667 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21668 (Fset_fotset_font): Fix arguments to 5.
21670 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21672 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21673 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21674 (highlight_trailing_whitespace): Adjust for the change of
21677 * xfaces.c: Include charset.h.
21678 (load_face_font): Delete argument C. Change caller.
21679 (generate_ascii_font_name): Rename from generate_ascii_font.
21680 (font_name_registry): New function.
21681 (cache_face): Store ascii faces before non-ascii faces in buckets.
21682 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21683 Lookup only ascii faces.
21684 (lookup_non_ascii_face): New function.
21685 (lookup_named_face): Delete argument C. Change caller.
21686 (lookup_derived_face): Delete argument C. Change caller.
21687 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21688 a string, just call font_list with it.
21689 (choose_face_font): Delete arguments FACE and C. New arg
21690 FONT_SPEC. Change caller.
21691 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21693 (realize_non_ascii_face): New function.
21694 (realize_x_face): Call load_face_font here.
21695 (realize_tty_face): Delete argument C. Change caller.
21696 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21698 (dump_realized_face): Don't print charset of FACE.
21700 * xfns.c (x_set_font): Always call x_new_fontset and
21701 store_frame_parameter.
21702 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21703 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21705 * xterm.h (x_get_font_repertory): Extern it.
21707 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21708 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21709 it->multibyte_p is zero.
21710 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21711 (x_new_fontset): If FONTSETNAME doesn't match any existing
21712 fontsets, create a new one.
21713 (x_get_font_repertory): New function.
21715 2008-02-01 Kenichi Handa <handa@m17n.org>
21717 * coding.c (Ffind_coding_systems_region_internal): Detect an
21718 ASCII only string correctly.
21720 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21723 2008-02-01 Kenichi Handa <handa@m17n.org>
21725 * lread.c: Include "coding.h".
21726 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21727 (load_each_byte, unread_char): New variables.
21728 (readchar_backlog): Delete.
21729 (readchar): Return a character unless load_each_byte is nonzero.
21730 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21731 cons. If unread_char is not -1, simply return it.
21732 (unreadchar): Handle the case that readcharfun is
21733 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21734 (read_multibyte): Delete.
21735 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21736 (read_emacs_mule_char): New functions.
21737 (Fload): Even if the file doesn't have the extension ".elc", if
21738 safe_to_load_p returns a positive version number, assume that the
21739 file contains bytecompiled code. If the version is less than 22,
21740 load the file while decoding multibyte sequences by emacs-mule.
21741 (readevalloop): Don't use readchar_backlog.
21742 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21743 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21744 (read_escape): Delete the arg BYTEREP.
21745 (read1): Set load_each_byte to 1 temporarily while handling
21746 #@NUMBER. Don't call read_multibyte.
21747 (read_vector): Call Fread with a cons. If readcharfun is
21748 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21749 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21750 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21751 and Qload_force_doc_strings.
21753 2008-02-01 Kenichi Handa <handa@m17n.org>
21755 * xdisp.c (face_before_or_after_it_pos): Call
21756 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21758 2008-02-01 Kenichi Handa <handa@m17n.org>
21760 * character.h (TRAILING_CODE_P): New macro.
21761 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21762 (string_char_with_unification): Fix prototype.
21763 (Vscript_alist): Extern it.
21765 * character.c (Vscript_alist): New variable.
21766 (string_char_with_unification, str_as_unibyte)
21767 (string_escape_byte8): Add `const' to local variables.
21768 (syms_of_character): Declare script-alist as a Lisp variable.
21770 * charset.h (Vcharset_ordered_list): Extern it.
21771 (charset_ordered_list_tick): Extern it.
21772 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21773 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21774 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21775 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21776 (Funify_charset): Adjust for the change of Funify_charset.
21778 * charset.c (charset_ordered_list_tick): New variable.
21779 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21780 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21781 deunify instead of unify a charset.
21782 (string_xstring_p): Add `const' to local variables.
21783 (find_charsets_in_text): Add `const' to arguments and local variables.
21784 (encode_char): Adjust for the change of Funify_charset. Fix
21785 detecting of invalid code.
21786 (Fset_charset_priority): Increment charset_ordered_list_tick.
21787 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21790 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21791 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21792 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21793 (decode_coding_ccl, consume_chars)
21794 (Ffind_coding_systems_region_internal)
21795 (Fcheck_coding_systems_region): Add `const' to local variables.
21797 * print.c (print_object): Use octal form for printing the
21798 contents of a bool vector.
21800 2008-02-01 Dave Love <fx@gnu.org>
21802 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21803 <version == 20>: Refuse to load.
21805 2008-02-01 Dave Love <fx@gnu.org>
21807 * fns.c: Move coding.h.
21808 (Qcodeset, Qdays, Qmonths): New.
21809 (concat): Use CHARACTERP instead of INTEGERP.
21810 (Flocale_codeset): Delete.
21811 (Flanginfo): New function.
21812 (syms_of_fns): Change accordingly.
21814 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21816 2008-02-01 Dave Love <fx@gnu.org>
21818 * casetab.c (init_casetab_once, init_casetab_once): Fix
21819 CHAR_TABLE_SET call.
21821 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21823 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21825 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21826 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21827 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21829 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21831 * coding.c (ENCODE_DESIGNATION, decode_eol)
21832 (make_conversion_work_buffer, code_conversion_restore)
21833 (Fdefine_coding_system_internal): Convert Lisp types.
21834 (code_conversion_restore): Use EQ, not ==.
21835 (Fencode_coding_string): Fix code_convert_string call.
21837 * coding.h (code_convert_region): Fix prototype.
21839 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21841 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21842 (Ffontset_info): Convert Lisp types.
21844 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21846 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21848 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21850 * chartab.c: Include "...h", not <...h> in some cases.
21852 * callproc.c (Fcall_process): Remove unused variables.
21854 2008-02-01 Dave Love <fx@gnu.org>
21856 * coding.c (Fset_coding_system_priority): Allow null arg list.
21858 2008-02-01 Dave Love <fx@gnu.org>
21860 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21861 (Fself_insert_and_exit): Use CHARACTERP.
21863 * callproc.c (Fcall_process): Remove unused vars.
21865 * xterm.c (XTread_socket): Add extra dead keysyms.
21867 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21869 * dispextern.h: Remove prototypes for redraw_frame,
21870 redraw_garbaged_frames.
21872 * cmds.c (Fself_insert_command): Use CHARACTERP.
21874 * chartab.c (make_sub_char_table): Remove unused var.
21875 (Fset_char_table_default, Fmap_char_table): Doc fix.
21877 * keymap.c (access_keymap): Remove generic char code.
21878 (push_key_description): Use CHARACTERP.
21880 2008-02-01 Dave Love <fx@gnu.org>
21882 * charset.c: Doc fixes.
21883 (Funify_charset): Extra checking.
21885 2008-02-01 Dave Love <fx@gnu.org>
21887 * lread.c: Remove some unused variables.
21888 (safe_to_load_p): If safe, return the magic number version byte.
21889 (Fload): Maybe use load-with-code-conversion.
21891 2008-02-01 Kenichi Handa <handa@m17n.org>
21893 * category.c (Fmodify_category_entry): Don't modify the contents
21894 of category_set for characters out of the range. Avoid
21895 unnecessary modification.
21897 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21898 Vchar_unify_table. The default value of the table is now nil.
21900 * character.c (syms_of_character): Setup Vchar_width_table for
21901 eight-bit-control and raw-byte chars.
21903 * charset.h (enum define_charset_arg_index): Delete
21904 charset_arg_parents and add charset_arg_subset and
21905 charset_arg_superset.
21906 (enum charset_attr_index): Delete charset_parents and add
21907 charset_subset and charset_superset.
21908 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21909 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21910 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21911 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21912 (CHARSET_SUPERSET): New macros.
21913 (charset_work): Extern it.
21914 (ENCODE_CHAR): Use charset_work.
21915 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21916 (map_charset_chars): Extern it.
21918 * charset.c (load_charset_map): Set the default value of encoder
21919 and deunifier char-tables to nil.
21920 (map_charset_chars): Change argument. Change callers. Use
21921 map_char_table_for_charset instead of map_char_table.
21922 (Fmap_charset_chars): New optional args from_code and to_code.
21923 (Fdefine_charset_internal): Adjust for the change of
21924 `define-charset' (:parents -> :subset or :superset).
21925 (charset_work): New variable.
21926 (encode_char, syms_of_charset): Adjust for the change of
21927 Fdefine_charset_internal.
21928 (Ffind_charset_string): Setup the vector `charsets' correctly.
21930 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21931 the previous change.
21932 (char_table_ref_and_range): Adjust for the above change.
21933 (map_sub_char_table_for_charset): New function.
21934 (map_char_table_for_charset): New function.
21936 * keymap.c (describe_vector): Handle a char-table directly here.
21937 (describe_char_table): Delete.
21939 * lisp.h (map_charset_chars): Delete.
21941 2008-02-01 Dave Love <fx@gnu.org>
21943 * fns.c (count_combining): Comment out (unused).
21944 (Flocale_codeset): New.
21945 (syms_of_fns): Defsubr it.
21947 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21950 2008-02-01 Dave Love <fx@gnu.org>
21952 * Makefile.in (chartab.o): Depend on charset.h.
21954 2008-02-01 Kenichi Handa <handa@m17n.org>
21956 * character.c (syms_of_character): Set the default value of
21957 Vprintable_chars to Qnil.
21959 2008-02-01 Dave Love <fx@gnu.org>
21961 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21963 2008-02-01 Kenichi Handa <handa@m17n.org>
21965 * charset.c (load_charset_map): Handle the case that from < to
21968 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21969 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21970 Pay attention to raw-8-bit chars.
21972 2008-02-01 Kenichi Handa <handa@m17n.org>
21974 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21975 It is not bytecompiled now.
21977 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21978 (charset_jisx0208): New variables.
21979 (Fdefine_charset_internal): Setup them if appropriate.
21980 (init_charset_once): Initialize them to -1.
21982 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21983 (charset_jisx0208): Extern them.
21985 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21986 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21987 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21988 (setup_iso_safe_charsets): Fix arguments to Fassq.
21989 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21990 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21991 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21992 (encode_coding_iso_2022): Change the 1st arg to
21993 ENCODE_ISO_CHARACTER to a variable.
21995 2008-02-01 Kenichi Handa <handa@m17n.org>
21997 * charset.h (enum define_charset_arg_index): New enums
21998 charset_arg_min_code and charset_arg_max_code.
21999 (struct charset): New member char_index_offset.
22001 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22002 Take charset->char_index_offset into account.
22003 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22004 args[charset_arg_max_code]. Setup charset.char_index_offset.
22005 (syms_of_charset): Fix args to Fdefine_charset_internal.
22007 2008-02-01 Dave Love <fx@gnu.org>
22009 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22011 2008-02-01 Dave Love <fx@gnu.org>
22013 * coding.c: Doc fixes.
22014 (Fcoding_system_aliases): Fix return value.
22015 (Qmac): Remove (duplicated) definition.
22017 2008-02-01 Dave Love <fx@gnu.org>
22019 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22022 * character.c (Fstring): Doc fix.
22024 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22026 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22027 (font-encoding-alist): Doc fix.
22029 2008-02-01 Dave Love <fx@gnu.org>
22031 * term.c (costs_set): Declare static, non-initialized for pcc.
22032 (encode_terminal_code): Remove unused var.
22034 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22037 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22039 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22040 (suffixes): Move out of make_subsidiaries for K&R.
22042 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22044 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22046 2008-02-01 Dave Love <fx@gnu.org>
22048 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22050 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22052 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22054 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22056 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22058 2008-02-01 Kenichi Handa <handa@m17n.org>
22060 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22061 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22063 2008-02-01 Kenichi Handa <handa@m17n.org>
22065 * coding.c (decode_coding_charset): Adjust for the change of
22066 Fdefine_coding_system_internal.
22067 (Fdefine_coding_system_internal): For a coding system of
22068 `charset' type, store a list of charset IDs in
22069 `charset_attr_charset_valids' element of coding attributes.
22071 2008-02-01 Kenichi Handa <handa@m17n.org>
22073 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22074 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22075 caller. Handle 2-byte and 3-byte charsets correctly.
22076 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22077 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22078 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22079 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22080 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22082 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22083 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22084 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22085 and alt&rule composition.
22086 (decode_coding_iso_2022): Handle composition correctly.
22087 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22089 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22090 re-defining a charset. If the charset has :emacs-mule-id, setup
22092 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22094 2008-02-01 Kenichi Handa <handa@m17n.org>
22096 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22097 (encode_coding_big5, encode_coding_charset): If coding requires safe
22098 encoding, produce a character specified by
22099 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22101 2008-02-01 Dave Love <fx@gnu.org>
22103 * xterm.c (XSetIMValues): Declare.
22105 * process.c: Conditionally include sys/wait.h, pty.h.
22107 * print.c (print_object): Fix print format for 64-bit systems.
22109 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22111 * buffer.c (emacs_strerror): Declare.
22113 * fontset.c (Fclear_face_cache): Declare.
22114 (accumulate_font_info): Comment-out (unused).
22115 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22118 * character.h (string_escape_byte8): Declare.
22120 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22122 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22123 (Fmap_charset_chars): Doc fix.
22125 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22126 (Fset_coding_system_priority, Fset_coding_system_priority)
22127 (Fdefine_coding_system_internal): Doc fix.
22129 2008-02-01 Dave Love <fx@gnu.org>
22131 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22133 2008-02-01 Kenichi Handa <handa@m17n.org>
22135 * character.c (string_escape_byte8): Make multibyte string with
22138 * charset.c (Fmake_char): Delete unnecessary code.
22140 2008-02-01 Kenichi Handa <handa@m17n.org>
22142 * xfns.c (x_encode_text): Allocate coding.destination here, and
22143 call encode_coding_object with dst_object Qnil.
22145 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22146 multibyte form correctly.
22148 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22149 against Vfont_encoding_alist.
22151 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22152 handling of charset list.
22153 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22154 (decode_coding_object): Move point to coding->dst_pos before
22155 calling post-read-conversion function.
22156 (encode_coding_object): Give correct arguments to
22157 pre-write-conversion. Ignore the return value of
22158 pre-write-conversion function. Pay attention to the case that
22159 pre-write-conversion changes the current buffer. If dst_object is
22160 Qt, even if coding->src_bytes is zero, allocate at least one byte
22161 to coding->destination.
22163 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22165 * charset.c (Fmake_char): Make it more backward compatible.
22166 (Fmap_charset_chars): Fix docstring.
22168 2008-02-01 Dave Love <fx@gnu.org>
22170 * coding.c: Doc fixes.
22171 (Fdefine_coding_system_alias): Use names, not symbols, in
22172 coding-system-alist.
22174 2008-02-01 Kenichi Handa <handa@m17n.org>
22176 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22177 of calling free_realized_face.
22179 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22181 * charset.c (read_hex): Don't treat SPC as a comment starter.
22182 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22183 (Fdecode_char): Fix typo.
22185 2008-02-01 Kenichi Handa <handa@m17n.org>
22187 * charset.h (struct charset): New member `code_space_mask'.
22189 * coding.c (coding_set_source): Delete the local variable beg_byte.
22190 (encode_coding_charset, Fdefine_coding_system_internal):
22191 Delete the local variable charset.
22192 (Fdefine_coding_system_internal): Setup
22193 attrs[coding_attr_charset_valids] correctly.
22195 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22196 member to check if CODE is valid or not.
22197 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22198 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22199 is within the range of charset->min_code and carset->max_code.
22201 2008-02-01 Dave Love <fx@gnu.org>
22203 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22205 * dispextern.h (generate_ascii_font): Fix return type.
22207 * xfaces.c (generate_ascii_font): Fix arg declaration.
22209 * coding.c (coding_inherit_eol_type)
22210 (Fset_terminal_coding_system_internal)
22211 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22213 2008-02-01 Kenichi Handa <handa@m17n.org>
22215 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22216 multiple charsets correctly.
22218 2008-02-01 Kenichi Handa <handa@m17n.org>
22220 * search.c (boyer_moore): Fix handling of multibyte character
22223 * xdisp.c (display_mode_element): When the variable `elt' is
22224 changed, update `this' and `lisp_string'.
22226 2008-02-01 Kenichi Handa <handa@m17n.org>
22228 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22230 * callproc.c (Fcall_process): Be sure to give the current buffer
22231 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22233 * charset.c (struct charset_map_entries): New struct.
22234 (load_charset_map): Rename from parse_charset_map. New args
22235 entries and n_entries. Change caller.
22236 (load_charset_map_from_file): Rename from load_charset_map.
22237 Change caller. New arg control_flag. Call load_charset_map at
22239 (load_charset_map_from_vector): New function.
22240 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22241 (encode_char): If the charset is compact, change a character index
22244 * coding.c (coding_alloc_by_making_gap): Check the case that the
22245 source and destination are the same correctly.
22246 (decode_coding_raw_text): Set coding->consumed_char and
22247 coding->consumed to 0.
22248 (produce_chars): If coding->chars_at_source is nonzero, update
22249 coding->consumed_char and coding->consumed before calling
22251 (Fdefine_coding_system_alias): Register ALIAS in
22252 Vcoding_system_alist.
22253 (syms_of_coding): Define `no-conversion' coding system at the tail.
22255 * fileio.c (Finsert_file_contents): Set coding_system instead of
22256 val. If the current buffer is multibyte, always call
22259 * xfaces.c (try_font_list): Give higher priority to fontset's
22260 family than face's family.
22262 2008-02-01 Kenichi Handa <handa@m17n.org>
22264 * callproc.c (Fcall_process): Be sure to give the current buffer
22265 to decode_coding_c_string.
22267 * xfaces.c (try_font_list): Give a family specified in a fontset
22268 higher priority than a family specified in a face.
22270 2008-02-01 Kenichi Handa <handa@m17n.org>
22272 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22273 Fix arguments to insert_from_buffer.
22275 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22277 2008-02-01 Kenichi Handa <handa@m17n.org>
22279 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22280 (decode_coding_gap): Set coding->dst_multibyte correctly.
22282 2008-02-01 Kenichi Handa <handa@m17n.org>
22284 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22285 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22286 (encode_coding_utf_16): Substitute coding->default_char for
22287 non-Unicode characters.
22288 (decode_coding): Don't call record_insert here.
22289 (setup_coding_system): Initialize `surrogate' of
22290 coding->spec.utf_16 to 0.
22291 (EMIT_ONE_BYTE): Fix for multibyte case.
22293 * insdel.c (insert_from_gap): Call record_insert.
22295 2008-02-01 Kenichi Handa <handa@m17n.org>
22297 * casefiddle.c (casify_region): Fix multibyte case.
22299 * character.c (c_string_width): Add return type `int'.
22300 (char_string_with_unification): Delete arg ADVANCED.
22302 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22303 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22304 (CHAR_STRING_ADVANCE): Make it do-while statement.
22306 * chartab.c (sub_char_table_set_range): Optimize for the case
22307 DEPTH == 3. Add workaround code for a GCC optimization bug.
22309 * charset.c (parse_charset_map): Remove an unused variable.
22311 * coding.c: Delete unused variables.
22313 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22314 earlier. If inserted is zero and the coding system doesn't
22315 require flushing, don't call decode_coding_gap.
22317 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22319 2008-02-01 Kenichi Handa <handa@m17n.org>
22321 The following changes are for using Unicode as an internal
22322 character model, and use UTF-8 format for buffer/string
22325 * .gdbinit (xchartable): Adjust for the change of char table structure.
22326 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22328 * Makefile.in (obj): Add character.o and chartab.o.
22329 (lisp, shortlisp): Remove utf-8.elc.
22330 (*.o): For many files, change dependency on charset.h to
22331 character.h, and add dependency on character.h.
22332 (character.o, chartab.o): New targets.
22334 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22335 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22336 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22339 * dired.c, filelock.c: Include "character.h".
22341 * alloc.c: Include "character.h" instead of "charset.h".
22342 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22343 (syms_of_alloc): Remove defsubr for Smake_char_table.
22345 * buffer.c: Include "character.h" instead of "charset.h", don't
22346 include "coding.h".
22347 (Fset_buffer_multibyte): Adjust for UTF-8.
22349 * buffer.h: EXFUN Fbuffer_live_p.
22351 * callproc.c: Include "character.h" instead of "charset.h".
22352 (Fcall_process): Big change for the new code-conversion APIs.
22354 * casetab.c: Include "character.h" instead of "charset.h".
22355 (set_canon, set_identity, shuffle): Adjust for the new
22356 map_char_table spec.
22357 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22358 accessing the char table structure.
22360 * chartab.c: New file that implements char table.
22362 * category.c: Include "character.h".
22363 (copy_category_entry): New function.
22364 (copy_category_table): Call map_char_table and copy_category_entry.
22365 (Fmake_category_table): Initialize all top-level slots.
22366 (char_category_set): New function.
22367 (modify_lower_category_set): Delete.
22368 (Fmodify_category_entry): Call char_table_ref_and_range.
22370 * category.h (CATEGORY_SET): Just call char_category_set.
22372 * ccl.c: Include "character.h".
22373 (Qccl, Qcclp): New variables.
22374 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22375 it's less than 256.
22376 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22377 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22379 (ccl_driver): Change types of argument, adjust code accordingly.
22380 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22382 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22384 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22385 New members src_multibyte, dst_multibyte, consumed, and produced.
22386 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22387 (CODING_SPEC_CCL_PROGRAM): New macro.
22388 (ccl_driver): Update prototype.
22389 (Qccl, Qcclp, Fccl_program_p): Extern them.
22390 (CHECK_CCL_PROGRAM): New macro.
22392 * character.c, character.h, chartab.c: New files.
22394 * charset.c: Mostly re-written. Move character and multibyte sequence
22395 handling codes to character.c.
22397 * charset.h: Mostly re-written. Move character and multibyte sequence
22398 handling codes to character.h.
22400 * coding.c, coding.h: Mostly re-written.
22402 * composite.c: Include "character.h" instead of "charset.h".
22403 (CHAR_WIDTH): Move to character.h.
22404 (HASH_KEY, HASH_VALUE): Delete.
22406 * composite.h (enum composition_method): Change order of enumeration
22409 * data.c: Include "character.h" instead of "charset.h".
22410 (Faref): Call CHAR_TABLE_REF for a char table.
22411 (Faset): Call CHAR_TABLE_SET for a char table.
22413 * dispextern.h (free_realized_face, check_face_attribytes)
22414 (generate_ascii_font): Extern them.
22415 (free_realized_multibyte_face): Delete extern.
22417 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22420 * editfns.c: Include "character.h" instead of "charset.h".
22421 (Fchar_to_string): Always call CHAR_STRING.
22423 * emacs.c (main): Call init_charset_once, init_charset,
22424 syms_of_chartab, and syms_of_character.
22426 * fileio.c: Include "character.h" instead of "charset.h".
22427 (Finsert_file_contents): Big change for the new code-conversion API.
22428 (choose_write_coding_system, Fwrite_region): Likewise.
22429 (build_annotations_2): Delete.
22430 (e_write): Big change for the new code-conversion API.
22432 * fns.c: Include "character.h" instead of "charset.h".
22433 (copy_sub_char_table): Move to chartab.c.
22434 (Fcopy_sequence): Call copy_char_table for a char table.
22435 (concat): Delete codes calling count_multibyte.
22436 (string_char_to_byte, string_byte_to_char): Adjust for the new
22438 (internal_equal): Adjust for the change of char table structure.
22439 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22440 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22441 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22442 (char_table_translate, optimize_sub_char_table)
22443 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22445 (char_table_ref_and_index): Delete.
22446 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22447 (Fmd5): Call preferred_coding_system instead of accessing
22448 Vcoding_category_list. Adjust for the new code-conversion API.
22449 (syms_of_fns): Move defsubr for char table related functions to
22452 * fontset.c: Mostly re-written.
22454 * fontset.h (struct font_info): Change type of the member encoding_type.
22455 (enum FONT_SPEC_INDEX): New enum.
22456 (fontset_font_pattern, fs_load_font): Update prototype.
22457 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22459 * indent.c: Include "character.h" instead of "charset.h".
22460 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22462 * insdel.c: Include "character.h" instead of "charset.h".
22463 (copy_text): Don't refer to Vnonascii_translation_table.
22464 (insert_from_gap): New function.
22466 * keyboard.c: Include "character.h" instead of "charset.h".
22467 (command_loop_1): Never call direct_output_forward_char before
22468 a non-ASCII character.
22469 (read_char): If Vkeyboard_translate_table is a char table, always
22470 translate a character.
22472 * keymap.c: Include "character.h".
22473 (store_in_keymap): Handle the case that IDX is a cons.
22474 (Fdefine_key): Handle the case that KEY is a cons and the car part
22475 is also a cons (range).
22476 (push_key_description): Adjust for the new character code.
22477 (describe_vector): Call describe_char_table for a char table.
22478 (describe_char_table): New function.
22480 * keymap.h (describe_char_table): Extern it.
22482 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22483 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22484 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22485 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22487 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22489 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22490 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22491 (CHARTAB_SIZE_BITS_3): New macros.
22492 (chartab_size): Extern it.
22493 (struct Lisp_Char_Table): Re-design.
22494 (struct Lisp_Sub_Char_Table): New structure.
22495 (HASH_KEY, HASH_VALUE): Move from fns.c.
22496 (CHARACTERBITS): Define as 22.
22497 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22498 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22499 (GC_SUB_CHAR_TABLE_P): New macro.
22500 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22501 (code_convert_string_norecord): Deleted extern.
22502 (init_character_once, syms_of_character, init_charset)
22503 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22505 * lread.c: Include "character.h".
22506 (read_multibyte): New arg NBYTES.
22507 (read_escape): Change the meaning of returned *BYTEREP.
22508 (to_multibyte): Delete.
22509 (read1): Adjust the handling of char table and string.
22511 * print.c: Include "character.h" instead of "charset.h".
22512 (print_string): Convert 8-bit raw bytes to octal form by
22513 string_escape_byte8.
22514 (print_object): Adjust for the new multibyte form. Print 8-bit
22515 raw bytes always in octal form. Handle sub char table correctly.
22517 * process.c: Include "character.h" instead of "charset.h".
22518 (read_process_output, send_process): Adjust for the new
22519 code-conversion API.
22521 * puresize.h (BASE_PURESIZE): Increase.
22523 * regex.c: Include "character.h" instead of "charset.h".
22524 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22525 (regex_compile): Accept a range whose starting and ending
22526 character have different leading bytes.
22527 (analyse_first): Adjust for the above change.
22529 * search.c: Include "character.h" instead of "charset.h".
22530 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22531 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22533 * syntax.c: Include "character.h" instead of "charset.h".
22534 (syntax_parent_lookup): Delete.
22535 (Fmodify_syntax_entry): Accept a cons as CHAR.
22536 (skip_chars): Adjust for the new multibyte form.
22537 (init_syntax_once): Call char_table_set_range instead of directly
22538 accessing the structure of a char table.
22540 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22541 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22542 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22543 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22545 * term.c: Include "buffer.h" and "character.h".
22546 (encode_terminal_code, write_glyphs): Adjust for the new
22547 code-conversion API.
22548 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22550 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22552 * xdisp.c: Include "character.h".
22553 (get_next_display_element): Adjust for the new multibyte form.
22554 (disp_char_vector): Adjust for the new char table structure.
22555 (decode_mode_spec_coding): Adjust for the new structure of
22557 (decode_mode_spec): Adjust for the new code-conversion API.
22559 * xfaces.c: Include "character.h" instead of "charset.h".
22560 (load_face_font): Adjust for the change of choose_face_font and
22562 (generate_ascii_font): New function.
22563 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22564 (set_font_frame_param): Adjust for the change of choose_face_font.
22565 (free_realized_face): Make it public.
22566 (free_realized_faces_for_fontset): Rename from
22567 free_realized_multibyte_face. Free also faces realized for ASCII.
22568 (choose_face_font): Change arguments. Adjust for the change of
22569 fontset_font_pattern and FS_LOAD_FONT.
22571 * xfns.c: Include "character.h".
22572 (x_encode_text): Adjust for the new code-conversion API.
22574 * xselect.c: Don't include "charset.h".
22575 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22577 * xterm.c: Include "character.h".
22578 (x_encode_char): New argument CHARSET. Change caller.
22579 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22580 Call ENCODE_CHAR instead of SPLIT_CHAR.
22581 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22582 CHAR_WIDTH instead of CHARSET_WIDTH.
22583 (XTread_socket): Adjust for the new code-conversion API.
22584 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22585 (x_load_font): Adjust for the change of struct font.
22587 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22589 * xfaces.c (face_at_buffer_position): Remove unused vars.
22591 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22593 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22594 Fix overflow checking.
22596 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22598 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22599 Cancel previous change.
22601 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22603 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22604 ccl->eight_bit_control. Fix check for buffer overflow.
22605 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22606 (ccl_driver): Initialize extra_bytes to 0.
22608 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22610 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22611 return it ORed with ctrl_modifier.
22613 2008-01-29 Miles Bader <miles@gnu.org>
22615 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22617 2008-01-28 Jason Rumney <jasonr@gnu.org>
22619 * w32.c (stat): Don't double check for networked drive.
22621 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22623 * window.c (run_window_configuration_change_hook): New function.
22624 Code extracted from set_window_buffer. Set the selected frame.
22625 (set_window_buffer): Use it.
22626 * window.h (run_window_configuration_change_hook): Declare.
22627 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22629 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22631 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22633 * Makefile.in: Remove references to unused macros.
22635 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22637 * w32.c (g_b_init_get_sid_sub_authority)
22638 (g_b_init_get_sid_sub_authority_count): New static variables.
22639 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22640 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22641 (init_user_info): Use them to retrieve uid and gid.
22642 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22643 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22644 st_uid and st_gid of the file.
22646 2008-01-26 Jason Rumney <jasonr@gnu.org>
22648 * w32.c (logon_network_drive): New function.
22651 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22653 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22654 invisible text covered with an ellipsis.
22656 2008-01-25 Richard Stallman <rms@gnu.org>
22658 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22659 jump back to beginning. Move some other initializations after that.
22660 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22662 (syms_of_xdisp): Init them.
22664 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22666 * buffer.c (reset_buffer_local_variables):
22667 Implement `permanent-local-hook'.
22668 (Qpermanent_local_hook): New variable.
22669 (syms_of_buffer): Init and staticpro it.
22671 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22673 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22675 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22677 * fns.c (Fclrhash): Return TABLE.
22679 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22681 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22682 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22683 is set even without positional changes.
22684 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22686 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22688 2008-01-23 Jason Rumney <jasonr@gnu.org>
22690 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22692 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22693 the unicode range available in MULE by locale-coding-system.
22694 Improve dbcs lead byte detection. Set event timestamp and modifiers
22697 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22699 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22700 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22701 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22702 when used on child processes.
22704 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22706 * dbusbind.c (Fdbus_method_return_internal): Rename from
22707 Fdbus_method_return.
22708 (Fdbus_unregister_object): Move to dbus.el.
22709 (Fdbus_call_method, Fdbus_method_return_internal)
22710 (Fdbus_send_signal): Improve debug messages.
22712 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22714 * undo.c (undo_inhibit_record_point): New variable.
22715 (syms_of_undo): Initialize it.
22716 (record_point): Don't record point when undo_inhibit_record_point
22719 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22721 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22723 * xdisp.c (Qauto_hscroll_mode): New var.
22724 (syms_of_xdisp): Initialize it.
22725 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22727 (hscroll_windows): Don't check automatic_hscrolling_p here.
22729 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22730 vscroll if we're setting window-buffer to the value it already has.
22732 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22734 * m/intel386.h: Remove references to XENIX.
22736 2008-01-17 Andreas Schwab <schwab@suse.de>
22738 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22739 instead of HAVE_X86_64_LIB64_DIR.
22740 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22742 2008-01-17 Glenn Morris <rgm@gnu.org>
22744 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22745 to HAVE_X86_64_LIB64_DIR.
22747 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22754 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22756 * sysdep.c: Remove code containing references to symbols defined
22757 by unsupported systems.
22759 2008-01-16 Glenn Morris <rgm@gnu.org>
22761 * coding.c (select-safe-coding-system-function): Doc fix.
22763 2008-01-15 Glenn Morris <rgm@gnu.org>
22765 * config.in: Revert 2008-01-13 change: this is a generated file.
22767 2008-01-13 Tom Tromey <tromey@redhat.com>
22769 * lisp.h: Fix typo.
22771 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22777 * s/ptx4.h: Remove files for systems no longer supported.
22779 * callproc.c (Fcall_process): Fix previous change.
22781 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22783 * unexsunos4.c: Remove file, system not supported anymore.
22803 * alloc.c: Remove code containing references to symbols defined by
22804 unsupported systems.
22806 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22808 * coding.c (detect_coding_mask): Fix previous change.
22810 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22812 * coding.c (detect_coding_iso2022): New arg
22813 latin_extra_code_state. Allow Latin extra codes only
22814 when *latin_extra_code_state is nonzero.
22815 (detect_coding_mask): If there is a NULL byte, detect the encoding
22816 as UTF-16 or binary. If Latin extra codes exist, detect the
22817 encoding as ISO-2022 only when there's no other proper encoding is
22820 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22822 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22825 2008-01-08 Richard Stallman <rms@gnu.org>
22827 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22829 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
22831 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22832 menu bar in parentheses.
22834 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22838 * m/alliant-2800.h:
22846 * m/aviion-intel.h:
22941 * unexsni.c: Remove files for systems no longer supported.
22943 * m/intel386.h: Remove references to unsupported systems.
22945 * w32.c (get_emacs_configuration): Remove reference to i860.
22947 * sysdep.c: Remove dead code.
22949 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22952 * m/masscomp.h: Remove files. Platform is obsolete.
22954 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
22956 * dbusbind.c (Fdbus_method_return): New function.
22957 (xd_read_message): Add the serial number to the event.
22958 (Fdbus_register_method): Activate the function.
22960 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22962 * keyboard.c (read_key_sequence): Fix typo.
22964 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
22966 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22967 (xd_signature, xd_append_arg): Handle element type detection for
22969 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22970 SDATA () calls; this must be solved more general.
22971 (Fdbus_register_signal): Use SBYTES instead of strlen.
22973 2008-01-03 Magnus Henoch <magnus@zemdatav>
22975 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22976 unsigned int for byte values (necessary for big-endian platform).
22977 (Fdbus_call_method): Handle the case of no returned arguments.
22979 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22981 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22983 2007-12-31 Magnus Henoch <mange@freemail.hu>
22985 * dbusbind.c (xd_signature): Signature of variant is just "v".
22987 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
22989 * dbusbind.c: Fix several errors and compiler warnings.
22990 Reported by Tom Tromey <tromey@redhat.com>.
22991 (XD_ERROR, XD_DEBUG_MESSAGE)
22992 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22993 (xd_append_arg): Part for basic D-Bus types rewritten.
22994 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22995 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22997 (xd_read_message): Return Qnil. Don't signal an error; it is not
22998 useful during event reading.
22999 (Fdbus_register_signal): Signal an error if the check for
23001 (Fdbus_register_method): New function. The implementation is not
23002 complete, the call of the function signals an error therefore.
23003 (Fdbus_unregister_object): New function, renamed from
23004 Fdbus_unregister_signal. The initial check signals an error, if
23005 the object is not well formed.
23007 2007-12-30 Richard Stallman <rms@gnu.org>
23009 * textprop.c (get_char_property_and_overlay):
23010 Signal error if POSITION is out of range in a buffer.
23012 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23014 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23015 because the original parameters are in pure storage now.
23017 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23019 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23021 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23023 * callint.c (syms_of_callint) <command-history>: Add reference to
23024 history-length in the doc string.
23026 2007-12-17 Jason Rumney <jasonr@gnu.org>
23028 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23029 before passing as wParam.
23031 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23033 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23034 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23035 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23036 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23038 (Fdbus_call_method): Fix docstring.
23040 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
23042 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23044 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23045 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23047 (xd_signature): New function.
23048 (xd_append_arg): Compute also signatures. Major rewrite.
23049 (xd_retrieve_arg): Make debug messages friendly.
23050 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23051 Check for signatures of arguments.
23053 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
23055 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23056 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23057 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23058 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23059 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23060 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23061 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23062 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23063 (xd_retrieve_value): Remove. Functionality included in ...
23064 (xd_append_arg): New function.
23065 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23067 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
23069 * dbusbind.c (top): Include <stdio.h>.
23070 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23071 dbus_message_new_method_call and dbus_message_new_signal.
23072 (Fdbus_register_signal): Rename unique_name to uname.
23073 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23074 non-existing unique name. Fix typos in matching rule. Return an
23075 object which is useful in Fdbus_unregister_signal.
23076 (Fdbus_unregister_signal): Reimplementation, in order to remove
23077 only the corresponding entry.
23078 (Vdbus_registered_functions_table): Change the order of entries.
23079 Apply these changes in xd_read_message and Fdbus_register_signal.
23081 2007-12-16 Andreas Schwab <schwab@suse.de>
23083 * fileio.c (Finsert_file_contents): Fix overflow check to not
23084 depend on undefined integer overflow.
23086 2007-12-14 Jason Rumney <jasonr@gnu.org>
23088 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23089 for characters above 127.
23091 2007-12-13 Jason Rumney <jasonr@gnu.org>
23093 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23094 before dereferencing array.
23095 (lookup_vk_code): Remove zero comparison.
23097 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
23099 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23100 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23101 Use `unsigned int' instead of `uint'.
23102 (xd_read_message, Fdbus_register_signal): Split expressions into
23103 multiple lines before operators "&&" and "||", according to the
23104 GNU Coding Standards.
23106 2007-12-14 Eli Zaretskii <eliz@gnu.org>
23108 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23110 2007-12-12 Juri Linkov <juri@jurta.org>
23112 * buffer.c (Frename_buffer): In interactive spec replace
23113 `read-buffer' with `read-string' that uses `buffer-name-history'
23114 as history, and the current buffer's name as default.
23116 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23118 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23119 manipulating the backtrace manually.
23120 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23121 (struct backtrace, backtrace_list): Remove.
23122 (command_loop_1): Remove dead var `no_direct'.
23124 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23125 preserve non-built-in buffer-local variables.
23126 (Fkill_all_local_variables): Don't re-create&re-set permanent
23127 buffer-local variables.
23129 2007-12-09 Juri Linkov <juri@jurta.org>
23131 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23132 Lisp code that uses `read-buffer' with current buffer as default.
23134 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
23136 * dbusbind.c (xd_read_message): Generate an event for every
23137 registered handler. There might be several handlers registered
23138 for the same signal.
23139 (Fdbus_register_signal): Don't overwrite a registration for the
23140 same signal. Add a new registration if handlers are different.
23141 (Vdbus_registered_functions_table): Rework doc string.
23143 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
23145 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23146 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23147 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23148 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23149 Unify argument lists.
23150 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23151 arguments and hash table keys. Use unique name for service.
23152 (Fdbus_unregister_signal): Remove checks.
23153 (Vdbus_registered_functions_table): Fix doc string.
23155 2007-12-05 Magnus Henoch <mange@freemail.hu>
23157 * process.c (make_process): Initialize pty_flag to 0.
23159 2007-12-05 Jason Rumney <jasonr@gnu.org>
23161 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23164 2007-12-05 Richard Stallman <rms@gnu.org>
23166 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23168 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23170 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23172 (mac_try_close_socket) [MAC_OSX]: New function.
23173 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23174 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23176 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23177 Use mac_try_close_socket.
23179 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23181 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23183 (copy_dysymtab): Compute relocation base here.
23184 (rebase_reloc_address) [__ppc64__]: New function.
23185 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23188 2007-12-05 Jason Rumney <jasonr@gnu.org>
23190 * w32proc.c (sys_spawnve): Quote args with wildcards.
23192 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23194 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23196 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23198 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23200 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23201 Move check for Vdbus_registered_functions_table to
23202 xd_read_queued_messages.
23203 (xd_read_queued_messages): Protect xd_read_message calls by
23204 internal_condition_case_1.
23206 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23208 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23209 Qdbus_system_bus and Qdbus_session_bus, respectively.
23210 (Vdbus_intern_symbols): Remove.
23211 (Vdbus_registered_functions_table): New hash table.
23212 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23213 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23214 Rewrite in order to manage registered functions by hash table
23215 Vdbus_registered_functions_table.
23217 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23219 * xterm.c: Update URL to Window Manager Specification in comment.
23221 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23223 * config.in (HAVE_DBUS): Add.
23225 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23226 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23227 (obj): Add $(DBUS_OBJ).
23228 (LIBES): Add $(DBUS_LIBS).
23229 (dbusbind.o): New target.
23231 * dbusbind.c: New file.
23233 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23235 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23236 (Qdbus_event): New Lisp symbol.
23237 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23238 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23239 (keys_of_keyboard): Define dbus-event.
23241 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23243 2007-12-01 Richard Stallman <rms@gnu.org>
23245 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23247 2007-11-30 Jason Rumney <jasonr@gnu.org>
23249 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23250 (w32con_reset_terminal_modes): Clear screen buffer.
23251 (w32_face_attributes): Don't use color indexes that are out of range.
23252 Only reverse the default colors.
23254 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23257 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23259 2007-11-29 Jason Rumney <jasonr@gnu.org>
23261 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23262 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23263 if the terminal colors are initialized.
23264 (unspecified_fg, unspecified_bg): Remove unused declarations.
23266 2007-11-29 Andreas Schwab <schwab@suse.de>
23268 * keyboard.c (apply_modifiers): Fix typo.
23270 2007-11-29 Richard Stallman <rms@gnu.org>
23272 * keymap.c (Fcurrent_local_map): Doc fix.
23274 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23276 * s/gnu-kfreebsd.h: New file.
23278 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23280 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23281 Don't cast redundantly.
23283 * keyboard.c (KEY_TO_CHAR): New macro.
23284 (parse_modifiers, apply_modifiers): Accept integer arguments.
23285 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23286 for chars and symbol keys.
23287 After doing such remapping, apply function-key-map again.
23289 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23291 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23294 2007-11-26 Andreas Schwab <schwab@suse.de>
23296 * process.c (list_processes_1): Fix indentation level of the
23299 2007-11-23 Andreas Schwab <schwab@suse.de>
23301 * editfns.c (Fformat): Handle %c specially since it requires the
23302 argument to be of type int.
23304 2007-11-23 Markus Triska <markus.triska@gmx.at>
23306 * emacs.c (main): Call init_editfns before init_process, since
23307 init_process sets Vprocess_connection_type depending on OS release.
23309 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23311 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23312 (find_symbol_value): Use do_symval_forwarding.
23314 * data.c (set_internal): Set the value in the `cons-cell' (for
23315 Buffer_Local_values) not only for frame-local variables.
23317 2007-11-22 Andreas Schwab <schwab@suse.de>
23319 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23321 * keymap.c (Fsingle_key_description): Likewise.
23322 * print.c (print_object): Likewise.
23324 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23326 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23327 file for image is nil.
23329 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23331 * term.c: Include stdarg.h.
23332 (fatal): Implement using varargs.
23333 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23335 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23337 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23338 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23339 Update call to buffer_slot_type_mismatch.
23340 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23341 (buffer_slot_type_mismatch): Update.
23342 * buffer.c (buffer_local_types): Remove.
23343 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23344 (defvar_per_buffer): Set the type in the buffer_objfwd.
23346 2007-11-21 Jason Rumney <jasonr@gnu.org>
23348 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23349 CreateFileMapping returns NULL on failure.
23351 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23353 * search.c (Fset_match_data): Remove the `evaporate' feature.
23354 (unwind_set_match_data): Don't use the `evaporate' feature.
23356 2007-11-21 Jason Rumney <jasonr@gnu.org>
23358 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23360 * w32console.c (w32con_write_glyphs): Remove unused variables.
23362 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23364 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23366 * s/darwin.h (MULTI_KBOARD): Remove.
23368 * macfns.c (x_create_tip_frame, Fx_create_frame)
23369 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23371 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23373 * buffer.c (Fbuffer_local_value): Remove redundant test.
23374 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23375 than in `current-buffer' to match the comment.
23376 Do the swap using swap_in_global_binding.
23378 * data.c (store_symval_forwarding, set_internal):
23379 * eval.c (specbind): Remove dead code.
23381 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23382 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23383 Since we do not want to see internal Lisp_*fwd objects here.
23385 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23387 * sysdep.c (init_system_name): Use getaddrinfo if available.
23389 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23390 (x_scroll_bar_note_movement): start, end, with, height in struct
23391 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23393 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23395 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23397 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23399 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23400 This undoes Richard's change of 14-Oct-2002.
23402 * alloc.c (allocate_other_vector):
23403 * lisp.h (allocate_other_vector): Remove.
23405 * window.c (struct save_window_data): Move non-lisp data to the end
23406 and make it `int' rather than Lisp_Object.
23407 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23408 Done wrap/unwrap integer values.
23409 (Fset_window_configuration, compare_window_configurations):
23410 Update use of fields to their new types.
23412 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23413 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23414 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23415 (SET_SCROLL_BAR_X_WINDOW): Remove.
23416 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23417 Access the new x_window field directly.
23418 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23419 Don't wrap/unwrap integers into Lisp_Objects.
23420 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23421 (x_scroll_bar_report_motion):
23422 Don't wrap/unwrap integers into Lisp_Objects.
23423 (x_term_init): Use SDATA.
23424 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23425 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23426 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23427 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23428 * xfns.c (x_set_background_color):
23429 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23430 Access the new x_window field directly.
23432 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23433 (allocate_pseudovector): Make non-static.
23435 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23436 (allocate_pseudovector): Declare.
23437 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23439 2007-11-15 Andreas Schwab <schwab@suse.de>
23441 * editfns.c (Fformat): Correctly format EMACS_INT values.
23442 Also take precision into account when formatting an integer.
23444 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23446 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23448 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23449 (syms_of_keyboard): Defsubr it.
23451 * data.c (swap_in_global_binding): Fix longstanding bug where
23452 store_symval_forwarding was not called with the right second argument,
23453 thus causing objfwd-ing from being dropped.
23455 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23457 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23458 (Fx_display_pixel_height, Fx_display_planes)
23459 (Fx_display_color_cells, Fx_server_max_request_size)
23460 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23461 (Fx_display_visual_class, Fx_display_save_under):
23462 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23463 (Fx_display_pixel_height, Fx_display_planes)
23464 (Fx_display_color_cells, Fx_server_max_request_size)
23465 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23466 (Fx_display_mm_height, Fx_display_mm_width)
23467 (Fx_display_backing_store, Fx_display_visual_class)
23468 (Fw32_select_font, Fx_display_save_under):
23469 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23470 (Fx_display_pixel_height, Fx_display_planes)
23471 (Fx_display_color_cells, Fx_server_max_request_size)
23472 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23473 (Fx_display_save_under): Fix typos in docstrings.
23475 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23477 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23478 corresponding to deleted entries; they are an implementation detail.
23479 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23481 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23482 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23483 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23484 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23485 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23486 (Fw32_define_rgb_color, Fw32_load_color_file)
23487 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23488 Fix typos in docstrings.
23489 (Fx_server_version): Reflow docstring.
23490 (Fw32_shell_execute): Doc fixes.
23492 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23494 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23495 if w32_parse_hot_key returned nil.
23497 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23499 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23501 2007-11-09 Jason Rumney <jasonr@gnu.org>
23503 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23505 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23507 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23508 Remove W32_SCROLL_BAR_CLICK_EVENT.
23510 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23511 Add MULTIMEDIA_KEY_EVENT.
23513 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23514 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23515 (make_lispy_event) [WINDOWSNT]: Use it to translate
23516 MULTIMEDIA_KEY_EVENT.
23518 * w32term.h (WM_APPCOMMAND): Define if not already.
23519 (GET_APPCOMMAND_LPARAM): Likewise.
23521 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23524 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23525 (syms_of_w32fns): Export and initialize it.
23526 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23528 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23530 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23533 * xdisp.c (handle_face_prop): Fix last change.
23535 2007-11-09 Richard Stallman <rms@gnu.org>
23537 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23538 not just for after-strings and before-strings.
23539 Call face_for_overlay_string and pass the overlay to it.
23540 (handle_display_prop): Determine whether property came from an overlay.
23541 Pass OVERLAY arg to handle_single_display_spec.
23542 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23543 (load_overlay_strings): Fill in it->string_overlays.
23544 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23546 * xfaces.c (face_for_overlay_string): Function renamed from
23547 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23549 * dispextern.h (struct it): New elt string_overlays.
23550 New elt from_overlay, also in stack.
23551 Rearrange a few elements.
23552 (face_for_overlay_string): Decl renamed from
23553 face_at_buffer_position_no_overlays, and add argument.
23555 2007-11-09 Richard Stallman <rms@gnu.org>
23557 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23558 to get the base face for an overlay string.
23560 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23562 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23564 * xdisp.c (handle_stop): Move some code out of loop.
23566 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23568 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23569 Fix conversion from Lisp object to ATSUFontID.
23571 2007-11-09 Jason Rumney <jasonr@gnu.org>
23573 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23575 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23577 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23578 Don't assume regions are aligned to page boundary.
23579 (print_load_command_name): Add LC_UUID if defined.
23581 2007-11-09 Richard Stallman <rms@gnu.org>
23583 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23585 2007-11-07 Jason Rumney <jasonr@gnu.org>
23587 * s/windows95.h: Remove.
23589 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23591 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23592 abort with a message on unhandled store_type values.
23594 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23596 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23597 Remove HAVE_X11R5 and HAVE_X11R4.
23599 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23601 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23603 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23605 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23606 Don't set s->stippled_p here, since it has already been set by
23607 x_set_glyph_string_gc from x_draw_glyph_string.
23609 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23611 * sunfns.c: Remove file.
23615 * m/sparc.h: Remove Sun windows code.
23617 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23619 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23620 (init_keyboard): Set current_kboard's window-system to nil.
23621 (tty_read_avail_input): Typo.
23622 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23624 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23631 * Makefile.in: Remove all mentions of X10.
23633 * dispnew.c (syms_of_display): Don't mention version 10.
23635 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23637 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23638 ($(BLD)/abbrev.$(O)): Remove.
23640 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23642 Rewrite abbrev.c in Elisp.
23643 * image.c (Qcount): Don't declare as extern.
23644 (syms_of_image): Initialize and staticpro `Qcount'.
23645 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23646 * emacs.c (main): Don't call syms_of_abbrev.
23647 * Makefile.in (obj): Remove abbrev.o.
23648 (abbrev.o): Remove.
23649 * abbrev.c: Remove.
23651 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23653 * window.c (window_min_size_2): Don't count header-line.
23655 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23657 * frame.h (struct frame): Move all bit fields after the first bit
23658 field to take advantage of the available space. Group all the
23659 chars together to reduce wasted space due to padding.
23661 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23663 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23665 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23666 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23667 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23668 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23669 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23670 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23671 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23672 (last_marked, mark_object_loop_halt): Make static.
23674 * frame.c (syms_of_frame) <delete-frame-functions>:
23675 Fix typo in docstring.
23677 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23679 * w32.c (init_environment): Fix tiny memory leak.
23680 (w32_get_resource): Remove unused variable `ok'.
23682 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23684 Make `window-system' into a keyboard-local variable (rather than
23685 frame-local as done originally by multi-tty).
23687 * keyboard.h (struct kboard): Add Vwindow_system.
23688 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23689 (mark_kboards): Mark Vwindow_system.
23691 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23692 (init_display): Don't set the obsolete `window-system' frame-param.
23694 * xterm.c (x_term_init):
23695 * w32term.c (w32_create_terminal):
23696 * term.c (init_tty): Set Vwindow_system.
23697 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23698 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23700 * xfns.c (Fx_create_frame, x_create_tip_frame):
23701 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23702 * macfns.c (Fx_create_frame):
23703 Don't set the obsolete `window-system' frame-param.
23705 * frame.h (Qwindow_system): Remove.
23706 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23707 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23709 2007-10-24 Richard Stallman <rms@gnu.org>
23711 * frame.c (x_figure_window_size): For fullscreen case,
23712 set USPosition | PPosition without clobbering rest of window_prompting.
23714 * keyboard.c (Fcurrent_idle_time): Doc fix.
23716 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23718 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23720 * process.c (unwind_request_sigio): Only define if __ultrix__.
23722 * callproc.c (child_setup): Remove spurious *.
23724 * lisp.h (Fget_text_property): Declare.
23725 (have_menus_p): Declare it here rather than in sys-dep header files.
23726 * macterm.h (have_menus_p):
23727 * msdos.h (have_menus_p):
23728 * xterm.h (have_menus_p): Remove.
23730 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23731 (Fmake_variable_frame_local): Just check the variable's const-ness
23732 rather than checking nil or t.
23734 2007-10-22 Jason Rumney <jasonr@gnu.org>
23736 * w32fns.c: Include math.h.
23737 (w32_abort): Declaration moved to nt/config.nt.
23739 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23740 (abort): Redefinition moved to nt/config.nt.
23742 * m/windowsnt.h: Remove.
23744 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
23746 * emacs.c (Fdump_emacs): Fix typo in message.
23747 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23748 <installation-directory>: Reflow docstring.
23750 2007-10-22 Juri Linkov <juri@jurta.org>
23752 * minibuf.c: Allow minibuffer default to be a list of default values.
23753 With empty input use the first element of this list as returned default.
23755 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23756 (read_minibuf): If defalt is cons, set histstring to its car.
23757 (Fread_string): If default_value is cons, set val to its car.
23758 (Fread_buffer): If def is cons, use its car.
23759 (Fcompleting_read): If defalt is cons, set val to its car.
23761 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
23763 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23765 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
23767 * doc.c (Fdocumentation): Check for advice in all cases.
23769 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
23771 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23773 2007-10-19 Richard Stallman <rms@gnu.org>
23775 * doc.c (Fdocumentation): Check for and handle an advised function.
23777 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
23779 * process.c (Fset_process_filter): Doc fix.
23781 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23783 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23784 which caused key-translation-map to applied repeatedly (thus breaking
23787 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23789 * xselect.c (x_own_selection, x_handle_selection_clear)
23790 (x_clear_frame_selections):
23791 * w32menu.c (list_of_panes, list_of_items):
23792 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23793 * textprop.c (validate_plist, interval_has_all_properties)
23794 (interval_has_some_properties, interval_has_some_properties_list)
23795 (add_properties, text_property_list):
23796 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23797 * minibuf.c (Fassoc_string):
23798 * macselect.c (x_own_selection, x_clear_frame_selections)
23799 (Fx_disown_selection_internal):
23800 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23801 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23803 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
23805 * process.c: Link to libs for calling res_init() if available.
23806 (Fmake_network_process): Call res_init() before getaddrinfo or
23807 gethostbyname, if possible.
23809 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23811 * lread.c (read1): Set pvectype for char_tables.
23813 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23814 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23816 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23818 * alloc.c (free_misc): Use XMISCTYPE.
23819 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23821 2007-10-17 Glenn Morris <rgm@gnu.org>
23823 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23824 (syms_of_minibuf): Add Qcompletion_ignore_case.
23825 * dired.c (Qcompletion_ignore_case): Change to external.
23826 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23827 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23828 (Fread_file_name): Use it rather than intern'ing.
23830 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23831 (Fread_coding_system): Ignore case of user input.
23833 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23835 * xdisp.c (handle_display_prop): Ignore display specs after
23836 replacing one when string text is being replaced.
23837 (handle_single_display_spec): Pretend as if characters with display
23838 property haven't been consumed only when buffer text is being replaced.
23840 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23842 * xfns.c (Fx_create_frame, Fx_display_list):
23843 * window.c (window_fixed_size_p, enlarge_window)
23844 (shrink_window_lowest_first):
23845 * macterm.c (init_font_name_table):
23846 * macfns.c (Fx_create_frame, Fx_display_list):
23847 * lread.c (close_load_descs):
23848 * keyboard.c (read_char_x_menu_prompt):
23849 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23850 * coding.c (code_convert_region_unwind): Test the type of an object
23851 rather than just !NILP before extracting data from it.
23853 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23855 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23856 (XMISCANY): New macro.
23857 (XMISCTYPE): Use it.
23858 (struct Lisp_Misc_Any): New type.
23859 (union Lisp_Misc): Use it.
23860 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23861 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23862 (find_symbol_value, set_internal, default_value, Fset_default)
23863 (Fmake_variable_buffer_local, Fmake_local_variable)
23864 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23865 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23866 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23867 * alloc.c (allocate_buffer): Set the size and tag.
23868 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23870 (die): Follow the GNU convention for error messages.
23871 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23872 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23874 (set_buffer_internal_1):
23875 * frame.c (store_frame_param):
23876 * eval.c (specbind):
23877 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23879 * doc.c (Fsnarf_documentation): Simplify.
23881 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23883 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23884 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23886 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23888 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23890 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23892 * eval.c (do_autoload): Don't save autoloads.
23894 * data.c (Ffset): Save autoload of the function being set.
23896 2007-10-07 John Paul Wallington <jpw@pobox.com>
23898 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23899 parameter before setting up faces.
23901 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23903 * ccl.c (Fregister_code_conversion_map):
23904 * keyboard.c (append_tool_bar_item): Reformat last change.
23906 * lisp.h (eabs): Rename from `abs'. All callers changed.
23908 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23910 * buffer.c (add_overlay_mod_hooklist):
23911 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23912 * fontset.c (make_fontset):
23913 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23914 (append_tool_bar_item):
23915 * macmenu.c (grow_menu_items):
23916 * w32menu.c (grow_menu_items):
23917 * xmenu.c (grow_menu_items): Use larger_vector.
23919 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23921 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23922 selected frame'' on MSDOS).
23924 2007-10-12 Martin Rudalics <rudalics@gmx.at>
23926 * frame.c (Qexplicit_name): New variable.
23927 (x_report_frame_params): Report it in parameter alist.
23928 (syms_of_frame): Intern and staticpro it.
23930 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23932 * macfns.c (x_create_tip_frame): Set terminal for frame.
23934 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23936 * frame.c (Qenvironment): Remove.
23937 (syms_of_frame) <Qenvironment>: Don't initialize.
23938 (Fdelete_frame): Don't treat the `environment' param specially.
23939 * frame.h (Qenvironment): Don't declare.
23940 * callproc.c (set_initial_environment): Don't set unused frame param.
23942 * frame.c (Fframe_with_environment): Remove.
23943 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23945 * lisp.h (Fframe_with_environment): Don't declare.
23947 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
23949 * indent.c (indent_tabs_mode, last_known_column)
23950 (last_known_column_modified): Make static.
23951 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23953 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23955 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23957 2007-10-09 Jason Rumney <jasonr@gnu.org>
23959 * w32term.c (x_set_window_size): Disable code that attempts to tell
23960 Lisp code about a size change before it actually happens.
23962 2007-10-09 Richard Stallman <rms@gnu.org>
23964 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23965 return HANDLED_RETURN.
23967 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23969 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23970 when there's an unread command event.
23972 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23973 window autoselection act appropriately when leaving selected frame.
23974 (syms_of_frame): Initialize focus_follows_mouse.
23975 * frame.h (focus_follows_mouse): Extern it.
23976 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23977 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23978 * msdos.c (dos_rawgetc): Likewise.
23979 * w32term.c (w32_read_socket): Likewise.
23980 * xterm.c (handle_one_xevent): Likewise.
23981 * xdisp.c (syms_of_xdisp): In doc-string of
23982 mouse-autoselect-window mention focus-follows-mouse.
23984 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23986 * macterm.c (mac_load_query_font): Fix missing return value.
23987 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23990 2007-10-08 Richard Stallman <rms@gnu.org>
23992 * xdisp.c (get_window_cursor_type): Implement documented behavior
23993 for cursor-in-non-selected-windows = t.
23995 2007-10-08 Jason Rumney <jasonr@gnu.org>
23997 * w32.c (w32_get_resource): Always close registry keys.
23999 2007-10-08 Jason Rumney <jasonr@gnu.org>
24001 * makefile.w32-in (LIBS): Add COMCTL32.
24003 * w32fns.c (globals_of_w32fns): Init common controls.
24005 2007-10-08 Richard Stallman <rms@gnu.org>
24007 * image.c (our_memory_buffer): Rename from omfib_buffer.
24009 2007-10-08 Richard Stallman <rms@gnu.org>
24011 * buffer.c (Foverlays_at): Doc fix.
24013 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24015 * fns.c (Fplist_put): Preserve uneven tail data.
24017 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24019 * termhooks.h (enum event_kind): Remove trailing comma.
24021 * frame.h (enum): Remove trailing comma.
24023 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24025 * w32proc.c (delete_child): Don't terminate threads of zombies.
24027 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24029 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24031 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24032 last-repeatable-command.
24033 (init_kboard): Initialize Vlast_repeatable_command.
24034 (command_loop_1): Set it to real_this_command unless that was
24035 bound to an input event.
24036 (mark_kboards): Mark it.
24038 2007-10-08 Richard Stallman <rms@gnu.org>
24040 * eval.c (condition-case): Doc fix.
24042 2007-10-08 Masatake YAMATO <jet@gyve.org>
24044 * xfaces.c (tty_supports_face_attributes_p): Fix code
24045 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24046 was copied and not edited.
24048 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24050 Add new `input-decode-map' keymap and use it for terminal
24052 * keyboard.h (struct kboard): Add Vinput_decode_map.
24053 Remove Vlocal_key_translation_map.
24054 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24055 (init_kboard): Init input-decode-map.
24056 Replace local-key-translation-map back with key-translation-map.
24057 (syms_of_keyboard): Declare input-decode-map.
24058 Remove local-key-translation-map. Update docstrings.
24059 (mark_kboards): Mark Vinput_decode_map.
24060 Don't mark Vlocal_key_translation_map.
24061 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24062 Replace local-key-translation-map back with key-translation-map.
24063 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24064 Bind in input-decode-map rather than function-key-map.
24066 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24067 This was made redundant by the previous introduction of XSETPVECTYPE.
24069 2007-10-09 Richard Stallman <rms@gnu.org>
24071 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24073 2007-09-29 Richard Stallman <rms@gnu.org>
24075 * eval.c (internal_condition_case_2, internal_condition_case_1)
24076 (internal_condition_case): Reenable abort if x_catching_errors ()
24077 to see if that really happens and why.
24079 2007-10-06 Andreas Schwab <schwab@suse.de>
24081 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24083 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
24085 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24087 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24089 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24091 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24093 * window.h (struct window):
24094 * window.c (struct save_window_data, struct saved_window):
24095 * termhooks.h (struct terminal):
24096 * process.h (struct Lisp_Process):
24097 * frame.h (struct frame):
24098 * buffer.h (struct buffer):
24099 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24100 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24101 The size field of (pseudo)vectors is now unsigned.
24102 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24104 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24105 Turn `count' into an integer.
24107 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24108 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24109 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24110 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24111 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24113 * alloc.c (allocate_pseudovector): New fun.
24114 (ALLOCATE_PSEUDOVECTOR): New macro.
24115 (allocate_window, allocate_terminal, allocate_frame)
24116 (allocate_process): Use it.
24117 (mark_vectorlike): New function.
24118 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24119 (mark_terminals): Use it.
24120 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24121 (Fmake_byte_code): Use XSETPVECTYPE.
24123 * frame.c (Fframe_parameters): Minor simplification.
24125 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24127 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24129 * buffer.c (Fget_buffer_create, init_buffer_once):
24130 * lread.c (defsubr):
24131 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24133 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24134 defined differently in the m/*.h files.
24135 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24136 (XSETPVECTYPE): New macro.
24137 (XSETPSEUDOVECTOR): Use it.
24139 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24140 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24142 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24143 * lread.c (defvar_per_buffer):
24144 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24146 * window.c (candidate_window_p): Only consider as visible frames that
24147 are on the same terminal.
24149 * m/ibms390x.h (MARKBIT): Remove unused macro.
24151 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
24153 * lread.c (Fload): Fix typo in docstring.
24155 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24157 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24158 of a non-zero value can't yield zero.
24160 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24162 * term.c (term_clear_mouse_face, term_mouse_highlight)
24163 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24165 * print.c (safe_debug_print): Use XHASH.
24167 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24168 Lisp elements such as tags.
24169 (XHASH): New macro.
24171 (SREF, SSET, STRING_COPYIN): Use SDATA.
24172 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24174 * alloc.c (mark_terminal): Remove left-over declaration.
24175 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24176 (allocate_vectorlike): Remove type argument. Adjust callers.
24177 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24178 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24180 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24181 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24182 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24183 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24184 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24187 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24188 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24189 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24191 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24193 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24196 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24198 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24200 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24202 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24204 (handle_one_term_event): Use Gpm_DrawPointer.
24205 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24206 Signal errors instead of returning nil. Always return nil.
24207 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24208 Make it a noop if gpm-mouse was not activated.
24209 (syms_of_term): Update names.
24211 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24213 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24214 (init_sys_modes): Check that gpm_tty is the current tty.
24216 * alloc.c (allocate_terminal): Set the vector size to only count the
24217 lisp fields. Initialize those to nil.
24218 (mark_object): Don't treat terminals specially.
24219 (mark_terminal): Remove.
24220 (mark_terminals): Use mark_object instead.
24222 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24223 the GC to the beginning.
24226 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24228 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24230 2007-09-25 Jason Rumney <jasonr@gnu.org>
24232 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24234 * w32console.c (create_w32cons_output): Remove.
24236 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24238 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24239 (reset_sys_modes): Use reset_terminal_modes_hook.
24241 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24243 * eval.c (do_autoload): Don't output any message.
24245 2007-09-24 Juri Linkov <juri@jurta.org>
24247 * emacs.c (standard_args): Change priority of "--no-splash"
24248 from 40 to 3. Add "--no-desktop" with the same priority.
24250 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24252 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24253 and optimize the case where they are all 1.
24255 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24257 * lisp.h (abs): Define if not defined.
24258 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24259 Don't define `abs', since it's defined in lisp.h.
24261 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24263 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24264 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24265 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24266 (init_tty): Use DEV_TTY instead of "/dev/tty".
24267 [WINDOWSNT]: No need to protect from NAME arg being null.
24269 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24271 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24274 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24276 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24277 (gpm_tty): Change its type.
24278 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24279 (gpm_tty): Change its type and initialize it.
24280 (Fterm_open_connection): Check the frame is indeed a tty.
24281 Use the new gpm_tty.
24282 (Fterm_close_connection): Use the new gpm_tty.
24283 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24284 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24286 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24288 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24289 underline_color, to draw strike-through.
24291 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24293 * lisp.h (allocate_terminal): Declare.
24295 * window.c (candidate_window_p): Consider frames that are being placed
24296 by the user as somewhere between visible and iconified.
24297 (window_loop): Prefer windows on the current frame.
24298 (Fselect_window): Move the use of select-frame to the beginning so we
24299 can just delegate all the work (it'll call us back anyway).
24301 * frame.c (Qdisplay_environment_variable):
24302 * frame.h (Qdisplay_environment_variable): Delete.
24304 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24305 of the first arg, since that value may be a union.
24307 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24308 parameter rather than Qdisplay_environment_variable. If all else
24309 fails, look for DISPLAY in initial-environment.
24311 2007-09-21 Glenn Morris <rgm@gnu.org>
24313 * Makefile.in (emacstool): Remove target.
24314 (lisp, shortlisp): Remove termdev.elc.
24316 2007-09-21 Markus Triska <markus.triska@gmx.at>
24318 * xterm.c (x_delete_display): Compile session management conditionally.
24320 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24322 * callproc.c (getenv_internal_1): New function.
24323 (getenv_internal): Use it.
24324 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24326 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24327 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24328 (Fset_terminal_parameter): Work with dead terminals as well.
24329 (Fmodify_terminal_parameters): Remove.
24331 * terminal.c (get_terminal): Handle terminals.
24332 Make sure the terminal returned is live.
24333 (create_terminal): Use allocate_terminal.
24334 (mark_terminals): Move to alloc.c.
24335 (delete_terminal): Use terminal->name as liveness status.
24336 NULL out fields after freeing their contents.
24337 Don't deallocate the object.
24338 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24339 rather than an int.
24340 (Fterminal_live_p): Accept non-integer arguments.
24341 (Fterminal_list): Return terminal objects rather than an ints.
24343 * alloc.c (enum mem_type): New member for `terminal' objects.
24344 (allocate_terminal): New function.
24345 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24347 (mark_terminal): New fun.
24348 (mark_terminals): Move from terminal.c.
24350 * term.c (get_tty_terminal): Don't treat output_initial specially.
24351 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24352 (delete_tty): Use terminal->name as liveness status.
24354 * termhooks.h (struct terminal): Make it into a pseudovector.
24355 Remove `deleted' replaced by checking `name's nullness.
24357 * print.c (print_object): Handle terminals.
24359 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24360 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24362 * frame.c (make_terminal_frame):
24363 * keyboard.c (tty_read_avail_input):
24364 * w32term.c (x_delete_terminal):
24365 * xfns.c (Fx_create_frame, x_create_tip_frame):
24366 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24368 2007-09-20 Glenn Morris <rgm@gnu.org>
24370 * process.c (Fmake_network_process): Doc fix.
24372 2007-09-19 Jason Rumney <jasonr@gnu.org>
24374 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24376 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24378 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24379 Fix a C warning regarding variable constness.
24381 * xterm.c (handle_one_xevent): Fix a C warning.
24383 2007-09-18 Jason Rumney <jasonr@gnu.org>
24385 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24387 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24389 * gtkutil.c (gdpy_def): New variable.
24390 (xg_initialize): Initialize gdpy_def.
24391 (xg_display_close): If no other display exists, set gdpy_def to a
24394 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24396 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24397 when we have no file name for the icon.
24398 (xg_tool_bar_expose_callback): Remove.
24399 (xg_create_tool_bar): Don't connect expose signal to
24400 xg_tool_bar_expose_callback.
24401 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24403 2007-09-16 Andreas Schwab <schwab@suse.de>
24405 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24406 values instead of zapping them.
24408 2007-09-14 Glenn Morris <rgm@gnu.org>
24410 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24411 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24412 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24413 scope and rename to omfib_buffer for clarity.
24414 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24416 2007-09-14 Kenichi Handa <handa@m17n.org>
24418 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24420 2007-09-13 Jason Rumney <jasonr@gnu.org>
24422 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24424 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24426 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24427 (mac_term_init): Call here instead, passing rif.
24429 2007-09-13 Glenn Morris <rgm@gnu.org>
24431 * s/hpux.h: No longer define `static' as nothing.
24433 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24435 * callint.c (Fcall_interactively): Remove unused var `fun'.
24437 2007-09-12 Romain Francoise <romain@orebokech.com>
24439 * window.c (prefer_window_split_horizontally, display_buffer):
24440 Revert 2007-09-08 change.
24442 2007-09-12 Glenn Morris <rgm@gnu.org>
24444 * alloca.c: Remove file.
24445 * Makefile.in (alloca): Do not undef.
24446 (allocaobj, alloca.o): Remove.
24447 (otherobj): Remove allocaobj.
24448 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24449 * regex.c (C_ALLOCA): Remove all references and code that was only
24450 used when this was defined.
24451 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24452 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24453 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24455 * Makefile.in (SOURCES, unlock, relock): Delete.
24457 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24458 (menu_grab_callback): All uses changed.
24460 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24461 (x_reply_selection_request): All uses changed.
24463 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24465 * lread.c (load_warn_old_style_backquotes): Change message to look
24466 better when it appears in the middle of byte-compiler messages.
24468 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24470 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24472 * xterm.c (x_create_terminal): Add comment.
24474 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24476 2007-09-10 Richard Stallman <rms@gnu.org>
24478 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24480 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24482 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24483 (DEFUN): Document `intspec', use it instead of `prompt'.
24485 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24487 * data.c (Finteractive_form): If the interactive specification starts
24488 with a `(', use it as a Lisp form.
24490 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24491 name and file modes.
24493 * callint.c (Fcall_interactively): Comment fixes.
24495 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24497 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24498 and compiled functions.
24500 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24502 * window.c (prefer_window_split_horizontally): New variable.
24503 (display_buffer): Consider splitting window horizontally depending
24504 on prefer_window_split_horizontally.
24506 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24508 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24510 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24512 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24514 * frame.c (x_set_frame_parameters): Check number is positive before
24517 * window.c (freeze_window_start): Don't presume selected_window holds
24519 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24521 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24523 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24525 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24527 * window.c (Vsplit_window_preferred_function): New var.
24528 (Fdisplay_buffer): Use it.
24529 (syms_of_window): Export, and initialize it.
24531 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24533 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24535 2007-09-06 Glenn Morris <rgm@gnu.org>
24537 * gtkutil.c (menu_grab_callback) <cnt>:
24538 * xselect.c (x_reply_selection_request) <cnt>: Move static
24539 variable to file scope.
24541 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24543 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24544 consistent values of selected_frame and selected_window.
24546 2007-09-04 Jason Rumney <jasonr@gnu.org>
24548 * w32console.c (initialize_w32_display): Zero unused hooks.
24550 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24552 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24553 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24555 2007-09-04 Jason Rumney <jasonr@gnu.org>
24557 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24558 in w32console.c. Set up input. Remove XXX comments that have been
24559 confirmed as correct.
24561 * s/ms-w32.h (MULTI_KBOARD): Define.
24563 * w32console.c (one_and_only_w32cons): Remove.
24564 (initialize_w32_display): Take terminal argument.
24566 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24567 initialize_w32_display.
24568 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24570 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24572 * keyboard.c (discard_mouse_events): Discard it.
24573 (make_lispy_event): Translate it to a lisp event.
24574 (lispy_wheel_names): Add wheel-left and right events.
24575 (syms_of_keyboard): Enlarge wheel_syms.
24577 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24578 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24580 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24582 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24583 from WM_MOUSEHWHEEL.
24584 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24586 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24589 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24590 keyboard for the terminal.
24592 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24594 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24595 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24596 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24597 and resume-tty-function to resume-tty-hook.
24598 (Fsuspend_tty, Fresume_tty): Use new names.
24600 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24602 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24603 if it starts with "n:".
24605 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24607 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24609 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24612 * frame.c (Qterm_environment_variable): Remove.
24613 (syms_of_frame): Don't init and staticpro it.
24615 * callproc.c (getenv_internal): Remove special case for $TERM.
24617 * callproc.c (Vinitial_environment): New variable.
24618 (set_initial_environment): Initialize it.
24619 (syms_of_callproc): Declare it.
24620 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24621 TERM under which a process runs is never related to the TERM in which
24624 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24626 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24627 * s/darwin.h: ... do it here.
24629 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24631 * lisp.h (set_initial_environment): Rename from set_global_environment.
24633 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24634 removed by mistake on the multi-tty branch.
24636 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24637 (Fmodify_frame_parameters): Return a value.
24639 * image.c (png_load): Comment-out var only used in commented-out code.
24641 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24642 before passing it to mark_object.
24644 * xfaces.c (internal_resolve_face_name): Return a value.
24645 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24647 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24648 (x_icon): Comment-out var only used in commented-out code.
24650 2007-08-29 Romain Francoise <romain@orebokech.com>
24652 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24653 QUIT hasn't been provided.
24655 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24657 * callproc.c (child_setup, getenv_internal): Use the
24658 display-environment-variable and term-environment-variable frame params.
24659 (set_initial_environment): Initialise Vprocess_environment.
24661 * config.in: Disable multi-keyboard support on a mac.
24663 * frame.c (Qterm_environment_variable)
24664 (Qdisplay_environment_variable): New variables.
24665 (syms_of_frame): Intern and staticpro them.
24666 (Fmake_terminal_frame): Disable output method test.
24668 * frame.h: Declare them here.
24670 * macfns.c (x_set_mouse_color): Get rif from the frame.
24671 (x_set_tool_bar_lines): Don't use updating_frame.
24672 (mac_window): Add 2 new parameters for consistency with other systems.
24673 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24674 frame parameters following what is done in X11 and w32. Don't use
24675 FRAME_MAC_DISPLAY_INFO.
24676 (Fx_open_connection, start_hourglass): Remove window-system check.
24677 (x_create_tip_frame): Get the keyboard from the terminal.
24679 * macmenu.c: Reorder includes.
24680 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24682 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24683 terminal parameter.
24684 (x_clear_frame): Add a frame parameter.
24685 (note_mouse_movement): Get rif from the frame.
24686 (mac_term_init): Initialize the terminal.
24687 (mac_initialize): Make static and move terminal initialization ...
24688 (mac_create_terminal): ... to this new function.
24690 * macterm.h (struct mac_display_info): Add terminal.
24691 (mac_initialize): Delete declaration.
24693 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24695 * sysdep.c: Comment out text after #endif.
24697 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24698 is defined. Better initialize ttys in windows. Use terminal
24699 specific mouse_position_hook.
24701 * termhooks.h (union display_info): Add mac_display_info.
24703 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24704 Set the default minibuffer frame, window_system and the rest of the
24705 frame parameters following what is done in X11.
24707 * w32term.c (w32_initialize): Make static.
24709 * xselect.c (x_handle_selection_clear): Only access
24710 terminal->kboard when MULTI_KBOARD is defined.
24712 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24713 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24715 2007-08-29 Jason Rumney <jasonr@gnu.org>
24717 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24718 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24720 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24721 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24723 * keyboard.c (restore_kboard_configuration): Only define when
24724 MULTI_KBOARD defined.
24726 * makefile.w32-in: Update dependancies from Makefile.in.
24727 (OBJ1): Add terminal.$(O)
24729 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24730 Don't define function body.
24731 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24733 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24735 * w32.c (request_sigio, unrequest_sigio): Remove.
24737 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24738 (w32con_clear_frame, w32con_clear_end_of_line)
24739 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24740 (w32con_delete_glyphs, w32con_set_terminal_window)
24741 (scroll_line, w32_sys_ring_bell): Add frame arg.
24742 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24744 (PICK_FRAME): Remove.
24745 (w32con_write_glyphs): Use frame specific terminal coding.
24746 (one_and_only_w32cons): New global variable.
24747 (initialize_w32_display): Use it for storing hooks.
24748 (create_w32cons_output): New function.
24750 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24753 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24755 (x_set_tool_bar_lines): Don't use updating_frame.
24756 (Fx_create_frame): Set terminal and ref count.
24757 (Fx_open_connection): Remove window-system check.
24759 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24761 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24762 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24763 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24765 (x_delete_terminal, w32_create_terminal): New functions.
24766 (w32_term_init): Create a terminal.
24767 (w32_initialize): Move terminal specific initialization to
24768 w32_create_terminal.
24770 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24771 (w32_clear_rect, w32_clear_area): Use background from frame.
24772 (w32_display_info): Add terminal.
24773 (w32_sys_ring_bell, x_delete_display): Declare here.
24775 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24777 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24779 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24781 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24782 Fix get_named_tty calls for the controlling tty.
24784 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24786 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
24788 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24790 * term.c (tty_insert_glyphs): Add missing first parameter.
24792 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24794 * buffer.c (Fbuffer_list, Fbury_buffer):
24795 Take frame->buried_buffer_list into account.
24797 * cm.c (current_tty): New variable, for cmputc().
24799 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24800 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24801 (cmgoto): Add tty parameter. Pass it on to calccost().
24802 Use emacs_tputs() instead of tputs().
24804 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24806 (current_tty): New variable, for cmputc().
24807 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24809 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24810 (internal_condition_case, internal_condition_case_1)
24811 (internal_condition_case_2): Don't abort when x_catching_errors.
24813 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24814 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24815 prevent crashes caused by bogus longjmps in read_char.
24817 * keymap.h (Fset_keymap_parent): Add EXFUN.
24819 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24820 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24821 Remove redundant definition.
24823 * macfns.c (x_set_mouse_color, x_make_gc):
24824 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24826 * w32term.c (x_free_frame_resources):
24827 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24828 (w32_initialize): Use the accessor macros for terminal characteristics.
24830 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24831 Use the accessor macros for terminal characteristics.
24832 * msdos.c (internal_terminal_init): Use the accessor macros for
24833 terminal characteristics.
24834 (ScreenVisualBell, internal_terminal_init):
24835 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24837 * termopts.h (no_redraw_on_reenter): Declare.
24839 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24840 (mark_terminals, mark_ttys): Declare.
24841 (Fgarbage_collect): Call them.
24842 (mark_object): Mark buried_buffer_list.
24844 * prefix-args.c: Include stdlib.h for exit.
24846 * syssignal.h: Add comment.
24848 * indent.c: Include stdio.h.
24850 * window.h (Vinitial_window_system): Declare.
24851 (Vwindow_system): Delete declaration.
24853 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24855 * image.c (lookup_image): Don't initialize `c' until the xasserts
24858 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24859 FRAME_FOREGROUND_PIXEL.
24861 * print.c (print_preprocess): Don't lose print_depth levels while
24864 * widget.c (update_from_various_frame_slots):
24865 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24867 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24869 (window_internal_height): Remove bogus make_number call.
24870 (init_window_once): Call make_terminal_frame with two zero parameters.
24872 * fileio.c (Fread_file_name): Update comment.
24874 * callint.c (Fcall_interactively):
24875 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24876 Make sure it is correctly unwound.
24878 * xsmfns.c (x_session_close): New function.
24880 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24881 Delete declarations.
24883 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24884 (x_output): Remove background_pixel and foreground_pixel fields.
24885 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24886 (x_delete_device, x_session_close): Declare.
24888 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24889 (read_filtered_event): Call `read_char' with a local
24890 `wrong_kboard_jmpbuf'.
24892 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24893 Don't call single_kboard_state. Use FRAME_RIF.
24895 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24898 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24899 (Fframe_with_environment, Fset_input_meta_mode)
24900 (Fset_quit_char): EXFUN.
24901 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24902 (init_sys_modes, reset_sys_modes): Update prototypes.
24903 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24905 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24906 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24907 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24908 Delete declarations.
24909 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24910 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24913 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24914 already does that during init_display(). Call syms_of_keymap
24915 before syms_of_keyboard. Call `syms_of_terminal'.
24916 Call set_initial_environment, not set_process_environment.
24917 (shut_down_emacs): Call reset_all_sys_modes() instead of
24920 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24921 (internal_resolve_face_name, resolve_face_name_error): New functions.
24922 (resolve_face_name): Protect against loops and errors thrown by Fget.
24923 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24924 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24926 * scroll.c: Replace CURTTY() with local variables throughout the
24927 file (where applicable).
24928 (calculate_scrolling, calculate_direct_scrolling)
24929 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24932 * keymap.c (Vfunction_key_map): Remove.
24933 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24934 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24935 (Vkey_translation_map): Remove.
24936 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24937 (Fdescribe_buffer_bindings)
24938 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24939 Update for terminal-local key-translation-map.
24941 * Makefile.in (callproc.o): Update dependencies.
24942 (lisp, shortlisp): Add termdev.elc.
24943 (obj): Add terminal.o.
24944 (terminal.o): Add dependencies.
24945 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24946 (data.o, fns.o): Add termhooks.h dependency.
24947 (SOME_MACHINE_LISP): Add dnd.elc.
24948 (minibuf.o): Fix typo.
24949 Update dependencies.
24951 * data.c (do_symval_forwarding, store_symval_forwarding)
24952 (find_symbol_value): Use the selected frame's keyboard, not
24955 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24958 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24960 (syms_of_xmenu): Update defsubr.
24961 (mouse_position_for_popup, Fx_popup_menu)
24962 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24963 (set_frame_menubar, free_frame_menubar)
24964 (create_and_show_popup_menu, xmenu_show)
24965 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24968 * xselect.c (x_own_selection): Abort if not an X frame.
24969 (some_frame_on_display): Check if it is an X frame.
24970 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24972 * coding.c: Include frame.h and termhooks.h.
24973 (terminal_coding, keyboard_coding): Delete.
24974 (Fset_terminal_coding_system_internal)
24975 (Fset_keyboard_coding_system_internal)
24976 (Fkeyboard_coding_system)
24977 (Fterminal_coding_system): Add a terminal parameter.
24978 Get terminal_coding from the terminal.
24979 (init_coding_once): Don't call setup_coding_system here.
24981 * dispextern.h (set_scroll_region, turn_off_insert)
24982 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24983 (tty_clear_end_of_line, tty_setup_colors)
24984 (delete_tty, updating_frame)
24985 (produce_special_glyphs, produce_glyphs, write_glyphs)
24986 (insert_glyphs): Remove.
24987 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24988 (tty_turn_off_highlight, get_tty_size): Add declaration.
24989 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24991 * frame.h (enum output_method): Add output_initial.
24992 (struct x_output): Delete.
24993 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24994 Access foreground_pixel and background_pixel directly from the frame.
24995 (tty_display): Delete.
24996 (struct frame): Add buried_buffer_list, foreground_pixel,
24997 background_pixel and terminal. Delete kboard.
24998 (union output_data): Add tty.
24999 (FRAME_KBOARD): Get the kboard from the terminal.
25000 (FRAME_INITIAL_P): New macro.
25001 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25002 (Qterm_environment_variable, Qdisplay_environment_variable)
25003 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25006 * termchar.h (tty_output, tty_display_info): New structures.
25007 (tty_list): Declare.
25008 (FRAME_TTY, CURTTY): New macros.
25009 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25010 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25011 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25012 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25014 * callproc.c: Include frame.h and termhooks.h, for terminal
25016 (add_env): New function.
25017 (child_setup): Use it.
25018 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25019 (getenv_internal): Fix get_terminal_param call.
25020 (Fgetenv_internal, egetenv): Update doc.
25021 (syms_of_callproc): Initialize Vprocess_environment to nil.
25022 Register and initialize them. Remove obsolete defvars. Update doc
25024 (child_setup): Handle Vlocal_environment_variables.
25025 (getenv_internal): Add terminal parameter.
25026 Handle Vlocal_environment_variables.
25027 (Fgetenv_internal): Add terminal parameter.
25028 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25029 environment in a frame (not terminal) parameter. Update doc strings.
25030 (set_initial_environment): Rename from set_global_environment.
25031 Store Emacs environment in initial frame parameter.
25033 * xdisp.c (redisplay_internal): Update references to
25034 `previous_terminal_frame'.
25035 (display_mode_line, Fformat_mode_line): Replace calls to
25036 `push_frame_kboard' with `push_kboard'.
25037 (get_glyph_string_clip_rects): Add extra parentheses and
25038 braces to prevent compiler warnings.
25039 (calc_pixel_width_or_height): Add xassert to check that the
25040 frame is alive. Don't call `lookup_image' on a termcap frame.
25041 (message2_nolog, message3_nolog, redisplay_internal)
25042 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25043 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25044 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25045 (Fx_display_pixel_width, Fx_display_pixel_height)
25046 (Fx_display_planes, Fx_display_color_cells)
25047 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25048 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25049 (Fx_display_backing_store, Fx_display_visual_class)
25050 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25051 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25053 * xfns.c (x_set_foreground_color x_set_background_color)
25054 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25055 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25056 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25057 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25058 terminal that is being deleted.
25059 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25060 frame parameter, and make sure it overrides any user-supplied setting.
25061 (Fx_close_connection, Fx_synchronize): Unify argument names with
25062 the rest of the DEFUNs.
25064 * dispnew.c (Fsend_string_to_terminal): Update call to
25065 `get_tty_terminal'.
25066 (Fredraw_frame, Fsend_string_to_terminal)
25067 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25068 FRAME_TERMCAP_P and FRAME_TTY.
25069 (window_change_signal): Don't believe width/height values that are
25071 (Vinitial_window_system): Rename from Vwindow_system.
25072 (termscript, Wcm, rif): Delete.
25074 * termhooks.h (struct terminal): New struct containing the
25075 previously global text display hooks and new members NAME,
25076 DELETED and PARAM_ALIST.
25077 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25078 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25079 (FRAME_RIF): New macros.
25080 (get_terminal_param, get_device): New declarations.
25081 (termscript): Delete declaration.
25083 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25084 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25085 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25086 FRAME_FOREGROUND_PIXEL.
25087 (x_fully_uncatch_errors): Disable definition.
25088 (x_scroll_bar_expose): Fix reference to foreground pixel.
25089 (XTread_socket): Disable loop on all X displays.
25090 (x_delete_terminal): Don't set terminal->deleted and let
25091 delete_terminal delete the frames on the terminal.
25092 (x_delete_display): Doc update to reflect changes in
25094 (x_display_info) <terminal>: Move member earlier in the struct.
25095 (deleting_tty): Remove old variable.
25096 (Fsuspend_tty): Call clear_tty_hooks.
25097 (Fresume_tty, init_tty): Call set_tty_hooks.
25098 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25099 errors on X frames.
25100 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25101 (handle_one_xevent): Initialize `f' to NULL.
25102 (x_delete_terminal, x_create_terminal): New functions.
25103 (XTset_terminal_modes, XTreset_terminal_modes)
25104 (XTread_socket, x_connection_closed, x_term_init)
25105 (x_term_init, x_delete_display): Add terminal parameter.
25106 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25109 * frame.c: Include termchar.h.
25110 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25111 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25112 (Qdisplay_environment_variable): New vars.
25113 (Fframep): Deal with output_initial.
25114 (Fframe-live-p): Doc fix.
25115 (Fwindow-system): New function.
25116 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25117 (make_terminal_frame): Don't create frames on a terminal that is
25118 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25119 (store_frame_param): Check for found_for_frame before calling XFRAME.
25120 (Fmake_terminal_frame): Handle NULL tty names correctly.
25121 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25122 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25123 frames to refer to a deleted frame in their 'environment parameter.
25124 (Fframe_with_environment): New function.
25125 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25126 (get_future_frame_param): New function.
25127 (Fmake_terminal_frame): Use it.
25128 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25130 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25131 * sysdep.c (reset_sys_modes): Update for renames.
25133 * keyboard.c (tty_read_avail_input): New function.
25134 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25135 (syms_of_keyboard): Defsubr them.
25136 (Fset_input_meta_mode, Fset_quit_char): New functions.
25137 (Fset_input_mode): Split to above functions.
25138 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25139 parameter. Use it in call to `read_char'.
25140 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25141 Set wrong_kboard_jmpbuf correctly in recursive calls.
25142 Use current_kboard to access Vkeyboard_translate_table.
25143 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25144 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25145 Update longjmp invocations. Remember the original current_kboard,
25146 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25147 changes it. Comment out unnecessary calls to
25148 `record_single_kboard_state' and `any_kboard_state'.
25149 Update recursive calls.
25150 (wrong_kboard_jmpbuf): Remove global variable.
25151 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25152 Handle deleted interrupted_kboards correctly; that is a legal
25153 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25154 and read_char calls. Abort if interrupted_kboard died in read_char.
25155 (any_kboard_state, single_kboard_state)
25156 (push_frame_kboard): Remove function.
25157 (pop_kboard): Switch out of single_kboard mode if the kboard has
25158 been deleted. Remove unused variable. Help debugging by not
25159 changing current_kboard unnecessarily. Set current_kboard to the
25160 kboard of the selected frame when the stored kboard object has
25161 been deleted before pop_kboard.
25162 (temporarily_switch_to_single_kboard): Change first parameter to a
25163 frame pointer. Throw an error when caller wants to change kboards
25164 while in single_kboard mode. Don't push_kboard if we weren't in
25165 single kboard state. Don't pop_kboard if we popped into any
25167 (restore_kboard_configuration): Abort if pop_kboard changed the
25168 kboard in single_kboard mode. Call pop_kboard only after setting
25169 up single_kboard mode.
25170 (Frecursive_edit): Switch to single_kboard mode only in nested
25172 (cmd_error, command_loop, command_loop_1, timer_check):
25173 Comment out unnecessary call to `any_kboard_state' and
25174 `record_single_kboard_state'.
25175 (delete_kboard): Exit single_kboard mode if we have just deleted
25176 that kboard. Use FRAME_KBOARD.
25177 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25178 `fatal_error_signal'.
25179 (record_single_kboard_state): Don't push_kboard if we weren't in
25180 single kboard state. Don't pop_kboard if we popped into any
25182 (push_frame_kboard): Rename to push_kboard.
25183 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25184 (read_avail_input): Read input from all terminals.
25185 (mark_kboards): Also mark Vkeyboard_translate_table.
25186 (kbd_buffer_store_event_hold): Simplify condition.
25187 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25188 (Vkeyboard_translate_table): Move to struct kboard.
25189 (init_kboard): Initialize Vkeyboard_translate_table.
25190 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25191 Vkeyboard_translate_table. Update doc strings. Update docs of
25192 local-function-key-map and function-key-map.
25194 * terminal.c: New file.
25196 * term.c: Include errno.h.
25197 (Vring_bell_function, device_list, initial_device)
25198 (next_device_id, ring_bell, update_begin, update_end)
25199 (set_terminal_window, cursor_to, raw_cursor_to)
25200 (clear_to_end, clear_frame, clear_end_of_line)
25201 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25202 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25203 (syms_of_term): Move their initialization to terminal.c.
25204 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25205 (Ftty_display_color_cells)
25206 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25207 (clear_tty_hooks, set_tty_hooks)
25208 (init_tty, maybe_fatal): New functions.
25209 (Ftty_type): Return nil if terminal is not on a tty instead of
25210 throwing an error. Doc update.
25211 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25212 Doc update. Initialize new subrs and variables.
25213 (delete_tty): Use terminal->deleted.
25214 (tty_set_terminal_modes): Rename from set_terminal_modes.
25215 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25216 (set_scroll_region): Rename to `tty_set_scroll_region'.
25217 (turn_on_insert): Rename to `tty_turn_on_insert'.
25218 (turn_off_insert): Rename to `tty_turn_off_insert'.
25219 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25220 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25221 (toggle_highligh): Rename to `tty_toggle_highlight'.
25222 (background_highlight): Rename to `tty_background_highlight'.
25223 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25224 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25225 (tty_set_scroll_region, tty_background_highlight)
25226 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25227 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25228 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25229 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25230 Add static modifier.
25231 (tty_reset_terminal_modes, tty_set_terminal_window)
25232 (tty_set_scroll_region, tty_background_highlight)
25233 (tty_highlight_if_desired, tty_cursor_to)
25234 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25235 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25236 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25239 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25241 * keyboard.c: Qrtl is new.
25242 (parse_tool_bar_item): Handle :rtl keyword.
25243 (syms_of_keyboard): Intern :rtl keyword.
25245 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25247 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25248 so no Lisp code is executed.
25249 (file_for_image, find_rtl_image): New functions.
25250 (xg_get_image_for_pixmap): Use file_for_image.
25251 (update_frame_tool_bar): If direction is RTL, use RTL image if
25252 defined. Use Gtk stock images if defined.
25254 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25256 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25257 for nonexistent or zero-width glyph in composition glyph.
25259 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25261 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25263 * xdisp.c (Finvisible_p): New function.
25264 (syms_of_xdisp): defsubr it.
25266 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25268 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25271 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25273 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25275 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25277 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25278 whether decoding has modified buffer contents.
25280 2007-08-24 Jason Rumney <jasonr@gnu.org>
25282 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25283 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25284 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25285 (init_svg_functions) [HAVE_NTGUI]: New function.
25286 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25287 (svg_load_image): Use them.
25288 (svg_load_image) [HAVE_NTGUI]: Implement background.
25290 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25292 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25293 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25294 (LIBX): Remove @RSVG_LIBS@.
25295 (LIBES): Add $(RSVG_LIBS).
25297 * image.c (svg_load_image): Blend with specified background if exists.
25298 Use IMAGE_BACKGROUND. Add Mac OS Support.
25300 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25301 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25303 [MAC_OSX] (socket_callback): Do nothing.
25304 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25306 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25308 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25310 2007-08-22 Glenn Morris <rgm@gnu.org>
25312 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25314 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25316 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25318 * image.c: Add support for SVG images. Some additional comments
25319 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25320 (svg_image_p): New function to test for SVG image.
25321 (svg_load): New function to load SVG image.
25322 (svg_load_image): New function, helper for svg_load.
25323 (Qsvg): New Lisp_object.
25324 (svg_keyword_index): New enum.
25325 (svg_format): New static `image_keyword' struct.
25326 (svg_type): New static `image_type' struct.
25327 (librsvg/rsvg.h): Include it.
25329 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25331 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25333 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25335 * lread.c (Qold_style_backquotes): New var.
25336 (syms_of_lread): Init and staticpro it.
25337 (load_warn_old_style_backquotes): New fun.
25338 (Fload): Use them to warn about old style backquotes.
25339 (end_of_file_error, Fload): Remove unused vars.
25341 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25343 * lread.c (Vold_style_backquotes): New var.
25344 (syms_of_lread): Init and export it to Elisp.
25345 (read1): Set it when we find an old-style (back)quote.
25347 2007-08-22 Jason Rumney <jasonr@gnu.org>
25349 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25351 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25353 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25355 2007-08-19 Richard Stallman <rms@gnu.org>
25357 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25359 2007-08-19 Andreas Schwab <schwab@suse.de>
25361 * alloc.c (pure): Round PURESIZE up.
25363 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25365 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25368 2007-08-16 Richard Stallman <rms@gnu.org>
25370 * eval.c (Fcommandp): Add parens to clarify.
25372 * minibuf.c (Fall_completions): Use enum for type of table.
25374 * emacs.c (USAGE2): Improve text.
25376 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25378 * term.c (tty_default_color_capabilities): Declare static
25379 variables in file scope, to avoid HPUX compiler problem.
25381 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25383 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25384 to gtk_toolbar_insert.
25386 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25388 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25390 * insdel.c (reset_var_on_error): New fun.
25391 (signal_before_change, signal_after_change):
25392 Use it to reset (after|before)-change-functions to nil in case of error.
25393 Bind inhibit-modification-hooks to t.
25394 Don't bind (after|before)-change-functions to nil while they run.
25396 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25398 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25399 filling pixmap with stippled background.
25401 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25403 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25404 Don't use invisible frame as parent window for repositioning.
25406 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25408 * print.c (new_backquote_output): Rename from old_backquote_output.
25409 (print): Inverse its logic (according to its name) so as to match the
25410 behavior of new_backquote_flag in lread.c.
25412 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25414 * gmalloc.c (posix_memalign): New function.
25416 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25417 ActivateControl/DeactivateControl here.
25418 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25419 frame-notice-user-settings is non-nil.
25420 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25421 for kEventParamFMFontStyle.
25422 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25423 mac_pass_command_to_system and mac_pass_control_to_system here.
25424 (XTread_socket): Call ActivateControl/DeactivateControl here.
25425 (XTread_socket) [TARGET_API_MAC_CARBON]:
25426 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25427 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25428 for window repositioning.
25430 2007-08-08 Glenn Morris <rgm@gnu.org>
25432 * Replace `iff' in doc-strings and comments.
25434 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25436 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25438 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25440 * fileio.c (Finsert_file_contents): Run format-decode and
25441 after_insert_file_functions on entire buffer when REPLACE is
25442 non-nil and inhibit modification_hooks and point_motion_hooks.
25443 For consistency, run after_insert_file_functions iff something
25444 got inserted. Move signal_after_change and update_compositions
25445 after code running after_insert_file_functions. Make sure that
25446 undo_list doesn't record intermediate steps of the decoding process.
25448 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25451 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25452 Call malloc_enable_thread on interactive startup.
25454 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25455 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25456 [USE_PTHREAD]: Conditionalize with it.
25457 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25458 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25461 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25463 * xdisp.c (redisplay_window): When restoring original buffer
25464 position, make sure it is still valid.
25466 * image.c (png_load): Ignore png-supplied background color.
25468 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25470 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25471 Use kCFAbsoluteTimeIntervalSince1970.
25473 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25475 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25476 event loop should be quit.
25477 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25478 Quit dialog event loop if quit_dialog_event_loop is set.
25480 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25481 (Selection): New typedef. Use instead of ScrapRef.
25482 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25483 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25484 (mac_clear_selection): Rename from clear_scrap.
25485 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25486 scrap_has_target_type. All uses changed.
25487 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25488 (mac_selection_has_target_p): New functions.
25489 (mac_put_selection_value): Rename from put_scrap_string.
25490 (mac_get_selection_value): Rename from get_scrap_string.
25491 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25492 (put_scrap_private_timestamp, scrap_has_target_type)
25493 (get_scrap_private_timestamp): Remove functions.
25494 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25495 (x_own_selection, x_get_local_selection):
25496 Use mac_valid_selection_value_p.
25497 (x_own_selection): Don't use put_scrap_private_timestamp.
25498 Record OWNERSHIP-INFO into Vselection_alist instead.
25499 (x_get_local_selection): Don't check type if request is local.
25500 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25501 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25503 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25505 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25506 add comment explaining why.
25508 2007-08-03 Richard Stallman <rms@gnu.org>
25510 * fileio.c (Fvisited_file_modtime): Use make_time.
25512 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25514 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25517 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25519 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25521 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25523 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25525 2007-07-30 Richard Stallman <rms@gnu.org>
25527 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25529 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25531 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25533 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25535 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25536 remote default-directory.
25538 * buffer.c (mode-line-format): Update doc string.
25540 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25542 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25544 (x_scroll_bar_create): Set bar->fringe_extended_p.
25545 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25546 on frame edge. Check fringe background extension. Don't clear
25547 extended fringe background area.
25549 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25550 (w32_fill_area): Enclose multiple statements with do ... while (0).
25552 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25553 Extend fringe background to scroll bar gap.
25554 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25555 Set bar->fringe_extended_p.
25556 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25557 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25558 background extension. Don't clear extended fringe background area.
25560 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25561 New member fringe_extended_p.
25563 2007-07-25 Glenn Morris <rgm@gnu.org>
25565 * Relicense all FSF files to GPLv3 or later.
25567 * COPYING: Switch to GPLv3.
25569 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25571 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25573 * data.c (Finteractive_form): Check for the presence of an
25574 `interactive-form' symbol property more thoroughly.
25576 * data.c (Finteractive_form): Use an `interactive-form' property if
25577 present, analogous to the function-documentation property.
25579 2007-07-24 Jason Rumney <jasonr@gnu.org>
25581 * w32fns.c (x_real_positions): Get real position from OS instead of
25584 2007-07-23 Jason Rumney <jasonr@gnu.org>
25586 * filelock.c (current_lock_owner): Allow for @ sign in username.
25588 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25590 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25591 remote default-directory.
25593 * buffer.c (mode-line-format): Describe above case in doc string.
25595 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25597 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25598 Define if not defined.
25600 2007-07-18 Jason Rumney <jasonr@gnu.org>
25602 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25604 2007-07-18 Richard Stallman <rms@gnu.org>
25606 * data.c (Fsetq_default): Doc fix.
25608 * eval.c (Fsetq): Doc fix.
25610 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25612 * coding.c (Ffind_operation_coding_system):
25613 * eval.c (For, Fand): Doc fixes.
25614 Reported by Johan Bockgård.
25616 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25618 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25620 * xterm.h: Declare x_ewmh_activate_frame.
25622 * xterm.c (x_ewmh_activate_frame): New function.
25623 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25625 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25627 * window.c (Fdisplay_buffer): If largest or LRU window is the
25628 only window, split it even if it is not eligible for splitting.
25629 This restores the original behavior broken by the 2007-07-15
25632 2007-07-17 Glenn Morris <rgm@gnu.org>
25634 * abbrev.c (abbrev_check_chars): New function.
25635 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25636 Call abbrev_check_chars to check abbrev characters are word
25637 constituents. Doc fix.
25639 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25641 * process.c (Fstart_process, Fmake_network_process)
25642 (read_process_output): Fix up last changes.
25644 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25646 * makefile.w32-in (clean): Don't delete *~.
25648 2007-07-16 Andreas Schwab <schwab@suse.de>
25650 * window.c (Fdisplay_buffer): Use NILP.
25651 (Fset_window_scroll_bars): Likewise.
25653 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25655 * window.c (window_min_size_2): New function.
25656 (window_min_size_1, size_window, Fdisplay_buffer)
25657 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25658 windows without mode- or header-lines when window-min-height is
25660 (size_window): Reset nodelete_p after testing it, following an
25661 earlier note by Kim F. Storm.
25662 (display_buffer): Do not set split_height_threshold to twice the
25663 value of window_min_height to avoid changing the value of a
25664 customizable variable. Rather explicitly check whether the
25665 height of the window that shall be splitted is at least as large
25666 as split_height_threshold.
25667 (Fwindow_full_width_p): New defun.
25668 (syms_of_window): Defsubr it.
25670 * window.h: Add EXFUN for Fwindow_full_width_p.
25672 2007-07-14 Jason Rumney <jasonr@gnu.org>
25674 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25676 2007-07-14 Richard Stallman <rms@gnu.org>
25678 * eval.c (maybe_call_debugger): New function.
25679 (find_handler_clause): Use maybe_call_debugger.
25680 Call it when the handler says `debug'.
25681 Eliminate DEBUGGER_VALUE_PTR.
25682 (Fsignal): Eliminate debugger_value.
25683 (Qdebug): New variable.
25684 (syms_of_eval): Initialize it.
25686 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25689 * keyboard.c (Ftrack_mouse):
25690 * print.c (Fwith_output_to_temp_buffer):
25691 * window.c (Fsave_window_excursion): Doc fix.
25693 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25695 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25697 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25699 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25700 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25701 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25702 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25703 Remove unused encoding_carryover.
25704 * process.c: Adjust all functions accordingly.
25706 2007-07-12 Richard Stallman <rms@gnu.org>
25708 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25710 2007-07-11 Jason Rumney <jasonr@gnu.org>
25712 * makefile.w32-in (LIBS): Include OLE32.
25714 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25715 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25717 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25719 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25720 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25721 from a Lisp_Object into a bare pointer.
25722 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25723 Adjust the code correspondingly.
25725 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25727 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25728 (term_show_mouse_face): Remove unused var `j'.
25729 (handle_one_term_event): Remove unused vars `i' and `j'.
25730 Don't cast return value of ttyname since it's not necessary.
25732 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25734 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25735 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25737 * fns.c (map_char_table): Use an array of int for `indices' rather than
25738 an array of Lisp_Objects (which are only ever integers anyway).
25739 (Fmap_char_table): Update caller.
25740 * lisp.h: Update prototype.
25741 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25742 * fontset.c (Ffontset_info):
25743 * casetab.c (set_case_table): Update callers.
25745 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25747 * keymap.c (struct accessible_keymaps_data)
25748 (struct where_is_internal_data): New structures.
25749 (accessible_keymaps_1, where_is_internal_1): Use them to change
25750 interface to adhere to the one used by map_keymap.
25751 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25752 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25754 * keymap.h (map_keymap_function_t): More informative prototype.
25756 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25758 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25759 (looking_at_1): Don't change search_regs and last_thing_searched
25760 if `inhibit-changing-match-data' is non-nil.
25761 (string_match_1, search_buffer, set_search_regs): Likewise.
25762 (syms_of_search): Add Lisp level definition for
25763 `inhibit-changing-match-data' and set it to nil.
25764 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25765 start and end of the match, instead of using values in search_regs.
25767 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25769 * minibuf.c (Fcompleting_read): New value `confirm-only'
25770 for `require-match'.
25772 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25774 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25775 part of the 2007-06-27 change to syms_of_fileio.
25777 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25779 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25780 Check WINDOWP before using XWINDOW. Consolidate return statements.
25782 2007-06-27 Richard Stallman <rms@gnu.org>
25784 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25786 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
25788 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25790 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25792 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25793 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25794 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25795 (_free_internal, memalign): Use them.
25796 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25797 Initialize to PTHREAD_MUTEX_INITIALIZER.
25798 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25799 (morecore_nolock): Rename from morecore. All uses changed.
25800 Use only nolock versions of internal allocation functions.
25801 (_malloc_internal_nolock, _realloc_internal_nolock)
25802 (_free_internal_nolock): New functions created from
25803 _malloc_internal, _realloc_internal, and _free_internal.
25804 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25805 Copy hook value to automatic variable before its use.
25806 (memalign): Copy hook value to automatic variable before its use.
25808 2007-06-26 Kenichi Handa <handa@m17n.org>
25810 * coding.c (Ffind_operation_coding_system): Docstring improved.
25811 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25813 2007-06-25 David Kastrup <dak@gnu.org>
25815 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25816 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25817 cater for additional parameter.
25819 * keymap.h: Adjust number of parameters to `current-active-maps'.
25821 * doc.c (Fsubstitute_command_keys): Adjust call of
25822 `current-active-maps'.
25824 2007-06-25 David Kastrup <dak@gnu.org>
25826 * callint.c (Fcall_interactively): Make the parsing of interactive
25827 specs somewhat more readable.
25829 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25831 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25832 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25833 if extended background has already been filled.
25835 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25837 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25838 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25840 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25841 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25842 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25843 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25844 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25845 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25846 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25847 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25848 Run timers during dialog popup.
25849 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25851 2007-06-21 Jason Rumney <jasonr@gnu.org>
25853 * image.c (convert_mono_to_color_image): Swap fore and background.
25855 2007-06-20 Jason Rumney <jasonr@gnu.org>
25857 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25858 (w32_free_bdf_font): Unmap memory not handle.
25860 2007-06-20 Sam Steingold <sds@gnu.org>
25862 * gmalloc.c (__morecore): Fix the declaration to comply with the
25865 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
25867 * w32term.c (w32_delete_display): Remove leftover declaration.
25868 (w32_define_cursor, w32_initialize): Make static.
25870 * w32.c (_wsa_errlist): Fix typo in error message.
25871 (init_environment): Ignore any environment variable from the
25872 registry having a null value.
25874 2007-06-20 Glenn Morris <rgm@gnu.org>
25876 * Makefile.in (LIBGIF): Default to -lgif.
25878 2007-06-17 Jason Rumney <jasonr@gnu.org>
25880 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25883 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
25885 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25886 Fix typo in docstring.
25888 2007-06-16 Eli Zaretskii <eliz@gnu.org>
25890 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25891 and their keybindings.
25893 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
25895 * composite.c (update_compositions): Fix last fix.
25897 2007-06-14 Jason Rumney <jasonr@gnu.org>
25899 * w32.c (get_process_times_fn): New function pointer.
25900 (globals_of_w32): Intialize it if present in kernel32.dll.
25901 (w32_get_internal_run_time): New function.
25903 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25905 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25907 * composite.c (update_compositions): Check the validness of
25910 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25912 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25913 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25915 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25916 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25918 * macgui.h (USE_MAC_TOOLBAR): New define.
25920 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25921 Return immediately unless popup is activated.
25923 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25924 background to scroll bar gap.
25925 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25926 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25927 scroll bars on frame edge. Check fringe background extension.
25928 Don't clear extended fringe background area.
25929 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25930 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25931 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25932 [USE_MAC_TOOLBAR]: New macros.
25933 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25934 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25935 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25936 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25937 [USE_MAC_TOOLBAR]: New functions.
25938 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25939 manually if previous repositioning has failed.
25940 (mac_handle_keyboard_event): Use precomputed event kind.
25941 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25942 as tool bar item click. Handle mouse movement over tool bar items.
25944 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25945 toolbar_win_gravity.
25946 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25947 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25950 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25951 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25953 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
25955 * image.c (search_image_cache): Remove unused variable.
25957 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
25959 * xfns.c, xmenu.c: Link to xaw3d if available.
25961 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25963 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25964 frame_foreground and frame_background.
25966 * image.c (lookup_image): Save frame foreground and background colors.
25967 (search_image_cache): Check if saved and current frame colors match.
25969 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25971 * regex.c (regex_compile): Remove the `regnum' counter.
25972 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25974 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25976 * term.c: Include intervals.h to declare Fget_text_property.
25978 2007-06-10 Jason Rumney <jasonr@gnu.org>
25980 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25982 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
25984 * callint.c (Fcall_interactively):
25985 * editfns.c (Fdelete_and_extract_region):
25986 * fileio.c (Fread_file_name):
25987 * fns.c (Fmapconcat):
25988 * keyboard.c (cmd_error_internal):
25989 * keymap.c (Fkey_description):
25991 * minibuf.c (read_minibuf):
25992 * search.c (wordify):
25993 * sunfns.c (sel_read):
25994 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25995 * xfns.c (x_default_scroll_bar_color_parameter):
25996 * xmenu.c (menu_help_callback):
25997 * xselect.c (Fx_get_atom_name):
25998 * xterm.c (x_term_init): Use empty_unibyte_string.
26000 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26002 * alloc.c (init_strings): Initialize canonical empty strings.
26003 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26004 canonical empty string when the requested size is 0.
26006 * emacs.c (empty_unibyte_string): Rename from empty_string.
26007 (empty_multibyte_string): New canonical empty string.
26008 (syms_of_emacs): Don't initialize empty_string.
26010 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26011 string, if appropriate.
26012 (empty_unibyte_string, empty_multibyte_string): New externs.
26013 (empty_string): Remove extern.
26015 * lread.c (syms_of_lread): Use empty_unibyte_string.
26017 2007-06-07 Jason Rumney <jasonr@gnu.org>
26019 * s/ms-w32.h: Don't define HAVE_TZNAME.
26021 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26023 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26025 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26027 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26028 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26030 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26031 Don't call next handler.
26032 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26033 Remove argument. Install handler to application.
26034 (set_frame_menubar): Don't change deep_p.
26035 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26036 FRAME_OUTER_TO_INNER_DIFF_Y.
26037 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26038 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26039 [HAVE_DIALOGS]: New macros.
26040 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26042 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26044 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26045 init_service_handler. All callers changed. Return OSStatus value.
26047 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26048 All callers changed so as not to call SetPortWindowPort.
26049 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26050 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26051 mac_draw_string_common.
26052 (mac_draw_image_string_qd): Likewise.
26053 (mac_draw_string_common): Use them. Add INLINE.
26054 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26055 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26057 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26058 and FRAME_OUTER_TO_INNER_DIFF_Y.
26059 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26060 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26061 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26062 repositioning window to mac_handle_window_event.
26063 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26064 saving window location to mac_handle_window_event
26065 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26066 (install_menu_target_item_handler): Remove argument in extern.
26067 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26068 Also accept command events.
26069 (do_keystroke): New function created from XTread_socket.
26070 (init_command_handler): Remove functions.
26071 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26072 and save window location by kEventWindowShowing and kEventWindowHiding
26073 handlers here. Don't call next handler for window state change and
26075 (mac_handle_application_event, mac_handle_keyboard_event)
26076 [TARGET_API_MAC_CARBON]: New functions.
26077 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26078 kEventWindowShowing and kEventWindowHiding events. Move installation
26079 of mouse, font, text input and menu target item handlers to
26080 install_application_handler.
26081 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26082 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26084 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26086 (XTread_socket) [TARGET_API_MAC_CARBON]:
26087 Consolidate SendEventToEventTarget calls.
26088 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26089 Move application activation handler to mac_handle_application_event.
26090 Move keyboard handler to mac_handle_keyboard_event.
26091 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26092 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26093 init_command_handler. Call install_application_handler.
26095 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26096 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26098 2007-06-07 Glenn Morris <rgm@gnu.org>
26100 * emacs.c (main): Use `emacs-copyright' in --version output.
26102 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
26104 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26106 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26108 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26110 * macgui.h: Replace WindowPtr with WindowRef.
26112 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26113 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26114 Replace ControlHandle with ControlRef.
26115 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26117 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26118 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26119 Replace ControlHandle with ControlRef.
26120 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26121 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26123 * macterm.h (struct scroll_bar): Rename member control_handle_low
26124 and control_handle_high to control_ref_low and control_ref_high.
26126 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26127 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26128 respectively. All uses changed.
26129 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26130 (install_window_handler, remove_window_handler): Replace WindowPtr
26131 with WindowRef in externs.
26133 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
26135 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26137 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
26139 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26141 * frame.c (Fmouse_position, Fmouse_pixel_position):
26142 Condition on HAVE_GPM too.
26144 * term.c (term_mouse_highlight): Remove unused variables.
26145 (Fterm_open_connection): Set gpm_zerobased to 1.
26146 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26147 Use zero based co-ordinates.
26148 (handle_one_term_event): Report a drag as mouse movement too.
26150 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26152 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
26154 * image.c (search_image_cache): New function. Require background
26155 color match if background color is unspecified in the image spec.
26156 (uncache_image, lookup_image): Use it.
26158 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
26160 * window.c (Fshrink_window): Reflow docstring.
26162 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
26164 * Version 22.1 released.
26166 2007-06-01 Richard Stallman <rms@gnu.org>
26168 * xfns.c (x_encode_text): Add GCPRO.
26170 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26172 * xfns.c (x_set_name_internal): Save encoded name before
26173 x_encode_text in case string data is relocated.
26175 2007-05-31 Richard Stallman <rms@gnu.org>
26177 * buffer.c (syms_of_buffer): Doc fix.
26179 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26181 * sysdep.c (init_sys_modes): Add rather than replace with
26184 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26187 * termhooks.h (term_mouse_moveto): New extern.
26189 * term.c (mouse_face_window): Rename...
26190 (Qmouse_face_window): ...to this.
26191 (term_show_mouse_face, term_clear_mouse_face)
26192 (term_mouse_highlight): Use Qmouse_face_window.
26193 (term_mouse_moveto): New function.
26194 (term_mouse_position): Make it work.
26195 (syms_of_term): Uncomment assignment to mouse_position_hook.
26196 Staticpro Qmouse_face_window.
26198 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26200 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26201 around current_column call.
26203 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26205 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26206 * xdisp.c (next_element_from_buffer):
26207 * window.c (delete_window):
26208 * term.c (term_mouse_highlight):
26209 * msdos.c (getdefdir):
26210 * macterm.c (mac_create_bitmap_from_bitmap_data)
26211 (init_font_name_table):
26213 * data.c (Fmake_local_variable):
26214 * ccl.c (ccl_driver): Likewise.
26216 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26218 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26219 Call mac_wakeup_from_rne on window size change.
26221 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26223 * image.c (uncache_image): Fix typo.
26225 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26227 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26229 2007-05-22 Richard Stallman <rms@gnu.org>
26231 * xterm.c (x_connection_closed): Remove NO_RETURN.
26233 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26235 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26237 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26239 * image.c (uncache_image): New function.
26240 (Fimage_refresh): New function.
26242 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26244 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26246 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26248 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26249 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26251 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26253 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26254 conditional on [HAVE_GPM_H].
26256 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26258 * syntax.c (skip_chars): Update syntax-table only after we checked that
26259 the new location is valid.
26261 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26263 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26264 mac_get_window_bounds.
26266 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26268 * Makefile.in (LIBGPM): Allow it to be set from configure.
26269 If set then link Emacs with it.
26271 * config.in: Regenerate.
26273 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26276 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26278 (handle_one_term_event, term_gpm): New externs.
26280 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26281 and allow it to be interrupted by SIGIO.
26283 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26284 (wait_reading_process_output): Wait on gpm_fd too.
26285 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26286 (add_gpm_wait_descriptor_called_flag): New variable.
26287 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26289 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26290 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26291 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26292 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26293 (make_lispy_event): Add case GPM_CLICK_EVENT.
26294 (read_avail_input): Handle mouse input.
26296 * term.c (write_glyphs_with_face): New function.
26297 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26298 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26299 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26300 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26301 (last_mouse_x, last_mouse_y): New variables.
26302 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26303 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26304 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26305 (Fterm_close_connection): New functions.
26306 (term_init): Initialise mouse_face_window.
26308 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26310 * xdisp.c (redisplay_window): If first window line is a
26311 continuation line, recompute the new window start instead of
26314 2007-05-18 Glenn Morris <rgm@gnu.org>
26316 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26317 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26319 2007-05-17 Glenn Morris <rgm@gnu.org>
26321 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26323 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26325 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26326 dead key repeat and up events.
26328 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26330 * image.c (pbm_load): Check image size for monochrome pbm.
26332 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26334 * xterm.c (XTread_socket): Revert last change.
26336 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26338 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26340 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26342 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26344 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26347 2007-05-07 Andreas Schwab <schwab@suse.de>
26349 * keymap.c (Flookup_key): Fix typo in last change.
26351 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26353 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26354 mapping for unibyte strings.
26356 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26358 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26359 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26361 2007-04-29 Richard Stallman <rms@gnu.org>
26363 * insdel.c (replace_range): For undo, record insertion first.
26365 2007-04-29 Andreas Schwab <schwab@suse.de>
26367 * lisp.h (VECSIZE): Use OFFSETOF.
26369 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26371 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26374 2007-04-28 Richard Stallman <rms@gnu.org>
26376 * lread.c (read_escape): In a string, \s is always space.
26378 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26380 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26382 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26383 submenu for menu bar items.
26385 See ChangeLog.10 for earlier changes.
26387 ;; Local Variables:
26389 ;; add-log-time-zone-rule: t
26392 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26394 This file is part of GNU Emacs.
26396 GNU Emacs is free software: you can redistribute it and/or modify
26397 it under the terms of the GNU General Public License as published by
26398 the Free Software Foundation, either version 3 of the License, or
26399 (at your option) any later version.
26401 GNU Emacs is distributed in the hope that it will be useful,
26402 but WITHOUT ANY WARRANTY; without even the implied warranty of
26403 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26404 GNU General Public License for more details.
26406 You should have received a copy of the GNU General Public License
26407 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26409 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40